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_management_service.proto |
| 3 | |
| 4 | package dmi |
| 5 | |
| 6 | import ( |
| 7 | context "context" |
| 8 | fmt "fmt" |
| 9 | proto "github.com/golang/protobuf/proto" |
Andrea Campanella | cb990bc | 2020-09-22 12:50:56 +0200 | [diff] [blame] | 10 | empty "github.com/golang/protobuf/ptypes/empty" |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 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 | |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 26 | type PhysicalInventoryResponse_Reason int32 |
| 27 | |
| 28 | const ( |
amit.ghosh | bd2022e | 2021-02-22 05:58:53 +0100 | [diff] [blame] | 29 | PhysicalInventoryResponse_UNDEFINED_REASON PhysicalInventoryResponse_Reason = 0 |
| 30 | PhysicalInventoryResponse_UNKNOWN_DEVICE PhysicalInventoryResponse_Reason = 1 |
| 31 | PhysicalInventoryResponse_INTERNAL_ERROR PhysicalInventoryResponse_Reason = 2 |
| 32 | PhysicalInventoryResponse_DEVICE_UNREACHABLE PhysicalInventoryResponse_Reason = 3 |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 33 | ) |
| 34 | |
| 35 | var PhysicalInventoryResponse_Reason_name = map[int32]string{ |
| 36 | 0: "UNDEFINED_REASON", |
| 37 | 1: "UNKNOWN_DEVICE", |
| 38 | 2: "INTERNAL_ERROR", |
amit.ghosh | bd2022e | 2021-02-22 05:58:53 +0100 | [diff] [blame] | 39 | 3: "DEVICE_UNREACHABLE", |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 40 | } |
| 41 | |
| 42 | var PhysicalInventoryResponse_Reason_value = map[string]int32{ |
amit.ghosh | bd2022e | 2021-02-22 05:58:53 +0100 | [diff] [blame] | 43 | "UNDEFINED_REASON": 0, |
| 44 | "UNKNOWN_DEVICE": 1, |
| 45 | "INTERNAL_ERROR": 2, |
| 46 | "DEVICE_UNREACHABLE": 3, |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 47 | } |
| 48 | |
| 49 | func (x PhysicalInventoryResponse_Reason) String() string { |
| 50 | return proto.EnumName(PhysicalInventoryResponse_Reason_name, int32(x)) |
| 51 | } |
| 52 | |
| 53 | func (PhysicalInventoryResponse_Reason) EnumDescriptor() ([]byte, []int) { |
| 54 | return fileDescriptor_eae902e73066286d, []int{1, 0} |
| 55 | } |
| 56 | |
| 57 | type HWComponentInfoGetResponse_Reason int32 |
| 58 | |
| 59 | const ( |
amit.ghosh | bd2022e | 2021-02-22 05:58:53 +0100 | [diff] [blame] | 60 | HWComponentInfoGetResponse_UNDEFINED_REASON HWComponentInfoGetResponse_Reason = 0 |
| 61 | HWComponentInfoGetResponse_UNKNOWN_DEVICE HWComponentInfoGetResponse_Reason = 1 |
| 62 | HWComponentInfoGetResponse_UNKNOWN_COMPONENT HWComponentInfoGetResponse_Reason = 2 |
| 63 | HWComponentInfoGetResponse_INTERNAL_ERROR HWComponentInfoGetResponse_Reason = 3 |
| 64 | HWComponentInfoGetResponse_DEVICE_UNREACHABLE HWComponentInfoGetResponse_Reason = 4 |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 65 | ) |
| 66 | |
| 67 | var HWComponentInfoGetResponse_Reason_name = map[int32]string{ |
| 68 | 0: "UNDEFINED_REASON", |
| 69 | 1: "UNKNOWN_DEVICE", |
| 70 | 2: "UNKNOWN_COMPONENT", |
| 71 | 3: "INTERNAL_ERROR", |
amit.ghosh | bd2022e | 2021-02-22 05:58:53 +0100 | [diff] [blame] | 72 | 4: "DEVICE_UNREACHABLE", |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 73 | } |
| 74 | |
| 75 | var HWComponentInfoGetResponse_Reason_value = map[string]int32{ |
amit.ghosh | bd2022e | 2021-02-22 05:58:53 +0100 | [diff] [blame] | 76 | "UNDEFINED_REASON": 0, |
| 77 | "UNKNOWN_DEVICE": 1, |
| 78 | "UNKNOWN_COMPONENT": 2, |
| 79 | "INTERNAL_ERROR": 3, |
| 80 | "DEVICE_UNREACHABLE": 4, |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 81 | } |
| 82 | |
| 83 | func (x HWComponentInfoGetResponse_Reason) String() string { |
| 84 | return proto.EnumName(HWComponentInfoGetResponse_Reason_name, int32(x)) |
| 85 | } |
| 86 | |
| 87 | func (HWComponentInfoGetResponse_Reason) EnumDescriptor() ([]byte, []int) { |
| 88 | return fileDescriptor_eae902e73066286d, []int{3, 0} |
| 89 | } |
| 90 | |
| 91 | type HWComponentInfoSetResponse_Reason int32 |
| 92 | |
| 93 | const ( |
amit.ghosh | bd2022e | 2021-02-22 05:58:53 +0100 | [diff] [blame] | 94 | HWComponentInfoSetResponse_UNDEFINED_REASON HWComponentInfoSetResponse_Reason = 0 |
| 95 | HWComponentInfoSetResponse_UNKNOWN_DEVICE HWComponentInfoSetResponse_Reason = 1 |
| 96 | HWComponentInfoSetResponse_UNKNOWN_COMPONENT HWComponentInfoSetResponse_Reason = 2 |
| 97 | HWComponentInfoSetResponse_INVALID_PARAMS HWComponentInfoSetResponse_Reason = 3 |
| 98 | HWComponentInfoSetResponse_INTERNAL_ERROR HWComponentInfoSetResponse_Reason = 4 |
| 99 | HWComponentInfoSetResponse_DEVICE_UNREACHABLE HWComponentInfoSetResponse_Reason = 5 |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 100 | ) |
| 101 | |
| 102 | var HWComponentInfoSetResponse_Reason_name = map[int32]string{ |
| 103 | 0: "UNDEFINED_REASON", |
| 104 | 1: "UNKNOWN_DEVICE", |
| 105 | 2: "UNKNOWN_COMPONENT", |
| 106 | 3: "INVALID_PARAMS", |
| 107 | 4: "INTERNAL_ERROR", |
amit.ghosh | bd2022e | 2021-02-22 05:58:53 +0100 | [diff] [blame] | 108 | 5: "DEVICE_UNREACHABLE", |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 109 | } |
| 110 | |
| 111 | var HWComponentInfoSetResponse_Reason_value = map[string]int32{ |
amit.ghosh | bd2022e | 2021-02-22 05:58:53 +0100 | [diff] [blame] | 112 | "UNDEFINED_REASON": 0, |
| 113 | "UNKNOWN_DEVICE": 1, |
| 114 | "UNKNOWN_COMPONENT": 2, |
| 115 | "INVALID_PARAMS": 3, |
| 116 | "INTERNAL_ERROR": 4, |
| 117 | "DEVICE_UNREACHABLE": 5, |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 118 | } |
| 119 | |
| 120 | func (x HWComponentInfoSetResponse_Reason) String() string { |
| 121 | return proto.EnumName(HWComponentInfoSetResponse_Reason_name, int32(x)) |
| 122 | } |
| 123 | |
| 124 | func (HWComponentInfoSetResponse_Reason) EnumDescriptor() ([]byte, []int) { |
| 125 | return fileDescriptor_eae902e73066286d, []int{5, 0} |
| 126 | } |
| 127 | |
| 128 | type StartManagingDeviceResponse_Reason int32 |
| 129 | |
| 130 | const ( |
| 131 | StartManagingDeviceResponse_UNDEFINED_REASON StartManagingDeviceResponse_Reason = 0 |
| 132 | // DEVICE_ALREADY_MANAGED is returned when StartManagingDevice is called again for the same name AFTER a previously |
| 133 | // successful StartManagingDevice operation |
| 134 | StartManagingDeviceResponse_DEVICE_ALREADY_MANAGED StartManagingDeviceResponse_Reason = 1 |
| 135 | // OPERATION_ALREADY_IN_PROGRESS is returned when StartManagingDevice is called again for the same name BEFORE |
| 136 | // a previous StartManagingDevice operation has completed |
| 137 | StartManagingDeviceResponse_OPERATION_ALREADY_IN_PROGRESS StartManagingDeviceResponse_Reason = 2 |
| 138 | StartManagingDeviceResponse_INVALID_PARAMS StartManagingDeviceResponse_Reason = 3 |
| 139 | StartManagingDeviceResponse_INTERNAL_ERROR StartManagingDeviceResponse_Reason = 4 |
| 140 | ) |
| 141 | |
| 142 | var StartManagingDeviceResponse_Reason_name = map[int32]string{ |
| 143 | 0: "UNDEFINED_REASON", |
| 144 | 1: "DEVICE_ALREADY_MANAGED", |
| 145 | 2: "OPERATION_ALREADY_IN_PROGRESS", |
| 146 | 3: "INVALID_PARAMS", |
| 147 | 4: "INTERNAL_ERROR", |
| 148 | } |
| 149 | |
| 150 | var StartManagingDeviceResponse_Reason_value = map[string]int32{ |
| 151 | "UNDEFINED_REASON": 0, |
| 152 | "DEVICE_ALREADY_MANAGED": 1, |
| 153 | "OPERATION_ALREADY_IN_PROGRESS": 2, |
| 154 | "INVALID_PARAMS": 3, |
| 155 | "INTERNAL_ERROR": 4, |
| 156 | } |
| 157 | |
| 158 | func (x StartManagingDeviceResponse_Reason) String() string { |
| 159 | return proto.EnumName(StartManagingDeviceResponse_Reason_name, int32(x)) |
| 160 | } |
| 161 | |
| 162 | func (StartManagingDeviceResponse_Reason) EnumDescriptor() ([]byte, []int) { |
| 163 | return fileDescriptor_eae902e73066286d, []int{6, 0} |
| 164 | } |
| 165 | |
| 166 | // The only case in which an error is expected is if the name of the |
| 167 | // device to be stopped is not found |
| 168 | type StopManagingDeviceResponse_Reason int32 |
| 169 | |
| 170 | const ( |
| 171 | StopManagingDeviceResponse_UNDEFINED_REASON StopManagingDeviceResponse_Reason = 0 |
| 172 | StopManagingDeviceResponse_UNKNOWN_DEVICE StopManagingDeviceResponse_Reason = 1 |
| 173 | ) |
| 174 | |
| 175 | var StopManagingDeviceResponse_Reason_name = map[int32]string{ |
| 176 | 0: "UNDEFINED_REASON", |
| 177 | 1: "UNKNOWN_DEVICE", |
| 178 | } |
| 179 | |
| 180 | var StopManagingDeviceResponse_Reason_value = map[string]int32{ |
| 181 | "UNDEFINED_REASON": 0, |
| 182 | "UNKNOWN_DEVICE": 1, |
| 183 | } |
| 184 | |
| 185 | func (x StopManagingDeviceResponse_Reason) String() string { |
| 186 | return proto.EnumName(StopManagingDeviceResponse_Reason_name, int32(x)) |
| 187 | } |
| 188 | |
| 189 | func (StopManagingDeviceResponse_Reason) EnumDescriptor() ([]byte, []int) { |
| 190 | return fileDescriptor_eae902e73066286d, []int{8, 0} |
| 191 | } |
| 192 | |
| 193 | type SetRemoteEndpointResponse_Reason int32 |
| 194 | |
| 195 | const ( |
| 196 | SetRemoteEndpointResponse_UNDEFINED_REASON SetRemoteEndpointResponse_Reason = 0 |
| 197 | SetRemoteEndpointResponse_UNKNOWN_DEVICE SetRemoteEndpointResponse_Reason = 1 |
| 198 | SetRemoteEndpointResponse_INTERNAL_ERROR SetRemoteEndpointResponse_Reason = 2 |
| 199 | SetRemoteEndpointResponse_LOGGING_ENDPOINT_ERROR SetRemoteEndpointResponse_Reason = 3 |
| 200 | SetRemoteEndpointResponse_LOGGING_ENDPOINT_PROTOCOL_ERROR SetRemoteEndpointResponse_Reason = 4 |
| 201 | SetRemoteEndpointResponse_MSGBUS_ENDPOINT_ERROR SetRemoteEndpointResponse_Reason = 5 |
amit.ghosh | bd2022e | 2021-02-22 05:58:53 +0100 | [diff] [blame] | 202 | SetRemoteEndpointResponse_DEVICE_UNREACHABLE SetRemoteEndpointResponse_Reason = 6 |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 203 | ) |
| 204 | |
| 205 | var SetRemoteEndpointResponse_Reason_name = map[int32]string{ |
| 206 | 0: "UNDEFINED_REASON", |
| 207 | 1: "UNKNOWN_DEVICE", |
| 208 | 2: "INTERNAL_ERROR", |
| 209 | 3: "LOGGING_ENDPOINT_ERROR", |
| 210 | 4: "LOGGING_ENDPOINT_PROTOCOL_ERROR", |
| 211 | 5: "MSGBUS_ENDPOINT_ERROR", |
amit.ghosh | bd2022e | 2021-02-22 05:58:53 +0100 | [diff] [blame] | 212 | 6: "DEVICE_UNREACHABLE", |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 213 | } |
| 214 | |
| 215 | var SetRemoteEndpointResponse_Reason_value = map[string]int32{ |
| 216 | "UNDEFINED_REASON": 0, |
| 217 | "UNKNOWN_DEVICE": 1, |
| 218 | "INTERNAL_ERROR": 2, |
| 219 | "LOGGING_ENDPOINT_ERROR": 3, |
| 220 | "LOGGING_ENDPOINT_PROTOCOL_ERROR": 4, |
| 221 | "MSGBUS_ENDPOINT_ERROR": 5, |
amit.ghosh | bd2022e | 2021-02-22 05:58:53 +0100 | [diff] [blame] | 222 | "DEVICE_UNREACHABLE": 6, |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 223 | } |
| 224 | |
| 225 | func (x SetRemoteEndpointResponse_Reason) String() string { |
| 226 | return proto.EnumName(SetRemoteEndpointResponse_Reason_name, int32(x)) |
| 227 | } |
| 228 | |
| 229 | func (SetRemoteEndpointResponse_Reason) EnumDescriptor() ([]byte, []int) { |
| 230 | return fileDescriptor_eae902e73066286d, []int{11, 0} |
| 231 | } |
| 232 | |
| 233 | type GetLoggingEndpointResponse_Reason int32 |
| 234 | |
| 235 | const ( |
amit.ghosh | bd2022e | 2021-02-22 05:58:53 +0100 | [diff] [blame] | 236 | GetLoggingEndpointResponse_UNDEFINED_REASON GetLoggingEndpointResponse_Reason = 0 |
| 237 | GetLoggingEndpointResponse_UNKNOWN_DEVICE GetLoggingEndpointResponse_Reason = 1 |
| 238 | GetLoggingEndpointResponse_INTERNAL_ERROR GetLoggingEndpointResponse_Reason = 2 |
| 239 | GetLoggingEndpointResponse_DEVICE_UNREACHABLE GetLoggingEndpointResponse_Reason = 3 |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 240 | ) |
| 241 | |
| 242 | var GetLoggingEndpointResponse_Reason_name = map[int32]string{ |
| 243 | 0: "UNDEFINED_REASON", |
| 244 | 1: "UNKNOWN_DEVICE", |
| 245 | 2: "INTERNAL_ERROR", |
amit.ghosh | bd2022e | 2021-02-22 05:58:53 +0100 | [diff] [blame] | 246 | 3: "DEVICE_UNREACHABLE", |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 247 | } |
| 248 | |
| 249 | var GetLoggingEndpointResponse_Reason_value = map[string]int32{ |
amit.ghosh | bd2022e | 2021-02-22 05:58:53 +0100 | [diff] [blame] | 250 | "UNDEFINED_REASON": 0, |
| 251 | "UNKNOWN_DEVICE": 1, |
| 252 | "INTERNAL_ERROR": 2, |
| 253 | "DEVICE_UNREACHABLE": 3, |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 254 | } |
| 255 | |
| 256 | func (x GetLoggingEndpointResponse_Reason) String() string { |
| 257 | return proto.EnumName(GetLoggingEndpointResponse_Reason_name, int32(x)) |
| 258 | } |
| 259 | |
| 260 | func (GetLoggingEndpointResponse_Reason) EnumDescriptor() ([]byte, []int) { |
| 261 | return fileDescriptor_eae902e73066286d, []int{12, 0} |
| 262 | } |
| 263 | |
| 264 | type GetMsgBusEndpointResponse_Reason int32 |
| 265 | |
| 266 | const ( |
amit.ghosh | bd2022e | 2021-02-22 05:58:53 +0100 | [diff] [blame] | 267 | GetMsgBusEndpointResponse_UNDEFINED_REASON GetMsgBusEndpointResponse_Reason = 0 |
| 268 | GetMsgBusEndpointResponse_INTERNAL_ERROR GetMsgBusEndpointResponse_Reason = 1 |
| 269 | GetMsgBusEndpointResponse_DEVICE_UNREACHABLE GetMsgBusEndpointResponse_Reason = 2 |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 270 | ) |
| 271 | |
| 272 | var GetMsgBusEndpointResponse_Reason_name = map[int32]string{ |
| 273 | 0: "UNDEFINED_REASON", |
| 274 | 1: "INTERNAL_ERROR", |
amit.ghosh | bd2022e | 2021-02-22 05:58:53 +0100 | [diff] [blame] | 275 | 2: "DEVICE_UNREACHABLE", |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 276 | } |
| 277 | |
| 278 | var GetMsgBusEndpointResponse_Reason_value = map[string]int32{ |
amit.ghosh | bd2022e | 2021-02-22 05:58:53 +0100 | [diff] [blame] | 279 | "UNDEFINED_REASON": 0, |
| 280 | "INTERNAL_ERROR": 1, |
| 281 | "DEVICE_UNREACHABLE": 2, |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 282 | } |
| 283 | |
| 284 | func (x GetMsgBusEndpointResponse_Reason) String() string { |
| 285 | return proto.EnumName(GetMsgBusEndpointResponse_Reason_name, int32(x)) |
| 286 | } |
| 287 | |
| 288 | func (GetMsgBusEndpointResponse_Reason) EnumDescriptor() ([]byte, []int) { |
| 289 | return fileDescriptor_eae902e73066286d, []int{14, 0} |
| 290 | } |
| 291 | |
| 292 | type SetLogLevelResponse_Reason int32 |
| 293 | |
| 294 | const ( |
| 295 | SetLogLevelResponse_UNDEFINED_REASON SetLogLevelResponse_Reason = 0 |
| 296 | SetLogLevelResponse_UNKNOWN_DEVICE SetLogLevelResponse_Reason = 1 |
| 297 | SetLogLevelResponse_INTERNAL_ERROR SetLogLevelResponse_Reason = 2 |
| 298 | SetLogLevelResponse_UNKNOWN_LOG_ENTITY SetLogLevelResponse_Reason = 3 |
amit.ghosh | bd2022e | 2021-02-22 05:58:53 +0100 | [diff] [blame] | 299 | SetLogLevelResponse_DEVICE_UNREACHABLE SetLogLevelResponse_Reason = 4 |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 300 | ) |
| 301 | |
| 302 | var SetLogLevelResponse_Reason_name = map[int32]string{ |
| 303 | 0: "UNDEFINED_REASON", |
| 304 | 1: "UNKNOWN_DEVICE", |
| 305 | 2: "INTERNAL_ERROR", |
| 306 | 3: "UNKNOWN_LOG_ENTITY", |
amit.ghosh | bd2022e | 2021-02-22 05:58:53 +0100 | [diff] [blame] | 307 | 4: "DEVICE_UNREACHABLE", |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 308 | } |
| 309 | |
| 310 | var SetLogLevelResponse_Reason_value = map[string]int32{ |
| 311 | "UNDEFINED_REASON": 0, |
| 312 | "UNKNOWN_DEVICE": 1, |
| 313 | "INTERNAL_ERROR": 2, |
| 314 | "UNKNOWN_LOG_ENTITY": 3, |
amit.ghosh | bd2022e | 2021-02-22 05:58:53 +0100 | [diff] [blame] | 315 | "DEVICE_UNREACHABLE": 4, |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 316 | } |
| 317 | |
| 318 | func (x SetLogLevelResponse_Reason) String() string { |
| 319 | return proto.EnumName(SetLogLevelResponse_Reason_name, int32(x)) |
| 320 | } |
| 321 | |
| 322 | func (SetLogLevelResponse_Reason) EnumDescriptor() ([]byte, []int) { |
| 323 | return fileDescriptor_eae902e73066286d, []int{17, 0} |
| 324 | } |
| 325 | |
| 326 | type GetLogLevelResponse_Reason int32 |
| 327 | |
| 328 | const ( |
| 329 | GetLogLevelResponse_UNDEFINED_REASON GetLogLevelResponse_Reason = 0 |
| 330 | GetLogLevelResponse_UNKNOWN_DEVICE GetLogLevelResponse_Reason = 1 |
| 331 | GetLogLevelResponse_INTERNAL_ERROR GetLogLevelResponse_Reason = 2 |
| 332 | GetLogLevelResponse_UNKNOWN_LOG_ENTITY GetLogLevelResponse_Reason = 3 |
amit.ghosh | bd2022e | 2021-02-22 05:58:53 +0100 | [diff] [blame] | 333 | GetLogLevelResponse_DEVICE_UNREACHABLE GetLogLevelResponse_Reason = 4 |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 334 | ) |
| 335 | |
| 336 | var GetLogLevelResponse_Reason_name = map[int32]string{ |
| 337 | 0: "UNDEFINED_REASON", |
| 338 | 1: "UNKNOWN_DEVICE", |
| 339 | 2: "INTERNAL_ERROR", |
| 340 | 3: "UNKNOWN_LOG_ENTITY", |
amit.ghosh | bd2022e | 2021-02-22 05:58:53 +0100 | [diff] [blame] | 341 | 4: "DEVICE_UNREACHABLE", |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 342 | } |
| 343 | |
| 344 | var GetLogLevelResponse_Reason_value = map[string]int32{ |
| 345 | "UNDEFINED_REASON": 0, |
| 346 | "UNKNOWN_DEVICE": 1, |
| 347 | "INTERNAL_ERROR": 2, |
| 348 | "UNKNOWN_LOG_ENTITY": 3, |
amit.ghosh | bd2022e | 2021-02-22 05:58:53 +0100 | [diff] [blame] | 349 | "DEVICE_UNREACHABLE": 4, |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 350 | } |
| 351 | |
| 352 | func (x GetLogLevelResponse_Reason) String() string { |
| 353 | return proto.EnumName(GetLogLevelResponse_Reason_name, int32(x)) |
| 354 | } |
| 355 | |
| 356 | func (GetLogLevelResponse_Reason) EnumDescriptor() ([]byte, []int) { |
| 357 | return fileDescriptor_eae902e73066286d, []int{19, 0} |
| 358 | } |
| 359 | |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 360 | type PhysicalInventoryRequest struct { |
| 361 | DeviceUuid *Uuid `protobuf:"bytes,1,opt,name=device_uuid,json=deviceUuid,proto3" json:"device_uuid,omitempty"` |
| 362 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 363 | XXX_unrecognized []byte `json:"-"` |
| 364 | XXX_sizecache int32 `json:"-"` |
| 365 | } |
| 366 | |
| 367 | func (m *PhysicalInventoryRequest) Reset() { *m = PhysicalInventoryRequest{} } |
| 368 | func (m *PhysicalInventoryRequest) String() string { return proto.CompactTextString(m) } |
| 369 | func (*PhysicalInventoryRequest) ProtoMessage() {} |
| 370 | func (*PhysicalInventoryRequest) Descriptor() ([]byte, []int) { |
| 371 | return fileDescriptor_eae902e73066286d, []int{0} |
| 372 | } |
| 373 | |
| 374 | func (m *PhysicalInventoryRequest) XXX_Unmarshal(b []byte) error { |
| 375 | return xxx_messageInfo_PhysicalInventoryRequest.Unmarshal(m, b) |
| 376 | } |
| 377 | func (m *PhysicalInventoryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 378 | return xxx_messageInfo_PhysicalInventoryRequest.Marshal(b, m, deterministic) |
| 379 | } |
| 380 | func (m *PhysicalInventoryRequest) XXX_Merge(src proto.Message) { |
| 381 | xxx_messageInfo_PhysicalInventoryRequest.Merge(m, src) |
| 382 | } |
| 383 | func (m *PhysicalInventoryRequest) XXX_Size() int { |
| 384 | return xxx_messageInfo_PhysicalInventoryRequest.Size(m) |
| 385 | } |
| 386 | func (m *PhysicalInventoryRequest) XXX_DiscardUnknown() { |
| 387 | xxx_messageInfo_PhysicalInventoryRequest.DiscardUnknown(m) |
| 388 | } |
| 389 | |
| 390 | var xxx_messageInfo_PhysicalInventoryRequest proto.InternalMessageInfo |
| 391 | |
| 392 | func (m *PhysicalInventoryRequest) GetDeviceUuid() *Uuid { |
| 393 | if m != nil { |
| 394 | return m.DeviceUuid |
| 395 | } |
| 396 | return nil |
| 397 | } |
| 398 | |
| 399 | type PhysicalInventoryResponse struct { |
amit.ghosh | 8ab1e6e | 2021-02-23 07:40:17 +0100 | [diff] [blame] | 400 | Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=dmi.Status" json:"status,omitempty"` |
| 401 | Reason PhysicalInventoryResponse_Reason `protobuf:"varint,2,opt,name=reason,proto3,enum=dmi.PhysicalInventoryResponse_Reason" json:"reason,omitempty"` |
| 402 | Inventory *Hardware `protobuf:"bytes,3,opt,name=inventory,proto3" json:"inventory,omitempty"` |
| 403 | // It is recommended that upstream components/users of the DMI interface |
| 404 | // do not really interpret/parse the reson_detail, but rather use it for |
| 405 | // display purposes to the end user or use it for logging the error |
| 406 | ReasonDetail string `protobuf:"bytes,4,opt,name=reason_detail,json=reasonDetail,proto3" json:"reason_detail,omitempty"` |
| 407 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 408 | XXX_unrecognized []byte `json:"-"` |
| 409 | XXX_sizecache int32 `json:"-"` |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 410 | } |
| 411 | |
| 412 | func (m *PhysicalInventoryResponse) Reset() { *m = PhysicalInventoryResponse{} } |
| 413 | func (m *PhysicalInventoryResponse) String() string { return proto.CompactTextString(m) } |
| 414 | func (*PhysicalInventoryResponse) ProtoMessage() {} |
| 415 | func (*PhysicalInventoryResponse) Descriptor() ([]byte, []int) { |
| 416 | return fileDescriptor_eae902e73066286d, []int{1} |
| 417 | } |
| 418 | |
| 419 | func (m *PhysicalInventoryResponse) XXX_Unmarshal(b []byte) error { |
| 420 | return xxx_messageInfo_PhysicalInventoryResponse.Unmarshal(m, b) |
| 421 | } |
| 422 | func (m *PhysicalInventoryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 423 | return xxx_messageInfo_PhysicalInventoryResponse.Marshal(b, m, deterministic) |
| 424 | } |
| 425 | func (m *PhysicalInventoryResponse) XXX_Merge(src proto.Message) { |
| 426 | xxx_messageInfo_PhysicalInventoryResponse.Merge(m, src) |
| 427 | } |
| 428 | func (m *PhysicalInventoryResponse) XXX_Size() int { |
| 429 | return xxx_messageInfo_PhysicalInventoryResponse.Size(m) |
| 430 | } |
| 431 | func (m *PhysicalInventoryResponse) XXX_DiscardUnknown() { |
| 432 | xxx_messageInfo_PhysicalInventoryResponse.DiscardUnknown(m) |
| 433 | } |
| 434 | |
| 435 | var xxx_messageInfo_PhysicalInventoryResponse proto.InternalMessageInfo |
| 436 | |
| 437 | func (m *PhysicalInventoryResponse) GetStatus() Status { |
| 438 | if m != nil { |
| 439 | return m.Status |
| 440 | } |
| 441 | return Status_UNDEFINED_STATUS |
| 442 | } |
| 443 | |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 444 | func (m *PhysicalInventoryResponse) GetReason() PhysicalInventoryResponse_Reason { |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 445 | if m != nil { |
| 446 | return m.Reason |
| 447 | } |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 448 | return PhysicalInventoryResponse_UNDEFINED_REASON |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 449 | } |
| 450 | |
| 451 | func (m *PhysicalInventoryResponse) GetInventory() *Hardware { |
| 452 | if m != nil { |
| 453 | return m.Inventory |
| 454 | } |
| 455 | return nil |
| 456 | } |
| 457 | |
amit.ghosh | 8ab1e6e | 2021-02-23 07:40:17 +0100 | [diff] [blame] | 458 | func (m *PhysicalInventoryResponse) GetReasonDetail() string { |
| 459 | if m != nil { |
| 460 | return m.ReasonDetail |
| 461 | } |
| 462 | return "" |
| 463 | } |
| 464 | |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 465 | type HWComponentInfoGetRequest struct { |
| 466 | DeviceUuid *Uuid `protobuf:"bytes,1,opt,name=device_uuid,json=deviceUuid,proto3" json:"device_uuid,omitempty"` |
| 467 | ComponentUuid *Uuid `protobuf:"bytes,2,opt,name=component_uuid,json=componentUuid,proto3" json:"component_uuid,omitempty"` |
| 468 | ComponentName string `protobuf:"bytes,3,opt,name=component_name,json=componentName,proto3" json:"component_name,omitempty"` |
| 469 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 470 | XXX_unrecognized []byte `json:"-"` |
| 471 | XXX_sizecache int32 `json:"-"` |
| 472 | } |
| 473 | |
| 474 | func (m *HWComponentInfoGetRequest) Reset() { *m = HWComponentInfoGetRequest{} } |
| 475 | func (m *HWComponentInfoGetRequest) String() string { return proto.CompactTextString(m) } |
| 476 | func (*HWComponentInfoGetRequest) ProtoMessage() {} |
| 477 | func (*HWComponentInfoGetRequest) Descriptor() ([]byte, []int) { |
| 478 | return fileDescriptor_eae902e73066286d, []int{2} |
| 479 | } |
| 480 | |
| 481 | func (m *HWComponentInfoGetRequest) XXX_Unmarshal(b []byte) error { |
| 482 | return xxx_messageInfo_HWComponentInfoGetRequest.Unmarshal(m, b) |
| 483 | } |
| 484 | func (m *HWComponentInfoGetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 485 | return xxx_messageInfo_HWComponentInfoGetRequest.Marshal(b, m, deterministic) |
| 486 | } |
| 487 | func (m *HWComponentInfoGetRequest) XXX_Merge(src proto.Message) { |
| 488 | xxx_messageInfo_HWComponentInfoGetRequest.Merge(m, src) |
| 489 | } |
| 490 | func (m *HWComponentInfoGetRequest) XXX_Size() int { |
| 491 | return xxx_messageInfo_HWComponentInfoGetRequest.Size(m) |
| 492 | } |
| 493 | func (m *HWComponentInfoGetRequest) XXX_DiscardUnknown() { |
| 494 | xxx_messageInfo_HWComponentInfoGetRequest.DiscardUnknown(m) |
| 495 | } |
| 496 | |
| 497 | var xxx_messageInfo_HWComponentInfoGetRequest proto.InternalMessageInfo |
| 498 | |
| 499 | func (m *HWComponentInfoGetRequest) GetDeviceUuid() *Uuid { |
| 500 | if m != nil { |
| 501 | return m.DeviceUuid |
| 502 | } |
| 503 | return nil |
| 504 | } |
| 505 | |
| 506 | func (m *HWComponentInfoGetRequest) GetComponentUuid() *Uuid { |
| 507 | if m != nil { |
| 508 | return m.ComponentUuid |
| 509 | } |
| 510 | return nil |
| 511 | } |
| 512 | |
| 513 | func (m *HWComponentInfoGetRequest) GetComponentName() string { |
| 514 | if m != nil { |
| 515 | return m.ComponentName |
| 516 | } |
| 517 | return "" |
| 518 | } |
| 519 | |
aghosh | c301dcd | 2020-09-03 16:55:34 +0100 | [diff] [blame] | 520 | type HWComponentInfoGetResponse struct { |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 521 | Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=dmi.Status" json:"status,omitempty"` |
| 522 | Reason HWComponentInfoGetResponse_Reason `protobuf:"varint,2,opt,name=reason,proto3,enum=dmi.HWComponentInfoGetResponse_Reason" json:"reason,omitempty"` |
| 523 | Component *Component `protobuf:"bytes,3,opt,name=component,proto3" json:"component,omitempty"` |
amit.ghosh | 8ab1e6e | 2021-02-23 07:40:17 +0100 | [diff] [blame] | 524 | ReasonDetail string `protobuf:"bytes,4,opt,name=reason_detail,json=reasonDetail,proto3" json:"reason_detail,omitempty"` |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 525 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 526 | XXX_unrecognized []byte `json:"-"` |
| 527 | XXX_sizecache int32 `json:"-"` |
aghosh | c301dcd | 2020-09-03 16:55:34 +0100 | [diff] [blame] | 528 | } |
| 529 | |
| 530 | func (m *HWComponentInfoGetResponse) Reset() { *m = HWComponentInfoGetResponse{} } |
| 531 | func (m *HWComponentInfoGetResponse) String() string { return proto.CompactTextString(m) } |
| 532 | func (*HWComponentInfoGetResponse) ProtoMessage() {} |
| 533 | func (*HWComponentInfoGetResponse) Descriptor() ([]byte, []int) { |
| 534 | return fileDescriptor_eae902e73066286d, []int{3} |
| 535 | } |
| 536 | |
| 537 | func (m *HWComponentInfoGetResponse) XXX_Unmarshal(b []byte) error { |
| 538 | return xxx_messageInfo_HWComponentInfoGetResponse.Unmarshal(m, b) |
| 539 | } |
| 540 | func (m *HWComponentInfoGetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 541 | return xxx_messageInfo_HWComponentInfoGetResponse.Marshal(b, m, deterministic) |
| 542 | } |
| 543 | func (m *HWComponentInfoGetResponse) XXX_Merge(src proto.Message) { |
| 544 | xxx_messageInfo_HWComponentInfoGetResponse.Merge(m, src) |
| 545 | } |
| 546 | func (m *HWComponentInfoGetResponse) XXX_Size() int { |
| 547 | return xxx_messageInfo_HWComponentInfoGetResponse.Size(m) |
| 548 | } |
| 549 | func (m *HWComponentInfoGetResponse) XXX_DiscardUnknown() { |
| 550 | xxx_messageInfo_HWComponentInfoGetResponse.DiscardUnknown(m) |
| 551 | } |
| 552 | |
| 553 | var xxx_messageInfo_HWComponentInfoGetResponse proto.InternalMessageInfo |
| 554 | |
| 555 | func (m *HWComponentInfoGetResponse) GetStatus() Status { |
| 556 | if m != nil { |
| 557 | return m.Status |
| 558 | } |
| 559 | return Status_UNDEFINED_STATUS |
| 560 | } |
| 561 | |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 562 | func (m *HWComponentInfoGetResponse) GetReason() HWComponentInfoGetResponse_Reason { |
aghosh | c301dcd | 2020-09-03 16:55:34 +0100 | [diff] [blame] | 563 | if m != nil { |
| 564 | return m.Reason |
| 565 | } |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 566 | return HWComponentInfoGetResponse_UNDEFINED_REASON |
aghosh | c301dcd | 2020-09-03 16:55:34 +0100 | [diff] [blame] | 567 | } |
| 568 | |
| 569 | func (m *HWComponentInfoGetResponse) GetComponent() *Component { |
| 570 | if m != nil { |
| 571 | return m.Component |
| 572 | } |
| 573 | return nil |
| 574 | } |
| 575 | |
amit.ghosh | 8ab1e6e | 2021-02-23 07:40:17 +0100 | [diff] [blame] | 576 | func (m *HWComponentInfoGetResponse) GetReasonDetail() string { |
| 577 | if m != nil { |
| 578 | return m.ReasonDetail |
| 579 | } |
| 580 | return "" |
| 581 | } |
| 582 | |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 583 | type HWComponentInfoSetRequest struct { |
| 584 | DeviceUuid *Uuid `protobuf:"bytes,1,opt,name=device_uuid,json=deviceUuid,proto3" json:"device_uuid,omitempty"` |
| 585 | ComponentUuid *Uuid `protobuf:"bytes,2,opt,name=component_uuid,json=componentUuid,proto3" json:"component_uuid,omitempty"` |
| 586 | ComponentName string `protobuf:"bytes,3,opt,name=component_name,json=componentName,proto3" json:"component_name,omitempty"` |
| 587 | Changes *ModifiableComponent `protobuf:"bytes,4,opt,name=changes,proto3" json:"changes,omitempty"` |
| 588 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 589 | XXX_unrecognized []byte `json:"-"` |
| 590 | XXX_sizecache int32 `json:"-"` |
| 591 | } |
| 592 | |
| 593 | func (m *HWComponentInfoSetRequest) Reset() { *m = HWComponentInfoSetRequest{} } |
| 594 | func (m *HWComponentInfoSetRequest) String() string { return proto.CompactTextString(m) } |
| 595 | func (*HWComponentInfoSetRequest) ProtoMessage() {} |
| 596 | func (*HWComponentInfoSetRequest) Descriptor() ([]byte, []int) { |
aghosh | c301dcd | 2020-09-03 16:55:34 +0100 | [diff] [blame] | 597 | return fileDescriptor_eae902e73066286d, []int{4} |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 598 | } |
| 599 | |
| 600 | func (m *HWComponentInfoSetRequest) XXX_Unmarshal(b []byte) error { |
| 601 | return xxx_messageInfo_HWComponentInfoSetRequest.Unmarshal(m, b) |
| 602 | } |
| 603 | func (m *HWComponentInfoSetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 604 | return xxx_messageInfo_HWComponentInfoSetRequest.Marshal(b, m, deterministic) |
| 605 | } |
| 606 | func (m *HWComponentInfoSetRequest) XXX_Merge(src proto.Message) { |
| 607 | xxx_messageInfo_HWComponentInfoSetRequest.Merge(m, src) |
| 608 | } |
| 609 | func (m *HWComponentInfoSetRequest) XXX_Size() int { |
| 610 | return xxx_messageInfo_HWComponentInfoSetRequest.Size(m) |
| 611 | } |
| 612 | func (m *HWComponentInfoSetRequest) XXX_DiscardUnknown() { |
| 613 | xxx_messageInfo_HWComponentInfoSetRequest.DiscardUnknown(m) |
| 614 | } |
| 615 | |
| 616 | var xxx_messageInfo_HWComponentInfoSetRequest proto.InternalMessageInfo |
| 617 | |
| 618 | func (m *HWComponentInfoSetRequest) GetDeviceUuid() *Uuid { |
| 619 | if m != nil { |
| 620 | return m.DeviceUuid |
| 621 | } |
| 622 | return nil |
| 623 | } |
| 624 | |
| 625 | func (m *HWComponentInfoSetRequest) GetComponentUuid() *Uuid { |
| 626 | if m != nil { |
| 627 | return m.ComponentUuid |
| 628 | } |
| 629 | return nil |
| 630 | } |
| 631 | |
| 632 | func (m *HWComponentInfoSetRequest) GetComponentName() string { |
| 633 | if m != nil { |
| 634 | return m.ComponentName |
| 635 | } |
| 636 | return "" |
| 637 | } |
| 638 | |
| 639 | func (m *HWComponentInfoSetRequest) GetChanges() *ModifiableComponent { |
| 640 | if m != nil { |
| 641 | return m.Changes |
| 642 | } |
| 643 | return nil |
| 644 | } |
| 645 | |
| 646 | type HWComponentInfoSetResponse struct { |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 647 | Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=dmi.Status" json:"status,omitempty"` |
| 648 | Reason HWComponentInfoSetResponse_Reason `protobuf:"varint,2,opt,name=reason,proto3,enum=dmi.HWComponentInfoSetResponse_Reason" json:"reason,omitempty"` |
amit.ghosh | 8ab1e6e | 2021-02-23 07:40:17 +0100 | [diff] [blame] | 649 | ReasonDetail string `protobuf:"bytes,3,opt,name=reason_detail,json=reasonDetail,proto3" json:"reason_detail,omitempty"` |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 650 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 651 | XXX_unrecognized []byte `json:"-"` |
| 652 | XXX_sizecache int32 `json:"-"` |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 653 | } |
| 654 | |
| 655 | func (m *HWComponentInfoSetResponse) Reset() { *m = HWComponentInfoSetResponse{} } |
| 656 | func (m *HWComponentInfoSetResponse) String() string { return proto.CompactTextString(m) } |
| 657 | func (*HWComponentInfoSetResponse) ProtoMessage() {} |
| 658 | func (*HWComponentInfoSetResponse) Descriptor() ([]byte, []int) { |
aghosh | c301dcd | 2020-09-03 16:55:34 +0100 | [diff] [blame] | 659 | return fileDescriptor_eae902e73066286d, []int{5} |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 660 | } |
| 661 | |
| 662 | func (m *HWComponentInfoSetResponse) XXX_Unmarshal(b []byte) error { |
| 663 | return xxx_messageInfo_HWComponentInfoSetResponse.Unmarshal(m, b) |
| 664 | } |
| 665 | func (m *HWComponentInfoSetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 666 | return xxx_messageInfo_HWComponentInfoSetResponse.Marshal(b, m, deterministic) |
| 667 | } |
| 668 | func (m *HWComponentInfoSetResponse) XXX_Merge(src proto.Message) { |
| 669 | xxx_messageInfo_HWComponentInfoSetResponse.Merge(m, src) |
| 670 | } |
| 671 | func (m *HWComponentInfoSetResponse) XXX_Size() int { |
| 672 | return xxx_messageInfo_HWComponentInfoSetResponse.Size(m) |
| 673 | } |
| 674 | func (m *HWComponentInfoSetResponse) XXX_DiscardUnknown() { |
| 675 | xxx_messageInfo_HWComponentInfoSetResponse.DiscardUnknown(m) |
| 676 | } |
| 677 | |
| 678 | var xxx_messageInfo_HWComponentInfoSetResponse proto.InternalMessageInfo |
| 679 | |
| 680 | func (m *HWComponentInfoSetResponse) GetStatus() Status { |
| 681 | if m != nil { |
| 682 | return m.Status |
| 683 | } |
| 684 | return Status_UNDEFINED_STATUS |
| 685 | } |
| 686 | |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 687 | func (m *HWComponentInfoSetResponse) GetReason() HWComponentInfoSetResponse_Reason { |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 688 | if m != nil { |
| 689 | return m.Reason |
| 690 | } |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 691 | return HWComponentInfoSetResponse_UNDEFINED_REASON |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 692 | } |
| 693 | |
amit.ghosh | 8ab1e6e | 2021-02-23 07:40:17 +0100 | [diff] [blame] | 694 | func (m *HWComponentInfoSetResponse) GetReasonDetail() string { |
| 695 | if m != nil { |
| 696 | return m.ReasonDetail |
| 697 | } |
| 698 | return "" |
| 699 | } |
| 700 | |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 701 | type StartManagingDeviceResponse struct { |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 702 | Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=dmi.Status" json:"status,omitempty"` |
| 703 | Reason StartManagingDeviceResponse_Reason `protobuf:"varint,2,opt,name=reason,proto3,enum=dmi.StartManagingDeviceResponse_Reason" json:"reason,omitempty"` |
| 704 | DeviceUuid *Uuid `protobuf:"bytes,3,opt,name=device_uuid,json=deviceUuid,proto3" json:"device_uuid,omitempty"` |
amit.ghosh | 8ab1e6e | 2021-02-23 07:40:17 +0100 | [diff] [blame] | 705 | ReasonDetail string `protobuf:"bytes,4,opt,name=reason_detail,json=reasonDetail,proto3" json:"reason_detail,omitempty"` |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 706 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 707 | XXX_unrecognized []byte `json:"-"` |
| 708 | XXX_sizecache int32 `json:"-"` |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 709 | } |
| 710 | |
| 711 | func (m *StartManagingDeviceResponse) Reset() { *m = StartManagingDeviceResponse{} } |
| 712 | func (m *StartManagingDeviceResponse) String() string { return proto.CompactTextString(m) } |
| 713 | func (*StartManagingDeviceResponse) ProtoMessage() {} |
| 714 | func (*StartManagingDeviceResponse) Descriptor() ([]byte, []int) { |
aghosh | c301dcd | 2020-09-03 16:55:34 +0100 | [diff] [blame] | 715 | return fileDescriptor_eae902e73066286d, []int{6} |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 716 | } |
| 717 | |
| 718 | func (m *StartManagingDeviceResponse) XXX_Unmarshal(b []byte) error { |
| 719 | return xxx_messageInfo_StartManagingDeviceResponse.Unmarshal(m, b) |
| 720 | } |
| 721 | func (m *StartManagingDeviceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 722 | return xxx_messageInfo_StartManagingDeviceResponse.Marshal(b, m, deterministic) |
| 723 | } |
| 724 | func (m *StartManagingDeviceResponse) XXX_Merge(src proto.Message) { |
| 725 | xxx_messageInfo_StartManagingDeviceResponse.Merge(m, src) |
| 726 | } |
| 727 | func (m *StartManagingDeviceResponse) XXX_Size() int { |
| 728 | return xxx_messageInfo_StartManagingDeviceResponse.Size(m) |
| 729 | } |
| 730 | func (m *StartManagingDeviceResponse) XXX_DiscardUnknown() { |
| 731 | xxx_messageInfo_StartManagingDeviceResponse.DiscardUnknown(m) |
| 732 | } |
| 733 | |
| 734 | var xxx_messageInfo_StartManagingDeviceResponse proto.InternalMessageInfo |
| 735 | |
| 736 | func (m *StartManagingDeviceResponse) GetStatus() Status { |
| 737 | if m != nil { |
| 738 | return m.Status |
| 739 | } |
| 740 | return Status_UNDEFINED_STATUS |
| 741 | } |
| 742 | |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 743 | func (m *StartManagingDeviceResponse) GetReason() StartManagingDeviceResponse_Reason { |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 744 | if m != nil { |
| 745 | return m.Reason |
| 746 | } |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 747 | return StartManagingDeviceResponse_UNDEFINED_REASON |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 748 | } |
| 749 | |
| 750 | func (m *StartManagingDeviceResponse) GetDeviceUuid() *Uuid { |
| 751 | if m != nil { |
| 752 | return m.DeviceUuid |
| 753 | } |
| 754 | return nil |
| 755 | } |
| 756 | |
amit.ghosh | 8ab1e6e | 2021-02-23 07:40:17 +0100 | [diff] [blame] | 757 | func (m *StartManagingDeviceResponse) GetReasonDetail() string { |
| 758 | if m != nil { |
| 759 | return m.ReasonDetail |
| 760 | } |
| 761 | return "" |
| 762 | } |
| 763 | |
Amit Ghosh | 366228e | 2020-07-06 13:46:42 +0100 | [diff] [blame] | 764 | type StopManagingDeviceRequest struct { |
| 765 | Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 766 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 767 | XXX_unrecognized []byte `json:"-"` |
| 768 | XXX_sizecache int32 `json:"-"` |
| 769 | } |
| 770 | |
| 771 | func (m *StopManagingDeviceRequest) Reset() { *m = StopManagingDeviceRequest{} } |
| 772 | func (m *StopManagingDeviceRequest) String() string { return proto.CompactTextString(m) } |
| 773 | func (*StopManagingDeviceRequest) ProtoMessage() {} |
| 774 | func (*StopManagingDeviceRequest) Descriptor() ([]byte, []int) { |
aghosh | c301dcd | 2020-09-03 16:55:34 +0100 | [diff] [blame] | 775 | return fileDescriptor_eae902e73066286d, []int{7} |
Amit Ghosh | 366228e | 2020-07-06 13:46:42 +0100 | [diff] [blame] | 776 | } |
| 777 | |
| 778 | func (m *StopManagingDeviceRequest) XXX_Unmarshal(b []byte) error { |
| 779 | return xxx_messageInfo_StopManagingDeviceRequest.Unmarshal(m, b) |
| 780 | } |
| 781 | func (m *StopManagingDeviceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 782 | return xxx_messageInfo_StopManagingDeviceRequest.Marshal(b, m, deterministic) |
| 783 | } |
| 784 | func (m *StopManagingDeviceRequest) XXX_Merge(src proto.Message) { |
| 785 | xxx_messageInfo_StopManagingDeviceRequest.Merge(m, src) |
| 786 | } |
| 787 | func (m *StopManagingDeviceRequest) XXX_Size() int { |
| 788 | return xxx_messageInfo_StopManagingDeviceRequest.Size(m) |
| 789 | } |
| 790 | func (m *StopManagingDeviceRequest) XXX_DiscardUnknown() { |
| 791 | xxx_messageInfo_StopManagingDeviceRequest.DiscardUnknown(m) |
| 792 | } |
| 793 | |
| 794 | var xxx_messageInfo_StopManagingDeviceRequest proto.InternalMessageInfo |
| 795 | |
| 796 | func (m *StopManagingDeviceRequest) GetName() string { |
| 797 | if m != nil { |
| 798 | return m.Name |
| 799 | } |
| 800 | return "" |
| 801 | } |
| 802 | |
| 803 | type StopManagingDeviceResponse struct { |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 804 | Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=dmi.Status" json:"status,omitempty"` |
| 805 | Reason StopManagingDeviceResponse_Reason `protobuf:"varint,2,opt,name=reason,proto3,enum=dmi.StopManagingDeviceResponse_Reason" json:"reason,omitempty"` |
amit.ghosh | 8ab1e6e | 2021-02-23 07:40:17 +0100 | [diff] [blame] | 806 | ReasonDetail string `protobuf:"bytes,3,opt,name=reason_detail,json=reasonDetail,proto3" json:"reason_detail,omitempty"` |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 807 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 808 | XXX_unrecognized []byte `json:"-"` |
| 809 | XXX_sizecache int32 `json:"-"` |
Amit Ghosh | 366228e | 2020-07-06 13:46:42 +0100 | [diff] [blame] | 810 | } |
| 811 | |
| 812 | func (m *StopManagingDeviceResponse) Reset() { *m = StopManagingDeviceResponse{} } |
| 813 | func (m *StopManagingDeviceResponse) String() string { return proto.CompactTextString(m) } |
| 814 | func (*StopManagingDeviceResponse) ProtoMessage() {} |
| 815 | func (*StopManagingDeviceResponse) Descriptor() ([]byte, []int) { |
aghosh | c301dcd | 2020-09-03 16:55:34 +0100 | [diff] [blame] | 816 | return fileDescriptor_eae902e73066286d, []int{8} |
Amit Ghosh | 366228e | 2020-07-06 13:46:42 +0100 | [diff] [blame] | 817 | } |
| 818 | |
| 819 | func (m *StopManagingDeviceResponse) XXX_Unmarshal(b []byte) error { |
| 820 | return xxx_messageInfo_StopManagingDeviceResponse.Unmarshal(m, b) |
| 821 | } |
| 822 | func (m *StopManagingDeviceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 823 | return xxx_messageInfo_StopManagingDeviceResponse.Marshal(b, m, deterministic) |
| 824 | } |
| 825 | func (m *StopManagingDeviceResponse) XXX_Merge(src proto.Message) { |
| 826 | xxx_messageInfo_StopManagingDeviceResponse.Merge(m, src) |
| 827 | } |
| 828 | func (m *StopManagingDeviceResponse) XXX_Size() int { |
| 829 | return xxx_messageInfo_StopManagingDeviceResponse.Size(m) |
| 830 | } |
| 831 | func (m *StopManagingDeviceResponse) XXX_DiscardUnknown() { |
| 832 | xxx_messageInfo_StopManagingDeviceResponse.DiscardUnknown(m) |
| 833 | } |
| 834 | |
| 835 | var xxx_messageInfo_StopManagingDeviceResponse proto.InternalMessageInfo |
| 836 | |
| 837 | func (m *StopManagingDeviceResponse) GetStatus() Status { |
| 838 | if m != nil { |
| 839 | return m.Status |
| 840 | } |
| 841 | return Status_UNDEFINED_STATUS |
| 842 | } |
| 843 | |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 844 | func (m *StopManagingDeviceResponse) GetReason() StopManagingDeviceResponse_Reason { |
Amit Ghosh | 366228e | 2020-07-06 13:46:42 +0100 | [diff] [blame] | 845 | if m != nil { |
| 846 | return m.Reason |
| 847 | } |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 848 | return StopManagingDeviceResponse_UNDEFINED_REASON |
Amit Ghosh | 366228e | 2020-07-06 13:46:42 +0100 | [diff] [blame] | 849 | } |
| 850 | |
amit.ghosh | 8ab1e6e | 2021-02-23 07:40:17 +0100 | [diff] [blame] | 851 | func (m *StopManagingDeviceResponse) GetReasonDetail() string { |
| 852 | if m != nil { |
| 853 | return m.ReasonDetail |
| 854 | } |
| 855 | return "" |
| 856 | } |
| 857 | |
Andrea Campanella | cb990bc | 2020-09-22 12:50:56 +0200 | [diff] [blame] | 858 | type ManagedDevicesResponse struct { |
| 859 | Devices []*ModifiableComponent `protobuf:"bytes,1,rep,name=devices,proto3" json:"devices,omitempty"` |
| 860 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 861 | XXX_unrecognized []byte `json:"-"` |
| 862 | XXX_sizecache int32 `json:"-"` |
| 863 | } |
| 864 | |
| 865 | func (m *ManagedDevicesResponse) Reset() { *m = ManagedDevicesResponse{} } |
| 866 | func (m *ManagedDevicesResponse) String() string { return proto.CompactTextString(m) } |
| 867 | func (*ManagedDevicesResponse) ProtoMessage() {} |
| 868 | func (*ManagedDevicesResponse) Descriptor() ([]byte, []int) { |
| 869 | return fileDescriptor_eae902e73066286d, []int{9} |
| 870 | } |
| 871 | |
| 872 | func (m *ManagedDevicesResponse) XXX_Unmarshal(b []byte) error { |
| 873 | return xxx_messageInfo_ManagedDevicesResponse.Unmarshal(m, b) |
| 874 | } |
| 875 | func (m *ManagedDevicesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 876 | return xxx_messageInfo_ManagedDevicesResponse.Marshal(b, m, deterministic) |
| 877 | } |
| 878 | func (m *ManagedDevicesResponse) XXX_Merge(src proto.Message) { |
| 879 | xxx_messageInfo_ManagedDevicesResponse.Merge(m, src) |
| 880 | } |
| 881 | func (m *ManagedDevicesResponse) XXX_Size() int { |
| 882 | return xxx_messageInfo_ManagedDevicesResponse.Size(m) |
| 883 | } |
| 884 | func (m *ManagedDevicesResponse) XXX_DiscardUnknown() { |
| 885 | xxx_messageInfo_ManagedDevicesResponse.DiscardUnknown(m) |
| 886 | } |
| 887 | |
| 888 | var xxx_messageInfo_ManagedDevicesResponse proto.InternalMessageInfo |
| 889 | |
| 890 | func (m *ManagedDevicesResponse) GetDevices() []*ModifiableComponent { |
| 891 | if m != nil { |
| 892 | return m.Devices |
| 893 | } |
| 894 | return nil |
| 895 | } |
| 896 | |
amit.ghosh | 188a84f | 2020-09-27 20:59:25 +0200 | [diff] [blame] | 897 | type SetLoggingEndpointRequest struct { |
| 898 | DeviceUuid *Uuid `protobuf:"bytes,1,opt,name=device_uuid,json=deviceUuid,proto3" json:"device_uuid,omitempty"` |
| 899 | LoggingEndpoint string `protobuf:"bytes,2,opt,name=logging_endpoint,json=loggingEndpoint,proto3" json:"logging_endpoint,omitempty"` |
| 900 | LoggingProtocol string `protobuf:"bytes,3,opt,name=logging_protocol,json=loggingProtocol,proto3" json:"logging_protocol,omitempty"` |
| 901 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 902 | XXX_unrecognized []byte `json:"-"` |
| 903 | XXX_sizecache int32 `json:"-"` |
| 904 | } |
| 905 | |
| 906 | func (m *SetLoggingEndpointRequest) Reset() { *m = SetLoggingEndpointRequest{} } |
| 907 | func (m *SetLoggingEndpointRequest) String() string { return proto.CompactTextString(m) } |
| 908 | func (*SetLoggingEndpointRequest) ProtoMessage() {} |
| 909 | func (*SetLoggingEndpointRequest) Descriptor() ([]byte, []int) { |
| 910 | return fileDescriptor_eae902e73066286d, []int{10} |
| 911 | } |
| 912 | |
| 913 | func (m *SetLoggingEndpointRequest) XXX_Unmarshal(b []byte) error { |
| 914 | return xxx_messageInfo_SetLoggingEndpointRequest.Unmarshal(m, b) |
| 915 | } |
| 916 | func (m *SetLoggingEndpointRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 917 | return xxx_messageInfo_SetLoggingEndpointRequest.Marshal(b, m, deterministic) |
| 918 | } |
| 919 | func (m *SetLoggingEndpointRequest) XXX_Merge(src proto.Message) { |
| 920 | xxx_messageInfo_SetLoggingEndpointRequest.Merge(m, src) |
| 921 | } |
| 922 | func (m *SetLoggingEndpointRequest) XXX_Size() int { |
| 923 | return xxx_messageInfo_SetLoggingEndpointRequest.Size(m) |
| 924 | } |
| 925 | func (m *SetLoggingEndpointRequest) XXX_DiscardUnknown() { |
| 926 | xxx_messageInfo_SetLoggingEndpointRequest.DiscardUnknown(m) |
| 927 | } |
| 928 | |
| 929 | var xxx_messageInfo_SetLoggingEndpointRequest proto.InternalMessageInfo |
| 930 | |
| 931 | func (m *SetLoggingEndpointRequest) GetDeviceUuid() *Uuid { |
| 932 | if m != nil { |
| 933 | return m.DeviceUuid |
| 934 | } |
| 935 | return nil |
| 936 | } |
| 937 | |
| 938 | func (m *SetLoggingEndpointRequest) GetLoggingEndpoint() string { |
| 939 | if m != nil { |
| 940 | return m.LoggingEndpoint |
| 941 | } |
| 942 | return "" |
| 943 | } |
| 944 | |
| 945 | func (m *SetLoggingEndpointRequest) GetLoggingProtocol() string { |
| 946 | if m != nil { |
| 947 | return m.LoggingProtocol |
| 948 | } |
| 949 | return "" |
| 950 | } |
| 951 | |
| 952 | type SetRemoteEndpointResponse struct { |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 953 | Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=dmi.Status" json:"status,omitempty"` |
| 954 | Reason SetRemoteEndpointResponse_Reason `protobuf:"varint,2,opt,name=reason,proto3,enum=dmi.SetRemoteEndpointResponse_Reason" json:"reason,omitempty"` |
amit.ghosh | 8ab1e6e | 2021-02-23 07:40:17 +0100 | [diff] [blame] | 955 | ReasonDetail string `protobuf:"bytes,3,opt,name=reason_detail,json=reasonDetail,proto3" json:"reason_detail,omitempty"` |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 956 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 957 | XXX_unrecognized []byte `json:"-"` |
| 958 | XXX_sizecache int32 `json:"-"` |
amit.ghosh | 188a84f | 2020-09-27 20:59:25 +0200 | [diff] [blame] | 959 | } |
| 960 | |
| 961 | func (m *SetRemoteEndpointResponse) Reset() { *m = SetRemoteEndpointResponse{} } |
| 962 | func (m *SetRemoteEndpointResponse) String() string { return proto.CompactTextString(m) } |
| 963 | func (*SetRemoteEndpointResponse) ProtoMessage() {} |
| 964 | func (*SetRemoteEndpointResponse) Descriptor() ([]byte, []int) { |
| 965 | return fileDescriptor_eae902e73066286d, []int{11} |
| 966 | } |
| 967 | |
| 968 | func (m *SetRemoteEndpointResponse) XXX_Unmarshal(b []byte) error { |
| 969 | return xxx_messageInfo_SetRemoteEndpointResponse.Unmarshal(m, b) |
| 970 | } |
| 971 | func (m *SetRemoteEndpointResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 972 | return xxx_messageInfo_SetRemoteEndpointResponse.Marshal(b, m, deterministic) |
| 973 | } |
| 974 | func (m *SetRemoteEndpointResponse) XXX_Merge(src proto.Message) { |
| 975 | xxx_messageInfo_SetRemoteEndpointResponse.Merge(m, src) |
| 976 | } |
| 977 | func (m *SetRemoteEndpointResponse) XXX_Size() int { |
| 978 | return xxx_messageInfo_SetRemoteEndpointResponse.Size(m) |
| 979 | } |
| 980 | func (m *SetRemoteEndpointResponse) XXX_DiscardUnknown() { |
| 981 | xxx_messageInfo_SetRemoteEndpointResponse.DiscardUnknown(m) |
| 982 | } |
| 983 | |
| 984 | var xxx_messageInfo_SetRemoteEndpointResponse proto.InternalMessageInfo |
| 985 | |
| 986 | func (m *SetRemoteEndpointResponse) GetStatus() Status { |
| 987 | if m != nil { |
| 988 | return m.Status |
| 989 | } |
| 990 | return Status_UNDEFINED_STATUS |
| 991 | } |
| 992 | |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 993 | func (m *SetRemoteEndpointResponse) GetReason() SetRemoteEndpointResponse_Reason { |
amit.ghosh | 188a84f | 2020-09-27 20:59:25 +0200 | [diff] [blame] | 994 | if m != nil { |
| 995 | return m.Reason |
| 996 | } |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 997 | return SetRemoteEndpointResponse_UNDEFINED_REASON |
amit.ghosh | 188a84f | 2020-09-27 20:59:25 +0200 | [diff] [blame] | 998 | } |
| 999 | |
amit.ghosh | 8ab1e6e | 2021-02-23 07:40:17 +0100 | [diff] [blame] | 1000 | func (m *SetRemoteEndpointResponse) GetReasonDetail() string { |
| 1001 | if m != nil { |
| 1002 | return m.ReasonDetail |
| 1003 | } |
| 1004 | return "" |
| 1005 | } |
| 1006 | |
amit.ghosh | 188a84f | 2020-09-27 20:59:25 +0200 | [diff] [blame] | 1007 | type GetLoggingEndpointResponse struct { |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 1008 | Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=dmi.Status" json:"status,omitempty"` |
| 1009 | Reason GetLoggingEndpointResponse_Reason `protobuf:"varint,2,opt,name=reason,proto3,enum=dmi.GetLoggingEndpointResponse_Reason" json:"reason,omitempty"` |
| 1010 | LoggingEndpoint string `protobuf:"bytes,3,opt,name=logging_endpoint,json=loggingEndpoint,proto3" json:"logging_endpoint,omitempty"` |
| 1011 | LoggingProtocol string `protobuf:"bytes,4,opt,name=logging_protocol,json=loggingProtocol,proto3" json:"logging_protocol,omitempty"` |
amit.ghosh | 8ab1e6e | 2021-02-23 07:40:17 +0100 | [diff] [blame] | 1012 | ReasonDetail string `protobuf:"bytes,5,opt,name=reason_detail,json=reasonDetail,proto3" json:"reason_detail,omitempty"` |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 1013 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 1014 | XXX_unrecognized []byte `json:"-"` |
| 1015 | XXX_sizecache int32 `json:"-"` |
amit.ghosh | 188a84f | 2020-09-27 20:59:25 +0200 | [diff] [blame] | 1016 | } |
| 1017 | |
| 1018 | func (m *GetLoggingEndpointResponse) Reset() { *m = GetLoggingEndpointResponse{} } |
| 1019 | func (m *GetLoggingEndpointResponse) String() string { return proto.CompactTextString(m) } |
| 1020 | func (*GetLoggingEndpointResponse) ProtoMessage() {} |
| 1021 | func (*GetLoggingEndpointResponse) Descriptor() ([]byte, []int) { |
| 1022 | return fileDescriptor_eae902e73066286d, []int{12} |
| 1023 | } |
| 1024 | |
| 1025 | func (m *GetLoggingEndpointResponse) XXX_Unmarshal(b []byte) error { |
| 1026 | return xxx_messageInfo_GetLoggingEndpointResponse.Unmarshal(m, b) |
| 1027 | } |
| 1028 | func (m *GetLoggingEndpointResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 1029 | return xxx_messageInfo_GetLoggingEndpointResponse.Marshal(b, m, deterministic) |
| 1030 | } |
| 1031 | func (m *GetLoggingEndpointResponse) XXX_Merge(src proto.Message) { |
| 1032 | xxx_messageInfo_GetLoggingEndpointResponse.Merge(m, src) |
| 1033 | } |
| 1034 | func (m *GetLoggingEndpointResponse) XXX_Size() int { |
| 1035 | return xxx_messageInfo_GetLoggingEndpointResponse.Size(m) |
| 1036 | } |
| 1037 | func (m *GetLoggingEndpointResponse) XXX_DiscardUnknown() { |
| 1038 | xxx_messageInfo_GetLoggingEndpointResponse.DiscardUnknown(m) |
| 1039 | } |
| 1040 | |
| 1041 | var xxx_messageInfo_GetLoggingEndpointResponse proto.InternalMessageInfo |
| 1042 | |
| 1043 | func (m *GetLoggingEndpointResponse) GetStatus() Status { |
| 1044 | if m != nil { |
| 1045 | return m.Status |
| 1046 | } |
| 1047 | return Status_UNDEFINED_STATUS |
| 1048 | } |
| 1049 | |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 1050 | func (m *GetLoggingEndpointResponse) GetReason() GetLoggingEndpointResponse_Reason { |
amit.ghosh | 188a84f | 2020-09-27 20:59:25 +0200 | [diff] [blame] | 1051 | if m != nil { |
| 1052 | return m.Reason |
| 1053 | } |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 1054 | return GetLoggingEndpointResponse_UNDEFINED_REASON |
amit.ghosh | 188a84f | 2020-09-27 20:59:25 +0200 | [diff] [blame] | 1055 | } |
| 1056 | |
| 1057 | func (m *GetLoggingEndpointResponse) GetLoggingEndpoint() string { |
| 1058 | if m != nil { |
| 1059 | return m.LoggingEndpoint |
| 1060 | } |
| 1061 | return "" |
| 1062 | } |
| 1063 | |
| 1064 | func (m *GetLoggingEndpointResponse) GetLoggingProtocol() string { |
| 1065 | if m != nil { |
| 1066 | return m.LoggingProtocol |
| 1067 | } |
| 1068 | return "" |
| 1069 | } |
| 1070 | |
amit.ghosh | 8ab1e6e | 2021-02-23 07:40:17 +0100 | [diff] [blame] | 1071 | func (m *GetLoggingEndpointResponse) GetReasonDetail() string { |
| 1072 | if m != nil { |
| 1073 | return m.ReasonDetail |
| 1074 | } |
| 1075 | return "" |
| 1076 | } |
| 1077 | |
amit.ghosh | 188a84f | 2020-09-27 20:59:25 +0200 | [diff] [blame] | 1078 | type SetMsgBusEndpointRequest struct { |
| 1079 | MsgbusEndpoint string `protobuf:"bytes,1,opt,name=msgbus_endpoint,json=msgbusEndpoint,proto3" json:"msgbus_endpoint,omitempty"` |
| 1080 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 1081 | XXX_unrecognized []byte `json:"-"` |
| 1082 | XXX_sizecache int32 `json:"-"` |
| 1083 | } |
| 1084 | |
| 1085 | func (m *SetMsgBusEndpointRequest) Reset() { *m = SetMsgBusEndpointRequest{} } |
| 1086 | func (m *SetMsgBusEndpointRequest) String() string { return proto.CompactTextString(m) } |
| 1087 | func (*SetMsgBusEndpointRequest) ProtoMessage() {} |
| 1088 | func (*SetMsgBusEndpointRequest) Descriptor() ([]byte, []int) { |
| 1089 | return fileDescriptor_eae902e73066286d, []int{13} |
| 1090 | } |
| 1091 | |
| 1092 | func (m *SetMsgBusEndpointRequest) XXX_Unmarshal(b []byte) error { |
| 1093 | return xxx_messageInfo_SetMsgBusEndpointRequest.Unmarshal(m, b) |
| 1094 | } |
| 1095 | func (m *SetMsgBusEndpointRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 1096 | return xxx_messageInfo_SetMsgBusEndpointRequest.Marshal(b, m, deterministic) |
| 1097 | } |
| 1098 | func (m *SetMsgBusEndpointRequest) XXX_Merge(src proto.Message) { |
| 1099 | xxx_messageInfo_SetMsgBusEndpointRequest.Merge(m, src) |
| 1100 | } |
| 1101 | func (m *SetMsgBusEndpointRequest) XXX_Size() int { |
| 1102 | return xxx_messageInfo_SetMsgBusEndpointRequest.Size(m) |
| 1103 | } |
| 1104 | func (m *SetMsgBusEndpointRequest) XXX_DiscardUnknown() { |
| 1105 | xxx_messageInfo_SetMsgBusEndpointRequest.DiscardUnknown(m) |
| 1106 | } |
| 1107 | |
| 1108 | var xxx_messageInfo_SetMsgBusEndpointRequest proto.InternalMessageInfo |
| 1109 | |
| 1110 | func (m *SetMsgBusEndpointRequest) GetMsgbusEndpoint() string { |
| 1111 | if m != nil { |
| 1112 | return m.MsgbusEndpoint |
| 1113 | } |
| 1114 | return "" |
| 1115 | } |
| 1116 | |
| 1117 | type GetMsgBusEndpointResponse struct { |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 1118 | Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=dmi.Status" json:"status,omitempty"` |
| 1119 | Reason GetMsgBusEndpointResponse_Reason `protobuf:"varint,2,opt,name=reason,proto3,enum=dmi.GetMsgBusEndpointResponse_Reason" json:"reason,omitempty"` |
| 1120 | MsgbusEndpoint string `protobuf:"bytes,3,opt,name=msgbus_endpoint,json=msgbusEndpoint,proto3" json:"msgbus_endpoint,omitempty"` |
amit.ghosh | 8ab1e6e | 2021-02-23 07:40:17 +0100 | [diff] [blame] | 1121 | ReasonDetail string `protobuf:"bytes,4,opt,name=reason_detail,json=reasonDetail,proto3" json:"reason_detail,omitempty"` |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 1122 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 1123 | XXX_unrecognized []byte `json:"-"` |
| 1124 | XXX_sizecache int32 `json:"-"` |
amit.ghosh | 188a84f | 2020-09-27 20:59:25 +0200 | [diff] [blame] | 1125 | } |
| 1126 | |
| 1127 | func (m *GetMsgBusEndpointResponse) Reset() { *m = GetMsgBusEndpointResponse{} } |
| 1128 | func (m *GetMsgBusEndpointResponse) String() string { return proto.CompactTextString(m) } |
| 1129 | func (*GetMsgBusEndpointResponse) ProtoMessage() {} |
| 1130 | func (*GetMsgBusEndpointResponse) Descriptor() ([]byte, []int) { |
| 1131 | return fileDescriptor_eae902e73066286d, []int{14} |
| 1132 | } |
| 1133 | |
| 1134 | func (m *GetMsgBusEndpointResponse) XXX_Unmarshal(b []byte) error { |
| 1135 | return xxx_messageInfo_GetMsgBusEndpointResponse.Unmarshal(m, b) |
| 1136 | } |
| 1137 | func (m *GetMsgBusEndpointResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 1138 | return xxx_messageInfo_GetMsgBusEndpointResponse.Marshal(b, m, deterministic) |
| 1139 | } |
| 1140 | func (m *GetMsgBusEndpointResponse) XXX_Merge(src proto.Message) { |
| 1141 | xxx_messageInfo_GetMsgBusEndpointResponse.Merge(m, src) |
| 1142 | } |
| 1143 | func (m *GetMsgBusEndpointResponse) XXX_Size() int { |
| 1144 | return xxx_messageInfo_GetMsgBusEndpointResponse.Size(m) |
| 1145 | } |
| 1146 | func (m *GetMsgBusEndpointResponse) XXX_DiscardUnknown() { |
| 1147 | xxx_messageInfo_GetMsgBusEndpointResponse.DiscardUnknown(m) |
| 1148 | } |
| 1149 | |
| 1150 | var xxx_messageInfo_GetMsgBusEndpointResponse proto.InternalMessageInfo |
| 1151 | |
| 1152 | func (m *GetMsgBusEndpointResponse) GetStatus() Status { |
| 1153 | if m != nil { |
| 1154 | return m.Status |
| 1155 | } |
| 1156 | return Status_UNDEFINED_STATUS |
| 1157 | } |
| 1158 | |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 1159 | func (m *GetMsgBusEndpointResponse) GetReason() GetMsgBusEndpointResponse_Reason { |
amit.ghosh | 188a84f | 2020-09-27 20:59:25 +0200 | [diff] [blame] | 1160 | if m != nil { |
| 1161 | return m.Reason |
| 1162 | } |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 1163 | return GetMsgBusEndpointResponse_UNDEFINED_REASON |
amit.ghosh | 188a84f | 2020-09-27 20:59:25 +0200 | [diff] [blame] | 1164 | } |
| 1165 | |
| 1166 | func (m *GetMsgBusEndpointResponse) GetMsgbusEndpoint() string { |
| 1167 | if m != nil { |
| 1168 | return m.MsgbusEndpoint |
| 1169 | } |
| 1170 | return "" |
| 1171 | } |
| 1172 | |
amit.ghosh | 8ab1e6e | 2021-02-23 07:40:17 +0100 | [diff] [blame] | 1173 | func (m *GetMsgBusEndpointResponse) GetReasonDetail() string { |
| 1174 | if m != nil { |
| 1175 | return m.ReasonDetail |
| 1176 | } |
| 1177 | return "" |
| 1178 | } |
| 1179 | |
Andrea Campanella | b91e9a4 | 2020-10-09 14:31:43 +0200 | [diff] [blame] | 1180 | type EntitiesLogLevel struct { |
| 1181 | LogLevel LogLevel `protobuf:"varint,1,opt,name=logLevel,proto3,enum=dmi.LogLevel" json:"logLevel,omitempty"` |
| 1182 | Entities []string `protobuf:"bytes,2,rep,name=entities,proto3" json:"entities,omitempty"` |
| 1183 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 1184 | XXX_unrecognized []byte `json:"-"` |
| 1185 | XXX_sizecache int32 `json:"-"` |
| 1186 | } |
| 1187 | |
| 1188 | func (m *EntitiesLogLevel) Reset() { *m = EntitiesLogLevel{} } |
| 1189 | func (m *EntitiesLogLevel) String() string { return proto.CompactTextString(m) } |
| 1190 | func (*EntitiesLogLevel) ProtoMessage() {} |
| 1191 | func (*EntitiesLogLevel) Descriptor() ([]byte, []int) { |
| 1192 | return fileDescriptor_eae902e73066286d, []int{15} |
| 1193 | } |
| 1194 | |
| 1195 | func (m *EntitiesLogLevel) XXX_Unmarshal(b []byte) error { |
| 1196 | return xxx_messageInfo_EntitiesLogLevel.Unmarshal(m, b) |
| 1197 | } |
| 1198 | func (m *EntitiesLogLevel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 1199 | return xxx_messageInfo_EntitiesLogLevel.Marshal(b, m, deterministic) |
| 1200 | } |
| 1201 | func (m *EntitiesLogLevel) XXX_Merge(src proto.Message) { |
| 1202 | xxx_messageInfo_EntitiesLogLevel.Merge(m, src) |
| 1203 | } |
| 1204 | func (m *EntitiesLogLevel) XXX_Size() int { |
| 1205 | return xxx_messageInfo_EntitiesLogLevel.Size(m) |
| 1206 | } |
| 1207 | func (m *EntitiesLogLevel) XXX_DiscardUnknown() { |
| 1208 | xxx_messageInfo_EntitiesLogLevel.DiscardUnknown(m) |
| 1209 | } |
| 1210 | |
| 1211 | var xxx_messageInfo_EntitiesLogLevel proto.InternalMessageInfo |
| 1212 | |
| 1213 | func (m *EntitiesLogLevel) GetLogLevel() LogLevel { |
| 1214 | if m != nil { |
| 1215 | return m.LogLevel |
| 1216 | } |
| 1217 | return LogLevel_TRACE |
| 1218 | } |
| 1219 | |
| 1220 | func (m *EntitiesLogLevel) GetEntities() []string { |
| 1221 | if m != nil { |
| 1222 | return m.Entities |
| 1223 | } |
| 1224 | return nil |
| 1225 | } |
| 1226 | |
| 1227 | type SetLogLevelRequest struct { |
| 1228 | DeviceUuid *Uuid `protobuf:"bytes,1,opt,name=device_uuid,json=deviceUuid,proto3" json:"device_uuid,omitempty"` |
| 1229 | Loglevels []*EntitiesLogLevel `protobuf:"bytes,2,rep,name=loglevels,proto3" json:"loglevels,omitempty"` |
| 1230 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 1231 | XXX_unrecognized []byte `json:"-"` |
| 1232 | XXX_sizecache int32 `json:"-"` |
| 1233 | } |
| 1234 | |
| 1235 | func (m *SetLogLevelRequest) Reset() { *m = SetLogLevelRequest{} } |
| 1236 | func (m *SetLogLevelRequest) String() string { return proto.CompactTextString(m) } |
| 1237 | func (*SetLogLevelRequest) ProtoMessage() {} |
| 1238 | func (*SetLogLevelRequest) Descriptor() ([]byte, []int) { |
| 1239 | return fileDescriptor_eae902e73066286d, []int{16} |
| 1240 | } |
| 1241 | |
| 1242 | func (m *SetLogLevelRequest) XXX_Unmarshal(b []byte) error { |
| 1243 | return xxx_messageInfo_SetLogLevelRequest.Unmarshal(m, b) |
| 1244 | } |
| 1245 | func (m *SetLogLevelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 1246 | return xxx_messageInfo_SetLogLevelRequest.Marshal(b, m, deterministic) |
| 1247 | } |
| 1248 | func (m *SetLogLevelRequest) XXX_Merge(src proto.Message) { |
| 1249 | xxx_messageInfo_SetLogLevelRequest.Merge(m, src) |
| 1250 | } |
| 1251 | func (m *SetLogLevelRequest) XXX_Size() int { |
| 1252 | return xxx_messageInfo_SetLogLevelRequest.Size(m) |
| 1253 | } |
| 1254 | func (m *SetLogLevelRequest) XXX_DiscardUnknown() { |
| 1255 | xxx_messageInfo_SetLogLevelRequest.DiscardUnknown(m) |
| 1256 | } |
| 1257 | |
| 1258 | var xxx_messageInfo_SetLogLevelRequest proto.InternalMessageInfo |
| 1259 | |
| 1260 | func (m *SetLogLevelRequest) GetDeviceUuid() *Uuid { |
| 1261 | if m != nil { |
| 1262 | return m.DeviceUuid |
| 1263 | } |
| 1264 | return nil |
| 1265 | } |
| 1266 | |
| 1267 | func (m *SetLogLevelRequest) GetLoglevels() []*EntitiesLogLevel { |
| 1268 | if m != nil { |
| 1269 | return m.Loglevels |
| 1270 | } |
| 1271 | return nil |
| 1272 | } |
| 1273 | |
| 1274 | type SetLogLevelResponse struct { |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 1275 | DeviceUuid *Uuid `protobuf:"bytes,1,opt,name=device_uuid,json=deviceUuid,proto3" json:"device_uuid,omitempty"` |
| 1276 | Status Status `protobuf:"varint,2,opt,name=status,proto3,enum=dmi.Status" json:"status,omitempty"` |
| 1277 | Reason SetLogLevelResponse_Reason `protobuf:"varint,3,opt,name=reason,proto3,enum=dmi.SetLogLevelResponse_Reason" json:"reason,omitempty"` |
amit.ghosh | 8ab1e6e | 2021-02-23 07:40:17 +0100 | [diff] [blame] | 1278 | ReasonDetail string `protobuf:"bytes,4,opt,name=reason_detail,json=reasonDetail,proto3" json:"reason_detail,omitempty"` |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 1279 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 1280 | XXX_unrecognized []byte `json:"-"` |
| 1281 | XXX_sizecache int32 `json:"-"` |
Andrea Campanella | b91e9a4 | 2020-10-09 14:31:43 +0200 | [diff] [blame] | 1282 | } |
| 1283 | |
| 1284 | func (m *SetLogLevelResponse) Reset() { *m = SetLogLevelResponse{} } |
| 1285 | func (m *SetLogLevelResponse) String() string { return proto.CompactTextString(m) } |
| 1286 | func (*SetLogLevelResponse) ProtoMessage() {} |
| 1287 | func (*SetLogLevelResponse) Descriptor() ([]byte, []int) { |
| 1288 | return fileDescriptor_eae902e73066286d, []int{17} |
| 1289 | } |
| 1290 | |
| 1291 | func (m *SetLogLevelResponse) XXX_Unmarshal(b []byte) error { |
| 1292 | return xxx_messageInfo_SetLogLevelResponse.Unmarshal(m, b) |
| 1293 | } |
| 1294 | func (m *SetLogLevelResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 1295 | return xxx_messageInfo_SetLogLevelResponse.Marshal(b, m, deterministic) |
| 1296 | } |
| 1297 | func (m *SetLogLevelResponse) XXX_Merge(src proto.Message) { |
| 1298 | xxx_messageInfo_SetLogLevelResponse.Merge(m, src) |
| 1299 | } |
| 1300 | func (m *SetLogLevelResponse) XXX_Size() int { |
| 1301 | return xxx_messageInfo_SetLogLevelResponse.Size(m) |
| 1302 | } |
| 1303 | func (m *SetLogLevelResponse) XXX_DiscardUnknown() { |
| 1304 | xxx_messageInfo_SetLogLevelResponse.DiscardUnknown(m) |
| 1305 | } |
| 1306 | |
| 1307 | var xxx_messageInfo_SetLogLevelResponse proto.InternalMessageInfo |
| 1308 | |
amit.ghosh | 5d97dba | 2020-11-12 16:45:27 +0100 | [diff] [blame] | 1309 | func (m *SetLogLevelResponse) GetDeviceUuid() *Uuid { |
Andrea Campanella | b91e9a4 | 2020-10-09 14:31:43 +0200 | [diff] [blame] | 1310 | if m != nil { |
| 1311 | return m.DeviceUuid |
| 1312 | } |
| 1313 | return nil |
| 1314 | } |
| 1315 | |
amit.ghosh | 5d97dba | 2020-11-12 16:45:27 +0100 | [diff] [blame] | 1316 | func (m *SetLogLevelResponse) GetStatus() Status { |
Andrea Campanella | b91e9a4 | 2020-10-09 14:31:43 +0200 | [diff] [blame] | 1317 | if m != nil { |
| 1318 | return m.Status |
| 1319 | } |
| 1320 | return Status_UNDEFINED_STATUS |
| 1321 | } |
| 1322 | |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 1323 | func (m *SetLogLevelResponse) GetReason() SetLogLevelResponse_Reason { |
Andrea Campanella | b91e9a4 | 2020-10-09 14:31:43 +0200 | [diff] [blame] | 1324 | if m != nil { |
| 1325 | return m.Reason |
| 1326 | } |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 1327 | return SetLogLevelResponse_UNDEFINED_REASON |
Andrea Campanella | b91e9a4 | 2020-10-09 14:31:43 +0200 | [diff] [blame] | 1328 | } |
| 1329 | |
amit.ghosh | 8ab1e6e | 2021-02-23 07:40:17 +0100 | [diff] [blame] | 1330 | func (m *SetLogLevelResponse) GetReasonDetail() string { |
| 1331 | if m != nil { |
| 1332 | return m.ReasonDetail |
| 1333 | } |
| 1334 | return "" |
| 1335 | } |
| 1336 | |
Andrea Campanella | b91e9a4 | 2020-10-09 14:31:43 +0200 | [diff] [blame] | 1337 | type GetLogLevelRequest struct { |
| 1338 | DeviceUuid *Uuid `protobuf:"bytes,1,opt,name=device_uuid,json=deviceUuid,proto3" json:"device_uuid,omitempty"` |
| 1339 | Entities []string `protobuf:"bytes,2,rep,name=entities,proto3" json:"entities,omitempty"` |
| 1340 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 1341 | XXX_unrecognized []byte `json:"-"` |
| 1342 | XXX_sizecache int32 `json:"-"` |
| 1343 | } |
| 1344 | |
| 1345 | func (m *GetLogLevelRequest) Reset() { *m = GetLogLevelRequest{} } |
| 1346 | func (m *GetLogLevelRequest) String() string { return proto.CompactTextString(m) } |
| 1347 | func (*GetLogLevelRequest) ProtoMessage() {} |
| 1348 | func (*GetLogLevelRequest) Descriptor() ([]byte, []int) { |
amit.ghosh | 5d97dba | 2020-11-12 16:45:27 +0100 | [diff] [blame] | 1349 | return fileDescriptor_eae902e73066286d, []int{18} |
Andrea Campanella | b91e9a4 | 2020-10-09 14:31:43 +0200 | [diff] [blame] | 1350 | } |
| 1351 | |
| 1352 | func (m *GetLogLevelRequest) XXX_Unmarshal(b []byte) error { |
| 1353 | return xxx_messageInfo_GetLogLevelRequest.Unmarshal(m, b) |
| 1354 | } |
| 1355 | func (m *GetLogLevelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 1356 | return xxx_messageInfo_GetLogLevelRequest.Marshal(b, m, deterministic) |
| 1357 | } |
| 1358 | func (m *GetLogLevelRequest) XXX_Merge(src proto.Message) { |
| 1359 | xxx_messageInfo_GetLogLevelRequest.Merge(m, src) |
| 1360 | } |
| 1361 | func (m *GetLogLevelRequest) XXX_Size() int { |
| 1362 | return xxx_messageInfo_GetLogLevelRequest.Size(m) |
| 1363 | } |
| 1364 | func (m *GetLogLevelRequest) XXX_DiscardUnknown() { |
| 1365 | xxx_messageInfo_GetLogLevelRequest.DiscardUnknown(m) |
| 1366 | } |
| 1367 | |
| 1368 | var xxx_messageInfo_GetLogLevelRequest proto.InternalMessageInfo |
| 1369 | |
| 1370 | func (m *GetLogLevelRequest) GetDeviceUuid() *Uuid { |
| 1371 | if m != nil { |
| 1372 | return m.DeviceUuid |
| 1373 | } |
| 1374 | return nil |
| 1375 | } |
| 1376 | |
| 1377 | func (m *GetLogLevelRequest) GetEntities() []string { |
| 1378 | if m != nil { |
| 1379 | return m.Entities |
| 1380 | } |
| 1381 | return nil |
| 1382 | } |
| 1383 | |
| 1384 | type GetLogLevelResponse struct { |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 1385 | DeviceUuid *Uuid `protobuf:"bytes,1,opt,name=device_uuid,json=deviceUuid,proto3" json:"device_uuid,omitempty"` |
| 1386 | LogLevels []*EntitiesLogLevel `protobuf:"bytes,2,rep,name=logLevels,proto3" json:"logLevels,omitempty"` |
| 1387 | Status Status `protobuf:"varint,3,opt,name=status,proto3,enum=dmi.Status" json:"status,omitempty"` |
| 1388 | Reason GetLogLevelResponse_Reason `protobuf:"varint,4,opt,name=reason,proto3,enum=dmi.GetLogLevelResponse_Reason" json:"reason,omitempty"` |
amit.ghosh | 8ab1e6e | 2021-02-23 07:40:17 +0100 | [diff] [blame] | 1389 | ReasonDetail string `protobuf:"bytes,5,opt,name=reason_detail,json=reasonDetail,proto3" json:"reason_detail,omitempty"` |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 1390 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 1391 | XXX_unrecognized []byte `json:"-"` |
| 1392 | XXX_sizecache int32 `json:"-"` |
Andrea Campanella | b91e9a4 | 2020-10-09 14:31:43 +0200 | [diff] [blame] | 1393 | } |
| 1394 | |
| 1395 | func (m *GetLogLevelResponse) Reset() { *m = GetLogLevelResponse{} } |
| 1396 | func (m *GetLogLevelResponse) String() string { return proto.CompactTextString(m) } |
| 1397 | func (*GetLogLevelResponse) ProtoMessage() {} |
| 1398 | func (*GetLogLevelResponse) Descriptor() ([]byte, []int) { |
amit.ghosh | 5d97dba | 2020-11-12 16:45:27 +0100 | [diff] [blame] | 1399 | return fileDescriptor_eae902e73066286d, []int{19} |
Andrea Campanella | b91e9a4 | 2020-10-09 14:31:43 +0200 | [diff] [blame] | 1400 | } |
| 1401 | |
| 1402 | func (m *GetLogLevelResponse) XXX_Unmarshal(b []byte) error { |
| 1403 | return xxx_messageInfo_GetLogLevelResponse.Unmarshal(m, b) |
| 1404 | } |
| 1405 | func (m *GetLogLevelResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 1406 | return xxx_messageInfo_GetLogLevelResponse.Marshal(b, m, deterministic) |
| 1407 | } |
| 1408 | func (m *GetLogLevelResponse) XXX_Merge(src proto.Message) { |
| 1409 | xxx_messageInfo_GetLogLevelResponse.Merge(m, src) |
| 1410 | } |
| 1411 | func (m *GetLogLevelResponse) XXX_Size() int { |
| 1412 | return xxx_messageInfo_GetLogLevelResponse.Size(m) |
| 1413 | } |
| 1414 | func (m *GetLogLevelResponse) XXX_DiscardUnknown() { |
| 1415 | xxx_messageInfo_GetLogLevelResponse.DiscardUnknown(m) |
| 1416 | } |
| 1417 | |
| 1418 | var xxx_messageInfo_GetLogLevelResponse proto.InternalMessageInfo |
| 1419 | |
| 1420 | func (m *GetLogLevelResponse) GetDeviceUuid() *Uuid { |
| 1421 | if m != nil { |
| 1422 | return m.DeviceUuid |
| 1423 | } |
| 1424 | return nil |
| 1425 | } |
| 1426 | |
| 1427 | func (m *GetLogLevelResponse) GetLogLevels() []*EntitiesLogLevel { |
| 1428 | if m != nil { |
| 1429 | return m.LogLevels |
| 1430 | } |
| 1431 | return nil |
| 1432 | } |
| 1433 | |
| 1434 | func (m *GetLogLevelResponse) GetStatus() Status { |
| 1435 | if m != nil { |
| 1436 | return m.Status |
| 1437 | } |
| 1438 | return Status_UNDEFINED_STATUS |
| 1439 | } |
| 1440 | |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 1441 | func (m *GetLogLevelResponse) GetReason() GetLogLevelResponse_Reason { |
Andrea Campanella | b91e9a4 | 2020-10-09 14:31:43 +0200 | [diff] [blame] | 1442 | if m != nil { |
| 1443 | return m.Reason |
| 1444 | } |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 1445 | return GetLogLevelResponse_UNDEFINED_REASON |
Andrea Campanella | b91e9a4 | 2020-10-09 14:31:43 +0200 | [diff] [blame] | 1446 | } |
| 1447 | |
amit.ghosh | 8ab1e6e | 2021-02-23 07:40:17 +0100 | [diff] [blame] | 1448 | func (m *GetLogLevelResponse) GetReasonDetail() string { |
| 1449 | if m != nil { |
| 1450 | return m.ReasonDetail |
| 1451 | } |
| 1452 | return "" |
| 1453 | } |
| 1454 | |
Andrea Campanella | b91e9a4 | 2020-10-09 14:31:43 +0200 | [diff] [blame] | 1455 | type GetLoggableEntitiesRequest struct { |
| 1456 | DeviceUuid *Uuid `protobuf:"bytes,1,opt,name=device_uuid,json=deviceUuid,proto3" json:"device_uuid,omitempty"` |
| 1457 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 1458 | XXX_unrecognized []byte `json:"-"` |
| 1459 | XXX_sizecache int32 `json:"-"` |
| 1460 | } |
| 1461 | |
| 1462 | func (m *GetLoggableEntitiesRequest) Reset() { *m = GetLoggableEntitiesRequest{} } |
| 1463 | func (m *GetLoggableEntitiesRequest) String() string { return proto.CompactTextString(m) } |
| 1464 | func (*GetLoggableEntitiesRequest) ProtoMessage() {} |
| 1465 | func (*GetLoggableEntitiesRequest) Descriptor() ([]byte, []int) { |
amit.ghosh | 5d97dba | 2020-11-12 16:45:27 +0100 | [diff] [blame] | 1466 | return fileDescriptor_eae902e73066286d, []int{20} |
Andrea Campanella | b91e9a4 | 2020-10-09 14:31:43 +0200 | [diff] [blame] | 1467 | } |
| 1468 | |
| 1469 | func (m *GetLoggableEntitiesRequest) XXX_Unmarshal(b []byte) error { |
| 1470 | return xxx_messageInfo_GetLoggableEntitiesRequest.Unmarshal(m, b) |
| 1471 | } |
| 1472 | func (m *GetLoggableEntitiesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 1473 | return xxx_messageInfo_GetLoggableEntitiesRequest.Marshal(b, m, deterministic) |
| 1474 | } |
| 1475 | func (m *GetLoggableEntitiesRequest) XXX_Merge(src proto.Message) { |
| 1476 | xxx_messageInfo_GetLoggableEntitiesRequest.Merge(m, src) |
| 1477 | } |
| 1478 | func (m *GetLoggableEntitiesRequest) XXX_Size() int { |
| 1479 | return xxx_messageInfo_GetLoggableEntitiesRequest.Size(m) |
| 1480 | } |
| 1481 | func (m *GetLoggableEntitiesRequest) XXX_DiscardUnknown() { |
| 1482 | xxx_messageInfo_GetLoggableEntitiesRequest.DiscardUnknown(m) |
| 1483 | } |
| 1484 | |
| 1485 | var xxx_messageInfo_GetLoggableEntitiesRequest proto.InternalMessageInfo |
| 1486 | |
| 1487 | func (m *GetLoggableEntitiesRequest) GetDeviceUuid() *Uuid { |
| 1488 | if m != nil { |
| 1489 | return m.DeviceUuid |
| 1490 | } |
| 1491 | return nil |
| 1492 | } |
| 1493 | |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 1494 | func init() { |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 1495 | proto.RegisterEnum("dmi.PhysicalInventoryResponse_Reason", PhysicalInventoryResponse_Reason_name, PhysicalInventoryResponse_Reason_value) |
| 1496 | proto.RegisterEnum("dmi.HWComponentInfoGetResponse_Reason", HWComponentInfoGetResponse_Reason_name, HWComponentInfoGetResponse_Reason_value) |
| 1497 | proto.RegisterEnum("dmi.HWComponentInfoSetResponse_Reason", HWComponentInfoSetResponse_Reason_name, HWComponentInfoSetResponse_Reason_value) |
| 1498 | proto.RegisterEnum("dmi.StartManagingDeviceResponse_Reason", StartManagingDeviceResponse_Reason_name, StartManagingDeviceResponse_Reason_value) |
| 1499 | proto.RegisterEnum("dmi.StopManagingDeviceResponse_Reason", StopManagingDeviceResponse_Reason_name, StopManagingDeviceResponse_Reason_value) |
| 1500 | proto.RegisterEnum("dmi.SetRemoteEndpointResponse_Reason", SetRemoteEndpointResponse_Reason_name, SetRemoteEndpointResponse_Reason_value) |
| 1501 | proto.RegisterEnum("dmi.GetLoggingEndpointResponse_Reason", GetLoggingEndpointResponse_Reason_name, GetLoggingEndpointResponse_Reason_value) |
| 1502 | proto.RegisterEnum("dmi.GetMsgBusEndpointResponse_Reason", GetMsgBusEndpointResponse_Reason_name, GetMsgBusEndpointResponse_Reason_value) |
| 1503 | proto.RegisterEnum("dmi.SetLogLevelResponse_Reason", SetLogLevelResponse_Reason_name, SetLogLevelResponse_Reason_value) |
| 1504 | proto.RegisterEnum("dmi.GetLogLevelResponse_Reason", GetLogLevelResponse_Reason_name, GetLogLevelResponse_Reason_value) |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 1505 | proto.RegisterType((*PhysicalInventoryRequest)(nil), "dmi.PhysicalInventoryRequest") |
| 1506 | proto.RegisterType((*PhysicalInventoryResponse)(nil), "dmi.PhysicalInventoryResponse") |
| 1507 | proto.RegisterType((*HWComponentInfoGetRequest)(nil), "dmi.HWComponentInfoGetRequest") |
aghosh | c301dcd | 2020-09-03 16:55:34 +0100 | [diff] [blame] | 1508 | proto.RegisterType((*HWComponentInfoGetResponse)(nil), "dmi.HWComponentInfoGetResponse") |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 1509 | proto.RegisterType((*HWComponentInfoSetRequest)(nil), "dmi.HWComponentInfoSetRequest") |
| 1510 | proto.RegisterType((*HWComponentInfoSetResponse)(nil), "dmi.HWComponentInfoSetResponse") |
| 1511 | proto.RegisterType((*StartManagingDeviceResponse)(nil), "dmi.StartManagingDeviceResponse") |
Amit Ghosh | 366228e | 2020-07-06 13:46:42 +0100 | [diff] [blame] | 1512 | proto.RegisterType((*StopManagingDeviceRequest)(nil), "dmi.StopManagingDeviceRequest") |
| 1513 | proto.RegisterType((*StopManagingDeviceResponse)(nil), "dmi.StopManagingDeviceResponse") |
Andrea Campanella | cb990bc | 2020-09-22 12:50:56 +0200 | [diff] [blame] | 1514 | proto.RegisterType((*ManagedDevicesResponse)(nil), "dmi.ManagedDevicesResponse") |
amit.ghosh | 188a84f | 2020-09-27 20:59:25 +0200 | [diff] [blame] | 1515 | proto.RegisterType((*SetLoggingEndpointRequest)(nil), "dmi.SetLoggingEndpointRequest") |
| 1516 | proto.RegisterType((*SetRemoteEndpointResponse)(nil), "dmi.SetRemoteEndpointResponse") |
| 1517 | proto.RegisterType((*GetLoggingEndpointResponse)(nil), "dmi.GetLoggingEndpointResponse") |
| 1518 | proto.RegisterType((*SetMsgBusEndpointRequest)(nil), "dmi.SetMsgBusEndpointRequest") |
| 1519 | proto.RegisterType((*GetMsgBusEndpointResponse)(nil), "dmi.GetMsgBusEndpointResponse") |
Andrea Campanella | b91e9a4 | 2020-10-09 14:31:43 +0200 | [diff] [blame] | 1520 | proto.RegisterType((*EntitiesLogLevel)(nil), "dmi.EntitiesLogLevel") |
| 1521 | proto.RegisterType((*SetLogLevelRequest)(nil), "dmi.SetLogLevelRequest") |
| 1522 | proto.RegisterType((*SetLogLevelResponse)(nil), "dmi.SetLogLevelResponse") |
Andrea Campanella | b91e9a4 | 2020-10-09 14:31:43 +0200 | [diff] [blame] | 1523 | proto.RegisterType((*GetLogLevelRequest)(nil), "dmi.GetLogLevelRequest") |
| 1524 | proto.RegisterType((*GetLogLevelResponse)(nil), "dmi.GetLogLevelResponse") |
| 1525 | proto.RegisterType((*GetLoggableEntitiesRequest)(nil), "dmi.GetLoggableEntitiesRequest") |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 1526 | } |
| 1527 | |
| 1528 | func init() { proto.RegisterFile("dmi/hw_management_service.proto", fileDescriptor_eae902e73066286d) } |
| 1529 | |
| 1530 | var fileDescriptor_eae902e73066286d = []byte{ |
amit.ghosh | 8ab1e6e | 2021-02-23 07:40:17 +0100 | [diff] [blame] | 1531 | // 1380 bytes of a gzipped FileDescriptorProto |
| 1532 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x58, 0xdd, 0x72, 0xdb, 0x44, |
| 1533 | 0x14, 0x46, 0x52, 0x92, 0xd6, 0x27, 0x6d, 0xea, 0x6c, 0xdb, 0xe0, 0xa8, 0xd3, 0x24, 0xa8, 0x53, |
| 1534 | 0xda, 0x02, 0xb5, 0x3b, 0xee, 0x05, 0xc3, 0x30, 0xfc, 0x38, 0xb1, 0xaa, 0x98, 0xda, 0x92, 0x67, |
| 1535 | 0xe5, 0x34, 0x53, 0x86, 0x41, 0xa3, 0x58, 0x1b, 0x47, 0x33, 0x96, 0x64, 0x2c, 0xd9, 0x9d, 0x3c, |
| 1536 | 0x00, 0x17, 0x3c, 0x02, 0x17, 0xcc, 0xf0, 0x06, 0x0c, 0x5c, 0x32, 0xbc, 0x01, 0xb7, 0x5c, 0x31, |
| 1537 | 0xdc, 0xf0, 0x08, 0xbc, 0x01, 0xe3, 0x5d, 0xc9, 0x3f, 0xb2, 0x64, 0x3b, 0x4e, 0x19, 0x7a, 0x67, |
| 1538 | 0xef, 0x7e, 0xfb, 0xe9, 0xec, 0xf9, 0xbe, 0x3d, 0x3a, 0x5a, 0xd8, 0xb5, 0x1c, 0xbb, 0x70, 0xf6, |
| 1539 | 0xca, 0x70, 0x4c, 0xd7, 0x6c, 0x11, 0x87, 0xb8, 0x81, 0xe1, 0x93, 0x6e, 0xdf, 0x6e, 0x92, 0x7c, |
| 1540 | 0xa7, 0xeb, 0x05, 0x1e, 0x12, 0x2c, 0xc7, 0x16, 0x37, 0x07, 0xa8, 0xa6, 0xe7, 0x38, 0x9e, 0xeb, |
| 1541 | 0xb3, 0x71, 0xf1, 0x1a, 0x5b, 0x18, 0xfe, 0xbb, 0xd3, 0xf2, 0xbc, 0x56, 0x9b, 0x14, 0xe8, 0xbf, |
| 1542 | 0x93, 0xde, 0x69, 0x81, 0x38, 0x9d, 0xe0, 0x9c, 0x4d, 0x4a, 0xcf, 0x20, 0x57, 0x3f, 0x3b, 0xf7, |
| 1543 | 0xed, 0xa6, 0xd9, 0xae, 0xb8, 0x7d, 0xe2, 0x06, 0x5e, 0xf7, 0x1c, 0x93, 0x6f, 0x7a, 0xc4, 0x0f, |
| 1544 | 0xd0, 0x7b, 0xb0, 0x6e, 0x91, 0xc1, 0xe3, 0x8c, 0x5e, 0xcf, 0xb6, 0x72, 0xdc, 0x1e, 0xf7, 0x70, |
| 1545 | 0xbd, 0x98, 0xc9, 0x5b, 0x8e, 0x9d, 0x3f, 0xea, 0xd9, 0x16, 0x06, 0x36, 0x3b, 0xf8, 0x2d, 0xfd, |
| 1546 | 0xcc, 0xc3, 0x76, 0x02, 0x91, 0xdf, 0xf1, 0x5c, 0x9f, 0xa0, 0x7b, 0xb0, 0xe6, 0x07, 0x66, 0xd0, |
| 1547 | 0xf3, 0x29, 0xc9, 0x46, 0x71, 0x9d, 0x92, 0xe8, 0x74, 0x08, 0x87, 0x53, 0xe8, 0x13, 0x58, 0xeb, |
| 1548 | 0x12, 0xd3, 0xf7, 0xdc, 0x1c, 0x4f, 0x41, 0xf7, 0x29, 0x28, 0x95, 0x34, 0x8f, 0x29, 0x18, 0x87, |
| 1549 | 0x8b, 0xd0, 0xfb, 0x90, 0xb1, 0x23, 0x4c, 0x4e, 0xa0, 0xb1, 0x5e, 0xa7, 0x0c, 0x87, 0x66, 0xd7, |
| 1550 | 0x7a, 0x65, 0x76, 0x09, 0x1e, 0xcd, 0xa3, 0x7b, 0x70, 0x9d, 0x2d, 0x33, 0x2c, 0x12, 0x98, 0x76, |
| 1551 | 0x3b, 0xb7, 0xb2, 0xc7, 0x3d, 0xcc, 0xe0, 0x6b, 0x6c, 0xb0, 0x4c, 0xc7, 0xa4, 0xaf, 0x61, 0x8d, |
| 1552 | 0x3d, 0x03, 0xdd, 0x82, 0xec, 0x91, 0x5a, 0x96, 0x9f, 0x55, 0x54, 0xb9, 0x6c, 0x60, 0xb9, 0xa4, |
| 1553 | 0x6b, 0x6a, 0xf6, 0x2d, 0x84, 0x60, 0xe3, 0x48, 0x7d, 0xae, 0x6a, 0xc7, 0xaa, 0x51, 0x96, 0x5f, |
| 1554 | 0x54, 0x0e, 0xe4, 0x2c, 0x37, 0x18, 0xab, 0xa8, 0x0d, 0x19, 0xab, 0xa5, 0xaa, 0x21, 0x63, 0xac, |
| 1555 | 0xe1, 0x2c, 0x8f, 0xb6, 0x00, 0xb1, 0x79, 0xe3, 0x48, 0xc5, 0x72, 0xe9, 0xe0, 0xb0, 0xb4, 0x5f, |
| 1556 | 0x95, 0xb3, 0x82, 0xf4, 0x23, 0x07, 0xdb, 0x87, 0xc7, 0x07, 0x9e, 0xd3, 0xf1, 0x5c, 0xe2, 0x06, |
| 1557 | 0x15, 0xf7, 0xd4, 0x53, 0x48, 0xb0, 0x44, 0xf6, 0xd1, 0x13, 0xd8, 0x68, 0x46, 0x34, 0x0c, 0xce, |
| 1558 | 0xc7, 0xe1, 0xd7, 0x87, 0x00, 0xba, 0xe2, 0xfe, 0xf8, 0x0a, 0xd7, 0x74, 0x08, 0x4d, 0x59, 0x66, |
| 1559 | 0x0c, 0xa6, 0x9a, 0x0e, 0x91, 0x7e, 0xe7, 0x41, 0x4c, 0x0a, 0xf1, 0x22, 0xba, 0x7e, 0x1a, 0xd3, |
| 1560 | 0xf5, 0x5d, 0xa6, 0x4a, 0x2a, 0x6b, 0x5c, 0xd8, 0x0f, 0x20, 0x33, 0x0c, 0x2a, 0x14, 0x76, 0x83, |
| 1561 | 0x52, 0x0c, 0x09, 0xf0, 0x08, 0xb0, 0x98, 0xb2, 0xbd, 0x25, 0x94, 0xbd, 0x0d, 0x9b, 0xd1, 0xd8, |
| 1562 | 0x81, 0x56, 0xab, 0x6b, 0xaa, 0xac, 0x36, 0xb2, 0x7c, 0x82, 0xe0, 0x42, 0x8a, 0xe0, 0x2b, 0xd2, |
| 1563 | 0x1f, 0xd3, 0x82, 0xeb, 0x6f, 0x96, 0xe0, 0xa8, 0x08, 0x57, 0x9a, 0x67, 0xa6, 0xdb, 0x22, 0x3e, |
| 1564 | 0x4d, 0xdc, 0x7a, 0x31, 0x47, 0x19, 0x6b, 0x9e, 0x65, 0x9f, 0xda, 0xe6, 0x49, 0x9b, 0x8c, 0x92, |
| 1565 | 0x1e, 0x01, 0xa5, 0x5f, 0xa6, 0x4d, 0xa2, 0xff, 0x27, 0x26, 0xd1, 0xd3, 0x4d, 0x32, 0x25, 0xbb, |
| 1566 | 0x90, 0x20, 0xfb, 0x77, 0xdc, 0x6b, 0xd6, 0xfd, 0x45, 0xa9, 0x5a, 0x29, 0x1b, 0xf5, 0x12, 0x2e, |
| 1567 | 0xd5, 0xf4, 0xac, 0x90, 0xe0, 0x85, 0x95, 0x14, 0x2f, 0xac, 0x4a, 0x7f, 0xf1, 0x70, 0x47, 0x0f, |
| 1568 | 0xcc, 0x6e, 0x50, 0x1b, 0x54, 0x77, 0xdb, 0x6d, 0x95, 0xa9, 0xba, 0x17, 0xcb, 0xda, 0x67, 0xb1, |
| 1569 | 0xac, 0x3d, 0x88, 0x40, 0x69, 0xb4, 0xf1, 0xb4, 0xc5, 0x3c, 0x27, 0xcc, 0xf2, 0xdc, 0x42, 0x27, |
| 1570 | 0xeb, 0xdb, 0x79, 0x29, 0x16, 0x61, 0x2b, 0xcc, 0x47, 0xa9, 0x8a, 0xe5, 0x52, 0xf9, 0xa5, 0x51, |
| 1571 | 0x2b, 0xa9, 0x25, 0x45, 0x2e, 0x67, 0x39, 0xf4, 0x0e, 0xdc, 0xd5, 0xea, 0x32, 0x2e, 0x35, 0x2a, |
| 1572 | 0x9a, 0x3a, 0x9c, 0xae, 0xa8, 0x46, 0x1d, 0x6b, 0x0a, 0x96, 0x75, 0x7d, 0xf1, 0xb4, 0x4b, 0x05, |
| 1573 | 0xd8, 0xd6, 0x03, 0xaf, 0x13, 0xcf, 0x02, 0x3b, 0x69, 0x08, 0x56, 0xe8, 0x09, 0xe0, 0xe8, 0x06, |
| 1574 | 0xe8, 0x6f, 0xe9, 0x4f, 0x0e, 0xc4, 0xa4, 0x15, 0x97, 0x37, 0x71, 0x3a, 0xeb, 0x52, 0x26, 0x2e, |
| 1575 | 0x5e, 0xdc, 0xc3, 0x52, 0x15, 0xb6, 0x68, 0x04, 0xc4, 0x62, 0x01, 0xf8, 0xc3, 0x7d, 0x15, 0xe1, |
| 1576 | 0x0a, 0x93, 0x78, 0xb0, 0x31, 0x61, 0xf6, 0x79, 0x0f, 0x81, 0xd2, 0x0f, 0x1c, 0x6c, 0xeb, 0x24, |
| 1577 | 0xa8, 0x7a, 0xad, 0xc1, 0x96, 0x64, 0xd7, 0xea, 0x78, 0xb6, 0xbb, 0x54, 0x19, 0x7b, 0x04, 0xd9, |
| 1578 | 0x36, 0x63, 0x31, 0x48, 0x48, 0x43, 0x53, 0x97, 0xc1, 0x37, 0xda, 0x93, 0xec, 0xe3, 0x50, 0xda, |
| 1579 | 0xb9, 0x34, 0xbd, 0x28, 0x3d, 0x11, 0xb4, 0x1e, 0x0e, 0x4b, 0x7f, 0xf3, 0x34, 0x3e, 0x4c, 0x1c, |
| 1580 | 0x2f, 0x20, 0xa3, 0xf0, 0x2e, 0xdf, 0x8b, 0xa4, 0x92, 0x2e, 0x25, 0xe4, 0xaf, 0xdc, 0x6b, 0xea, |
| 1581 | 0x2f, 0x44, 0xd8, 0xaa, 0x6a, 0x8a, 0x52, 0x51, 0x15, 0x43, 0x56, 0xcb, 0x75, 0xad, 0xa2, 0x36, |
| 1582 | 0x86, 0xaf, 0xa2, 0x7b, 0xb0, 0x3b, 0x35, 0x57, 0xc7, 0x5a, 0x43, 0x3b, 0xd0, 0x46, 0x35, 0x6a, |
| 1583 | 0x1b, 0x6e, 0xd7, 0x74, 0x65, 0xff, 0x48, 0x8f, 0xaf, 0x5f, 0x4d, 0x29, 0x5f, 0x6b, 0x83, 0xf2, |
| 1584 | 0x25, 0x2a, 0x09, 0x1e, 0xb8, 0xfc, 0x71, 0x49, 0x67, 0x8d, 0x67, 0x39, 0xc9, 0x3d, 0xc2, 0xe2, |
| 1585 | 0xee, 0x59, 0x49, 0x74, 0xcf, 0xb4, 0x76, 0xab, 0xff, 0x43, 0x6b, 0x78, 0x00, 0x39, 0x9d, 0x04, |
| 1586 | 0x35, 0xbf, 0xb5, 0xdf, 0xf3, 0xe3, 0x07, 0xec, 0x01, 0xdc, 0x70, 0xfc, 0xd6, 0x49, 0xcf, 0x1f, |
| 1587 | 0xed, 0x9a, 0x15, 0xb2, 0x0d, 0x36, 0x1c, 0xe1, 0xa5, 0xef, 0x79, 0xd8, 0x56, 0xa6, 0x59, 0x2e, |
| 1588 | 0x7f, 0x0e, 0x52, 0x49, 0xe3, 0x0a, 0x25, 0x84, 0x2a, 0x24, 0x85, 0xba, 0xd8, 0xbb, 0xe5, 0x8b, |
| 1589 | 0xf9, 0x49, 0x8f, 0x25, 0x98, 0x4b, 0x49, 0x30, 0x2f, 0xbd, 0x84, 0xac, 0xec, 0x06, 0x76, 0x60, |
| 1590 | 0x13, 0xbf, 0xea, 0xb5, 0xaa, 0xa4, 0x4f, 0xda, 0xe8, 0x11, 0x5c, 0x6d, 0x87, 0xbf, 0xc3, 0x9c, |
| 1591 | 0xb0, 0x0f, 0x88, 0x08, 0x80, 0x87, 0xd3, 0x48, 0x84, 0xab, 0x24, 0x5c, 0x9e, 0xe3, 0xf7, 0x84, |
| 1592 | 0x87, 0x19, 0x3c, 0xfc, 0x2f, 0xf5, 0x00, 0xb1, 0xea, 0xc8, 0x16, 0x2d, 0x51, 0x16, 0x9f, 0x42, |
| 1593 | 0xa6, 0x3d, 0xf8, 0x64, 0xeb, 0x93, 0x36, 0xa3, 0x5f, 0x2f, 0xde, 0xa6, 0xc8, 0x78, 0xc8, 0x78, |
| 1594 | 0x84, 0x93, 0x7e, 0xe3, 0xe1, 0xe6, 0xc4, 0x73, 0x43, 0x9d, 0x2f, 0xf2, 0xe0, 0x91, 0x27, 0xf8, |
| 1595 | 0x74, 0x4f, 0x7c, 0x38, 0xf4, 0x84, 0x40, 0x41, 0xbb, 0x51, 0x6d, 0x8c, 0x3f, 0x7a, 0x6e, 0x55, |
| 1596 | 0x4c, 0x12, 0xb9, 0xff, 0xfa, 0x4e, 0x56, 0x84, 0xab, 0x6a, 0x83, 0xe2, 0xd7, 0xa8, 0x34, 0x5e, |
| 1597 | 0xce, 0xe8, 0xcd, 0xbf, 0x02, 0xa4, 0x5c, 0x4e, 0xb5, 0x59, 0x9e, 0xf8, 0x87, 0x87, 0x9b, 0xca, |
| 1598 | 0x25, 0xc5, 0x61, 0xae, 0xa8, 0x2e, 0xe8, 0x0a, 0x86, 0x1b, 0x53, 0x54, 0x58, 0x44, 0xd1, 0x95, |
| 1599 | 0x31, 0x45, 0x95, 0x25, 0x14, 0x5d, 0x7d, 0x83, 0x14, 0x3d, 0x1c, 0xbe, 0xa1, 0x06, 0x7d, 0x4c, |
| 1600 | 0x94, 0xa4, 0x25, 0x94, 0x2d, 0xfe, 0x74, 0x15, 0xb6, 0x55, 0x33, 0xb0, 0xfb, 0xe4, 0xf0, 0xb8, |
| 1601 | 0x36, 0xbc, 0x8c, 0xd1, 0xd9, 0x5d, 0x0c, 0xd2, 0xe1, 0x66, 0x42, 0xc7, 0x8d, 0x52, 0x1b, 0x29, |
| 1602 | 0x71, 0x6f, 0x5e, 0x97, 0xfe, 0x84, 0x43, 0x47, 0x80, 0xa6, 0xfb, 0x46, 0xb4, 0x93, 0xda, 0x50, |
| 1603 | 0xd2, 0x4d, 0x89, 0xbb, 0x73, 0x1a, 0x4e, 0x74, 0x08, 0x9b, 0x83, 0xe2, 0x3d, 0xd1, 0x0b, 0xa2, |
| 1604 | 0xad, 0x3c, 0xbb, 0x21, 0xca, 0x47, 0x37, 0x44, 0x79, 0xd9, 0xe9, 0x04, 0xe7, 0xe2, 0x1d, 0xb6, |
| 1605 | 0x83, 0xe4, 0xc6, 0xf1, 0x18, 0x6e, 0x29, 0x24, 0x98, 0xba, 0x9d, 0x41, 0x77, 0xd3, 0x6e, 0x6d, |
| 1606 | 0x58, 0x84, 0x3b, 0xb3, 0x2f, 0x75, 0x9e, 0x70, 0xe8, 0x98, 0x1e, 0xc4, 0xd8, 0x97, 0x5f, 0xb8, |
| 1607 | 0xf3, 0xd4, 0xdb, 0x92, 0x70, 0xe7, 0xe9, 0x97, 0x0a, 0x61, 0x4a, 0x17, 0x24, 0xd6, 0xe7, 0x10, |
| 1608 | 0x8f, 0x7f, 0xde, 0x36, 0xa2, 0x72, 0x3f, 0xd1, 0x70, 0xec, 0x8c, 0x15, 0xc5, 0x84, 0x2e, 0x59, |
| 1609 | 0xdc, 0x99, 0xdd, 0x50, 0xa2, 0x67, 0x51, 0x39, 0x9a, 0x60, 0xbd, 0x31, 0x71, 0xa1, 0x55, 0x29, |
| 1610 | 0x8b, 0xbb, 0x73, 0x5a, 0x26, 0x84, 0x61, 0x73, 0xaa, 0x91, 0x08, 0x35, 0x4a, 0x6b, 0x30, 0xe6, |
| 1611 | 0xc6, 0xf6, 0x9c, 0x99, 0x68, 0x92, 0x33, 0xcd, 0x44, 0x3b, 0xb3, 0x3b, 0x06, 0x54, 0x8f, 0x0a, |
| 1612 | 0xe3, 0xc4, 0x29, 0x45, 0x13, 0x1b, 0x4b, 0x38, 0xbf, 0x62, 0x2e, 0xad, 0x46, 0xa1, 0xcf, 0x61, |
| 1613 | 0x7d, 0xec, 0x65, 0x84, 0xde, 0x9e, 0x7e, 0x3d, 0x8d, 0x33, 0xe8, 0xc9, 0x0c, 0xca, 0x14, 0x83, |
| 1614 | 0x92, 0xc6, 0x90, 0x10, 0xc3, 0xfe, 0xc7, 0x5f, 0x7e, 0xd4, 0xb2, 0x83, 0xb3, 0xde, 0x49, 0xbe, |
| 1615 | 0xe9, 0x39, 0x05, 0xaf, 0x43, 0xdc, 0xa6, 0xd7, 0xb5, 0x0a, 0xac, 0xa6, 0x3c, 0x1e, 0x5d, 0xe8, |
| 1616 | 0x3e, 0xb6, 0xdd, 0x80, 0x74, 0x4f, 0xcd, 0x26, 0x29, 0xf4, 0x9f, 0x16, 0x5a, 0x5e, 0xc1, 0x72, |
| 1617 | 0xec, 0x93, 0x35, 0x9a, 0xc2, 0xa7, 0xff, 0x06, 0x00, 0x00, 0xff, 0xff, 0xbf, 0x86, 0x1b, 0xa1, |
| 1618 | 0x00, 0x16, 0x00, 0x00, |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 1619 | } |
| 1620 | |
| 1621 | // Reference imports to suppress errors if they are not otherwise used. |
| 1622 | var _ context.Context |
| 1623 | var _ grpc.ClientConn |
| 1624 | |
| 1625 | // This is a compile-time assertion to ensure that this generated file |
| 1626 | // is compatible with the grpc package it is being compiled against. |
| 1627 | const _ = grpc.SupportPackageIsVersion4 |
| 1628 | |
| 1629 | // NativeHWManagementServiceClient is the client API for NativeHWManagementService service. |
| 1630 | // |
| 1631 | // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| 1632 | type NativeHWManagementServiceClient interface { |
| 1633 | // Initializes context for a device and sets up required states |
Amit Ghosh | 704462f | 2020-06-24 16:44:56 +0100 | [diff] [blame] | 1634 | // In the call to StartManagingDevice, the fields of ModifiableComponent which are relevant |
| 1635 | // and their meanings in this context is mentioned below: |
| 1636 | // name = The unique name that needs to be assigned to this hardware; |
| 1637 | // class = COMPONENT_TYPE_UNDEFINED; |
| 1638 | // parent = nil; |
| 1639 | // alias = Optional; |
| 1640 | // asset_id = Optional; |
| 1641 | // uri = IP Address of the Hardware; |
| 1642 | StartManagingDevice(ctx context.Context, in *ModifiableComponent, opts ...grpc.CallOption) (NativeHWManagementService_StartManagingDeviceClient, error) |
Amit Ghosh | 366228e | 2020-07-06 13:46:42 +0100 | [diff] [blame] | 1643 | // Stop management of a device and clean up any context and caches for that device |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 1644 | // This rpc can be called at any time, even before the StartManagingDevice operation |
| 1645 | // has completed, and should be able to cleanup. |
Amit Ghosh | 366228e | 2020-07-06 13:46:42 +0100 | [diff] [blame] | 1646 | StopManagingDevice(ctx context.Context, in *StopManagingDeviceRequest, opts ...grpc.CallOption) (*StopManagingDeviceResponse, error) |
Andrea Campanella | cb990bc | 2020-09-22 12:50:56 +0200 | [diff] [blame] | 1647 | // Returns an object containing a list of devices managed by this entity |
| 1648 | GetManagedDevices(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ManagedDevicesResponse, error) |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 1649 | // Get the HW inventory details of the Device |
| 1650 | GetPhysicalInventory(ctx context.Context, in *PhysicalInventoryRequest, opts ...grpc.CallOption) (NativeHWManagementService_GetPhysicalInventoryClient, error) |
| 1651 | // Get the details of a particular HW component |
| 1652 | GetHWComponentInfo(ctx context.Context, in *HWComponentInfoGetRequest, opts ...grpc.CallOption) (NativeHWManagementService_GetHWComponentInfoClient, error) |
| 1653 | // Sets the permissible attributes of a HW component |
| 1654 | SetHWComponentInfo(ctx context.Context, in *HWComponentInfoSetRequest, opts ...grpc.CallOption) (*HWComponentInfoSetResponse, error) |
amit.ghosh | 188a84f | 2020-09-27 20:59:25 +0200 | [diff] [blame] | 1655 | // Sets the location to which logs need to be shipped |
| 1656 | SetLoggingEndpoint(ctx context.Context, in *SetLoggingEndpointRequest, opts ...grpc.CallOption) (*SetRemoteEndpointResponse, error) |
| 1657 | // Gets the configured location to which the logs are being shipped |
amit.ghosh | 5d97dba | 2020-11-12 16:45:27 +0100 | [diff] [blame] | 1658 | GetLoggingEndpoint(ctx context.Context, in *HardwareID, opts ...grpc.CallOption) (*GetLoggingEndpointResponse, error) |
amit.ghosh | 188a84f | 2020-09-27 20:59:25 +0200 | [diff] [blame] | 1659 | // Sets the location of the Message Bus to which events and metrics are shipped |
| 1660 | SetMsgBusEndpoint(ctx context.Context, in *SetMsgBusEndpointRequest, opts ...grpc.CallOption) (*SetRemoteEndpointResponse, error) |
| 1661 | // Gets the configured location to which the events and metrics are being shipped |
| 1662 | GetMsgBusEndpoint(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*GetMsgBusEndpointResponse, error) |
Andrea Campanella | b91e9a4 | 2020-10-09 14:31:43 +0200 | [diff] [blame] | 1663 | // Gets the entities of a device on which log can be configured. A few are expected, like OS, PON Management etc. |
| 1664 | // In general an entity is any item within an hardware system that can emit logs, e.g. service, process, subsystem, |
| 1665 | // interface, package etc. |
| 1666 | GetLoggableEntities(ctx context.Context, in *GetLoggableEntitiesRequest, opts ...grpc.CallOption) (*GetLogLevelResponse, error) |
amit.ghosh | 5d97dba | 2020-11-12 16:45:27 +0100 | [diff] [blame] | 1667 | // Sets the log level of the device, for each given entity to a certain level. |
Andrea Campanella | b91e9a4 | 2020-10-09 14:31:43 +0200 | [diff] [blame] | 1668 | // If only one EntitiesLogLevel is provided for the device and that request contains only a log level with |
| 1669 | // no entity in the list it's assumed that the caller wants to set that level for all the entities. |
| 1670 | SetLogLevel(ctx context.Context, in *SetLogLevelRequest, opts ...grpc.CallOption) (*SetLogLevelResponse, error) |
| 1671 | // Gets the configured log level for a certain entity on a certain device. |
| 1672 | // If no entity is specified in the request all the entities with their log level should be returned. |
| 1673 | GetLogLevel(ctx context.Context, in *GetLogLevelRequest, opts ...grpc.CallOption) (*GetLogLevelResponse, error) |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 1674 | } |
| 1675 | |
| 1676 | type nativeHWManagementServiceClient struct { |
| 1677 | cc *grpc.ClientConn |
| 1678 | } |
| 1679 | |
| 1680 | func NewNativeHWManagementServiceClient(cc *grpc.ClientConn) NativeHWManagementServiceClient { |
| 1681 | return &nativeHWManagementServiceClient{cc} |
| 1682 | } |
| 1683 | |
Amit Ghosh | 704462f | 2020-06-24 16:44:56 +0100 | [diff] [blame] | 1684 | func (c *nativeHWManagementServiceClient) StartManagingDevice(ctx context.Context, in *ModifiableComponent, opts ...grpc.CallOption) (NativeHWManagementService_StartManagingDeviceClient, error) { |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 1685 | stream, err := c.cc.NewStream(ctx, &_NativeHWManagementService_serviceDesc.Streams[0], "/dmi.NativeHWManagementService/StartManagingDevice", opts...) |
| 1686 | if err != nil { |
| 1687 | return nil, err |
| 1688 | } |
| 1689 | x := &nativeHWManagementServiceStartManagingDeviceClient{stream} |
| 1690 | if err := x.ClientStream.SendMsg(in); err != nil { |
| 1691 | return nil, err |
| 1692 | } |
| 1693 | if err := x.ClientStream.CloseSend(); err != nil { |
| 1694 | return nil, err |
| 1695 | } |
| 1696 | return x, nil |
| 1697 | } |
| 1698 | |
| 1699 | type NativeHWManagementService_StartManagingDeviceClient interface { |
| 1700 | Recv() (*StartManagingDeviceResponse, error) |
| 1701 | grpc.ClientStream |
| 1702 | } |
| 1703 | |
| 1704 | type nativeHWManagementServiceStartManagingDeviceClient struct { |
| 1705 | grpc.ClientStream |
| 1706 | } |
| 1707 | |
| 1708 | func (x *nativeHWManagementServiceStartManagingDeviceClient) Recv() (*StartManagingDeviceResponse, error) { |
| 1709 | m := new(StartManagingDeviceResponse) |
| 1710 | if err := x.ClientStream.RecvMsg(m); err != nil { |
| 1711 | return nil, err |
| 1712 | } |
| 1713 | return m, nil |
| 1714 | } |
| 1715 | |
Amit Ghosh | 366228e | 2020-07-06 13:46:42 +0100 | [diff] [blame] | 1716 | func (c *nativeHWManagementServiceClient) StopManagingDevice(ctx context.Context, in *StopManagingDeviceRequest, opts ...grpc.CallOption) (*StopManagingDeviceResponse, error) { |
| 1717 | out := new(StopManagingDeviceResponse) |
| 1718 | err := c.cc.Invoke(ctx, "/dmi.NativeHWManagementService/StopManagingDevice", in, out, opts...) |
| 1719 | if err != nil { |
| 1720 | return nil, err |
| 1721 | } |
| 1722 | return out, nil |
| 1723 | } |
| 1724 | |
Andrea Campanella | cb990bc | 2020-09-22 12:50:56 +0200 | [diff] [blame] | 1725 | func (c *nativeHWManagementServiceClient) GetManagedDevices(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ManagedDevicesResponse, error) { |
| 1726 | out := new(ManagedDevicesResponse) |
| 1727 | err := c.cc.Invoke(ctx, "/dmi.NativeHWManagementService/GetManagedDevices", in, out, opts...) |
| 1728 | if err != nil { |
| 1729 | return nil, err |
| 1730 | } |
| 1731 | return out, nil |
| 1732 | } |
| 1733 | |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 1734 | func (c *nativeHWManagementServiceClient) GetPhysicalInventory(ctx context.Context, in *PhysicalInventoryRequest, opts ...grpc.CallOption) (NativeHWManagementService_GetPhysicalInventoryClient, error) { |
| 1735 | stream, err := c.cc.NewStream(ctx, &_NativeHWManagementService_serviceDesc.Streams[1], "/dmi.NativeHWManagementService/GetPhysicalInventory", opts...) |
| 1736 | if err != nil { |
| 1737 | return nil, err |
| 1738 | } |
| 1739 | x := &nativeHWManagementServiceGetPhysicalInventoryClient{stream} |
| 1740 | if err := x.ClientStream.SendMsg(in); err != nil { |
| 1741 | return nil, err |
| 1742 | } |
| 1743 | if err := x.ClientStream.CloseSend(); err != nil { |
| 1744 | return nil, err |
| 1745 | } |
| 1746 | return x, nil |
| 1747 | } |
| 1748 | |
| 1749 | type NativeHWManagementService_GetPhysicalInventoryClient interface { |
| 1750 | Recv() (*PhysicalInventoryResponse, error) |
| 1751 | grpc.ClientStream |
| 1752 | } |
| 1753 | |
| 1754 | type nativeHWManagementServiceGetPhysicalInventoryClient struct { |
| 1755 | grpc.ClientStream |
| 1756 | } |
| 1757 | |
| 1758 | func (x *nativeHWManagementServiceGetPhysicalInventoryClient) Recv() (*PhysicalInventoryResponse, error) { |
| 1759 | m := new(PhysicalInventoryResponse) |
| 1760 | if err := x.ClientStream.RecvMsg(m); err != nil { |
| 1761 | return nil, err |
| 1762 | } |
| 1763 | return m, nil |
| 1764 | } |
| 1765 | |
| 1766 | func (c *nativeHWManagementServiceClient) GetHWComponentInfo(ctx context.Context, in *HWComponentInfoGetRequest, opts ...grpc.CallOption) (NativeHWManagementService_GetHWComponentInfoClient, error) { |
| 1767 | stream, err := c.cc.NewStream(ctx, &_NativeHWManagementService_serviceDesc.Streams[2], "/dmi.NativeHWManagementService/GetHWComponentInfo", opts...) |
| 1768 | if err != nil { |
| 1769 | return nil, err |
| 1770 | } |
| 1771 | x := &nativeHWManagementServiceGetHWComponentInfoClient{stream} |
| 1772 | if err := x.ClientStream.SendMsg(in); err != nil { |
| 1773 | return nil, err |
| 1774 | } |
| 1775 | if err := x.ClientStream.CloseSend(); err != nil { |
| 1776 | return nil, err |
| 1777 | } |
| 1778 | return x, nil |
| 1779 | } |
| 1780 | |
| 1781 | type NativeHWManagementService_GetHWComponentInfoClient interface { |
aghosh | c301dcd | 2020-09-03 16:55:34 +0100 | [diff] [blame] | 1782 | Recv() (*HWComponentInfoGetResponse, error) |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 1783 | grpc.ClientStream |
| 1784 | } |
| 1785 | |
| 1786 | type nativeHWManagementServiceGetHWComponentInfoClient struct { |
| 1787 | grpc.ClientStream |
| 1788 | } |
| 1789 | |
aghosh | c301dcd | 2020-09-03 16:55:34 +0100 | [diff] [blame] | 1790 | func (x *nativeHWManagementServiceGetHWComponentInfoClient) Recv() (*HWComponentInfoGetResponse, error) { |
| 1791 | m := new(HWComponentInfoGetResponse) |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 1792 | if err := x.ClientStream.RecvMsg(m); err != nil { |
| 1793 | return nil, err |
| 1794 | } |
| 1795 | return m, nil |
| 1796 | } |
| 1797 | |
| 1798 | func (c *nativeHWManagementServiceClient) SetHWComponentInfo(ctx context.Context, in *HWComponentInfoSetRequest, opts ...grpc.CallOption) (*HWComponentInfoSetResponse, error) { |
| 1799 | out := new(HWComponentInfoSetResponse) |
| 1800 | err := c.cc.Invoke(ctx, "/dmi.NativeHWManagementService/SetHWComponentInfo", in, out, opts...) |
| 1801 | if err != nil { |
| 1802 | return nil, err |
| 1803 | } |
| 1804 | return out, nil |
| 1805 | } |
| 1806 | |
amit.ghosh | 188a84f | 2020-09-27 20:59:25 +0200 | [diff] [blame] | 1807 | func (c *nativeHWManagementServiceClient) SetLoggingEndpoint(ctx context.Context, in *SetLoggingEndpointRequest, opts ...grpc.CallOption) (*SetRemoteEndpointResponse, error) { |
| 1808 | out := new(SetRemoteEndpointResponse) |
| 1809 | err := c.cc.Invoke(ctx, "/dmi.NativeHWManagementService/SetLoggingEndpoint", in, out, opts...) |
| 1810 | if err != nil { |
| 1811 | return nil, err |
| 1812 | } |
| 1813 | return out, nil |
| 1814 | } |
| 1815 | |
amit.ghosh | 5d97dba | 2020-11-12 16:45:27 +0100 | [diff] [blame] | 1816 | func (c *nativeHWManagementServiceClient) GetLoggingEndpoint(ctx context.Context, in *HardwareID, opts ...grpc.CallOption) (*GetLoggingEndpointResponse, error) { |
amit.ghosh | 188a84f | 2020-09-27 20:59:25 +0200 | [diff] [blame] | 1817 | out := new(GetLoggingEndpointResponse) |
| 1818 | err := c.cc.Invoke(ctx, "/dmi.NativeHWManagementService/GetLoggingEndpoint", in, out, opts...) |
| 1819 | if err != nil { |
| 1820 | return nil, err |
| 1821 | } |
| 1822 | return out, nil |
| 1823 | } |
| 1824 | |
| 1825 | func (c *nativeHWManagementServiceClient) SetMsgBusEndpoint(ctx context.Context, in *SetMsgBusEndpointRequest, opts ...grpc.CallOption) (*SetRemoteEndpointResponse, error) { |
| 1826 | out := new(SetRemoteEndpointResponse) |
| 1827 | err := c.cc.Invoke(ctx, "/dmi.NativeHWManagementService/SetMsgBusEndpoint", in, out, opts...) |
| 1828 | if err != nil { |
| 1829 | return nil, err |
| 1830 | } |
| 1831 | return out, nil |
| 1832 | } |
| 1833 | |
| 1834 | func (c *nativeHWManagementServiceClient) GetMsgBusEndpoint(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*GetMsgBusEndpointResponse, error) { |
| 1835 | out := new(GetMsgBusEndpointResponse) |
| 1836 | err := c.cc.Invoke(ctx, "/dmi.NativeHWManagementService/GetMsgBusEndpoint", in, out, opts...) |
| 1837 | if err != nil { |
| 1838 | return nil, err |
| 1839 | } |
| 1840 | return out, nil |
| 1841 | } |
| 1842 | |
Andrea Campanella | b91e9a4 | 2020-10-09 14:31:43 +0200 | [diff] [blame] | 1843 | func (c *nativeHWManagementServiceClient) GetLoggableEntities(ctx context.Context, in *GetLoggableEntitiesRequest, opts ...grpc.CallOption) (*GetLogLevelResponse, error) { |
| 1844 | out := new(GetLogLevelResponse) |
| 1845 | err := c.cc.Invoke(ctx, "/dmi.NativeHWManagementService/GetLoggableEntities", in, out, opts...) |
| 1846 | if err != nil { |
| 1847 | return nil, err |
| 1848 | } |
| 1849 | return out, nil |
| 1850 | } |
| 1851 | |
| 1852 | func (c *nativeHWManagementServiceClient) SetLogLevel(ctx context.Context, in *SetLogLevelRequest, opts ...grpc.CallOption) (*SetLogLevelResponse, error) { |
| 1853 | out := new(SetLogLevelResponse) |
| 1854 | err := c.cc.Invoke(ctx, "/dmi.NativeHWManagementService/SetLogLevel", in, out, opts...) |
| 1855 | if err != nil { |
| 1856 | return nil, err |
| 1857 | } |
| 1858 | return out, nil |
| 1859 | } |
| 1860 | |
| 1861 | func (c *nativeHWManagementServiceClient) GetLogLevel(ctx context.Context, in *GetLogLevelRequest, opts ...grpc.CallOption) (*GetLogLevelResponse, error) { |
| 1862 | out := new(GetLogLevelResponse) |
| 1863 | err := c.cc.Invoke(ctx, "/dmi.NativeHWManagementService/GetLogLevel", in, out, opts...) |
| 1864 | if err != nil { |
| 1865 | return nil, err |
| 1866 | } |
| 1867 | return out, nil |
| 1868 | } |
| 1869 | |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 1870 | // NativeHWManagementServiceServer is the server API for NativeHWManagementService service. |
| 1871 | type NativeHWManagementServiceServer interface { |
| 1872 | // Initializes context for a device and sets up required states |
Amit Ghosh | 704462f | 2020-06-24 16:44:56 +0100 | [diff] [blame] | 1873 | // In the call to StartManagingDevice, the fields of ModifiableComponent which are relevant |
| 1874 | // and their meanings in this context is mentioned below: |
| 1875 | // name = The unique name that needs to be assigned to this hardware; |
| 1876 | // class = COMPONENT_TYPE_UNDEFINED; |
| 1877 | // parent = nil; |
| 1878 | // alias = Optional; |
| 1879 | // asset_id = Optional; |
| 1880 | // uri = IP Address of the Hardware; |
| 1881 | StartManagingDevice(*ModifiableComponent, NativeHWManagementService_StartManagingDeviceServer) error |
Amit Ghosh | 366228e | 2020-07-06 13:46:42 +0100 | [diff] [blame] | 1882 | // Stop management of a device and clean up any context and caches for that device |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 1883 | // This rpc can be called at any time, even before the StartManagingDevice operation |
| 1884 | // has completed, and should be able to cleanup. |
Amit Ghosh | 366228e | 2020-07-06 13:46:42 +0100 | [diff] [blame] | 1885 | StopManagingDevice(context.Context, *StopManagingDeviceRequest) (*StopManagingDeviceResponse, error) |
Andrea Campanella | cb990bc | 2020-09-22 12:50:56 +0200 | [diff] [blame] | 1886 | // Returns an object containing a list of devices managed by this entity |
| 1887 | GetManagedDevices(context.Context, *empty.Empty) (*ManagedDevicesResponse, error) |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 1888 | // Get the HW inventory details of the Device |
| 1889 | GetPhysicalInventory(*PhysicalInventoryRequest, NativeHWManagementService_GetPhysicalInventoryServer) error |
| 1890 | // Get the details of a particular HW component |
| 1891 | GetHWComponentInfo(*HWComponentInfoGetRequest, NativeHWManagementService_GetHWComponentInfoServer) error |
| 1892 | // Sets the permissible attributes of a HW component |
| 1893 | SetHWComponentInfo(context.Context, *HWComponentInfoSetRequest) (*HWComponentInfoSetResponse, error) |
amit.ghosh | 188a84f | 2020-09-27 20:59:25 +0200 | [diff] [blame] | 1894 | // Sets the location to which logs need to be shipped |
| 1895 | SetLoggingEndpoint(context.Context, *SetLoggingEndpointRequest) (*SetRemoteEndpointResponse, error) |
| 1896 | // Gets the configured location to which the logs are being shipped |
amit.ghosh | 5d97dba | 2020-11-12 16:45:27 +0100 | [diff] [blame] | 1897 | GetLoggingEndpoint(context.Context, *HardwareID) (*GetLoggingEndpointResponse, error) |
amit.ghosh | 188a84f | 2020-09-27 20:59:25 +0200 | [diff] [blame] | 1898 | // Sets the location of the Message Bus to which events and metrics are shipped |
| 1899 | SetMsgBusEndpoint(context.Context, *SetMsgBusEndpointRequest) (*SetRemoteEndpointResponse, error) |
| 1900 | // Gets the configured location to which the events and metrics are being shipped |
| 1901 | GetMsgBusEndpoint(context.Context, *empty.Empty) (*GetMsgBusEndpointResponse, error) |
Andrea Campanella | b91e9a4 | 2020-10-09 14:31:43 +0200 | [diff] [blame] | 1902 | // Gets the entities of a device on which log can be configured. A few are expected, like OS, PON Management etc. |
| 1903 | // In general an entity is any item within an hardware system that can emit logs, e.g. service, process, subsystem, |
| 1904 | // interface, package etc. |
| 1905 | GetLoggableEntities(context.Context, *GetLoggableEntitiesRequest) (*GetLogLevelResponse, error) |
amit.ghosh | 5d97dba | 2020-11-12 16:45:27 +0100 | [diff] [blame] | 1906 | // Sets the log level of the device, for each given entity to a certain level. |
Andrea Campanella | b91e9a4 | 2020-10-09 14:31:43 +0200 | [diff] [blame] | 1907 | // If only one EntitiesLogLevel is provided for the device and that request contains only a log level with |
| 1908 | // no entity in the list it's assumed that the caller wants to set that level for all the entities. |
| 1909 | SetLogLevel(context.Context, *SetLogLevelRequest) (*SetLogLevelResponse, error) |
| 1910 | // Gets the configured log level for a certain entity on a certain device. |
| 1911 | // If no entity is specified in the request all the entities with their log level should be returned. |
| 1912 | GetLogLevel(context.Context, *GetLogLevelRequest) (*GetLogLevelResponse, error) |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 1913 | } |
| 1914 | |
| 1915 | func RegisterNativeHWManagementServiceServer(s *grpc.Server, srv NativeHWManagementServiceServer) { |
| 1916 | s.RegisterService(&_NativeHWManagementService_serviceDesc, srv) |
| 1917 | } |
| 1918 | |
| 1919 | func _NativeHWManagementService_StartManagingDevice_Handler(srv interface{}, stream grpc.ServerStream) error { |
Amit Ghosh | 704462f | 2020-06-24 16:44:56 +0100 | [diff] [blame] | 1920 | m := new(ModifiableComponent) |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 1921 | if err := stream.RecvMsg(m); err != nil { |
| 1922 | return err |
| 1923 | } |
| 1924 | return srv.(NativeHWManagementServiceServer).StartManagingDevice(m, &nativeHWManagementServiceStartManagingDeviceServer{stream}) |
| 1925 | } |
| 1926 | |
| 1927 | type NativeHWManagementService_StartManagingDeviceServer interface { |
| 1928 | Send(*StartManagingDeviceResponse) error |
| 1929 | grpc.ServerStream |
| 1930 | } |
| 1931 | |
| 1932 | type nativeHWManagementServiceStartManagingDeviceServer struct { |
| 1933 | grpc.ServerStream |
| 1934 | } |
| 1935 | |
| 1936 | func (x *nativeHWManagementServiceStartManagingDeviceServer) Send(m *StartManagingDeviceResponse) error { |
| 1937 | return x.ServerStream.SendMsg(m) |
| 1938 | } |
| 1939 | |
Amit Ghosh | 366228e | 2020-07-06 13:46:42 +0100 | [diff] [blame] | 1940 | func _NativeHWManagementService_StopManagingDevice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1941 | in := new(StopManagingDeviceRequest) |
| 1942 | if err := dec(in); err != nil { |
| 1943 | return nil, err |
| 1944 | } |
| 1945 | if interceptor == nil { |
| 1946 | return srv.(NativeHWManagementServiceServer).StopManagingDevice(ctx, in) |
| 1947 | } |
| 1948 | info := &grpc.UnaryServerInfo{ |
| 1949 | Server: srv, |
| 1950 | FullMethod: "/dmi.NativeHWManagementService/StopManagingDevice", |
| 1951 | } |
| 1952 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1953 | return srv.(NativeHWManagementServiceServer).StopManagingDevice(ctx, req.(*StopManagingDeviceRequest)) |
| 1954 | } |
| 1955 | return interceptor(ctx, in, info, handler) |
| 1956 | } |
| 1957 | |
Andrea Campanella | cb990bc | 2020-09-22 12:50:56 +0200 | [diff] [blame] | 1958 | func _NativeHWManagementService_GetManagedDevices_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1959 | in := new(empty.Empty) |
| 1960 | if err := dec(in); err != nil { |
| 1961 | return nil, err |
| 1962 | } |
| 1963 | if interceptor == nil { |
| 1964 | return srv.(NativeHWManagementServiceServer).GetManagedDevices(ctx, in) |
| 1965 | } |
| 1966 | info := &grpc.UnaryServerInfo{ |
| 1967 | Server: srv, |
| 1968 | FullMethod: "/dmi.NativeHWManagementService/GetManagedDevices", |
| 1969 | } |
| 1970 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1971 | return srv.(NativeHWManagementServiceServer).GetManagedDevices(ctx, req.(*empty.Empty)) |
| 1972 | } |
| 1973 | return interceptor(ctx, in, info, handler) |
| 1974 | } |
| 1975 | |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 1976 | func _NativeHWManagementService_GetPhysicalInventory_Handler(srv interface{}, stream grpc.ServerStream) error { |
| 1977 | m := new(PhysicalInventoryRequest) |
| 1978 | if err := stream.RecvMsg(m); err != nil { |
| 1979 | return err |
| 1980 | } |
| 1981 | return srv.(NativeHWManagementServiceServer).GetPhysicalInventory(m, &nativeHWManagementServiceGetPhysicalInventoryServer{stream}) |
| 1982 | } |
| 1983 | |
| 1984 | type NativeHWManagementService_GetPhysicalInventoryServer interface { |
| 1985 | Send(*PhysicalInventoryResponse) error |
| 1986 | grpc.ServerStream |
| 1987 | } |
| 1988 | |
| 1989 | type nativeHWManagementServiceGetPhysicalInventoryServer struct { |
| 1990 | grpc.ServerStream |
| 1991 | } |
| 1992 | |
| 1993 | func (x *nativeHWManagementServiceGetPhysicalInventoryServer) Send(m *PhysicalInventoryResponse) error { |
| 1994 | return x.ServerStream.SendMsg(m) |
| 1995 | } |
| 1996 | |
| 1997 | func _NativeHWManagementService_GetHWComponentInfo_Handler(srv interface{}, stream grpc.ServerStream) error { |
| 1998 | m := new(HWComponentInfoGetRequest) |
| 1999 | if err := stream.RecvMsg(m); err != nil { |
| 2000 | return err |
| 2001 | } |
| 2002 | return srv.(NativeHWManagementServiceServer).GetHWComponentInfo(m, &nativeHWManagementServiceGetHWComponentInfoServer{stream}) |
| 2003 | } |
| 2004 | |
| 2005 | type NativeHWManagementService_GetHWComponentInfoServer interface { |
aghosh | c301dcd | 2020-09-03 16:55:34 +0100 | [diff] [blame] | 2006 | Send(*HWComponentInfoGetResponse) error |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 2007 | grpc.ServerStream |
| 2008 | } |
| 2009 | |
| 2010 | type nativeHWManagementServiceGetHWComponentInfoServer struct { |
| 2011 | grpc.ServerStream |
| 2012 | } |
| 2013 | |
aghosh | c301dcd | 2020-09-03 16:55:34 +0100 | [diff] [blame] | 2014 | func (x *nativeHWManagementServiceGetHWComponentInfoServer) Send(m *HWComponentInfoGetResponse) error { |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 2015 | return x.ServerStream.SendMsg(m) |
| 2016 | } |
| 2017 | |
| 2018 | func _NativeHWManagementService_SetHWComponentInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 2019 | in := new(HWComponentInfoSetRequest) |
| 2020 | if err := dec(in); err != nil { |
| 2021 | return nil, err |
| 2022 | } |
| 2023 | if interceptor == nil { |
| 2024 | return srv.(NativeHWManagementServiceServer).SetHWComponentInfo(ctx, in) |
| 2025 | } |
| 2026 | info := &grpc.UnaryServerInfo{ |
| 2027 | Server: srv, |
| 2028 | FullMethod: "/dmi.NativeHWManagementService/SetHWComponentInfo", |
| 2029 | } |
| 2030 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 2031 | return srv.(NativeHWManagementServiceServer).SetHWComponentInfo(ctx, req.(*HWComponentInfoSetRequest)) |
| 2032 | } |
| 2033 | return interceptor(ctx, in, info, handler) |
| 2034 | } |
| 2035 | |
amit.ghosh | 188a84f | 2020-09-27 20:59:25 +0200 | [diff] [blame] | 2036 | func _NativeHWManagementService_SetLoggingEndpoint_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 2037 | in := new(SetLoggingEndpointRequest) |
| 2038 | if err := dec(in); err != nil { |
| 2039 | return nil, err |
| 2040 | } |
| 2041 | if interceptor == nil { |
| 2042 | return srv.(NativeHWManagementServiceServer).SetLoggingEndpoint(ctx, in) |
| 2043 | } |
| 2044 | info := &grpc.UnaryServerInfo{ |
| 2045 | Server: srv, |
| 2046 | FullMethod: "/dmi.NativeHWManagementService/SetLoggingEndpoint", |
| 2047 | } |
| 2048 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 2049 | return srv.(NativeHWManagementServiceServer).SetLoggingEndpoint(ctx, req.(*SetLoggingEndpointRequest)) |
| 2050 | } |
| 2051 | return interceptor(ctx, in, info, handler) |
| 2052 | } |
| 2053 | |
| 2054 | func _NativeHWManagementService_GetLoggingEndpoint_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
amit.ghosh | 5d97dba | 2020-11-12 16:45:27 +0100 | [diff] [blame] | 2055 | in := new(HardwareID) |
amit.ghosh | 188a84f | 2020-09-27 20:59:25 +0200 | [diff] [blame] | 2056 | if err := dec(in); err != nil { |
| 2057 | return nil, err |
| 2058 | } |
| 2059 | if interceptor == nil { |
| 2060 | return srv.(NativeHWManagementServiceServer).GetLoggingEndpoint(ctx, in) |
| 2061 | } |
| 2062 | info := &grpc.UnaryServerInfo{ |
| 2063 | Server: srv, |
| 2064 | FullMethod: "/dmi.NativeHWManagementService/GetLoggingEndpoint", |
| 2065 | } |
| 2066 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
amit.ghosh | 5d97dba | 2020-11-12 16:45:27 +0100 | [diff] [blame] | 2067 | return srv.(NativeHWManagementServiceServer).GetLoggingEndpoint(ctx, req.(*HardwareID)) |
amit.ghosh | 188a84f | 2020-09-27 20:59:25 +0200 | [diff] [blame] | 2068 | } |
| 2069 | return interceptor(ctx, in, info, handler) |
| 2070 | } |
| 2071 | |
| 2072 | func _NativeHWManagementService_SetMsgBusEndpoint_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 2073 | in := new(SetMsgBusEndpointRequest) |
| 2074 | if err := dec(in); err != nil { |
| 2075 | return nil, err |
| 2076 | } |
| 2077 | if interceptor == nil { |
| 2078 | return srv.(NativeHWManagementServiceServer).SetMsgBusEndpoint(ctx, in) |
| 2079 | } |
| 2080 | info := &grpc.UnaryServerInfo{ |
| 2081 | Server: srv, |
| 2082 | FullMethod: "/dmi.NativeHWManagementService/SetMsgBusEndpoint", |
| 2083 | } |
| 2084 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 2085 | return srv.(NativeHWManagementServiceServer).SetMsgBusEndpoint(ctx, req.(*SetMsgBusEndpointRequest)) |
| 2086 | } |
| 2087 | return interceptor(ctx, in, info, handler) |
| 2088 | } |
| 2089 | |
| 2090 | func _NativeHWManagementService_GetMsgBusEndpoint_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 2091 | in := new(empty.Empty) |
| 2092 | if err := dec(in); err != nil { |
| 2093 | return nil, err |
| 2094 | } |
| 2095 | if interceptor == nil { |
| 2096 | return srv.(NativeHWManagementServiceServer).GetMsgBusEndpoint(ctx, in) |
| 2097 | } |
| 2098 | info := &grpc.UnaryServerInfo{ |
| 2099 | Server: srv, |
| 2100 | FullMethod: "/dmi.NativeHWManagementService/GetMsgBusEndpoint", |
| 2101 | } |
| 2102 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 2103 | return srv.(NativeHWManagementServiceServer).GetMsgBusEndpoint(ctx, req.(*empty.Empty)) |
| 2104 | } |
| 2105 | return interceptor(ctx, in, info, handler) |
| 2106 | } |
| 2107 | |
Andrea Campanella | b91e9a4 | 2020-10-09 14:31:43 +0200 | [diff] [blame] | 2108 | func _NativeHWManagementService_GetLoggableEntities_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 2109 | in := new(GetLoggableEntitiesRequest) |
| 2110 | if err := dec(in); err != nil { |
| 2111 | return nil, err |
| 2112 | } |
| 2113 | if interceptor == nil { |
| 2114 | return srv.(NativeHWManagementServiceServer).GetLoggableEntities(ctx, in) |
| 2115 | } |
| 2116 | info := &grpc.UnaryServerInfo{ |
| 2117 | Server: srv, |
| 2118 | FullMethod: "/dmi.NativeHWManagementService/GetLoggableEntities", |
| 2119 | } |
| 2120 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 2121 | return srv.(NativeHWManagementServiceServer).GetLoggableEntities(ctx, req.(*GetLoggableEntitiesRequest)) |
| 2122 | } |
| 2123 | return interceptor(ctx, in, info, handler) |
| 2124 | } |
| 2125 | |
| 2126 | func _NativeHWManagementService_SetLogLevel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 2127 | in := new(SetLogLevelRequest) |
| 2128 | if err := dec(in); err != nil { |
| 2129 | return nil, err |
| 2130 | } |
| 2131 | if interceptor == nil { |
| 2132 | return srv.(NativeHWManagementServiceServer).SetLogLevel(ctx, in) |
| 2133 | } |
| 2134 | info := &grpc.UnaryServerInfo{ |
| 2135 | Server: srv, |
| 2136 | FullMethod: "/dmi.NativeHWManagementService/SetLogLevel", |
| 2137 | } |
| 2138 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 2139 | return srv.(NativeHWManagementServiceServer).SetLogLevel(ctx, req.(*SetLogLevelRequest)) |
| 2140 | } |
| 2141 | return interceptor(ctx, in, info, handler) |
| 2142 | } |
| 2143 | |
| 2144 | func _NativeHWManagementService_GetLogLevel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 2145 | in := new(GetLogLevelRequest) |
| 2146 | if err := dec(in); err != nil { |
| 2147 | return nil, err |
| 2148 | } |
| 2149 | if interceptor == nil { |
| 2150 | return srv.(NativeHWManagementServiceServer).GetLogLevel(ctx, in) |
| 2151 | } |
| 2152 | info := &grpc.UnaryServerInfo{ |
| 2153 | Server: srv, |
| 2154 | FullMethod: "/dmi.NativeHWManagementService/GetLogLevel", |
| 2155 | } |
| 2156 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 2157 | return srv.(NativeHWManagementServiceServer).GetLogLevel(ctx, req.(*GetLogLevelRequest)) |
| 2158 | } |
| 2159 | return interceptor(ctx, in, info, handler) |
| 2160 | } |
| 2161 | |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 2162 | var _NativeHWManagementService_serviceDesc = grpc.ServiceDesc{ |
| 2163 | ServiceName: "dmi.NativeHWManagementService", |
| 2164 | HandlerType: (*NativeHWManagementServiceServer)(nil), |
| 2165 | Methods: []grpc.MethodDesc{ |
| 2166 | { |
Amit Ghosh | 366228e | 2020-07-06 13:46:42 +0100 | [diff] [blame] | 2167 | MethodName: "StopManagingDevice", |
| 2168 | Handler: _NativeHWManagementService_StopManagingDevice_Handler, |
| 2169 | }, |
| 2170 | { |
Andrea Campanella | cb990bc | 2020-09-22 12:50:56 +0200 | [diff] [blame] | 2171 | MethodName: "GetManagedDevices", |
| 2172 | Handler: _NativeHWManagementService_GetManagedDevices_Handler, |
| 2173 | }, |
| 2174 | { |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 2175 | MethodName: "SetHWComponentInfo", |
| 2176 | Handler: _NativeHWManagementService_SetHWComponentInfo_Handler, |
| 2177 | }, |
amit.ghosh | 188a84f | 2020-09-27 20:59:25 +0200 | [diff] [blame] | 2178 | { |
| 2179 | MethodName: "SetLoggingEndpoint", |
| 2180 | Handler: _NativeHWManagementService_SetLoggingEndpoint_Handler, |
| 2181 | }, |
| 2182 | { |
| 2183 | MethodName: "GetLoggingEndpoint", |
| 2184 | Handler: _NativeHWManagementService_GetLoggingEndpoint_Handler, |
| 2185 | }, |
| 2186 | { |
| 2187 | MethodName: "SetMsgBusEndpoint", |
| 2188 | Handler: _NativeHWManagementService_SetMsgBusEndpoint_Handler, |
| 2189 | }, |
| 2190 | { |
| 2191 | MethodName: "GetMsgBusEndpoint", |
| 2192 | Handler: _NativeHWManagementService_GetMsgBusEndpoint_Handler, |
| 2193 | }, |
Andrea Campanella | b91e9a4 | 2020-10-09 14:31:43 +0200 | [diff] [blame] | 2194 | { |
| 2195 | MethodName: "GetLoggableEntities", |
| 2196 | Handler: _NativeHWManagementService_GetLoggableEntities_Handler, |
| 2197 | }, |
| 2198 | { |
| 2199 | MethodName: "SetLogLevel", |
| 2200 | Handler: _NativeHWManagementService_SetLogLevel_Handler, |
| 2201 | }, |
| 2202 | { |
| 2203 | MethodName: "GetLogLevel", |
| 2204 | Handler: _NativeHWManagementService_GetLogLevel_Handler, |
| 2205 | }, |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 2206 | }, |
| 2207 | Streams: []grpc.StreamDesc{ |
| 2208 | { |
| 2209 | StreamName: "StartManagingDevice", |
| 2210 | Handler: _NativeHWManagementService_StartManagingDevice_Handler, |
| 2211 | ServerStreams: true, |
| 2212 | }, |
| 2213 | { |
| 2214 | StreamName: "GetPhysicalInventory", |
| 2215 | Handler: _NativeHWManagementService_GetPhysicalInventory_Handler, |
| 2216 | ServerStreams: true, |
| 2217 | }, |
| 2218 | { |
| 2219 | StreamName: "GetHWComponentInfo", |
| 2220 | Handler: _NativeHWManagementService_GetHWComponentInfo_Handler, |
| 2221 | ServerStreams: true, |
| 2222 | }, |
| 2223 | }, |
| 2224 | Metadata: "dmi/hw_management_service.proto", |
| 2225 | } |