blob: 64dab0a3607e34c797c478bb647b72696244d3da [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 Ghoshd0151a32025-10-03 10:53:14 +0200106 // Generic event about a component, the payload contains GenericEventInfo in this case
107 // Use this event id only for events which do not have already a specific event id
108 EventIds_EVENT_COMPONENT_GENERIC_EVENT EventIds = 705
Amit Ghosh09f28362020-06-12 21:52:19 +0100109)
110
111var EventIds_name = map[int32]string{
112 0: "EVENT_NAME_UNDEFINED",
113 100: "EVENT_TRANSCEIVER_PLUG_OUT",
114 101: "EVENT_TRANSCEIVER_PLUG_IN",
115 102: "EVENT_TRANSCEIVER_VOLTAGE_ABOVE_THRESHOLD",
116 103: "EVENT_TRANSCEIVER_VOLTAGE_BELOW_THRESHOLD",
117 104: "EVENT_TRANSCEIVER_TEMPERATURE_ABOVE_THRESHOLD",
118 105: "EVENT_TRANSCEIVER_TEMPERATURE_BELOW_THRESHOLD",
119 106: "EVENT_TRANSCEIVER_CURRENT_ABOVE_THRESHOLD",
120 107: "EVENT_TRANSCEIVER_CURRENT_BELOW_THRESHOLD",
121 108: "EVENT_TRANSCEIVER_RX_POWER_ABOVE_THRESHOLD",
122 109: "EVENT_TRANSCEIVER_RX_POWER_BELOW_THRESHOLD",
123 110: "EVENT_TRANSCEIVER_TX_POWER_ABOVE_THRESHOLD",
124 111: "EVENT_TRANSCEIVER_TX_POWER_BELOW_THRESHOLD",
125 112: "EVENT_TRANSCEIVER_FAILURE",
Amit Ghosh9d6658d2020-06-25 10:43:30 +0100126 113: "EVENT_TRANSCEIVER_VOLTAGE_ABOVE_THRESHOLD_RECOVERED",
127 114: "EVENT_TRANSCEIVER_VOLTAGE_BELOW_THRESHOLD_RECOVERED",
128 115: "EVENT_TRANSCEIVER_TEMPERATURE_ABOVE_THRESHOLD_RECOVERED",
129 116: "EVENT_TRANSCEIVER_TEMPERATURE_BELOW_THRESHOLD_RECOVERED",
130 117: "EVENT_TRANSCEIVER_CURRENT_ABOVE_THRESHOLD_RECOVERED",
131 118: "EVENT_TRANSCEIVER_CURRENT_BELOW_THRESHOLD_RECOVERED",
132 119: "EVENT_TRANSCEIVER_RX_POWER_ABOVE_THRESHOLD_RECOVERED",
133 120: "EVENT_TRANSCEIVER_RX_POWER_BELOW_THRESHOLD_RECOVERED",
134 121: "EVENT_TRANSCEIVER_TX_POWER_ABOVE_THRESHOLD_RECOVERED",
135 122: "EVENT_TRANSCEIVER_TX_POWER_BELOW_THRESHOLD_RECOVERED",
136 123: "EVENT_TRANSCEIVER_FAILURE_RECOVERED",
Amit Ghosh09f28362020-06-12 21:52:19 +0100137 200: "EVENT_PSU_PLUG_OUT",
138 201: "EVENT_PSU_PLUG_IN",
139 202: "EVENT_PSU_FAILURE",
Amit Ghosh9d6658d2020-06-25 10:43:30 +0100140 203: "EVENT_PSU_FAILURE_RECOVERED",
Amit Ghosh09f28362020-06-12 21:52:19 +0100141 300: "EVENT_FAN_FAILURE",
142 301: "EVENT_FAN_PLUG_OUT",
143 302: "EVENT_FAN_PLUG_IN",
Amit Ghosh9d6658d2020-06-25 10:43:30 +0100144 303: "EVENT_FAN_FAILURE_RECOVERED",
Amit Ghosh09f28362020-06-12 21:52:19 +0100145 400: "EVENT_CPU_TEMPERATURE_ABOVE_CRITICAL",
146 401: "EVENT_CPU_TEMPERATURE_ABOVE_FATAL",
Amit Ghosh9d6658d2020-06-25 10:43:30 +0100147 402: "EVENT_CPU_TEMPERATURE_ABOVE_CRITICAL_RECOVERED",
148 403: "EVENT_CPU_TEMPERATURE_ABOVE_FATAL_RECOVERED",
amit.ghosh06f49782023-06-15 13:53:51 +0200149 404: "EVENT_CPU_USAGE_ABOVE_THRESHOLD",
150 405: "EVENT_CPU_USAGE_ABOVE_THRESHOLD_RECOVERED",
Amit Ghosh09f28362020-06-12 21:52:19 +0100151 500: "EVENT_HW_DEVICE_RESET",
152 501: "EVENT_HW_DEVICE_TEMPERATURE_ABOVE_CRITICAL",
153 502: "EVENT_HW_DEVICE_TEMPERATURE_ABOVE_FATAL",
Amit Ghosh9d6658d2020-06-25 10:43:30 +0100154 503: "EVENT_HW_DEVICE_TEMPERATURE_ABOVE_CRITICAL_RECOVERED",
155 504: "EVENT_HW_DEVICE_TEMPERATURE_ABOVE_FATAL_RECOVERED",
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +0530156 505: "EVENT_HW_DEVICE_REBOOT",
amit.ghosh8fe610f2022-01-14 17:44:53 +0100157 506: "EVENT_HW_TEMPERATURE_SENSOR_FAILED",
158 507: "EVENT_HW_ALL_TEMPERATURE_SENSORS_FAILED",
amit.ghosh06f49782023-06-15 13:53:51 +0200159 508: "EVENT_HW_DISK_USAGE_ABOVE_THRESHOLD",
160 509: "EVENT_HW_DISK_USAGE_ABOVE_THRESHOLD_RECOVERED",
161 510: "EVENT_HW_MEMORY_USAGE_ABOVE_THRESHOLD",
162 511: "EVENT_HW_MEMORY_USAGE_ABOVE_THRESHOLD_RECOVERED",
163 512: "EVENT_HW_NTP_SYNC_FAILURE",
164 513: "EVENT_HW_NTP_SYNC_FAILURE_RECOVERED",
amit.ghoshc0c3c242022-03-16 11:00:27 +0100165 600: "EVENT_LINE_CARD_PLUG_OUT",
166 601: "EVENT_LINE_CARD_PLUG_IN",
Amit Ghoshe45d9972025-06-26 14:52:48 +0200167 700: "EVENT_COMPONENT_ADMIN_STATE_CHANGED",
168 701: "EVENT_COMPONENT_OPER_STATE_CHANGED",
169 702: "EVENT_COMPONENT_ALARM_STATE_CHANGED",
170 703: "EVENT_COMPONENT_USAGE_STATE_CHANGED",
171 704: "EVENT_COMPONENT_STANDBY_STATE_CHANGED",
Amit Ghoshd0151a32025-10-03 10:53:14 +0200172 705: "EVENT_COMPONENT_GENERIC_EVENT",
Amit Ghosh09f28362020-06-12 21:52:19 +0100173}
174
175var EventIds_value = map[string]int32{
Amit Ghosh9d6658d2020-06-25 10:43:30 +0100176 "EVENT_NAME_UNDEFINED": 0,
177 "EVENT_TRANSCEIVER_PLUG_OUT": 100,
178 "EVENT_TRANSCEIVER_PLUG_IN": 101,
179 "EVENT_TRANSCEIVER_VOLTAGE_ABOVE_THRESHOLD": 102,
180 "EVENT_TRANSCEIVER_VOLTAGE_BELOW_THRESHOLD": 103,
181 "EVENT_TRANSCEIVER_TEMPERATURE_ABOVE_THRESHOLD": 104,
182 "EVENT_TRANSCEIVER_TEMPERATURE_BELOW_THRESHOLD": 105,
183 "EVENT_TRANSCEIVER_CURRENT_ABOVE_THRESHOLD": 106,
184 "EVENT_TRANSCEIVER_CURRENT_BELOW_THRESHOLD": 107,
185 "EVENT_TRANSCEIVER_RX_POWER_ABOVE_THRESHOLD": 108,
186 "EVENT_TRANSCEIVER_RX_POWER_BELOW_THRESHOLD": 109,
187 "EVENT_TRANSCEIVER_TX_POWER_ABOVE_THRESHOLD": 110,
188 "EVENT_TRANSCEIVER_TX_POWER_BELOW_THRESHOLD": 111,
189 "EVENT_TRANSCEIVER_FAILURE": 112,
190 "EVENT_TRANSCEIVER_VOLTAGE_ABOVE_THRESHOLD_RECOVERED": 113,
191 "EVENT_TRANSCEIVER_VOLTAGE_BELOW_THRESHOLD_RECOVERED": 114,
192 "EVENT_TRANSCEIVER_TEMPERATURE_ABOVE_THRESHOLD_RECOVERED": 115,
193 "EVENT_TRANSCEIVER_TEMPERATURE_BELOW_THRESHOLD_RECOVERED": 116,
194 "EVENT_TRANSCEIVER_CURRENT_ABOVE_THRESHOLD_RECOVERED": 117,
195 "EVENT_TRANSCEIVER_CURRENT_BELOW_THRESHOLD_RECOVERED": 118,
196 "EVENT_TRANSCEIVER_RX_POWER_ABOVE_THRESHOLD_RECOVERED": 119,
197 "EVENT_TRANSCEIVER_RX_POWER_BELOW_THRESHOLD_RECOVERED": 120,
198 "EVENT_TRANSCEIVER_TX_POWER_ABOVE_THRESHOLD_RECOVERED": 121,
199 "EVENT_TRANSCEIVER_TX_POWER_BELOW_THRESHOLD_RECOVERED": 122,
200 "EVENT_TRANSCEIVER_FAILURE_RECOVERED": 123,
201 "EVENT_PSU_PLUG_OUT": 200,
202 "EVENT_PSU_PLUG_IN": 201,
203 "EVENT_PSU_FAILURE": 202,
204 "EVENT_PSU_FAILURE_RECOVERED": 203,
205 "EVENT_FAN_FAILURE": 300,
206 "EVENT_FAN_PLUG_OUT": 301,
207 "EVENT_FAN_PLUG_IN": 302,
208 "EVENT_FAN_FAILURE_RECOVERED": 303,
209 "EVENT_CPU_TEMPERATURE_ABOVE_CRITICAL": 400,
210 "EVENT_CPU_TEMPERATURE_ABOVE_FATAL": 401,
211 "EVENT_CPU_TEMPERATURE_ABOVE_CRITICAL_RECOVERED": 402,
212 "EVENT_CPU_TEMPERATURE_ABOVE_FATAL_RECOVERED": 403,
amit.ghosh06f49782023-06-15 13:53:51 +0200213 "EVENT_CPU_USAGE_ABOVE_THRESHOLD": 404,
214 "EVENT_CPU_USAGE_ABOVE_THRESHOLD_RECOVERED": 405,
Amit Ghosh9d6658d2020-06-25 10:43:30 +0100215 "EVENT_HW_DEVICE_RESET": 500,
216 "EVENT_HW_DEVICE_TEMPERATURE_ABOVE_CRITICAL": 501,
217 "EVENT_HW_DEVICE_TEMPERATURE_ABOVE_FATAL": 502,
218 "EVENT_HW_DEVICE_TEMPERATURE_ABOVE_CRITICAL_RECOVERED": 503,
219 "EVENT_HW_DEVICE_TEMPERATURE_ABOVE_FATAL_RECOVERED": 504,
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +0530220 "EVENT_HW_DEVICE_REBOOT": 505,
amit.ghosh8fe610f2022-01-14 17:44:53 +0100221 "EVENT_HW_TEMPERATURE_SENSOR_FAILED": 506,
222 "EVENT_HW_ALL_TEMPERATURE_SENSORS_FAILED": 507,
amit.ghosh06f49782023-06-15 13:53:51 +0200223 "EVENT_HW_DISK_USAGE_ABOVE_THRESHOLD": 508,
224 "EVENT_HW_DISK_USAGE_ABOVE_THRESHOLD_RECOVERED": 509,
225 "EVENT_HW_MEMORY_USAGE_ABOVE_THRESHOLD": 510,
226 "EVENT_HW_MEMORY_USAGE_ABOVE_THRESHOLD_RECOVERED": 511,
227 "EVENT_HW_NTP_SYNC_FAILURE": 512,
228 "EVENT_HW_NTP_SYNC_FAILURE_RECOVERED": 513,
amit.ghoshc0c3c242022-03-16 11:00:27 +0100229 "EVENT_LINE_CARD_PLUG_OUT": 600,
230 "EVENT_LINE_CARD_PLUG_IN": 601,
Amit Ghoshe45d9972025-06-26 14:52:48 +0200231 "EVENT_COMPONENT_ADMIN_STATE_CHANGED": 700,
232 "EVENT_COMPONENT_OPER_STATE_CHANGED": 701,
233 "EVENT_COMPONENT_ALARM_STATE_CHANGED": 702,
234 "EVENT_COMPONENT_USAGE_STATE_CHANGED": 703,
235 "EVENT_COMPONENT_STANDBY_STATE_CHANGED": 704,
Amit Ghoshd0151a32025-10-03 10:53:14 +0200236 "EVENT_COMPONENT_GENERIC_EVENT": 705,
Amit Ghosh09f28362020-06-12 21:52:19 +0100237}
238
239func (x EventIds) String() string {
240 return proto.EnumName(EventIds_name, int32(x))
241}
242
243func (EventIds) EnumDescriptor() ([]byte, []int) {
244 return fileDescriptor_8962d785556e9979, []int{0}
245}
246
amit.ghoshae473032021-01-10 11:59:10 +0100247type ListEventsResponse_Reason int32
248
249const (
amit.ghoshbd2022e2021-02-22 05:58:53 +0100250 ListEventsResponse_UNDEFINED_REASON ListEventsResponse_Reason = 0
251 ListEventsResponse_UNKNOWN_DEVICE ListEventsResponse_Reason = 1
252 ListEventsResponse_INTERNAL_ERROR ListEventsResponse_Reason = 2
253 ListEventsResponse_DEVICE_UNREACHABLE ListEventsResponse_Reason = 3
amit.ghoshae473032021-01-10 11:59:10 +0100254)
255
256var ListEventsResponse_Reason_name = map[int32]string{
257 0: "UNDEFINED_REASON",
258 1: "UNKNOWN_DEVICE",
259 2: "INTERNAL_ERROR",
amit.ghoshbd2022e2021-02-22 05:58:53 +0100260 3: "DEVICE_UNREACHABLE",
amit.ghoshae473032021-01-10 11:59:10 +0100261}
262
263var ListEventsResponse_Reason_value = map[string]int32{
amit.ghoshbd2022e2021-02-22 05:58:53 +0100264 "UNDEFINED_REASON": 0,
265 "UNKNOWN_DEVICE": 1,
266 "INTERNAL_ERROR": 2,
267 "DEVICE_UNREACHABLE": 3,
amit.ghoshae473032021-01-10 11:59:10 +0100268}
269
270func (x ListEventsResponse_Reason) String() string {
271 return proto.EnumName(ListEventsResponse_Reason_name, int32(x))
272}
273
274func (ListEventsResponse_Reason) EnumDescriptor() ([]byte, []int) {
275 return fileDescriptor_8962d785556e9979, []int{6, 0}
276}
277
278type EventsConfigurationResponse_Reason int32
279
280const (
amit.ghoshbd2022e2021-02-22 05:58:53 +0100281 EventsConfigurationResponse_UNDEFINED_REASON EventsConfigurationResponse_Reason = 0
282 EventsConfigurationResponse_UNKNOWN_DEVICE EventsConfigurationResponse_Reason = 1
283 EventsConfigurationResponse_INTERNAL_ERROR EventsConfigurationResponse_Reason = 2
284 EventsConfigurationResponse_INVALID_CONFIG EventsConfigurationResponse_Reason = 3
285 EventsConfigurationResponse_DEVICE_UNREACHABLE EventsConfigurationResponse_Reason = 4
amit.ghoshae473032021-01-10 11:59:10 +0100286)
287
288var EventsConfigurationResponse_Reason_name = map[int32]string{
289 0: "UNDEFINED_REASON",
290 1: "UNKNOWN_DEVICE",
291 2: "INTERNAL_ERROR",
292 3: "INVALID_CONFIG",
amit.ghoshbd2022e2021-02-22 05:58:53 +0100293 4: "DEVICE_UNREACHABLE",
amit.ghoshae473032021-01-10 11:59:10 +0100294}
295
296var EventsConfigurationResponse_Reason_value = map[string]int32{
amit.ghoshbd2022e2021-02-22 05:58:53 +0100297 "UNDEFINED_REASON": 0,
298 "UNKNOWN_DEVICE": 1,
299 "INTERNAL_ERROR": 2,
300 "INVALID_CONFIG": 3,
301 "DEVICE_UNREACHABLE": 4,
amit.ghoshae473032021-01-10 11:59:10 +0100302}
303
304func (x EventsConfigurationResponse_Reason) String() string {
305 return proto.EnumName(EventsConfigurationResponse_Reason_name, int32(x))
306}
307
308func (EventsConfigurationResponse_Reason) EnumDescriptor() ([]byte, []int) {
309 return fileDescriptor_8962d785556e9979, []int{8, 0}
310}
311
Amit Ghoshd0151a32025-10-03 10:53:14 +0200312type GenericEventInfo_EventSeverity int32
313
314const (
315 GenericEventInfo_EVENT_SEVERITY_UNSPECIFIED GenericEventInfo_EventSeverity = 0
316 GenericEventInfo_CRITICAL GenericEventInfo_EventSeverity = 1
317 GenericEventInfo_MAJOR GenericEventInfo_EventSeverity = 2
318 GenericEventInfo_MINOR GenericEventInfo_EventSeverity = 3
319 GenericEventInfo_NORMAL GenericEventInfo_EventSeverity = 4
320 GenericEventInfo_INFO GenericEventInfo_EventSeverity = 5
321)
322
323var GenericEventInfo_EventSeverity_name = map[int32]string{
324 0: "EVENT_SEVERITY_UNSPECIFIED",
325 1: "CRITICAL",
326 2: "MAJOR",
327 3: "MINOR",
328 4: "NORMAL",
329 5: "INFO",
330}
331
332var GenericEventInfo_EventSeverity_value = map[string]int32{
333 "EVENT_SEVERITY_UNSPECIFIED": 0,
334 "CRITICAL": 1,
335 "MAJOR": 2,
336 "MINOR": 3,
337 "NORMAL": 4,
338 "INFO": 5,
339}
340
341func (x GenericEventInfo_EventSeverity) String() string {
342 return proto.EnumName(GenericEventInfo_EventSeverity_name, int32(x))
343}
344
345func (GenericEventInfo_EventSeverity) EnumDescriptor() ([]byte, []int) {
346 return fileDescriptor_8962d785556e9979, []int{16, 0}
347}
348
Amit Ghosh09f28362020-06-12 21:52:19 +0100349type ValueType struct {
amit.ghosh93921ec2022-09-08 17:22:40 +0200350 // For val no multiples of units shall be used.
351 // For example, for memory val should be in bytes and not in kilobytes or any
352 // other multiple of the unit byte.
353 //
Amit Ghosh09f28362020-06-12 21:52:19 +0100354 // Types that are valid to be assigned to Val:
355 // *ValueType_IntVal
356 // *ValueType_UintVal
357 // *ValueType_FloatVal
358 Val isValueType_Val `protobuf_oneof:"val"`
amit.ghosh93921ec2022-09-08 17:22:40 +0200359 TypeOfVal DataValueType `protobuf:"varint,4,opt,name=typeOfVal,proto3,enum=dmi.DataValueType" json:"typeOfVal,omitempty"`
Amit Ghosh09f28362020-06-12 21:52:19 +0100360 XXX_NoUnkeyedLiteral struct{} `json:"-"`
361 XXX_unrecognized []byte `json:"-"`
362 XXX_sizecache int32 `json:"-"`
363}
364
365func (m *ValueType) Reset() { *m = ValueType{} }
366func (m *ValueType) String() string { return proto.CompactTextString(m) }
367func (*ValueType) ProtoMessage() {}
368func (*ValueType) Descriptor() ([]byte, []int) {
369 return fileDescriptor_8962d785556e9979, []int{0}
370}
371
372func (m *ValueType) XXX_Unmarshal(b []byte) error {
373 return xxx_messageInfo_ValueType.Unmarshal(m, b)
374}
375func (m *ValueType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
376 return xxx_messageInfo_ValueType.Marshal(b, m, deterministic)
377}
378func (m *ValueType) XXX_Merge(src proto.Message) {
379 xxx_messageInfo_ValueType.Merge(m, src)
380}
381func (m *ValueType) XXX_Size() int {
382 return xxx_messageInfo_ValueType.Size(m)
383}
384func (m *ValueType) XXX_DiscardUnknown() {
385 xxx_messageInfo_ValueType.DiscardUnknown(m)
386}
387
388var xxx_messageInfo_ValueType proto.InternalMessageInfo
389
390type isValueType_Val interface {
391 isValueType_Val()
392}
393
394type ValueType_IntVal struct {
395 IntVal int64 `protobuf:"varint,1,opt,name=int_val,json=intVal,proto3,oneof"`
396}
397
398type ValueType_UintVal struct {
399 UintVal uint64 `protobuf:"varint,2,opt,name=uint_val,json=uintVal,proto3,oneof"`
400}
401
402type ValueType_FloatVal struct {
403 FloatVal float32 `protobuf:"fixed32,3,opt,name=float_val,json=floatVal,proto3,oneof"`
404}
405
406func (*ValueType_IntVal) isValueType_Val() {}
407
408func (*ValueType_UintVal) isValueType_Val() {}
409
410func (*ValueType_FloatVal) isValueType_Val() {}
411
412func (m *ValueType) GetVal() isValueType_Val {
413 if m != nil {
414 return m.Val
415 }
416 return nil
417}
418
419func (m *ValueType) GetIntVal() int64 {
420 if x, ok := m.GetVal().(*ValueType_IntVal); ok {
421 return x.IntVal
422 }
423 return 0
424}
425
426func (m *ValueType) GetUintVal() uint64 {
427 if x, ok := m.GetVal().(*ValueType_UintVal); ok {
428 return x.UintVal
429 }
430 return 0
431}
432
433func (m *ValueType) GetFloatVal() float32 {
434 if x, ok := m.GetVal().(*ValueType_FloatVal); ok {
435 return x.FloatVal
436 }
437 return 0
438}
439
amit.ghosh93921ec2022-09-08 17:22:40 +0200440func (m *ValueType) GetTypeOfVal() DataValueType {
441 if m != nil {
442 return m.TypeOfVal
443 }
444 return DataValueType_VALUE_TYPE_UNDEFINED
445}
446
Amit Ghosh09f28362020-06-12 21:52:19 +0100447// XXX_OneofWrappers is for the internal use of the proto package.
448func (*ValueType) XXX_OneofWrappers() []interface{} {
449 return []interface{}{
450 (*ValueType_IntVal)(nil),
451 (*ValueType_UintVal)(nil),
452 (*ValueType_FloatVal)(nil),
453 }
454}
455
456type WaterMarks struct {
457 High *ValueType `protobuf:"bytes,1,opt,name=high,proto3" json:"high,omitempty"`
458 Low *ValueType `protobuf:"bytes,2,opt,name=low,proto3" json:"low,omitempty"`
459 XXX_NoUnkeyedLiteral struct{} `json:"-"`
460 XXX_unrecognized []byte `json:"-"`
461 XXX_sizecache int32 `json:"-"`
462}
463
464func (m *WaterMarks) Reset() { *m = WaterMarks{} }
465func (m *WaterMarks) String() string { return proto.CompactTextString(m) }
466func (*WaterMarks) ProtoMessage() {}
467func (*WaterMarks) Descriptor() ([]byte, []int) {
468 return fileDescriptor_8962d785556e9979, []int{1}
469}
470
471func (m *WaterMarks) XXX_Unmarshal(b []byte) error {
472 return xxx_messageInfo_WaterMarks.Unmarshal(m, b)
473}
474func (m *WaterMarks) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
475 return xxx_messageInfo_WaterMarks.Marshal(b, m, deterministic)
476}
477func (m *WaterMarks) XXX_Merge(src proto.Message) {
478 xxx_messageInfo_WaterMarks.Merge(m, src)
479}
480func (m *WaterMarks) XXX_Size() int {
481 return xxx_messageInfo_WaterMarks.Size(m)
482}
483func (m *WaterMarks) XXX_DiscardUnknown() {
484 xxx_messageInfo_WaterMarks.DiscardUnknown(m)
485}
486
487var xxx_messageInfo_WaterMarks proto.InternalMessageInfo
488
489func (m *WaterMarks) GetHigh() *ValueType {
490 if m != nil {
491 return m.High
492 }
493 return nil
494}
495
496func (m *WaterMarks) GetLow() *ValueType {
497 if m != nil {
498 return m.Low
499 }
500 return nil
501}
502
503type Thresholds struct {
504 // Types that are valid to be assigned to Threshold:
505 // *Thresholds_Upper
506 // *Thresholds_Lower
507 Threshold isThresholds_Threshold `protobuf_oneof:"threshold"`
508 XXX_NoUnkeyedLiteral struct{} `json:"-"`
509 XXX_unrecognized []byte `json:"-"`
510 XXX_sizecache int32 `json:"-"`
511}
512
513func (m *Thresholds) Reset() { *m = Thresholds{} }
514func (m *Thresholds) String() string { return proto.CompactTextString(m) }
515func (*Thresholds) ProtoMessage() {}
516func (*Thresholds) Descriptor() ([]byte, []int) {
517 return fileDescriptor_8962d785556e9979, []int{2}
518}
519
520func (m *Thresholds) XXX_Unmarshal(b []byte) error {
521 return xxx_messageInfo_Thresholds.Unmarshal(m, b)
522}
523func (m *Thresholds) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
524 return xxx_messageInfo_Thresholds.Marshal(b, m, deterministic)
525}
526func (m *Thresholds) XXX_Merge(src proto.Message) {
527 xxx_messageInfo_Thresholds.Merge(m, src)
528}
529func (m *Thresholds) XXX_Size() int {
530 return xxx_messageInfo_Thresholds.Size(m)
531}
532func (m *Thresholds) XXX_DiscardUnknown() {
533 xxx_messageInfo_Thresholds.DiscardUnknown(m)
534}
535
536var xxx_messageInfo_Thresholds proto.InternalMessageInfo
537
538type isThresholds_Threshold interface {
539 isThresholds_Threshold()
540}
541
542type Thresholds_Upper struct {
543 Upper *WaterMarks `protobuf:"bytes,1,opt,name=upper,proto3,oneof"`
544}
545
546type Thresholds_Lower struct {
547 Lower *WaterMarks `protobuf:"bytes,2,opt,name=lower,proto3,oneof"`
548}
549
550func (*Thresholds_Upper) isThresholds_Threshold() {}
551
552func (*Thresholds_Lower) isThresholds_Threshold() {}
553
554func (m *Thresholds) GetThreshold() isThresholds_Threshold {
555 if m != nil {
556 return m.Threshold
557 }
558 return nil
559}
560
561func (m *Thresholds) GetUpper() *WaterMarks {
562 if x, ok := m.GetThreshold().(*Thresholds_Upper); ok {
563 return x.Upper
564 }
565 return nil
566}
567
568func (m *Thresholds) GetLower() *WaterMarks {
569 if x, ok := m.GetThreshold().(*Thresholds_Lower); ok {
570 return x.Lower
571 }
572 return nil
573}
574
575// XXX_OneofWrappers is for the internal use of the proto package.
576func (*Thresholds) XXX_OneofWrappers() []interface{} {
577 return []interface{}{
578 (*Thresholds_Upper)(nil),
579 (*Thresholds_Lower)(nil),
580 }
581}
582
583type ThresholdInformation struct {
584 ObservedValue *ValueType `protobuf:"bytes,1,opt,name=observed_value,json=observedValue,proto3" json:"observed_value,omitempty"`
585 Thresholds *Thresholds `protobuf:"bytes,2,opt,name=thresholds,proto3" json:"thresholds,omitempty"`
586 XXX_NoUnkeyedLiteral struct{} `json:"-"`
587 XXX_unrecognized []byte `json:"-"`
588 XXX_sizecache int32 `json:"-"`
589}
590
591func (m *ThresholdInformation) Reset() { *m = ThresholdInformation{} }
592func (m *ThresholdInformation) String() string { return proto.CompactTextString(m) }
593func (*ThresholdInformation) ProtoMessage() {}
594func (*ThresholdInformation) Descriptor() ([]byte, []int) {
595 return fileDescriptor_8962d785556e9979, []int{3}
596}
597
598func (m *ThresholdInformation) XXX_Unmarshal(b []byte) error {
599 return xxx_messageInfo_ThresholdInformation.Unmarshal(m, b)
600}
601func (m *ThresholdInformation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
602 return xxx_messageInfo_ThresholdInformation.Marshal(b, m, deterministic)
603}
604func (m *ThresholdInformation) XXX_Merge(src proto.Message) {
605 xxx_messageInfo_ThresholdInformation.Merge(m, src)
606}
607func (m *ThresholdInformation) XXX_Size() int {
608 return xxx_messageInfo_ThresholdInformation.Size(m)
609}
610func (m *ThresholdInformation) XXX_DiscardUnknown() {
611 xxx_messageInfo_ThresholdInformation.DiscardUnknown(m)
612}
613
614var xxx_messageInfo_ThresholdInformation proto.InternalMessageInfo
615
616func (m *ThresholdInformation) GetObservedValue() *ValueType {
617 if m != nil {
618 return m.ObservedValue
619 }
620 return nil
621}
622
623func (m *ThresholdInformation) GetThresholds() *Thresholds {
624 if m != nil {
625 return m.Thresholds
626 }
627 return nil
628}
629
630type EventCfg struct {
631 EventId EventIds `protobuf:"varint,1,opt,name=event_id,json=eventId,proto3,enum=dmi.EventIds" json:"event_id,omitempty"`
632 IsConfigured bool `protobuf:"varint,2,opt,name=is_configured,json=isConfigured,proto3" json:"is_configured,omitempty"`
633 // Optional threshold values, applicable only for some specific events
amit.ghosh06f49782023-06-15 13:53:51 +0200634 // If an event needs thresholds but the user does not pass the thresholds here, the Device Manager implementations
635 // could choose to use defaults applicable for the specific component (recommended) or return an error for such
636 // an EventConfigurationRequest with reason as INVALID_CONFIG
amit.ghosh7a093bd2023-03-07 16:31:56 +0100637 Thresholds *Thresholds `protobuf:"bytes,3,opt,name=thresholds,proto3" json:"thresholds,omitempty"`
638 // For events which can be configured on a particular component this id can be used to identify the component
639 // For e.g. for events of the transceivers
640 ComponentUuid *Uuid `protobuf:"bytes,4,opt,name=component_uuid,json=componentUuid,proto3" json:"component_uuid,omitempty"`
641 XXX_NoUnkeyedLiteral struct{} `json:"-"`
642 XXX_unrecognized []byte `json:"-"`
643 XXX_sizecache int32 `json:"-"`
Amit Ghosh09f28362020-06-12 21:52:19 +0100644}
645
646func (m *EventCfg) Reset() { *m = EventCfg{} }
647func (m *EventCfg) String() string { return proto.CompactTextString(m) }
648func (*EventCfg) ProtoMessage() {}
649func (*EventCfg) Descriptor() ([]byte, []int) {
650 return fileDescriptor_8962d785556e9979, []int{4}
651}
652
653func (m *EventCfg) XXX_Unmarshal(b []byte) error {
654 return xxx_messageInfo_EventCfg.Unmarshal(m, b)
655}
656func (m *EventCfg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
657 return xxx_messageInfo_EventCfg.Marshal(b, m, deterministic)
658}
659func (m *EventCfg) XXX_Merge(src proto.Message) {
660 xxx_messageInfo_EventCfg.Merge(m, src)
661}
662func (m *EventCfg) XXX_Size() int {
663 return xxx_messageInfo_EventCfg.Size(m)
664}
665func (m *EventCfg) XXX_DiscardUnknown() {
666 xxx_messageInfo_EventCfg.DiscardUnknown(m)
667}
668
669var xxx_messageInfo_EventCfg proto.InternalMessageInfo
670
671func (m *EventCfg) GetEventId() EventIds {
672 if m != nil {
673 return m.EventId
674 }
675 return EventIds_EVENT_NAME_UNDEFINED
676}
677
678func (m *EventCfg) GetIsConfigured() bool {
679 if m != nil {
680 return m.IsConfigured
681 }
682 return false
683}
684
685func (m *EventCfg) GetThresholds() *Thresholds {
686 if m != nil {
687 return m.Thresholds
688 }
689 return nil
690}
691
amit.ghosh7a093bd2023-03-07 16:31:56 +0100692func (m *EventCfg) GetComponentUuid() *Uuid {
693 if m != nil {
694 return m.ComponentUuid
695 }
696 return nil
697}
698
Amit Ghosh09f28362020-06-12 21:52:19 +0100699type EventsCfg struct {
700 Items []*EventCfg `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
701 XXX_NoUnkeyedLiteral struct{} `json:"-"`
702 XXX_unrecognized []byte `json:"-"`
703 XXX_sizecache int32 `json:"-"`
704}
705
706func (m *EventsCfg) Reset() { *m = EventsCfg{} }
707func (m *EventsCfg) String() string { return proto.CompactTextString(m) }
708func (*EventsCfg) ProtoMessage() {}
709func (*EventsCfg) Descriptor() ([]byte, []int) {
710 return fileDescriptor_8962d785556e9979, []int{5}
711}
712
713func (m *EventsCfg) XXX_Unmarshal(b []byte) error {
714 return xxx_messageInfo_EventsCfg.Unmarshal(m, b)
715}
716func (m *EventsCfg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
717 return xxx_messageInfo_EventsCfg.Marshal(b, m, deterministic)
718}
719func (m *EventsCfg) XXX_Merge(src proto.Message) {
720 xxx_messageInfo_EventsCfg.Merge(m, src)
721}
722func (m *EventsCfg) XXX_Size() int {
723 return xxx_messageInfo_EventsCfg.Size(m)
724}
725func (m *EventsCfg) XXX_DiscardUnknown() {
726 xxx_messageInfo_EventsCfg.DiscardUnknown(m)
727}
728
729var xxx_messageInfo_EventsCfg proto.InternalMessageInfo
730
731func (m *EventsCfg) GetItems() []*EventCfg {
732 if m != nil {
733 return m.Items
734 }
735 return nil
736}
737
738type ListEventsResponse struct {
amit.ghoshae473032021-01-10 11:59:10 +0100739 Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=dmi.Status" json:"status,omitempty"`
740 Reason ListEventsResponse_Reason `protobuf:"varint,2,opt,name=reason,proto3,enum=dmi.ListEventsResponse_Reason" json:"reason,omitempty"`
741 Events *EventsCfg `protobuf:"bytes,3,opt,name=events,proto3" json:"events,omitempty"`
amit.ghosh8ab1e6e2021-02-23 07:40:17 +0100742 ReasonDetail string `protobuf:"bytes,4,opt,name=reason_detail,json=reasonDetail,proto3" json:"reason_detail,omitempty"`
amit.ghoshae473032021-01-10 11:59:10 +0100743 XXX_NoUnkeyedLiteral struct{} `json:"-"`
744 XXX_unrecognized []byte `json:"-"`
745 XXX_sizecache int32 `json:"-"`
Amit Ghosh09f28362020-06-12 21:52:19 +0100746}
747
748func (m *ListEventsResponse) Reset() { *m = ListEventsResponse{} }
749func (m *ListEventsResponse) String() string { return proto.CompactTextString(m) }
750func (*ListEventsResponse) ProtoMessage() {}
751func (*ListEventsResponse) Descriptor() ([]byte, []int) {
752 return fileDescriptor_8962d785556e9979, []int{6}
753}
754
755func (m *ListEventsResponse) XXX_Unmarshal(b []byte) error {
756 return xxx_messageInfo_ListEventsResponse.Unmarshal(m, b)
757}
758func (m *ListEventsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
759 return xxx_messageInfo_ListEventsResponse.Marshal(b, m, deterministic)
760}
761func (m *ListEventsResponse) XXX_Merge(src proto.Message) {
762 xxx_messageInfo_ListEventsResponse.Merge(m, src)
763}
764func (m *ListEventsResponse) XXX_Size() int {
765 return xxx_messageInfo_ListEventsResponse.Size(m)
766}
767func (m *ListEventsResponse) XXX_DiscardUnknown() {
768 xxx_messageInfo_ListEventsResponse.DiscardUnknown(m)
769}
770
771var xxx_messageInfo_ListEventsResponse proto.InternalMessageInfo
772
773func (m *ListEventsResponse) GetStatus() Status {
774 if m != nil {
775 return m.Status
776 }
777 return Status_UNDEFINED_STATUS
778}
779
amit.ghoshae473032021-01-10 11:59:10 +0100780func (m *ListEventsResponse) GetReason() ListEventsResponse_Reason {
Amit Ghosh09f28362020-06-12 21:52:19 +0100781 if m != nil {
782 return m.Reason
783 }
amit.ghoshae473032021-01-10 11:59:10 +0100784 return ListEventsResponse_UNDEFINED_REASON
Amit Ghosh09f28362020-06-12 21:52:19 +0100785}
786
787func (m *ListEventsResponse) GetEvents() *EventsCfg {
788 if m != nil {
789 return m.Events
790 }
791 return nil
792}
793
amit.ghosh8ab1e6e2021-02-23 07:40:17 +0100794func (m *ListEventsResponse) GetReasonDetail() string {
795 if m != nil {
796 return m.ReasonDetail
797 }
798 return ""
799}
800
Amit Ghosh09f28362020-06-12 21:52:19 +0100801type EventsConfigurationRequest struct {
802 DeviceUuid *Uuid `protobuf:"bytes,1,opt,name=device_uuid,json=deviceUuid,proto3" json:"device_uuid,omitempty"`
803 // Types that are valid to be assigned to Operation:
804 // *EventsConfigurationRequest_Changes
805 // *EventsConfigurationRequest_ResetToDefault
amit.ghosh7a093bd2023-03-07 16:31:56 +0100806 Operation isEventsConfigurationRequest_Operation `protobuf_oneof:"operation"`
807 XXX_NoUnkeyedLiteral struct{} `json:"-"`
808 XXX_unrecognized []byte `json:"-"`
809 XXX_sizecache int32 `json:"-"`
Amit Ghosh09f28362020-06-12 21:52:19 +0100810}
811
812func (m *EventsConfigurationRequest) Reset() { *m = EventsConfigurationRequest{} }
813func (m *EventsConfigurationRequest) String() string { return proto.CompactTextString(m) }
814func (*EventsConfigurationRequest) ProtoMessage() {}
815func (*EventsConfigurationRequest) Descriptor() ([]byte, []int) {
816 return fileDescriptor_8962d785556e9979, []int{7}
817}
818
819func (m *EventsConfigurationRequest) XXX_Unmarshal(b []byte) error {
820 return xxx_messageInfo_EventsConfigurationRequest.Unmarshal(m, b)
821}
822func (m *EventsConfigurationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
823 return xxx_messageInfo_EventsConfigurationRequest.Marshal(b, m, deterministic)
824}
825func (m *EventsConfigurationRequest) XXX_Merge(src proto.Message) {
826 xxx_messageInfo_EventsConfigurationRequest.Merge(m, src)
827}
828func (m *EventsConfigurationRequest) XXX_Size() int {
829 return xxx_messageInfo_EventsConfigurationRequest.Size(m)
830}
831func (m *EventsConfigurationRequest) XXX_DiscardUnknown() {
832 xxx_messageInfo_EventsConfigurationRequest.DiscardUnknown(m)
833}
834
835var xxx_messageInfo_EventsConfigurationRequest proto.InternalMessageInfo
836
837func (m *EventsConfigurationRequest) GetDeviceUuid() *Uuid {
838 if m != nil {
839 return m.DeviceUuid
840 }
841 return nil
842}
843
844type isEventsConfigurationRequest_Operation interface {
845 isEventsConfigurationRequest_Operation()
846}
847
848type EventsConfigurationRequest_Changes struct {
849 Changes *EventsCfg `protobuf:"bytes,2,opt,name=changes,proto3,oneof"`
850}
851
852type EventsConfigurationRequest_ResetToDefault struct {
853 ResetToDefault bool `protobuf:"varint,3,opt,name=reset_to_default,json=resetToDefault,proto3,oneof"`
854}
855
856func (*EventsConfigurationRequest_Changes) isEventsConfigurationRequest_Operation() {}
857
858func (*EventsConfigurationRequest_ResetToDefault) isEventsConfigurationRequest_Operation() {}
859
860func (m *EventsConfigurationRequest) GetOperation() isEventsConfigurationRequest_Operation {
861 if m != nil {
862 return m.Operation
863 }
864 return nil
865}
866
867func (m *EventsConfigurationRequest) GetChanges() *EventsCfg {
868 if x, ok := m.GetOperation().(*EventsConfigurationRequest_Changes); ok {
869 return x.Changes
870 }
871 return nil
872}
873
874func (m *EventsConfigurationRequest) GetResetToDefault() bool {
875 if x, ok := m.GetOperation().(*EventsConfigurationRequest_ResetToDefault); ok {
876 return x.ResetToDefault
877 }
878 return false
879}
880
881// XXX_OneofWrappers is for the internal use of the proto package.
882func (*EventsConfigurationRequest) XXX_OneofWrappers() []interface{} {
883 return []interface{}{
884 (*EventsConfigurationRequest_Changes)(nil),
885 (*EventsConfigurationRequest_ResetToDefault)(nil),
886 }
887}
888
889type EventsConfigurationResponse struct {
amit.ghoshae473032021-01-10 11:59:10 +0100890 Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=dmi.Status" json:"status,omitempty"`
891 Reason EventsConfigurationResponse_Reason `protobuf:"varint,2,opt,name=reason,proto3,enum=dmi.EventsConfigurationResponse_Reason" json:"reason,omitempty"`
amit.ghosh8ab1e6e2021-02-23 07:40:17 +0100892 ReasonDetail string `protobuf:"bytes,3,opt,name=reason_detail,json=reasonDetail,proto3" json:"reason_detail,omitempty"`
amit.ghoshae473032021-01-10 11:59:10 +0100893 XXX_NoUnkeyedLiteral struct{} `json:"-"`
894 XXX_unrecognized []byte `json:"-"`
895 XXX_sizecache int32 `json:"-"`
Amit Ghosh09f28362020-06-12 21:52:19 +0100896}
897
898func (m *EventsConfigurationResponse) Reset() { *m = EventsConfigurationResponse{} }
899func (m *EventsConfigurationResponse) String() string { return proto.CompactTextString(m) }
900func (*EventsConfigurationResponse) ProtoMessage() {}
901func (*EventsConfigurationResponse) Descriptor() ([]byte, []int) {
902 return fileDescriptor_8962d785556e9979, []int{8}
903}
904
905func (m *EventsConfigurationResponse) XXX_Unmarshal(b []byte) error {
906 return xxx_messageInfo_EventsConfigurationResponse.Unmarshal(m, b)
907}
908func (m *EventsConfigurationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
909 return xxx_messageInfo_EventsConfigurationResponse.Marshal(b, m, deterministic)
910}
911func (m *EventsConfigurationResponse) XXX_Merge(src proto.Message) {
912 xxx_messageInfo_EventsConfigurationResponse.Merge(m, src)
913}
914func (m *EventsConfigurationResponse) XXX_Size() int {
915 return xxx_messageInfo_EventsConfigurationResponse.Size(m)
916}
917func (m *EventsConfigurationResponse) XXX_DiscardUnknown() {
918 xxx_messageInfo_EventsConfigurationResponse.DiscardUnknown(m)
919}
920
921var xxx_messageInfo_EventsConfigurationResponse proto.InternalMessageInfo
922
923func (m *EventsConfigurationResponse) GetStatus() Status {
924 if m != nil {
925 return m.Status
926 }
927 return Status_UNDEFINED_STATUS
928}
929
amit.ghoshae473032021-01-10 11:59:10 +0100930func (m *EventsConfigurationResponse) GetReason() EventsConfigurationResponse_Reason {
Amit Ghosh09f28362020-06-12 21:52:19 +0100931 if m != nil {
932 return m.Reason
933 }
amit.ghoshae473032021-01-10 11:59:10 +0100934 return EventsConfigurationResponse_UNDEFINED_REASON
Amit Ghosh09f28362020-06-12 21:52:19 +0100935}
936
amit.ghosh8ab1e6e2021-02-23 07:40:17 +0100937func (m *EventsConfigurationResponse) GetReasonDetail() string {
938 if m != nil {
939 return m.ReasonDetail
940 }
941 return ""
942}
943
Amit Ghosh09f28362020-06-12 21:52:19 +0100944type EventMetaData struct {
945 DeviceUuid *Uuid `protobuf:"bytes,1,opt,name=device_uuid,json=deviceUuid,proto3" json:"device_uuid,omitempty"`
946 // uuid of the component
947 ComponentUuid *Uuid `protobuf:"bytes,2,opt,name=component_uuid,json=componentUuid,proto3" json:"component_uuid,omitempty"`
948 ComponentName string `protobuf:"bytes,3,opt,name=component_name,json=componentName,proto3" json:"component_name,omitempty"`
949 XXX_NoUnkeyedLiteral struct{} `json:"-"`
950 XXX_unrecognized []byte `json:"-"`
951 XXX_sizecache int32 `json:"-"`
952}
953
954func (m *EventMetaData) Reset() { *m = EventMetaData{} }
955func (m *EventMetaData) String() string { return proto.CompactTextString(m) }
956func (*EventMetaData) ProtoMessage() {}
957func (*EventMetaData) Descriptor() ([]byte, []int) {
958 return fileDescriptor_8962d785556e9979, []int{9}
959}
960
961func (m *EventMetaData) XXX_Unmarshal(b []byte) error {
962 return xxx_messageInfo_EventMetaData.Unmarshal(m, b)
963}
964func (m *EventMetaData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
965 return xxx_messageInfo_EventMetaData.Marshal(b, m, deterministic)
966}
967func (m *EventMetaData) XXX_Merge(src proto.Message) {
968 xxx_messageInfo_EventMetaData.Merge(m, src)
969}
970func (m *EventMetaData) XXX_Size() int {
971 return xxx_messageInfo_EventMetaData.Size(m)
972}
973func (m *EventMetaData) XXX_DiscardUnknown() {
974 xxx_messageInfo_EventMetaData.DiscardUnknown(m)
975}
976
977var xxx_messageInfo_EventMetaData proto.InternalMessageInfo
978
979func (m *EventMetaData) GetDeviceUuid() *Uuid {
980 if m != nil {
981 return m.DeviceUuid
982 }
983 return nil
984}
985
986func (m *EventMetaData) GetComponentUuid() *Uuid {
987 if m != nil {
988 return m.ComponentUuid
989 }
990 return nil
991}
992
993func (m *EventMetaData) GetComponentName() string {
994 if m != nil {
995 return m.ComponentName
996 }
997 return ""
998}
999
Amit Ghoshe45d9972025-06-26 14:52:48 +02001000type AdminStateChange struct {
1001 Old ComponentAdminState `protobuf:"varint,1,opt,name=old,proto3,enum=dmi.ComponentAdminState" json:"old,omitempty"`
1002 New ComponentAdminState `protobuf:"varint,2,opt,name=new,proto3,enum=dmi.ComponentAdminState" json:"new,omitempty"`
1003 XXX_NoUnkeyedLiteral struct{} `json:"-"`
1004 XXX_unrecognized []byte `json:"-"`
1005 XXX_sizecache int32 `json:"-"`
1006}
1007
1008func (m *AdminStateChange) Reset() { *m = AdminStateChange{} }
1009func (m *AdminStateChange) String() string { return proto.CompactTextString(m) }
1010func (*AdminStateChange) ProtoMessage() {}
1011func (*AdminStateChange) Descriptor() ([]byte, []int) {
1012 return fileDescriptor_8962d785556e9979, []int{10}
1013}
1014
1015func (m *AdminStateChange) XXX_Unmarshal(b []byte) error {
1016 return xxx_messageInfo_AdminStateChange.Unmarshal(m, b)
1017}
1018func (m *AdminStateChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1019 return xxx_messageInfo_AdminStateChange.Marshal(b, m, deterministic)
1020}
1021func (m *AdminStateChange) XXX_Merge(src proto.Message) {
1022 xxx_messageInfo_AdminStateChange.Merge(m, src)
1023}
1024func (m *AdminStateChange) XXX_Size() int {
1025 return xxx_messageInfo_AdminStateChange.Size(m)
1026}
1027func (m *AdminStateChange) XXX_DiscardUnknown() {
1028 xxx_messageInfo_AdminStateChange.DiscardUnknown(m)
1029}
1030
1031var xxx_messageInfo_AdminStateChange proto.InternalMessageInfo
1032
1033func (m *AdminStateChange) GetOld() ComponentAdminState {
1034 if m != nil {
1035 return m.Old
1036 }
1037 return ComponentAdminState_COMP_ADMIN_STATE_UNDEFINED
1038}
1039
1040func (m *AdminStateChange) GetNew() ComponentAdminState {
1041 if m != nil {
1042 return m.New
1043 }
1044 return ComponentAdminState_COMP_ADMIN_STATE_UNDEFINED
1045}
1046
1047type OperStateChange struct {
1048 Old ComponentOperState `protobuf:"varint,1,opt,name=old,proto3,enum=dmi.ComponentOperState" json:"old,omitempty"`
1049 New ComponentOperState `protobuf:"varint,2,opt,name=new,proto3,enum=dmi.ComponentOperState" json:"new,omitempty"`
1050 XXX_NoUnkeyedLiteral struct{} `json:"-"`
1051 XXX_unrecognized []byte `json:"-"`
1052 XXX_sizecache int32 `json:"-"`
1053}
1054
1055func (m *OperStateChange) Reset() { *m = OperStateChange{} }
1056func (m *OperStateChange) String() string { return proto.CompactTextString(m) }
1057func (*OperStateChange) ProtoMessage() {}
1058func (*OperStateChange) Descriptor() ([]byte, []int) {
1059 return fileDescriptor_8962d785556e9979, []int{11}
1060}
1061
1062func (m *OperStateChange) XXX_Unmarshal(b []byte) error {
1063 return xxx_messageInfo_OperStateChange.Unmarshal(m, b)
1064}
1065func (m *OperStateChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1066 return xxx_messageInfo_OperStateChange.Marshal(b, m, deterministic)
1067}
1068func (m *OperStateChange) XXX_Merge(src proto.Message) {
1069 xxx_messageInfo_OperStateChange.Merge(m, src)
1070}
1071func (m *OperStateChange) XXX_Size() int {
1072 return xxx_messageInfo_OperStateChange.Size(m)
1073}
1074func (m *OperStateChange) XXX_DiscardUnknown() {
1075 xxx_messageInfo_OperStateChange.DiscardUnknown(m)
1076}
1077
1078var xxx_messageInfo_OperStateChange proto.InternalMessageInfo
1079
1080func (m *OperStateChange) GetOld() ComponentOperState {
1081 if m != nil {
1082 return m.Old
1083 }
1084 return ComponentOperState_COMP_OPER_STATE_UNDEFINED
1085}
1086
1087func (m *OperStateChange) GetNew() ComponentOperState {
1088 if m != nil {
1089 return m.New
1090 }
1091 return ComponentOperState_COMP_OPER_STATE_UNDEFINED
1092}
1093
1094type AlarmStateChange struct {
1095 Old ComponentAlarmState `protobuf:"varint,1,opt,name=old,proto3,enum=dmi.ComponentAlarmState" json:"old,omitempty"`
1096 New ComponentAlarmState `protobuf:"varint,2,opt,name=new,proto3,enum=dmi.ComponentAlarmState" json:"new,omitempty"`
1097 XXX_NoUnkeyedLiteral struct{} `json:"-"`
1098 XXX_unrecognized []byte `json:"-"`
1099 XXX_sizecache int32 `json:"-"`
1100}
1101
1102func (m *AlarmStateChange) Reset() { *m = AlarmStateChange{} }
1103func (m *AlarmStateChange) String() string { return proto.CompactTextString(m) }
1104func (*AlarmStateChange) ProtoMessage() {}
1105func (*AlarmStateChange) Descriptor() ([]byte, []int) {
1106 return fileDescriptor_8962d785556e9979, []int{12}
1107}
1108
1109func (m *AlarmStateChange) XXX_Unmarshal(b []byte) error {
1110 return xxx_messageInfo_AlarmStateChange.Unmarshal(m, b)
1111}
1112func (m *AlarmStateChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1113 return xxx_messageInfo_AlarmStateChange.Marshal(b, m, deterministic)
1114}
1115func (m *AlarmStateChange) XXX_Merge(src proto.Message) {
1116 xxx_messageInfo_AlarmStateChange.Merge(m, src)
1117}
1118func (m *AlarmStateChange) XXX_Size() int {
1119 return xxx_messageInfo_AlarmStateChange.Size(m)
1120}
1121func (m *AlarmStateChange) XXX_DiscardUnknown() {
1122 xxx_messageInfo_AlarmStateChange.DiscardUnknown(m)
1123}
1124
1125var xxx_messageInfo_AlarmStateChange proto.InternalMessageInfo
1126
1127func (m *AlarmStateChange) GetOld() ComponentAlarmState {
1128 if m != nil {
1129 return m.Old
1130 }
1131 return ComponentAlarmState_COMP_ALARM_STATE_UNDEFINED
1132}
1133
1134func (m *AlarmStateChange) GetNew() ComponentAlarmState {
1135 if m != nil {
1136 return m.New
1137 }
1138 return ComponentAlarmState_COMP_ALARM_STATE_UNDEFINED
1139}
1140
1141type UsageStateChange struct {
1142 Old ComponentUsageState `protobuf:"varint,1,opt,name=old,proto3,enum=dmi.ComponentUsageState" json:"old,omitempty"`
1143 New ComponentUsageState `protobuf:"varint,2,opt,name=new,proto3,enum=dmi.ComponentUsageState" json:"new,omitempty"`
1144 XXX_NoUnkeyedLiteral struct{} `json:"-"`
1145 XXX_unrecognized []byte `json:"-"`
1146 XXX_sizecache int32 `json:"-"`
1147}
1148
1149func (m *UsageStateChange) Reset() { *m = UsageStateChange{} }
1150func (m *UsageStateChange) String() string { return proto.CompactTextString(m) }
1151func (*UsageStateChange) ProtoMessage() {}
1152func (*UsageStateChange) Descriptor() ([]byte, []int) {
1153 return fileDescriptor_8962d785556e9979, []int{13}
1154}
1155
1156func (m *UsageStateChange) XXX_Unmarshal(b []byte) error {
1157 return xxx_messageInfo_UsageStateChange.Unmarshal(m, b)
1158}
1159func (m *UsageStateChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1160 return xxx_messageInfo_UsageStateChange.Marshal(b, m, deterministic)
1161}
1162func (m *UsageStateChange) XXX_Merge(src proto.Message) {
1163 xxx_messageInfo_UsageStateChange.Merge(m, src)
1164}
1165func (m *UsageStateChange) XXX_Size() int {
1166 return xxx_messageInfo_UsageStateChange.Size(m)
1167}
1168func (m *UsageStateChange) XXX_DiscardUnknown() {
1169 xxx_messageInfo_UsageStateChange.DiscardUnknown(m)
1170}
1171
1172var xxx_messageInfo_UsageStateChange proto.InternalMessageInfo
1173
1174func (m *UsageStateChange) GetOld() ComponentUsageState {
1175 if m != nil {
1176 return m.Old
1177 }
1178 return ComponentUsageState_COMP_USAGE_STATE_UNDEFINED
1179}
1180
1181func (m *UsageStateChange) GetNew() ComponentUsageState {
1182 if m != nil {
1183 return m.New
1184 }
1185 return ComponentUsageState_COMP_USAGE_STATE_UNDEFINED
1186}
1187
1188type StandbyStateChange struct {
1189 Old ComponentStandbyState `protobuf:"varint,1,opt,name=old,proto3,enum=dmi.ComponentStandbyState" json:"old,omitempty"`
1190 New ComponentStandbyState `protobuf:"varint,2,opt,name=new,proto3,enum=dmi.ComponentStandbyState" json:"new,omitempty"`
1191 XXX_NoUnkeyedLiteral struct{} `json:"-"`
1192 XXX_unrecognized []byte `json:"-"`
1193 XXX_sizecache int32 `json:"-"`
1194}
1195
1196func (m *StandbyStateChange) Reset() { *m = StandbyStateChange{} }
1197func (m *StandbyStateChange) String() string { return proto.CompactTextString(m) }
1198func (*StandbyStateChange) ProtoMessage() {}
1199func (*StandbyStateChange) Descriptor() ([]byte, []int) {
1200 return fileDescriptor_8962d785556e9979, []int{14}
1201}
1202
1203func (m *StandbyStateChange) XXX_Unmarshal(b []byte) error {
1204 return xxx_messageInfo_StandbyStateChange.Unmarshal(m, b)
1205}
1206func (m *StandbyStateChange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1207 return xxx_messageInfo_StandbyStateChange.Marshal(b, m, deterministic)
1208}
1209func (m *StandbyStateChange) XXX_Merge(src proto.Message) {
1210 xxx_messageInfo_StandbyStateChange.Merge(m, src)
1211}
1212func (m *StandbyStateChange) XXX_Size() int {
1213 return xxx_messageInfo_StandbyStateChange.Size(m)
1214}
1215func (m *StandbyStateChange) XXX_DiscardUnknown() {
1216 xxx_messageInfo_StandbyStateChange.DiscardUnknown(m)
1217}
1218
1219var xxx_messageInfo_StandbyStateChange proto.InternalMessageInfo
1220
1221func (m *StandbyStateChange) GetOld() ComponentStandbyState {
1222 if m != nil {
1223 return m.Old
1224 }
1225 return ComponentStandbyState_COMP_STANDBY_STATE_UNDEFINED
1226}
1227
1228func (m *StandbyStateChange) GetNew() ComponentStandbyState {
1229 if m != nil {
1230 return m.New
1231 }
1232 return ComponentStandbyState_COMP_STANDBY_STATE_UNDEFINED
1233}
1234
1235type StateChangeInfo struct {
1236 // Types that are valid to be assigned to StateChange:
1237 // *StateChangeInfo_AdminStateChange
1238 // *StateChangeInfo_OperStateChange
1239 // *StateChangeInfo_AlarmStateChange
1240 // *StateChangeInfo_UsageStateChange
1241 // *StateChangeInfo_StandbyStateChange
1242 StateChange isStateChangeInfo_StateChange `protobuf_oneof:"state_change"`
1243 XXX_NoUnkeyedLiteral struct{} `json:"-"`
1244 XXX_unrecognized []byte `json:"-"`
1245 XXX_sizecache int32 `json:"-"`
1246}
1247
1248func (m *StateChangeInfo) Reset() { *m = StateChangeInfo{} }
1249func (m *StateChangeInfo) String() string { return proto.CompactTextString(m) }
1250func (*StateChangeInfo) ProtoMessage() {}
1251func (*StateChangeInfo) Descriptor() ([]byte, []int) {
1252 return fileDescriptor_8962d785556e9979, []int{15}
1253}
1254
1255func (m *StateChangeInfo) XXX_Unmarshal(b []byte) error {
1256 return xxx_messageInfo_StateChangeInfo.Unmarshal(m, b)
1257}
1258func (m *StateChangeInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1259 return xxx_messageInfo_StateChangeInfo.Marshal(b, m, deterministic)
1260}
1261func (m *StateChangeInfo) XXX_Merge(src proto.Message) {
1262 xxx_messageInfo_StateChangeInfo.Merge(m, src)
1263}
1264func (m *StateChangeInfo) XXX_Size() int {
1265 return xxx_messageInfo_StateChangeInfo.Size(m)
1266}
1267func (m *StateChangeInfo) XXX_DiscardUnknown() {
1268 xxx_messageInfo_StateChangeInfo.DiscardUnknown(m)
1269}
1270
1271var xxx_messageInfo_StateChangeInfo proto.InternalMessageInfo
1272
1273type isStateChangeInfo_StateChange interface {
1274 isStateChangeInfo_StateChange()
1275}
1276
1277type StateChangeInfo_AdminStateChange struct {
1278 AdminStateChange *AdminStateChange `protobuf:"bytes,1,opt,name=admin_state_change,json=adminStateChange,proto3,oneof"`
1279}
1280
1281type StateChangeInfo_OperStateChange struct {
1282 OperStateChange *OperStateChange `protobuf:"bytes,2,opt,name=oper_state_change,json=operStateChange,proto3,oneof"`
1283}
1284
1285type StateChangeInfo_AlarmStateChange struct {
1286 AlarmStateChange *AlarmStateChange `protobuf:"bytes,3,opt,name=alarm_state_change,json=alarmStateChange,proto3,oneof"`
1287}
1288
1289type StateChangeInfo_UsageStateChange struct {
1290 UsageStateChange *UsageStateChange `protobuf:"bytes,4,opt,name=usage_state_change,json=usageStateChange,proto3,oneof"`
1291}
1292
1293type StateChangeInfo_StandbyStateChange struct {
1294 StandbyStateChange *StandbyStateChange `protobuf:"bytes,5,opt,name=standby_state_change,json=standbyStateChange,proto3,oneof"`
1295}
1296
1297func (*StateChangeInfo_AdminStateChange) isStateChangeInfo_StateChange() {}
1298
1299func (*StateChangeInfo_OperStateChange) isStateChangeInfo_StateChange() {}
1300
1301func (*StateChangeInfo_AlarmStateChange) isStateChangeInfo_StateChange() {}
1302
1303func (*StateChangeInfo_UsageStateChange) isStateChangeInfo_StateChange() {}
1304
1305func (*StateChangeInfo_StandbyStateChange) isStateChangeInfo_StateChange() {}
1306
1307func (m *StateChangeInfo) GetStateChange() isStateChangeInfo_StateChange {
1308 if m != nil {
1309 return m.StateChange
1310 }
1311 return nil
1312}
1313
1314func (m *StateChangeInfo) GetAdminStateChange() *AdminStateChange {
1315 if x, ok := m.GetStateChange().(*StateChangeInfo_AdminStateChange); ok {
1316 return x.AdminStateChange
1317 }
1318 return nil
1319}
1320
1321func (m *StateChangeInfo) GetOperStateChange() *OperStateChange {
1322 if x, ok := m.GetStateChange().(*StateChangeInfo_OperStateChange); ok {
1323 return x.OperStateChange
1324 }
1325 return nil
1326}
1327
1328func (m *StateChangeInfo) GetAlarmStateChange() *AlarmStateChange {
1329 if x, ok := m.GetStateChange().(*StateChangeInfo_AlarmStateChange); ok {
1330 return x.AlarmStateChange
1331 }
1332 return nil
1333}
1334
1335func (m *StateChangeInfo) GetUsageStateChange() *UsageStateChange {
1336 if x, ok := m.GetStateChange().(*StateChangeInfo_UsageStateChange); ok {
1337 return x.UsageStateChange
1338 }
1339 return nil
1340}
1341
1342func (m *StateChangeInfo) GetStandbyStateChange() *StandbyStateChange {
1343 if x, ok := m.GetStateChange().(*StateChangeInfo_StandbyStateChange); ok {
1344 return x.StandbyStateChange
1345 }
1346 return nil
1347}
1348
1349// XXX_OneofWrappers is for the internal use of the proto package.
1350func (*StateChangeInfo) XXX_OneofWrappers() []interface{} {
1351 return []interface{}{
1352 (*StateChangeInfo_AdminStateChange)(nil),
1353 (*StateChangeInfo_OperStateChange)(nil),
1354 (*StateChangeInfo_AlarmStateChange)(nil),
1355 (*StateChangeInfo_UsageStateChange)(nil),
1356 (*StateChangeInfo_StandbyStateChange)(nil),
1357 }
1358}
1359
Amit Ghoshd0151a32025-10-03 10:53:14 +02001360type GenericEventInfo struct {
1361 Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
1362 MessageCode string `protobuf:"bytes,2,opt,name=message_code,json=messageCode,proto3" json:"message_code,omitempty"`
1363 Severity GenericEventInfo_EventSeverity `protobuf:"varint,3,opt,name=severity,proto3,enum=dmi.GenericEventInfo_EventSeverity" json:"severity,omitempty"`
1364 XXX_NoUnkeyedLiteral struct{} `json:"-"`
1365 XXX_unrecognized []byte `json:"-"`
1366 XXX_sizecache int32 `json:"-"`
1367}
1368
1369func (m *GenericEventInfo) Reset() { *m = GenericEventInfo{} }
1370func (m *GenericEventInfo) String() string { return proto.CompactTextString(m) }
1371func (*GenericEventInfo) ProtoMessage() {}
1372func (*GenericEventInfo) Descriptor() ([]byte, []int) {
1373 return fileDescriptor_8962d785556e9979, []int{16}
1374}
1375
1376func (m *GenericEventInfo) XXX_Unmarshal(b []byte) error {
1377 return xxx_messageInfo_GenericEventInfo.Unmarshal(m, b)
1378}
1379func (m *GenericEventInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1380 return xxx_messageInfo_GenericEventInfo.Marshal(b, m, deterministic)
1381}
1382func (m *GenericEventInfo) XXX_Merge(src proto.Message) {
1383 xxx_messageInfo_GenericEventInfo.Merge(m, src)
1384}
1385func (m *GenericEventInfo) XXX_Size() int {
1386 return xxx_messageInfo_GenericEventInfo.Size(m)
1387}
1388func (m *GenericEventInfo) XXX_DiscardUnknown() {
1389 xxx_messageInfo_GenericEventInfo.DiscardUnknown(m)
1390}
1391
1392var xxx_messageInfo_GenericEventInfo proto.InternalMessageInfo
1393
1394func (m *GenericEventInfo) GetMessage() string {
1395 if m != nil {
1396 return m.Message
1397 }
1398 return ""
1399}
1400
1401func (m *GenericEventInfo) GetMessageCode() string {
1402 if m != nil {
1403 return m.MessageCode
1404 }
1405 return ""
1406}
1407
1408func (m *GenericEventInfo) GetSeverity() GenericEventInfo_EventSeverity {
1409 if m != nil {
1410 return m.Severity
1411 }
1412 return GenericEventInfo_EVENT_SEVERITY_UNSPECIFIED
1413}
1414
Amit Ghosh09f28362020-06-12 21:52:19 +01001415type Event struct {
1416 EventMetadata *EventMetaData `protobuf:"bytes,1,opt,name=event_metadata,json=eventMetadata,proto3" json:"event_metadata,omitempty"`
1417 EventId EventIds `protobuf:"varint,2,opt,name=event_id,json=eventId,proto3,enum=dmi.EventIds" json:"event_id,omitempty"`
1418 RaisedTs *timestamp.Timestamp `protobuf:"bytes,3,opt,name=raised_ts,json=raisedTs,proto3" json:"raised_ts,omitempty"`
1419 // Optional threshold information for an event
1420 ThresholdInfo *ThresholdInformation `protobuf:"bytes,4,opt,name=threshold_info,json=thresholdInfo,proto3" json:"threshold_info,omitempty"`
1421 // Any additional info regarding the event
Amit Ghoshd0151a32025-10-03 10:53:14 +02001422 AddInfo string `protobuf:"bytes,5,opt,name=add_info,json=addInfo,proto3" json:"add_info,omitempty"`
1423 StateChangeInfo *StateChangeInfo `protobuf:"bytes,6,opt,name=state_change_info,json=stateChangeInfo,proto3" json:"state_change_info,omitempty"`
1424 GenericEventInfo *GenericEventInfo `protobuf:"bytes,7,opt,name=generic_event_info,json=genericEventInfo,proto3" json:"generic_event_info,omitempty"`
1425 XXX_NoUnkeyedLiteral struct{} `json:"-"`
1426 XXX_unrecognized []byte `json:"-"`
1427 XXX_sizecache int32 `json:"-"`
Amit Ghosh09f28362020-06-12 21:52:19 +01001428}
1429
1430func (m *Event) Reset() { *m = Event{} }
1431func (m *Event) String() string { return proto.CompactTextString(m) }
1432func (*Event) ProtoMessage() {}
1433func (*Event) Descriptor() ([]byte, []int) {
Amit Ghoshd0151a32025-10-03 10:53:14 +02001434 return fileDescriptor_8962d785556e9979, []int{17}
Amit Ghosh09f28362020-06-12 21:52:19 +01001435}
1436
1437func (m *Event) XXX_Unmarshal(b []byte) error {
1438 return xxx_messageInfo_Event.Unmarshal(m, b)
1439}
1440func (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1441 return xxx_messageInfo_Event.Marshal(b, m, deterministic)
1442}
1443func (m *Event) XXX_Merge(src proto.Message) {
1444 xxx_messageInfo_Event.Merge(m, src)
1445}
1446func (m *Event) XXX_Size() int {
1447 return xxx_messageInfo_Event.Size(m)
1448}
1449func (m *Event) XXX_DiscardUnknown() {
1450 xxx_messageInfo_Event.DiscardUnknown(m)
1451}
1452
1453var xxx_messageInfo_Event proto.InternalMessageInfo
1454
1455func (m *Event) GetEventMetadata() *EventMetaData {
1456 if m != nil {
1457 return m.EventMetadata
1458 }
1459 return nil
1460}
1461
1462func (m *Event) GetEventId() EventIds {
1463 if m != nil {
1464 return m.EventId
1465 }
1466 return EventIds_EVENT_NAME_UNDEFINED
1467}
1468
1469func (m *Event) GetRaisedTs() *timestamp.Timestamp {
1470 if m != nil {
1471 return m.RaisedTs
1472 }
1473 return nil
1474}
1475
1476func (m *Event) GetThresholdInfo() *ThresholdInformation {
1477 if m != nil {
1478 return m.ThresholdInfo
1479 }
1480 return nil
1481}
1482
1483func (m *Event) GetAddInfo() string {
1484 if m != nil {
1485 return m.AddInfo
1486 }
1487 return ""
1488}
1489
Amit Ghoshe45d9972025-06-26 14:52:48 +02001490func (m *Event) GetStateChangeInfo() *StateChangeInfo {
1491 if m != nil {
1492 return m.StateChangeInfo
1493 }
1494 return nil
1495}
1496
Amit Ghoshd0151a32025-10-03 10:53:14 +02001497func (m *Event) GetGenericEventInfo() *GenericEventInfo {
1498 if m != nil {
1499 return m.GenericEventInfo
1500 }
1501 return nil
1502}
1503
Amit Ghosh09f28362020-06-12 21:52:19 +01001504func init() {
1505 proto.RegisterEnum("dmi.EventIds", EventIds_name, EventIds_value)
amit.ghoshae473032021-01-10 11:59:10 +01001506 proto.RegisterEnum("dmi.ListEventsResponse_Reason", ListEventsResponse_Reason_name, ListEventsResponse_Reason_value)
1507 proto.RegisterEnum("dmi.EventsConfigurationResponse_Reason", EventsConfigurationResponse_Reason_name, EventsConfigurationResponse_Reason_value)
Amit Ghoshd0151a32025-10-03 10:53:14 +02001508 proto.RegisterEnum("dmi.GenericEventInfo_EventSeverity", GenericEventInfo_EventSeverity_name, GenericEventInfo_EventSeverity_value)
Amit Ghosh09f28362020-06-12 21:52:19 +01001509 proto.RegisterType((*ValueType)(nil), "dmi.ValueType")
1510 proto.RegisterType((*WaterMarks)(nil), "dmi.WaterMarks")
1511 proto.RegisterType((*Thresholds)(nil), "dmi.Thresholds")
1512 proto.RegisterType((*ThresholdInformation)(nil), "dmi.ThresholdInformation")
1513 proto.RegisterType((*EventCfg)(nil), "dmi.EventCfg")
1514 proto.RegisterType((*EventsCfg)(nil), "dmi.EventsCfg")
1515 proto.RegisterType((*ListEventsResponse)(nil), "dmi.ListEventsResponse")
1516 proto.RegisterType((*EventsConfigurationRequest)(nil), "dmi.EventsConfigurationRequest")
1517 proto.RegisterType((*EventsConfigurationResponse)(nil), "dmi.EventsConfigurationResponse")
1518 proto.RegisterType((*EventMetaData)(nil), "dmi.EventMetaData")
Amit Ghoshe45d9972025-06-26 14:52:48 +02001519 proto.RegisterType((*AdminStateChange)(nil), "dmi.AdminStateChange")
1520 proto.RegisterType((*OperStateChange)(nil), "dmi.OperStateChange")
1521 proto.RegisterType((*AlarmStateChange)(nil), "dmi.AlarmStateChange")
1522 proto.RegisterType((*UsageStateChange)(nil), "dmi.UsageStateChange")
1523 proto.RegisterType((*StandbyStateChange)(nil), "dmi.StandbyStateChange")
1524 proto.RegisterType((*StateChangeInfo)(nil), "dmi.StateChangeInfo")
Amit Ghoshd0151a32025-10-03 10:53:14 +02001525 proto.RegisterType((*GenericEventInfo)(nil), "dmi.GenericEventInfo")
Amit Ghosh09f28362020-06-12 21:52:19 +01001526 proto.RegisterType((*Event)(nil), "dmi.Event")
1527}
1528
1529func init() { proto.RegisterFile("dmi/hw_events_mgmt_service.proto", fileDescriptor_8962d785556e9979) }
1530
1531var fileDescriptor_8962d785556e9979 = []byte{
Amit Ghoshd0151a32025-10-03 10:53:14 +02001532 // 2184 bytes of a gzipped FileDescriptorProto
1533 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x58, 0x5b, 0x73, 0xdb, 0xc6,
1534 0x15, 0x16, 0x05, 0x51, 0x12, 0x8f, 0x24, 0x1a, 0xde, 0x51, 0x6c, 0x59, 0xae, 0x6d, 0x85, 0x4e,
1535 0x62, 0x59, 0xb5, 0x49, 0x47, 0x76, 0xed, 0x7a, 0xf2, 0x90, 0x40, 0x20, 0x24, 0xa2, 0x26, 0x01,
1536 0xcd, 0x12, 0xa4, 0xea, 0x3e, 0x04, 0x03, 0x0b, 0x4b, 0x0a, 0x31, 0x01, 0x30, 0x00, 0x28, 0x55,
1537 0xed, 0x4c, 0xa7, 0x7d, 0xea, 0xf4, 0xad, 0x97, 0xf4, 0xa9, 0x9d, 0xfe, 0x82, 0xa6, 0xfd, 0x03,
1538 0xe9, 0xed, 0xad, 0x97, 0x3f, 0xd0, 0xfc, 0x88, 0xbe, 0xf5, 0x9e, 0xde, 0x06, 0xbb, 0x20, 0x01,
1539 0x82, 0x37, 0x79, 0xa6, 0x6f, 0xc4, 0x39, 0xdf, 0xf9, 0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, 0x18, 0xb4, 0x97, 0x05, 0xee,
1551 0xd4, 0xe8, 0x14, 0x30, 0xc0, 0x91, 0x11, 0x10, 0xaf, 0x66, 0x78, 0x2f, 0x7d, 0x54, 0x80, 0x85,
1552 0x13, 0xab, 0x7d, 0x42, 0x53, 0x5b, 0xd9, 0xcd, 0x53, 0x86, 0x38, 0x9a, 0xfa, 0xd0, 0x16, 0x70,
1553 0x1d, 0xf7, 0x8c, 0x66, 0x38, 0x0a, 0x09, 0x5d, 0x85, 0x97, 0x00, 0xda, 0x89, 0x47, 0xfc, 0x13,
1554 0xb7, 0x63, 0xfa, 0xe8, 0x0e, 0x64, 0x7b, 0xdd, 0x2e, 0xf1, 0x22, 0xd2, 0x4b, 0x34, 0x22, 0xd6,
1555 0xac, 0xcc, 0x61, 0xe6, 0x0f, 0x81, 0x1d, 0xf7, 0x8c, 0x78, 0x11, 0xf5, 0x38, 0x20, 0xf5, 0xef,
1556 0xad, 0x40, 0x2e, 0xe8, 0xf3, 0x17, 0xbe, 0x01, 0xeb, 0x03, 0x31, 0xd9, 0x69, 0xb9, 0x9e, 0x6d,
1557 0x04, 0x96, 0xeb, 0xa0, 0x2f, 0x40, 0xde, 0x7d, 0x11, 0x56, 0x9b, 0x98, 0xe1, 0x9c, 0xf5, 0xc8,
1558 0x84, 0x41, 0xad, 0xf5, 0x51, 0xd4, 0x84, 0x4a, 0x00, 0x03, 0x6e, 0x7f, 0x28, 0x93, 0x78, 0x48,
1559 0x38, 0x01, 0x29, 0x7c, 0x92, 0x81, 0x65, 0x29, 0x6c, 0x30, 0xb1, 0xd5, 0x46, 0xdb, 0xb0, 0x4c,
1560 0x9b, 0x4d, 0xb7, 0x4c, 0x2a, 0x97, 0xdf, 0x5d, 0xa3, 0xb1, 0x14, 0x20, 0x9b, 0x3e, 0x5e, 0x22,
1561 0xec, 0x17, 0xba, 0x0d, 0x6b, 0x96, 0xaf, 0x1f, 0xbb, 0x4e, 0xcb, 0x6a, 0xf7, 0x3c, 0x62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43,
1573 0x08, 0xf2, 0x0d, 0xe5, 0x99, 0xa2, 0x1e, 0x29, 0x7a, 0x59, 0x6a, 0xca, 0xa2, 0xc4, 0x67, 0x42,
1574 0x9b, 0xac, 0x68, 0x12, 0x56, 0x84, 0xaa, 0x2e, 0x61, 0xac, 0x62, 0x7e, 0x1e, 0x5d, 0x01, 0xc4,
1575 0xfc, 0x7a, 0x43, 0xc1, 0x92, 0x20, 0x56, 0x84, 0xbd, 0xaa, 0xc4, 0x73, 0x85, 0x8f, 0x33, 0xb0,
1576 0x19, 0xa5, 0x16, 0x95, 0x92, 0x76, 0x24, 0x26, 0x1f, 0xf6, 0x88, 0x1f, 0xa0, 0x1d, 0x58, 0x31,
1577 0x49, 0xb8, 0x07, 0xb1, 0x02, 0x65, 0xd2, 0x05, 0x02, 0xe6, 0x0d, 0x7f, 0xa3, 0x1d, 0x58, 0x3a,
1578 0x3e, 0x31, 0x9c, 0x36, 0xf1, 0x87, 0xd6, 0xdb, 0x60, 0xe0, 0xe1, 0x0e, 0x11, 0x01, 0xd0, 0x0e,
1579 0xf0, 0x1e, 0xf1, 0x49, 0xa0, 0x07, 0xae, 0x6e, 0x92, 0x96, 0xd1, 0xeb, 0x04, 0x74, 0xb6, 0x96,
1580 0x2b, 0x73, 0x38, 0x4f, 0x3d, 0x9a, 0x5b, 0x66, 0xf6, 0x70, 0x05, 0xb9, 0x5d, 0xc2, 0xf2, 0x2a,
1581 0xfc, 0x78, 0x1e, 0xae, 0x8f, 0xcd, 0xf7, 0x55, 0x2a, 0xfb, 0x6e, 0xaa, 0xb2, 0x77, 0x92, 0x89,
1582 0x8e, 0xa3, 0x4d, 0x97, 0x78, 0xa4, 0x74, 0xdc, 0x98, 0xd2, 0x79, 0xff, 0xa7, 0xd2, 0x51, 0x5b,
1583 0x53, 0xa8, 0xca, 0x65, 0x5d, 0x54, 0x95, 0x7d, 0xf9, 0x80, 0xe7, 0x26, 0x94, 0x73, 0xa1, 0xf0,
1584 0x51, 0x06, 0xd6, 0xe8, 0x38, 0x6a, 0x24, 0x30, 0xc2, 0xed, 0xf4, 0x95, 0x2a, 0x38, 0xba, 0x22,
1585 0xe7, 0xa7, 0xaf, 0x48, 0xf4, 0x66, 0x32, 0xc2, 0x31, 0x6c, 0x12, 0xcd, 0x44, 0x0c, 0x53, 0x0c,
1586 0x9b, 0x14, 0x3e, 0x00, 0x5e, 0x30, 0x6d, 0xcb, 0x09, 0xeb, 0x40, 0x44, 0xda, 0x03, 0x68, 0x07,
1587 0x38, 0xb7, 0xd3, 0xdf, 0x79, 0x36, 0xa8, 0x82, 0xd8, 0x0f, 0x8a, 0xc1, 0x38, 0x04, 0x85, 0x58,
1588 0x87, 0x9c, 0x45, 0xd5, 0x9a, 0x82, 0x75, 0xc8, 0x59, 0xa1, 0x0d, 0x97, 0xd4, 0x2e, 0xf1, 0x92,
1589 0x52, 0x77, 0x93, 0x52, 0x57, 0x87, 0xc3, 0x07, 0x58, 0xa6, 0x74, 0x37, 0xa9, 0x34, 0x19, 0x1a,
1590 0x0a, 0x85, 0x83, 0xea, 0x18, 0x9e, 0x7d, 0xe1, 0x41, 0x0d, 0xc0, 0x17, 0x18, 0x54, 0x02, 0x1b,
1591 0x69, 0x35, 0x7c, 0xa3, 0x4d, 0x2e, 0xaa, 0x15, 0x83, 0x67, 0x6b, 0x25, 0xb1, 0xa1, 0x56, 0x17,
1592 0x50, 0x3d, 0x30, 0x1c, 0xf3, 0xc5, 0x79, 0x52, 0xed, 0x5e, 0x52, 0x6d, 0x73, 0x98, 0x21, 0x09,
1593 0x67, 0x7a, 0xf7, 0x92, 0x7a, 0x53, 0xd1, 0xa1, 0xe2, 0xb7, 0x39, 0xb8, 0x94, 0xd0, 0x0a, 0x4f,
1594 0x46, 0x24, 0x01, 0x32, 0xc2, 0xca, 0xea, 0xe1, 0x9a, 0x25, 0x3a, 0xdb, 0x38, 0xa2, 0xf6, 0x7d,
1595 0x8d, 0x12, 0xa6, 0x3b, 0xaa, 0x32, 0x87, 0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0x26, 0x14, 0xfe, 0xcb, 0xa1, 0x9b, 0xfd, 0x53, 0xa9, 0x72, 0xa4, 0x2b, 0xda, 0xa1, 0x5e, 0x7f,
1652 0xae, 0x88, 0x83, 0x45, 0xfa, 0xcd, 0x85, 0xa1, 0xf1, 0xa5, 0xfd, 0x09, 0xa6, 0x6f, 0x2d, 0xa0,
1653 0x1b, 0xb0, 0xc1, 0x90, 0x55, 0x59, 0x91, 0x74, 0x51, 0xc0, 0xe5, 0x78, 0x51, 0xff, 0x71, 0x01,
1654 0x7d, 0x0e, 0xae, 0x8e, 0x75, 0xcb, 0x0a, 0xff, 0x69, 0x42, 0x46, 0x54, 0x6b, 0x87, 0xaa, 0x42,
1655 0xcf, 0x81, 0x72, 0x4d, 0x56, 0xf4, 0xba, 0x26, 0x68, 0x92, 0x2e, 0x56, 0x04, 0xe5, 0x40, 0x2a,
1656 0xf3, 0x9f, 0x64, 0xe3, 0x3a, 0xc6, 0x48, 0xf5, 0x50, 0xc2, 0x29, 0xe0, 0x2f, 0xb2, 0x63, 0x29,
1657 0xab, 0x02, 0xae, 0xa5, 0x90, 0xbf, 0x1c, 0x8b, 0x64, 0x33, 0x37, 0x8c, 0xfc, 0x55, 0x36, 0xae,
1658 0x47, 0x8c, 0xac, 0x6b, 0x82, 0x52, 0xde, 0x7b, 0x9e, 0xc2, 0xfe, 0x3a, 0x8b, 0x0a, 0x70, 0x23,
1659 0x8d, 0x3d, 0x90, 0x14, 0x09, 0xcb, 0xa2, 0x4e, 0xed, 0xfc, 0x6f, 0xb2, 0xbb, 0x7f, 0xca, 0xc0,
1660 0x0d, 0xc5, 0x08, 0xac, 0x53, 0xc2, 0xde, 0x7c, 0x6a, 0x86, 0x63, 0xb4, 0x89, 0x4d, 0xff, 0x64,
1661 0xd0, 0x17, 0x77, 0xf4, 0x18, 0x20, 0x7e, 0xe8, 0x43, 0xec, 0x19, 0xb3, 0x62, 0x78, 0xe6, 0x99,
1662 0xe1, 0x11, 0xb9, 0xbc, 0x79, 0x75, 0xc2, 0x53, 0x20, 0x7a, 0x1f, 0xae, 0x35, 0xba, 0xa6, 0x11,
1663 0x90, 0x31, 0x8f, 0x49, 0xe8, 0xd6, 0xe4, 0x67, 0x26, 0xfa, 0xda, 0xb6, 0xb9, 0x35, 0xeb, 0x1d,
1664 0x0a, 0x3d, 0x82, 0xd5, 0x7a, 0xe0, 0x11, 0xc3, 0x8e, 0x32, 0xbb, 0x32, 0xf2, 0x7f, 0x41, 0xb2,
1665 0xbb, 0xc1, 0xf9, 0x26, 0xc4, 0x4c, 0x0f, 0x32, 0x7b, 0xef, 0x7c, 0xe5, 0x69, 0xdb, 0x0a, 0x4e,
1666 0x7a, 0x2f, 0x8a, 0xc7, 0xae, 0x5d, 0x72, 0xbb, 0xc4, 0x39, 0x76, 0x3d, 0xb3, 0xc4, 0x5e, 0x7e,
1667 0xee, 0xdb, 0x83, 0xd1, 0xdf, 0xb7, 0x9c, 0x80, 0x78, 0x2d, 0xe3, 0x98, 0x94, 0x4e, 0x1f, 0x96,
1668 0xda, 0x6e, 0xc9, 0xb4, 0xad, 0x17, 0x8b, 0x94, 0xfa, 0xe1, 0xff, 0x02, 0x00, 0x00, 0xff, 0xff,
1669 0x70, 0xec, 0xeb, 0x17, 0xa1, 0x18, 0x00, 0x00,
Amit Ghosh09f28362020-06-12 21:52:19 +01001670}
1671
1672// Reference imports to suppress errors if they are not otherwise used.
1673var _ context.Context
1674var _ grpc.ClientConn
1675
1676// This is a compile-time assertion to ensure that this generated file
1677// is compatible with the grpc package it is being compiled against.
1678const _ = grpc.SupportPackageIsVersion4
1679
1680// NativeEventsManagementServiceClient is the client API for NativeEventsManagementService service.
1681//
1682// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
1683type NativeEventsManagementServiceClient interface {
1684 // List the supported events for the passed device
1685 ListEvents(ctx context.Context, in *HardwareID, opts ...grpc.CallOption) (*ListEventsResponse, error)
1686 // Updates the configuration of the list of events in the request
aghoshc301dcd2020-09-03 16:55:34 +01001687 // The default behavior of the device is to report all the supported events
Amit Ghosh09f28362020-06-12 21:52:19 +01001688 // This configuration is persisted across reboots of the device or the device manager
1689 UpdateEventsConfiguration(ctx context.Context, in *EventsConfigurationRequest, opts ...grpc.CallOption) (*EventsConfigurationResponse, error)
Chandrakanth Nalkudre Gowda68590a42021-04-22 15:19:21 +05301690 // Initiate the server streaming of the events
1691 StreamEvents(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (NativeEventsManagementService_StreamEventsClient, error)
Amit Ghosh09f28362020-06-12 21:52:19 +01001692}
1693
1694type nativeEventsManagementServiceClient struct {
1695 cc *grpc.ClientConn
1696}
1697
1698func NewNativeEventsManagementServiceClient(cc *grpc.ClientConn) NativeEventsManagementServiceClient {
1699 return &nativeEventsManagementServiceClient{cc}
1700}
1701
1702func (c *nativeEventsManagementServiceClient) ListEvents(ctx context.Context, in *HardwareID, opts ...grpc.CallOption) (*ListEventsResponse, error) {
1703 out := new(ListEventsResponse)
1704 err := c.cc.Invoke(ctx, "/dmi.NativeEventsManagementService/ListEvents", in, out, opts...)
1705 if err != nil {
1706 return nil, err
1707 }
1708 return out, nil
1709}
1710
1711func (c *nativeEventsManagementServiceClient) UpdateEventsConfiguration(ctx context.Context, in *EventsConfigurationRequest, opts ...grpc.CallOption) (*EventsConfigurationResponse, error) {
1712 out := new(EventsConfigurationResponse)
1713 err := c.cc.Invoke(ctx, "/dmi.NativeEventsManagementService/UpdateEventsConfiguration", in, out, opts...)
1714 if err != nil {
1715 return nil, err
1716 }
1717 return out, nil
1718}
1719
Chandrakanth Nalkudre Gowda68590a42021-04-22 15:19:21 +05301720func (c *nativeEventsManagementServiceClient) StreamEvents(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (NativeEventsManagementService_StreamEventsClient, error) {
1721 stream, err := c.cc.NewStream(ctx, &_NativeEventsManagementService_serviceDesc.Streams[0], "/dmi.NativeEventsManagementService/StreamEvents", opts...)
1722 if err != nil {
1723 return nil, err
1724 }
1725 x := &nativeEventsManagementServiceStreamEventsClient{stream}
1726 if err := x.ClientStream.SendMsg(in); err != nil {
1727 return nil, err
1728 }
1729 if err := x.ClientStream.CloseSend(); err != nil {
1730 return nil, err
1731 }
1732 return x, nil
1733}
1734
1735type NativeEventsManagementService_StreamEventsClient interface {
1736 Recv() (*Event, error)
1737 grpc.ClientStream
1738}
1739
1740type nativeEventsManagementServiceStreamEventsClient struct {
1741 grpc.ClientStream
1742}
1743
1744func (x *nativeEventsManagementServiceStreamEventsClient) Recv() (*Event, error) {
1745 m := new(Event)
1746 if err := x.ClientStream.RecvMsg(m); err != nil {
1747 return nil, err
1748 }
1749 return m, nil
1750}
1751
Amit Ghosh09f28362020-06-12 21:52:19 +01001752// NativeEventsManagementServiceServer is the server API for NativeEventsManagementService service.
1753type NativeEventsManagementServiceServer interface {
1754 // List the supported events for the passed device
1755 ListEvents(context.Context, *HardwareID) (*ListEventsResponse, error)
1756 // Updates the configuration of the list of events in the request
aghoshc301dcd2020-09-03 16:55:34 +01001757 // The default behavior of the device is to report all the supported events
Amit Ghosh09f28362020-06-12 21:52:19 +01001758 // This configuration is persisted across reboots of the device or the device manager
1759 UpdateEventsConfiguration(context.Context, *EventsConfigurationRequest) (*EventsConfigurationResponse, error)
Chandrakanth Nalkudre Gowda68590a42021-04-22 15:19:21 +05301760 // Initiate the server streaming of the events
1761 StreamEvents(*empty.Empty, NativeEventsManagementService_StreamEventsServer) error
Amit Ghosh09f28362020-06-12 21:52:19 +01001762}
1763
Andrea Campanellac795b7d2021-04-14 13:24:44 +02001764// UnimplementedNativeEventsManagementServiceServer can be embedded to have forward compatible implementations.
1765type UnimplementedNativeEventsManagementServiceServer struct {
1766}
1767
1768func (*UnimplementedNativeEventsManagementServiceServer) ListEvents(ctx context.Context, req *HardwareID) (*ListEventsResponse, error) {
1769 return nil, status.Errorf(codes.Unimplemented, "method ListEvents not implemented")
1770}
1771func (*UnimplementedNativeEventsManagementServiceServer) UpdateEventsConfiguration(ctx context.Context, req *EventsConfigurationRequest) (*EventsConfigurationResponse, error) {
1772 return nil, status.Errorf(codes.Unimplemented, "method UpdateEventsConfiguration not implemented")
1773}
Chandrakanth Nalkudre Gowda68590a42021-04-22 15:19:21 +05301774func (*UnimplementedNativeEventsManagementServiceServer) StreamEvents(req *empty.Empty, srv NativeEventsManagementService_StreamEventsServer) error {
1775 return status.Errorf(codes.Unimplemented, "method StreamEvents not implemented")
1776}
Andrea Campanellac795b7d2021-04-14 13:24:44 +02001777
Amit Ghosh09f28362020-06-12 21:52:19 +01001778func RegisterNativeEventsManagementServiceServer(s *grpc.Server, srv NativeEventsManagementServiceServer) {
1779 s.RegisterService(&_NativeEventsManagementService_serviceDesc, srv)
1780}
1781
1782func _NativeEventsManagementService_ListEvents_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1783 in := new(HardwareID)
1784 if err := dec(in); err != nil {
1785 return nil, err
1786 }
1787 if interceptor == nil {
1788 return srv.(NativeEventsManagementServiceServer).ListEvents(ctx, in)
1789 }
1790 info := &grpc.UnaryServerInfo{
1791 Server: srv,
1792 FullMethod: "/dmi.NativeEventsManagementService/ListEvents",
1793 }
1794 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1795 return srv.(NativeEventsManagementServiceServer).ListEvents(ctx, req.(*HardwareID))
1796 }
1797 return interceptor(ctx, in, info, handler)
1798}
1799
1800func _NativeEventsManagementService_UpdateEventsConfiguration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1801 in := new(EventsConfigurationRequest)
1802 if err := dec(in); err != nil {
1803 return nil, err
1804 }
1805 if interceptor == nil {
1806 return srv.(NativeEventsManagementServiceServer).UpdateEventsConfiguration(ctx, in)
1807 }
1808 info := &grpc.UnaryServerInfo{
1809 Server: srv,
1810 FullMethod: "/dmi.NativeEventsManagementService/UpdateEventsConfiguration",
1811 }
1812 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1813 return srv.(NativeEventsManagementServiceServer).UpdateEventsConfiguration(ctx, req.(*EventsConfigurationRequest))
1814 }
1815 return interceptor(ctx, in, info, handler)
1816}
1817
Chandrakanth Nalkudre Gowda68590a42021-04-22 15:19:21 +05301818func _NativeEventsManagementService_StreamEvents_Handler(srv interface{}, stream grpc.ServerStream) error {
1819 m := new(empty.Empty)
1820 if err := stream.RecvMsg(m); err != nil {
1821 return err
1822 }
1823 return srv.(NativeEventsManagementServiceServer).StreamEvents(m, &nativeEventsManagementServiceStreamEventsServer{stream})
1824}
1825
1826type NativeEventsManagementService_StreamEventsServer interface {
1827 Send(*Event) error
1828 grpc.ServerStream
1829}
1830
1831type nativeEventsManagementServiceStreamEventsServer struct {
1832 grpc.ServerStream
1833}
1834
1835func (x *nativeEventsManagementServiceStreamEventsServer) Send(m *Event) error {
1836 return x.ServerStream.SendMsg(m)
1837}
1838
Amit Ghosh09f28362020-06-12 21:52:19 +01001839var _NativeEventsManagementService_serviceDesc = grpc.ServiceDesc{
1840 ServiceName: "dmi.NativeEventsManagementService",
1841 HandlerType: (*NativeEventsManagementServiceServer)(nil),
1842 Methods: []grpc.MethodDesc{
1843 {
1844 MethodName: "ListEvents",
1845 Handler: _NativeEventsManagementService_ListEvents_Handler,
1846 },
1847 {
1848 MethodName: "UpdateEventsConfiguration",
1849 Handler: _NativeEventsManagementService_UpdateEventsConfiguration_Handler,
1850 },
1851 },
Chandrakanth Nalkudre Gowda68590a42021-04-22 15:19:21 +05301852 Streams: []grpc.StreamDesc{
1853 {
1854 StreamName: "StreamEvents",
1855 Handler: _NativeEventsManagementService_StreamEvents_Handler,
1856 ServerStreams: true,
1857 },
1858 },
Amit Ghosh09f28362020-06-12 21:52:19 +01001859 Metadata: "dmi/hw_events_mgmt_service.proto",
1860}