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