Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 1 | // Code generated by protoc-gen-go. DO NOT EDIT. |
| 2 | // source: dmi/hw_management_service.proto |
| 3 | |
| 4 | package dmi |
| 5 | |
| 6 | import ( |
| 7 | context "context" |
| 8 | fmt "fmt" |
| 9 | proto "github.com/golang/protobuf/proto" |
Andrea Campanella | cb990bc | 2020-09-22 12:50:56 +0200 | [diff] [blame] | 10 | empty "github.com/golang/protobuf/ptypes/empty" |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 11 | grpc "google.golang.org/grpc" |
| 12 | math "math" |
| 13 | ) |
| 14 | |
| 15 | // Reference imports to suppress errors if they are not otherwise used. |
| 16 | var _ = proto.Marshal |
| 17 | var _ = fmt.Errorf |
| 18 | var _ = math.Inf |
| 19 | |
| 20 | // This is a compile-time assertion to ensure that this generated file |
| 21 | // is compatible with the proto package it is being compiled against. |
| 22 | // A compilation error at this line likely means your copy of the |
| 23 | // proto package needs to be updated. |
| 24 | const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package |
| 25 | |
| 26 | type PhysicalInventoryRequest struct { |
| 27 | DeviceUuid *Uuid `protobuf:"bytes,1,opt,name=device_uuid,json=deviceUuid,proto3" json:"device_uuid,omitempty"` |
| 28 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 29 | XXX_unrecognized []byte `json:"-"` |
| 30 | XXX_sizecache int32 `json:"-"` |
| 31 | } |
| 32 | |
| 33 | func (m *PhysicalInventoryRequest) Reset() { *m = PhysicalInventoryRequest{} } |
| 34 | func (m *PhysicalInventoryRequest) String() string { return proto.CompactTextString(m) } |
| 35 | func (*PhysicalInventoryRequest) ProtoMessage() {} |
| 36 | func (*PhysicalInventoryRequest) Descriptor() ([]byte, []int) { |
| 37 | return fileDescriptor_eae902e73066286d, []int{0} |
| 38 | } |
| 39 | |
| 40 | func (m *PhysicalInventoryRequest) XXX_Unmarshal(b []byte) error { |
| 41 | return xxx_messageInfo_PhysicalInventoryRequest.Unmarshal(m, b) |
| 42 | } |
| 43 | func (m *PhysicalInventoryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 44 | return xxx_messageInfo_PhysicalInventoryRequest.Marshal(b, m, deterministic) |
| 45 | } |
| 46 | func (m *PhysicalInventoryRequest) XXX_Merge(src proto.Message) { |
| 47 | xxx_messageInfo_PhysicalInventoryRequest.Merge(m, src) |
| 48 | } |
| 49 | func (m *PhysicalInventoryRequest) XXX_Size() int { |
| 50 | return xxx_messageInfo_PhysicalInventoryRequest.Size(m) |
| 51 | } |
| 52 | func (m *PhysicalInventoryRequest) XXX_DiscardUnknown() { |
| 53 | xxx_messageInfo_PhysicalInventoryRequest.DiscardUnknown(m) |
| 54 | } |
| 55 | |
| 56 | var xxx_messageInfo_PhysicalInventoryRequest proto.InternalMessageInfo |
| 57 | |
| 58 | func (m *PhysicalInventoryRequest) GetDeviceUuid() *Uuid { |
| 59 | if m != nil { |
| 60 | return m.DeviceUuid |
| 61 | } |
| 62 | return nil |
| 63 | } |
| 64 | |
| 65 | type PhysicalInventoryResponse struct { |
| 66 | Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=dmi.Status" json:"status,omitempty"` |
| 67 | Reason Reason `protobuf:"varint,2,opt,name=reason,proto3,enum=dmi.Reason" json:"reason,omitempty"` |
| 68 | Inventory *Hardware `protobuf:"bytes,3,opt,name=inventory,proto3" json:"inventory,omitempty"` |
| 69 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 70 | XXX_unrecognized []byte `json:"-"` |
| 71 | XXX_sizecache int32 `json:"-"` |
| 72 | } |
| 73 | |
| 74 | func (m *PhysicalInventoryResponse) Reset() { *m = PhysicalInventoryResponse{} } |
| 75 | func (m *PhysicalInventoryResponse) String() string { return proto.CompactTextString(m) } |
| 76 | func (*PhysicalInventoryResponse) ProtoMessage() {} |
| 77 | func (*PhysicalInventoryResponse) Descriptor() ([]byte, []int) { |
| 78 | return fileDescriptor_eae902e73066286d, []int{1} |
| 79 | } |
| 80 | |
| 81 | func (m *PhysicalInventoryResponse) XXX_Unmarshal(b []byte) error { |
| 82 | return xxx_messageInfo_PhysicalInventoryResponse.Unmarshal(m, b) |
| 83 | } |
| 84 | func (m *PhysicalInventoryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 85 | return xxx_messageInfo_PhysicalInventoryResponse.Marshal(b, m, deterministic) |
| 86 | } |
| 87 | func (m *PhysicalInventoryResponse) XXX_Merge(src proto.Message) { |
| 88 | xxx_messageInfo_PhysicalInventoryResponse.Merge(m, src) |
| 89 | } |
| 90 | func (m *PhysicalInventoryResponse) XXX_Size() int { |
| 91 | return xxx_messageInfo_PhysicalInventoryResponse.Size(m) |
| 92 | } |
| 93 | func (m *PhysicalInventoryResponse) XXX_DiscardUnknown() { |
| 94 | xxx_messageInfo_PhysicalInventoryResponse.DiscardUnknown(m) |
| 95 | } |
| 96 | |
| 97 | var xxx_messageInfo_PhysicalInventoryResponse proto.InternalMessageInfo |
| 98 | |
| 99 | func (m *PhysicalInventoryResponse) GetStatus() Status { |
| 100 | if m != nil { |
| 101 | return m.Status |
| 102 | } |
| 103 | return Status_UNDEFINED_STATUS |
| 104 | } |
| 105 | |
| 106 | func (m *PhysicalInventoryResponse) GetReason() Reason { |
| 107 | if m != nil { |
| 108 | return m.Reason |
| 109 | } |
| 110 | return Reason_UNDEFINED_REASON |
| 111 | } |
| 112 | |
| 113 | func (m *PhysicalInventoryResponse) GetInventory() *Hardware { |
| 114 | if m != nil { |
| 115 | return m.Inventory |
| 116 | } |
| 117 | return nil |
| 118 | } |
| 119 | |
| 120 | type HWComponentInfoGetRequest struct { |
| 121 | DeviceUuid *Uuid `protobuf:"bytes,1,opt,name=device_uuid,json=deviceUuid,proto3" json:"device_uuid,omitempty"` |
| 122 | ComponentUuid *Uuid `protobuf:"bytes,2,opt,name=component_uuid,json=componentUuid,proto3" json:"component_uuid,omitempty"` |
| 123 | ComponentName string `protobuf:"bytes,3,opt,name=component_name,json=componentName,proto3" json:"component_name,omitempty"` |
| 124 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 125 | XXX_unrecognized []byte `json:"-"` |
| 126 | XXX_sizecache int32 `json:"-"` |
| 127 | } |
| 128 | |
| 129 | func (m *HWComponentInfoGetRequest) Reset() { *m = HWComponentInfoGetRequest{} } |
| 130 | func (m *HWComponentInfoGetRequest) String() string { return proto.CompactTextString(m) } |
| 131 | func (*HWComponentInfoGetRequest) ProtoMessage() {} |
| 132 | func (*HWComponentInfoGetRequest) Descriptor() ([]byte, []int) { |
| 133 | return fileDescriptor_eae902e73066286d, []int{2} |
| 134 | } |
| 135 | |
| 136 | func (m *HWComponentInfoGetRequest) XXX_Unmarshal(b []byte) error { |
| 137 | return xxx_messageInfo_HWComponentInfoGetRequest.Unmarshal(m, b) |
| 138 | } |
| 139 | func (m *HWComponentInfoGetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 140 | return xxx_messageInfo_HWComponentInfoGetRequest.Marshal(b, m, deterministic) |
| 141 | } |
| 142 | func (m *HWComponentInfoGetRequest) XXX_Merge(src proto.Message) { |
| 143 | xxx_messageInfo_HWComponentInfoGetRequest.Merge(m, src) |
| 144 | } |
| 145 | func (m *HWComponentInfoGetRequest) XXX_Size() int { |
| 146 | return xxx_messageInfo_HWComponentInfoGetRequest.Size(m) |
| 147 | } |
| 148 | func (m *HWComponentInfoGetRequest) XXX_DiscardUnknown() { |
| 149 | xxx_messageInfo_HWComponentInfoGetRequest.DiscardUnknown(m) |
| 150 | } |
| 151 | |
| 152 | var xxx_messageInfo_HWComponentInfoGetRequest proto.InternalMessageInfo |
| 153 | |
| 154 | func (m *HWComponentInfoGetRequest) GetDeviceUuid() *Uuid { |
| 155 | if m != nil { |
| 156 | return m.DeviceUuid |
| 157 | } |
| 158 | return nil |
| 159 | } |
| 160 | |
| 161 | func (m *HWComponentInfoGetRequest) GetComponentUuid() *Uuid { |
| 162 | if m != nil { |
| 163 | return m.ComponentUuid |
| 164 | } |
| 165 | return nil |
| 166 | } |
| 167 | |
| 168 | func (m *HWComponentInfoGetRequest) GetComponentName() string { |
| 169 | if m != nil { |
| 170 | return m.ComponentName |
| 171 | } |
| 172 | return "" |
| 173 | } |
| 174 | |
aghosh | c301dcd | 2020-09-03 16:55:34 +0100 | [diff] [blame] | 175 | type HWComponentInfoGetResponse struct { |
| 176 | Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=dmi.Status" json:"status,omitempty"` |
| 177 | Reason Reason `protobuf:"varint,2,opt,name=reason,proto3,enum=dmi.Reason" json:"reason,omitempty"` |
| 178 | Component *Component `protobuf:"bytes,3,opt,name=component,proto3" json:"component,omitempty"` |
| 179 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 180 | XXX_unrecognized []byte `json:"-"` |
| 181 | XXX_sizecache int32 `json:"-"` |
| 182 | } |
| 183 | |
| 184 | func (m *HWComponentInfoGetResponse) Reset() { *m = HWComponentInfoGetResponse{} } |
| 185 | func (m *HWComponentInfoGetResponse) String() string { return proto.CompactTextString(m) } |
| 186 | func (*HWComponentInfoGetResponse) ProtoMessage() {} |
| 187 | func (*HWComponentInfoGetResponse) Descriptor() ([]byte, []int) { |
| 188 | return fileDescriptor_eae902e73066286d, []int{3} |
| 189 | } |
| 190 | |
| 191 | func (m *HWComponentInfoGetResponse) XXX_Unmarshal(b []byte) error { |
| 192 | return xxx_messageInfo_HWComponentInfoGetResponse.Unmarshal(m, b) |
| 193 | } |
| 194 | func (m *HWComponentInfoGetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 195 | return xxx_messageInfo_HWComponentInfoGetResponse.Marshal(b, m, deterministic) |
| 196 | } |
| 197 | func (m *HWComponentInfoGetResponse) XXX_Merge(src proto.Message) { |
| 198 | xxx_messageInfo_HWComponentInfoGetResponse.Merge(m, src) |
| 199 | } |
| 200 | func (m *HWComponentInfoGetResponse) XXX_Size() int { |
| 201 | return xxx_messageInfo_HWComponentInfoGetResponse.Size(m) |
| 202 | } |
| 203 | func (m *HWComponentInfoGetResponse) XXX_DiscardUnknown() { |
| 204 | xxx_messageInfo_HWComponentInfoGetResponse.DiscardUnknown(m) |
| 205 | } |
| 206 | |
| 207 | var xxx_messageInfo_HWComponentInfoGetResponse proto.InternalMessageInfo |
| 208 | |
| 209 | func (m *HWComponentInfoGetResponse) GetStatus() Status { |
| 210 | if m != nil { |
| 211 | return m.Status |
| 212 | } |
| 213 | return Status_UNDEFINED_STATUS |
| 214 | } |
| 215 | |
| 216 | func (m *HWComponentInfoGetResponse) GetReason() Reason { |
| 217 | if m != nil { |
| 218 | return m.Reason |
| 219 | } |
| 220 | return Reason_UNDEFINED_REASON |
| 221 | } |
| 222 | |
| 223 | func (m *HWComponentInfoGetResponse) GetComponent() *Component { |
| 224 | if m != nil { |
| 225 | return m.Component |
| 226 | } |
| 227 | return nil |
| 228 | } |
| 229 | |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 230 | type HWComponentInfoSetRequest struct { |
| 231 | DeviceUuid *Uuid `protobuf:"bytes,1,opt,name=device_uuid,json=deviceUuid,proto3" json:"device_uuid,omitempty"` |
| 232 | ComponentUuid *Uuid `protobuf:"bytes,2,opt,name=component_uuid,json=componentUuid,proto3" json:"component_uuid,omitempty"` |
| 233 | ComponentName string `protobuf:"bytes,3,opt,name=component_name,json=componentName,proto3" json:"component_name,omitempty"` |
| 234 | Changes *ModifiableComponent `protobuf:"bytes,4,opt,name=changes,proto3" json:"changes,omitempty"` |
| 235 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 236 | XXX_unrecognized []byte `json:"-"` |
| 237 | XXX_sizecache int32 `json:"-"` |
| 238 | } |
| 239 | |
| 240 | func (m *HWComponentInfoSetRequest) Reset() { *m = HWComponentInfoSetRequest{} } |
| 241 | func (m *HWComponentInfoSetRequest) String() string { return proto.CompactTextString(m) } |
| 242 | func (*HWComponentInfoSetRequest) ProtoMessage() {} |
| 243 | func (*HWComponentInfoSetRequest) Descriptor() ([]byte, []int) { |
aghosh | c301dcd | 2020-09-03 16:55:34 +0100 | [diff] [blame] | 244 | return fileDescriptor_eae902e73066286d, []int{4} |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 245 | } |
| 246 | |
| 247 | func (m *HWComponentInfoSetRequest) XXX_Unmarshal(b []byte) error { |
| 248 | return xxx_messageInfo_HWComponentInfoSetRequest.Unmarshal(m, b) |
| 249 | } |
| 250 | func (m *HWComponentInfoSetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 251 | return xxx_messageInfo_HWComponentInfoSetRequest.Marshal(b, m, deterministic) |
| 252 | } |
| 253 | func (m *HWComponentInfoSetRequest) XXX_Merge(src proto.Message) { |
| 254 | xxx_messageInfo_HWComponentInfoSetRequest.Merge(m, src) |
| 255 | } |
| 256 | func (m *HWComponentInfoSetRequest) XXX_Size() int { |
| 257 | return xxx_messageInfo_HWComponentInfoSetRequest.Size(m) |
| 258 | } |
| 259 | func (m *HWComponentInfoSetRequest) XXX_DiscardUnknown() { |
| 260 | xxx_messageInfo_HWComponentInfoSetRequest.DiscardUnknown(m) |
| 261 | } |
| 262 | |
| 263 | var xxx_messageInfo_HWComponentInfoSetRequest proto.InternalMessageInfo |
| 264 | |
| 265 | func (m *HWComponentInfoSetRequest) GetDeviceUuid() *Uuid { |
| 266 | if m != nil { |
| 267 | return m.DeviceUuid |
| 268 | } |
| 269 | return nil |
| 270 | } |
| 271 | |
| 272 | func (m *HWComponentInfoSetRequest) GetComponentUuid() *Uuid { |
| 273 | if m != nil { |
| 274 | return m.ComponentUuid |
| 275 | } |
| 276 | return nil |
| 277 | } |
| 278 | |
| 279 | func (m *HWComponentInfoSetRequest) GetComponentName() string { |
| 280 | if m != nil { |
| 281 | return m.ComponentName |
| 282 | } |
| 283 | return "" |
| 284 | } |
| 285 | |
| 286 | func (m *HWComponentInfoSetRequest) GetChanges() *ModifiableComponent { |
| 287 | if m != nil { |
| 288 | return m.Changes |
| 289 | } |
| 290 | return nil |
| 291 | } |
| 292 | |
| 293 | type HWComponentInfoSetResponse struct { |
| 294 | Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=dmi.Status" json:"status,omitempty"` |
| 295 | Reason Reason `protobuf:"varint,2,opt,name=reason,proto3,enum=dmi.Reason" json:"reason,omitempty"` |
| 296 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 297 | XXX_unrecognized []byte `json:"-"` |
| 298 | XXX_sizecache int32 `json:"-"` |
| 299 | } |
| 300 | |
| 301 | func (m *HWComponentInfoSetResponse) Reset() { *m = HWComponentInfoSetResponse{} } |
| 302 | func (m *HWComponentInfoSetResponse) String() string { return proto.CompactTextString(m) } |
| 303 | func (*HWComponentInfoSetResponse) ProtoMessage() {} |
| 304 | func (*HWComponentInfoSetResponse) Descriptor() ([]byte, []int) { |
aghosh | c301dcd | 2020-09-03 16:55:34 +0100 | [diff] [blame] | 305 | return fileDescriptor_eae902e73066286d, []int{5} |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 306 | } |
| 307 | |
| 308 | func (m *HWComponentInfoSetResponse) XXX_Unmarshal(b []byte) error { |
| 309 | return xxx_messageInfo_HWComponentInfoSetResponse.Unmarshal(m, b) |
| 310 | } |
| 311 | func (m *HWComponentInfoSetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 312 | return xxx_messageInfo_HWComponentInfoSetResponse.Marshal(b, m, deterministic) |
| 313 | } |
| 314 | func (m *HWComponentInfoSetResponse) XXX_Merge(src proto.Message) { |
| 315 | xxx_messageInfo_HWComponentInfoSetResponse.Merge(m, src) |
| 316 | } |
| 317 | func (m *HWComponentInfoSetResponse) XXX_Size() int { |
| 318 | return xxx_messageInfo_HWComponentInfoSetResponse.Size(m) |
| 319 | } |
| 320 | func (m *HWComponentInfoSetResponse) XXX_DiscardUnknown() { |
| 321 | xxx_messageInfo_HWComponentInfoSetResponse.DiscardUnknown(m) |
| 322 | } |
| 323 | |
| 324 | var xxx_messageInfo_HWComponentInfoSetResponse proto.InternalMessageInfo |
| 325 | |
| 326 | func (m *HWComponentInfoSetResponse) GetStatus() Status { |
| 327 | if m != nil { |
| 328 | return m.Status |
| 329 | } |
| 330 | return Status_UNDEFINED_STATUS |
| 331 | } |
| 332 | |
| 333 | func (m *HWComponentInfoSetResponse) GetReason() Reason { |
| 334 | if m != nil { |
| 335 | return m.Reason |
| 336 | } |
| 337 | return Reason_UNDEFINED_REASON |
| 338 | } |
| 339 | |
| 340 | type StartManagingDeviceResponse struct { |
| 341 | Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=dmi.Status" json:"status,omitempty"` |
| 342 | Reason Reason `protobuf:"varint,2,opt,name=reason,proto3,enum=dmi.Reason" json:"reason,omitempty"` |
| 343 | DeviceUuid *Uuid `protobuf:"bytes,3,opt,name=device_uuid,json=deviceUuid,proto3" json:"device_uuid,omitempty"` |
| 344 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 345 | XXX_unrecognized []byte `json:"-"` |
| 346 | XXX_sizecache int32 `json:"-"` |
| 347 | } |
| 348 | |
| 349 | func (m *StartManagingDeviceResponse) Reset() { *m = StartManagingDeviceResponse{} } |
| 350 | func (m *StartManagingDeviceResponse) String() string { return proto.CompactTextString(m) } |
| 351 | func (*StartManagingDeviceResponse) ProtoMessage() {} |
| 352 | func (*StartManagingDeviceResponse) Descriptor() ([]byte, []int) { |
aghosh | c301dcd | 2020-09-03 16:55:34 +0100 | [diff] [blame] | 353 | return fileDescriptor_eae902e73066286d, []int{6} |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 354 | } |
| 355 | |
| 356 | func (m *StartManagingDeviceResponse) XXX_Unmarshal(b []byte) error { |
| 357 | return xxx_messageInfo_StartManagingDeviceResponse.Unmarshal(m, b) |
| 358 | } |
| 359 | func (m *StartManagingDeviceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 360 | return xxx_messageInfo_StartManagingDeviceResponse.Marshal(b, m, deterministic) |
| 361 | } |
| 362 | func (m *StartManagingDeviceResponse) XXX_Merge(src proto.Message) { |
| 363 | xxx_messageInfo_StartManagingDeviceResponse.Merge(m, src) |
| 364 | } |
| 365 | func (m *StartManagingDeviceResponse) XXX_Size() int { |
| 366 | return xxx_messageInfo_StartManagingDeviceResponse.Size(m) |
| 367 | } |
| 368 | func (m *StartManagingDeviceResponse) XXX_DiscardUnknown() { |
| 369 | xxx_messageInfo_StartManagingDeviceResponse.DiscardUnknown(m) |
| 370 | } |
| 371 | |
| 372 | var xxx_messageInfo_StartManagingDeviceResponse proto.InternalMessageInfo |
| 373 | |
| 374 | func (m *StartManagingDeviceResponse) GetStatus() Status { |
| 375 | if m != nil { |
| 376 | return m.Status |
| 377 | } |
| 378 | return Status_UNDEFINED_STATUS |
| 379 | } |
| 380 | |
| 381 | func (m *StartManagingDeviceResponse) GetReason() Reason { |
| 382 | if m != nil { |
| 383 | return m.Reason |
| 384 | } |
| 385 | return Reason_UNDEFINED_REASON |
| 386 | } |
| 387 | |
| 388 | func (m *StartManagingDeviceResponse) GetDeviceUuid() *Uuid { |
| 389 | if m != nil { |
| 390 | return m.DeviceUuid |
| 391 | } |
| 392 | return nil |
| 393 | } |
| 394 | |
Amit Ghosh | 366228e | 2020-07-06 13:46:42 +0100 | [diff] [blame] | 395 | type StopManagingDeviceRequest struct { |
| 396 | Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` |
| 397 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 398 | XXX_unrecognized []byte `json:"-"` |
| 399 | XXX_sizecache int32 `json:"-"` |
| 400 | } |
| 401 | |
| 402 | func (m *StopManagingDeviceRequest) Reset() { *m = StopManagingDeviceRequest{} } |
| 403 | func (m *StopManagingDeviceRequest) String() string { return proto.CompactTextString(m) } |
| 404 | func (*StopManagingDeviceRequest) ProtoMessage() {} |
| 405 | func (*StopManagingDeviceRequest) Descriptor() ([]byte, []int) { |
aghosh | c301dcd | 2020-09-03 16:55:34 +0100 | [diff] [blame] | 406 | return fileDescriptor_eae902e73066286d, []int{7} |
Amit Ghosh | 366228e | 2020-07-06 13:46:42 +0100 | [diff] [blame] | 407 | } |
| 408 | |
| 409 | func (m *StopManagingDeviceRequest) XXX_Unmarshal(b []byte) error { |
| 410 | return xxx_messageInfo_StopManagingDeviceRequest.Unmarshal(m, b) |
| 411 | } |
| 412 | func (m *StopManagingDeviceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 413 | return xxx_messageInfo_StopManagingDeviceRequest.Marshal(b, m, deterministic) |
| 414 | } |
| 415 | func (m *StopManagingDeviceRequest) XXX_Merge(src proto.Message) { |
| 416 | xxx_messageInfo_StopManagingDeviceRequest.Merge(m, src) |
| 417 | } |
| 418 | func (m *StopManagingDeviceRequest) XXX_Size() int { |
| 419 | return xxx_messageInfo_StopManagingDeviceRequest.Size(m) |
| 420 | } |
| 421 | func (m *StopManagingDeviceRequest) XXX_DiscardUnknown() { |
| 422 | xxx_messageInfo_StopManagingDeviceRequest.DiscardUnknown(m) |
| 423 | } |
| 424 | |
| 425 | var xxx_messageInfo_StopManagingDeviceRequest proto.InternalMessageInfo |
| 426 | |
| 427 | func (m *StopManagingDeviceRequest) GetName() string { |
| 428 | if m != nil { |
| 429 | return m.Name |
| 430 | } |
| 431 | return "" |
| 432 | } |
| 433 | |
| 434 | type StopManagingDeviceResponse struct { |
| 435 | Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=dmi.Status" json:"status,omitempty"` |
| 436 | Reason Reason `protobuf:"varint,2,opt,name=reason,proto3,enum=dmi.Reason" json:"reason,omitempty"` |
| 437 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 438 | XXX_unrecognized []byte `json:"-"` |
| 439 | XXX_sizecache int32 `json:"-"` |
| 440 | } |
| 441 | |
| 442 | func (m *StopManagingDeviceResponse) Reset() { *m = StopManagingDeviceResponse{} } |
| 443 | func (m *StopManagingDeviceResponse) String() string { return proto.CompactTextString(m) } |
| 444 | func (*StopManagingDeviceResponse) ProtoMessage() {} |
| 445 | func (*StopManagingDeviceResponse) Descriptor() ([]byte, []int) { |
aghosh | c301dcd | 2020-09-03 16:55:34 +0100 | [diff] [blame] | 446 | return fileDescriptor_eae902e73066286d, []int{8} |
Amit Ghosh | 366228e | 2020-07-06 13:46:42 +0100 | [diff] [blame] | 447 | } |
| 448 | |
| 449 | func (m *StopManagingDeviceResponse) XXX_Unmarshal(b []byte) error { |
| 450 | return xxx_messageInfo_StopManagingDeviceResponse.Unmarshal(m, b) |
| 451 | } |
| 452 | func (m *StopManagingDeviceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 453 | return xxx_messageInfo_StopManagingDeviceResponse.Marshal(b, m, deterministic) |
| 454 | } |
| 455 | func (m *StopManagingDeviceResponse) XXX_Merge(src proto.Message) { |
| 456 | xxx_messageInfo_StopManagingDeviceResponse.Merge(m, src) |
| 457 | } |
| 458 | func (m *StopManagingDeviceResponse) XXX_Size() int { |
| 459 | return xxx_messageInfo_StopManagingDeviceResponse.Size(m) |
| 460 | } |
| 461 | func (m *StopManagingDeviceResponse) XXX_DiscardUnknown() { |
| 462 | xxx_messageInfo_StopManagingDeviceResponse.DiscardUnknown(m) |
| 463 | } |
| 464 | |
| 465 | var xxx_messageInfo_StopManagingDeviceResponse proto.InternalMessageInfo |
| 466 | |
| 467 | func (m *StopManagingDeviceResponse) GetStatus() Status { |
| 468 | if m != nil { |
| 469 | return m.Status |
| 470 | } |
| 471 | return Status_UNDEFINED_STATUS |
| 472 | } |
| 473 | |
| 474 | func (m *StopManagingDeviceResponse) GetReason() Reason { |
| 475 | if m != nil { |
| 476 | return m.Reason |
| 477 | } |
| 478 | return Reason_UNDEFINED_REASON |
| 479 | } |
| 480 | |
Andrea Campanella | cb990bc | 2020-09-22 12:50:56 +0200 | [diff] [blame] | 481 | type ManagedDevicesResponse struct { |
| 482 | Devices []*ModifiableComponent `protobuf:"bytes,1,rep,name=devices,proto3" json:"devices,omitempty"` |
| 483 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 484 | XXX_unrecognized []byte `json:"-"` |
| 485 | XXX_sizecache int32 `json:"-"` |
| 486 | } |
| 487 | |
| 488 | func (m *ManagedDevicesResponse) Reset() { *m = ManagedDevicesResponse{} } |
| 489 | func (m *ManagedDevicesResponse) String() string { return proto.CompactTextString(m) } |
| 490 | func (*ManagedDevicesResponse) ProtoMessage() {} |
| 491 | func (*ManagedDevicesResponse) Descriptor() ([]byte, []int) { |
| 492 | return fileDescriptor_eae902e73066286d, []int{9} |
| 493 | } |
| 494 | |
| 495 | func (m *ManagedDevicesResponse) XXX_Unmarshal(b []byte) error { |
| 496 | return xxx_messageInfo_ManagedDevicesResponse.Unmarshal(m, b) |
| 497 | } |
| 498 | func (m *ManagedDevicesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 499 | return xxx_messageInfo_ManagedDevicesResponse.Marshal(b, m, deterministic) |
| 500 | } |
| 501 | func (m *ManagedDevicesResponse) XXX_Merge(src proto.Message) { |
| 502 | xxx_messageInfo_ManagedDevicesResponse.Merge(m, src) |
| 503 | } |
| 504 | func (m *ManagedDevicesResponse) XXX_Size() int { |
| 505 | return xxx_messageInfo_ManagedDevicesResponse.Size(m) |
| 506 | } |
| 507 | func (m *ManagedDevicesResponse) XXX_DiscardUnknown() { |
| 508 | xxx_messageInfo_ManagedDevicesResponse.DiscardUnknown(m) |
| 509 | } |
| 510 | |
| 511 | var xxx_messageInfo_ManagedDevicesResponse proto.InternalMessageInfo |
| 512 | |
| 513 | func (m *ManagedDevicesResponse) GetDevices() []*ModifiableComponent { |
| 514 | if m != nil { |
| 515 | return m.Devices |
| 516 | } |
| 517 | return nil |
| 518 | } |
| 519 | |
amit.ghosh | 188a84f | 2020-09-27 20:59:25 +0200 | [diff] [blame] | 520 | type SetLoggingEndpointRequest struct { |
| 521 | DeviceUuid *Uuid `protobuf:"bytes,1,opt,name=device_uuid,json=deviceUuid,proto3" json:"device_uuid,omitempty"` |
| 522 | LoggingEndpoint string `protobuf:"bytes,2,opt,name=logging_endpoint,json=loggingEndpoint,proto3" json:"logging_endpoint,omitempty"` |
| 523 | LoggingProtocol string `protobuf:"bytes,3,opt,name=logging_protocol,json=loggingProtocol,proto3" json:"logging_protocol,omitempty"` |
| 524 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 525 | XXX_unrecognized []byte `json:"-"` |
| 526 | XXX_sizecache int32 `json:"-"` |
| 527 | } |
| 528 | |
| 529 | func (m *SetLoggingEndpointRequest) Reset() { *m = SetLoggingEndpointRequest{} } |
| 530 | func (m *SetLoggingEndpointRequest) String() string { return proto.CompactTextString(m) } |
| 531 | func (*SetLoggingEndpointRequest) ProtoMessage() {} |
| 532 | func (*SetLoggingEndpointRequest) Descriptor() ([]byte, []int) { |
| 533 | return fileDescriptor_eae902e73066286d, []int{10} |
| 534 | } |
| 535 | |
| 536 | func (m *SetLoggingEndpointRequest) XXX_Unmarshal(b []byte) error { |
| 537 | return xxx_messageInfo_SetLoggingEndpointRequest.Unmarshal(m, b) |
| 538 | } |
| 539 | func (m *SetLoggingEndpointRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 540 | return xxx_messageInfo_SetLoggingEndpointRequest.Marshal(b, m, deterministic) |
| 541 | } |
| 542 | func (m *SetLoggingEndpointRequest) XXX_Merge(src proto.Message) { |
| 543 | xxx_messageInfo_SetLoggingEndpointRequest.Merge(m, src) |
| 544 | } |
| 545 | func (m *SetLoggingEndpointRequest) XXX_Size() int { |
| 546 | return xxx_messageInfo_SetLoggingEndpointRequest.Size(m) |
| 547 | } |
| 548 | func (m *SetLoggingEndpointRequest) XXX_DiscardUnknown() { |
| 549 | xxx_messageInfo_SetLoggingEndpointRequest.DiscardUnknown(m) |
| 550 | } |
| 551 | |
| 552 | var xxx_messageInfo_SetLoggingEndpointRequest proto.InternalMessageInfo |
| 553 | |
| 554 | func (m *SetLoggingEndpointRequest) GetDeviceUuid() *Uuid { |
| 555 | if m != nil { |
| 556 | return m.DeviceUuid |
| 557 | } |
| 558 | return nil |
| 559 | } |
| 560 | |
| 561 | func (m *SetLoggingEndpointRequest) GetLoggingEndpoint() string { |
| 562 | if m != nil { |
| 563 | return m.LoggingEndpoint |
| 564 | } |
| 565 | return "" |
| 566 | } |
| 567 | |
| 568 | func (m *SetLoggingEndpointRequest) GetLoggingProtocol() string { |
| 569 | if m != nil { |
| 570 | return m.LoggingProtocol |
| 571 | } |
| 572 | return "" |
| 573 | } |
| 574 | |
| 575 | type SetRemoteEndpointResponse struct { |
| 576 | Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=dmi.Status" json:"status,omitempty"` |
| 577 | Reason Reason `protobuf:"varint,2,opt,name=reason,proto3,enum=dmi.Reason" json:"reason,omitempty"` |
| 578 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 579 | XXX_unrecognized []byte `json:"-"` |
| 580 | XXX_sizecache int32 `json:"-"` |
| 581 | } |
| 582 | |
| 583 | func (m *SetRemoteEndpointResponse) Reset() { *m = SetRemoteEndpointResponse{} } |
| 584 | func (m *SetRemoteEndpointResponse) String() string { return proto.CompactTextString(m) } |
| 585 | func (*SetRemoteEndpointResponse) ProtoMessage() {} |
| 586 | func (*SetRemoteEndpointResponse) Descriptor() ([]byte, []int) { |
| 587 | return fileDescriptor_eae902e73066286d, []int{11} |
| 588 | } |
| 589 | |
| 590 | func (m *SetRemoteEndpointResponse) XXX_Unmarshal(b []byte) error { |
| 591 | return xxx_messageInfo_SetRemoteEndpointResponse.Unmarshal(m, b) |
| 592 | } |
| 593 | func (m *SetRemoteEndpointResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 594 | return xxx_messageInfo_SetRemoteEndpointResponse.Marshal(b, m, deterministic) |
| 595 | } |
| 596 | func (m *SetRemoteEndpointResponse) XXX_Merge(src proto.Message) { |
| 597 | xxx_messageInfo_SetRemoteEndpointResponse.Merge(m, src) |
| 598 | } |
| 599 | func (m *SetRemoteEndpointResponse) XXX_Size() int { |
| 600 | return xxx_messageInfo_SetRemoteEndpointResponse.Size(m) |
| 601 | } |
| 602 | func (m *SetRemoteEndpointResponse) XXX_DiscardUnknown() { |
| 603 | xxx_messageInfo_SetRemoteEndpointResponse.DiscardUnknown(m) |
| 604 | } |
| 605 | |
| 606 | var xxx_messageInfo_SetRemoteEndpointResponse proto.InternalMessageInfo |
| 607 | |
| 608 | func (m *SetRemoteEndpointResponse) GetStatus() Status { |
| 609 | if m != nil { |
| 610 | return m.Status |
| 611 | } |
| 612 | return Status_UNDEFINED_STATUS |
| 613 | } |
| 614 | |
| 615 | func (m *SetRemoteEndpointResponse) GetReason() Reason { |
| 616 | if m != nil { |
| 617 | return m.Reason |
| 618 | } |
| 619 | return Reason_UNDEFINED_REASON |
| 620 | } |
| 621 | |
| 622 | type GetLoggingEndpointResponse struct { |
| 623 | Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=dmi.Status" json:"status,omitempty"` |
| 624 | Reason Reason `protobuf:"varint,2,opt,name=reason,proto3,enum=dmi.Reason" json:"reason,omitempty"` |
| 625 | LoggingEndpoint string `protobuf:"bytes,3,opt,name=logging_endpoint,json=loggingEndpoint,proto3" json:"logging_endpoint,omitempty"` |
| 626 | LoggingProtocol string `protobuf:"bytes,4,opt,name=logging_protocol,json=loggingProtocol,proto3" json:"logging_protocol,omitempty"` |
| 627 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 628 | XXX_unrecognized []byte `json:"-"` |
| 629 | XXX_sizecache int32 `json:"-"` |
| 630 | } |
| 631 | |
| 632 | func (m *GetLoggingEndpointResponse) Reset() { *m = GetLoggingEndpointResponse{} } |
| 633 | func (m *GetLoggingEndpointResponse) String() string { return proto.CompactTextString(m) } |
| 634 | func (*GetLoggingEndpointResponse) ProtoMessage() {} |
| 635 | func (*GetLoggingEndpointResponse) Descriptor() ([]byte, []int) { |
| 636 | return fileDescriptor_eae902e73066286d, []int{12} |
| 637 | } |
| 638 | |
| 639 | func (m *GetLoggingEndpointResponse) XXX_Unmarshal(b []byte) error { |
| 640 | return xxx_messageInfo_GetLoggingEndpointResponse.Unmarshal(m, b) |
| 641 | } |
| 642 | func (m *GetLoggingEndpointResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 643 | return xxx_messageInfo_GetLoggingEndpointResponse.Marshal(b, m, deterministic) |
| 644 | } |
| 645 | func (m *GetLoggingEndpointResponse) XXX_Merge(src proto.Message) { |
| 646 | xxx_messageInfo_GetLoggingEndpointResponse.Merge(m, src) |
| 647 | } |
| 648 | func (m *GetLoggingEndpointResponse) XXX_Size() int { |
| 649 | return xxx_messageInfo_GetLoggingEndpointResponse.Size(m) |
| 650 | } |
| 651 | func (m *GetLoggingEndpointResponse) XXX_DiscardUnknown() { |
| 652 | xxx_messageInfo_GetLoggingEndpointResponse.DiscardUnknown(m) |
| 653 | } |
| 654 | |
| 655 | var xxx_messageInfo_GetLoggingEndpointResponse proto.InternalMessageInfo |
| 656 | |
| 657 | func (m *GetLoggingEndpointResponse) GetStatus() Status { |
| 658 | if m != nil { |
| 659 | return m.Status |
| 660 | } |
| 661 | return Status_UNDEFINED_STATUS |
| 662 | } |
| 663 | |
| 664 | func (m *GetLoggingEndpointResponse) GetReason() Reason { |
| 665 | if m != nil { |
| 666 | return m.Reason |
| 667 | } |
| 668 | return Reason_UNDEFINED_REASON |
| 669 | } |
| 670 | |
| 671 | func (m *GetLoggingEndpointResponse) GetLoggingEndpoint() string { |
| 672 | if m != nil { |
| 673 | return m.LoggingEndpoint |
| 674 | } |
| 675 | return "" |
| 676 | } |
| 677 | |
| 678 | func (m *GetLoggingEndpointResponse) GetLoggingProtocol() string { |
| 679 | if m != nil { |
| 680 | return m.LoggingProtocol |
| 681 | } |
| 682 | return "" |
| 683 | } |
| 684 | |
| 685 | type SetMsgBusEndpointRequest struct { |
| 686 | MsgbusEndpoint string `protobuf:"bytes,1,opt,name=msgbus_endpoint,json=msgbusEndpoint,proto3" json:"msgbus_endpoint,omitempty"` |
| 687 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 688 | XXX_unrecognized []byte `json:"-"` |
| 689 | XXX_sizecache int32 `json:"-"` |
| 690 | } |
| 691 | |
| 692 | func (m *SetMsgBusEndpointRequest) Reset() { *m = SetMsgBusEndpointRequest{} } |
| 693 | func (m *SetMsgBusEndpointRequest) String() string { return proto.CompactTextString(m) } |
| 694 | func (*SetMsgBusEndpointRequest) ProtoMessage() {} |
| 695 | func (*SetMsgBusEndpointRequest) Descriptor() ([]byte, []int) { |
| 696 | return fileDescriptor_eae902e73066286d, []int{13} |
| 697 | } |
| 698 | |
| 699 | func (m *SetMsgBusEndpointRequest) XXX_Unmarshal(b []byte) error { |
| 700 | return xxx_messageInfo_SetMsgBusEndpointRequest.Unmarshal(m, b) |
| 701 | } |
| 702 | func (m *SetMsgBusEndpointRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 703 | return xxx_messageInfo_SetMsgBusEndpointRequest.Marshal(b, m, deterministic) |
| 704 | } |
| 705 | func (m *SetMsgBusEndpointRequest) XXX_Merge(src proto.Message) { |
| 706 | xxx_messageInfo_SetMsgBusEndpointRequest.Merge(m, src) |
| 707 | } |
| 708 | func (m *SetMsgBusEndpointRequest) XXX_Size() int { |
| 709 | return xxx_messageInfo_SetMsgBusEndpointRequest.Size(m) |
| 710 | } |
| 711 | func (m *SetMsgBusEndpointRequest) XXX_DiscardUnknown() { |
| 712 | xxx_messageInfo_SetMsgBusEndpointRequest.DiscardUnknown(m) |
| 713 | } |
| 714 | |
| 715 | var xxx_messageInfo_SetMsgBusEndpointRequest proto.InternalMessageInfo |
| 716 | |
| 717 | func (m *SetMsgBusEndpointRequest) GetMsgbusEndpoint() string { |
| 718 | if m != nil { |
| 719 | return m.MsgbusEndpoint |
| 720 | } |
| 721 | return "" |
| 722 | } |
| 723 | |
| 724 | type GetMsgBusEndpointResponse struct { |
| 725 | Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=dmi.Status" json:"status,omitempty"` |
| 726 | Reason Reason `protobuf:"varint,2,opt,name=reason,proto3,enum=dmi.Reason" json:"reason,omitempty"` |
| 727 | MsgbusEndpoint string `protobuf:"bytes,3,opt,name=msgbus_endpoint,json=msgbusEndpoint,proto3" json:"msgbus_endpoint,omitempty"` |
| 728 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 729 | XXX_unrecognized []byte `json:"-"` |
| 730 | XXX_sizecache int32 `json:"-"` |
| 731 | } |
| 732 | |
| 733 | func (m *GetMsgBusEndpointResponse) Reset() { *m = GetMsgBusEndpointResponse{} } |
| 734 | func (m *GetMsgBusEndpointResponse) String() string { return proto.CompactTextString(m) } |
| 735 | func (*GetMsgBusEndpointResponse) ProtoMessage() {} |
| 736 | func (*GetMsgBusEndpointResponse) Descriptor() ([]byte, []int) { |
| 737 | return fileDescriptor_eae902e73066286d, []int{14} |
| 738 | } |
| 739 | |
| 740 | func (m *GetMsgBusEndpointResponse) XXX_Unmarshal(b []byte) error { |
| 741 | return xxx_messageInfo_GetMsgBusEndpointResponse.Unmarshal(m, b) |
| 742 | } |
| 743 | func (m *GetMsgBusEndpointResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 744 | return xxx_messageInfo_GetMsgBusEndpointResponse.Marshal(b, m, deterministic) |
| 745 | } |
| 746 | func (m *GetMsgBusEndpointResponse) XXX_Merge(src proto.Message) { |
| 747 | xxx_messageInfo_GetMsgBusEndpointResponse.Merge(m, src) |
| 748 | } |
| 749 | func (m *GetMsgBusEndpointResponse) XXX_Size() int { |
| 750 | return xxx_messageInfo_GetMsgBusEndpointResponse.Size(m) |
| 751 | } |
| 752 | func (m *GetMsgBusEndpointResponse) XXX_DiscardUnknown() { |
| 753 | xxx_messageInfo_GetMsgBusEndpointResponse.DiscardUnknown(m) |
| 754 | } |
| 755 | |
| 756 | var xxx_messageInfo_GetMsgBusEndpointResponse proto.InternalMessageInfo |
| 757 | |
| 758 | func (m *GetMsgBusEndpointResponse) GetStatus() Status { |
| 759 | if m != nil { |
| 760 | return m.Status |
| 761 | } |
| 762 | return Status_UNDEFINED_STATUS |
| 763 | } |
| 764 | |
| 765 | func (m *GetMsgBusEndpointResponse) GetReason() Reason { |
| 766 | if m != nil { |
| 767 | return m.Reason |
| 768 | } |
| 769 | return Reason_UNDEFINED_REASON |
| 770 | } |
| 771 | |
| 772 | func (m *GetMsgBusEndpointResponse) GetMsgbusEndpoint() string { |
| 773 | if m != nil { |
| 774 | return m.MsgbusEndpoint |
| 775 | } |
| 776 | return "" |
| 777 | } |
| 778 | |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 779 | func init() { |
| 780 | proto.RegisterType((*PhysicalInventoryRequest)(nil), "dmi.PhysicalInventoryRequest") |
| 781 | proto.RegisterType((*PhysicalInventoryResponse)(nil), "dmi.PhysicalInventoryResponse") |
| 782 | proto.RegisterType((*HWComponentInfoGetRequest)(nil), "dmi.HWComponentInfoGetRequest") |
aghosh | c301dcd | 2020-09-03 16:55:34 +0100 | [diff] [blame] | 783 | proto.RegisterType((*HWComponentInfoGetResponse)(nil), "dmi.HWComponentInfoGetResponse") |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 784 | proto.RegisterType((*HWComponentInfoSetRequest)(nil), "dmi.HWComponentInfoSetRequest") |
| 785 | proto.RegisterType((*HWComponentInfoSetResponse)(nil), "dmi.HWComponentInfoSetResponse") |
| 786 | proto.RegisterType((*StartManagingDeviceResponse)(nil), "dmi.StartManagingDeviceResponse") |
Amit Ghosh | 366228e | 2020-07-06 13:46:42 +0100 | [diff] [blame] | 787 | proto.RegisterType((*StopManagingDeviceRequest)(nil), "dmi.StopManagingDeviceRequest") |
| 788 | proto.RegisterType((*StopManagingDeviceResponse)(nil), "dmi.StopManagingDeviceResponse") |
Andrea Campanella | cb990bc | 2020-09-22 12:50:56 +0200 | [diff] [blame] | 789 | proto.RegisterType((*ManagedDevicesResponse)(nil), "dmi.ManagedDevicesResponse") |
amit.ghosh | 188a84f | 2020-09-27 20:59:25 +0200 | [diff] [blame] | 790 | proto.RegisterType((*SetLoggingEndpointRequest)(nil), "dmi.SetLoggingEndpointRequest") |
| 791 | proto.RegisterType((*SetRemoteEndpointResponse)(nil), "dmi.SetRemoteEndpointResponse") |
| 792 | proto.RegisterType((*GetLoggingEndpointResponse)(nil), "dmi.GetLoggingEndpointResponse") |
| 793 | proto.RegisterType((*SetMsgBusEndpointRequest)(nil), "dmi.SetMsgBusEndpointRequest") |
| 794 | proto.RegisterType((*GetMsgBusEndpointResponse)(nil), "dmi.GetMsgBusEndpointResponse") |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 795 | } |
| 796 | |
| 797 | func init() { proto.RegisterFile("dmi/hw_management_service.proto", fileDescriptor_eae902e73066286d) } |
| 798 | |
| 799 | var fileDescriptor_eae902e73066286d = []byte{ |
amit.ghosh | 188a84f | 2020-09-27 20:59:25 +0200 | [diff] [blame] | 800 | // 797 bytes of a gzipped FileDescriptorProto |
| 801 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x56, 0xcf, 0x4e, 0xdb, 0x4e, |
| 802 | 0x10, 0x96, 0x09, 0x02, 0x65, 0xf8, 0x11, 0x7e, 0xb8, 0x15, 0x4a, 0x8c, 0x0a, 0xc8, 0x55, 0xd5, |
| 803 | 0xbf, 0xc4, 0x28, 0x9c, 0xaa, 0x5e, 0x2a, 0x28, 0x4d, 0x50, 0x09, 0x42, 0x76, 0x51, 0xa4, 0x5e, |
| 804 | 0x22, 0xc7, 0x9e, 0x38, 0x2b, 0xc5, 0xbb, 0xa9, 0xbd, 0x0e, 0xe2, 0x25, 0x7a, 0x68, 0x7b, 0xad, |
| 805 | 0xd4, 0x07, 0xe9, 0x5b, 0xb4, 0x0f, 0x54, 0x79, 0xd7, 0x4e, 0x42, 0x62, 0x03, 0x42, 0x41, 0xea, |
| 806 | 0xcd, 0xde, 0xf9, 0xf6, 0x9b, 0x99, 0x6f, 0x77, 0x66, 0x07, 0xb6, 0x5d, 0x9f, 0x18, 0xbd, 0x8b, |
| 807 | 0xb6, 0x6f, 0x53, 0xdb, 0x43, 0x1f, 0x29, 0x6f, 0x87, 0x18, 0x0c, 0x89, 0x83, 0xd5, 0x41, 0xc0, |
| 808 | 0x38, 0x53, 0x0b, 0xae, 0x4f, 0xb4, 0xf5, 0x18, 0xe5, 0x30, 0xdf, 0x67, 0x34, 0x94, 0xeb, 0xda, |
| 809 | 0x7f, 0x72, 0x63, 0xf2, 0xb7, 0xe9, 0x31, 0xe6, 0xf5, 0xd1, 0x10, 0x7f, 0x9d, 0xa8, 0x6b, 0xa0, |
| 810 | 0x3f, 0xe0, 0x97, 0xd2, 0xa8, 0xbf, 0x87, 0xf2, 0x59, 0xef, 0x32, 0x24, 0x8e, 0xdd, 0x3f, 0xa6, |
| 811 | 0x43, 0xa4, 0x9c, 0x05, 0x97, 0x26, 0x7e, 0x8e, 0x30, 0xe4, 0xea, 0x0b, 0x58, 0x71, 0x31, 0x76, |
| 812 | 0xd7, 0x8e, 0x22, 0xe2, 0x96, 0x95, 0x1d, 0xe5, 0xd9, 0x4a, 0xad, 0x58, 0x75, 0x7d, 0x52, 0x3d, |
| 813 | 0x8f, 0x88, 0x6b, 0x82, 0xb4, 0xc6, 0xdf, 0xfa, 0x57, 0x05, 0x2a, 0x19, 0x44, 0xe1, 0x80, 0xd1, |
| 814 | 0x10, 0xd5, 0xc7, 0xb0, 0x14, 0x72, 0x9b, 0x47, 0xa1, 0x20, 0x29, 0xd5, 0x56, 0x04, 0x89, 0x25, |
| 815 | 0x96, 0xcc, 0xc4, 0x14, 0x83, 0x02, 0xb4, 0x43, 0x46, 0xcb, 0x0b, 0x13, 0x20, 0x53, 0x2c, 0x99, |
| 816 | 0x89, 0x49, 0x7d, 0x09, 0x45, 0x92, 0xd2, 0x97, 0x0b, 0x22, 0xa2, 0x55, 0x81, 0x6b, 0xd8, 0x81, |
| 817 | 0x7b, 0x61, 0x07, 0x68, 0x8e, 0xed, 0xfa, 0x4f, 0x05, 0x2a, 0x8d, 0xd6, 0x21, 0xf3, 0x07, 0x8c, |
| 818 | 0x22, 0xe5, 0xc7, 0xb4, 0xcb, 0xea, 0xc8, 0xef, 0x90, 0x9e, 0xba, 0x07, 0x25, 0x27, 0xa5, 0x91, |
| 819 | 0xf0, 0x85, 0x69, 0xf8, 0xea, 0x08, 0x20, 0x76, 0x3c, 0x99, 0xdc, 0x41, 0x6d, 0x1f, 0x45, 0xb4, |
| 820 | 0xc5, 0x09, 0xd8, 0xa9, 0xed, 0xa3, 0xfe, 0x5d, 0x01, 0x2d, 0x2b, 0xc4, 0xb9, 0x0b, 0xf7, 0x0a, |
| 821 | 0x8a, 0x23, 0xcf, 0x89, 0x70, 0x25, 0x81, 0x1b, 0xf9, 0x36, 0xc7, 0x00, 0xfd, 0xcf, 0xac, 0x72, |
| 822 | 0xd6, 0xbf, 0xa5, 0x9c, 0x5a, 0x83, 0x65, 0xa7, 0x67, 0x53, 0x0f, 0xc3, 0xf2, 0xa2, 0x60, 0x2c, |
| 823 | 0x0b, 0xc6, 0x26, 0x73, 0x49, 0x97, 0xd8, 0x9d, 0x3e, 0x8e, 0x13, 0x4b, 0x81, 0x7a, 0x77, 0x46, |
| 824 | 0x6c, 0xeb, 0x3e, 0xc4, 0xd6, 0xbf, 0x29, 0xb0, 0x69, 0x71, 0x3b, 0xe0, 0xcd, 0xb8, 0x74, 0x09, |
| 825 | 0xf5, 0xde, 0x09, 0x41, 0xee, 0xe1, 0x58, 0xa7, 0x8e, 0xa2, 0x70, 0x5d, 0x8d, 0x1a, 0x50, 0xb1, |
| 826 | 0x38, 0x1b, 0x4c, 0xc7, 0x24, 0xcf, 0x54, 0x85, 0x45, 0xa1, 0xb5, 0x22, 0xb4, 0x16, 0xdf, 0xb1, |
| 827 | 0x5c, 0x59, 0x1b, 0xe6, 0x2e, 0xd7, 0x09, 0x6c, 0x08, 0x1f, 0xe8, 0x4a, 0x17, 0xe1, 0xc8, 0x47, |
| 828 | 0x0d, 0x96, 0x65, 0x02, 0xb1, 0x93, 0xc2, 0xf5, 0x87, 0x9c, 0x00, 0xf5, 0x1f, 0x0a, 0x54, 0x2c, |
| 829 | 0xe4, 0x27, 0xcc, 0x8b, 0x83, 0x3e, 0xa2, 0xee, 0x80, 0x11, 0x7a, 0xa7, 0xbb, 0xfb, 0x1c, 0xfe, |
| 830 | 0xef, 0x4b, 0x96, 0x36, 0x26, 0x34, 0x22, 0x8d, 0xa2, 0xb9, 0xd6, 0xbf, 0xca, 0x3e, 0x09, 0x15, |
| 831 | 0x8d, 0xd5, 0x61, 0xfd, 0xe4, 0xda, 0xa6, 0xd0, 0xb3, 0x64, 0x59, 0x47, 0x11, 0x9e, 0x89, 0x3e, |
| 832 | 0xe3, 0x38, 0x8e, 0x6e, 0xee, 0xa2, 0xfe, 0x52, 0x40, 0xab, 0x67, 0xc8, 0x30, 0xf7, 0x2b, 0x98, |
| 833 | 0xa5, 0x52, 0xe1, 0xf6, 0x2a, 0x2d, 0x66, 0xab, 0x74, 0x08, 0x65, 0x0b, 0x79, 0x33, 0xf4, 0x0e, |
| 834 | 0xa2, 0x70, 0xfa, 0x0c, 0x9f, 0xc2, 0x9a, 0x1f, 0x7a, 0x9d, 0x28, 0x1c, 0x3b, 0x94, 0xd7, 0xb6, |
| 835 | 0x24, 0x97, 0x53, 0xbc, 0xfe, 0x45, 0x81, 0x4a, 0x7d, 0x96, 0x65, 0xee, 0x12, 0x64, 0x04, 0x54, |
| 836 | 0xc8, 0x0a, 0xa8, 0xf6, 0x7b, 0x09, 0x2a, 0xa7, 0x36, 0x27, 0x43, 0x6c, 0xb4, 0x9a, 0xa3, 0x67, |
| 837 | 0xdd, 0x92, 0xaf, 0xba, 0x6a, 0xc1, 0x83, 0x8c, 0xae, 0xa1, 0xe6, 0xde, 0x79, 0x6d, 0x27, 0x8d, |
| 838 | 0x38, 0xaf, 0xd3, 0xec, 0x29, 0xea, 0x39, 0xa8, 0xb3, 0x45, 0xac, 0x6e, 0x25, 0x3b, 0x73, 0xda, |
| 839 | 0x81, 0xb6, 0x9d, 0x6b, 0x4f, 0xc4, 0x6b, 0xc0, 0x7a, 0xac, 0xec, 0x95, 0xb2, 0x55, 0x37, 0xaa, |
| 840 | 0x72, 0xd6, 0xa8, 0xa6, 0xb3, 0x46, 0xf5, 0x28, 0x9e, 0x35, 0xb4, 0x4d, 0x99, 0x41, 0x76, 0x8d, |
| 841 | 0xb7, 0xe0, 0x61, 0x1d, 0xf9, 0xcc, 0xf0, 0xa0, 0x3e, 0x12, 0x9b, 0xf2, 0xa6, 0x13, 0x6d, 0x2b, |
| 842 | 0xcf, 0x3c, 0xca, 0xbc, 0x05, 0x6a, 0x1d, 0xf9, 0x54, 0xc3, 0x4f, 0x32, 0xcf, 0x1d, 0x0b, 0x92, |
| 843 | 0xcc, 0xf3, 0xdf, 0xe4, 0x44, 0xd2, 0x5b, 0x12, 0x5b, 0x37, 0x10, 0x4f, 0xbe, 0x3f, 0x1f, 0x05, |
| 844 | 0xed, 0x54, 0xc1, 0xa6, 0x27, 0x95, 0xd7, 0xd0, 0xb4, 0x91, 0x3d, 0xa7, 0xa3, 0xbc, 0x15, 0x2a, |
| 845 | 0x4c, 0xb3, 0x8e, 0x3b, 0x5e, 0x12, 0xd7, 0x35, 0xad, 0xc2, 0x84, 0xf5, 0x99, 0x52, 0x4c, 0x4e, |
| 846 | 0x27, 0xaf, 0x44, 0x6f, 0x8c, 0xea, 0x83, 0xbc, 0x3e, 0x57, 0x39, 0xf3, 0xae, 0xcf, 0x56, 0x1a, |
| 847 | 0x61, 0x76, 0x21, 0x1f, 0xbc, 0xf9, 0xf4, 0xda, 0x23, 0xbc, 0x17, 0x75, 0xaa, 0x0e, 0xf3, 0x0d, |
| 848 | 0x36, 0x40, 0xea, 0xb0, 0xc0, 0x35, 0x64, 0x27, 0xdf, 0x1d, 0x8f, 0xcf, 0xbb, 0x84, 0x72, 0x0c, |
| 849 | 0xba, 0xb6, 0x83, 0xc6, 0x70, 0xdf, 0xf0, 0x98, 0xe1, 0xfa, 0xa4, 0xb3, 0x24, 0x9c, 0xed, 0xff, |
| 850 | 0x0d, 0x00, 0x00, 0xff, 0xff, 0xb0, 0x43, 0x0d, 0x3e, 0x6e, 0x0b, 0x00, 0x00, |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 851 | } |
| 852 | |
| 853 | // Reference imports to suppress errors if they are not otherwise used. |
| 854 | var _ context.Context |
| 855 | var _ grpc.ClientConn |
| 856 | |
| 857 | // This is a compile-time assertion to ensure that this generated file |
| 858 | // is compatible with the grpc package it is being compiled against. |
| 859 | const _ = grpc.SupportPackageIsVersion4 |
| 860 | |
| 861 | // NativeHWManagementServiceClient is the client API for NativeHWManagementService service. |
| 862 | // |
| 863 | // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| 864 | type NativeHWManagementServiceClient interface { |
| 865 | // Initializes context for a device and sets up required states |
Amit Ghosh | 704462f | 2020-06-24 16:44:56 +0100 | [diff] [blame] | 866 | // In the call to StartManagingDevice, the fields of ModifiableComponent which are relevant |
| 867 | // and their meanings in this context is mentioned below: |
| 868 | // name = The unique name that needs to be assigned to this hardware; |
| 869 | // class = COMPONENT_TYPE_UNDEFINED; |
| 870 | // parent = nil; |
| 871 | // alias = Optional; |
| 872 | // asset_id = Optional; |
| 873 | // uri = IP Address of the Hardware; |
| 874 | StartManagingDevice(ctx context.Context, in *ModifiableComponent, opts ...grpc.CallOption) (NativeHWManagementService_StartManagingDeviceClient, error) |
Amit Ghosh | 366228e | 2020-07-06 13:46:42 +0100 | [diff] [blame] | 875 | // Stop management of a device and clean up any context and caches for that device |
| 876 | StopManagingDevice(ctx context.Context, in *StopManagingDeviceRequest, opts ...grpc.CallOption) (*StopManagingDeviceResponse, error) |
Andrea Campanella | cb990bc | 2020-09-22 12:50:56 +0200 | [diff] [blame] | 877 | // Returns an object containing a list of devices managed by this entity |
| 878 | GetManagedDevices(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ManagedDevicesResponse, error) |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 879 | // Get the HW inventory details of the Device |
| 880 | GetPhysicalInventory(ctx context.Context, in *PhysicalInventoryRequest, opts ...grpc.CallOption) (NativeHWManagementService_GetPhysicalInventoryClient, error) |
| 881 | // Get the details of a particular HW component |
| 882 | GetHWComponentInfo(ctx context.Context, in *HWComponentInfoGetRequest, opts ...grpc.CallOption) (NativeHWManagementService_GetHWComponentInfoClient, error) |
| 883 | // Sets the permissible attributes of a HW component |
| 884 | SetHWComponentInfo(ctx context.Context, in *HWComponentInfoSetRequest, opts ...grpc.CallOption) (*HWComponentInfoSetResponse, error) |
amit.ghosh | 188a84f | 2020-09-27 20:59:25 +0200 | [diff] [blame] | 885 | // Sets the location to which logs need to be shipped |
| 886 | SetLoggingEndpoint(ctx context.Context, in *SetLoggingEndpointRequest, opts ...grpc.CallOption) (*SetRemoteEndpointResponse, error) |
| 887 | // Gets the configured location to which the logs are being shipped |
| 888 | GetLoggingEndpoint(ctx context.Context, in *Uuid, opts ...grpc.CallOption) (*GetLoggingEndpointResponse, error) |
| 889 | // Sets the location of the Message Bus to which events and metrics are shipped |
| 890 | SetMsgBusEndpoint(ctx context.Context, in *SetMsgBusEndpointRequest, opts ...grpc.CallOption) (*SetRemoteEndpointResponse, error) |
| 891 | // Gets the configured location to which the events and metrics are being shipped |
| 892 | GetMsgBusEndpoint(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*GetMsgBusEndpointResponse, error) |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 893 | } |
| 894 | |
| 895 | type nativeHWManagementServiceClient struct { |
| 896 | cc *grpc.ClientConn |
| 897 | } |
| 898 | |
| 899 | func NewNativeHWManagementServiceClient(cc *grpc.ClientConn) NativeHWManagementServiceClient { |
| 900 | return &nativeHWManagementServiceClient{cc} |
| 901 | } |
| 902 | |
Amit Ghosh | 704462f | 2020-06-24 16:44:56 +0100 | [diff] [blame] | 903 | 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] | 904 | stream, err := c.cc.NewStream(ctx, &_NativeHWManagementService_serviceDesc.Streams[0], "/dmi.NativeHWManagementService/StartManagingDevice", opts...) |
| 905 | if err != nil { |
| 906 | return nil, err |
| 907 | } |
| 908 | x := &nativeHWManagementServiceStartManagingDeviceClient{stream} |
| 909 | if err := x.ClientStream.SendMsg(in); err != nil { |
| 910 | return nil, err |
| 911 | } |
| 912 | if err := x.ClientStream.CloseSend(); err != nil { |
| 913 | return nil, err |
| 914 | } |
| 915 | return x, nil |
| 916 | } |
| 917 | |
| 918 | type NativeHWManagementService_StartManagingDeviceClient interface { |
| 919 | Recv() (*StartManagingDeviceResponse, error) |
| 920 | grpc.ClientStream |
| 921 | } |
| 922 | |
| 923 | type nativeHWManagementServiceStartManagingDeviceClient struct { |
| 924 | grpc.ClientStream |
| 925 | } |
| 926 | |
| 927 | func (x *nativeHWManagementServiceStartManagingDeviceClient) Recv() (*StartManagingDeviceResponse, error) { |
| 928 | m := new(StartManagingDeviceResponse) |
| 929 | if err := x.ClientStream.RecvMsg(m); err != nil { |
| 930 | return nil, err |
| 931 | } |
| 932 | return m, nil |
| 933 | } |
| 934 | |
Amit Ghosh | 366228e | 2020-07-06 13:46:42 +0100 | [diff] [blame] | 935 | func (c *nativeHWManagementServiceClient) StopManagingDevice(ctx context.Context, in *StopManagingDeviceRequest, opts ...grpc.CallOption) (*StopManagingDeviceResponse, error) { |
| 936 | out := new(StopManagingDeviceResponse) |
| 937 | err := c.cc.Invoke(ctx, "/dmi.NativeHWManagementService/StopManagingDevice", in, out, opts...) |
| 938 | if err != nil { |
| 939 | return nil, err |
| 940 | } |
| 941 | return out, nil |
| 942 | } |
| 943 | |
Andrea Campanella | cb990bc | 2020-09-22 12:50:56 +0200 | [diff] [blame] | 944 | func (c *nativeHWManagementServiceClient) GetManagedDevices(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ManagedDevicesResponse, error) { |
| 945 | out := new(ManagedDevicesResponse) |
| 946 | err := c.cc.Invoke(ctx, "/dmi.NativeHWManagementService/GetManagedDevices", in, out, opts...) |
| 947 | if err != nil { |
| 948 | return nil, err |
| 949 | } |
| 950 | return out, nil |
| 951 | } |
| 952 | |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 953 | func (c *nativeHWManagementServiceClient) GetPhysicalInventory(ctx context.Context, in *PhysicalInventoryRequest, opts ...grpc.CallOption) (NativeHWManagementService_GetPhysicalInventoryClient, error) { |
| 954 | stream, err := c.cc.NewStream(ctx, &_NativeHWManagementService_serviceDesc.Streams[1], "/dmi.NativeHWManagementService/GetPhysicalInventory", opts...) |
| 955 | if err != nil { |
| 956 | return nil, err |
| 957 | } |
| 958 | x := &nativeHWManagementServiceGetPhysicalInventoryClient{stream} |
| 959 | if err := x.ClientStream.SendMsg(in); err != nil { |
| 960 | return nil, err |
| 961 | } |
| 962 | if err := x.ClientStream.CloseSend(); err != nil { |
| 963 | return nil, err |
| 964 | } |
| 965 | return x, nil |
| 966 | } |
| 967 | |
| 968 | type NativeHWManagementService_GetPhysicalInventoryClient interface { |
| 969 | Recv() (*PhysicalInventoryResponse, error) |
| 970 | grpc.ClientStream |
| 971 | } |
| 972 | |
| 973 | type nativeHWManagementServiceGetPhysicalInventoryClient struct { |
| 974 | grpc.ClientStream |
| 975 | } |
| 976 | |
| 977 | func (x *nativeHWManagementServiceGetPhysicalInventoryClient) Recv() (*PhysicalInventoryResponse, error) { |
| 978 | m := new(PhysicalInventoryResponse) |
| 979 | if err := x.ClientStream.RecvMsg(m); err != nil { |
| 980 | return nil, err |
| 981 | } |
| 982 | return m, nil |
| 983 | } |
| 984 | |
| 985 | func (c *nativeHWManagementServiceClient) GetHWComponentInfo(ctx context.Context, in *HWComponentInfoGetRequest, opts ...grpc.CallOption) (NativeHWManagementService_GetHWComponentInfoClient, error) { |
| 986 | stream, err := c.cc.NewStream(ctx, &_NativeHWManagementService_serviceDesc.Streams[2], "/dmi.NativeHWManagementService/GetHWComponentInfo", opts...) |
| 987 | if err != nil { |
| 988 | return nil, err |
| 989 | } |
| 990 | x := &nativeHWManagementServiceGetHWComponentInfoClient{stream} |
| 991 | if err := x.ClientStream.SendMsg(in); err != nil { |
| 992 | return nil, err |
| 993 | } |
| 994 | if err := x.ClientStream.CloseSend(); err != nil { |
| 995 | return nil, err |
| 996 | } |
| 997 | return x, nil |
| 998 | } |
| 999 | |
| 1000 | type NativeHWManagementService_GetHWComponentInfoClient interface { |
aghosh | c301dcd | 2020-09-03 16:55:34 +0100 | [diff] [blame] | 1001 | Recv() (*HWComponentInfoGetResponse, error) |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 1002 | grpc.ClientStream |
| 1003 | } |
| 1004 | |
| 1005 | type nativeHWManagementServiceGetHWComponentInfoClient struct { |
| 1006 | grpc.ClientStream |
| 1007 | } |
| 1008 | |
aghosh | c301dcd | 2020-09-03 16:55:34 +0100 | [diff] [blame] | 1009 | func (x *nativeHWManagementServiceGetHWComponentInfoClient) Recv() (*HWComponentInfoGetResponse, error) { |
| 1010 | m := new(HWComponentInfoGetResponse) |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 1011 | if err := x.ClientStream.RecvMsg(m); err != nil { |
| 1012 | return nil, err |
| 1013 | } |
| 1014 | return m, nil |
| 1015 | } |
| 1016 | |
| 1017 | func (c *nativeHWManagementServiceClient) SetHWComponentInfo(ctx context.Context, in *HWComponentInfoSetRequest, opts ...grpc.CallOption) (*HWComponentInfoSetResponse, error) { |
| 1018 | out := new(HWComponentInfoSetResponse) |
| 1019 | err := c.cc.Invoke(ctx, "/dmi.NativeHWManagementService/SetHWComponentInfo", in, out, opts...) |
| 1020 | if err != nil { |
| 1021 | return nil, err |
| 1022 | } |
| 1023 | return out, nil |
| 1024 | } |
| 1025 | |
amit.ghosh | 188a84f | 2020-09-27 20:59:25 +0200 | [diff] [blame] | 1026 | func (c *nativeHWManagementServiceClient) SetLoggingEndpoint(ctx context.Context, in *SetLoggingEndpointRequest, opts ...grpc.CallOption) (*SetRemoteEndpointResponse, error) { |
| 1027 | out := new(SetRemoteEndpointResponse) |
| 1028 | err := c.cc.Invoke(ctx, "/dmi.NativeHWManagementService/SetLoggingEndpoint", in, out, opts...) |
| 1029 | if err != nil { |
| 1030 | return nil, err |
| 1031 | } |
| 1032 | return out, nil |
| 1033 | } |
| 1034 | |
| 1035 | func (c *nativeHWManagementServiceClient) GetLoggingEndpoint(ctx context.Context, in *Uuid, opts ...grpc.CallOption) (*GetLoggingEndpointResponse, error) { |
| 1036 | out := new(GetLoggingEndpointResponse) |
| 1037 | err := c.cc.Invoke(ctx, "/dmi.NativeHWManagementService/GetLoggingEndpoint", in, out, opts...) |
| 1038 | if err != nil { |
| 1039 | return nil, err |
| 1040 | } |
| 1041 | return out, nil |
| 1042 | } |
| 1043 | |
| 1044 | func (c *nativeHWManagementServiceClient) SetMsgBusEndpoint(ctx context.Context, in *SetMsgBusEndpointRequest, opts ...grpc.CallOption) (*SetRemoteEndpointResponse, error) { |
| 1045 | out := new(SetRemoteEndpointResponse) |
| 1046 | err := c.cc.Invoke(ctx, "/dmi.NativeHWManagementService/SetMsgBusEndpoint", in, out, opts...) |
| 1047 | if err != nil { |
| 1048 | return nil, err |
| 1049 | } |
| 1050 | return out, nil |
| 1051 | } |
| 1052 | |
| 1053 | func (c *nativeHWManagementServiceClient) GetMsgBusEndpoint(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*GetMsgBusEndpointResponse, error) { |
| 1054 | out := new(GetMsgBusEndpointResponse) |
| 1055 | err := c.cc.Invoke(ctx, "/dmi.NativeHWManagementService/GetMsgBusEndpoint", in, out, opts...) |
| 1056 | if err != nil { |
| 1057 | return nil, err |
| 1058 | } |
| 1059 | return out, nil |
| 1060 | } |
| 1061 | |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 1062 | // NativeHWManagementServiceServer is the server API for NativeHWManagementService service. |
| 1063 | type NativeHWManagementServiceServer interface { |
| 1064 | // Initializes context for a device and sets up required states |
Amit Ghosh | 704462f | 2020-06-24 16:44:56 +0100 | [diff] [blame] | 1065 | // In the call to StartManagingDevice, the fields of ModifiableComponent which are relevant |
| 1066 | // and their meanings in this context is mentioned below: |
| 1067 | // name = The unique name that needs to be assigned to this hardware; |
| 1068 | // class = COMPONENT_TYPE_UNDEFINED; |
| 1069 | // parent = nil; |
| 1070 | // alias = Optional; |
| 1071 | // asset_id = Optional; |
| 1072 | // uri = IP Address of the Hardware; |
| 1073 | StartManagingDevice(*ModifiableComponent, NativeHWManagementService_StartManagingDeviceServer) error |
Amit Ghosh | 366228e | 2020-07-06 13:46:42 +0100 | [diff] [blame] | 1074 | // Stop management of a device and clean up any context and caches for that device |
| 1075 | StopManagingDevice(context.Context, *StopManagingDeviceRequest) (*StopManagingDeviceResponse, error) |
Andrea Campanella | cb990bc | 2020-09-22 12:50:56 +0200 | [diff] [blame] | 1076 | // Returns an object containing a list of devices managed by this entity |
| 1077 | GetManagedDevices(context.Context, *empty.Empty) (*ManagedDevicesResponse, error) |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 1078 | // Get the HW inventory details of the Device |
| 1079 | GetPhysicalInventory(*PhysicalInventoryRequest, NativeHWManagementService_GetPhysicalInventoryServer) error |
| 1080 | // Get the details of a particular HW component |
| 1081 | GetHWComponentInfo(*HWComponentInfoGetRequest, NativeHWManagementService_GetHWComponentInfoServer) error |
| 1082 | // Sets the permissible attributes of a HW component |
| 1083 | SetHWComponentInfo(context.Context, *HWComponentInfoSetRequest) (*HWComponentInfoSetResponse, error) |
amit.ghosh | 188a84f | 2020-09-27 20:59:25 +0200 | [diff] [blame] | 1084 | // Sets the location to which logs need to be shipped |
| 1085 | SetLoggingEndpoint(context.Context, *SetLoggingEndpointRequest) (*SetRemoteEndpointResponse, error) |
| 1086 | // Gets the configured location to which the logs are being shipped |
| 1087 | GetLoggingEndpoint(context.Context, *Uuid) (*GetLoggingEndpointResponse, error) |
| 1088 | // Sets the location of the Message Bus to which events and metrics are shipped |
| 1089 | SetMsgBusEndpoint(context.Context, *SetMsgBusEndpointRequest) (*SetRemoteEndpointResponse, error) |
| 1090 | // Gets the configured location to which the events and metrics are being shipped |
| 1091 | GetMsgBusEndpoint(context.Context, *empty.Empty) (*GetMsgBusEndpointResponse, error) |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 1092 | } |
| 1093 | |
| 1094 | func RegisterNativeHWManagementServiceServer(s *grpc.Server, srv NativeHWManagementServiceServer) { |
| 1095 | s.RegisterService(&_NativeHWManagementService_serviceDesc, srv) |
| 1096 | } |
| 1097 | |
| 1098 | func _NativeHWManagementService_StartManagingDevice_Handler(srv interface{}, stream grpc.ServerStream) error { |
Amit Ghosh | 704462f | 2020-06-24 16:44:56 +0100 | [diff] [blame] | 1099 | m := new(ModifiableComponent) |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 1100 | if err := stream.RecvMsg(m); err != nil { |
| 1101 | return err |
| 1102 | } |
| 1103 | return srv.(NativeHWManagementServiceServer).StartManagingDevice(m, &nativeHWManagementServiceStartManagingDeviceServer{stream}) |
| 1104 | } |
| 1105 | |
| 1106 | type NativeHWManagementService_StartManagingDeviceServer interface { |
| 1107 | Send(*StartManagingDeviceResponse) error |
| 1108 | grpc.ServerStream |
| 1109 | } |
| 1110 | |
| 1111 | type nativeHWManagementServiceStartManagingDeviceServer struct { |
| 1112 | grpc.ServerStream |
| 1113 | } |
| 1114 | |
| 1115 | func (x *nativeHWManagementServiceStartManagingDeviceServer) Send(m *StartManagingDeviceResponse) error { |
| 1116 | return x.ServerStream.SendMsg(m) |
| 1117 | } |
| 1118 | |
Amit Ghosh | 366228e | 2020-07-06 13:46:42 +0100 | [diff] [blame] | 1119 | func _NativeHWManagementService_StopManagingDevice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1120 | in := new(StopManagingDeviceRequest) |
| 1121 | if err := dec(in); err != nil { |
| 1122 | return nil, err |
| 1123 | } |
| 1124 | if interceptor == nil { |
| 1125 | return srv.(NativeHWManagementServiceServer).StopManagingDevice(ctx, in) |
| 1126 | } |
| 1127 | info := &grpc.UnaryServerInfo{ |
| 1128 | Server: srv, |
| 1129 | FullMethod: "/dmi.NativeHWManagementService/StopManagingDevice", |
| 1130 | } |
| 1131 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1132 | return srv.(NativeHWManagementServiceServer).StopManagingDevice(ctx, req.(*StopManagingDeviceRequest)) |
| 1133 | } |
| 1134 | return interceptor(ctx, in, info, handler) |
| 1135 | } |
| 1136 | |
Andrea Campanella | cb990bc | 2020-09-22 12:50:56 +0200 | [diff] [blame] | 1137 | func _NativeHWManagementService_GetManagedDevices_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1138 | in := new(empty.Empty) |
| 1139 | if err := dec(in); err != nil { |
| 1140 | return nil, err |
| 1141 | } |
| 1142 | if interceptor == nil { |
| 1143 | return srv.(NativeHWManagementServiceServer).GetManagedDevices(ctx, in) |
| 1144 | } |
| 1145 | info := &grpc.UnaryServerInfo{ |
| 1146 | Server: srv, |
| 1147 | FullMethod: "/dmi.NativeHWManagementService/GetManagedDevices", |
| 1148 | } |
| 1149 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1150 | return srv.(NativeHWManagementServiceServer).GetManagedDevices(ctx, req.(*empty.Empty)) |
| 1151 | } |
| 1152 | return interceptor(ctx, in, info, handler) |
| 1153 | } |
| 1154 | |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 1155 | func _NativeHWManagementService_GetPhysicalInventory_Handler(srv interface{}, stream grpc.ServerStream) error { |
| 1156 | m := new(PhysicalInventoryRequest) |
| 1157 | if err := stream.RecvMsg(m); err != nil { |
| 1158 | return err |
| 1159 | } |
| 1160 | return srv.(NativeHWManagementServiceServer).GetPhysicalInventory(m, &nativeHWManagementServiceGetPhysicalInventoryServer{stream}) |
| 1161 | } |
| 1162 | |
| 1163 | type NativeHWManagementService_GetPhysicalInventoryServer interface { |
| 1164 | Send(*PhysicalInventoryResponse) error |
| 1165 | grpc.ServerStream |
| 1166 | } |
| 1167 | |
| 1168 | type nativeHWManagementServiceGetPhysicalInventoryServer struct { |
| 1169 | grpc.ServerStream |
| 1170 | } |
| 1171 | |
| 1172 | func (x *nativeHWManagementServiceGetPhysicalInventoryServer) Send(m *PhysicalInventoryResponse) error { |
| 1173 | return x.ServerStream.SendMsg(m) |
| 1174 | } |
| 1175 | |
| 1176 | func _NativeHWManagementService_GetHWComponentInfo_Handler(srv interface{}, stream grpc.ServerStream) error { |
| 1177 | m := new(HWComponentInfoGetRequest) |
| 1178 | if err := stream.RecvMsg(m); err != nil { |
| 1179 | return err |
| 1180 | } |
| 1181 | return srv.(NativeHWManagementServiceServer).GetHWComponentInfo(m, &nativeHWManagementServiceGetHWComponentInfoServer{stream}) |
| 1182 | } |
| 1183 | |
| 1184 | type NativeHWManagementService_GetHWComponentInfoServer interface { |
aghosh | c301dcd | 2020-09-03 16:55:34 +0100 | [diff] [blame] | 1185 | Send(*HWComponentInfoGetResponse) error |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 1186 | grpc.ServerStream |
| 1187 | } |
| 1188 | |
| 1189 | type nativeHWManagementServiceGetHWComponentInfoServer struct { |
| 1190 | grpc.ServerStream |
| 1191 | } |
| 1192 | |
aghosh | c301dcd | 2020-09-03 16:55:34 +0100 | [diff] [blame] | 1193 | func (x *nativeHWManagementServiceGetHWComponentInfoServer) Send(m *HWComponentInfoGetResponse) error { |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 1194 | return x.ServerStream.SendMsg(m) |
| 1195 | } |
| 1196 | |
| 1197 | func _NativeHWManagementService_SetHWComponentInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1198 | in := new(HWComponentInfoSetRequest) |
| 1199 | if err := dec(in); err != nil { |
| 1200 | return nil, err |
| 1201 | } |
| 1202 | if interceptor == nil { |
| 1203 | return srv.(NativeHWManagementServiceServer).SetHWComponentInfo(ctx, in) |
| 1204 | } |
| 1205 | info := &grpc.UnaryServerInfo{ |
| 1206 | Server: srv, |
| 1207 | FullMethod: "/dmi.NativeHWManagementService/SetHWComponentInfo", |
| 1208 | } |
| 1209 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1210 | return srv.(NativeHWManagementServiceServer).SetHWComponentInfo(ctx, req.(*HWComponentInfoSetRequest)) |
| 1211 | } |
| 1212 | return interceptor(ctx, in, info, handler) |
| 1213 | } |
| 1214 | |
amit.ghosh | 188a84f | 2020-09-27 20:59:25 +0200 | [diff] [blame] | 1215 | func _NativeHWManagementService_SetLoggingEndpoint_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1216 | in := new(SetLoggingEndpointRequest) |
| 1217 | if err := dec(in); err != nil { |
| 1218 | return nil, err |
| 1219 | } |
| 1220 | if interceptor == nil { |
| 1221 | return srv.(NativeHWManagementServiceServer).SetLoggingEndpoint(ctx, in) |
| 1222 | } |
| 1223 | info := &grpc.UnaryServerInfo{ |
| 1224 | Server: srv, |
| 1225 | FullMethod: "/dmi.NativeHWManagementService/SetLoggingEndpoint", |
| 1226 | } |
| 1227 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1228 | return srv.(NativeHWManagementServiceServer).SetLoggingEndpoint(ctx, req.(*SetLoggingEndpointRequest)) |
| 1229 | } |
| 1230 | return interceptor(ctx, in, info, handler) |
| 1231 | } |
| 1232 | |
| 1233 | func _NativeHWManagementService_GetLoggingEndpoint_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1234 | in := new(Uuid) |
| 1235 | if err := dec(in); err != nil { |
| 1236 | return nil, err |
| 1237 | } |
| 1238 | if interceptor == nil { |
| 1239 | return srv.(NativeHWManagementServiceServer).GetLoggingEndpoint(ctx, in) |
| 1240 | } |
| 1241 | info := &grpc.UnaryServerInfo{ |
| 1242 | Server: srv, |
| 1243 | FullMethod: "/dmi.NativeHWManagementService/GetLoggingEndpoint", |
| 1244 | } |
| 1245 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1246 | return srv.(NativeHWManagementServiceServer).GetLoggingEndpoint(ctx, req.(*Uuid)) |
| 1247 | } |
| 1248 | return interceptor(ctx, in, info, handler) |
| 1249 | } |
| 1250 | |
| 1251 | func _NativeHWManagementService_SetMsgBusEndpoint_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1252 | in := new(SetMsgBusEndpointRequest) |
| 1253 | if err := dec(in); err != nil { |
| 1254 | return nil, err |
| 1255 | } |
| 1256 | if interceptor == nil { |
| 1257 | return srv.(NativeHWManagementServiceServer).SetMsgBusEndpoint(ctx, in) |
| 1258 | } |
| 1259 | info := &grpc.UnaryServerInfo{ |
| 1260 | Server: srv, |
| 1261 | FullMethod: "/dmi.NativeHWManagementService/SetMsgBusEndpoint", |
| 1262 | } |
| 1263 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1264 | return srv.(NativeHWManagementServiceServer).SetMsgBusEndpoint(ctx, req.(*SetMsgBusEndpointRequest)) |
| 1265 | } |
| 1266 | return interceptor(ctx, in, info, handler) |
| 1267 | } |
| 1268 | |
| 1269 | func _NativeHWManagementService_GetMsgBusEndpoint_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1270 | in := new(empty.Empty) |
| 1271 | if err := dec(in); err != nil { |
| 1272 | return nil, err |
| 1273 | } |
| 1274 | if interceptor == nil { |
| 1275 | return srv.(NativeHWManagementServiceServer).GetMsgBusEndpoint(ctx, in) |
| 1276 | } |
| 1277 | info := &grpc.UnaryServerInfo{ |
| 1278 | Server: srv, |
| 1279 | FullMethod: "/dmi.NativeHWManagementService/GetMsgBusEndpoint", |
| 1280 | } |
| 1281 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1282 | return srv.(NativeHWManagementServiceServer).GetMsgBusEndpoint(ctx, req.(*empty.Empty)) |
| 1283 | } |
| 1284 | return interceptor(ctx, in, info, handler) |
| 1285 | } |
| 1286 | |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 1287 | var _NativeHWManagementService_serviceDesc = grpc.ServiceDesc{ |
| 1288 | ServiceName: "dmi.NativeHWManagementService", |
| 1289 | HandlerType: (*NativeHWManagementServiceServer)(nil), |
| 1290 | Methods: []grpc.MethodDesc{ |
| 1291 | { |
Amit Ghosh | 366228e | 2020-07-06 13:46:42 +0100 | [diff] [blame] | 1292 | MethodName: "StopManagingDevice", |
| 1293 | Handler: _NativeHWManagementService_StopManagingDevice_Handler, |
| 1294 | }, |
| 1295 | { |
Andrea Campanella | cb990bc | 2020-09-22 12:50:56 +0200 | [diff] [blame] | 1296 | MethodName: "GetManagedDevices", |
| 1297 | Handler: _NativeHWManagementService_GetManagedDevices_Handler, |
| 1298 | }, |
| 1299 | { |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 1300 | MethodName: "SetHWComponentInfo", |
| 1301 | Handler: _NativeHWManagementService_SetHWComponentInfo_Handler, |
| 1302 | }, |
amit.ghosh | 188a84f | 2020-09-27 20:59:25 +0200 | [diff] [blame] | 1303 | { |
| 1304 | MethodName: "SetLoggingEndpoint", |
| 1305 | Handler: _NativeHWManagementService_SetLoggingEndpoint_Handler, |
| 1306 | }, |
| 1307 | { |
| 1308 | MethodName: "GetLoggingEndpoint", |
| 1309 | Handler: _NativeHWManagementService_GetLoggingEndpoint_Handler, |
| 1310 | }, |
| 1311 | { |
| 1312 | MethodName: "SetMsgBusEndpoint", |
| 1313 | Handler: _NativeHWManagementService_SetMsgBusEndpoint_Handler, |
| 1314 | }, |
| 1315 | { |
| 1316 | MethodName: "GetMsgBusEndpoint", |
| 1317 | Handler: _NativeHWManagementService_GetMsgBusEndpoint_Handler, |
| 1318 | }, |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 1319 | }, |
| 1320 | Streams: []grpc.StreamDesc{ |
| 1321 | { |
| 1322 | StreamName: "StartManagingDevice", |
| 1323 | Handler: _NativeHWManagementService_StartManagingDevice_Handler, |
| 1324 | ServerStreams: true, |
| 1325 | }, |
| 1326 | { |
| 1327 | StreamName: "GetPhysicalInventory", |
| 1328 | Handler: _NativeHWManagementService_GetPhysicalInventory_Handler, |
| 1329 | ServerStreams: true, |
| 1330 | }, |
| 1331 | { |
| 1332 | StreamName: "GetHWComponentInfo", |
| 1333 | Handler: _NativeHWManagementService_GetHWComponentInfo_Handler, |
| 1334 | ServerStreams: true, |
| 1335 | }, |
| 1336 | }, |
| 1337 | Metadata: "dmi/hw_management_service.proto", |
| 1338 | } |