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