blob: ef980fa84baa4121e675d028a3c18b663567cdb7 [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"
10 grpc "google.golang.org/grpc"
11 math "math"
12)
13
14// Reference imports to suppress errors if they are not otherwise used.
15var _ = proto.Marshal
16var _ = fmt.Errorf
17var _ = math.Inf
18
19// This is a compile-time assertion to ensure that this generated file
20// is compatible with the proto package it is being compiled against.
21// A compilation error at this line likely means your copy of the
22// proto package needs to be updated.
23const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
24
25type PhysicalInventoryRequest struct {
26 DeviceUuid *Uuid `protobuf:"bytes,1,opt,name=device_uuid,json=deviceUuid,proto3" json:"device_uuid,omitempty"`
27 XXX_NoUnkeyedLiteral struct{} `json:"-"`
28 XXX_unrecognized []byte `json:"-"`
29 XXX_sizecache int32 `json:"-"`
30}
31
32func (m *PhysicalInventoryRequest) Reset() { *m = PhysicalInventoryRequest{} }
33func (m *PhysicalInventoryRequest) String() string { return proto.CompactTextString(m) }
34func (*PhysicalInventoryRequest) ProtoMessage() {}
35func (*PhysicalInventoryRequest) Descriptor() ([]byte, []int) {
36 return fileDescriptor_eae902e73066286d, []int{0}
37}
38
39func (m *PhysicalInventoryRequest) XXX_Unmarshal(b []byte) error {
40 return xxx_messageInfo_PhysicalInventoryRequest.Unmarshal(m, b)
41}
42func (m *PhysicalInventoryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
43 return xxx_messageInfo_PhysicalInventoryRequest.Marshal(b, m, deterministic)
44}
45func (m *PhysicalInventoryRequest) XXX_Merge(src proto.Message) {
46 xxx_messageInfo_PhysicalInventoryRequest.Merge(m, src)
47}
48func (m *PhysicalInventoryRequest) XXX_Size() int {
49 return xxx_messageInfo_PhysicalInventoryRequest.Size(m)
50}
51func (m *PhysicalInventoryRequest) XXX_DiscardUnknown() {
52 xxx_messageInfo_PhysicalInventoryRequest.DiscardUnknown(m)
53}
54
55var xxx_messageInfo_PhysicalInventoryRequest proto.InternalMessageInfo
56
57func (m *PhysicalInventoryRequest) GetDeviceUuid() *Uuid {
58 if m != nil {
59 return m.DeviceUuid
60 }
61 return nil
62}
63
64type PhysicalInventoryResponse struct {
65 Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=dmi.Status" json:"status,omitempty"`
66 Reason Reason `protobuf:"varint,2,opt,name=reason,proto3,enum=dmi.Reason" json:"reason,omitempty"`
67 Inventory *Hardware `protobuf:"bytes,3,opt,name=inventory,proto3" json:"inventory,omitempty"`
68 XXX_NoUnkeyedLiteral struct{} `json:"-"`
69 XXX_unrecognized []byte `json:"-"`
70 XXX_sizecache int32 `json:"-"`
71}
72
73func (m *PhysicalInventoryResponse) Reset() { *m = PhysicalInventoryResponse{} }
74func (m *PhysicalInventoryResponse) String() string { return proto.CompactTextString(m) }
75func (*PhysicalInventoryResponse) ProtoMessage() {}
76func (*PhysicalInventoryResponse) Descriptor() ([]byte, []int) {
77 return fileDescriptor_eae902e73066286d, []int{1}
78}
79
80func (m *PhysicalInventoryResponse) XXX_Unmarshal(b []byte) error {
81 return xxx_messageInfo_PhysicalInventoryResponse.Unmarshal(m, b)
82}
83func (m *PhysicalInventoryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
84 return xxx_messageInfo_PhysicalInventoryResponse.Marshal(b, m, deterministic)
85}
86func (m *PhysicalInventoryResponse) XXX_Merge(src proto.Message) {
87 xxx_messageInfo_PhysicalInventoryResponse.Merge(m, src)
88}
89func (m *PhysicalInventoryResponse) XXX_Size() int {
90 return xxx_messageInfo_PhysicalInventoryResponse.Size(m)
91}
92func (m *PhysicalInventoryResponse) XXX_DiscardUnknown() {
93 xxx_messageInfo_PhysicalInventoryResponse.DiscardUnknown(m)
94}
95
96var xxx_messageInfo_PhysicalInventoryResponse proto.InternalMessageInfo
97
98func (m *PhysicalInventoryResponse) GetStatus() Status {
99 if m != nil {
100 return m.Status
101 }
102 return Status_UNDEFINED_STATUS
103}
104
105func (m *PhysicalInventoryResponse) GetReason() Reason {
106 if m != nil {
107 return m.Reason
108 }
109 return Reason_UNDEFINED_REASON
110}
111
112func (m *PhysicalInventoryResponse) GetInventory() *Hardware {
113 if m != nil {
114 return m.Inventory
115 }
116 return nil
117}
118
119type HWComponentInfoGetRequest struct {
120 DeviceUuid *Uuid `protobuf:"bytes,1,opt,name=device_uuid,json=deviceUuid,proto3" json:"device_uuid,omitempty"`
121 ComponentUuid *Uuid `protobuf:"bytes,2,opt,name=component_uuid,json=componentUuid,proto3" json:"component_uuid,omitempty"`
122 ComponentName string `protobuf:"bytes,3,opt,name=component_name,json=componentName,proto3" json:"component_name,omitempty"`
123 XXX_NoUnkeyedLiteral struct{} `json:"-"`
124 XXX_unrecognized []byte `json:"-"`
125 XXX_sizecache int32 `json:"-"`
126}
127
128func (m *HWComponentInfoGetRequest) Reset() { *m = HWComponentInfoGetRequest{} }
129func (m *HWComponentInfoGetRequest) String() string { return proto.CompactTextString(m) }
130func (*HWComponentInfoGetRequest) ProtoMessage() {}
131func (*HWComponentInfoGetRequest) Descriptor() ([]byte, []int) {
132 return fileDescriptor_eae902e73066286d, []int{2}
133}
134
135func (m *HWComponentInfoGetRequest) XXX_Unmarshal(b []byte) error {
136 return xxx_messageInfo_HWComponentInfoGetRequest.Unmarshal(m, b)
137}
138func (m *HWComponentInfoGetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
139 return xxx_messageInfo_HWComponentInfoGetRequest.Marshal(b, m, deterministic)
140}
141func (m *HWComponentInfoGetRequest) XXX_Merge(src proto.Message) {
142 xxx_messageInfo_HWComponentInfoGetRequest.Merge(m, src)
143}
144func (m *HWComponentInfoGetRequest) XXX_Size() int {
145 return xxx_messageInfo_HWComponentInfoGetRequest.Size(m)
146}
147func (m *HWComponentInfoGetRequest) XXX_DiscardUnknown() {
148 xxx_messageInfo_HWComponentInfoGetRequest.DiscardUnknown(m)
149}
150
151var xxx_messageInfo_HWComponentInfoGetRequest proto.InternalMessageInfo
152
153func (m *HWComponentInfoGetRequest) GetDeviceUuid() *Uuid {
154 if m != nil {
155 return m.DeviceUuid
156 }
157 return nil
158}
159
160func (m *HWComponentInfoGetRequest) GetComponentUuid() *Uuid {
161 if m != nil {
162 return m.ComponentUuid
163 }
164 return nil
165}
166
167func (m *HWComponentInfoGetRequest) GetComponentName() string {
168 if m != nil {
169 return m.ComponentName
170 }
171 return ""
172}
173
174type HWComponentInfoSetRequest struct {
175 DeviceUuid *Uuid `protobuf:"bytes,1,opt,name=device_uuid,json=deviceUuid,proto3" json:"device_uuid,omitempty"`
176 ComponentUuid *Uuid `protobuf:"bytes,2,opt,name=component_uuid,json=componentUuid,proto3" json:"component_uuid,omitempty"`
177 ComponentName string `protobuf:"bytes,3,opt,name=component_name,json=componentName,proto3" json:"component_name,omitempty"`
178 Changes *ModifiableComponent `protobuf:"bytes,4,opt,name=changes,proto3" json:"changes,omitempty"`
179 XXX_NoUnkeyedLiteral struct{} `json:"-"`
180 XXX_unrecognized []byte `json:"-"`
181 XXX_sizecache int32 `json:"-"`
182}
183
184func (m *HWComponentInfoSetRequest) Reset() { *m = HWComponentInfoSetRequest{} }
185func (m *HWComponentInfoSetRequest) String() string { return proto.CompactTextString(m) }
186func (*HWComponentInfoSetRequest) ProtoMessage() {}
187func (*HWComponentInfoSetRequest) Descriptor() ([]byte, []int) {
188 return fileDescriptor_eae902e73066286d, []int{3}
189}
190
191func (m *HWComponentInfoSetRequest) XXX_Unmarshal(b []byte) error {
192 return xxx_messageInfo_HWComponentInfoSetRequest.Unmarshal(m, b)
193}
194func (m *HWComponentInfoSetRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
195 return xxx_messageInfo_HWComponentInfoSetRequest.Marshal(b, m, deterministic)
196}
197func (m *HWComponentInfoSetRequest) XXX_Merge(src proto.Message) {
198 xxx_messageInfo_HWComponentInfoSetRequest.Merge(m, src)
199}
200func (m *HWComponentInfoSetRequest) XXX_Size() int {
201 return xxx_messageInfo_HWComponentInfoSetRequest.Size(m)
202}
203func (m *HWComponentInfoSetRequest) XXX_DiscardUnknown() {
204 xxx_messageInfo_HWComponentInfoSetRequest.DiscardUnknown(m)
205}
206
207var xxx_messageInfo_HWComponentInfoSetRequest proto.InternalMessageInfo
208
209func (m *HWComponentInfoSetRequest) GetDeviceUuid() *Uuid {
210 if m != nil {
211 return m.DeviceUuid
212 }
213 return nil
214}
215
216func (m *HWComponentInfoSetRequest) GetComponentUuid() *Uuid {
217 if m != nil {
218 return m.ComponentUuid
219 }
220 return nil
221}
222
223func (m *HWComponentInfoSetRequest) GetComponentName() string {
224 if m != nil {
225 return m.ComponentName
226 }
227 return ""
228}
229
230func (m *HWComponentInfoSetRequest) GetChanges() *ModifiableComponent {
231 if m != nil {
232 return m.Changes
233 }
234 return nil
235}
236
237type HWComponentInfoSetResponse struct {
238 Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=dmi.Status" json:"status,omitempty"`
239 Reason Reason `protobuf:"varint,2,opt,name=reason,proto3,enum=dmi.Reason" json:"reason,omitempty"`
240 XXX_NoUnkeyedLiteral struct{} `json:"-"`
241 XXX_unrecognized []byte `json:"-"`
242 XXX_sizecache int32 `json:"-"`
243}
244
245func (m *HWComponentInfoSetResponse) Reset() { *m = HWComponentInfoSetResponse{} }
246func (m *HWComponentInfoSetResponse) String() string { return proto.CompactTextString(m) }
247func (*HWComponentInfoSetResponse) ProtoMessage() {}
248func (*HWComponentInfoSetResponse) Descriptor() ([]byte, []int) {
249 return fileDescriptor_eae902e73066286d, []int{4}
250}
251
252func (m *HWComponentInfoSetResponse) XXX_Unmarshal(b []byte) error {
253 return xxx_messageInfo_HWComponentInfoSetResponse.Unmarshal(m, b)
254}
255func (m *HWComponentInfoSetResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
256 return xxx_messageInfo_HWComponentInfoSetResponse.Marshal(b, m, deterministic)
257}
258func (m *HWComponentInfoSetResponse) XXX_Merge(src proto.Message) {
259 xxx_messageInfo_HWComponentInfoSetResponse.Merge(m, src)
260}
261func (m *HWComponentInfoSetResponse) XXX_Size() int {
262 return xxx_messageInfo_HWComponentInfoSetResponse.Size(m)
263}
264func (m *HWComponentInfoSetResponse) XXX_DiscardUnknown() {
265 xxx_messageInfo_HWComponentInfoSetResponse.DiscardUnknown(m)
266}
267
268var xxx_messageInfo_HWComponentInfoSetResponse proto.InternalMessageInfo
269
270func (m *HWComponentInfoSetResponse) GetStatus() Status {
271 if m != nil {
272 return m.Status
273 }
274 return Status_UNDEFINED_STATUS
275}
276
277func (m *HWComponentInfoSetResponse) GetReason() Reason {
278 if m != nil {
279 return m.Reason
280 }
281 return Reason_UNDEFINED_REASON
282}
283
284type StartManagingDeviceResponse struct {
285 Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=dmi.Status" json:"status,omitempty"`
286 Reason Reason `protobuf:"varint,2,opt,name=reason,proto3,enum=dmi.Reason" json:"reason,omitempty"`
287 DeviceUuid *Uuid `protobuf:"bytes,3,opt,name=device_uuid,json=deviceUuid,proto3" json:"device_uuid,omitempty"`
288 XXX_NoUnkeyedLiteral struct{} `json:"-"`
289 XXX_unrecognized []byte `json:"-"`
290 XXX_sizecache int32 `json:"-"`
291}
292
293func (m *StartManagingDeviceResponse) Reset() { *m = StartManagingDeviceResponse{} }
294func (m *StartManagingDeviceResponse) String() string { return proto.CompactTextString(m) }
295func (*StartManagingDeviceResponse) ProtoMessage() {}
296func (*StartManagingDeviceResponse) Descriptor() ([]byte, []int) {
297 return fileDescriptor_eae902e73066286d, []int{5}
298}
299
300func (m *StartManagingDeviceResponse) XXX_Unmarshal(b []byte) error {
301 return xxx_messageInfo_StartManagingDeviceResponse.Unmarshal(m, b)
302}
303func (m *StartManagingDeviceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
304 return xxx_messageInfo_StartManagingDeviceResponse.Marshal(b, m, deterministic)
305}
306func (m *StartManagingDeviceResponse) XXX_Merge(src proto.Message) {
307 xxx_messageInfo_StartManagingDeviceResponse.Merge(m, src)
308}
309func (m *StartManagingDeviceResponse) XXX_Size() int {
310 return xxx_messageInfo_StartManagingDeviceResponse.Size(m)
311}
312func (m *StartManagingDeviceResponse) XXX_DiscardUnknown() {
313 xxx_messageInfo_StartManagingDeviceResponse.DiscardUnknown(m)
314}
315
316var xxx_messageInfo_StartManagingDeviceResponse proto.InternalMessageInfo
317
318func (m *StartManagingDeviceResponse) GetStatus() Status {
319 if m != nil {
320 return m.Status
321 }
322 return Status_UNDEFINED_STATUS
323}
324
325func (m *StartManagingDeviceResponse) GetReason() Reason {
326 if m != nil {
327 return m.Reason
328 }
329 return Reason_UNDEFINED_REASON
330}
331
332func (m *StartManagingDeviceResponse) GetDeviceUuid() *Uuid {
333 if m != nil {
334 return m.DeviceUuid
335 }
336 return nil
337}
338
Amit Ghosh366228e2020-07-06 13:46:42 +0100339type StopManagingDeviceRequest struct {
340 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
341 XXX_NoUnkeyedLiteral struct{} `json:"-"`
342 XXX_unrecognized []byte `json:"-"`
343 XXX_sizecache int32 `json:"-"`
344}
345
346func (m *StopManagingDeviceRequest) Reset() { *m = StopManagingDeviceRequest{} }
347func (m *StopManagingDeviceRequest) String() string { return proto.CompactTextString(m) }
348func (*StopManagingDeviceRequest) ProtoMessage() {}
349func (*StopManagingDeviceRequest) Descriptor() ([]byte, []int) {
350 return fileDescriptor_eae902e73066286d, []int{6}
351}
352
353func (m *StopManagingDeviceRequest) XXX_Unmarshal(b []byte) error {
354 return xxx_messageInfo_StopManagingDeviceRequest.Unmarshal(m, b)
355}
356func (m *StopManagingDeviceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
357 return xxx_messageInfo_StopManagingDeviceRequest.Marshal(b, m, deterministic)
358}
359func (m *StopManagingDeviceRequest) XXX_Merge(src proto.Message) {
360 xxx_messageInfo_StopManagingDeviceRequest.Merge(m, src)
361}
362func (m *StopManagingDeviceRequest) XXX_Size() int {
363 return xxx_messageInfo_StopManagingDeviceRequest.Size(m)
364}
365func (m *StopManagingDeviceRequest) XXX_DiscardUnknown() {
366 xxx_messageInfo_StopManagingDeviceRequest.DiscardUnknown(m)
367}
368
369var xxx_messageInfo_StopManagingDeviceRequest proto.InternalMessageInfo
370
371func (m *StopManagingDeviceRequest) GetName() string {
372 if m != nil {
373 return m.Name
374 }
375 return ""
376}
377
378type StopManagingDeviceResponse struct {
379 Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=dmi.Status" json:"status,omitempty"`
380 Reason Reason `protobuf:"varint,2,opt,name=reason,proto3,enum=dmi.Reason" json:"reason,omitempty"`
381 XXX_NoUnkeyedLiteral struct{} `json:"-"`
382 XXX_unrecognized []byte `json:"-"`
383 XXX_sizecache int32 `json:"-"`
384}
385
386func (m *StopManagingDeviceResponse) Reset() { *m = StopManagingDeviceResponse{} }
387func (m *StopManagingDeviceResponse) String() string { return proto.CompactTextString(m) }
388func (*StopManagingDeviceResponse) ProtoMessage() {}
389func (*StopManagingDeviceResponse) Descriptor() ([]byte, []int) {
390 return fileDescriptor_eae902e73066286d, []int{7}
391}
392
393func (m *StopManagingDeviceResponse) XXX_Unmarshal(b []byte) error {
394 return xxx_messageInfo_StopManagingDeviceResponse.Unmarshal(m, b)
395}
396func (m *StopManagingDeviceResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
397 return xxx_messageInfo_StopManagingDeviceResponse.Marshal(b, m, deterministic)
398}
399func (m *StopManagingDeviceResponse) XXX_Merge(src proto.Message) {
400 xxx_messageInfo_StopManagingDeviceResponse.Merge(m, src)
401}
402func (m *StopManagingDeviceResponse) XXX_Size() int {
403 return xxx_messageInfo_StopManagingDeviceResponse.Size(m)
404}
405func (m *StopManagingDeviceResponse) XXX_DiscardUnknown() {
406 xxx_messageInfo_StopManagingDeviceResponse.DiscardUnknown(m)
407}
408
409var xxx_messageInfo_StopManagingDeviceResponse proto.InternalMessageInfo
410
411func (m *StopManagingDeviceResponse) GetStatus() Status {
412 if m != nil {
413 return m.Status
414 }
415 return Status_UNDEFINED_STATUS
416}
417
418func (m *StopManagingDeviceResponse) GetReason() Reason {
419 if m != nil {
420 return m.Reason
421 }
422 return Reason_UNDEFINED_REASON
423}
424
Amit Ghosh09f28362020-06-12 21:52:19 +0100425func init() {
426 proto.RegisterType((*PhysicalInventoryRequest)(nil), "dmi.PhysicalInventoryRequest")
427 proto.RegisterType((*PhysicalInventoryResponse)(nil), "dmi.PhysicalInventoryResponse")
428 proto.RegisterType((*HWComponentInfoGetRequest)(nil), "dmi.HWComponentInfoGetRequest")
429 proto.RegisterType((*HWComponentInfoSetRequest)(nil), "dmi.HWComponentInfoSetRequest")
430 proto.RegisterType((*HWComponentInfoSetResponse)(nil), "dmi.HWComponentInfoSetResponse")
431 proto.RegisterType((*StartManagingDeviceResponse)(nil), "dmi.StartManagingDeviceResponse")
Amit Ghosh366228e2020-07-06 13:46:42 +0100432 proto.RegisterType((*StopManagingDeviceRequest)(nil), "dmi.StopManagingDeviceRequest")
433 proto.RegisterType((*StopManagingDeviceResponse)(nil), "dmi.StopManagingDeviceResponse")
Amit Ghosh09f28362020-06-12 21:52:19 +0100434}
435
436func init() { proto.RegisterFile("dmi/hw_management_service.proto", fileDescriptor_eae902e73066286d) }
437
438var fileDescriptor_eae902e73066286d = []byte{
Amit Ghosh366228e2020-07-06 13:46:42 +0100439 // 527 bytes of a gzipped FileDescriptorProto
440 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x55, 0xd1, 0x6a, 0x13, 0x41,
441 0x14, 0x65, 0x9b, 0x52, 0xc9, 0x8d, 0x0d, 0x38, 0xfa, 0xb0, 0x59, 0xb1, 0x2d, 0x2b, 0x82, 0x28,
442 0xcd, 0x96, 0xf4, 0x49, 0x7c, 0x53, 0x69, 0xd2, 0x87, 0x14, 0xd9, 0xa5, 0x04, 0x7c, 0x09, 0x93,
443 0x9d, 0x9b, 0x64, 0xa0, 0x33, 0xb3, 0xee, 0xcc, 0xa6, 0xf4, 0x37, 0xf4, 0x07, 0xfc, 0x13, 0x7f,
444 0xc2, 0x0f, 0x92, 0x9d, 0xdd, 0x6c, 0x42, 0x92, 0x15, 0x91, 0x0a, 0x7d, 0xdb, 0xcc, 0x39, 0xf7,
445 0x70, 0xee, 0x99, 0xb9, 0x37, 0x70, 0xcc, 0x04, 0x0f, 0xe6, 0xb7, 0x63, 0x41, 0x25, 0x9d, 0xa1,
446 0x40, 0x69, 0xc6, 0x1a, 0xd3, 0x05, 0x8f, 0xb1, 0x9b, 0xa4, 0xca, 0x28, 0xd2, 0x60, 0x82, 0x7b,
447 0x4f, 0x72, 0x56, 0xac, 0x84, 0x50, 0x52, 0x17, 0xe7, 0xde, 0xe3, 0xa2, 0xb0, 0xf8, 0xe5, 0x5f,
448 0x80, 0xfb, 0x79, 0x7e, 0xa7, 0x79, 0x4c, 0x6f, 0x2e, 0xe5, 0x02, 0xa5, 0x51, 0xe9, 0x5d, 0x88,
449 0x5f, 0x33, 0xd4, 0x86, 0xbc, 0x81, 0x16, 0xc3, 0x5c, 0x71, 0x9c, 0x65, 0x9c, 0xb9, 0xce, 0x89,
450 0xf3, 0xba, 0xd5, 0x6b, 0x76, 0x99, 0xe0, 0xdd, 0xeb, 0x8c, 0xb3, 0x10, 0x0a, 0x34, 0xff, 0xf6,
451 0xbf, 0x39, 0xd0, 0xd9, 0x21, 0xa4, 0x13, 0x25, 0x35, 0x92, 0x97, 0x70, 0xa0, 0x0d, 0x35, 0x99,
452 0xb6, 0x22, 0xed, 0x5e, 0xcb, 0x8a, 0x44, 0xf6, 0x28, 0x2c, 0xa1, 0x9c, 0x94, 0x22, 0xd5, 0x4a,
453 0xba, 0x7b, 0x6b, 0xa4, 0xd0, 0x1e, 0x85, 0x25, 0x44, 0xde, 0x42, 0x93, 0x2f, 0xe5, 0xdd, 0x86,
454 0x75, 0x74, 0x68, 0x79, 0x03, 0x9a, 0xb2, 0x5b, 0x9a, 0x62, 0xb8, 0xc2, 0xfd, 0x1f, 0x0e, 0x74,
455 0x06, 0xa3, 0x8f, 0x4a, 0x24, 0x4a, 0xa2, 0x34, 0x97, 0x72, 0xaa, 0xfa, 0x68, 0xfe, 0xa1, 0x3d,
456 0x72, 0x06, 0xed, 0x78, 0x29, 0x53, 0xd0, 0xf7, 0x36, 0xe9, 0x87, 0x15, 0xc1, 0x56, 0xbc, 0x5a,
457 0xaf, 0x90, 0x54, 0xa0, 0x75, 0xdb, 0x5c, 0xa3, 0x5d, 0x51, 0x81, 0xfe, 0xaf, 0x6d, 0x8b, 0xd1,
458 0xc3, 0xb2, 0x48, 0x7a, 0xf0, 0x28, 0x9e, 0x53, 0x39, 0x43, 0xed, 0xee, 0x5b, 0x45, 0xd7, 0x2a,
459 0x0e, 0x15, 0xe3, 0x53, 0x4e, 0x27, 0x37, 0x58, 0xb9, 0x0f, 0x97, 0x44, 0x7f, 0x0a, 0xde, 0xae,
460 0xae, 0xee, 0xfb, 0x39, 0xf8, 0xdf, 0x1d, 0x78, 0x1e, 0x19, 0x9a, 0x9a, 0x61, 0x3e, 0x06, 0x5c,
461 0xce, 0x3e, 0xd9, 0x40, 0xfe, 0xc3, 0xc3, 0xdb, 0xb8, 0x8a, 0xc6, 0x9f, 0x86, 0x21, 0x80, 0x4e,
462 0x64, 0x54, 0xb2, 0xe9, 0xa9, 0xb8, 0x53, 0x02, 0xfb, 0x36, 0x6b, 0xc7, 0x66, 0x6d, 0xbf, 0xf3,
463 0xb8, 0x76, 0x15, 0xdc, 0x77, 0x13, 0xbd, 0x9f, 0x0d, 0xe8, 0x5c, 0x51, 0xc3, 0x17, 0x38, 0x18,
464 0x0d, 0xab, 0xc5, 0x11, 0x15, 0x7b, 0x83, 0x44, 0xf0, 0x74, 0x47, 0x96, 0xa4, 0xf6, 0xba, 0xbd,
465 0x93, 0xa5, 0x91, 0xba, 0xfc, 0xcf, 0x1c, 0x72, 0x0d, 0x64, 0xbb, 0x35, 0x72, 0x54, 0x56, 0xd6,
466 0x84, 0xe4, 0x1d, 0xd7, 0xe2, 0x65, 0x26, 0x23, 0x78, 0xd6, 0x47, 0xb3, 0xb5, 0x71, 0xc8, 0x0b,
467 0x5b, 0x58, 0xb7, 0xd2, 0xbc, 0xa3, 0x3a, 0xb8, 0xf2, 0x7b, 0x01, 0xa4, 0x8f, 0x66, 0xe3, 0xf1,
468 0x96, 0x7e, 0x6b, 0x77, 0x89, 0xd7, 0xb6, 0x78, 0x85, 0x96, 0x7d, 0xff, 0xa5, 0xce, 0x6a, 0xe0,
469 0xcb, 0xbe, 0xeb, 0x47, 0xe7, 0xc3, 0xfb, 0x2f, 0xef, 0x66, 0xdc, 0xcc, 0xb3, 0x49, 0x37, 0x56,
470 0x22, 0x50, 0x09, 0xca, 0x58, 0xa5, 0x2c, 0x28, 0x1e, 0xdf, 0xe9, 0xea, 0xcf, 0xe0, 0x94, 0x4b,
471 0x83, 0xe9, 0x94, 0xc6, 0x18, 0x2c, 0xce, 0x83, 0x99, 0x0a, 0x98, 0xe0, 0x93, 0x03, 0xbb, 0xf3,
472 0xcf, 0x7f, 0x07, 0x00, 0x00, 0xff, 0xff, 0xe0, 0x47, 0xf4, 0xba, 0x3c, 0x06, 0x00, 0x00,
Amit Ghosh09f28362020-06-12 21:52:19 +0100473}
474
475// Reference imports to suppress errors if they are not otherwise used.
476var _ context.Context
477var _ grpc.ClientConn
478
479// This is a compile-time assertion to ensure that this generated file
480// is compatible with the grpc package it is being compiled against.
481const _ = grpc.SupportPackageIsVersion4
482
483// NativeHWManagementServiceClient is the client API for NativeHWManagementService service.
484//
485// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
486type NativeHWManagementServiceClient interface {
487 // Initializes context for a device and sets up required states
Amit Ghosh704462f2020-06-24 16:44:56 +0100488 // In the call to StartManagingDevice, the fields of ModifiableComponent which are relevant
489 // and their meanings in this context is mentioned below:
490 // name = The unique name that needs to be assigned to this hardware;
491 // class = COMPONENT_TYPE_UNDEFINED;
492 // parent = nil;
493 // alias = Optional;
494 // asset_id = Optional;
495 // uri = IP Address of the Hardware;
496 StartManagingDevice(ctx context.Context, in *ModifiableComponent, opts ...grpc.CallOption) (NativeHWManagementService_StartManagingDeviceClient, error)
Amit Ghosh366228e2020-07-06 13:46:42 +0100497 // Stop management of a device and clean up any context and caches for that device
498 StopManagingDevice(ctx context.Context, in *StopManagingDeviceRequest, opts ...grpc.CallOption) (*StopManagingDeviceResponse, error)
Amit Ghosh09f28362020-06-12 21:52:19 +0100499 // Get the HW inventory details of the Device
500 GetPhysicalInventory(ctx context.Context, in *PhysicalInventoryRequest, opts ...grpc.CallOption) (NativeHWManagementService_GetPhysicalInventoryClient, error)
501 // Get the details of a particular HW component
502 GetHWComponentInfo(ctx context.Context, in *HWComponentInfoGetRequest, opts ...grpc.CallOption) (NativeHWManagementService_GetHWComponentInfoClient, error)
503 // Sets the permissible attributes of a HW component
504 SetHWComponentInfo(ctx context.Context, in *HWComponentInfoSetRequest, opts ...grpc.CallOption) (*HWComponentInfoSetResponse, error)
505}
506
507type nativeHWManagementServiceClient struct {
508 cc *grpc.ClientConn
509}
510
511func NewNativeHWManagementServiceClient(cc *grpc.ClientConn) NativeHWManagementServiceClient {
512 return &nativeHWManagementServiceClient{cc}
513}
514
Amit Ghosh704462f2020-06-24 16:44:56 +0100515func (c *nativeHWManagementServiceClient) StartManagingDevice(ctx context.Context, in *ModifiableComponent, opts ...grpc.CallOption) (NativeHWManagementService_StartManagingDeviceClient, error) {
Amit Ghosh09f28362020-06-12 21:52:19 +0100516 stream, err := c.cc.NewStream(ctx, &_NativeHWManagementService_serviceDesc.Streams[0], "/dmi.NativeHWManagementService/StartManagingDevice", opts...)
517 if err != nil {
518 return nil, err
519 }
520 x := &nativeHWManagementServiceStartManagingDeviceClient{stream}
521 if err := x.ClientStream.SendMsg(in); err != nil {
522 return nil, err
523 }
524 if err := x.ClientStream.CloseSend(); err != nil {
525 return nil, err
526 }
527 return x, nil
528}
529
530type NativeHWManagementService_StartManagingDeviceClient interface {
531 Recv() (*StartManagingDeviceResponse, error)
532 grpc.ClientStream
533}
534
535type nativeHWManagementServiceStartManagingDeviceClient struct {
536 grpc.ClientStream
537}
538
539func (x *nativeHWManagementServiceStartManagingDeviceClient) Recv() (*StartManagingDeviceResponse, error) {
540 m := new(StartManagingDeviceResponse)
541 if err := x.ClientStream.RecvMsg(m); err != nil {
542 return nil, err
543 }
544 return m, nil
545}
546
Amit Ghosh366228e2020-07-06 13:46:42 +0100547func (c *nativeHWManagementServiceClient) StopManagingDevice(ctx context.Context, in *StopManagingDeviceRequest, opts ...grpc.CallOption) (*StopManagingDeviceResponse, error) {
548 out := new(StopManagingDeviceResponse)
549 err := c.cc.Invoke(ctx, "/dmi.NativeHWManagementService/StopManagingDevice", in, out, opts...)
550 if err != nil {
551 return nil, err
552 }
553 return out, nil
554}
555
Amit Ghosh09f28362020-06-12 21:52:19 +0100556func (c *nativeHWManagementServiceClient) GetPhysicalInventory(ctx context.Context, in *PhysicalInventoryRequest, opts ...grpc.CallOption) (NativeHWManagementService_GetPhysicalInventoryClient, error) {
557 stream, err := c.cc.NewStream(ctx, &_NativeHWManagementService_serviceDesc.Streams[1], "/dmi.NativeHWManagementService/GetPhysicalInventory", opts...)
558 if err != nil {
559 return nil, err
560 }
561 x := &nativeHWManagementServiceGetPhysicalInventoryClient{stream}
562 if err := x.ClientStream.SendMsg(in); err != nil {
563 return nil, err
564 }
565 if err := x.ClientStream.CloseSend(); err != nil {
566 return nil, err
567 }
568 return x, nil
569}
570
571type NativeHWManagementService_GetPhysicalInventoryClient interface {
572 Recv() (*PhysicalInventoryResponse, error)
573 grpc.ClientStream
574}
575
576type nativeHWManagementServiceGetPhysicalInventoryClient struct {
577 grpc.ClientStream
578}
579
580func (x *nativeHWManagementServiceGetPhysicalInventoryClient) Recv() (*PhysicalInventoryResponse, error) {
581 m := new(PhysicalInventoryResponse)
582 if err := x.ClientStream.RecvMsg(m); err != nil {
583 return nil, err
584 }
585 return m, nil
586}
587
588func (c *nativeHWManagementServiceClient) GetHWComponentInfo(ctx context.Context, in *HWComponentInfoGetRequest, opts ...grpc.CallOption) (NativeHWManagementService_GetHWComponentInfoClient, error) {
589 stream, err := c.cc.NewStream(ctx, &_NativeHWManagementService_serviceDesc.Streams[2], "/dmi.NativeHWManagementService/GetHWComponentInfo", opts...)
590 if err != nil {
591 return nil, err
592 }
593 x := &nativeHWManagementServiceGetHWComponentInfoClient{stream}
594 if err := x.ClientStream.SendMsg(in); err != nil {
595 return nil, err
596 }
597 if err := x.ClientStream.CloseSend(); err != nil {
598 return nil, err
599 }
600 return x, nil
601}
602
603type NativeHWManagementService_GetHWComponentInfoClient interface {
604 Recv() (*Component, error)
605 grpc.ClientStream
606}
607
608type nativeHWManagementServiceGetHWComponentInfoClient struct {
609 grpc.ClientStream
610}
611
612func (x *nativeHWManagementServiceGetHWComponentInfoClient) Recv() (*Component, error) {
613 m := new(Component)
614 if err := x.ClientStream.RecvMsg(m); err != nil {
615 return nil, err
616 }
617 return m, nil
618}
619
620func (c *nativeHWManagementServiceClient) SetHWComponentInfo(ctx context.Context, in *HWComponentInfoSetRequest, opts ...grpc.CallOption) (*HWComponentInfoSetResponse, error) {
621 out := new(HWComponentInfoSetResponse)
622 err := c.cc.Invoke(ctx, "/dmi.NativeHWManagementService/SetHWComponentInfo", in, out, opts...)
623 if err != nil {
624 return nil, err
625 }
626 return out, nil
627}
628
629// NativeHWManagementServiceServer is the server API for NativeHWManagementService service.
630type NativeHWManagementServiceServer interface {
631 // Initializes context for a device and sets up required states
Amit Ghosh704462f2020-06-24 16:44:56 +0100632 // In the call to StartManagingDevice, the fields of ModifiableComponent which are relevant
633 // and their meanings in this context is mentioned below:
634 // name = The unique name that needs to be assigned to this hardware;
635 // class = COMPONENT_TYPE_UNDEFINED;
636 // parent = nil;
637 // alias = Optional;
638 // asset_id = Optional;
639 // uri = IP Address of the Hardware;
640 StartManagingDevice(*ModifiableComponent, NativeHWManagementService_StartManagingDeviceServer) error
Amit Ghosh366228e2020-07-06 13:46:42 +0100641 // Stop management of a device and clean up any context and caches for that device
642 StopManagingDevice(context.Context, *StopManagingDeviceRequest) (*StopManagingDeviceResponse, error)
Amit Ghosh09f28362020-06-12 21:52:19 +0100643 // Get the HW inventory details of the Device
644 GetPhysicalInventory(*PhysicalInventoryRequest, NativeHWManagementService_GetPhysicalInventoryServer) error
645 // Get the details of a particular HW component
646 GetHWComponentInfo(*HWComponentInfoGetRequest, NativeHWManagementService_GetHWComponentInfoServer) error
647 // Sets the permissible attributes of a HW component
648 SetHWComponentInfo(context.Context, *HWComponentInfoSetRequest) (*HWComponentInfoSetResponse, error)
649}
650
651func RegisterNativeHWManagementServiceServer(s *grpc.Server, srv NativeHWManagementServiceServer) {
652 s.RegisterService(&_NativeHWManagementService_serviceDesc, srv)
653}
654
655func _NativeHWManagementService_StartManagingDevice_Handler(srv interface{}, stream grpc.ServerStream) error {
Amit Ghosh704462f2020-06-24 16:44:56 +0100656 m := new(ModifiableComponent)
Amit Ghosh09f28362020-06-12 21:52:19 +0100657 if err := stream.RecvMsg(m); err != nil {
658 return err
659 }
660 return srv.(NativeHWManagementServiceServer).StartManagingDevice(m, &nativeHWManagementServiceStartManagingDeviceServer{stream})
661}
662
663type NativeHWManagementService_StartManagingDeviceServer interface {
664 Send(*StartManagingDeviceResponse) error
665 grpc.ServerStream
666}
667
668type nativeHWManagementServiceStartManagingDeviceServer struct {
669 grpc.ServerStream
670}
671
672func (x *nativeHWManagementServiceStartManagingDeviceServer) Send(m *StartManagingDeviceResponse) error {
673 return x.ServerStream.SendMsg(m)
674}
675
Amit Ghosh366228e2020-07-06 13:46:42 +0100676func _NativeHWManagementService_StopManagingDevice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
677 in := new(StopManagingDeviceRequest)
678 if err := dec(in); err != nil {
679 return nil, err
680 }
681 if interceptor == nil {
682 return srv.(NativeHWManagementServiceServer).StopManagingDevice(ctx, in)
683 }
684 info := &grpc.UnaryServerInfo{
685 Server: srv,
686 FullMethod: "/dmi.NativeHWManagementService/StopManagingDevice",
687 }
688 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
689 return srv.(NativeHWManagementServiceServer).StopManagingDevice(ctx, req.(*StopManagingDeviceRequest))
690 }
691 return interceptor(ctx, in, info, handler)
692}
693
Amit Ghosh09f28362020-06-12 21:52:19 +0100694func _NativeHWManagementService_GetPhysicalInventory_Handler(srv interface{}, stream grpc.ServerStream) error {
695 m := new(PhysicalInventoryRequest)
696 if err := stream.RecvMsg(m); err != nil {
697 return err
698 }
699 return srv.(NativeHWManagementServiceServer).GetPhysicalInventory(m, &nativeHWManagementServiceGetPhysicalInventoryServer{stream})
700}
701
702type NativeHWManagementService_GetPhysicalInventoryServer interface {
703 Send(*PhysicalInventoryResponse) error
704 grpc.ServerStream
705}
706
707type nativeHWManagementServiceGetPhysicalInventoryServer struct {
708 grpc.ServerStream
709}
710
711func (x *nativeHWManagementServiceGetPhysicalInventoryServer) Send(m *PhysicalInventoryResponse) error {
712 return x.ServerStream.SendMsg(m)
713}
714
715func _NativeHWManagementService_GetHWComponentInfo_Handler(srv interface{}, stream grpc.ServerStream) error {
716 m := new(HWComponentInfoGetRequest)
717 if err := stream.RecvMsg(m); err != nil {
718 return err
719 }
720 return srv.(NativeHWManagementServiceServer).GetHWComponentInfo(m, &nativeHWManagementServiceGetHWComponentInfoServer{stream})
721}
722
723type NativeHWManagementService_GetHWComponentInfoServer interface {
724 Send(*Component) error
725 grpc.ServerStream
726}
727
728type nativeHWManagementServiceGetHWComponentInfoServer struct {
729 grpc.ServerStream
730}
731
732func (x *nativeHWManagementServiceGetHWComponentInfoServer) Send(m *Component) error {
733 return x.ServerStream.SendMsg(m)
734}
735
736func _NativeHWManagementService_SetHWComponentInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
737 in := new(HWComponentInfoSetRequest)
738 if err := dec(in); err != nil {
739 return nil, err
740 }
741 if interceptor == nil {
742 return srv.(NativeHWManagementServiceServer).SetHWComponentInfo(ctx, in)
743 }
744 info := &grpc.UnaryServerInfo{
745 Server: srv,
746 FullMethod: "/dmi.NativeHWManagementService/SetHWComponentInfo",
747 }
748 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
749 return srv.(NativeHWManagementServiceServer).SetHWComponentInfo(ctx, req.(*HWComponentInfoSetRequest))
750 }
751 return interceptor(ctx, in, info, handler)
752}
753
754var _NativeHWManagementService_serviceDesc = grpc.ServiceDesc{
755 ServiceName: "dmi.NativeHWManagementService",
756 HandlerType: (*NativeHWManagementServiceServer)(nil),
757 Methods: []grpc.MethodDesc{
758 {
Amit Ghosh366228e2020-07-06 13:46:42 +0100759 MethodName: "StopManagingDevice",
760 Handler: _NativeHWManagementService_StopManagingDevice_Handler,
761 },
762 {
Amit Ghosh09f28362020-06-12 21:52:19 +0100763 MethodName: "SetHWComponentInfo",
764 Handler: _NativeHWManagementService_SetHWComponentInfo_Handler,
765 },
766 },
767 Streams: []grpc.StreamDesc{
768 {
769 StreamName: "StartManagingDevice",
770 Handler: _NativeHWManagementService_StartManagingDevice_Handler,
771 ServerStreams: true,
772 },
773 {
774 StreamName: "GetPhysicalInventory",
775 Handler: _NativeHWManagementService_GetPhysicalInventory_Handler,
776 ServerStreams: true,
777 },
778 {
779 StreamName: "GetHWComponentInfo",
780 Handler: _NativeHWManagementService_GetHWComponentInfo_Handler,
781 ServerStreams: true,
782 },
783 },
784 Metadata: "dmi/hw_management_service.proto",
785}