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