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