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