blob: cfca73786b347c662f82c6e164a057815b1df547 [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 Ghosh09f28362020-06-12 21:52:19 +010099)
100
101var EventIds_name = map[int32]string{
102 0: "EVENT_NAME_UNDEFINED",
103 100: "EVENT_TRANSCEIVER_PLUG_OUT",
104 101: "EVENT_TRANSCEIVER_PLUG_IN",
105 102: "EVENT_TRANSCEIVER_VOLTAGE_ABOVE_THRESHOLD",
106 103: "EVENT_TRANSCEIVER_VOLTAGE_BELOW_THRESHOLD",
107 104: "EVENT_TRANSCEIVER_TEMPERATURE_ABOVE_THRESHOLD",
108 105: "EVENT_TRANSCEIVER_TEMPERATURE_BELOW_THRESHOLD",
109 106: "EVENT_TRANSCEIVER_CURRENT_ABOVE_THRESHOLD",
110 107: "EVENT_TRANSCEIVER_CURRENT_BELOW_THRESHOLD",
111 108: "EVENT_TRANSCEIVER_RX_POWER_ABOVE_THRESHOLD",
112 109: "EVENT_TRANSCEIVER_RX_POWER_BELOW_THRESHOLD",
113 110: "EVENT_TRANSCEIVER_TX_POWER_ABOVE_THRESHOLD",
114 111: "EVENT_TRANSCEIVER_TX_POWER_BELOW_THRESHOLD",
115 112: "EVENT_TRANSCEIVER_FAILURE",
Amit Ghosh9d6658d2020-06-25 10:43:30 +0100116 113: "EVENT_TRANSCEIVER_VOLTAGE_ABOVE_THRESHOLD_RECOVERED",
117 114: "EVENT_TRANSCEIVER_VOLTAGE_BELOW_THRESHOLD_RECOVERED",
118 115: "EVENT_TRANSCEIVER_TEMPERATURE_ABOVE_THRESHOLD_RECOVERED",
119 116: "EVENT_TRANSCEIVER_TEMPERATURE_BELOW_THRESHOLD_RECOVERED",
120 117: "EVENT_TRANSCEIVER_CURRENT_ABOVE_THRESHOLD_RECOVERED",
121 118: "EVENT_TRANSCEIVER_CURRENT_BELOW_THRESHOLD_RECOVERED",
122 119: "EVENT_TRANSCEIVER_RX_POWER_ABOVE_THRESHOLD_RECOVERED",
123 120: "EVENT_TRANSCEIVER_RX_POWER_BELOW_THRESHOLD_RECOVERED",
124 121: "EVENT_TRANSCEIVER_TX_POWER_ABOVE_THRESHOLD_RECOVERED",
125 122: "EVENT_TRANSCEIVER_TX_POWER_BELOW_THRESHOLD_RECOVERED",
126 123: "EVENT_TRANSCEIVER_FAILURE_RECOVERED",
Amit Ghosh09f28362020-06-12 21:52:19 +0100127 200: "EVENT_PSU_PLUG_OUT",
128 201: "EVENT_PSU_PLUG_IN",
129 202: "EVENT_PSU_FAILURE",
Amit Ghosh9d6658d2020-06-25 10:43:30 +0100130 203: "EVENT_PSU_FAILURE_RECOVERED",
Amit Ghosh09f28362020-06-12 21:52:19 +0100131 300: "EVENT_FAN_FAILURE",
132 301: "EVENT_FAN_PLUG_OUT",
133 302: "EVENT_FAN_PLUG_IN",
Amit Ghosh9d6658d2020-06-25 10:43:30 +0100134 303: "EVENT_FAN_FAILURE_RECOVERED",
Amit Ghosh09f28362020-06-12 21:52:19 +0100135 400: "EVENT_CPU_TEMPERATURE_ABOVE_CRITICAL",
136 401: "EVENT_CPU_TEMPERATURE_ABOVE_FATAL",
Amit Ghosh9d6658d2020-06-25 10:43:30 +0100137 402: "EVENT_CPU_TEMPERATURE_ABOVE_CRITICAL_RECOVERED",
138 403: "EVENT_CPU_TEMPERATURE_ABOVE_FATAL_RECOVERED",
amit.ghosh06f49782023-06-15 13:53:51 +0200139 404: "EVENT_CPU_USAGE_ABOVE_THRESHOLD",
140 405: "EVENT_CPU_USAGE_ABOVE_THRESHOLD_RECOVERED",
Amit Ghosh09f28362020-06-12 21:52:19 +0100141 500: "EVENT_HW_DEVICE_RESET",
142 501: "EVENT_HW_DEVICE_TEMPERATURE_ABOVE_CRITICAL",
143 502: "EVENT_HW_DEVICE_TEMPERATURE_ABOVE_FATAL",
Amit Ghosh9d6658d2020-06-25 10:43:30 +0100144 503: "EVENT_HW_DEVICE_TEMPERATURE_ABOVE_CRITICAL_RECOVERED",
145 504: "EVENT_HW_DEVICE_TEMPERATURE_ABOVE_FATAL_RECOVERED",
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +0530146 505: "EVENT_HW_DEVICE_REBOOT",
amit.ghosh8fe610f2022-01-14 17:44:53 +0100147 506: "EVENT_HW_TEMPERATURE_SENSOR_FAILED",
148 507: "EVENT_HW_ALL_TEMPERATURE_SENSORS_FAILED",
amit.ghosh06f49782023-06-15 13:53:51 +0200149 508: "EVENT_HW_DISK_USAGE_ABOVE_THRESHOLD",
150 509: "EVENT_HW_DISK_USAGE_ABOVE_THRESHOLD_RECOVERED",
151 510: "EVENT_HW_MEMORY_USAGE_ABOVE_THRESHOLD",
152 511: "EVENT_HW_MEMORY_USAGE_ABOVE_THRESHOLD_RECOVERED",
153 512: "EVENT_HW_NTP_SYNC_FAILURE",
154 513: "EVENT_HW_NTP_SYNC_FAILURE_RECOVERED",
amit.ghoshc0c3c242022-03-16 11:00:27 +0100155 600: "EVENT_LINE_CARD_PLUG_OUT",
156 601: "EVENT_LINE_CARD_PLUG_IN",
Amit Ghosh09f28362020-06-12 21:52:19 +0100157}
158
159var EventIds_value = map[string]int32{
Amit Ghosh9d6658d2020-06-25 10:43:30 +0100160 "EVENT_NAME_UNDEFINED": 0,
161 "EVENT_TRANSCEIVER_PLUG_OUT": 100,
162 "EVENT_TRANSCEIVER_PLUG_IN": 101,
163 "EVENT_TRANSCEIVER_VOLTAGE_ABOVE_THRESHOLD": 102,
164 "EVENT_TRANSCEIVER_VOLTAGE_BELOW_THRESHOLD": 103,
165 "EVENT_TRANSCEIVER_TEMPERATURE_ABOVE_THRESHOLD": 104,
166 "EVENT_TRANSCEIVER_TEMPERATURE_BELOW_THRESHOLD": 105,
167 "EVENT_TRANSCEIVER_CURRENT_ABOVE_THRESHOLD": 106,
168 "EVENT_TRANSCEIVER_CURRENT_BELOW_THRESHOLD": 107,
169 "EVENT_TRANSCEIVER_RX_POWER_ABOVE_THRESHOLD": 108,
170 "EVENT_TRANSCEIVER_RX_POWER_BELOW_THRESHOLD": 109,
171 "EVENT_TRANSCEIVER_TX_POWER_ABOVE_THRESHOLD": 110,
172 "EVENT_TRANSCEIVER_TX_POWER_BELOW_THRESHOLD": 111,
173 "EVENT_TRANSCEIVER_FAILURE": 112,
174 "EVENT_TRANSCEIVER_VOLTAGE_ABOVE_THRESHOLD_RECOVERED": 113,
175 "EVENT_TRANSCEIVER_VOLTAGE_BELOW_THRESHOLD_RECOVERED": 114,
176 "EVENT_TRANSCEIVER_TEMPERATURE_ABOVE_THRESHOLD_RECOVERED": 115,
177 "EVENT_TRANSCEIVER_TEMPERATURE_BELOW_THRESHOLD_RECOVERED": 116,
178 "EVENT_TRANSCEIVER_CURRENT_ABOVE_THRESHOLD_RECOVERED": 117,
179 "EVENT_TRANSCEIVER_CURRENT_BELOW_THRESHOLD_RECOVERED": 118,
180 "EVENT_TRANSCEIVER_RX_POWER_ABOVE_THRESHOLD_RECOVERED": 119,
181 "EVENT_TRANSCEIVER_RX_POWER_BELOW_THRESHOLD_RECOVERED": 120,
182 "EVENT_TRANSCEIVER_TX_POWER_ABOVE_THRESHOLD_RECOVERED": 121,
183 "EVENT_TRANSCEIVER_TX_POWER_BELOW_THRESHOLD_RECOVERED": 122,
184 "EVENT_TRANSCEIVER_FAILURE_RECOVERED": 123,
185 "EVENT_PSU_PLUG_OUT": 200,
186 "EVENT_PSU_PLUG_IN": 201,
187 "EVENT_PSU_FAILURE": 202,
188 "EVENT_PSU_FAILURE_RECOVERED": 203,
189 "EVENT_FAN_FAILURE": 300,
190 "EVENT_FAN_PLUG_OUT": 301,
191 "EVENT_FAN_PLUG_IN": 302,
192 "EVENT_FAN_FAILURE_RECOVERED": 303,
193 "EVENT_CPU_TEMPERATURE_ABOVE_CRITICAL": 400,
194 "EVENT_CPU_TEMPERATURE_ABOVE_FATAL": 401,
195 "EVENT_CPU_TEMPERATURE_ABOVE_CRITICAL_RECOVERED": 402,
196 "EVENT_CPU_TEMPERATURE_ABOVE_FATAL_RECOVERED": 403,
amit.ghosh06f49782023-06-15 13:53:51 +0200197 "EVENT_CPU_USAGE_ABOVE_THRESHOLD": 404,
198 "EVENT_CPU_USAGE_ABOVE_THRESHOLD_RECOVERED": 405,
Amit Ghosh9d6658d2020-06-25 10:43:30 +0100199 "EVENT_HW_DEVICE_RESET": 500,
200 "EVENT_HW_DEVICE_TEMPERATURE_ABOVE_CRITICAL": 501,
201 "EVENT_HW_DEVICE_TEMPERATURE_ABOVE_FATAL": 502,
202 "EVENT_HW_DEVICE_TEMPERATURE_ABOVE_CRITICAL_RECOVERED": 503,
203 "EVENT_HW_DEVICE_TEMPERATURE_ABOVE_FATAL_RECOVERED": 504,
Chandrakanth Nalkudre Gowda2f6066c2021-05-13 12:36:32 +0530204 "EVENT_HW_DEVICE_REBOOT": 505,
amit.ghosh8fe610f2022-01-14 17:44:53 +0100205 "EVENT_HW_TEMPERATURE_SENSOR_FAILED": 506,
206 "EVENT_HW_ALL_TEMPERATURE_SENSORS_FAILED": 507,
amit.ghosh06f49782023-06-15 13:53:51 +0200207 "EVENT_HW_DISK_USAGE_ABOVE_THRESHOLD": 508,
208 "EVENT_HW_DISK_USAGE_ABOVE_THRESHOLD_RECOVERED": 509,
209 "EVENT_HW_MEMORY_USAGE_ABOVE_THRESHOLD": 510,
210 "EVENT_HW_MEMORY_USAGE_ABOVE_THRESHOLD_RECOVERED": 511,
211 "EVENT_HW_NTP_SYNC_FAILURE": 512,
212 "EVENT_HW_NTP_SYNC_FAILURE_RECOVERED": 513,
amit.ghoshc0c3c242022-03-16 11:00:27 +0100213 "EVENT_LINE_CARD_PLUG_OUT": 600,
214 "EVENT_LINE_CARD_PLUG_IN": 601,
Amit Ghosh09f28362020-06-12 21:52:19 +0100215}
216
217func (x EventIds) String() string {
218 return proto.EnumName(EventIds_name, int32(x))
219}
220
221func (EventIds) EnumDescriptor() ([]byte, []int) {
222 return fileDescriptor_8962d785556e9979, []int{0}
223}
224
amit.ghoshae473032021-01-10 11:59:10 +0100225type ListEventsResponse_Reason int32
226
227const (
amit.ghoshbd2022e2021-02-22 05:58:53 +0100228 ListEventsResponse_UNDEFINED_REASON ListEventsResponse_Reason = 0
229 ListEventsResponse_UNKNOWN_DEVICE ListEventsResponse_Reason = 1
230 ListEventsResponse_INTERNAL_ERROR ListEventsResponse_Reason = 2
231 ListEventsResponse_DEVICE_UNREACHABLE ListEventsResponse_Reason = 3
amit.ghoshae473032021-01-10 11:59:10 +0100232)
233
234var ListEventsResponse_Reason_name = map[int32]string{
235 0: "UNDEFINED_REASON",
236 1: "UNKNOWN_DEVICE",
237 2: "INTERNAL_ERROR",
amit.ghoshbd2022e2021-02-22 05:58:53 +0100238 3: "DEVICE_UNREACHABLE",
amit.ghoshae473032021-01-10 11:59:10 +0100239}
240
241var ListEventsResponse_Reason_value = map[string]int32{
amit.ghoshbd2022e2021-02-22 05:58:53 +0100242 "UNDEFINED_REASON": 0,
243 "UNKNOWN_DEVICE": 1,
244 "INTERNAL_ERROR": 2,
245 "DEVICE_UNREACHABLE": 3,
amit.ghoshae473032021-01-10 11:59:10 +0100246}
247
248func (x ListEventsResponse_Reason) String() string {
249 return proto.EnumName(ListEventsResponse_Reason_name, int32(x))
250}
251
252func (ListEventsResponse_Reason) EnumDescriptor() ([]byte, []int) {
253 return fileDescriptor_8962d785556e9979, []int{6, 0}
254}
255
256type EventsConfigurationResponse_Reason int32
257
258const (
amit.ghoshbd2022e2021-02-22 05:58:53 +0100259 EventsConfigurationResponse_UNDEFINED_REASON EventsConfigurationResponse_Reason = 0
260 EventsConfigurationResponse_UNKNOWN_DEVICE EventsConfigurationResponse_Reason = 1
261 EventsConfigurationResponse_INTERNAL_ERROR EventsConfigurationResponse_Reason = 2
262 EventsConfigurationResponse_INVALID_CONFIG EventsConfigurationResponse_Reason = 3
263 EventsConfigurationResponse_DEVICE_UNREACHABLE EventsConfigurationResponse_Reason = 4
amit.ghoshae473032021-01-10 11:59:10 +0100264)
265
266var EventsConfigurationResponse_Reason_name = map[int32]string{
267 0: "UNDEFINED_REASON",
268 1: "UNKNOWN_DEVICE",
269 2: "INTERNAL_ERROR",
270 3: "INVALID_CONFIG",
amit.ghoshbd2022e2021-02-22 05:58:53 +0100271 4: "DEVICE_UNREACHABLE",
amit.ghoshae473032021-01-10 11:59:10 +0100272}
273
274var EventsConfigurationResponse_Reason_value = map[string]int32{
amit.ghoshbd2022e2021-02-22 05:58:53 +0100275 "UNDEFINED_REASON": 0,
276 "UNKNOWN_DEVICE": 1,
277 "INTERNAL_ERROR": 2,
278 "INVALID_CONFIG": 3,
279 "DEVICE_UNREACHABLE": 4,
amit.ghoshae473032021-01-10 11:59:10 +0100280}
281
282func (x EventsConfigurationResponse_Reason) String() string {
283 return proto.EnumName(EventsConfigurationResponse_Reason_name, int32(x))
284}
285
286func (EventsConfigurationResponse_Reason) EnumDescriptor() ([]byte, []int) {
287 return fileDescriptor_8962d785556e9979, []int{8, 0}
288}
289
Amit Ghosh09f28362020-06-12 21:52:19 +0100290type ValueType struct {
amit.ghosh93921ec2022-09-08 17:22:40 +0200291 // For val no multiples of units shall be used.
292 // For example, for memory val should be in bytes and not in kilobytes or any
293 // other multiple of the unit byte.
294 //
Amit Ghosh09f28362020-06-12 21:52:19 +0100295 // Types that are valid to be assigned to Val:
296 // *ValueType_IntVal
297 // *ValueType_UintVal
298 // *ValueType_FloatVal
299 Val isValueType_Val `protobuf_oneof:"val"`
amit.ghosh93921ec2022-09-08 17:22:40 +0200300 TypeOfVal DataValueType `protobuf:"varint,4,opt,name=typeOfVal,proto3,enum=dmi.DataValueType" json:"typeOfVal,omitempty"`
Amit Ghosh09f28362020-06-12 21:52:19 +0100301 XXX_NoUnkeyedLiteral struct{} `json:"-"`
302 XXX_unrecognized []byte `json:"-"`
303 XXX_sizecache int32 `json:"-"`
304}
305
306func (m *ValueType) Reset() { *m = ValueType{} }
307func (m *ValueType) String() string { return proto.CompactTextString(m) }
308func (*ValueType) ProtoMessage() {}
309func (*ValueType) Descriptor() ([]byte, []int) {
310 return fileDescriptor_8962d785556e9979, []int{0}
311}
312
313func (m *ValueType) XXX_Unmarshal(b []byte) error {
314 return xxx_messageInfo_ValueType.Unmarshal(m, b)
315}
316func (m *ValueType) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
317 return xxx_messageInfo_ValueType.Marshal(b, m, deterministic)
318}
319func (m *ValueType) XXX_Merge(src proto.Message) {
320 xxx_messageInfo_ValueType.Merge(m, src)
321}
322func (m *ValueType) XXX_Size() int {
323 return xxx_messageInfo_ValueType.Size(m)
324}
325func (m *ValueType) XXX_DiscardUnknown() {
326 xxx_messageInfo_ValueType.DiscardUnknown(m)
327}
328
329var xxx_messageInfo_ValueType proto.InternalMessageInfo
330
331type isValueType_Val interface {
332 isValueType_Val()
333}
334
335type ValueType_IntVal struct {
336 IntVal int64 `protobuf:"varint,1,opt,name=int_val,json=intVal,proto3,oneof"`
337}
338
339type ValueType_UintVal struct {
340 UintVal uint64 `protobuf:"varint,2,opt,name=uint_val,json=uintVal,proto3,oneof"`
341}
342
343type ValueType_FloatVal struct {
344 FloatVal float32 `protobuf:"fixed32,3,opt,name=float_val,json=floatVal,proto3,oneof"`
345}
346
347func (*ValueType_IntVal) isValueType_Val() {}
348
349func (*ValueType_UintVal) isValueType_Val() {}
350
351func (*ValueType_FloatVal) isValueType_Val() {}
352
353func (m *ValueType) GetVal() isValueType_Val {
354 if m != nil {
355 return m.Val
356 }
357 return nil
358}
359
360func (m *ValueType) GetIntVal() int64 {
361 if x, ok := m.GetVal().(*ValueType_IntVal); ok {
362 return x.IntVal
363 }
364 return 0
365}
366
367func (m *ValueType) GetUintVal() uint64 {
368 if x, ok := m.GetVal().(*ValueType_UintVal); ok {
369 return x.UintVal
370 }
371 return 0
372}
373
374func (m *ValueType) GetFloatVal() float32 {
375 if x, ok := m.GetVal().(*ValueType_FloatVal); ok {
376 return x.FloatVal
377 }
378 return 0
379}
380
amit.ghosh93921ec2022-09-08 17:22:40 +0200381func (m *ValueType) GetTypeOfVal() DataValueType {
382 if m != nil {
383 return m.TypeOfVal
384 }
385 return DataValueType_VALUE_TYPE_UNDEFINED
386}
387
Amit Ghosh09f28362020-06-12 21:52:19 +0100388// XXX_OneofWrappers is for the internal use of the proto package.
389func (*ValueType) XXX_OneofWrappers() []interface{} {
390 return []interface{}{
391 (*ValueType_IntVal)(nil),
392 (*ValueType_UintVal)(nil),
393 (*ValueType_FloatVal)(nil),
394 }
395}
396
397type WaterMarks struct {
398 High *ValueType `protobuf:"bytes,1,opt,name=high,proto3" json:"high,omitempty"`
399 Low *ValueType `protobuf:"bytes,2,opt,name=low,proto3" json:"low,omitempty"`
400 XXX_NoUnkeyedLiteral struct{} `json:"-"`
401 XXX_unrecognized []byte `json:"-"`
402 XXX_sizecache int32 `json:"-"`
403}
404
405func (m *WaterMarks) Reset() { *m = WaterMarks{} }
406func (m *WaterMarks) String() string { return proto.CompactTextString(m) }
407func (*WaterMarks) ProtoMessage() {}
408func (*WaterMarks) Descriptor() ([]byte, []int) {
409 return fileDescriptor_8962d785556e9979, []int{1}
410}
411
412func (m *WaterMarks) XXX_Unmarshal(b []byte) error {
413 return xxx_messageInfo_WaterMarks.Unmarshal(m, b)
414}
415func (m *WaterMarks) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
416 return xxx_messageInfo_WaterMarks.Marshal(b, m, deterministic)
417}
418func (m *WaterMarks) XXX_Merge(src proto.Message) {
419 xxx_messageInfo_WaterMarks.Merge(m, src)
420}
421func (m *WaterMarks) XXX_Size() int {
422 return xxx_messageInfo_WaterMarks.Size(m)
423}
424func (m *WaterMarks) XXX_DiscardUnknown() {
425 xxx_messageInfo_WaterMarks.DiscardUnknown(m)
426}
427
428var xxx_messageInfo_WaterMarks proto.InternalMessageInfo
429
430func (m *WaterMarks) GetHigh() *ValueType {
431 if m != nil {
432 return m.High
433 }
434 return nil
435}
436
437func (m *WaterMarks) GetLow() *ValueType {
438 if m != nil {
439 return m.Low
440 }
441 return nil
442}
443
444type Thresholds struct {
445 // Types that are valid to be assigned to Threshold:
446 // *Thresholds_Upper
447 // *Thresholds_Lower
448 Threshold isThresholds_Threshold `protobuf_oneof:"threshold"`
449 XXX_NoUnkeyedLiteral struct{} `json:"-"`
450 XXX_unrecognized []byte `json:"-"`
451 XXX_sizecache int32 `json:"-"`
452}
453
454func (m *Thresholds) Reset() { *m = Thresholds{} }
455func (m *Thresholds) String() string { return proto.CompactTextString(m) }
456func (*Thresholds) ProtoMessage() {}
457func (*Thresholds) Descriptor() ([]byte, []int) {
458 return fileDescriptor_8962d785556e9979, []int{2}
459}
460
461func (m *Thresholds) XXX_Unmarshal(b []byte) error {
462 return xxx_messageInfo_Thresholds.Unmarshal(m, b)
463}
464func (m *Thresholds) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
465 return xxx_messageInfo_Thresholds.Marshal(b, m, deterministic)
466}
467func (m *Thresholds) XXX_Merge(src proto.Message) {
468 xxx_messageInfo_Thresholds.Merge(m, src)
469}
470func (m *Thresholds) XXX_Size() int {
471 return xxx_messageInfo_Thresholds.Size(m)
472}
473func (m *Thresholds) XXX_DiscardUnknown() {
474 xxx_messageInfo_Thresholds.DiscardUnknown(m)
475}
476
477var xxx_messageInfo_Thresholds proto.InternalMessageInfo
478
479type isThresholds_Threshold interface {
480 isThresholds_Threshold()
481}
482
483type Thresholds_Upper struct {
484 Upper *WaterMarks `protobuf:"bytes,1,opt,name=upper,proto3,oneof"`
485}
486
487type Thresholds_Lower struct {
488 Lower *WaterMarks `protobuf:"bytes,2,opt,name=lower,proto3,oneof"`
489}
490
491func (*Thresholds_Upper) isThresholds_Threshold() {}
492
493func (*Thresholds_Lower) isThresholds_Threshold() {}
494
495func (m *Thresholds) GetThreshold() isThresholds_Threshold {
496 if m != nil {
497 return m.Threshold
498 }
499 return nil
500}
501
502func (m *Thresholds) GetUpper() *WaterMarks {
503 if x, ok := m.GetThreshold().(*Thresholds_Upper); ok {
504 return x.Upper
505 }
506 return nil
507}
508
509func (m *Thresholds) GetLower() *WaterMarks {
510 if x, ok := m.GetThreshold().(*Thresholds_Lower); ok {
511 return x.Lower
512 }
513 return nil
514}
515
516// XXX_OneofWrappers is for the internal use of the proto package.
517func (*Thresholds) XXX_OneofWrappers() []interface{} {
518 return []interface{}{
519 (*Thresholds_Upper)(nil),
520 (*Thresholds_Lower)(nil),
521 }
522}
523
524type ThresholdInformation struct {
525 ObservedValue *ValueType `protobuf:"bytes,1,opt,name=observed_value,json=observedValue,proto3" json:"observed_value,omitempty"`
526 Thresholds *Thresholds `protobuf:"bytes,2,opt,name=thresholds,proto3" json:"thresholds,omitempty"`
527 XXX_NoUnkeyedLiteral struct{} `json:"-"`
528 XXX_unrecognized []byte `json:"-"`
529 XXX_sizecache int32 `json:"-"`
530}
531
532func (m *ThresholdInformation) Reset() { *m = ThresholdInformation{} }
533func (m *ThresholdInformation) String() string { return proto.CompactTextString(m) }
534func (*ThresholdInformation) ProtoMessage() {}
535func (*ThresholdInformation) Descriptor() ([]byte, []int) {
536 return fileDescriptor_8962d785556e9979, []int{3}
537}
538
539func (m *ThresholdInformation) XXX_Unmarshal(b []byte) error {
540 return xxx_messageInfo_ThresholdInformation.Unmarshal(m, b)
541}
542func (m *ThresholdInformation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
543 return xxx_messageInfo_ThresholdInformation.Marshal(b, m, deterministic)
544}
545func (m *ThresholdInformation) XXX_Merge(src proto.Message) {
546 xxx_messageInfo_ThresholdInformation.Merge(m, src)
547}
548func (m *ThresholdInformation) XXX_Size() int {
549 return xxx_messageInfo_ThresholdInformation.Size(m)
550}
551func (m *ThresholdInformation) XXX_DiscardUnknown() {
552 xxx_messageInfo_ThresholdInformation.DiscardUnknown(m)
553}
554
555var xxx_messageInfo_ThresholdInformation proto.InternalMessageInfo
556
557func (m *ThresholdInformation) GetObservedValue() *ValueType {
558 if m != nil {
559 return m.ObservedValue
560 }
561 return nil
562}
563
564func (m *ThresholdInformation) GetThresholds() *Thresholds {
565 if m != nil {
566 return m.Thresholds
567 }
568 return nil
569}
570
571type EventCfg struct {
572 EventId EventIds `protobuf:"varint,1,opt,name=event_id,json=eventId,proto3,enum=dmi.EventIds" json:"event_id,omitempty"`
573 IsConfigured bool `protobuf:"varint,2,opt,name=is_configured,json=isConfigured,proto3" json:"is_configured,omitempty"`
574 // Optional threshold values, applicable only for some specific events
amit.ghosh06f49782023-06-15 13:53:51 +0200575 // If an event needs thresholds but the user does not pass the thresholds here, the Device Manager implementations
576 // could choose to use defaults applicable for the specific component (recommended) or return an error for such
577 // an EventConfigurationRequest with reason as INVALID_CONFIG
amit.ghosh7a093bd2023-03-07 16:31:56 +0100578 Thresholds *Thresholds `protobuf:"bytes,3,opt,name=thresholds,proto3" json:"thresholds,omitempty"`
579 // For events which can be configured on a particular component this id can be used to identify the component
580 // For e.g. for events of the transceivers
581 ComponentUuid *Uuid `protobuf:"bytes,4,opt,name=component_uuid,json=componentUuid,proto3" json:"component_uuid,omitempty"`
582 XXX_NoUnkeyedLiteral struct{} `json:"-"`
583 XXX_unrecognized []byte `json:"-"`
584 XXX_sizecache int32 `json:"-"`
Amit Ghosh09f28362020-06-12 21:52:19 +0100585}
586
587func (m *EventCfg) Reset() { *m = EventCfg{} }
588func (m *EventCfg) String() string { return proto.CompactTextString(m) }
589func (*EventCfg) ProtoMessage() {}
590func (*EventCfg) Descriptor() ([]byte, []int) {
591 return fileDescriptor_8962d785556e9979, []int{4}
592}
593
594func (m *EventCfg) XXX_Unmarshal(b []byte) error {
595 return xxx_messageInfo_EventCfg.Unmarshal(m, b)
596}
597func (m *EventCfg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
598 return xxx_messageInfo_EventCfg.Marshal(b, m, deterministic)
599}
600func (m *EventCfg) XXX_Merge(src proto.Message) {
601 xxx_messageInfo_EventCfg.Merge(m, src)
602}
603func (m *EventCfg) XXX_Size() int {
604 return xxx_messageInfo_EventCfg.Size(m)
605}
606func (m *EventCfg) XXX_DiscardUnknown() {
607 xxx_messageInfo_EventCfg.DiscardUnknown(m)
608}
609
610var xxx_messageInfo_EventCfg proto.InternalMessageInfo
611
612func (m *EventCfg) GetEventId() EventIds {
613 if m != nil {
614 return m.EventId
615 }
616 return EventIds_EVENT_NAME_UNDEFINED
617}
618
619func (m *EventCfg) GetIsConfigured() bool {
620 if m != nil {
621 return m.IsConfigured
622 }
623 return false
624}
625
626func (m *EventCfg) GetThresholds() *Thresholds {
627 if m != nil {
628 return m.Thresholds
629 }
630 return nil
631}
632
amit.ghosh7a093bd2023-03-07 16:31:56 +0100633func (m *EventCfg) GetComponentUuid() *Uuid {
634 if m != nil {
635 return m.ComponentUuid
636 }
637 return nil
638}
639
Amit Ghosh09f28362020-06-12 21:52:19 +0100640type EventsCfg struct {
641 Items []*EventCfg `protobuf:"bytes,1,rep,name=items,proto3" json:"items,omitempty"`
642 XXX_NoUnkeyedLiteral struct{} `json:"-"`
643 XXX_unrecognized []byte `json:"-"`
644 XXX_sizecache int32 `json:"-"`
645}
646
647func (m *EventsCfg) Reset() { *m = EventsCfg{} }
648func (m *EventsCfg) String() string { return proto.CompactTextString(m) }
649func (*EventsCfg) ProtoMessage() {}
650func (*EventsCfg) Descriptor() ([]byte, []int) {
651 return fileDescriptor_8962d785556e9979, []int{5}
652}
653
654func (m *EventsCfg) XXX_Unmarshal(b []byte) error {
655 return xxx_messageInfo_EventsCfg.Unmarshal(m, b)
656}
657func (m *EventsCfg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
658 return xxx_messageInfo_EventsCfg.Marshal(b, m, deterministic)
659}
660func (m *EventsCfg) XXX_Merge(src proto.Message) {
661 xxx_messageInfo_EventsCfg.Merge(m, src)
662}
663func (m *EventsCfg) XXX_Size() int {
664 return xxx_messageInfo_EventsCfg.Size(m)
665}
666func (m *EventsCfg) XXX_DiscardUnknown() {
667 xxx_messageInfo_EventsCfg.DiscardUnknown(m)
668}
669
670var xxx_messageInfo_EventsCfg proto.InternalMessageInfo
671
672func (m *EventsCfg) GetItems() []*EventCfg {
673 if m != nil {
674 return m.Items
675 }
676 return nil
677}
678
679type ListEventsResponse struct {
amit.ghoshae473032021-01-10 11:59:10 +0100680 Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=dmi.Status" json:"status,omitempty"`
681 Reason ListEventsResponse_Reason `protobuf:"varint,2,opt,name=reason,proto3,enum=dmi.ListEventsResponse_Reason" json:"reason,omitempty"`
682 Events *EventsCfg `protobuf:"bytes,3,opt,name=events,proto3" json:"events,omitempty"`
amit.ghosh8ab1e6e2021-02-23 07:40:17 +0100683 ReasonDetail string `protobuf:"bytes,4,opt,name=reason_detail,json=reasonDetail,proto3" json:"reason_detail,omitempty"`
amit.ghoshae473032021-01-10 11:59:10 +0100684 XXX_NoUnkeyedLiteral struct{} `json:"-"`
685 XXX_unrecognized []byte `json:"-"`
686 XXX_sizecache int32 `json:"-"`
Amit Ghosh09f28362020-06-12 21:52:19 +0100687}
688
689func (m *ListEventsResponse) Reset() { *m = ListEventsResponse{} }
690func (m *ListEventsResponse) String() string { return proto.CompactTextString(m) }
691func (*ListEventsResponse) ProtoMessage() {}
692func (*ListEventsResponse) Descriptor() ([]byte, []int) {
693 return fileDescriptor_8962d785556e9979, []int{6}
694}
695
696func (m *ListEventsResponse) XXX_Unmarshal(b []byte) error {
697 return xxx_messageInfo_ListEventsResponse.Unmarshal(m, b)
698}
699func (m *ListEventsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
700 return xxx_messageInfo_ListEventsResponse.Marshal(b, m, deterministic)
701}
702func (m *ListEventsResponse) XXX_Merge(src proto.Message) {
703 xxx_messageInfo_ListEventsResponse.Merge(m, src)
704}
705func (m *ListEventsResponse) XXX_Size() int {
706 return xxx_messageInfo_ListEventsResponse.Size(m)
707}
708func (m *ListEventsResponse) XXX_DiscardUnknown() {
709 xxx_messageInfo_ListEventsResponse.DiscardUnknown(m)
710}
711
712var xxx_messageInfo_ListEventsResponse proto.InternalMessageInfo
713
714func (m *ListEventsResponse) GetStatus() Status {
715 if m != nil {
716 return m.Status
717 }
718 return Status_UNDEFINED_STATUS
719}
720
amit.ghoshae473032021-01-10 11:59:10 +0100721func (m *ListEventsResponse) GetReason() ListEventsResponse_Reason {
Amit Ghosh09f28362020-06-12 21:52:19 +0100722 if m != nil {
723 return m.Reason
724 }
amit.ghoshae473032021-01-10 11:59:10 +0100725 return ListEventsResponse_UNDEFINED_REASON
Amit Ghosh09f28362020-06-12 21:52:19 +0100726}
727
728func (m *ListEventsResponse) GetEvents() *EventsCfg {
729 if m != nil {
730 return m.Events
731 }
732 return nil
733}
734
amit.ghosh8ab1e6e2021-02-23 07:40:17 +0100735func (m *ListEventsResponse) GetReasonDetail() string {
736 if m != nil {
737 return m.ReasonDetail
738 }
739 return ""
740}
741
Amit Ghosh09f28362020-06-12 21:52:19 +0100742type EventsConfigurationRequest struct {
743 DeviceUuid *Uuid `protobuf:"bytes,1,opt,name=device_uuid,json=deviceUuid,proto3" json:"device_uuid,omitempty"`
744 // Types that are valid to be assigned to Operation:
745 // *EventsConfigurationRequest_Changes
746 // *EventsConfigurationRequest_ResetToDefault
amit.ghosh7a093bd2023-03-07 16:31:56 +0100747 Operation isEventsConfigurationRequest_Operation `protobuf_oneof:"operation"`
748 XXX_NoUnkeyedLiteral struct{} `json:"-"`
749 XXX_unrecognized []byte `json:"-"`
750 XXX_sizecache int32 `json:"-"`
Amit Ghosh09f28362020-06-12 21:52:19 +0100751}
752
753func (m *EventsConfigurationRequest) Reset() { *m = EventsConfigurationRequest{} }
754func (m *EventsConfigurationRequest) String() string { return proto.CompactTextString(m) }
755func (*EventsConfigurationRequest) ProtoMessage() {}
756func (*EventsConfigurationRequest) Descriptor() ([]byte, []int) {
757 return fileDescriptor_8962d785556e9979, []int{7}
758}
759
760func (m *EventsConfigurationRequest) XXX_Unmarshal(b []byte) error {
761 return xxx_messageInfo_EventsConfigurationRequest.Unmarshal(m, b)
762}
763func (m *EventsConfigurationRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
764 return xxx_messageInfo_EventsConfigurationRequest.Marshal(b, m, deterministic)
765}
766func (m *EventsConfigurationRequest) XXX_Merge(src proto.Message) {
767 xxx_messageInfo_EventsConfigurationRequest.Merge(m, src)
768}
769func (m *EventsConfigurationRequest) XXX_Size() int {
770 return xxx_messageInfo_EventsConfigurationRequest.Size(m)
771}
772func (m *EventsConfigurationRequest) XXX_DiscardUnknown() {
773 xxx_messageInfo_EventsConfigurationRequest.DiscardUnknown(m)
774}
775
776var xxx_messageInfo_EventsConfigurationRequest proto.InternalMessageInfo
777
778func (m *EventsConfigurationRequest) GetDeviceUuid() *Uuid {
779 if m != nil {
780 return m.DeviceUuid
781 }
782 return nil
783}
784
785type isEventsConfigurationRequest_Operation interface {
786 isEventsConfigurationRequest_Operation()
787}
788
789type EventsConfigurationRequest_Changes struct {
790 Changes *EventsCfg `protobuf:"bytes,2,opt,name=changes,proto3,oneof"`
791}
792
793type EventsConfigurationRequest_ResetToDefault struct {
794 ResetToDefault bool `protobuf:"varint,3,opt,name=reset_to_default,json=resetToDefault,proto3,oneof"`
795}
796
797func (*EventsConfigurationRequest_Changes) isEventsConfigurationRequest_Operation() {}
798
799func (*EventsConfigurationRequest_ResetToDefault) isEventsConfigurationRequest_Operation() {}
800
801func (m *EventsConfigurationRequest) GetOperation() isEventsConfigurationRequest_Operation {
802 if m != nil {
803 return m.Operation
804 }
805 return nil
806}
807
808func (m *EventsConfigurationRequest) GetChanges() *EventsCfg {
809 if x, ok := m.GetOperation().(*EventsConfigurationRequest_Changes); ok {
810 return x.Changes
811 }
812 return nil
813}
814
815func (m *EventsConfigurationRequest) GetResetToDefault() bool {
816 if x, ok := m.GetOperation().(*EventsConfigurationRequest_ResetToDefault); ok {
817 return x.ResetToDefault
818 }
819 return false
820}
821
822// XXX_OneofWrappers is for the internal use of the proto package.
823func (*EventsConfigurationRequest) XXX_OneofWrappers() []interface{} {
824 return []interface{}{
825 (*EventsConfigurationRequest_Changes)(nil),
826 (*EventsConfigurationRequest_ResetToDefault)(nil),
827 }
828}
829
830type EventsConfigurationResponse struct {
amit.ghoshae473032021-01-10 11:59:10 +0100831 Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=dmi.Status" json:"status,omitempty"`
832 Reason EventsConfigurationResponse_Reason `protobuf:"varint,2,opt,name=reason,proto3,enum=dmi.EventsConfigurationResponse_Reason" json:"reason,omitempty"`
amit.ghosh8ab1e6e2021-02-23 07:40:17 +0100833 ReasonDetail string `protobuf:"bytes,3,opt,name=reason_detail,json=reasonDetail,proto3" json:"reason_detail,omitempty"`
amit.ghoshae473032021-01-10 11:59:10 +0100834 XXX_NoUnkeyedLiteral struct{} `json:"-"`
835 XXX_unrecognized []byte `json:"-"`
836 XXX_sizecache int32 `json:"-"`
Amit Ghosh09f28362020-06-12 21:52:19 +0100837}
838
839func (m *EventsConfigurationResponse) Reset() { *m = EventsConfigurationResponse{} }
840func (m *EventsConfigurationResponse) String() string { return proto.CompactTextString(m) }
841func (*EventsConfigurationResponse) ProtoMessage() {}
842func (*EventsConfigurationResponse) Descriptor() ([]byte, []int) {
843 return fileDescriptor_8962d785556e9979, []int{8}
844}
845
846func (m *EventsConfigurationResponse) XXX_Unmarshal(b []byte) error {
847 return xxx_messageInfo_EventsConfigurationResponse.Unmarshal(m, b)
848}
849func (m *EventsConfigurationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
850 return xxx_messageInfo_EventsConfigurationResponse.Marshal(b, m, deterministic)
851}
852func (m *EventsConfigurationResponse) XXX_Merge(src proto.Message) {
853 xxx_messageInfo_EventsConfigurationResponse.Merge(m, src)
854}
855func (m *EventsConfigurationResponse) XXX_Size() int {
856 return xxx_messageInfo_EventsConfigurationResponse.Size(m)
857}
858func (m *EventsConfigurationResponse) XXX_DiscardUnknown() {
859 xxx_messageInfo_EventsConfigurationResponse.DiscardUnknown(m)
860}
861
862var xxx_messageInfo_EventsConfigurationResponse proto.InternalMessageInfo
863
864func (m *EventsConfigurationResponse) GetStatus() Status {
865 if m != nil {
866 return m.Status
867 }
868 return Status_UNDEFINED_STATUS
869}
870
amit.ghoshae473032021-01-10 11:59:10 +0100871func (m *EventsConfigurationResponse) GetReason() EventsConfigurationResponse_Reason {
Amit Ghosh09f28362020-06-12 21:52:19 +0100872 if m != nil {
873 return m.Reason
874 }
amit.ghoshae473032021-01-10 11:59:10 +0100875 return EventsConfigurationResponse_UNDEFINED_REASON
Amit Ghosh09f28362020-06-12 21:52:19 +0100876}
877
amit.ghosh8ab1e6e2021-02-23 07:40:17 +0100878func (m *EventsConfigurationResponse) GetReasonDetail() string {
879 if m != nil {
880 return m.ReasonDetail
881 }
882 return ""
883}
884
Amit Ghosh09f28362020-06-12 21:52:19 +0100885type EventMetaData struct {
886 DeviceUuid *Uuid `protobuf:"bytes,1,opt,name=device_uuid,json=deviceUuid,proto3" json:"device_uuid,omitempty"`
887 // uuid of the component
888 ComponentUuid *Uuid `protobuf:"bytes,2,opt,name=component_uuid,json=componentUuid,proto3" json:"component_uuid,omitempty"`
889 ComponentName string `protobuf:"bytes,3,opt,name=component_name,json=componentName,proto3" json:"component_name,omitempty"`
890 XXX_NoUnkeyedLiteral struct{} `json:"-"`
891 XXX_unrecognized []byte `json:"-"`
892 XXX_sizecache int32 `json:"-"`
893}
894
895func (m *EventMetaData) Reset() { *m = EventMetaData{} }
896func (m *EventMetaData) String() string { return proto.CompactTextString(m) }
897func (*EventMetaData) ProtoMessage() {}
898func (*EventMetaData) Descriptor() ([]byte, []int) {
899 return fileDescriptor_8962d785556e9979, []int{9}
900}
901
902func (m *EventMetaData) XXX_Unmarshal(b []byte) error {
903 return xxx_messageInfo_EventMetaData.Unmarshal(m, b)
904}
905func (m *EventMetaData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
906 return xxx_messageInfo_EventMetaData.Marshal(b, m, deterministic)
907}
908func (m *EventMetaData) XXX_Merge(src proto.Message) {
909 xxx_messageInfo_EventMetaData.Merge(m, src)
910}
911func (m *EventMetaData) XXX_Size() int {
912 return xxx_messageInfo_EventMetaData.Size(m)
913}
914func (m *EventMetaData) XXX_DiscardUnknown() {
915 xxx_messageInfo_EventMetaData.DiscardUnknown(m)
916}
917
918var xxx_messageInfo_EventMetaData proto.InternalMessageInfo
919
920func (m *EventMetaData) GetDeviceUuid() *Uuid {
921 if m != nil {
922 return m.DeviceUuid
923 }
924 return nil
925}
926
927func (m *EventMetaData) GetComponentUuid() *Uuid {
928 if m != nil {
929 return m.ComponentUuid
930 }
931 return nil
932}
933
934func (m *EventMetaData) GetComponentName() string {
935 if m != nil {
936 return m.ComponentName
937 }
938 return ""
939}
940
941type Event struct {
942 EventMetadata *EventMetaData `protobuf:"bytes,1,opt,name=event_metadata,json=eventMetadata,proto3" json:"event_metadata,omitempty"`
943 EventId EventIds `protobuf:"varint,2,opt,name=event_id,json=eventId,proto3,enum=dmi.EventIds" json:"event_id,omitempty"`
944 RaisedTs *timestamp.Timestamp `protobuf:"bytes,3,opt,name=raised_ts,json=raisedTs,proto3" json:"raised_ts,omitempty"`
945 // Optional threshold information for an event
946 ThresholdInfo *ThresholdInformation `protobuf:"bytes,4,opt,name=threshold_info,json=thresholdInfo,proto3" json:"threshold_info,omitempty"`
947 // Any additional info regarding the event
948 AddInfo string `protobuf:"bytes,5,opt,name=add_info,json=addInfo,proto3" json:"add_info,omitempty"`
949 XXX_NoUnkeyedLiteral struct{} `json:"-"`
950 XXX_unrecognized []byte `json:"-"`
951 XXX_sizecache int32 `json:"-"`
952}
953
954func (m *Event) Reset() { *m = Event{} }
955func (m *Event) String() string { return proto.CompactTextString(m) }
956func (*Event) ProtoMessage() {}
957func (*Event) Descriptor() ([]byte, []int) {
958 return fileDescriptor_8962d785556e9979, []int{10}
959}
960
961func (m *Event) XXX_Unmarshal(b []byte) error {
962 return xxx_messageInfo_Event.Unmarshal(m, b)
963}
964func (m *Event) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
965 return xxx_messageInfo_Event.Marshal(b, m, deterministic)
966}
967func (m *Event) XXX_Merge(src proto.Message) {
968 xxx_messageInfo_Event.Merge(m, src)
969}
970func (m *Event) XXX_Size() int {
971 return xxx_messageInfo_Event.Size(m)
972}
973func (m *Event) XXX_DiscardUnknown() {
974 xxx_messageInfo_Event.DiscardUnknown(m)
975}
976
977var xxx_messageInfo_Event proto.InternalMessageInfo
978
979func (m *Event) GetEventMetadata() *EventMetaData {
980 if m != nil {
981 return m.EventMetadata
982 }
983 return nil
984}
985
986func (m *Event) GetEventId() EventIds {
987 if m != nil {
988 return m.EventId
989 }
990 return EventIds_EVENT_NAME_UNDEFINED
991}
992
993func (m *Event) GetRaisedTs() *timestamp.Timestamp {
994 if m != nil {
995 return m.RaisedTs
996 }
997 return nil
998}
999
1000func (m *Event) GetThresholdInfo() *ThresholdInformation {
1001 if m != nil {
1002 return m.ThresholdInfo
1003 }
1004 return nil
1005}
1006
1007func (m *Event) GetAddInfo() string {
1008 if m != nil {
1009 return m.AddInfo
1010 }
1011 return ""
1012}
1013
1014func init() {
1015 proto.RegisterEnum("dmi.EventIds", EventIds_name, EventIds_value)
amit.ghoshae473032021-01-10 11:59:10 +01001016 proto.RegisterEnum("dmi.ListEventsResponse_Reason", ListEventsResponse_Reason_name, ListEventsResponse_Reason_value)
1017 proto.RegisterEnum("dmi.EventsConfigurationResponse_Reason", EventsConfigurationResponse_Reason_name, EventsConfigurationResponse_Reason_value)
Amit Ghosh09f28362020-06-12 21:52:19 +01001018 proto.RegisterType((*ValueType)(nil), "dmi.ValueType")
1019 proto.RegisterType((*WaterMarks)(nil), "dmi.WaterMarks")
1020 proto.RegisterType((*Thresholds)(nil), "dmi.Thresholds")
1021 proto.RegisterType((*ThresholdInformation)(nil), "dmi.ThresholdInformation")
1022 proto.RegisterType((*EventCfg)(nil), "dmi.EventCfg")
1023 proto.RegisterType((*EventsCfg)(nil), "dmi.EventsCfg")
1024 proto.RegisterType((*ListEventsResponse)(nil), "dmi.ListEventsResponse")
1025 proto.RegisterType((*EventsConfigurationRequest)(nil), "dmi.EventsConfigurationRequest")
1026 proto.RegisterType((*EventsConfigurationResponse)(nil), "dmi.EventsConfigurationResponse")
1027 proto.RegisterType((*EventMetaData)(nil), "dmi.EventMetaData")
1028 proto.RegisterType((*Event)(nil), "dmi.Event")
1029}
1030
1031func init() { proto.RegisterFile("dmi/hw_events_mgmt_service.proto", fileDescriptor_8962d785556e9979) }
1032
1033var fileDescriptor_8962d785556e9979 = []byte{
amit.ghosh06f49782023-06-15 13:53:51 +02001034 // 1682 bytes of a gzipped FileDescriptorProto
1035 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x58, 0x5b, 0x73, 0xe3, 0x48,
1036 0x15, 0x8e, 0xad, 0x5c, 0x4f, 0x26, 0x46, 0x7b, 0x6a, 0x98, 0x49, 0x1c, 0x66, 0xc6, 0x78, 0x76,
1037 0x37, 0xd9, 0xc0, 0xd8, 0xd9, 0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0xf5, 0xd8, 0x94, 0x45, 0x6d, 0xf4, 0x51, 0xc2,
1060 0x84, 0x45, 0x80, 0x41, 0xec, 0xe0, 0x9a, 0x92, 0xe1, 0x92, 0x48, 0x02, 0x92, 0xff, 0x65, 0x0a,
1061 0x56, 0xd5, 0xb0, 0xc1, 0x4a, 0xad, 0x36, 0xee, 0xc2, 0xaa, 0x68, 0x36, 0xd3, 0xb6, 0x44, 0xba,
1062 0xcc, 0xc1, 0x86, 0xe0, 0x0a, 0x80, 0x66, 0x05, 0x64, 0x85, 0x45, 0xbf, 0xf0, 0x21, 0x6c, 0xd8,
1063 0x81, 0x79, 0xe6, 0xb9, 0x2d, 0xbb, 0xdd, 0xf3, 0x99, 0x25, 0x52, 0xad, 0x92, 0x5b, 0x76, 0x50,
1064 0x1a, 0xd8, 0x46, 0xc4, 0x48, 0x73, 0xc5, 0xe0, 0x3e, 0x64, 0xce, 0x3c, 0xa7, 0xeb, 0xb9, 0xa1,
1065 0x86, 0x5e, 0xcf, 0xb6, 0x44, 0x2f, 0xac, 0x1f, 0xac, 0x09, 0x52, 0xa3, 0x67, 0x5b, 0x64, 0x63,
1066 0x00, 0x08, 0x1f, 0xf3, 0xfb, 0xb0, 0x26, 0xc4, 0x05, 0xa1, 0xfc, 0x87, 0xb0, 0x64, 0x73, 0xe6,
1067 0x04, 0x9b, 0xa9, 0x9c, 0xb4, 0xbb, 0x9e, 0xd4, 0x5e, 0x6a, 0xb5, 0x49, 0xe4, 0xcb, 0xff, 0x34,
1068 0x0d, 0x58, 0xb5, 0x03, 0x1e, 0xd1, 0x08, 0x0b, 0xba, 0x9e, 0x1b, 0x30, 0x7c, 0x08, 0xcb, 0x01,
1069 0xa7, 0xbc, 0x17, 0xc4, 0x0b, 0x5f, 0x17, 0xe4, 0xba, 0x30, 0x91, 0xd8, 0x85, 0x4f, 0x61, 0xd9,
1070 0x67, 0x34, 0xf0, 0x5c, 0xb1, 0xdc, 0xcc, 0xc1, 0x7d, 0x01, 0x1a, 0x8f, 0x56, 0x20, 0x02, 0x45,
1071 0x62, 0x34, 0xbe, 0x0d, 0xcb, 0xd1, 0x21, 0x8e, 0x37, 0x21, 0x33, 0x54, 0x16, 0x0a, 0x27, 0xb1,
1072 0x37, 0xdc, 0xd5, 0x88, 0x61, 0x5a, 0x8c, 0x53, 0x3b, 0x3a, 0x0a, 0x6b, 0xe4, 0x56, 0x64, 0x2c,
1073 0x0b, 0x5b, 0xfe, 0x43, 0x58, 0x8e, 0xc2, 0xe3, 0x6d, 0x90, 0x1b, 0x7a, 0x59, 0x3d, 0xd2, 0x74,
1074 0xb5, 0x6c, 0x12, 0x55, 0xa9, 0xd7, 0x74, 0x79, 0x01, 0x11, 0x32, 0x0d, 0xfd, 0x7d, 0xbd, 0x76,
1075 0xaa, 0x9b, 0x65, 0xb5, 0xa9, 0x95, 0x54, 0x39, 0x15, 0xda, 0x34, 0xdd, 0x50, 0x89, 0xae, 0x54,
1076 0x4d, 0x95, 0x90, 0x1a, 0x91, 0xd3, 0x78, 0x07, 0x30, 0xf2, 0x9b, 0x0d, 0x9d, 0xa8, 0x4a, 0xa9,
1077 0xa2, 0x1c, 0x56, 0x55, 0x59, 0xca, 0x7f, 0x92, 0x82, 0x6c, 0x2c, 0x2d, 0x2e, 0xa5, 0xe8, 0x48,
1078 0xc2, 0x3e, 0xea, 0xb1, 0x80, 0xe3, 0x1e, 0xac, 0x5b, 0x2c, 0x9c, 0x41, 0x51, 0x81, 0x52, 0xa3,
1079 0x05, 0x82, 0xc8, 0x1b, 0xfe, 0xc6, 0x3d, 0x58, 0x39, 0x3b, 0xa7, 0x6e, 0x9b, 0x05, 0xd7, 0xce,
1080 0xdb, 0x60, 0xe1, 0xe1, 0x84, 0x88, 0x01, 0xb8, 0x07, 0xb2, 0xcf, 0x02, 0xc6, 0x4d, 0xee, 0x99,
1081 0x16, 0x6b, 0xd1, 0x5e, 0x87, 0x8b, 0xdd, 0x5a, 0xad, 0x2c, 0x90, 0x8c, 0xf0, 0x18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xcf, 0xb7, 0x8a, 0xd1, 0x47, 0xfd, 0x23, 0x67, 0xb0, 0xfa, 0x47,
1138 0xb6, 0xcb, 0x99, 0xdf, 0xa2, 0x67, 0xac, 0x78, 0xf1, 0xb8, 0xd8, 0xf6, 0x8a, 0x96, 0x63, 0xbf,
1139 0x5c, 0x16, 0xa1, 0x1f, 0xff, 0x2f, 0x00, 0x00, 0xff, 0xff, 0x76, 0x35, 0xd3, 0x5d, 0x7c, 0x12,
1140 0x00, 0x00,
Amit Ghosh09f28362020-06-12 21:52:19 +01001141}
1142
1143// Reference imports to suppress errors if they are not otherwise used.
1144var _ context.Context
1145var _ grpc.ClientConn
1146
1147// This is a compile-time assertion to ensure that this generated file
1148// is compatible with the grpc package it is being compiled against.
1149const _ = grpc.SupportPackageIsVersion4
1150
1151// NativeEventsManagementServiceClient is the client API for NativeEventsManagementService service.
1152//
1153// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
1154type NativeEventsManagementServiceClient interface {
1155 // List the supported events for the passed device
1156 ListEvents(ctx context.Context, in *HardwareID, opts ...grpc.CallOption) (*ListEventsResponse, error)
1157 // Updates the configuration of the list of events in the request
aghoshc301dcd2020-09-03 16:55:34 +01001158 // The default behavior of the device is to report all the supported events
Amit Ghosh09f28362020-06-12 21:52:19 +01001159 // This configuration is persisted across reboots of the device or the device manager
1160 UpdateEventsConfiguration(ctx context.Context, in *EventsConfigurationRequest, opts ...grpc.CallOption) (*EventsConfigurationResponse, error)
Chandrakanth Nalkudre Gowda68590a42021-04-22 15:19:21 +05301161 // Initiate the server streaming of the events
1162 StreamEvents(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (NativeEventsManagementService_StreamEventsClient, error)
Amit Ghosh09f28362020-06-12 21:52:19 +01001163}
1164
1165type nativeEventsManagementServiceClient struct {
1166 cc *grpc.ClientConn
1167}
1168
1169func NewNativeEventsManagementServiceClient(cc *grpc.ClientConn) NativeEventsManagementServiceClient {
1170 return &nativeEventsManagementServiceClient{cc}
1171}
1172
1173func (c *nativeEventsManagementServiceClient) ListEvents(ctx context.Context, in *HardwareID, opts ...grpc.CallOption) (*ListEventsResponse, error) {
1174 out := new(ListEventsResponse)
1175 err := c.cc.Invoke(ctx, "/dmi.NativeEventsManagementService/ListEvents", in, out, opts...)
1176 if err != nil {
1177 return nil, err
1178 }
1179 return out, nil
1180}
1181
1182func (c *nativeEventsManagementServiceClient) UpdateEventsConfiguration(ctx context.Context, in *EventsConfigurationRequest, opts ...grpc.CallOption) (*EventsConfigurationResponse, error) {
1183 out := new(EventsConfigurationResponse)
1184 err := c.cc.Invoke(ctx, "/dmi.NativeEventsManagementService/UpdateEventsConfiguration", in, out, opts...)
1185 if err != nil {
1186 return nil, err
1187 }
1188 return out, nil
1189}
1190
Chandrakanth Nalkudre Gowda68590a42021-04-22 15:19:21 +05301191func (c *nativeEventsManagementServiceClient) StreamEvents(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (NativeEventsManagementService_StreamEventsClient, error) {
1192 stream, err := c.cc.NewStream(ctx, &_NativeEventsManagementService_serviceDesc.Streams[0], "/dmi.NativeEventsManagementService/StreamEvents", opts...)
1193 if err != nil {
1194 return nil, err
1195 }
1196 x := &nativeEventsManagementServiceStreamEventsClient{stream}
1197 if err := x.ClientStream.SendMsg(in); err != nil {
1198 return nil, err
1199 }
1200 if err := x.ClientStream.CloseSend(); err != nil {
1201 return nil, err
1202 }
1203 return x, nil
1204}
1205
1206type NativeEventsManagementService_StreamEventsClient interface {
1207 Recv() (*Event, error)
1208 grpc.ClientStream
1209}
1210
1211type nativeEventsManagementServiceStreamEventsClient struct {
1212 grpc.ClientStream
1213}
1214
1215func (x *nativeEventsManagementServiceStreamEventsClient) Recv() (*Event, error) {
1216 m := new(Event)
1217 if err := x.ClientStream.RecvMsg(m); err != nil {
1218 return nil, err
1219 }
1220 return m, nil
1221}
1222
Amit Ghosh09f28362020-06-12 21:52:19 +01001223// NativeEventsManagementServiceServer is the server API for NativeEventsManagementService service.
1224type NativeEventsManagementServiceServer interface {
1225 // List the supported events for the passed device
1226 ListEvents(context.Context, *HardwareID) (*ListEventsResponse, error)
1227 // Updates the configuration of the list of events in the request
aghoshc301dcd2020-09-03 16:55:34 +01001228 // The default behavior of the device is to report all the supported events
Amit Ghosh09f28362020-06-12 21:52:19 +01001229 // This configuration is persisted across reboots of the device or the device manager
1230 UpdateEventsConfiguration(context.Context, *EventsConfigurationRequest) (*EventsConfigurationResponse, error)
Chandrakanth Nalkudre Gowda68590a42021-04-22 15:19:21 +05301231 // Initiate the server streaming of the events
1232 StreamEvents(*empty.Empty, NativeEventsManagementService_StreamEventsServer) error
Amit Ghosh09f28362020-06-12 21:52:19 +01001233}
1234
Andrea Campanellac795b7d2021-04-14 13:24:44 +02001235// UnimplementedNativeEventsManagementServiceServer can be embedded to have forward compatible implementations.
1236type UnimplementedNativeEventsManagementServiceServer struct {
1237}
1238
1239func (*UnimplementedNativeEventsManagementServiceServer) ListEvents(ctx context.Context, req *HardwareID) (*ListEventsResponse, error) {
1240 return nil, status.Errorf(codes.Unimplemented, "method ListEvents not implemented")
1241}
1242func (*UnimplementedNativeEventsManagementServiceServer) UpdateEventsConfiguration(ctx context.Context, req *EventsConfigurationRequest) (*EventsConfigurationResponse, error) {
1243 return nil, status.Errorf(codes.Unimplemented, "method UpdateEventsConfiguration not implemented")
1244}
Chandrakanth Nalkudre Gowda68590a42021-04-22 15:19:21 +05301245func (*UnimplementedNativeEventsManagementServiceServer) StreamEvents(req *empty.Empty, srv NativeEventsManagementService_StreamEventsServer) error {
1246 return status.Errorf(codes.Unimplemented, "method StreamEvents not implemented")
1247}
Andrea Campanellac795b7d2021-04-14 13:24:44 +02001248
Amit Ghosh09f28362020-06-12 21:52:19 +01001249func RegisterNativeEventsManagementServiceServer(s *grpc.Server, srv NativeEventsManagementServiceServer) {
1250 s.RegisterService(&_NativeEventsManagementService_serviceDesc, srv)
1251}
1252
1253func _NativeEventsManagementService_ListEvents_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1254 in := new(HardwareID)
1255 if err := dec(in); err != nil {
1256 return nil, err
1257 }
1258 if interceptor == nil {
1259 return srv.(NativeEventsManagementServiceServer).ListEvents(ctx, in)
1260 }
1261 info := &grpc.UnaryServerInfo{
1262 Server: srv,
1263 FullMethod: "/dmi.NativeEventsManagementService/ListEvents",
1264 }
1265 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1266 return srv.(NativeEventsManagementServiceServer).ListEvents(ctx, req.(*HardwareID))
1267 }
1268 return interceptor(ctx, in, info, handler)
1269}
1270
1271func _NativeEventsManagementService_UpdateEventsConfiguration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1272 in := new(EventsConfigurationRequest)
1273 if err := dec(in); err != nil {
1274 return nil, err
1275 }
1276 if interceptor == nil {
1277 return srv.(NativeEventsManagementServiceServer).UpdateEventsConfiguration(ctx, in)
1278 }
1279 info := &grpc.UnaryServerInfo{
1280 Server: srv,
1281 FullMethod: "/dmi.NativeEventsManagementService/UpdateEventsConfiguration",
1282 }
1283 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1284 return srv.(NativeEventsManagementServiceServer).UpdateEventsConfiguration(ctx, req.(*EventsConfigurationRequest))
1285 }
1286 return interceptor(ctx, in, info, handler)
1287}
1288
Chandrakanth Nalkudre Gowda68590a42021-04-22 15:19:21 +05301289func _NativeEventsManagementService_StreamEvents_Handler(srv interface{}, stream grpc.ServerStream) error {
1290 m := new(empty.Empty)
1291 if err := stream.RecvMsg(m); err != nil {
1292 return err
1293 }
1294 return srv.(NativeEventsManagementServiceServer).StreamEvents(m, &nativeEventsManagementServiceStreamEventsServer{stream})
1295}
1296
1297type NativeEventsManagementService_StreamEventsServer interface {
1298 Send(*Event) error
1299 grpc.ServerStream
1300}
1301
1302type nativeEventsManagementServiceStreamEventsServer struct {
1303 grpc.ServerStream
1304}
1305
1306func (x *nativeEventsManagementServiceStreamEventsServer) Send(m *Event) error {
1307 return x.ServerStream.SendMsg(m)
1308}
1309
Amit Ghosh09f28362020-06-12 21:52:19 +01001310var _NativeEventsManagementService_serviceDesc = grpc.ServiceDesc{
1311 ServiceName: "dmi.NativeEventsManagementService",
1312 HandlerType: (*NativeEventsManagementServiceServer)(nil),
1313 Methods: []grpc.MethodDesc{
1314 {
1315 MethodName: "ListEvents",
1316 Handler: _NativeEventsManagementService_ListEvents_Handler,
1317 },
1318 {
1319 MethodName: "UpdateEventsConfiguration",
1320 Handler: _NativeEventsManagementService_UpdateEventsConfiguration_Handler,
1321 },
1322 },
Chandrakanth Nalkudre Gowda68590a42021-04-22 15:19:21 +05301323 Streams: []grpc.StreamDesc{
1324 {
1325 StreamName: "StreamEvents",
1326 Handler: _NativeEventsManagementService_StreamEvents_Handler,
1327 ServerStreams: true,
1328 },
1329 },
Amit Ghosh09f28362020-06-12 21:52:19 +01001330 Metadata: "dmi/hw_events_mgmt_service.proto",
1331}