blob: b53e227ec1c9d1c6015009ba81a905884d45b38c [file] [log] [blame]
Amit Ghosh09f28362020-06-12 21:52:19 +01001// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: dmi/hw_management_service.proto
3
4package dmi
5
6import (
7 context "context"
8 fmt "fmt"
9 proto "github.com/golang/protobuf/proto"
Andrea Campanellacb990bc2020-09-22 12:50:56 +020010 empty "github.com/golang/protobuf/ptypes/empty"
Amit Ghosh09f28362020-06-12 21:52:19 +010011 grpc "google.golang.org/grpc"
12 math "math"
13)
14
15// Reference imports to suppress errors if they are not otherwise used.
16var _ = proto.Marshal
17var _ = fmt.Errorf
18var _ = 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.
24const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
25
26type 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
33func (m *PhysicalInventoryRequest) Reset() { *m = PhysicalInventoryRequest{} }
34func (m *PhysicalInventoryRequest) String() string { return proto.CompactTextString(m) }
35func (*PhysicalInventoryRequest) ProtoMessage() {}
36func (*PhysicalInventoryRequest) Descriptor() ([]byte, []int) {
37 return fileDescriptor_eae902e73066286d, []int{0}
38}
39
40func (m *PhysicalInventoryRequest) XXX_Unmarshal(b []byte) error {
41 return xxx_messageInfo_PhysicalInventoryRequest.Unmarshal(m, b)
42}
43func (m *PhysicalInventoryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
44 return xxx_messageInfo_PhysicalInventoryRequest.Marshal(b, m, deterministic)
45}
46func (m *PhysicalInventoryRequest) XXX_Merge(src proto.Message) {
47 xxx_messageInfo_PhysicalInventoryRequest.Merge(m, src)
48}
49func (m *PhysicalInventoryRequest) XXX_Size() int {
50 return xxx_messageInfo_PhysicalInventoryRequest.Size(m)
51}
52func (m *PhysicalInventoryRequest) XXX_DiscardUnknown() {
53 xxx_messageInfo_PhysicalInventoryRequest.DiscardUnknown(m)
54}
55
56var xxx_messageInfo_PhysicalInventoryRequest proto.InternalMessageInfo
57
58func (m *PhysicalInventoryRequest) GetDeviceUuid() *Uuid {
59 if m != nil {
60 return m.DeviceUuid
61 }
62 return nil
63}
64
65type 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
74func (m *PhysicalInventoryResponse) Reset() { *m = PhysicalInventoryResponse{} }
75func (m *PhysicalInventoryResponse) String() string { return proto.CompactTextString(m) }
76func (*PhysicalInventoryResponse) ProtoMessage() {}
77func (*PhysicalInventoryResponse) Descriptor() ([]byte, []int) {
78 return fileDescriptor_eae902e73066286d, []int{1}
79}
80
81func (m *PhysicalInventoryResponse) XXX_Unmarshal(b []byte) error {
82 return xxx_messageInfo_PhysicalInventoryResponse.Unmarshal(m, b)
83}
84func (m *PhysicalInventoryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
85 return xxx_messageInfo_PhysicalInventoryResponse.Marshal(b, m, deterministic)
86}
87func (m *PhysicalInventoryResponse) XXX_Merge(src proto.Message) {
88 xxx_messageInfo_PhysicalInventoryResponse.Merge(m, src)
89}
90func (m *PhysicalInventoryResponse) XXX_Size() int {
91 return xxx_messageInfo_PhysicalInventoryResponse.Size(m)
92}
93func (m *PhysicalInventoryResponse) XXX_DiscardUnknown() {
94 xxx_messageInfo_PhysicalInventoryResponse.DiscardUnknown(m)
95}
96
97var xxx_messageInfo_PhysicalInventoryResponse proto.InternalMessageInfo
98
99func (m *PhysicalInventoryResponse) GetStatus() Status {
100 if m != nil {
101 return m.Status
102 }
103 return Status_UNDEFINED_STATUS
104}
105
106func (m *PhysicalInventoryResponse) GetReason() Reason {
107 if m != nil {
108 return m.Reason
109 }
110 return Reason_UNDEFINED_REASON
111}
112
113func (m *PhysicalInventoryResponse) GetInventory() *Hardware {
114 if m != nil {
115 return m.Inventory
116 }
117 return nil
118}
119
120type 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
129func (m *HWComponentInfoGetRequest) Reset() { *m = HWComponentInfoGetRequest{} }
130func (m *HWComponentInfoGetRequest) String() string { return proto.CompactTextString(m) }
131func (*HWComponentInfoGetRequest) ProtoMessage() {}
132func (*HWComponentInfoGetRequest) Descriptor() ([]byte, []int) {
133 return fileDescriptor_eae902e73066286d, []int{2}
134}
135
136func (m *HWComponentInfoGetRequest) XXX_Unmarshal(b []byte) error {
137 return xxx_messageInfo_HWComponentInfoGetRequest.Unmarshal(m, b)
138}
139func (m *HWComponentInfoGetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
140 return xxx_messageInfo_HWComponentInfoGetRequest.Marshal(b, m, deterministic)
141}
142func (m *HWComponentInfoGetRequest) XXX_Merge(src proto.Message) {
143 xxx_messageInfo_HWComponentInfoGetRequest.Merge(m, src)
144}
145func (m *HWComponentInfoGetRequest) XXX_Size() int {
146 return xxx_messageInfo_HWComponentInfoGetRequest.Size(m)
147}
148func (m *HWComponentInfoGetRequest) XXX_DiscardUnknown() {
149 xxx_messageInfo_HWComponentInfoGetRequest.DiscardUnknown(m)
150}
151
152var xxx_messageInfo_HWComponentInfoGetRequest proto.InternalMessageInfo
153
154func (m *HWComponentInfoGetRequest) GetDeviceUuid() *Uuid {
155 if m != nil {
156 return m.DeviceUuid
157 }
158 return nil
159}
160
161func (m *HWComponentInfoGetRequest) GetComponentUuid() *Uuid {
162 if m != nil {
163 return m.ComponentUuid
164 }
165 return nil
166}
167
168func (m *HWComponentInfoGetRequest) GetComponentName() string {
169 if m != nil {
170 return m.ComponentName
171 }
172 return ""
173}
174
aghoshc301dcd2020-09-03 16:55:34 +0100175type 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
184func (m *HWComponentInfoGetResponse) Reset() { *m = HWComponentInfoGetResponse{} }
185func (m *HWComponentInfoGetResponse) String() string { return proto.CompactTextString(m) }
186func (*HWComponentInfoGetResponse) ProtoMessage() {}
187func (*HWComponentInfoGetResponse) Descriptor() ([]byte, []int) {
188 return fileDescriptor_eae902e73066286d, []int{3}
189}
190
191func (m *HWComponentInfoGetResponse) XXX_Unmarshal(b []byte) error {
192 return xxx_messageInfo_HWComponentInfoGetResponse.Unmarshal(m, b)
193}
194func (m *HWComponentInfoGetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
195 return xxx_messageInfo_HWComponentInfoGetResponse.Marshal(b, m, deterministic)
196}
197func (m *HWComponentInfoGetResponse) XXX_Merge(src proto.Message) {
198 xxx_messageInfo_HWComponentInfoGetResponse.Merge(m, src)
199}
200func (m *HWComponentInfoGetResponse) XXX_Size() int {
201 return xxx_messageInfo_HWComponentInfoGetResponse.Size(m)
202}
203func (m *HWComponentInfoGetResponse) XXX_DiscardUnknown() {
204 xxx_messageInfo_HWComponentInfoGetResponse.DiscardUnknown(m)
205}
206
207var xxx_messageInfo_HWComponentInfoGetResponse proto.InternalMessageInfo
208
209func (m *HWComponentInfoGetResponse) GetStatus() Status {
210 if m != nil {
211 return m.Status
212 }
213 return Status_UNDEFINED_STATUS
214}
215
216func (m *HWComponentInfoGetResponse) GetReason() Reason {
217 if m != nil {
218 return m.Reason
219 }
220 return Reason_UNDEFINED_REASON
221}
222
223func (m *HWComponentInfoGetResponse) GetComponent() *Component {
224 if m != nil {
225 return m.Component
226 }
227 return nil
228}
229
Amit Ghosh09f28362020-06-12 21:52:19 +0100230type 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
240func (m *HWComponentInfoSetRequest) Reset() { *m = HWComponentInfoSetRequest{} }
241func (m *HWComponentInfoSetRequest) String() string { return proto.CompactTextString(m) }
242func (*HWComponentInfoSetRequest) ProtoMessage() {}
243func (*HWComponentInfoSetRequest) Descriptor() ([]byte, []int) {
aghoshc301dcd2020-09-03 16:55:34 +0100244 return fileDescriptor_eae902e73066286d, []int{4}
Amit Ghosh09f28362020-06-12 21:52:19 +0100245}
246
247func (m *HWComponentInfoSetRequest) XXX_Unmarshal(b []byte) error {
248 return xxx_messageInfo_HWComponentInfoSetRequest.Unmarshal(m, b)
249}
250func (m *HWComponentInfoSetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
251 return xxx_messageInfo_HWComponentInfoSetRequest.Marshal(b, m, deterministic)
252}
253func (m *HWComponentInfoSetRequest) XXX_Merge(src proto.Message) {
254 xxx_messageInfo_HWComponentInfoSetRequest.Merge(m, src)
255}
256func (m *HWComponentInfoSetRequest) XXX_Size() int {
257 return xxx_messageInfo_HWComponentInfoSetRequest.Size(m)
258}
259func (m *HWComponentInfoSetRequest) XXX_DiscardUnknown() {
260 xxx_messageInfo_HWComponentInfoSetRequest.DiscardUnknown(m)
261}
262
263var xxx_messageInfo_HWComponentInfoSetRequest proto.InternalMessageInfo
264
265func (m *HWComponentInfoSetRequest) GetDeviceUuid() *Uuid {
266 if m != nil {
267 return m.DeviceUuid
268 }
269 return nil
270}
271
272func (m *HWComponentInfoSetRequest) GetComponentUuid() *Uuid {
273 if m != nil {
274 return m.ComponentUuid
275 }
276 return nil
277}
278
279func (m *HWComponentInfoSetRequest) GetComponentName() string {
280 if m != nil {
281 return m.ComponentName
282 }
283 return ""
284}
285
286func (m *HWComponentInfoSetRequest) GetChanges() *ModifiableComponent {
287 if m != nil {
288 return m.Changes
289 }
290 return nil
291}
292
293type 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
301func (m *HWComponentInfoSetResponse) Reset() { *m = HWComponentInfoSetResponse{} }
302func (m *HWComponentInfoSetResponse) String() string { return proto.CompactTextString(m) }
303func (*HWComponentInfoSetResponse) ProtoMessage() {}
304func (*HWComponentInfoSetResponse) Descriptor() ([]byte, []int) {
aghoshc301dcd2020-09-03 16:55:34 +0100305 return fileDescriptor_eae902e73066286d, []int{5}
Amit Ghosh09f28362020-06-12 21:52:19 +0100306}
307
308func (m *HWComponentInfoSetResponse) XXX_Unmarshal(b []byte) error {
309 return xxx_messageInfo_HWComponentInfoSetResponse.Unmarshal(m, b)
310}
311func (m *HWComponentInfoSetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
312 return xxx_messageInfo_HWComponentInfoSetResponse.Marshal(b, m, deterministic)
313}
314func (m *HWComponentInfoSetResponse) XXX_Merge(src proto.Message) {
315 xxx_messageInfo_HWComponentInfoSetResponse.Merge(m, src)
316}
317func (m *HWComponentInfoSetResponse) XXX_Size() int {
318 return xxx_messageInfo_HWComponentInfoSetResponse.Size(m)
319}
320func (m *HWComponentInfoSetResponse) XXX_DiscardUnknown() {
321 xxx_messageInfo_HWComponentInfoSetResponse.DiscardUnknown(m)
322}
323
324var xxx_messageInfo_HWComponentInfoSetResponse proto.InternalMessageInfo
325
326func (m *HWComponentInfoSetResponse) GetStatus() Status {
327 if m != nil {
328 return m.Status
329 }
330 return Status_UNDEFINED_STATUS
331}
332
333func (m *HWComponentInfoSetResponse) GetReason() Reason {
334 if m != nil {
335 return m.Reason
336 }
337 return Reason_UNDEFINED_REASON
338}
339
340type 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
349func (m *StartManagingDeviceResponse) Reset() { *m = StartManagingDeviceResponse{} }
350func (m *StartManagingDeviceResponse) String() string { return proto.CompactTextString(m) }
351func (*StartManagingDeviceResponse) ProtoMessage() {}
352func (*StartManagingDeviceResponse) Descriptor() ([]byte, []int) {
aghoshc301dcd2020-09-03 16:55:34 +0100353 return fileDescriptor_eae902e73066286d, []int{6}
Amit Ghosh09f28362020-06-12 21:52:19 +0100354}
355
356func (m *StartManagingDeviceResponse) XXX_Unmarshal(b []byte) error {
357 return xxx_messageInfo_StartManagingDeviceResponse.Unmarshal(m, b)
358}
359func (m *StartManagingDeviceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
360 return xxx_messageInfo_StartManagingDeviceResponse.Marshal(b, m, deterministic)
361}
362func (m *StartManagingDeviceResponse) XXX_Merge(src proto.Message) {
363 xxx_messageInfo_StartManagingDeviceResponse.Merge(m, src)
364}
365func (m *StartManagingDeviceResponse) XXX_Size() int {
366 return xxx_messageInfo_StartManagingDeviceResponse.Size(m)
367}
368func (m *StartManagingDeviceResponse) XXX_DiscardUnknown() {
369 xxx_messageInfo_StartManagingDeviceResponse.DiscardUnknown(m)
370}
371
372var xxx_messageInfo_StartManagingDeviceResponse proto.InternalMessageInfo
373
374func (m *StartManagingDeviceResponse) GetStatus() Status {
375 if m != nil {
376 return m.Status
377 }
378 return Status_UNDEFINED_STATUS
379}
380
381func (m *StartManagingDeviceResponse) GetReason() Reason {
382 if m != nil {
383 return m.Reason
384 }
385 return Reason_UNDEFINED_REASON
386}
387
388func (m *StartManagingDeviceResponse) GetDeviceUuid() *Uuid {
389 if m != nil {
390 return m.DeviceUuid
391 }
392 return nil
393}
394
Amit Ghosh366228e2020-07-06 13:46:42 +0100395type 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
402func (m *StopManagingDeviceRequest) Reset() { *m = StopManagingDeviceRequest{} }
403func (m *StopManagingDeviceRequest) String() string { return proto.CompactTextString(m) }
404func (*StopManagingDeviceRequest) ProtoMessage() {}
405func (*StopManagingDeviceRequest) Descriptor() ([]byte, []int) {
aghoshc301dcd2020-09-03 16:55:34 +0100406 return fileDescriptor_eae902e73066286d, []int{7}
Amit Ghosh366228e2020-07-06 13:46:42 +0100407}
408
409func (m *StopManagingDeviceRequest) XXX_Unmarshal(b []byte) error {
410 return xxx_messageInfo_StopManagingDeviceRequest.Unmarshal(m, b)
411}
412func (m *StopManagingDeviceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
413 return xxx_messageInfo_StopManagingDeviceRequest.Marshal(b, m, deterministic)
414}
415func (m *StopManagingDeviceRequest) XXX_Merge(src proto.Message) {
416 xxx_messageInfo_StopManagingDeviceRequest.Merge(m, src)
417}
418func (m *StopManagingDeviceRequest) XXX_Size() int {
419 return xxx_messageInfo_StopManagingDeviceRequest.Size(m)
420}
421func (m *StopManagingDeviceRequest) XXX_DiscardUnknown() {
422 xxx_messageInfo_StopManagingDeviceRequest.DiscardUnknown(m)
423}
424
425var xxx_messageInfo_StopManagingDeviceRequest proto.InternalMessageInfo
426
427func (m *StopManagingDeviceRequest) GetName() string {
428 if m != nil {
429 return m.Name
430 }
431 return ""
432}
433
434type 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
442func (m *StopManagingDeviceResponse) Reset() { *m = StopManagingDeviceResponse{} }
443func (m *StopManagingDeviceResponse) String() string { return proto.CompactTextString(m) }
444func (*StopManagingDeviceResponse) ProtoMessage() {}
445func (*StopManagingDeviceResponse) Descriptor() ([]byte, []int) {
aghoshc301dcd2020-09-03 16:55:34 +0100446 return fileDescriptor_eae902e73066286d, []int{8}
Amit Ghosh366228e2020-07-06 13:46:42 +0100447}
448
449func (m *StopManagingDeviceResponse) XXX_Unmarshal(b []byte) error {
450 return xxx_messageInfo_StopManagingDeviceResponse.Unmarshal(m, b)
451}
452func (m *StopManagingDeviceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
453 return xxx_messageInfo_StopManagingDeviceResponse.Marshal(b, m, deterministic)
454}
455func (m *StopManagingDeviceResponse) XXX_Merge(src proto.Message) {
456 xxx_messageInfo_StopManagingDeviceResponse.Merge(m, src)
457}
458func (m *StopManagingDeviceResponse) XXX_Size() int {
459 return xxx_messageInfo_StopManagingDeviceResponse.Size(m)
460}
461func (m *StopManagingDeviceResponse) XXX_DiscardUnknown() {
462 xxx_messageInfo_StopManagingDeviceResponse.DiscardUnknown(m)
463}
464
465var xxx_messageInfo_StopManagingDeviceResponse proto.InternalMessageInfo
466
467func (m *StopManagingDeviceResponse) GetStatus() Status {
468 if m != nil {
469 return m.Status
470 }
471 return Status_UNDEFINED_STATUS
472}
473
474func (m *StopManagingDeviceResponse) GetReason() Reason {
475 if m != nil {
476 return m.Reason
477 }
478 return Reason_UNDEFINED_REASON
479}
480
Andrea Campanellacb990bc2020-09-22 12:50:56 +0200481type 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
488func (m *ManagedDevicesResponse) Reset() { *m = ManagedDevicesResponse{} }
489func (m *ManagedDevicesResponse) String() string { return proto.CompactTextString(m) }
490func (*ManagedDevicesResponse) ProtoMessage() {}
491func (*ManagedDevicesResponse) Descriptor() ([]byte, []int) {
492 return fileDescriptor_eae902e73066286d, []int{9}
493}
494
495func (m *ManagedDevicesResponse) XXX_Unmarshal(b []byte) error {
496 return xxx_messageInfo_ManagedDevicesResponse.Unmarshal(m, b)
497}
498func (m *ManagedDevicesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
499 return xxx_messageInfo_ManagedDevicesResponse.Marshal(b, m, deterministic)
500}
501func (m *ManagedDevicesResponse) XXX_Merge(src proto.Message) {
502 xxx_messageInfo_ManagedDevicesResponse.Merge(m, src)
503}
504func (m *ManagedDevicesResponse) XXX_Size() int {
505 return xxx_messageInfo_ManagedDevicesResponse.Size(m)
506}
507func (m *ManagedDevicesResponse) XXX_DiscardUnknown() {
508 xxx_messageInfo_ManagedDevicesResponse.DiscardUnknown(m)
509}
510
511var xxx_messageInfo_ManagedDevicesResponse proto.InternalMessageInfo
512
513func (m *ManagedDevicesResponse) GetDevices() []*ModifiableComponent {
514 if m != nil {
515 return m.Devices
516 }
517 return nil
518}
519
Amit Ghosh09f28362020-06-12 21:52:19 +0100520func init() {
521 proto.RegisterType((*PhysicalInventoryRequest)(nil), "dmi.PhysicalInventoryRequest")
522 proto.RegisterType((*PhysicalInventoryResponse)(nil), "dmi.PhysicalInventoryResponse")
523 proto.RegisterType((*HWComponentInfoGetRequest)(nil), "dmi.HWComponentInfoGetRequest")
aghoshc301dcd2020-09-03 16:55:34 +0100524 proto.RegisterType((*HWComponentInfoGetResponse)(nil), "dmi.HWComponentInfoGetResponse")
Amit Ghosh09f28362020-06-12 21:52:19 +0100525 proto.RegisterType((*HWComponentInfoSetRequest)(nil), "dmi.HWComponentInfoSetRequest")
526 proto.RegisterType((*HWComponentInfoSetResponse)(nil), "dmi.HWComponentInfoSetResponse")
527 proto.RegisterType((*StartManagingDeviceResponse)(nil), "dmi.StartManagingDeviceResponse")
Amit Ghosh366228e2020-07-06 13:46:42 +0100528 proto.RegisterType((*StopManagingDeviceRequest)(nil), "dmi.StopManagingDeviceRequest")
529 proto.RegisterType((*StopManagingDeviceResponse)(nil), "dmi.StopManagingDeviceResponse")
Andrea Campanellacb990bc2020-09-22 12:50:56 +0200530 proto.RegisterType((*ManagedDevicesResponse)(nil), "dmi.ManagedDevicesResponse")
Amit Ghosh09f28362020-06-12 21:52:19 +0100531}
532
533func init() { proto.RegisterFile("dmi/hw_management_service.proto", fileDescriptor_eae902e73066286d) }
534
535var fileDescriptor_eae902e73066286d = []byte{
Andrea Campanellacb990bc2020-09-22 12:50:56 +0200536 // 612 bytes of a gzipped FileDescriptorProto
537 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x55, 0x4f, 0x6b, 0xdb, 0x4e,
538 0x10, 0x45, 0x71, 0x48, 0xf0, 0xfa, 0x17, 0x43, 0xf6, 0x57, 0x82, 0x2c, 0xd3, 0x24, 0xa8, 0x14,
539 0x4a, 0xdb, 0x48, 0xc1, 0x39, 0x95, 0xde, 0xfa, 0xcf, 0x0e, 0xd4, 0xa1, 0x48, 0x04, 0x43, 0x2f,
540 0x66, 0x2d, 0x8d, 0xe5, 0x05, 0xef, 0xae, 0x2a, 0xad, 0x1c, 0xfc, 0x35, 0xda, 0x9e, 0x7a, 0xea,
541 0x87, 0xea, 0x07, 0x2a, 0xda, 0x95, 0x65, 0xd7, 0xb6, 0xd2, 0x52, 0x12, 0xe8, 0x4d, 0xda, 0x79,
542 0xf3, 0x66, 0xdf, 0x1b, 0xcd, 0x08, 0x9d, 0x84, 0x8c, 0xba, 0x93, 0x9b, 0x21, 0x23, 0x9c, 0x44,
543 0xc0, 0x80, 0xcb, 0x61, 0x0a, 0xc9, 0x8c, 0x06, 0xe0, 0xc4, 0x89, 0x90, 0x02, 0xd7, 0x42, 0x46,
544 0xad, 0xc3, 0x1c, 0x15, 0x08, 0xc6, 0x04, 0x4f, 0xf5, 0xb9, 0xf5, 0x9f, 0x4e, 0x2c, 0xde, 0xda,
545 0x91, 0x10, 0xd1, 0x14, 0x5c, 0xf5, 0x36, 0xca, 0xc6, 0x2e, 0xb0, 0x58, 0xce, 0x75, 0xd0, 0x7e,
546 0x87, 0xcc, 0x0f, 0x93, 0x79, 0x4a, 0x03, 0x32, 0xbd, 0xe4, 0x33, 0xe0, 0x52, 0x24, 0x73, 0x0f,
547 0x3e, 0x65, 0x90, 0x4a, 0xfc, 0x14, 0x35, 0x42, 0xc8, 0xcb, 0x0d, 0xb3, 0x8c, 0x86, 0xa6, 0x71,
548 0x6a, 0x3c, 0x69, 0x74, 0xea, 0x4e, 0xc8, 0xa8, 0x73, 0x9d, 0xd1, 0xd0, 0x43, 0x3a, 0x9a, 0x3f,
549 0xdb, 0x9f, 0x0d, 0xd4, 0xda, 0x42, 0x94, 0xc6, 0x82, 0xa7, 0x80, 0x1f, 0xa1, 0xbd, 0x54, 0x12,
550 0x99, 0xa5, 0x8a, 0xa4, 0xd9, 0x69, 0x28, 0x12, 0x5f, 0x1d, 0x79, 0x45, 0x28, 0x07, 0x25, 0x40,
551 0x52, 0xc1, 0xcd, 0x9d, 0x15, 0x90, 0xa7, 0x8e, 0xbc, 0x22, 0x84, 0x9f, 0xa1, 0x3a, 0x5d, 0xd0,
552 0x9b, 0x35, 0x75, 0xa3, 0x03, 0x85, 0xeb, 0x91, 0x24, 0xbc, 0x21, 0x09, 0x78, 0xcb, 0xb8, 0xfd,
553 0xdd, 0x40, 0xad, 0xde, 0xe0, 0xb5, 0x60, 0xb1, 0xe0, 0xc0, 0xe5, 0x25, 0x1f, 0x8b, 0x2e, 0xc8,
554 0xbf, 0x90, 0x87, 0xcf, 0x51, 0x33, 0x58, 0xd0, 0x68, 0xf8, 0xce, 0x3a, 0xfc, 0xa0, 0x04, 0xa8,
555 0x8c, 0xc7, 0xab, 0x19, 0x9c, 0x30, 0x50, 0xb7, 0xad, 0xaf, 0xc0, 0xae, 0x08, 0x03, 0xfb, 0xab,
556 0x81, 0xac, 0x6d, 0x57, 0xbc, 0x73, 0xe3, 0x9e, 0xa3, 0x7a, 0x59, 0xb9, 0x30, 0xae, 0xa9, 0x70,
557 0x65, 0x6d, 0x6f, 0x09, 0xb0, 0x7f, 0x6c, 0x3a, 0xe7, 0xff, 0x5b, 0xce, 0xe1, 0x0e, 0xda, 0x0f,
558 0x26, 0x84, 0x47, 0x90, 0x9a, 0xbb, 0x8a, 0xd1, 0x54, 0x8c, 0x7d, 0x11, 0xd2, 0x31, 0x25, 0xa3,
559 0x29, 0x2c, 0x85, 0x2d, 0x80, 0xf6, 0x78, 0xc3, 0x6c, 0xff, 0x3e, 0xcc, 0xb6, 0xbf, 0x18, 0xa8,
560 0xed, 0x4b, 0x92, 0xc8, 0x7e, 0x3e, 0xba, 0x94, 0x47, 0x6f, 0x94, 0x21, 0xf7, 0xd0, 0xd6, 0xb5,
561 0x56, 0xd4, 0x6e, 0x9b, 0x51, 0x17, 0xb5, 0x7c, 0x29, 0xe2, 0xf5, 0x3b, 0xe9, 0x9e, 0x62, 0xb4,
562 0xab, 0xbc, 0x36, 0x94, 0xd7, 0xea, 0x39, 0xb7, 0x6b, 0x5b, 0xc2, 0x9d, 0xdb, 0xf5, 0x1e, 0x1d,
563 0xa9, 0x1a, 0x10, 0xea, 0x12, 0x69, 0x59, 0xa3, 0x83, 0xf6, 0xb5, 0x80, 0xbc, 0x48, 0xed, 0xf6,
564 0x26, 0x17, 0xc0, 0xce, 0xb7, 0x5d, 0xd4, 0xba, 0x22, 0x92, 0xce, 0xa0, 0x37, 0xe8, 0x97, 0xab,
565 0xd3, 0xd7, 0x9b, 0x13, 0xfb, 0xe8, 0xff, 0x2d, 0x9d, 0xc1, 0x95, 0xbc, 0xd6, 0xe9, 0x42, 0x56,
566 0x55, 0x37, 0xcf, 0x0d, 0x7c, 0x8d, 0xf0, 0xa6, 0x51, 0xf8, 0xb8, 0xc8, 0xac, 0xb0, 0xdc, 0x3a,
567 0xa9, 0x8c, 0x17, 0xea, 0x7b, 0xe8, 0xb0, 0x0b, 0xf2, 0x57, 0x6b, 0xf0, 0x91, 0xa3, 0xf7, 0xb9,
568 0xb3, 0xd8, 0xe7, 0xce, 0xdb, 0x7c, 0x9f, 0x5b, 0x6d, 0xad, 0x60, 0xbb, 0x8f, 0x03, 0xf4, 0xa0,
569 0x0b, 0x72, 0x63, 0x41, 0xe3, 0x87, 0x2a, 0xa9, 0xea, 0x0f, 0x60, 0x1d, 0x57, 0x85, 0x4b, 0xe5,
570 0x03, 0x84, 0xbb, 0x20, 0xd7, 0x86, 0xaa, 0x50, 0x5e, 0xb9, 0x7a, 0x0b, 0xe5, 0xd5, 0x7b, 0xaf,
571 0xb0, 0xf4, 0x0f, 0x89, 0xfd, 0xdf, 0x10, 0xaf, 0xcc, 0xf8, 0xab, 0x97, 0x1f, 0x5f, 0x44, 0x54,
572 0x4e, 0xb2, 0x91, 0x13, 0x08, 0xe6, 0x8a, 0x18, 0x78, 0x20, 0x92, 0xd0, 0xd5, 0xdf, 0xce, 0xd9,
573 0xf2, 0x4f, 0x7b, 0x46, 0xb9, 0x84, 0x64, 0x4c, 0x02, 0x70, 0x67, 0x17, 0x6e, 0x24, 0xdc, 0x90,
574 0xd1, 0xd1, 0x9e, 0xb2, 0xfc, 0xe2, 0x67, 0x00, 0x00, 0x00, 0xff, 0xff, 0xd6, 0x9d, 0xd6, 0xff,
575 0x99, 0x07, 0x00, 0x00,
Amit Ghosh09f28362020-06-12 21:52:19 +0100576}
577
578// Reference imports to suppress errors if they are not otherwise used.
579var _ context.Context
580var _ grpc.ClientConn
581
582// This is a compile-time assertion to ensure that this generated file
583// is compatible with the grpc package it is being compiled against.
584const _ = grpc.SupportPackageIsVersion4
585
586// NativeHWManagementServiceClient is the client API for NativeHWManagementService service.
587//
588// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
589type NativeHWManagementServiceClient interface {
590 // Initializes context for a device and sets up required states
Amit Ghosh704462f2020-06-24 16:44:56 +0100591 // In the call to StartManagingDevice, the fields of ModifiableComponent which are relevant
592 // and their meanings in this context is mentioned below:
593 // name = The unique name that needs to be assigned to this hardware;
594 // class = COMPONENT_TYPE_UNDEFINED;
595 // parent = nil;
596 // alias = Optional;
597 // asset_id = Optional;
598 // uri = IP Address of the Hardware;
599 StartManagingDevice(ctx context.Context, in *ModifiableComponent, opts ...grpc.CallOption) (NativeHWManagementService_StartManagingDeviceClient, error)
Amit Ghosh366228e2020-07-06 13:46:42 +0100600 // Stop management of a device and clean up any context and caches for that device
601 StopManagingDevice(ctx context.Context, in *StopManagingDeviceRequest, opts ...grpc.CallOption) (*StopManagingDeviceResponse, error)
Andrea Campanellacb990bc2020-09-22 12:50:56 +0200602 // Returns an object containing a list of devices managed by this entity
603 GetManagedDevices(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ManagedDevicesResponse, error)
Amit Ghosh09f28362020-06-12 21:52:19 +0100604 // Get the HW inventory details of the Device
605 GetPhysicalInventory(ctx context.Context, in *PhysicalInventoryRequest, opts ...grpc.CallOption) (NativeHWManagementService_GetPhysicalInventoryClient, error)
606 // Get the details of a particular HW component
607 GetHWComponentInfo(ctx context.Context, in *HWComponentInfoGetRequest, opts ...grpc.CallOption) (NativeHWManagementService_GetHWComponentInfoClient, error)
608 // Sets the permissible attributes of a HW component
609 SetHWComponentInfo(ctx context.Context, in *HWComponentInfoSetRequest, opts ...grpc.CallOption) (*HWComponentInfoSetResponse, error)
610}
611
612type nativeHWManagementServiceClient struct {
613 cc *grpc.ClientConn
614}
615
616func NewNativeHWManagementServiceClient(cc *grpc.ClientConn) NativeHWManagementServiceClient {
617 return &nativeHWManagementServiceClient{cc}
618}
619
Amit Ghosh704462f2020-06-24 16:44:56 +0100620func (c *nativeHWManagementServiceClient) StartManagingDevice(ctx context.Context, in *ModifiableComponent, opts ...grpc.CallOption) (NativeHWManagementService_StartManagingDeviceClient, error) {
Amit Ghosh09f28362020-06-12 21:52:19 +0100621 stream, err := c.cc.NewStream(ctx, &_NativeHWManagementService_serviceDesc.Streams[0], "/dmi.NativeHWManagementService/StartManagingDevice", opts...)
622 if err != nil {
623 return nil, err
624 }
625 x := &nativeHWManagementServiceStartManagingDeviceClient{stream}
626 if err := x.ClientStream.SendMsg(in); err != nil {
627 return nil, err
628 }
629 if err := x.ClientStream.CloseSend(); err != nil {
630 return nil, err
631 }
632 return x, nil
633}
634
635type NativeHWManagementService_StartManagingDeviceClient interface {
636 Recv() (*StartManagingDeviceResponse, error)
637 grpc.ClientStream
638}
639
640type nativeHWManagementServiceStartManagingDeviceClient struct {
641 grpc.ClientStream
642}
643
644func (x *nativeHWManagementServiceStartManagingDeviceClient) Recv() (*StartManagingDeviceResponse, error) {
645 m := new(StartManagingDeviceResponse)
646 if err := x.ClientStream.RecvMsg(m); err != nil {
647 return nil, err
648 }
649 return m, nil
650}
651
Amit Ghosh366228e2020-07-06 13:46:42 +0100652func (c *nativeHWManagementServiceClient) StopManagingDevice(ctx context.Context, in *StopManagingDeviceRequest, opts ...grpc.CallOption) (*StopManagingDeviceResponse, error) {
653 out := new(StopManagingDeviceResponse)
654 err := c.cc.Invoke(ctx, "/dmi.NativeHWManagementService/StopManagingDevice", in, out, opts...)
655 if err != nil {
656 return nil, err
657 }
658 return out, nil
659}
660
Andrea Campanellacb990bc2020-09-22 12:50:56 +0200661func (c *nativeHWManagementServiceClient) GetManagedDevices(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ManagedDevicesResponse, error) {
662 out := new(ManagedDevicesResponse)
663 err := c.cc.Invoke(ctx, "/dmi.NativeHWManagementService/GetManagedDevices", in, out, opts...)
664 if err != nil {
665 return nil, err
666 }
667 return out, nil
668}
669
Amit Ghosh09f28362020-06-12 21:52:19 +0100670func (c *nativeHWManagementServiceClient) GetPhysicalInventory(ctx context.Context, in *PhysicalInventoryRequest, opts ...grpc.CallOption) (NativeHWManagementService_GetPhysicalInventoryClient, error) {
671 stream, err := c.cc.NewStream(ctx, &_NativeHWManagementService_serviceDesc.Streams[1], "/dmi.NativeHWManagementService/GetPhysicalInventory", opts...)
672 if err != nil {
673 return nil, err
674 }
675 x := &nativeHWManagementServiceGetPhysicalInventoryClient{stream}
676 if err := x.ClientStream.SendMsg(in); err != nil {
677 return nil, err
678 }
679 if err := x.ClientStream.CloseSend(); err != nil {
680 return nil, err
681 }
682 return x, nil
683}
684
685type NativeHWManagementService_GetPhysicalInventoryClient interface {
686 Recv() (*PhysicalInventoryResponse, error)
687 grpc.ClientStream
688}
689
690type nativeHWManagementServiceGetPhysicalInventoryClient struct {
691 grpc.ClientStream
692}
693
694func (x *nativeHWManagementServiceGetPhysicalInventoryClient) Recv() (*PhysicalInventoryResponse, error) {
695 m := new(PhysicalInventoryResponse)
696 if err := x.ClientStream.RecvMsg(m); err != nil {
697 return nil, err
698 }
699 return m, nil
700}
701
702func (c *nativeHWManagementServiceClient) GetHWComponentInfo(ctx context.Context, in *HWComponentInfoGetRequest, opts ...grpc.CallOption) (NativeHWManagementService_GetHWComponentInfoClient, error) {
703 stream, err := c.cc.NewStream(ctx, &_NativeHWManagementService_serviceDesc.Streams[2], "/dmi.NativeHWManagementService/GetHWComponentInfo", opts...)
704 if err != nil {
705 return nil, err
706 }
707 x := &nativeHWManagementServiceGetHWComponentInfoClient{stream}
708 if err := x.ClientStream.SendMsg(in); err != nil {
709 return nil, err
710 }
711 if err := x.ClientStream.CloseSend(); err != nil {
712 return nil, err
713 }
714 return x, nil
715}
716
717type NativeHWManagementService_GetHWComponentInfoClient interface {
aghoshc301dcd2020-09-03 16:55:34 +0100718 Recv() (*HWComponentInfoGetResponse, error)
Amit Ghosh09f28362020-06-12 21:52:19 +0100719 grpc.ClientStream
720}
721
722type nativeHWManagementServiceGetHWComponentInfoClient struct {
723 grpc.ClientStream
724}
725
aghoshc301dcd2020-09-03 16:55:34 +0100726func (x *nativeHWManagementServiceGetHWComponentInfoClient) Recv() (*HWComponentInfoGetResponse, error) {
727 m := new(HWComponentInfoGetResponse)
Amit Ghosh09f28362020-06-12 21:52:19 +0100728 if err := x.ClientStream.RecvMsg(m); err != nil {
729 return nil, err
730 }
731 return m, nil
732}
733
734func (c *nativeHWManagementServiceClient) SetHWComponentInfo(ctx context.Context, in *HWComponentInfoSetRequest, opts ...grpc.CallOption) (*HWComponentInfoSetResponse, error) {
735 out := new(HWComponentInfoSetResponse)
736 err := c.cc.Invoke(ctx, "/dmi.NativeHWManagementService/SetHWComponentInfo", in, out, opts...)
737 if err != nil {
738 return nil, err
739 }
740 return out, nil
741}
742
743// NativeHWManagementServiceServer is the server API for NativeHWManagementService service.
744type NativeHWManagementServiceServer interface {
745 // Initializes context for a device and sets up required states
Amit Ghosh704462f2020-06-24 16:44:56 +0100746 // In the call to StartManagingDevice, the fields of ModifiableComponent which are relevant
747 // and their meanings in this context is mentioned below:
748 // name = The unique name that needs to be assigned to this hardware;
749 // class = COMPONENT_TYPE_UNDEFINED;
750 // parent = nil;
751 // alias = Optional;
752 // asset_id = Optional;
753 // uri = IP Address of the Hardware;
754 StartManagingDevice(*ModifiableComponent, NativeHWManagementService_StartManagingDeviceServer) error
Amit Ghosh366228e2020-07-06 13:46:42 +0100755 // Stop management of a device and clean up any context and caches for that device
756 StopManagingDevice(context.Context, *StopManagingDeviceRequest) (*StopManagingDeviceResponse, error)
Andrea Campanellacb990bc2020-09-22 12:50:56 +0200757 // Returns an object containing a list of devices managed by this entity
758 GetManagedDevices(context.Context, *empty.Empty) (*ManagedDevicesResponse, error)
Amit Ghosh09f28362020-06-12 21:52:19 +0100759 // Get the HW inventory details of the Device
760 GetPhysicalInventory(*PhysicalInventoryRequest, NativeHWManagementService_GetPhysicalInventoryServer) error
761 // Get the details of a particular HW component
762 GetHWComponentInfo(*HWComponentInfoGetRequest, NativeHWManagementService_GetHWComponentInfoServer) error
763 // Sets the permissible attributes of a HW component
764 SetHWComponentInfo(context.Context, *HWComponentInfoSetRequest) (*HWComponentInfoSetResponse, error)
765}
766
767func RegisterNativeHWManagementServiceServer(s *grpc.Server, srv NativeHWManagementServiceServer) {
768 s.RegisterService(&_NativeHWManagementService_serviceDesc, srv)
769}
770
771func _NativeHWManagementService_StartManagingDevice_Handler(srv interface{}, stream grpc.ServerStream) error {
Amit Ghosh704462f2020-06-24 16:44:56 +0100772 m := new(ModifiableComponent)
Amit Ghosh09f28362020-06-12 21:52:19 +0100773 if err := stream.RecvMsg(m); err != nil {
774 return err
775 }
776 return srv.(NativeHWManagementServiceServer).StartManagingDevice(m, &nativeHWManagementServiceStartManagingDeviceServer{stream})
777}
778
779type NativeHWManagementService_StartManagingDeviceServer interface {
780 Send(*StartManagingDeviceResponse) error
781 grpc.ServerStream
782}
783
784type nativeHWManagementServiceStartManagingDeviceServer struct {
785 grpc.ServerStream
786}
787
788func (x *nativeHWManagementServiceStartManagingDeviceServer) Send(m *StartManagingDeviceResponse) error {
789 return x.ServerStream.SendMsg(m)
790}
791
Amit Ghosh366228e2020-07-06 13:46:42 +0100792func _NativeHWManagementService_StopManagingDevice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
793 in := new(StopManagingDeviceRequest)
794 if err := dec(in); err != nil {
795 return nil, err
796 }
797 if interceptor == nil {
798 return srv.(NativeHWManagementServiceServer).StopManagingDevice(ctx, in)
799 }
800 info := &grpc.UnaryServerInfo{
801 Server: srv,
802 FullMethod: "/dmi.NativeHWManagementService/StopManagingDevice",
803 }
804 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
805 return srv.(NativeHWManagementServiceServer).StopManagingDevice(ctx, req.(*StopManagingDeviceRequest))
806 }
807 return interceptor(ctx, in, info, handler)
808}
809
Andrea Campanellacb990bc2020-09-22 12:50:56 +0200810func _NativeHWManagementService_GetManagedDevices_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
811 in := new(empty.Empty)
812 if err := dec(in); err != nil {
813 return nil, err
814 }
815 if interceptor == nil {
816 return srv.(NativeHWManagementServiceServer).GetManagedDevices(ctx, in)
817 }
818 info := &grpc.UnaryServerInfo{
819 Server: srv,
820 FullMethod: "/dmi.NativeHWManagementService/GetManagedDevices",
821 }
822 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
823 return srv.(NativeHWManagementServiceServer).GetManagedDevices(ctx, req.(*empty.Empty))
824 }
825 return interceptor(ctx, in, info, handler)
826}
827
Amit Ghosh09f28362020-06-12 21:52:19 +0100828func _NativeHWManagementService_GetPhysicalInventory_Handler(srv interface{}, stream grpc.ServerStream) error {
829 m := new(PhysicalInventoryRequest)
830 if err := stream.RecvMsg(m); err != nil {
831 return err
832 }
833 return srv.(NativeHWManagementServiceServer).GetPhysicalInventory(m, &nativeHWManagementServiceGetPhysicalInventoryServer{stream})
834}
835
836type NativeHWManagementService_GetPhysicalInventoryServer interface {
837 Send(*PhysicalInventoryResponse) error
838 grpc.ServerStream
839}
840
841type nativeHWManagementServiceGetPhysicalInventoryServer struct {
842 grpc.ServerStream
843}
844
845func (x *nativeHWManagementServiceGetPhysicalInventoryServer) Send(m *PhysicalInventoryResponse) error {
846 return x.ServerStream.SendMsg(m)
847}
848
849func _NativeHWManagementService_GetHWComponentInfo_Handler(srv interface{}, stream grpc.ServerStream) error {
850 m := new(HWComponentInfoGetRequest)
851 if err := stream.RecvMsg(m); err != nil {
852 return err
853 }
854 return srv.(NativeHWManagementServiceServer).GetHWComponentInfo(m, &nativeHWManagementServiceGetHWComponentInfoServer{stream})
855}
856
857type NativeHWManagementService_GetHWComponentInfoServer interface {
aghoshc301dcd2020-09-03 16:55:34 +0100858 Send(*HWComponentInfoGetResponse) error
Amit Ghosh09f28362020-06-12 21:52:19 +0100859 grpc.ServerStream
860}
861
862type nativeHWManagementServiceGetHWComponentInfoServer struct {
863 grpc.ServerStream
864}
865
aghoshc301dcd2020-09-03 16:55:34 +0100866func (x *nativeHWManagementServiceGetHWComponentInfoServer) Send(m *HWComponentInfoGetResponse) error {
Amit Ghosh09f28362020-06-12 21:52:19 +0100867 return x.ServerStream.SendMsg(m)
868}
869
870func _NativeHWManagementService_SetHWComponentInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
871 in := new(HWComponentInfoSetRequest)
872 if err := dec(in); err != nil {
873 return nil, err
874 }
875 if interceptor == nil {
876 return srv.(NativeHWManagementServiceServer).SetHWComponentInfo(ctx, in)
877 }
878 info := &grpc.UnaryServerInfo{
879 Server: srv,
880 FullMethod: "/dmi.NativeHWManagementService/SetHWComponentInfo",
881 }
882 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
883 return srv.(NativeHWManagementServiceServer).SetHWComponentInfo(ctx, req.(*HWComponentInfoSetRequest))
884 }
885 return interceptor(ctx, in, info, handler)
886}
887
888var _NativeHWManagementService_serviceDesc = grpc.ServiceDesc{
889 ServiceName: "dmi.NativeHWManagementService",
890 HandlerType: (*NativeHWManagementServiceServer)(nil),
891 Methods: []grpc.MethodDesc{
892 {
Amit Ghosh366228e2020-07-06 13:46:42 +0100893 MethodName: "StopManagingDevice",
894 Handler: _NativeHWManagementService_StopManagingDevice_Handler,
895 },
896 {
Andrea Campanellacb990bc2020-09-22 12:50:56 +0200897 MethodName: "GetManagedDevices",
898 Handler: _NativeHWManagementService_GetManagedDevices_Handler,
899 },
900 {
Amit Ghosh09f28362020-06-12 21:52:19 +0100901 MethodName: "SetHWComponentInfo",
902 Handler: _NativeHWManagementService_SetHWComponentInfo_Handler,
903 },
904 },
905 Streams: []grpc.StreamDesc{
906 {
907 StreamName: "StartManagingDevice",
908 Handler: _NativeHWManagementService_StartManagingDevice_Handler,
909 ServerStreams: true,
910 },
911 {
912 StreamName: "GetPhysicalInventory",
913 Handler: _NativeHWManagementService_GetPhysicalInventory_Handler,
914 ServerStreams: true,
915 },
916 {
917 StreamName: "GetHWComponentInfo",
918 Handler: _NativeHWManagementService_GetHWComponentInfo_Handler,
919 ServerStreams: true,
920 },
921 },
922 Metadata: "dmi/hw_management_service.proto",
923}