blob: b2fffa45716ed4f9c4c2ba27790d7e05f293b5d7 [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.ghosh93921ec2022-09-08 17:22:40 +020034 EventIds_EVENT_TRANSCEIVER_PLUG_OUT EventIds = 100
35 EventIds_EVENT_TRANSCEIVER_PLUG_IN EventIds = 101
36 // The threshold based events on the transceivers should be configured on
37 // the port components of that transceiver and not on the transceiver
38 // component itself. This is because there could be different thresholds
39 // on the different ports of a transceiver (for example for a transceiver of
40 // type COMBO_GPON_XGSPON the power thresholds could be different for the
41 // GPON and XGSPON ports)
Amit Ghosh9d6658d2020-06-25 10:43:30 +010042 EventIds_EVENT_TRANSCEIVER_VOLTAGE_ABOVE_THRESHOLD EventIds = 102
43 EventIds_EVENT_TRANSCEIVER_VOLTAGE_BELOW_THRESHOLD EventIds = 103
44 EventIds_EVENT_TRANSCEIVER_TEMPERATURE_ABOVE_THRESHOLD EventIds = 104
45 EventIds_EVENT_TRANSCEIVER_TEMPERATURE_BELOW_THRESHOLD EventIds = 105
46 EventIds_EVENT_TRANSCEIVER_CURRENT_ABOVE_THRESHOLD EventIds = 106
47 EventIds_EVENT_TRANSCEIVER_CURRENT_BELOW_THRESHOLD EventIds = 107
48 EventIds_EVENT_TRANSCEIVER_RX_POWER_ABOVE_THRESHOLD EventIds = 108
49 EventIds_EVENT_TRANSCEIVER_RX_POWER_BELOW_THRESHOLD EventIds = 109
50 EventIds_EVENT_TRANSCEIVER_TX_POWER_ABOVE_THRESHOLD EventIds = 110
51 EventIds_EVENT_TRANSCEIVER_TX_POWER_BELOW_THRESHOLD EventIds = 111
52 EventIds_EVENT_TRANSCEIVER_FAILURE EventIds = 112
53 EventIds_EVENT_TRANSCEIVER_VOLTAGE_ABOVE_THRESHOLD_RECOVERED EventIds = 113
54 EventIds_EVENT_TRANSCEIVER_VOLTAGE_BELOW_THRESHOLD_RECOVERED EventIds = 114
55 EventIds_EVENT_TRANSCEIVER_TEMPERATURE_ABOVE_THRESHOLD_RECOVERED EventIds = 115
56 EventIds_EVENT_TRANSCEIVER_TEMPERATURE_BELOW_THRESHOLD_RECOVERED EventIds = 116
57 EventIds_EVENT_TRANSCEIVER_CURRENT_ABOVE_THRESHOLD_RECOVERED EventIds = 117
58 EventIds_EVENT_TRANSCEIVER_CURRENT_BELOW_THRESHOLD_RECOVERED EventIds = 118
59 EventIds_EVENT_TRANSCEIVER_RX_POWER_ABOVE_THRESHOLD_RECOVERED EventIds = 119
60 EventIds_EVENT_TRANSCEIVER_RX_POWER_BELOW_THRESHOLD_RECOVERED EventIds = 120
61 EventIds_EVENT_TRANSCEIVER_TX_POWER_ABOVE_THRESHOLD_RECOVERED EventIds = 121
62 EventIds_EVENT_TRANSCEIVER_TX_POWER_BELOW_THRESHOLD_RECOVERED EventIds = 122
63 EventIds_EVENT_TRANSCEIVER_FAILURE_RECOVERED EventIds = 123
Amit Ghosh09f28362020-06-12 21:52:19 +010064 // Events from the PSU
Amit Ghosh9d6658d2020-06-25 10:43:30 +010065 EventIds_EVENT_PSU_PLUG_OUT EventIds = 200
66 EventIds_EVENT_PSU_PLUG_IN EventIds = 201
67 EventIds_EVENT_PSU_FAILURE EventIds = 202
68 EventIds_EVENT_PSU_FAILURE_RECOVERED EventIds = 203
Amit Ghosh09f28362020-06-12 21:52:19 +010069 // Events for the Fans
Amit Ghosh9d6658d2020-06-25 10:43:30 +010070 EventIds_EVENT_FAN_FAILURE EventIds = 300
71 EventIds_EVENT_FAN_PLUG_OUT EventIds = 301
72 EventIds_EVENT_FAN_PLUG_IN EventIds = 302
73 EventIds_EVENT_FAN_FAILURE_RECOVERED EventIds = 303
Amit Ghosh09f28362020-06-12 21:52:19 +010074 // Events for the CPUs
Amit Ghosh9d6658d2020-06-25 10:43:30 +010075 EventIds_EVENT_CPU_TEMPERATURE_ABOVE_CRITICAL EventIds = 400
76 EventIds_EVENT_CPU_TEMPERATURE_ABOVE_FATAL EventIds = 401
77 EventIds_EVENT_CPU_TEMPERATURE_ABOVE_CRITICAL_RECOVERED EventIds = 402
78 EventIds_EVENT_CPU_TEMPERATURE_ABOVE_FATAL_RECOVERED EventIds = 403
amit.ghosh06f49782023-06-15 13:53:51 +020079 EventIds_EVENT_CPU_USAGE_ABOVE_THRESHOLD EventIds = 404
80 EventIds_EVENT_CPU_USAGE_ABOVE_THRESHOLD_RECOVERED EventIds = 405
Amit Ghosh09f28362020-06-12 21:52:19 +010081 // Events for the complete HW Device
Amit Ghosh9d6658d2020-06-25 10:43:30 +010082 EventIds_EVENT_HW_DEVICE_RESET EventIds = 500
83 EventIds_EVENT_HW_DEVICE_TEMPERATURE_ABOVE_CRITICAL EventIds = 501
84 EventIds_EVENT_HW_DEVICE_TEMPERATURE_ABOVE_FATAL EventIds = 502
85 EventIds_EVENT_HW_DEVICE_TEMPERATURE_ABOVE_CRITICAL_RECOVERED EventIds = 503
86 EventIds_EVENT_HW_DEVICE_TEMPERATURE_ABOVE_FATAL_RECOVERED EventIds = 504
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +053087 EventIds_EVENT_HW_DEVICE_REBOOT EventIds = 505
amit.ghosh8fe610f2022-01-14 17:44:53 +010088 EventIds_EVENT_HW_TEMPERATURE_SENSOR_FAILED EventIds = 506
89 EventIds_EVENT_HW_ALL_TEMPERATURE_SENSORS_FAILED EventIds = 507
amit.ghosh06f49782023-06-15 13:53:51 +020090 EventIds_EVENT_HW_DISK_USAGE_ABOVE_THRESHOLD EventIds = 508
91 EventIds_EVENT_HW_DISK_USAGE_ABOVE_THRESHOLD_RECOVERED EventIds = 509
92 EventIds_EVENT_HW_MEMORY_USAGE_ABOVE_THRESHOLD EventIds = 510
93 EventIds_EVENT_HW_MEMORY_USAGE_ABOVE_THRESHOLD_RECOVERED EventIds = 511
94 EventIds_EVENT_HW_NTP_SYNC_FAILURE EventIds = 512
95 EventIds_EVENT_HW_NTP_SYNC_FAILURE_RECOVERED EventIds = 513
amit.ghoshc0c3c242022-03-16 11:00:27 +010096 // Events for the line cards on the HW Device
97 EventIds_EVENT_LINE_CARD_PLUG_OUT EventIds = 600
98 EventIds_EVENT_LINE_CARD_PLUG_IN EventIds = 601
Amit Ghoshe45d9972025-06-26 14:52:48 +020099 // Indicates that the a state of a component has changed.
100 // The StateChangeInfo message inside the event conveys the old and new states.
101 EventIds_EVENT_COMPONENT_ADMIN_STATE_CHANGED EventIds = 700
102 EventIds_EVENT_COMPONENT_OPER_STATE_CHANGED EventIds = 701
103 EventIds_EVENT_COMPONENT_ALARM_STATE_CHANGED EventIds = 702
104 EventIds_EVENT_COMPONENT_USAGE_STATE_CHANGED EventIds = 703
105 EventIds_EVENT_COMPONENT_STANDBY_STATE_CHANGED EventIds = 704
Amit Ghosh09f28362020-06-12 21:52:19 +0100106)
107
108var EventIds_name = map[int32]string{
109 0: "EVENT_NAME_UNDEFINED",
110 100: "EVENT_TRANSCEIVER_PLUG_OUT",
111 101: "EVENT_TRANSCEIVER_PLUG_IN",
112 102: "EVENT_TRANSCEIVER_VOLTAGE_ABOVE_THRESHOLD",
113 103: "EVENT_TRANSCEIVER_VOLTAGE_BELOW_THRESHOLD",
114 104: "EVENT_TRANSCEIVER_TEMPERATURE_ABOVE_THRESHOLD",
115 105: "EVENT_TRANSCEIVER_TEMPERATURE_BELOW_THRESHOLD",
116 106: "EVENT_TRANSCEIVER_CURRENT_ABOVE_THRESHOLD",
117 107: "EVENT_TRANSCEIVER_CURRENT_BELOW_THRESHOLD",
118 108: "EVENT_TRANSCEIVER_RX_POWER_ABOVE_THRESHOLD",
119 109: "EVENT_TRANSCEIVER_RX_POWER_BELOW_THRESHOLD",
120 110: "EVENT_TRANSCEIVER_TX_POWER_ABOVE_THRESHOLD",
121 111: "EVENT_TRANSCEIVER_TX_POWER_BELOW_THRESHOLD",
122 112: "EVENT_TRANSCEIVER_FAILURE",
Amit Ghosh9d6658d2020-06-25 10:43:30 +0100123 113: "EVENT_TRANSCEIVER_VOLTAGE_ABOVE_THRESHOLD_RECOVERED",
124 114: "EVENT_TRANSCEIVER_VOLTAGE_BELOW_THRESHOLD_RECOVERED",
125 115: "EVENT_TRANSCEIVER_TEMPERATURE_ABOVE_THRESHOLD_RECOVERED",
126 116: "EVENT_TRANSCEIVER_TEMPERATURE_BELOW_THRESHOLD_RECOVERED",
127 117: "EVENT_TRANSCEIVER_CURRENT_ABOVE_THRESHOLD_RECOVERED",
128 118: "EVENT_TRANSCEIVER_CURRENT_BELOW_THRESHOLD_RECOVERED",
129 119: "EVENT_TRANSCEIVER_RX_POWER_ABOVE_THRESHOLD_RECOVERED",
130 120: "EVENT_TRANSCEIVER_RX_POWER_BELOW_THRESHOLD_RECOVERED",
131 121: "EVENT_TRANSCEIVER_TX_POWER_ABOVE_THRESHOLD_RECOVERED",
132 122: "EVENT_TRANSCEIVER_TX_POWER_BELOW_THRESHOLD_RECOVERED",
133 123: "EVENT_TRANSCEIVER_FAILURE_RECOVERED",
Amit Ghosh09f28362020-06-12 21:52:19 +0100134 200: "EVENT_PSU_PLUG_OUT",
135 201: "EVENT_PSU_PLUG_IN",
136 202: "EVENT_PSU_FAILURE",
Amit Ghosh9d6658d2020-06-25 10:43:30 +0100137 203: "EVENT_PSU_FAILURE_RECOVERED",
Amit Ghosh09f28362020-06-12 21:52:19 +0100138 300: "EVENT_FAN_FAILURE",
139 301: "EVENT_FAN_PLUG_OUT",
140 302: "EVENT_FAN_PLUG_IN",
Amit Ghosh9d6658d2020-06-25 10:43:30 +0100141 303: "EVENT_FAN_FAILURE_RECOVERED",
Amit Ghosh09f28362020-06-12 21:52:19 +0100142 400: "EVENT_CPU_TEMPERATURE_ABOVE_CRITICAL",
143 401: "EVENT_CPU_TEMPERATURE_ABOVE_FATAL",
Amit Ghosh9d6658d2020-06-25 10:43:30 +0100144 402: "EVENT_CPU_TEMPERATURE_ABOVE_CRITICAL_RECOVERED",
145 403: "EVENT_CPU_TEMPERATURE_ABOVE_FATAL_RECOVERED",
amit.ghosh06f49782023-06-15 13:53:51 +0200146 404: "EVENT_CPU_USAGE_ABOVE_THRESHOLD",
147 405: "EVENT_CPU_USAGE_ABOVE_THRESHOLD_RECOVERED",
Amit Ghosh09f28362020-06-12 21:52:19 +0100148 500: "EVENT_HW_DEVICE_RESET",
149 501: "EVENT_HW_DEVICE_TEMPERATURE_ABOVE_CRITICAL",
150 502: "EVENT_HW_DEVICE_TEMPERATURE_ABOVE_FATAL",
Amit Ghosh9d6658d2020-06-25 10:43:30 +0100151 503: "EVENT_HW_DEVICE_TEMPERATURE_ABOVE_CRITICAL_RECOVERED",
152 504: "EVENT_HW_DEVICE_TEMPERATURE_ABOVE_FATAL_RECOVERED",
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +0530153 505: "EVENT_HW_DEVICE_REBOOT",
amit.ghosh8fe610f2022-01-14 17:44:53 +0100154 506: "EVENT_HW_TEMPERATURE_SENSOR_FAILED",
155 507: "EVENT_HW_ALL_TEMPERATURE_SENSORS_FAILED",
amit.ghosh06f49782023-06-15 13:53:51 +0200156 508: "EVENT_HW_DISK_USAGE_ABOVE_THRESHOLD",
157 509: "EVENT_HW_DISK_USAGE_ABOVE_THRESHOLD_RECOVERED",
158 510: "EVENT_HW_MEMORY_USAGE_ABOVE_THRESHOLD",
159 511: "EVENT_HW_MEMORY_USAGE_ABOVE_THRESHOLD_RECOVERED",
160 512: "EVENT_HW_NTP_SYNC_FAILURE",
161 513: "EVENT_HW_NTP_SYNC_FAILURE_RECOVERED",
amit.ghoshc0c3c242022-03-16 11:00:27 +0100162 600: "EVENT_LINE_CARD_PLUG_OUT",
163 601: "EVENT_LINE_CARD_PLUG_IN",
Amit Ghoshe45d9972025-06-26 14:52:48 +0200164 700: "EVENT_COMPONENT_ADMIN_STATE_CHANGED",
165 701: "EVENT_COMPONENT_OPER_STATE_CHANGED",
166 702: "EVENT_COMPONENT_ALARM_STATE_CHANGED",
167 703: "EVENT_COMPONENT_USAGE_STATE_CHANGED",
168 704: "EVENT_COMPONENT_STANDBY_STATE_CHANGED",
Amit Ghosh09f28362020-06-12 21:52:19 +0100169}
170
171var EventIds_value = map[string]int32{
Amit Ghosh9d6658d2020-06-25 10:43:30 +0100172 "EVENT_NAME_UNDEFINED": 0,
173 "EVENT_TRANSCEIVER_PLUG_OUT": 100,
174 "EVENT_TRANSCEIVER_PLUG_IN": 101,
175 "EVENT_TRANSCEIVER_VOLTAGE_ABOVE_THRESHOLD": 102,
176 "EVENT_TRANSCEIVER_VOLTAGE_BELOW_THRESHOLD": 103,
177 "EVENT_TRANSCEIVER_TEMPERATURE_ABOVE_THRESHOLD": 104,
178 "EVENT_TRANSCEIVER_TEMPERATURE_BELOW_THRESHOLD": 105,
179 "EVENT_TRANSCEIVER_CURRENT_ABOVE_THRESHOLD": 106,
180 "EVENT_TRANSCEIVER_CURRENT_BELOW_THRESHOLD": 107,
181 "EVENT_TRANSCEIVER_RX_POWER_ABOVE_THRESHOLD": 108,
182 "EVENT_TRANSCEIVER_RX_POWER_BELOW_THRESHOLD": 109,
183 "EVENT_TRANSCEIVER_TX_POWER_ABOVE_THRESHOLD": 110,
184 "EVENT_TRANSCEIVER_TX_POWER_BELOW_THRESHOLD": 111,
185 "EVENT_TRANSCEIVER_FAILURE": 112,
186 "EVENT_TRANSCEIVER_VOLTAGE_ABOVE_THRESHOLD_RECOVERED": 113,
187 "EVENT_TRANSCEIVER_VOLTAGE_BELOW_THRESHOLD_RECOVERED": 114,
188 "EVENT_TRANSCEIVER_TEMPERATURE_ABOVE_THRESHOLD_RECOVERED": 115,
189 "EVENT_TRANSCEIVER_TEMPERATURE_BELOW_THRESHOLD_RECOVERED": 116,
190 "EVENT_TRANSCEIVER_CURRENT_ABOVE_THRESHOLD_RECOVERED": 117,
191 "EVENT_TRANSCEIVER_CURRENT_BELOW_THRESHOLD_RECOVERED": 118,
192 "EVENT_TRANSCEIVER_RX_POWER_ABOVE_THRESHOLD_RECOVERED": 119,
193 "EVENT_TRANSCEIVER_RX_POWER_BELOW_THRESHOLD_RECOVERED": 120,
194 "EVENT_TRANSCEIVER_TX_POWER_ABOVE_THRESHOLD_RECOVERED": 121,
195 "EVENT_TRANSCEIVER_TX_POWER_BELOW_THRESHOLD_RECOVERED": 122,
196 "EVENT_TRANSCEIVER_FAILURE_RECOVERED": 123,
197 "EVENT_PSU_PLUG_OUT": 200,
198 "EVENT_PSU_PLUG_IN": 201,
199 "EVENT_PSU_FAILURE": 202,
200 "EVENT_PSU_FAILURE_RECOVERED": 203,
201 "EVENT_FAN_FAILURE": 300,
202 "EVENT_FAN_PLUG_OUT": 301,
203 "EVENT_FAN_PLUG_IN": 302,
204 "EVENT_FAN_FAILURE_RECOVERED": 303,
205 "EVENT_CPU_TEMPERATURE_ABOVE_CRITICAL": 400,
206 "EVENT_CPU_TEMPERATURE_ABOVE_FATAL": 401,
207 "EVENT_CPU_TEMPERATURE_ABOVE_CRITICAL_RECOVERED": 402,
208 "EVENT_CPU_TEMPERATURE_ABOVE_FATAL_RECOVERED": 403,
amit.ghosh06f49782023-06-15 13:53:51 +0200209 "EVENT_CPU_USAGE_ABOVE_THRESHOLD": 404,
210 "EVENT_CPU_USAGE_ABOVE_THRESHOLD_RECOVERED": 405,
Amit Ghosh9d6658d2020-06-25 10:43:30 +0100211 "EVENT_HW_DEVICE_RESET": 500,
212 "EVENT_HW_DEVICE_TEMPERATURE_ABOVE_CRITICAL": 501,
213 "EVENT_HW_DEVICE_TEMPERATURE_ABOVE_FATAL": 502,
214 "EVENT_HW_DEVICE_TEMPERATURE_ABOVE_CRITICAL_RECOVERED": 503,
215 "EVENT_HW_DEVICE_TEMPERATURE_ABOVE_FATAL_RECOVERED": 504,
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +0530216 "EVENT_HW_DEVICE_REBOOT": 505,
amit.ghosh8fe610f2022-01-14 17:44:53 +0100217 "EVENT_HW_TEMPERATURE_SENSOR_FAILED": 506,
218 "EVENT_HW_ALL_TEMPERATURE_SENSORS_FAILED": 507,
amit.ghosh06f49782023-06-15 13:53:51 +0200219 "EVENT_HW_DISK_USAGE_ABOVE_THRESHOLD": 508,
220 "EVENT_HW_DISK_USAGE_ABOVE_THRESHOLD_RECOVERED": 509,
221 "EVENT_HW_MEMORY_USAGE_ABOVE_THRESHOLD": 510,
222 "EVENT_HW_MEMORY_USAGE_ABOVE_THRESHOLD_RECOVERED": 511,
223 "EVENT_HW_NTP_SYNC_FAILURE": 512,
224 "EVENT_HW_NTP_SYNC_FAILURE_RECOVERED": 513,
amit.ghoshc0c3c242022-03-16 11:00:27 +0100225 "EVENT_LINE_CARD_PLUG_OUT": 600,
226 "EVENT_LINE_CARD_PLUG_IN": 601,
Amit Ghoshe45d9972025-06-26 14:52:48 +0200227 "EVENT_COMPONENT_ADMIN_STATE_CHANGED": 700,
228 "EVENT_COMPONENT_OPER_STATE_CHANGED": 701,
229 "EVENT_COMPONENT_ALARM_STATE_CHANGED": 702,
230 "EVENT_COMPONENT_USAGE_STATE_CHANGED": 703,
231 "EVENT_COMPONENT_STANDBY_STATE_CHANGED": 704,
Amit Ghosh09f28362020-06-12 21:52:19 +0100232}
233
234func (x EventIds) String() string {
235 return proto.EnumName(EventIds_name, int32(x))
236}
237
238func (EventIds) EnumDescriptor() ([]byte, []int) {
239 return fileDescriptor_8962d785556e9979, []int{0}
240}
241
amit.ghoshae473032021-01-10 11:59:10 +0100242type ListEventsResponse_Reason int32
243
244const (
amit.ghoshbd2022e2021-02-22 05:58:53 +0100245 ListEventsResponse_UNDEFINED_REASON ListEventsResponse_Reason = 0
246 ListEventsResponse_UNKNOWN_DEVICE ListEventsResponse_Reason = 1
247 ListEventsResponse_INTERNAL_ERROR ListEventsResponse_Reason = 2
248 ListEventsResponse_DEVICE_UNREACHABLE ListEventsResponse_Reason = 3
amit.ghoshae473032021-01-10 11:59:10 +0100249)
250
251var ListEventsResponse_Reason_name = map[int32]string{
252 0: "UNDEFINED_REASON",
253 1: "UNKNOWN_DEVICE",
254 2: "INTERNAL_ERROR",
amit.ghoshbd2022e2021-02-22 05:58:53 +0100255 3: "DEVICE_UNREACHABLE",
amit.ghoshae473032021-01-10 11:59:10 +0100256}
257
258var ListEventsResponse_Reason_value = map[string]int32{
amit.ghoshbd2022e2021-02-22 05:58:53 +0100259 "UNDEFINED_REASON": 0,
260 "UNKNOWN_DEVICE": 1,
261 "INTERNAL_ERROR": 2,
262 "DEVICE_UNREACHABLE": 3,
amit.ghoshae473032021-01-10 11:59:10 +0100263}
264
265func (x ListEventsResponse_Reason) String() string {
266 return proto.EnumName(ListEventsResponse_Reason_name, int32(x))
267}
268
269func (ListEventsResponse_Reason) EnumDescriptor() ([]byte, []int) {
270 return fileDescriptor_8962d785556e9979, []int{6, 0}
271}
272
273type EventsConfigurationResponse_Reason int32
274
275const (
amit.ghoshbd2022e2021-02-22 05:58:53 +0100276 EventsConfigurationResponse_UNDEFINED_REASON EventsConfigurationResponse_Reason = 0
277 EventsConfigurationResponse_UNKNOWN_DEVICE EventsConfigurationResponse_Reason = 1
278 EventsConfigurationResponse_INTERNAL_ERROR EventsConfigurationResponse_Reason = 2
279 EventsConfigurationResponse_INVALID_CONFIG EventsConfigurationResponse_Reason = 3
280 EventsConfigurationResponse_DEVICE_UNREACHABLE EventsConfigurationResponse_Reason = 4
amit.ghoshae473032021-01-10 11:59:10 +0100281)
282
283var EventsConfigurationResponse_Reason_name = map[int32]string{
284 0: "UNDEFINED_REASON",
285 1: "UNKNOWN_DEVICE",
286 2: "INTERNAL_ERROR",
287 3: "INVALID_CONFIG",
amit.ghoshbd2022e2021-02-22 05:58:53 +0100288 4: "DEVICE_UNREACHABLE",
amit.ghoshae473032021-01-10 11:59:10 +0100289}
290
291var EventsConfigurationResponse_Reason_value = map[string]int32{
amit.ghoshbd2022e2021-02-22 05:58:53 +0100292 "UNDEFINED_REASON": 0,
293 "UNKNOWN_DEVICE": 1,
294 "INTERNAL_ERROR": 2,
295 "INVALID_CONFIG": 3,
296 "DEVICE_UNREACHABLE": 4,
amit.ghoshae473032021-01-10 11:59:10 +0100297}
298
299func (x EventsConfigurationResponse_Reason) String() string {
300 return proto.EnumName(EventsConfigurationResponse_Reason_name, int32(x))
301}
302
303func (EventsConfigurationResponse_Reason) EnumDescriptor() ([]byte, []int) {
304 return fileDescriptor_8962d785556e9979, []int{8, 0}
305}
306
Amit Ghosh09f28362020-06-12 21:52:19 +0100307type ValueType struct {
amit.ghosh93921ec2022-09-08 17:22:40 +0200308 // For val no multiples of units shall be used.
309 // For example, for memory val should be in bytes and not in kilobytes or any
310 // other multiple of the unit byte.
311 //
Amit Ghosh09f28362020-06-12 21:52:19 +0100312 // Types that are valid to be assigned to Val:
313 // *ValueType_IntVal
314 // *ValueType_UintVal
315 // *ValueType_FloatVal
316 Val isValueType_Val `protobuf_oneof:"val"`
amit.ghosh93921ec2022-09-08 17:22:40 +0200317 TypeOfVal DataValueType `protobuf:"varint,4,opt,name=typeOfVal,proto3,enum=dmi.DataValueType" json:"typeOfVal,omitempty"`
Amit Ghosh09f28362020-06-12 21:52:19 +0100318 XXX_NoUnkeyedLiteral struct{} `json:"-"`
319 XXX_unrecognized []byte `json:"-"`
320 XXX_sizecache int32 `json:"-"`
321}
322
323func (m *ValueType) Reset() { *m = ValueType{} }
324func (m *ValueType) String() string { return proto.CompactTextString(m) }
325func (*ValueType) ProtoMessage() {}
326func (*ValueType) Descriptor() ([]byte, []int) {
327 return fileDescriptor_8962d785556e9979, []int{0}
328}
329
330func (m *ValueType) XXX_Unmarshal(b []byte) error {
331 return xxx_messageInfo_ValueType.Unmarshal(m, b)
332}
333func (m *ValueType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
334 return xxx_messageInfo_ValueType.Marshal(b, m, deterministic)
335}
336func (m *ValueType) XXX_Merge(src proto.Message) {
337 xxx_messageInfo_ValueType.Merge(m, src)
338}
339func (m *ValueType) XXX_Size() int {
340 return xxx_messageInfo_ValueType.Size(m)
341}
342func (m *ValueType) XXX_DiscardUnknown() {
343 xxx_messageInfo_ValueType.DiscardUnknown(m)
344}
345
346var xxx_messageInfo_ValueType proto.InternalMessageInfo
347
348type isValueType_Val interface {
349 isValueType_Val()
350}
351
352type ValueType_IntVal struct {
353 IntVal int64 `protobuf:"varint,1,opt,name=int_val,json=intVal,proto3,oneof"`
354}
355
356type ValueType_UintVal struct {
357 UintVal uint64 `protobuf:"varint,2,opt,name=uint_val,json=uintVal,proto3,oneof"`
358}
359
360type ValueType_FloatVal struct {
361 FloatVal float32 `protobuf:"fixed32,3,opt,name=float_val,json=floatVal,proto3,oneof"`
362}
363
364func (*ValueType_IntVal) isValueType_Val() {}
365
366func (*ValueType_UintVal) isValueType_Val() {}
367
368func (*ValueType_FloatVal) isValueType_Val() {}
369
370func (m *ValueType) GetVal() isValueType_Val {
371 if m != nil {
372 return m.Val
373 }
374 return nil
375}
376
377func (m *ValueType) GetIntVal() int64 {
378 if x, ok := m.GetVal().(*ValueType_IntVal); ok {
379 return x.IntVal
380 }
381 return 0
382}
383
384func (m *ValueType) GetUintVal() uint64 {
385 if x, ok := m.GetVal().(*ValueType_UintVal); ok {
386 return x.UintVal
387 }
388 return 0
389}
390
391func (m *ValueType) GetFloatVal() float32 {
392 if x, ok := m.GetVal().(*ValueType_FloatVal); ok {
393 return x.FloatVal
394 }
395 return 0
396}
397
amit.ghosh93921ec2022-09-08 17:22:40 +0200398func (m *ValueType) GetTypeOfVal() DataValueType {
399 if m != nil {
400 return m.TypeOfVal
401 }
402 return DataValueType_VALUE_TYPE_UNDEFINED
403}
404
Amit Ghosh09f28362020-06-12 21:52:19 +0100405// XXX_OneofWrappers is for the internal use of the proto package.
406func (*ValueType) XXX_OneofWrappers() []interface{} {
407 return []interface{}{
408 (*ValueType_IntVal)(nil),
409 (*ValueType_UintVal)(nil),
410 (*ValueType_FloatVal)(nil),
411 }
412}
413
414type WaterMarks struct {
415 High *ValueType `protobuf:"bytes,1,opt,name=high,proto3" json:"high,omitempty"`
416 Low *ValueType `protobuf:"bytes,2,opt,name=low,proto3" json:"low,omitempty"`
417 XXX_NoUnkeyedLiteral struct{} `json:"-"`
418 XXX_unrecognized []byte `json:"-"`
419 XXX_sizecache int32 `json:"-"`
420}
421
422func (m *WaterMarks) Reset() { *m = WaterMarks{} }
423func (m *WaterMarks) String() string { return proto.CompactTextString(m) }
424func (*WaterMarks) ProtoMessage() {}
425func (*WaterMarks) Descriptor() ([]byte, []int) {
426 return fileDescriptor_8962d785556e9979, []int{1}
427}
428
429func (m *WaterMarks) XXX_Unmarshal(b []byte) error {
430 return xxx_messageInfo_WaterMarks.Unmarshal(m, b)
431}
432func (m *WaterMarks) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
433 return xxx_messageInfo_WaterMarks.Marshal(b, m, deterministic)
434}
435func (m *WaterMarks) XXX_Merge(src proto.Message) {
436 xxx_messageInfo_WaterMarks.Merge(m, src)
437}
438func (m *WaterMarks) XXX_Size() int {
439 return xxx_messageInfo_WaterMarks.Size(m)
440}
441func (m *WaterMarks) XXX_DiscardUnknown() {
442 xxx_messageInfo_WaterMarks.DiscardUnknown(m)
443}
444
445var xxx_messageInfo_WaterMarks proto.InternalMessageInfo
446
447func (m *WaterMarks) GetHigh() *ValueType {
448 if m != nil {
449 return m.High
450 }
451 return nil
452}
453
454func (m *WaterMarks) GetLow() *ValueType {
455 if m != nil {
456 return m.Low
457 }
458 return nil
459}
460
461type Thresholds struct {
462 // Types that are valid to be assigned to Threshold:
463 // *Thresholds_Upper
464 // *Thresholds_Lower
465 Threshold isThresholds_Threshold `protobuf_oneof:"threshold"`
466 XXX_NoUnkeyedLiteral struct{} `json:"-"`
467 XXX_unrecognized []byte `json:"-"`
468 XXX_sizecache int32 `json:"-"`
469}
470
471func (m *Thresholds) Reset() { *m = Thresholds{} }
472func (m *Thresholds) String() string { return proto.CompactTextString(m) }
473func (*Thresholds) ProtoMessage() {}
474func (*Thresholds) Descriptor() ([]byte, []int) {
475 return fileDescriptor_8962d785556e9979, []int{2}
476}
477
478func (m *Thresholds) XXX_Unmarshal(b []byte) error {
479 return xxx_messageInfo_Thresholds.Unmarshal(m, b)
480}
481func (m *Thresholds) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
482 return xxx_messageInfo_Thresholds.Marshal(b, m, deterministic)
483}
484func (m *Thresholds) XXX_Merge(src proto.Message) {
485 xxx_messageInfo_Thresholds.Merge(m, src)
486}
487func (m *Thresholds) XXX_Size() int {
488 return xxx_messageInfo_Thresholds.Size(m)
489}
490func (m *Thresholds) XXX_DiscardUnknown() {
491 xxx_messageInfo_Thresholds.DiscardUnknown(m)
492}
493
494var xxx_messageInfo_Thresholds proto.InternalMessageInfo
495
496type isThresholds_Threshold interface {
497 isThresholds_Threshold()
498}
499
500type Thresholds_Upper struct {
501 Upper *WaterMarks `protobuf:"bytes,1,opt,name=upper,proto3,oneof"`
502}
503
504type Thresholds_Lower struct {
505 Lower *WaterMarks `protobuf:"bytes,2,opt,name=lower,proto3,oneof"`
506}
507
508func (*Thresholds_Upper) isThresholds_Threshold() {}
509
510func (*Thresholds_Lower) isThresholds_Threshold() {}
511
512func (m *Thresholds) GetThreshold() isThresholds_Threshold {
513 if m != nil {
514 return m.Threshold
515 }
516 return nil
517}
518
519func (m *Thresholds) GetUpper() *WaterMarks {
520 if x, ok := m.GetThreshold().(*Thresholds_Upper); ok {
521 return x.Upper
522 }
523 return nil
524}
525
526func (m *Thresholds) GetLower() *WaterMarks {
527 if x, ok := m.GetThreshold().(*Thresholds_Lower); ok {
528 return x.Lower
529 }
530 return nil
531}
532
533// XXX_OneofWrappers is for the internal use of the proto package.
534func (*Thresholds) XXX_OneofWrappers() []interface{} {
535 return []interface{}{
536 (*Thresholds_Upper)(nil),
537 (*Thresholds_Lower)(nil),
538 }
539}
540
541type ThresholdInformation struct {
542 ObservedValue *ValueType `protobuf:"bytes,1,opt,name=observed_value,json=observedValue,proto3" json:"observed_value,omitempty"`
543 Thresholds *Thresholds `protobuf:"bytes,2,opt,name=thresholds,proto3" json:"thresholds,omitempty"`
544 XXX_NoUnkeyedLiteral struct{} `json:"-"`
545 XXX_unrecognized []byte `json:"-"`
546 XXX_sizecache int32 `json:"-"`
547}
548
549func (m *ThresholdInformation) Reset() { *m = ThresholdInformation{} }
550func (m *ThresholdInformation) String() string { return proto.CompactTextString(m) }
551func (*ThresholdInformation) ProtoMessage() {}
552func (*ThresholdInformation) Descriptor() ([]byte, []int) {
553 return fileDescriptor_8962d785556e9979, []int{3}
554}
555
556func (m *ThresholdInformation) XXX_Unmarshal(b []byte) error {
557 return xxx_messageInfo_ThresholdInformation.Unmarshal(m, b)
558}
559func (m *ThresholdInformation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
560 return xxx_messageInfo_ThresholdInformation.Marshal(b, m, deterministic)
561}
562func (m *ThresholdInformation) XXX_Merge(src proto.Message) {
563 xxx_messageInfo_ThresholdInformation.Merge(m, src)
564}
565func (m *ThresholdInformation) XXX_Size() int {
566 return xxx_messageInfo_ThresholdInformation.Size(m)
567}
568func (m *ThresholdInformation) XXX_DiscardUnknown() {
569 xxx_messageInfo_ThresholdInformation.DiscardUnknown(m)
570}
571
572var xxx_messageInfo_ThresholdInformation proto.InternalMessageInfo
573
574func (m *ThresholdInformation) GetObservedValue() *ValueType {
575 if m != nil {
576 return m.ObservedValue
577 }
578 return nil
579}
580
581func (m *ThresholdInformation) GetThresholds() *Thresholds {
582 if m != nil {
583 return m.Thresholds
584 }
585 return nil
586}
587
588type EventCfg struct {
589 EventId EventIds `protobuf:"varint,1,opt,name=event_id,json=eventId,proto3,enum=dmi.EventIds" json:"event_id,omitempty"`
590 IsConfigured bool `protobuf:"varint,2,opt,name=is_configured,json=isConfigured,proto3" json:"is_configured,omitempty"`
591 // Optional threshold values, applicable only for some specific events
amit.ghosh06f49782023-06-15 13:53:51 +0200592 // If an event needs thresholds but the user does not pass the thresholds here, the Device Manager implementations
593 // could choose to use defaults applicable for the specific component (recommended) or return an error for such
594 // an EventConfigurationRequest with reason as INVALID_CONFIG
amit.ghosh7a093bd2023-03-07 16:31:56 +0100595 Thresholds *Thresholds `protobuf:"bytes,3,opt,name=thresholds,proto3" json:"thresholds,omitempty"`
596 // For events which can be configured on a particular component this id can be used to identify the component
597 // For e.g. for events of the transceivers
598 ComponentUuid *Uuid `protobuf:"bytes,4,opt,name=component_uuid,json=componentUuid,proto3" json:"component_uuid,omitempty"`
599 XXX_NoUnkeyedLiteral struct{} `json:"-"`
600 XXX_unrecognized []byte `json:"-"`
601 XXX_sizecache int32 `json:"-"`
Amit Ghosh09f28362020-06-12 21:52:19 +0100602}
603
604func (m *EventCfg) Reset() { *m = EventCfg{} }
605func (m *EventCfg) String() string { return proto.CompactTextString(m) }
606func (*EventCfg) ProtoMessage() {}
607func (*EventCfg) Descriptor() ([]byte, []int) {
608 return fileDescriptor_8962d785556e9979, []int{4}
609}
610
611func (m *EventCfg) XXX_Unmarshal(b []byte) error {
612 return xxx_messageInfo_EventCfg.Unmarshal(m, b)
613}
614func (m *EventCfg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
615 return xxx_messageInfo_EventCfg.Marshal(b, m, deterministic)
616}
617func (m *EventCfg) XXX_Merge(src proto.Message) {
618 xxx_messageInfo_EventCfg.Merge(m, src)
619}
620func (m *EventCfg) XXX_Size() int {
621 return xxx_messageInfo_EventCfg.Size(m)
622}
623func (m *EventCfg) XXX_DiscardUnknown() {
624 xxx_messageInfo_EventCfg.DiscardUnknown(m)
625}
626
627var xxx_messageInfo_EventCfg proto.InternalMessageInfo
628
629func (m *EventCfg) GetEventId() EventIds {
630 if m != nil {
631 return m.EventId
632 }
633 return EventIds_EVENT_NAME_UNDEFINED
634}
635
636func (m *EventCfg) GetIsConfigured() bool {
637 if m != nil {
638 return m.IsConfigured
639 }
640 return false
641}
642
643func (m *EventCfg) GetThresholds() *Thresholds {
644 if m != nil {
645 return m.Thresholds
646 }
647 return nil
648}
649
amit.ghosh7a093bd2023-03-07 16:31:56 +0100650func (m *EventCfg) GetComponentUuid() *Uuid {
651 if m != nil {
652 return m.ComponentUuid
653 }
654 return nil
655}
656
Amit Ghosh09f28362020-06-12 21:52:19 +0100657type EventsCfg struct {
658 Items []*EventCfg `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
659 XXX_NoUnkeyedLiteral struct{} `json:"-"`
660 XXX_unrecognized []byte `json:"-"`
661 XXX_sizecache int32 `json:"-"`
662}
663
664func (m *EventsCfg) Reset() { *m = EventsCfg{} }
665func (m *EventsCfg) String() string { return proto.CompactTextString(m) }
666func (*EventsCfg) ProtoMessage() {}
667func (*EventsCfg) Descriptor() ([]byte, []int) {
668 return fileDescriptor_8962d785556e9979, []int{5}
669}
670
671func (m *EventsCfg) XXX_Unmarshal(b []byte) error {
672 return xxx_messageInfo_EventsCfg.Unmarshal(m, b)
673}
674func (m *EventsCfg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
675 return xxx_messageInfo_EventsCfg.Marshal(b, m, deterministic)
676}
677func (m *EventsCfg) XXX_Merge(src proto.Message) {
678 xxx_messageInfo_EventsCfg.Merge(m, src)
679}
680func (m *EventsCfg) XXX_Size() int {
681 return xxx_messageInfo_EventsCfg.Size(m)
682}
683func (m *EventsCfg) XXX_DiscardUnknown() {
684 xxx_messageInfo_EventsCfg.DiscardUnknown(m)
685}
686
687var xxx_messageInfo_EventsCfg proto.InternalMessageInfo
688
689func (m *EventsCfg) GetItems() []*EventCfg {
690 if m != nil {
691 return m.Items
692 }
693 return nil
694}
695
696type ListEventsResponse struct {
amit.ghoshae473032021-01-10 11:59:10 +0100697 Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=dmi.Status" json:"status,omitempty"`
698 Reason ListEventsResponse_Reason `protobuf:"varint,2,opt,name=reason,proto3,enum=dmi.ListEventsResponse_Reason" json:"reason,omitempty"`
699 Events *EventsCfg `protobuf:"bytes,3,opt,name=events,proto3" json:"events,omitempty"`
amit.ghosh8ab1e6e2021-02-23 07:40:17 +0100700 ReasonDetail string `protobuf:"bytes,4,opt,name=reason_detail,json=reasonDetail,proto3" json:"reason_detail,omitempty"`
amit.ghoshae473032021-01-10 11:59:10 +0100701 XXX_NoUnkeyedLiteral struct{} `json:"-"`
702 XXX_unrecognized []byte `json:"-"`
703 XXX_sizecache int32 `json:"-"`
Amit Ghosh09f28362020-06-12 21:52:19 +0100704}
705
706func (m *ListEventsResponse) Reset() { *m = ListEventsResponse{} }
707func (m *ListEventsResponse) String() string { return proto.CompactTextString(m) }
708func (*ListEventsResponse) ProtoMessage() {}
709func (*ListEventsResponse) Descriptor() ([]byte, []int) {
710 return fileDescriptor_8962d785556e9979, []int{6}
711}
712
713func (m *ListEventsResponse) XXX_Unmarshal(b []byte) error {
714 return xxx_messageInfo_ListEventsResponse.Unmarshal(m, b)
715}
716func (m *ListEventsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
717 return xxx_messageInfo_ListEventsResponse.Marshal(b, m, deterministic)
718}
719func (m *ListEventsResponse) XXX_Merge(src proto.Message) {
720 xxx_messageInfo_ListEventsResponse.Merge(m, src)
721}
722func (m *ListEventsResponse) XXX_Size() int {
723 return xxx_messageInfo_ListEventsResponse.Size(m)
724}
725func (m *ListEventsResponse) XXX_DiscardUnknown() {
726 xxx_messageInfo_ListEventsResponse.DiscardUnknown(m)
727}
728
729var xxx_messageInfo_ListEventsResponse proto.InternalMessageInfo
730
731func (m *ListEventsResponse) GetStatus() Status {
732 if m != nil {
733 return m.Status
734 }
735 return Status_UNDEFINED_STATUS
736}
737
amit.ghoshae473032021-01-10 11:59:10 +0100738func (m *ListEventsResponse) GetReason() ListEventsResponse_Reason {
Amit Ghosh09f28362020-06-12 21:52:19 +0100739 if m != nil {
740 return m.Reason
741 }
amit.ghoshae473032021-01-10 11:59:10 +0100742 return ListEventsResponse_UNDEFINED_REASON
Amit Ghosh09f28362020-06-12 21:52:19 +0100743}
744
745func (m *ListEventsResponse) GetEvents() *EventsCfg {
746 if m != nil {
747 return m.Events
748 }
749 return nil
750}
751
amit.ghosh8ab1e6e2021-02-23 07:40:17 +0100752func (m *ListEventsResponse) GetReasonDetail() string {
753 if m != nil {
754 return m.ReasonDetail
755 }
756 return ""
757}
758
Amit Ghosh09f28362020-06-12 21:52:19 +0100759type EventsConfigurationRequest struct {
760 DeviceUuid *Uuid `protobuf:"bytes,1,opt,name=device_uuid,json=deviceUuid,proto3" json:"device_uuid,omitempty"`
761 // Types that are valid to be assigned to Operation:
762 // *EventsConfigurationRequest_Changes
763 // *EventsConfigurationRequest_ResetToDefault
amit.ghosh7a093bd2023-03-07 16:31:56 +0100764 Operation isEventsConfigurationRequest_Operation `protobuf_oneof:"operation"`
765 XXX_NoUnkeyedLiteral struct{} `json:"-"`
766 XXX_unrecognized []byte `json:"-"`
767 XXX_sizecache int32 `json:"-"`
Amit Ghosh09f28362020-06-12 21:52:19 +0100768}
769
770func (m *EventsConfigurationRequest) Reset() { *m = EventsConfigurationRequest{} }
771func (m *EventsConfigurationRequest) String() string { return proto.CompactTextString(m) }
772func (*EventsConfigurationRequest) ProtoMessage() {}
773func (*EventsConfigurationRequest) Descriptor() ([]byte, []int) {
774 return fileDescriptor_8962d785556e9979, []int{7}
775}
776
777func (m *EventsConfigurationRequest) XXX_Unmarshal(b []byte) error {
778 return xxx_messageInfo_EventsConfigurationRequest.Unmarshal(m, b)
779}
780func (m *EventsConfigurationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
781 return xxx_messageInfo_EventsConfigurationRequest.Marshal(b, m, deterministic)
782}
783func (m *EventsConfigurationRequest) XXX_Merge(src proto.Message) {
784 xxx_messageInfo_EventsConfigurationRequest.Merge(m, src)
785}
786func (m *EventsConfigurationRequest) XXX_Size() int {
787 return xxx_messageInfo_EventsConfigurationRequest.Size(m)
788}
789func (m *EventsConfigurationRequest) XXX_DiscardUnknown() {
790 xxx_messageInfo_EventsConfigurationRequest.DiscardUnknown(m)
791}
792
793var xxx_messageInfo_EventsConfigurationRequest proto.InternalMessageInfo
794
795func (m *EventsConfigurationRequest) GetDeviceUuid() *Uuid {
796 if m != nil {
797 return m.DeviceUuid
798 }
799 return nil
800}
801
802type isEventsConfigurationRequest_Operation interface {
803 isEventsConfigurationRequest_Operation()
804}
805
806type EventsConfigurationRequest_Changes struct {
807 Changes *EventsCfg `protobuf:"bytes,2,opt,name=changes,proto3,oneof"`
808}
809
810type EventsConfigurationRequest_ResetToDefault struct {
811 ResetToDefault bool `protobuf:"varint,3,opt,name=reset_to_default,json=resetToDefault,proto3,oneof"`
812}
813
814func (*EventsConfigurationRequest_Changes) isEventsConfigurationRequest_Operation() {}
815
816func (*EventsConfigurationRequest_ResetToDefault) isEventsConfigurationRequest_Operation() {}
817
818func (m *EventsConfigurationRequest) GetOperation() isEventsConfigurationRequest_Operation {
819 if m != nil {
820 return m.Operation
821 }
822 return nil
823}
824
825func (m *EventsConfigurationRequest) GetChanges() *EventsCfg {
826 if x, ok := m.GetOperation().(*EventsConfigurationRequest_Changes); ok {
827 return x.Changes
828 }
829 return nil
830}
831
832func (m *EventsConfigurationRequest) GetResetToDefault() bool {
833 if x, ok := m.GetOperation().(*EventsConfigurationRequest_ResetToDefault); ok {
834 return x.ResetToDefault
835 }
836 return false
837}
838
839// XXX_OneofWrappers is for the internal use of the proto package.
840func (*EventsConfigurationRequest) XXX_OneofWrappers() []interface{} {
841 return []interface{}{
842 (*EventsConfigurationRequest_Changes)(nil),
843 (*EventsConfigurationRequest_ResetToDefault)(nil),
844 }
845}
846
847type EventsConfigurationResponse struct {
amit.ghoshae473032021-01-10 11:59:10 +0100848 Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=dmi.Status" json:"status,omitempty"`
849 Reason EventsConfigurationResponse_Reason `protobuf:"varint,2,opt,name=reason,proto3,enum=dmi.EventsConfigurationResponse_Reason" json:"reason,omitempty"`
amit.ghosh8ab1e6e2021-02-23 07:40:17 +0100850 ReasonDetail string `protobuf:"bytes,3,opt,name=reason_detail,json=reasonDetail,proto3" json:"reason_detail,omitempty"`
amit.ghoshae473032021-01-10 11:59:10 +0100851 XXX_NoUnkeyedLiteral struct{} `json:"-"`
852 XXX_unrecognized []byte `json:"-"`
853 XXX_sizecache int32 `json:"-"`
Amit Ghosh09f28362020-06-12 21:52:19 +0100854}
855
856func (m *EventsConfigurationResponse) Reset() { *m = EventsConfigurationResponse{} }
857func (m *EventsConfigurationResponse) String() string { return proto.CompactTextString(m) }
858func (*EventsConfigurationResponse) ProtoMessage() {}
859func (*EventsConfigurationResponse) Descriptor() ([]byte, []int) {
860 return fileDescriptor_8962d785556e9979, []int{8}
861}
862
863func (m *EventsConfigurationResponse) XXX_Unmarshal(b []byte) error {
864 return xxx_messageInfo_EventsConfigurationResponse.Unmarshal(m, b)
865}
866func (m *EventsConfigurationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
867 return xxx_messageInfo_EventsConfigurationResponse.Marshal(b, m, deterministic)
868}
869func (m *EventsConfigurationResponse) XXX_Merge(src proto.Message) {
870 xxx_messageInfo_EventsConfigurationResponse.Merge(m, src)
871}
872func (m *EventsConfigurationResponse) XXX_Size() int {
873 return xxx_messageInfo_EventsConfigurationResponse.Size(m)
874}
875func (m *EventsConfigurationResponse) XXX_DiscardUnknown() {
876 xxx_messageInfo_EventsConfigurationResponse.DiscardUnknown(m)
877}
878
879var xxx_messageInfo_EventsConfigurationResponse proto.InternalMessageInfo
880
881func (m *EventsConfigurationResponse) GetStatus() Status {
882 if m != nil {
883 return m.Status
884 }
885 return Status_UNDEFINED_STATUS
886}
887
amit.ghoshae473032021-01-10 11:59:10 +0100888func (m *EventsConfigurationResponse) GetReason() EventsConfigurationResponse_Reason {
Amit Ghosh09f28362020-06-12 21:52:19 +0100889 if m != nil {
890 return m.Reason
891 }
amit.ghoshae473032021-01-10 11:59:10 +0100892 return EventsConfigurationResponse_UNDEFINED_REASON
Amit Ghosh09f28362020-06-12 21:52:19 +0100893}
894
amit.ghosh8ab1e6e2021-02-23 07:40:17 +0100895func (m *EventsConfigurationResponse) GetReasonDetail() string {
896 if m != nil {
897 return m.ReasonDetail
898 }
899 return ""
900}
901
Amit Ghosh09f28362020-06-12 21:52:19 +0100902type EventMetaData struct {
903 DeviceUuid *Uuid `protobuf:"bytes,1,opt,name=device_uuid,json=deviceUuid,proto3" json:"device_uuid,omitempty"`
904 // uuid of the component
905 ComponentUuid *Uuid `protobuf:"bytes,2,opt,name=component_uuid,json=componentUuid,proto3" json:"component_uuid,omitempty"`
906 ComponentName string `protobuf:"bytes,3,opt,name=component_name,json=componentName,proto3" json:"component_name,omitempty"`
907 XXX_NoUnkeyedLiteral struct{} `json:"-"`
908 XXX_unrecognized []byte `json:"-"`
909 XXX_sizecache int32 `json:"-"`
910}
911
912func (m *EventMetaData) Reset() { *m = EventMetaData{} }
913func (m *EventMetaData) String() string { return proto.CompactTextString(m) }
914func (*EventMetaData) ProtoMessage() {}
915func (*EventMetaData) Descriptor() ([]byte, []int) {
916 return fileDescriptor_8962d785556e9979, []int{9}
917}
918
919func (m *EventMetaData) XXX_Unmarshal(b []byte) error {
920 return xxx_messageInfo_EventMetaData.Unmarshal(m, b)
921}
922func (m *EventMetaData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
923 return xxx_messageInfo_EventMetaData.Marshal(b, m, deterministic)
924}
925func (m *EventMetaData) XXX_Merge(src proto.Message) {
926 xxx_messageInfo_EventMetaData.Merge(m, src)
927}
928func (m *EventMetaData) XXX_Size() int {
929 return xxx_messageInfo_EventMetaData.Size(m)
930}
931func (m *EventMetaData) XXX_DiscardUnknown() {
932 xxx_messageInfo_EventMetaData.DiscardUnknown(m)
933}
934
935var xxx_messageInfo_EventMetaData proto.InternalMessageInfo
936
937func (m *EventMetaData) GetDeviceUuid() *Uuid {
938 if m != nil {
939 return m.DeviceUuid
940 }
941 return nil
942}
943
944func (m *EventMetaData) GetComponentUuid() *Uuid {
945 if m != nil {
946 return m.ComponentUuid
947 }
948 return nil
949}
950
951func (m *EventMetaData) GetComponentName() string {
952 if m != nil {
953 return m.ComponentName
954 }
955 return ""
956}
957
Amit Ghoshe45d9972025-06-26 14:52:48 +0200958type AdminStateChange struct {
959 Old ComponentAdminState `protobuf:"varint,1,opt,name=old,proto3,enum=dmi.ComponentAdminState" json:"old,omitempty"`
960 New ComponentAdminState `protobuf:"varint,2,opt,name=new,proto3,enum=dmi.ComponentAdminState" json:"new,omitempty"`
961 XXX_NoUnkeyedLiteral struct{} `json:"-"`
962 XXX_unrecognized []byte `json:"-"`
963 XXX_sizecache int32 `json:"-"`
964}
965
966func (m *AdminStateChange) Reset() { *m = AdminStateChange{} }
967func (m *AdminStateChange) String() string { return proto.CompactTextString(m) }
968func (*AdminStateChange) ProtoMessage() {}
969func (*AdminStateChange) Descriptor() ([]byte, []int) {
970 return fileDescriptor_8962d785556e9979, []int{10}
971}
972
973func (m *AdminStateChange) XXX_Unmarshal(b []byte) error {
974 return xxx_messageInfo_AdminStateChange.Unmarshal(m, b)
975}
976func (m *AdminStateChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
977 return xxx_messageInfo_AdminStateChange.Marshal(b, m, deterministic)
978}
979func (m *AdminStateChange) XXX_Merge(src proto.Message) {
980 xxx_messageInfo_AdminStateChange.Merge(m, src)
981}
982func (m *AdminStateChange) XXX_Size() int {
983 return xxx_messageInfo_AdminStateChange.Size(m)
984}
985func (m *AdminStateChange) XXX_DiscardUnknown() {
986 xxx_messageInfo_AdminStateChange.DiscardUnknown(m)
987}
988
989var xxx_messageInfo_AdminStateChange proto.InternalMessageInfo
990
991func (m *AdminStateChange) GetOld() ComponentAdminState {
992 if m != nil {
993 return m.Old
994 }
995 return ComponentAdminState_COMP_ADMIN_STATE_UNDEFINED
996}
997
998func (m *AdminStateChange) GetNew() ComponentAdminState {
999 if m != nil {
1000 return m.New
1001 }
1002 return ComponentAdminState_COMP_ADMIN_STATE_UNDEFINED
1003}
1004
1005type OperStateChange struct {
1006 Old ComponentOperState `protobuf:"varint,1,opt,name=old,proto3,enum=dmi.ComponentOperState" json:"old,omitempty"`
1007 New ComponentOperState `protobuf:"varint,2,opt,name=new,proto3,enum=dmi.ComponentOperState" json:"new,omitempty"`
1008 XXX_NoUnkeyedLiteral struct{} `json:"-"`
1009 XXX_unrecognized []byte `json:"-"`
1010 XXX_sizecache int32 `json:"-"`
1011}
1012
1013func (m *OperStateChange) Reset() { *m = OperStateChange{} }
1014func (m *OperStateChange) String() string { return proto.CompactTextString(m) }
1015func (*OperStateChange) ProtoMessage() {}
1016func (*OperStateChange) Descriptor() ([]byte, []int) {
1017 return fileDescriptor_8962d785556e9979, []int{11}
1018}
1019
1020func (m *OperStateChange) XXX_Unmarshal(b []byte) error {
1021 return xxx_messageInfo_OperStateChange.Unmarshal(m, b)
1022}
1023func (m *OperStateChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1024 return xxx_messageInfo_OperStateChange.Marshal(b, m, deterministic)
1025}
1026func (m *OperStateChange) XXX_Merge(src proto.Message) {
1027 xxx_messageInfo_OperStateChange.Merge(m, src)
1028}
1029func (m *OperStateChange) XXX_Size() int {
1030 return xxx_messageInfo_OperStateChange.Size(m)
1031}
1032func (m *OperStateChange) XXX_DiscardUnknown() {
1033 xxx_messageInfo_OperStateChange.DiscardUnknown(m)
1034}
1035
1036var xxx_messageInfo_OperStateChange proto.InternalMessageInfo
1037
1038func (m *OperStateChange) GetOld() ComponentOperState {
1039 if m != nil {
1040 return m.Old
1041 }
1042 return ComponentOperState_COMP_OPER_STATE_UNDEFINED
1043}
1044
1045func (m *OperStateChange) GetNew() ComponentOperState {
1046 if m != nil {
1047 return m.New
1048 }
1049 return ComponentOperState_COMP_OPER_STATE_UNDEFINED
1050}
1051
1052type AlarmStateChange struct {
1053 Old ComponentAlarmState `protobuf:"varint,1,opt,name=old,proto3,enum=dmi.ComponentAlarmState" json:"old,omitempty"`
1054 New ComponentAlarmState `protobuf:"varint,2,opt,name=new,proto3,enum=dmi.ComponentAlarmState" json:"new,omitempty"`
1055 XXX_NoUnkeyedLiteral struct{} `json:"-"`
1056 XXX_unrecognized []byte `json:"-"`
1057 XXX_sizecache int32 `json:"-"`
1058}
1059
1060func (m *AlarmStateChange) Reset() { *m = AlarmStateChange{} }
1061func (m *AlarmStateChange) String() string { return proto.CompactTextString(m) }
1062func (*AlarmStateChange) ProtoMessage() {}
1063func (*AlarmStateChange) Descriptor() ([]byte, []int) {
1064 return fileDescriptor_8962d785556e9979, []int{12}
1065}
1066
1067func (m *AlarmStateChange) XXX_Unmarshal(b []byte) error {
1068 return xxx_messageInfo_AlarmStateChange.Unmarshal(m, b)
1069}
1070func (m *AlarmStateChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1071 return xxx_messageInfo_AlarmStateChange.Marshal(b, m, deterministic)
1072}
1073func (m *AlarmStateChange) XXX_Merge(src proto.Message) {
1074 xxx_messageInfo_AlarmStateChange.Merge(m, src)
1075}
1076func (m *AlarmStateChange) XXX_Size() int {
1077 return xxx_messageInfo_AlarmStateChange.Size(m)
1078}
1079func (m *AlarmStateChange) XXX_DiscardUnknown() {
1080 xxx_messageInfo_AlarmStateChange.DiscardUnknown(m)
1081}
1082
1083var xxx_messageInfo_AlarmStateChange proto.InternalMessageInfo
1084
1085func (m *AlarmStateChange) GetOld() ComponentAlarmState {
1086 if m != nil {
1087 return m.Old
1088 }
1089 return ComponentAlarmState_COMP_ALARM_STATE_UNDEFINED
1090}
1091
1092func (m *AlarmStateChange) GetNew() ComponentAlarmState {
1093 if m != nil {
1094 return m.New
1095 }
1096 return ComponentAlarmState_COMP_ALARM_STATE_UNDEFINED
1097}
1098
1099type UsageStateChange struct {
1100 Old ComponentUsageState `protobuf:"varint,1,opt,name=old,proto3,enum=dmi.ComponentUsageState" json:"old,omitempty"`
1101 New ComponentUsageState `protobuf:"varint,2,opt,name=new,proto3,enum=dmi.ComponentUsageState" json:"new,omitempty"`
1102 XXX_NoUnkeyedLiteral struct{} `json:"-"`
1103 XXX_unrecognized []byte `json:"-"`
1104 XXX_sizecache int32 `json:"-"`
1105}
1106
1107func (m *UsageStateChange) Reset() { *m = UsageStateChange{} }
1108func (m *UsageStateChange) String() string { return proto.CompactTextString(m) }
1109func (*UsageStateChange) ProtoMessage() {}
1110func (*UsageStateChange) Descriptor() ([]byte, []int) {
1111 return fileDescriptor_8962d785556e9979, []int{13}
1112}
1113
1114func (m *UsageStateChange) XXX_Unmarshal(b []byte) error {
1115 return xxx_messageInfo_UsageStateChange.Unmarshal(m, b)
1116}
1117func (m *UsageStateChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1118 return xxx_messageInfo_UsageStateChange.Marshal(b, m, deterministic)
1119}
1120func (m *UsageStateChange) XXX_Merge(src proto.Message) {
1121 xxx_messageInfo_UsageStateChange.Merge(m, src)
1122}
1123func (m *UsageStateChange) XXX_Size() int {
1124 return xxx_messageInfo_UsageStateChange.Size(m)
1125}
1126func (m *UsageStateChange) XXX_DiscardUnknown() {
1127 xxx_messageInfo_UsageStateChange.DiscardUnknown(m)
1128}
1129
1130var xxx_messageInfo_UsageStateChange proto.InternalMessageInfo
1131
1132func (m *UsageStateChange) GetOld() ComponentUsageState {
1133 if m != nil {
1134 return m.Old
1135 }
1136 return ComponentUsageState_COMP_USAGE_STATE_UNDEFINED
1137}
1138
1139func (m *UsageStateChange) GetNew() ComponentUsageState {
1140 if m != nil {
1141 return m.New
1142 }
1143 return ComponentUsageState_COMP_USAGE_STATE_UNDEFINED
1144}
1145
1146type StandbyStateChange struct {
1147 Old ComponentStandbyState `protobuf:"varint,1,opt,name=old,proto3,enum=dmi.ComponentStandbyState" json:"old,omitempty"`
1148 New ComponentStandbyState `protobuf:"varint,2,opt,name=new,proto3,enum=dmi.ComponentStandbyState" json:"new,omitempty"`
1149 XXX_NoUnkeyedLiteral struct{} `json:"-"`
1150 XXX_unrecognized []byte `json:"-"`
1151 XXX_sizecache int32 `json:"-"`
1152}
1153
1154func (m *StandbyStateChange) Reset() { *m = StandbyStateChange{} }
1155func (m *StandbyStateChange) String() string { return proto.CompactTextString(m) }
1156func (*StandbyStateChange) ProtoMessage() {}
1157func (*StandbyStateChange) Descriptor() ([]byte, []int) {
1158 return fileDescriptor_8962d785556e9979, []int{14}
1159}
1160
1161func (m *StandbyStateChange) XXX_Unmarshal(b []byte) error {
1162 return xxx_messageInfo_StandbyStateChange.Unmarshal(m, b)
1163}
1164func (m *StandbyStateChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1165 return xxx_messageInfo_StandbyStateChange.Marshal(b, m, deterministic)
1166}
1167func (m *StandbyStateChange) XXX_Merge(src proto.Message) {
1168 xxx_messageInfo_StandbyStateChange.Merge(m, src)
1169}
1170func (m *StandbyStateChange) XXX_Size() int {
1171 return xxx_messageInfo_StandbyStateChange.Size(m)
1172}
1173func (m *StandbyStateChange) XXX_DiscardUnknown() {
1174 xxx_messageInfo_StandbyStateChange.DiscardUnknown(m)
1175}
1176
1177var xxx_messageInfo_StandbyStateChange proto.InternalMessageInfo
1178
1179func (m *StandbyStateChange) GetOld() ComponentStandbyState {
1180 if m != nil {
1181 return m.Old
1182 }
1183 return ComponentStandbyState_COMP_STANDBY_STATE_UNDEFINED
1184}
1185
1186func (m *StandbyStateChange) GetNew() ComponentStandbyState {
1187 if m != nil {
1188 return m.New
1189 }
1190 return ComponentStandbyState_COMP_STANDBY_STATE_UNDEFINED
1191}
1192
1193type StateChangeInfo struct {
1194 // Types that are valid to be assigned to StateChange:
1195 // *StateChangeInfo_AdminStateChange
1196 // *StateChangeInfo_OperStateChange
1197 // *StateChangeInfo_AlarmStateChange
1198 // *StateChangeInfo_UsageStateChange
1199 // *StateChangeInfo_StandbyStateChange
1200 StateChange isStateChangeInfo_StateChange `protobuf_oneof:"state_change"`
1201 XXX_NoUnkeyedLiteral struct{} `json:"-"`
1202 XXX_unrecognized []byte `json:"-"`
1203 XXX_sizecache int32 `json:"-"`
1204}
1205
1206func (m *StateChangeInfo) Reset() { *m = StateChangeInfo{} }
1207func (m *StateChangeInfo) String() string { return proto.CompactTextString(m) }
1208func (*StateChangeInfo) ProtoMessage() {}
1209func (*StateChangeInfo) Descriptor() ([]byte, []int) {
1210 return fileDescriptor_8962d785556e9979, []int{15}
1211}
1212
1213func (m *StateChangeInfo) XXX_Unmarshal(b []byte) error {
1214 return xxx_messageInfo_StateChangeInfo.Unmarshal(m, b)
1215}
1216func (m *StateChangeInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1217 return xxx_messageInfo_StateChangeInfo.Marshal(b, m, deterministic)
1218}
1219func (m *StateChangeInfo) XXX_Merge(src proto.Message) {
1220 xxx_messageInfo_StateChangeInfo.Merge(m, src)
1221}
1222func (m *StateChangeInfo) XXX_Size() int {
1223 return xxx_messageInfo_StateChangeInfo.Size(m)
1224}
1225func (m *StateChangeInfo) XXX_DiscardUnknown() {
1226 xxx_messageInfo_StateChangeInfo.DiscardUnknown(m)
1227}
1228
1229var xxx_messageInfo_StateChangeInfo proto.InternalMessageInfo
1230
1231type isStateChangeInfo_StateChange interface {
1232 isStateChangeInfo_StateChange()
1233}
1234
1235type StateChangeInfo_AdminStateChange struct {
1236 AdminStateChange *AdminStateChange `protobuf:"bytes,1,opt,name=admin_state_change,json=adminStateChange,proto3,oneof"`
1237}
1238
1239type StateChangeInfo_OperStateChange struct {
1240 OperStateChange *OperStateChange `protobuf:"bytes,2,opt,name=oper_state_change,json=operStateChange,proto3,oneof"`
1241}
1242
1243type StateChangeInfo_AlarmStateChange struct {
1244 AlarmStateChange *AlarmStateChange `protobuf:"bytes,3,opt,name=alarm_state_change,json=alarmStateChange,proto3,oneof"`
1245}
1246
1247type StateChangeInfo_UsageStateChange struct {
1248 UsageStateChange *UsageStateChange `protobuf:"bytes,4,opt,name=usage_state_change,json=usageStateChange,proto3,oneof"`
1249}
1250
1251type StateChangeInfo_StandbyStateChange struct {
1252 StandbyStateChange *StandbyStateChange `protobuf:"bytes,5,opt,name=standby_state_change,json=standbyStateChange,proto3,oneof"`
1253}
1254
1255func (*StateChangeInfo_AdminStateChange) isStateChangeInfo_StateChange() {}
1256
1257func (*StateChangeInfo_OperStateChange) isStateChangeInfo_StateChange() {}
1258
1259func (*StateChangeInfo_AlarmStateChange) isStateChangeInfo_StateChange() {}
1260
1261func (*StateChangeInfo_UsageStateChange) isStateChangeInfo_StateChange() {}
1262
1263func (*StateChangeInfo_StandbyStateChange) isStateChangeInfo_StateChange() {}
1264
1265func (m *StateChangeInfo) GetStateChange() isStateChangeInfo_StateChange {
1266 if m != nil {
1267 return m.StateChange
1268 }
1269 return nil
1270}
1271
1272func (m *StateChangeInfo) GetAdminStateChange() *AdminStateChange {
1273 if x, ok := m.GetStateChange().(*StateChangeInfo_AdminStateChange); ok {
1274 return x.AdminStateChange
1275 }
1276 return nil
1277}
1278
1279func (m *StateChangeInfo) GetOperStateChange() *OperStateChange {
1280 if x, ok := m.GetStateChange().(*StateChangeInfo_OperStateChange); ok {
1281 return x.OperStateChange
1282 }
1283 return nil
1284}
1285
1286func (m *StateChangeInfo) GetAlarmStateChange() *AlarmStateChange {
1287 if x, ok := m.GetStateChange().(*StateChangeInfo_AlarmStateChange); ok {
1288 return x.AlarmStateChange
1289 }
1290 return nil
1291}
1292
1293func (m *StateChangeInfo) GetUsageStateChange() *UsageStateChange {
1294 if x, ok := m.GetStateChange().(*StateChangeInfo_UsageStateChange); ok {
1295 return x.UsageStateChange
1296 }
1297 return nil
1298}
1299
1300func (m *StateChangeInfo) GetStandbyStateChange() *StandbyStateChange {
1301 if x, ok := m.GetStateChange().(*StateChangeInfo_StandbyStateChange); ok {
1302 return x.StandbyStateChange
1303 }
1304 return nil
1305}
1306
1307// XXX_OneofWrappers is for the internal use of the proto package.
1308func (*StateChangeInfo) XXX_OneofWrappers() []interface{} {
1309 return []interface{}{
1310 (*StateChangeInfo_AdminStateChange)(nil),
1311 (*StateChangeInfo_OperStateChange)(nil),
1312 (*StateChangeInfo_AlarmStateChange)(nil),
1313 (*StateChangeInfo_UsageStateChange)(nil),
1314 (*StateChangeInfo_StandbyStateChange)(nil),
1315 }
1316}
1317
Amit Ghosh09f28362020-06-12 21:52:19 +01001318type Event struct {
1319 EventMetadata *EventMetaData `protobuf:"bytes,1,opt,name=event_metadata,json=eventMetadata,proto3" json:"event_metadata,omitempty"`
1320 EventId EventIds `protobuf:"varint,2,opt,name=event_id,json=eventId,proto3,enum=dmi.EventIds" json:"event_id,omitempty"`
1321 RaisedTs *timestamp.Timestamp `protobuf:"bytes,3,opt,name=raised_ts,json=raisedTs,proto3" json:"raised_ts,omitempty"`
1322 // Optional threshold information for an event
1323 ThresholdInfo *ThresholdInformation `protobuf:"bytes,4,opt,name=threshold_info,json=thresholdInfo,proto3" json:"threshold_info,omitempty"`
1324 // Any additional info regarding the event
Amit Ghoshe45d9972025-06-26 14:52:48 +02001325 AddInfo string `protobuf:"bytes,5,opt,name=add_info,json=addInfo,proto3" json:"add_info,omitempty"`
1326 StateChangeInfo *StateChangeInfo `protobuf:"bytes,6,opt,name=state_change_info,json=stateChangeInfo,proto3" json:"state_change_info,omitempty"`
1327 XXX_NoUnkeyedLiteral struct{} `json:"-"`
1328 XXX_unrecognized []byte `json:"-"`
1329 XXX_sizecache int32 `json:"-"`
Amit Ghosh09f28362020-06-12 21:52:19 +01001330}
1331
1332func (m *Event) Reset() { *m = Event{} }
1333func (m *Event) String() string { return proto.CompactTextString(m) }
1334func (*Event) ProtoMessage() {}
1335func (*Event) Descriptor() ([]byte, []int) {
Amit Ghoshe45d9972025-06-26 14:52:48 +02001336 return fileDescriptor_8962d785556e9979, []int{16}
Amit Ghosh09f28362020-06-12 21:52:19 +01001337}
1338
1339func (m *Event) XXX_Unmarshal(b []byte) error {
1340 return xxx_messageInfo_Event.Unmarshal(m, b)
1341}
1342func (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1343 return xxx_messageInfo_Event.Marshal(b, m, deterministic)
1344}
1345func (m *Event) XXX_Merge(src proto.Message) {
1346 xxx_messageInfo_Event.Merge(m, src)
1347}
1348func (m *Event) XXX_Size() int {
1349 return xxx_messageInfo_Event.Size(m)
1350}
1351func (m *Event) XXX_DiscardUnknown() {
1352 xxx_messageInfo_Event.DiscardUnknown(m)
1353}
1354
1355var xxx_messageInfo_Event proto.InternalMessageInfo
1356
1357func (m *Event) GetEventMetadata() *EventMetaData {
1358 if m != nil {
1359 return m.EventMetadata
1360 }
1361 return nil
1362}
1363
1364func (m *Event) GetEventId() EventIds {
1365 if m != nil {
1366 return m.EventId
1367 }
1368 return EventIds_EVENT_NAME_UNDEFINED
1369}
1370
1371func (m *Event) GetRaisedTs() *timestamp.Timestamp {
1372 if m != nil {
1373 return m.RaisedTs
1374 }
1375 return nil
1376}
1377
1378func (m *Event) GetThresholdInfo() *ThresholdInformation {
1379 if m != nil {
1380 return m.ThresholdInfo
1381 }
1382 return nil
1383}
1384
1385func (m *Event) GetAddInfo() string {
1386 if m != nil {
1387 return m.AddInfo
1388 }
1389 return ""
1390}
1391
Amit Ghoshe45d9972025-06-26 14:52:48 +02001392func (m *Event) GetStateChangeInfo() *StateChangeInfo {
1393 if m != nil {
1394 return m.StateChangeInfo
1395 }
1396 return nil
1397}
1398
Amit Ghosh09f28362020-06-12 21:52:19 +01001399func init() {
1400 proto.RegisterEnum("dmi.EventIds", EventIds_name, EventIds_value)
amit.ghoshae473032021-01-10 11:59:10 +01001401 proto.RegisterEnum("dmi.ListEventsResponse_Reason", ListEventsResponse_Reason_name, ListEventsResponse_Reason_value)
1402 proto.RegisterEnum("dmi.EventsConfigurationResponse_Reason", EventsConfigurationResponse_Reason_name, EventsConfigurationResponse_Reason_value)
Amit Ghosh09f28362020-06-12 21:52:19 +01001403 proto.RegisterType((*ValueType)(nil), "dmi.ValueType")
1404 proto.RegisterType((*WaterMarks)(nil), "dmi.WaterMarks")
1405 proto.RegisterType((*Thresholds)(nil), "dmi.Thresholds")
1406 proto.RegisterType((*ThresholdInformation)(nil), "dmi.ThresholdInformation")
1407 proto.RegisterType((*EventCfg)(nil), "dmi.EventCfg")
1408 proto.RegisterType((*EventsCfg)(nil), "dmi.EventsCfg")
1409 proto.RegisterType((*ListEventsResponse)(nil), "dmi.ListEventsResponse")
1410 proto.RegisterType((*EventsConfigurationRequest)(nil), "dmi.EventsConfigurationRequest")
1411 proto.RegisterType((*EventsConfigurationResponse)(nil), "dmi.EventsConfigurationResponse")
1412 proto.RegisterType((*EventMetaData)(nil), "dmi.EventMetaData")
Amit Ghoshe45d9972025-06-26 14:52:48 +02001413 proto.RegisterType((*AdminStateChange)(nil), "dmi.AdminStateChange")
1414 proto.RegisterType((*OperStateChange)(nil), "dmi.OperStateChange")
1415 proto.RegisterType((*AlarmStateChange)(nil), "dmi.AlarmStateChange")
1416 proto.RegisterType((*UsageStateChange)(nil), "dmi.UsageStateChange")
1417 proto.RegisterType((*StandbyStateChange)(nil), "dmi.StandbyStateChange")
1418 proto.RegisterType((*StateChangeInfo)(nil), "dmi.StateChangeInfo")
Amit Ghosh09f28362020-06-12 21:52:19 +01001419 proto.RegisterType((*Event)(nil), "dmi.Event")
1420}
1421
1422func init() { proto.RegisterFile("dmi/hw_events_mgmt_service.proto", fileDescriptor_8962d785556e9979) }
1423
1424var fileDescriptor_8962d785556e9979 = []byte{
Amit Ghoshe45d9972025-06-26 14:52:48 +02001425 // 2015 bytes of a gzipped FileDescriptorProto
1426 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x58, 0x4b, 0x73, 0xdb, 0xc8,
1427 0x11, 0x26, 0x09, 0x51, 0x96, 0x5a, 0x16, 0x0d, 0x4f, 0x69, 0x2d, 0x89, 0x8a, 0x6d, 0x85, 0xde,
1428 0x5d, 0xc9, 0x8a, 0x4d, 0x6a, 0x65, 0xc7, 0x8e, 0x6b, 0x0f, 0x59, 0x90, 0x84, 0x4c, 0x96, 0x49,
1429 0x40, 0x35, 0x04, 0xa9, 0x38, 0x87, 0x45, 0x41, 0xc2, 0x90, 0xc2, 0x9a, 0x00, 0xb8, 0x00, 0x28,
1430 0x45, 0x49, 0x55, 0x2a, 0x39, 0xe5, 0x9a, 0xc7, 0xe6, 0x94, 0x54, 0x7e, 0x41, 0x36, 0x39, 0xe5,
1431 0xb6, 0x79, 0x1c, 0x72, 0xc8, 0xe3, 0x0f, 0x24, 0x3f, 0x22, 0xb7, 0xbc, 0xdf, 0x05, 0x0c, 0x48,
1432 0x0c, 0xc1, 0x97, 0x5c, 0xb5, 0x37, 0xb1, 0xfb, 0xeb, 0xef, 0xeb, 0x99, 0xee, 0x69, 0x8c, 0x06,
1433 0xb6, 0x75, 0xd3, 0x28, 0x9c, 0x5d, 0xa8, 0xe4, 0x9c, 0x58, 0x9e, 0xab, 0x9a, 0x1d, 0xd3, 0x53,
1434 0x5d, 0xe2, 0x9c, 0x1b, 0xa7, 0x24, 0xdf, 0x73, 0x6c, 0xcf, 0x46, 0x9c, 0x6e, 0x1a, 0xd9, 0x9b,
1435 0x3e, 0xec, 0xd4, 0x36, 0x4d, 0xdb, 0x72, 0xa9, 0x3d, 0x7b, 0x9d, 0x46, 0x86, 0xbf, 0xee, 0x76,
1436 0x6c, 0xbb, 0xd3, 0x25, 0x85, 0xe0, 0xd7, 0x49, 0xbf, 0x5d, 0xf0, 0x0c, 0x93, 0xb8, 0x9e, 0x66,
1437 0xf6, 0x42, 0xc0, 0x56, 0x1c, 0x40, 0xcc, 0x9e, 0x77, 0x49, 0x9d, 0xb9, 0x1f, 0x24, 0x61, 0xb9,
1438 0xa5, 0x75, 0xfb, 0x44, 0xb9, 0xec, 0x11, 0xb4, 0x09, 0xd7, 0x0c, 0xcb, 0x53, 0xcf, 0xb5, 0xee,
1439 0x46, 0x72, 0x3b, 0xb9, 0xcb, 0x55, 0x12, 0x78, 0xd1, 0xb0, 0xbc, 0x96, 0xd6, 0x45, 0x5b, 0xb0,
1440 0xd4, 0x1f, 0xf8, 0x52, 0xdb, 0xc9, 0xdd, 0x85, 0x4a, 0x02, 0x5f, 0xeb, 0x87, 0xce, 0xdb, 0xb0,
1441 0xdc, 0xee, 0xda, 0x1a, 0xf5, 0x72, 0xdb, 0xc9, 0xdd, 0x54, 0x25, 0x81, 0x97, 0x02, 0x93, 0xef,
1442 0xde, 0x87, 0x65, 0xef, 0xb2, 0x47, 0xe4, 0x76, 0x4b, 0xeb, 0x6e, 0x2c, 0x6c, 0x27, 0x77, 0x33,
1443 0x07, 0x28, 0xaf, 0x9b, 0x46, 0xbe, 0xac, 0x79, 0xda, 0x50, 0x1d, 0x47, 0xa0, 0x62, 0x1a, 0xb8,
1444 0x73, 0xad, 0x9b, 0xc3, 0x00, 0xc7, 0x9a, 0x47, 0x9c, 0xba, 0xe6, 0xbc, 0x72, 0x51, 0x0e, 0x16,
1445 0xce, 0x8c, 0xce, 0x59, 0x90, 0xda, 0xca, 0x41, 0x26, 0x60, 0x88, 0xa2, 0x03, 0x1f, 0xda, 0x06,
1446 0xae, 0x6b, 0x5f, 0x04, 0x19, 0x8e, 0x43, 0x7c, 0x57, 0xee, 0x15, 0x80, 0x72, 0xe6, 0x10, 0xf7,
1447 0xcc, 0xee, 0xea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0xa4, 0x0d, 0x8f, 0x98, 0xee, 0x46, 0x72, 0x9b, 0xdb, 0x5d, 0x61,
1459 0x73, 0x2f, 0xb5, 0x3b, 0x98, 0xfa, 0x72, 0x3f, 0x4a, 0x01, 0xaa, 0x19, 0xae, 0x47, 0xc3, 0x30,
1460 0x71, 0x7b, 0xb6, 0xe5, 0x12, 0x74, 0x0f, 0x16, 0x5d, 0x4f, 0xf3, 0xfa, 0x6e, 0xb8, 0xf0, 0x95,
1461 0x20, 0xb8, 0x11, 0x98, 0x70, 0xe8, 0x42, 0x4f, 0x60, 0xd1, 0x21, 0x9a, 0x6b, 0x5b, 0xc1, 0x72,
1462 0x33, 0x07, 0x77, 0x02, 0xd0, 0x38, 0x5b, 0x1e, 0x07, 0x28, 0x1c, 0xa2, 0xd1, 0xdb, 0xb0, 0x48,
1463 0x0f, 0x71, 0xb8, 0x09, 0x99, 0x28, 0x33, 0x3f, 0x71, 0x1c, 0x7a, 0xfd, 0x5d, 0xa5, 0x11, 0xaa,
1464 0x4e, 0x3c, 0xcd, 0xa0, 0x47, 0x61, 0x19, 0x5f, 0xa7, 0xc6, 0x72, 0x60, 0xcb, 0xbd, 0x0f, 0x8b,
1465 0x94, 0x1e, 0xad, 0x01, 0xdf, 0x94, 0xca, 0xe2, 0x61, 0x55, 0x12, 0xcb, 0x2a, 0x16, 0x85, 0x86,
1466 0x2c, 0xf1, 0x09, 0x84, 0x20, 0xd3, 0x94, 0x5e, 0x48, 0xf2, 0xb1, 0xa4, 0x96, 0xc5, 0x56, 0xb5,
1467 0x24, 0xf2, 0x49, 0xdf, 0x56, 0x95, 0x14, 0x11, 0x4b, 0x42, 0x4d, 0x15, 0x31, 0x96, 0x31, 0x9f,
1468 0x42, 0xb7, 0x00, 0x51, 0xbf, 0xda, 0x94, 0xb0, 0x28, 0x94, 0x2a, 0x42, 0xb1, 0x26, 0xf2, 0x5c,
1469 0xee, 0xe3, 0x24, 0x64, 0xc3, 0xd4, 0xc2, 0x52, 0x06, 0x1d, 0x89, 0xc9, 0x87, 0x7d, 0xe2, 0x7a,
1470 0x68, 0x0f, 0x56, 0x74, 0xe2, 0xcf, 0x20, 0x5a, 0xa0, 0x64, 0xbc, 0x40, 0x40, 0xbd, 0xfe, 0xdf,
1471 0x68, 0x0f, 0xae, 0x9d, 0x9e, 0x69, 0x56, 0x87, 0xb8, 0x23, 0xe7, 0x6d, 0xb8, 0x70, 0x7f, 0x42,
1472 0x84, 0x00, 0xb4, 0x07, 0xbc, 0x43, 0x5c, 0xe2, 0xa9, 0x9e, 0xad, 0xea, 0xa4, 0xad, 0xf5, 0xbb,
1473 0x5e, 0xb0, 0x5b, 0x4b, 0x95, 0x04, 0xce, 0x04, 0x1e, 0xc5, 0x2e, 0x53, 0xbb, 0x7f, 0x82, 0xec,
1474 0x1e, 0xa1, 0x79, 0xe5, 0x7e, 0x98, 0x82, 0xad, 0x89, 0xf9, 0xbe, 0x4e, 0x65, 0xbf, 0x18, 0xab,
1475 0xec, 0x0e, 0x9b, 0xe8, 0x24, 0xda, 0x78, 0x89, 0xc7, 0x4a, 0xc7, 0x4d, 0x28, 0x9d, 0xf3, 0x29,
1476 0x95, 0x2e, 0xb0, 0xb5, 0x84, 0x5a, 0xb5, 0xac, 0x96, 0x64, 0xe9, 0xb0, 0xfa, 0x9c, 0xe7, 0xa6,
1477 0x94, 0x73, 0x21, 0xf7, 0x51, 0x12, 0x56, 0x83, 0x75, 0xd4, 0x89, 0xa7, 0xf9, 0xe3, 0xf4, 0xb5,
1478 0x2a, 0x38, 0x7e, 0x22, 0x53, 0xb3, 0x4f, 0x24, 0x7a, 0x8b, 0x8d, 0xb0, 0x34, 0x93, 0x84, 0x3b,
1479 0x11, 0xc1, 0x24, 0xcd, 0x24, 0xb9, 0x0f, 0x80, 0x17, 0x74, 0xd3, 0xb0, 0xfc, 0x3a, 0x90, 0x52,
1480 0xd0, 0x03, 0x68, 0x0f, 0x38, 0xbb, 0x3b, 0x98, 0x3c, 0x1b, 0x81, 0x42, 0x69, 0x10, 0x14, 0x81,
1481 0xb1, 0x0f, 0xf2, 0xb1, 0x16, 0xb9, 0x08, 0xab, 0x35, 0x03, 0x6b, 0x91, 0x8b, 0x5c, 0x07, 0x6e,
1482 0xc8, 0x3d, 0xe2, 0xb0, 0x52, 0xf7, 0x59, 0xa9, 0xf5, 0xd1, 0xf0, 0x21, 0x96, 0x2a, 0xdd, 0x67,
1483 0x95, 0xa6, 0x43, 0x7d, 0x21, 0x7f, 0x51, 0x5d, 0xcd, 0x31, 0xaf, 0xbc, 0xa8, 0x21, 0xf8, 0x0a,
1484 0x8b, 0x62, 0xb0, 0xa1, 0x56, 0xd3, 0xd5, 0x3a, 0xe4, 0xaa, 0x5a, 0x11, 0x78, 0xbe, 0x16, 0x8b,
1485 0xf5, 0xb5, 0x7a, 0x80, 0x1a, 0x9e, 0x66, 0xe9, 0x27, 0x97, 0xac, 0xda, 0x03, 0x56, 0x2d, 0x3b,
1486 0xca, 0xc0, 0xc2, 0xa9, 0xde, 0x03, 0x56, 0x6f, 0x26, 0xda, 0x57, 0xfc, 0x16, 0x07, 0x37, 0x18,
1487 0x2d, 0xff, 0xcb, 0x88, 0x44, 0x40, 0x9a, 0x5f, 0x59, 0xd5, 0x3f, 0xb3, 0x44, 0xa5, 0x83, 0x23,
1488 0x6c, 0xdf, 0x37, 0x02, 0xc2, 0x78, 0x47, 0x55, 0x12, 0x98, 0xd7, 0xe2, 0x5d, 0x56, 0x84, 0x9b,
1489 0xfe, 0xf0, 0x18, 0x65, 0xa1, 0x5d, 0xbd, 0x16, 0xb0, 0xc4, 0x7a, 0xa5, 0x92, 0xc0, 0x37, 0xec,
1490 0x58, 0xfb, 0xf8, 0xa9, 0xf8, 0xf5, 0x18, 0x25, 0xe1, 0xd8, 0x54, 0x62, 0x7d, 0x10, 0xa4, 0x12,
1491 0xef, 0x0d, 0x11, 0x50, 0xdf, 0xdf, 0xea, 0x51, 0x9a, 0x05, 0x86, 0x26, 0x5e, 0x62, 0x9f, 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, 0xd1, 0xec, 0x79, 0x97, 0x59, 0x88, 0x98, 0xf6, 0x93, 0xc5,
1548 0x77, 0xbf, 0xfc, 0xac, 0x63, 0x78, 0x67, 0xfd, 0x93, 0xfc, 0xa9, 0x6d, 0x16, 0xec, 0x1e, 0xb1,
1549 0x4e, 0x6d, 0x47, 0x2f, 0xd0, 0x27, 0x89, 0x87, 0xe6, 0x70, 0xf5, 0x0f, 0x0d, 0xcb, 0x23, 0x4e,
1550 0x5b, 0x3b, 0x25, 0x85, 0xf3, 0x47, 0x85, 0x8e, 0x5d, 0xd0, 0x4d, 0xe3, 0x64, 0x31, 0xa0, 0x7e,
1551 0xf4, 0xff, 0x00, 0x00, 0x00, 0xff, 0xff, 0x1c, 0x32, 0xf3, 0xdf, 0x3a, 0x17, 0x00, 0x00,
Amit Ghosh09f28362020-06-12 21:52:19 +01001552}
1553
1554// Reference imports to suppress errors if they are not otherwise used.
1555var _ context.Context
1556var _ grpc.ClientConn
1557
1558// This is a compile-time assertion to ensure that this generated file
1559// is compatible with the grpc package it is being compiled against.
1560const _ = grpc.SupportPackageIsVersion4
1561
1562// NativeEventsManagementServiceClient is the client API for NativeEventsManagementService service.
1563//
1564// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
1565type NativeEventsManagementServiceClient interface {
1566 // List the supported events for the passed device
1567 ListEvents(ctx context.Context, in *HardwareID, opts ...grpc.CallOption) (*ListEventsResponse, error)
1568 // Updates the configuration of the list of events in the request
aghoshc301dcd2020-09-03 16:55:34 +01001569 // The default behavior of the device is to report all the supported events
Amit Ghosh09f28362020-06-12 21:52:19 +01001570 // This configuration is persisted across reboots of the device or the device manager
1571 UpdateEventsConfiguration(ctx context.Context, in *EventsConfigurationRequest, opts ...grpc.CallOption) (*EventsConfigurationResponse, error)
Chandrakanth Nalkudre Gowda68590a42021-04-22 15:19:21 +05301572 // Initiate the server streaming of the events
1573 StreamEvents(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (NativeEventsManagementService_StreamEventsClient, error)
Amit Ghosh09f28362020-06-12 21:52:19 +01001574}
1575
1576type nativeEventsManagementServiceClient struct {
1577 cc *grpc.ClientConn
1578}
1579
1580func NewNativeEventsManagementServiceClient(cc *grpc.ClientConn) NativeEventsManagementServiceClient {
1581 return &nativeEventsManagementServiceClient{cc}
1582}
1583
1584func (c *nativeEventsManagementServiceClient) ListEvents(ctx context.Context, in *HardwareID, opts ...grpc.CallOption) (*ListEventsResponse, error) {
1585 out := new(ListEventsResponse)
1586 err := c.cc.Invoke(ctx, "/dmi.NativeEventsManagementService/ListEvents", in, out, opts...)
1587 if err != nil {
1588 return nil, err
1589 }
1590 return out, nil
1591}
1592
1593func (c *nativeEventsManagementServiceClient) UpdateEventsConfiguration(ctx context.Context, in *EventsConfigurationRequest, opts ...grpc.CallOption) (*EventsConfigurationResponse, error) {
1594 out := new(EventsConfigurationResponse)
1595 err := c.cc.Invoke(ctx, "/dmi.NativeEventsManagementService/UpdateEventsConfiguration", in, out, opts...)
1596 if err != nil {
1597 return nil, err
1598 }
1599 return out, nil
1600}
1601
Chandrakanth Nalkudre Gowda68590a42021-04-22 15:19:21 +05301602func (c *nativeEventsManagementServiceClient) StreamEvents(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (NativeEventsManagementService_StreamEventsClient, error) {
1603 stream, err := c.cc.NewStream(ctx, &_NativeEventsManagementService_serviceDesc.Streams[0], "/dmi.NativeEventsManagementService/StreamEvents", opts...)
1604 if err != nil {
1605 return nil, err
1606 }
1607 x := &nativeEventsManagementServiceStreamEventsClient{stream}
1608 if err := x.ClientStream.SendMsg(in); err != nil {
1609 return nil, err
1610 }
1611 if err := x.ClientStream.CloseSend(); err != nil {
1612 return nil, err
1613 }
1614 return x, nil
1615}
1616
1617type NativeEventsManagementService_StreamEventsClient interface {
1618 Recv() (*Event, error)
1619 grpc.ClientStream
1620}
1621
1622type nativeEventsManagementServiceStreamEventsClient struct {
1623 grpc.ClientStream
1624}
1625
1626func (x *nativeEventsManagementServiceStreamEventsClient) Recv() (*Event, error) {
1627 m := new(Event)
1628 if err := x.ClientStream.RecvMsg(m); err != nil {
1629 return nil, err
1630 }
1631 return m, nil
1632}
1633
Amit Ghosh09f28362020-06-12 21:52:19 +01001634// NativeEventsManagementServiceServer is the server API for NativeEventsManagementService service.
1635type NativeEventsManagementServiceServer interface {
1636 // List the supported events for the passed device
1637 ListEvents(context.Context, *HardwareID) (*ListEventsResponse, error)
1638 // Updates the configuration of the list of events in the request
aghoshc301dcd2020-09-03 16:55:34 +01001639 // The default behavior of the device is to report all the supported events
Amit Ghosh09f28362020-06-12 21:52:19 +01001640 // This configuration is persisted across reboots of the device or the device manager
1641 UpdateEventsConfiguration(context.Context, *EventsConfigurationRequest) (*EventsConfigurationResponse, error)
Chandrakanth Nalkudre Gowda68590a42021-04-22 15:19:21 +05301642 // Initiate the server streaming of the events
1643 StreamEvents(*empty.Empty, NativeEventsManagementService_StreamEventsServer) error
Amit Ghosh09f28362020-06-12 21:52:19 +01001644}
1645
Andrea Campanellac795b7d2021-04-14 13:24:44 +02001646// UnimplementedNativeEventsManagementServiceServer can be embedded to have forward compatible implementations.
1647type UnimplementedNativeEventsManagementServiceServer struct {
1648}
1649
1650func (*UnimplementedNativeEventsManagementServiceServer) ListEvents(ctx context.Context, req *HardwareID) (*ListEventsResponse, error) {
1651 return nil, status.Errorf(codes.Unimplemented, "method ListEvents not implemented")
1652}
1653func (*UnimplementedNativeEventsManagementServiceServer) UpdateEventsConfiguration(ctx context.Context, req *EventsConfigurationRequest) (*EventsConfigurationResponse, error) {
1654 return nil, status.Errorf(codes.Unimplemented, "method UpdateEventsConfiguration not implemented")
1655}
Chandrakanth Nalkudre Gowda68590a42021-04-22 15:19:21 +05301656func (*UnimplementedNativeEventsManagementServiceServer) StreamEvents(req *empty.Empty, srv NativeEventsManagementService_StreamEventsServer) error {
1657 return status.Errorf(codes.Unimplemented, "method StreamEvents not implemented")
1658}
Andrea Campanellac795b7d2021-04-14 13:24:44 +02001659
Amit Ghosh09f28362020-06-12 21:52:19 +01001660func RegisterNativeEventsManagementServiceServer(s *grpc.Server, srv NativeEventsManagementServiceServer) {
1661 s.RegisterService(&_NativeEventsManagementService_serviceDesc, srv)
1662}
1663
1664func _NativeEventsManagementService_ListEvents_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1665 in := new(HardwareID)
1666 if err := dec(in); err != nil {
1667 return nil, err
1668 }
1669 if interceptor == nil {
1670 return srv.(NativeEventsManagementServiceServer).ListEvents(ctx, in)
1671 }
1672 info := &grpc.UnaryServerInfo{
1673 Server: srv,
1674 FullMethod: "/dmi.NativeEventsManagementService/ListEvents",
1675 }
1676 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1677 return srv.(NativeEventsManagementServiceServer).ListEvents(ctx, req.(*HardwareID))
1678 }
1679 return interceptor(ctx, in, info, handler)
1680}
1681
1682func _NativeEventsManagementService_UpdateEventsConfiguration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1683 in := new(EventsConfigurationRequest)
1684 if err := dec(in); err != nil {
1685 return nil, err
1686 }
1687 if interceptor == nil {
1688 return srv.(NativeEventsManagementServiceServer).UpdateEventsConfiguration(ctx, in)
1689 }
1690 info := &grpc.UnaryServerInfo{
1691 Server: srv,
1692 FullMethod: "/dmi.NativeEventsManagementService/UpdateEventsConfiguration",
1693 }
1694 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1695 return srv.(NativeEventsManagementServiceServer).UpdateEventsConfiguration(ctx, req.(*EventsConfigurationRequest))
1696 }
1697 return interceptor(ctx, in, info, handler)
1698}
1699
Chandrakanth Nalkudre Gowda68590a42021-04-22 15:19:21 +05301700func _NativeEventsManagementService_StreamEvents_Handler(srv interface{}, stream grpc.ServerStream) error {
1701 m := new(empty.Empty)
1702 if err := stream.RecvMsg(m); err != nil {
1703 return err
1704 }
1705 return srv.(NativeEventsManagementServiceServer).StreamEvents(m, &nativeEventsManagementServiceStreamEventsServer{stream})
1706}
1707
1708type NativeEventsManagementService_StreamEventsServer interface {
1709 Send(*Event) error
1710 grpc.ServerStream
1711}
1712
1713type nativeEventsManagementServiceStreamEventsServer struct {
1714 grpc.ServerStream
1715}
1716
1717func (x *nativeEventsManagementServiceStreamEventsServer) Send(m *Event) error {
1718 return x.ServerStream.SendMsg(m)
1719}
1720
Amit Ghosh09f28362020-06-12 21:52:19 +01001721var _NativeEventsManagementService_serviceDesc = grpc.ServiceDesc{
1722 ServiceName: "dmi.NativeEventsManagementService",
1723 HandlerType: (*NativeEventsManagementServiceServer)(nil),
1724 Methods: []grpc.MethodDesc{
1725 {
1726 MethodName: "ListEvents",
1727 Handler: _NativeEventsManagementService_ListEvents_Handler,
1728 },
1729 {
1730 MethodName: "UpdateEventsConfiguration",
1731 Handler: _NativeEventsManagementService_UpdateEventsConfiguration_Handler,
1732 },
1733 },
Chandrakanth Nalkudre Gowda68590a42021-04-22 15:19:21 +05301734 Streams: []grpc.StreamDesc{
1735 {
1736 StreamName: "StreamEvents",
1737 Handler: _NativeEventsManagementService_StreamEvents_Handler,
1738 ServerStreams: true,
1739 },
1740 },
Amit Ghosh09f28362020-06-12 21:52:19 +01001741 Metadata: "dmi/hw_events_mgmt_service.proto",
1742}