blob: dded8f37cefb140a18e15ff70c12d7d42ec2a1a0 [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.ghosh188a84f2020-09-27 20:59:25 +0200520type 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
529func (m *SetLoggingEndpointRequest) Reset() { *m = SetLoggingEndpointRequest{} }
530func (m *SetLoggingEndpointRequest) String() string { return proto.CompactTextString(m) }
531func (*SetLoggingEndpointRequest) ProtoMessage() {}
532func (*SetLoggingEndpointRequest) Descriptor() ([]byte, []int) {
533 return fileDescriptor_eae902e73066286d, []int{10}
534}
535
536func (m *SetLoggingEndpointRequest) XXX_Unmarshal(b []byte) error {
537 return xxx_messageInfo_SetLoggingEndpointRequest.Unmarshal(m, b)
538}
539func (m *SetLoggingEndpointRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
540 return xxx_messageInfo_SetLoggingEndpointRequest.Marshal(b, m, deterministic)
541}
542func (m *SetLoggingEndpointRequest) XXX_Merge(src proto.Message) {
543 xxx_messageInfo_SetLoggingEndpointRequest.Merge(m, src)
544}
545func (m *SetLoggingEndpointRequest) XXX_Size() int {
546 return xxx_messageInfo_SetLoggingEndpointRequest.Size(m)
547}
548func (m *SetLoggingEndpointRequest) XXX_DiscardUnknown() {
549 xxx_messageInfo_SetLoggingEndpointRequest.DiscardUnknown(m)
550}
551
552var xxx_messageInfo_SetLoggingEndpointRequest proto.InternalMessageInfo
553
554func (m *SetLoggingEndpointRequest) GetDeviceUuid() *Uuid {
555 if m != nil {
556 return m.DeviceUuid
557 }
558 return nil
559}
560
561func (m *SetLoggingEndpointRequest) GetLoggingEndpoint() string {
562 if m != nil {
563 return m.LoggingEndpoint
564 }
565 return ""
566}
567
568func (m *SetLoggingEndpointRequest) GetLoggingProtocol() string {
569 if m != nil {
570 return m.LoggingProtocol
571 }
572 return ""
573}
574
575type 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
583func (m *SetRemoteEndpointResponse) Reset() { *m = SetRemoteEndpointResponse{} }
584func (m *SetRemoteEndpointResponse) String() string { return proto.CompactTextString(m) }
585func (*SetRemoteEndpointResponse) ProtoMessage() {}
586func (*SetRemoteEndpointResponse) Descriptor() ([]byte, []int) {
587 return fileDescriptor_eae902e73066286d, []int{11}
588}
589
590func (m *SetRemoteEndpointResponse) XXX_Unmarshal(b []byte) error {
591 return xxx_messageInfo_SetRemoteEndpointResponse.Unmarshal(m, b)
592}
593func (m *SetRemoteEndpointResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
594 return xxx_messageInfo_SetRemoteEndpointResponse.Marshal(b, m, deterministic)
595}
596func (m *SetRemoteEndpointResponse) XXX_Merge(src proto.Message) {
597 xxx_messageInfo_SetRemoteEndpointResponse.Merge(m, src)
598}
599func (m *SetRemoteEndpointResponse) XXX_Size() int {
600 return xxx_messageInfo_SetRemoteEndpointResponse.Size(m)
601}
602func (m *SetRemoteEndpointResponse) XXX_DiscardUnknown() {
603 xxx_messageInfo_SetRemoteEndpointResponse.DiscardUnknown(m)
604}
605
606var xxx_messageInfo_SetRemoteEndpointResponse proto.InternalMessageInfo
607
608func (m *SetRemoteEndpointResponse) GetStatus() Status {
609 if m != nil {
610 return m.Status
611 }
612 return Status_UNDEFINED_STATUS
613}
614
615func (m *SetRemoteEndpointResponse) GetReason() Reason {
616 if m != nil {
617 return m.Reason
618 }
619 return Reason_UNDEFINED_REASON
620}
621
622type 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
632func (m *GetLoggingEndpointResponse) Reset() { *m = GetLoggingEndpointResponse{} }
633func (m *GetLoggingEndpointResponse) String() string { return proto.CompactTextString(m) }
634func (*GetLoggingEndpointResponse) ProtoMessage() {}
635func (*GetLoggingEndpointResponse) Descriptor() ([]byte, []int) {
636 return fileDescriptor_eae902e73066286d, []int{12}
637}
638
639func (m *GetLoggingEndpointResponse) XXX_Unmarshal(b []byte) error {
640 return xxx_messageInfo_GetLoggingEndpointResponse.Unmarshal(m, b)
641}
642func (m *GetLoggingEndpointResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
643 return xxx_messageInfo_GetLoggingEndpointResponse.Marshal(b, m, deterministic)
644}
645func (m *GetLoggingEndpointResponse) XXX_Merge(src proto.Message) {
646 xxx_messageInfo_GetLoggingEndpointResponse.Merge(m, src)
647}
648func (m *GetLoggingEndpointResponse) XXX_Size() int {
649 return xxx_messageInfo_GetLoggingEndpointResponse.Size(m)
650}
651func (m *GetLoggingEndpointResponse) XXX_DiscardUnknown() {
652 xxx_messageInfo_GetLoggingEndpointResponse.DiscardUnknown(m)
653}
654
655var xxx_messageInfo_GetLoggingEndpointResponse proto.InternalMessageInfo
656
657func (m *GetLoggingEndpointResponse) GetStatus() Status {
658 if m != nil {
659 return m.Status
660 }
661 return Status_UNDEFINED_STATUS
662}
663
664func (m *GetLoggingEndpointResponse) GetReason() Reason {
665 if m != nil {
666 return m.Reason
667 }
668 return Reason_UNDEFINED_REASON
669}
670
671func (m *GetLoggingEndpointResponse) GetLoggingEndpoint() string {
672 if m != nil {
673 return m.LoggingEndpoint
674 }
675 return ""
676}
677
678func (m *GetLoggingEndpointResponse) GetLoggingProtocol() string {
679 if m != nil {
680 return m.LoggingProtocol
681 }
682 return ""
683}
684
685type 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
692func (m *SetMsgBusEndpointRequest) Reset() { *m = SetMsgBusEndpointRequest{} }
693func (m *SetMsgBusEndpointRequest) String() string { return proto.CompactTextString(m) }
694func (*SetMsgBusEndpointRequest) ProtoMessage() {}
695func (*SetMsgBusEndpointRequest) Descriptor() ([]byte, []int) {
696 return fileDescriptor_eae902e73066286d, []int{13}
697}
698
699func (m *SetMsgBusEndpointRequest) XXX_Unmarshal(b []byte) error {
700 return xxx_messageInfo_SetMsgBusEndpointRequest.Unmarshal(m, b)
701}
702func (m *SetMsgBusEndpointRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
703 return xxx_messageInfo_SetMsgBusEndpointRequest.Marshal(b, m, deterministic)
704}
705func (m *SetMsgBusEndpointRequest) XXX_Merge(src proto.Message) {
706 xxx_messageInfo_SetMsgBusEndpointRequest.Merge(m, src)
707}
708func (m *SetMsgBusEndpointRequest) XXX_Size() int {
709 return xxx_messageInfo_SetMsgBusEndpointRequest.Size(m)
710}
711func (m *SetMsgBusEndpointRequest) XXX_DiscardUnknown() {
712 xxx_messageInfo_SetMsgBusEndpointRequest.DiscardUnknown(m)
713}
714
715var xxx_messageInfo_SetMsgBusEndpointRequest proto.InternalMessageInfo
716
717func (m *SetMsgBusEndpointRequest) GetMsgbusEndpoint() string {
718 if m != nil {
719 return m.MsgbusEndpoint
720 }
721 return ""
722}
723
724type 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
733func (m *GetMsgBusEndpointResponse) Reset() { *m = GetMsgBusEndpointResponse{} }
734func (m *GetMsgBusEndpointResponse) String() string { return proto.CompactTextString(m) }
735func (*GetMsgBusEndpointResponse) ProtoMessage() {}
736func (*GetMsgBusEndpointResponse) Descriptor() ([]byte, []int) {
737 return fileDescriptor_eae902e73066286d, []int{14}
738}
739
740func (m *GetMsgBusEndpointResponse) XXX_Unmarshal(b []byte) error {
741 return xxx_messageInfo_GetMsgBusEndpointResponse.Unmarshal(m, b)
742}
743func (m *GetMsgBusEndpointResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
744 return xxx_messageInfo_GetMsgBusEndpointResponse.Marshal(b, m, deterministic)
745}
746func (m *GetMsgBusEndpointResponse) XXX_Merge(src proto.Message) {
747 xxx_messageInfo_GetMsgBusEndpointResponse.Merge(m, src)
748}
749func (m *GetMsgBusEndpointResponse) XXX_Size() int {
750 return xxx_messageInfo_GetMsgBusEndpointResponse.Size(m)
751}
752func (m *GetMsgBusEndpointResponse) XXX_DiscardUnknown() {
753 xxx_messageInfo_GetMsgBusEndpointResponse.DiscardUnknown(m)
754}
755
756var xxx_messageInfo_GetMsgBusEndpointResponse proto.InternalMessageInfo
757
758func (m *GetMsgBusEndpointResponse) GetStatus() Status {
759 if m != nil {
760 return m.Status
761 }
762 return Status_UNDEFINED_STATUS
763}
764
765func (m *GetMsgBusEndpointResponse) GetReason() Reason {
766 if m != nil {
767 return m.Reason
768 }
769 return Reason_UNDEFINED_REASON
770}
771
772func (m *GetMsgBusEndpointResponse) GetMsgbusEndpoint() string {
773 if m != nil {
774 return m.MsgbusEndpoint
775 }
776 return ""
777}
778
Andrea Campanellab91e9a42020-10-09 14:31:43 +0200779type EntitiesLogLevel struct {
780 LogLevel LogLevel `protobuf:"varint,1,opt,name=logLevel,proto3,enum=dmi.LogLevel" json:"logLevel,omitempty"`
781 Entities []string `protobuf:"bytes,2,rep,name=entities,proto3" json:"entities,omitempty"`
782 XXX_NoUnkeyedLiteral struct{} `json:"-"`
783 XXX_unrecognized []byte `json:"-"`
784 XXX_sizecache int32 `json:"-"`
785}
786
787func (m *EntitiesLogLevel) Reset() { *m = EntitiesLogLevel{} }
788func (m *EntitiesLogLevel) String() string { return proto.CompactTextString(m) }
789func (*EntitiesLogLevel) ProtoMessage() {}
790func (*EntitiesLogLevel) Descriptor() ([]byte, []int) {
791 return fileDescriptor_eae902e73066286d, []int{15}
792}
793
794func (m *EntitiesLogLevel) XXX_Unmarshal(b []byte) error {
795 return xxx_messageInfo_EntitiesLogLevel.Unmarshal(m, b)
796}
797func (m *EntitiesLogLevel) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
798 return xxx_messageInfo_EntitiesLogLevel.Marshal(b, m, deterministic)
799}
800func (m *EntitiesLogLevel) XXX_Merge(src proto.Message) {
801 xxx_messageInfo_EntitiesLogLevel.Merge(m, src)
802}
803func (m *EntitiesLogLevel) XXX_Size() int {
804 return xxx_messageInfo_EntitiesLogLevel.Size(m)
805}
806func (m *EntitiesLogLevel) XXX_DiscardUnknown() {
807 xxx_messageInfo_EntitiesLogLevel.DiscardUnknown(m)
808}
809
810var xxx_messageInfo_EntitiesLogLevel proto.InternalMessageInfo
811
812func (m *EntitiesLogLevel) GetLogLevel() LogLevel {
813 if m != nil {
814 return m.LogLevel
815 }
816 return LogLevel_TRACE
817}
818
819func (m *EntitiesLogLevel) GetEntities() []string {
820 if m != nil {
821 return m.Entities
822 }
823 return nil
824}
825
826type SetLogLevelRequest struct {
827 DeviceUuid *Uuid `protobuf:"bytes,1,opt,name=device_uuid,json=deviceUuid,proto3" json:"device_uuid,omitempty"`
828 Loglevels []*EntitiesLogLevel `protobuf:"bytes,2,rep,name=loglevels,proto3" json:"loglevels,omitempty"`
829 XXX_NoUnkeyedLiteral struct{} `json:"-"`
830 XXX_unrecognized []byte `json:"-"`
831 XXX_sizecache int32 `json:"-"`
832}
833
834func (m *SetLogLevelRequest) Reset() { *m = SetLogLevelRequest{} }
835func (m *SetLogLevelRequest) String() string { return proto.CompactTextString(m) }
836func (*SetLogLevelRequest) ProtoMessage() {}
837func (*SetLogLevelRequest) Descriptor() ([]byte, []int) {
838 return fileDescriptor_eae902e73066286d, []int{16}
839}
840
841func (m *SetLogLevelRequest) XXX_Unmarshal(b []byte) error {
842 return xxx_messageInfo_SetLogLevelRequest.Unmarshal(m, b)
843}
844func (m *SetLogLevelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
845 return xxx_messageInfo_SetLogLevelRequest.Marshal(b, m, deterministic)
846}
847func (m *SetLogLevelRequest) XXX_Merge(src proto.Message) {
848 xxx_messageInfo_SetLogLevelRequest.Merge(m, src)
849}
850func (m *SetLogLevelRequest) XXX_Size() int {
851 return xxx_messageInfo_SetLogLevelRequest.Size(m)
852}
853func (m *SetLogLevelRequest) XXX_DiscardUnknown() {
854 xxx_messageInfo_SetLogLevelRequest.DiscardUnknown(m)
855}
856
857var xxx_messageInfo_SetLogLevelRequest proto.InternalMessageInfo
858
859func (m *SetLogLevelRequest) GetDeviceUuid() *Uuid {
860 if m != nil {
861 return m.DeviceUuid
862 }
863 return nil
864}
865
866func (m *SetLogLevelRequest) GetLoglevels() []*EntitiesLogLevel {
867 if m != nil {
868 return m.Loglevels
869 }
870 return nil
871}
872
873type SetLogLevelResponse struct {
amit.ghosh5d97dba2020-11-12 16:45:27 +0100874 DeviceUuid *Uuid `protobuf:"bytes,1,opt,name=device_uuid,json=deviceUuid,proto3" json:"device_uuid,omitempty"`
875 Status Status `protobuf:"varint,2,opt,name=status,proto3,enum=dmi.Status" json:"status,omitempty"`
876 Reason Reason `protobuf:"varint,3,opt,name=reason,proto3,enum=dmi.Reason" json:"reason,omitempty"`
877 XXX_NoUnkeyedLiteral struct{} `json:"-"`
878 XXX_unrecognized []byte `json:"-"`
879 XXX_sizecache int32 `json:"-"`
Andrea Campanellab91e9a42020-10-09 14:31:43 +0200880}
881
882func (m *SetLogLevelResponse) Reset() { *m = SetLogLevelResponse{} }
883func (m *SetLogLevelResponse) String() string { return proto.CompactTextString(m) }
884func (*SetLogLevelResponse) ProtoMessage() {}
885func (*SetLogLevelResponse) Descriptor() ([]byte, []int) {
886 return fileDescriptor_eae902e73066286d, []int{17}
887}
888
889func (m *SetLogLevelResponse) XXX_Unmarshal(b []byte) error {
890 return xxx_messageInfo_SetLogLevelResponse.Unmarshal(m, b)
891}
892func (m *SetLogLevelResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
893 return xxx_messageInfo_SetLogLevelResponse.Marshal(b, m, deterministic)
894}
895func (m *SetLogLevelResponse) XXX_Merge(src proto.Message) {
896 xxx_messageInfo_SetLogLevelResponse.Merge(m, src)
897}
898func (m *SetLogLevelResponse) XXX_Size() int {
899 return xxx_messageInfo_SetLogLevelResponse.Size(m)
900}
901func (m *SetLogLevelResponse) XXX_DiscardUnknown() {
902 xxx_messageInfo_SetLogLevelResponse.DiscardUnknown(m)
903}
904
905var xxx_messageInfo_SetLogLevelResponse proto.InternalMessageInfo
906
amit.ghosh5d97dba2020-11-12 16:45:27 +0100907func (m *SetLogLevelResponse) GetDeviceUuid() *Uuid {
Andrea Campanellab91e9a42020-10-09 14:31:43 +0200908 if m != nil {
909 return m.DeviceUuid
910 }
911 return nil
912}
913
amit.ghosh5d97dba2020-11-12 16:45:27 +0100914func (m *SetLogLevelResponse) GetStatus() Status {
Andrea Campanellab91e9a42020-10-09 14:31:43 +0200915 if m != nil {
916 return m.Status
917 }
918 return Status_UNDEFINED_STATUS
919}
920
amit.ghosh5d97dba2020-11-12 16:45:27 +0100921func (m *SetLogLevelResponse) GetReason() Reason {
Andrea Campanellab91e9a42020-10-09 14:31:43 +0200922 if m != nil {
923 return m.Reason
924 }
925 return Reason_UNDEFINED_REASON
926}
927
928type GetLogLevelRequest struct {
929 DeviceUuid *Uuid `protobuf:"bytes,1,opt,name=device_uuid,json=deviceUuid,proto3" json:"device_uuid,omitempty"`
930 Entities []string `protobuf:"bytes,2,rep,name=entities,proto3" json:"entities,omitempty"`
931 XXX_NoUnkeyedLiteral struct{} `json:"-"`
932 XXX_unrecognized []byte `json:"-"`
933 XXX_sizecache int32 `json:"-"`
934}
935
936func (m *GetLogLevelRequest) Reset() { *m = GetLogLevelRequest{} }
937func (m *GetLogLevelRequest) String() string { return proto.CompactTextString(m) }
938func (*GetLogLevelRequest) ProtoMessage() {}
939func (*GetLogLevelRequest) Descriptor() ([]byte, []int) {
amit.ghosh5d97dba2020-11-12 16:45:27 +0100940 return fileDescriptor_eae902e73066286d, []int{18}
Andrea Campanellab91e9a42020-10-09 14:31:43 +0200941}
942
943func (m *GetLogLevelRequest) XXX_Unmarshal(b []byte) error {
944 return xxx_messageInfo_GetLogLevelRequest.Unmarshal(m, b)
945}
946func (m *GetLogLevelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
947 return xxx_messageInfo_GetLogLevelRequest.Marshal(b, m, deterministic)
948}
949func (m *GetLogLevelRequest) XXX_Merge(src proto.Message) {
950 xxx_messageInfo_GetLogLevelRequest.Merge(m, src)
951}
952func (m *GetLogLevelRequest) XXX_Size() int {
953 return xxx_messageInfo_GetLogLevelRequest.Size(m)
954}
955func (m *GetLogLevelRequest) XXX_DiscardUnknown() {
956 xxx_messageInfo_GetLogLevelRequest.DiscardUnknown(m)
957}
958
959var xxx_messageInfo_GetLogLevelRequest proto.InternalMessageInfo
960
961func (m *GetLogLevelRequest) GetDeviceUuid() *Uuid {
962 if m != nil {
963 return m.DeviceUuid
964 }
965 return nil
966}
967
968func (m *GetLogLevelRequest) GetEntities() []string {
969 if m != nil {
970 return m.Entities
971 }
972 return nil
973}
974
975type GetLogLevelResponse struct {
976 DeviceUuid *Uuid `protobuf:"bytes,1,opt,name=device_uuid,json=deviceUuid,proto3" json:"device_uuid,omitempty"`
977 LogLevels []*EntitiesLogLevel `protobuf:"bytes,2,rep,name=logLevels,proto3" json:"logLevels,omitempty"`
978 Status Status `protobuf:"varint,3,opt,name=status,proto3,enum=dmi.Status" json:"status,omitempty"`
979 Reason Reason `protobuf:"varint,4,opt,name=reason,proto3,enum=dmi.Reason" json:"reason,omitempty"`
980 XXX_NoUnkeyedLiteral struct{} `json:"-"`
981 XXX_unrecognized []byte `json:"-"`
982 XXX_sizecache int32 `json:"-"`
983}
984
985func (m *GetLogLevelResponse) Reset() { *m = GetLogLevelResponse{} }
986func (m *GetLogLevelResponse) String() string { return proto.CompactTextString(m) }
987func (*GetLogLevelResponse) ProtoMessage() {}
988func (*GetLogLevelResponse) Descriptor() ([]byte, []int) {
amit.ghosh5d97dba2020-11-12 16:45:27 +0100989 return fileDescriptor_eae902e73066286d, []int{19}
Andrea Campanellab91e9a42020-10-09 14:31:43 +0200990}
991
992func (m *GetLogLevelResponse) XXX_Unmarshal(b []byte) error {
993 return xxx_messageInfo_GetLogLevelResponse.Unmarshal(m, b)
994}
995func (m *GetLogLevelResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
996 return xxx_messageInfo_GetLogLevelResponse.Marshal(b, m, deterministic)
997}
998func (m *GetLogLevelResponse) XXX_Merge(src proto.Message) {
999 xxx_messageInfo_GetLogLevelResponse.Merge(m, src)
1000}
1001func (m *GetLogLevelResponse) XXX_Size() int {
1002 return xxx_messageInfo_GetLogLevelResponse.Size(m)
1003}
1004func (m *GetLogLevelResponse) XXX_DiscardUnknown() {
1005 xxx_messageInfo_GetLogLevelResponse.DiscardUnknown(m)
1006}
1007
1008var xxx_messageInfo_GetLogLevelResponse proto.InternalMessageInfo
1009
1010func (m *GetLogLevelResponse) GetDeviceUuid() *Uuid {
1011 if m != nil {
1012 return m.DeviceUuid
1013 }
1014 return nil
1015}
1016
1017func (m *GetLogLevelResponse) GetLogLevels() []*EntitiesLogLevel {
1018 if m != nil {
1019 return m.LogLevels
1020 }
1021 return nil
1022}
1023
1024func (m *GetLogLevelResponse) GetStatus() Status {
1025 if m != nil {
1026 return m.Status
1027 }
1028 return Status_UNDEFINED_STATUS
1029}
1030
1031func (m *GetLogLevelResponse) GetReason() Reason {
1032 if m != nil {
1033 return m.Reason
1034 }
1035 return Reason_UNDEFINED_REASON
1036}
1037
1038type GetLoggableEntitiesRequest struct {
1039 DeviceUuid *Uuid `protobuf:"bytes,1,opt,name=device_uuid,json=deviceUuid,proto3" json:"device_uuid,omitempty"`
1040 XXX_NoUnkeyedLiteral struct{} `json:"-"`
1041 XXX_unrecognized []byte `json:"-"`
1042 XXX_sizecache int32 `json:"-"`
1043}
1044
1045func (m *GetLoggableEntitiesRequest) Reset() { *m = GetLoggableEntitiesRequest{} }
1046func (m *GetLoggableEntitiesRequest) String() string { return proto.CompactTextString(m) }
1047func (*GetLoggableEntitiesRequest) ProtoMessage() {}
1048func (*GetLoggableEntitiesRequest) Descriptor() ([]byte, []int) {
amit.ghosh5d97dba2020-11-12 16:45:27 +01001049 return fileDescriptor_eae902e73066286d, []int{20}
Andrea Campanellab91e9a42020-10-09 14:31:43 +02001050}
1051
1052func (m *GetLoggableEntitiesRequest) XXX_Unmarshal(b []byte) error {
1053 return xxx_messageInfo_GetLoggableEntitiesRequest.Unmarshal(m, b)
1054}
1055func (m *GetLoggableEntitiesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1056 return xxx_messageInfo_GetLoggableEntitiesRequest.Marshal(b, m, deterministic)
1057}
1058func (m *GetLoggableEntitiesRequest) XXX_Merge(src proto.Message) {
1059 xxx_messageInfo_GetLoggableEntitiesRequest.Merge(m, src)
1060}
1061func (m *GetLoggableEntitiesRequest) XXX_Size() int {
1062 return xxx_messageInfo_GetLoggableEntitiesRequest.Size(m)
1063}
1064func (m *GetLoggableEntitiesRequest) XXX_DiscardUnknown() {
1065 xxx_messageInfo_GetLoggableEntitiesRequest.DiscardUnknown(m)
1066}
1067
1068var xxx_messageInfo_GetLoggableEntitiesRequest proto.InternalMessageInfo
1069
1070func (m *GetLoggableEntitiesRequest) GetDeviceUuid() *Uuid {
1071 if m != nil {
1072 return m.DeviceUuid
1073 }
1074 return nil
1075}
1076
Amit Ghosh09f28362020-06-12 21:52:19 +01001077func init() {
1078 proto.RegisterType((*PhysicalInventoryRequest)(nil), "dmi.PhysicalInventoryRequest")
1079 proto.RegisterType((*PhysicalInventoryResponse)(nil), "dmi.PhysicalInventoryResponse")
1080 proto.RegisterType((*HWComponentInfoGetRequest)(nil), "dmi.HWComponentInfoGetRequest")
aghoshc301dcd2020-09-03 16:55:34 +01001081 proto.RegisterType((*HWComponentInfoGetResponse)(nil), "dmi.HWComponentInfoGetResponse")
Amit Ghosh09f28362020-06-12 21:52:19 +01001082 proto.RegisterType((*HWComponentInfoSetRequest)(nil), "dmi.HWComponentInfoSetRequest")
1083 proto.RegisterType((*HWComponentInfoSetResponse)(nil), "dmi.HWComponentInfoSetResponse")
1084 proto.RegisterType((*StartManagingDeviceResponse)(nil), "dmi.StartManagingDeviceResponse")
Amit Ghosh366228e2020-07-06 13:46:42 +01001085 proto.RegisterType((*StopManagingDeviceRequest)(nil), "dmi.StopManagingDeviceRequest")
1086 proto.RegisterType((*StopManagingDeviceResponse)(nil), "dmi.StopManagingDeviceResponse")
Andrea Campanellacb990bc2020-09-22 12:50:56 +02001087 proto.RegisterType((*ManagedDevicesResponse)(nil), "dmi.ManagedDevicesResponse")
amit.ghosh188a84f2020-09-27 20:59:25 +02001088 proto.RegisterType((*SetLoggingEndpointRequest)(nil), "dmi.SetLoggingEndpointRequest")
1089 proto.RegisterType((*SetRemoteEndpointResponse)(nil), "dmi.SetRemoteEndpointResponse")
1090 proto.RegisterType((*GetLoggingEndpointResponse)(nil), "dmi.GetLoggingEndpointResponse")
1091 proto.RegisterType((*SetMsgBusEndpointRequest)(nil), "dmi.SetMsgBusEndpointRequest")
1092 proto.RegisterType((*GetMsgBusEndpointResponse)(nil), "dmi.GetMsgBusEndpointResponse")
Andrea Campanellab91e9a42020-10-09 14:31:43 +02001093 proto.RegisterType((*EntitiesLogLevel)(nil), "dmi.EntitiesLogLevel")
1094 proto.RegisterType((*SetLogLevelRequest)(nil), "dmi.SetLogLevelRequest")
1095 proto.RegisterType((*SetLogLevelResponse)(nil), "dmi.SetLogLevelResponse")
Andrea Campanellab91e9a42020-10-09 14:31:43 +02001096 proto.RegisterType((*GetLogLevelRequest)(nil), "dmi.GetLogLevelRequest")
1097 proto.RegisterType((*GetLogLevelResponse)(nil), "dmi.GetLogLevelResponse")
1098 proto.RegisterType((*GetLoggableEntitiesRequest)(nil), "dmi.GetLoggableEntitiesRequest")
Amit Ghosh09f28362020-06-12 21:52:19 +01001099}
1100
1101func init() { proto.RegisterFile("dmi/hw_management_service.proto", fileDescriptor_eae902e73066286d) }
1102
1103var fileDescriptor_eae902e73066286d = []byte{
amit.ghosh5d97dba2020-11-12 16:45:27 +01001104 // 988 bytes of a gzipped FileDescriptorProto
1105 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x57, 0x51, 0x6f, 0xe3, 0x44,
1106 0x10, 0x96, 0x9b, 0xea, 0xae, 0x99, 0x70, 0xed, 0x75, 0x0b, 0x47, 0xe2, 0x8a, 0x5e, 0x65, 0x84,
1107 0xb8, 0x03, 0x2e, 0x39, 0xa5, 0x4f, 0x88, 0x17, 0x74, 0x77, 0xbd, 0xa4, 0x22, 0x3d, 0x55, 0x36,
1108 0xa7, 0x0a, 0x84, 0x54, 0x39, 0xf1, 0xc4, 0x5d, 0xc9, 0xde, 0x0d, 0xf1, 0x3a, 0xa7, 0xfe, 0x06,
1109 0x24, 0x1e, 0x80, 0x57, 0x24, 0xfe, 0x01, 0x7f, 0x80, 0x07, 0x7e, 0x04, 0x3f, 0x08, 0x79, 0x77,
1110 0xed, 0xd8, 0x89, 0xdd, 0x0b, 0xbd, 0x54, 0xe2, 0x2d, 0xf6, 0x7e, 0xfb, 0xcd, 0xcc, 0x37, 0xe3,
1111 0x99, 0x09, 0x3c, 0xf4, 0x42, 0xda, 0xb9, 0x7c, 0x73, 0x11, 0xba, 0xcc, 0xf5, 0x31, 0x44, 0x26,
1112 0x2e, 0x22, 0x9c, 0xce, 0xe8, 0x08, 0xdb, 0x93, 0x29, 0x17, 0x9c, 0xd4, 0xbc, 0x90, 0x9a, 0xbb,
1113 0x09, 0x6a, 0xc4, 0xc3, 0x90, 0xb3, 0x48, 0xbd, 0x37, 0xdf, 0x53, 0x17, 0xf5, 0xd3, 0xbe, 0xcf,
1114 0xb9, 0x1f, 0x60, 0x47, 0x3e, 0x0d, 0xe3, 0x71, 0x07, 0xc3, 0x89, 0xb8, 0x52, 0x87, 0xd6, 0x4b,
1115 0x68, 0x9e, 0x5d, 0x5e, 0x45, 0x74, 0xe4, 0x06, 0x27, 0x6c, 0x86, 0x4c, 0xf0, 0xe9, 0x95, 0x8d,
1116 0x3f, 0xc6, 0x18, 0x09, 0xf2, 0x19, 0x34, 0x3c, 0x4c, 0xcc, 0x5d, 0xc4, 0x31, 0xf5, 0x9a, 0xc6,
1117 0xa1, 0xf1, 0xa8, 0xd1, 0xad, 0xb7, 0xbd, 0x90, 0xb6, 0x5f, 0xc7, 0xd4, 0xb3, 0x41, 0x9d, 0x26,
1118 0xbf, 0xad, 0x5f, 0x0c, 0x68, 0x95, 0x10, 0x45, 0x13, 0xce, 0x22, 0x24, 0x1f, 0xc3, 0x9d, 0x48,
1119 0xb8, 0x22, 0x8e, 0x24, 0xc9, 0x76, 0xb7, 0x21, 0x49, 0x1c, 0xf9, 0xca, 0xd6, 0x47, 0x09, 0x68,
1120 0x8a, 0x6e, 0xc4, 0x59, 0x73, 0x23, 0x07, 0xb2, 0xe5, 0x2b, 0x5b, 0x1f, 0x91, 0xcf, 0xa1, 0x4e,
1121 0x53, 0xfa, 0x66, 0x4d, 0x7a, 0x74, 0x4f, 0xe2, 0xfa, 0xee, 0xd4, 0x7b, 0xe3, 0x4e, 0xd1, 0x9e,
1122 0x9f, 0x5b, 0x7f, 0x18, 0xd0, 0xea, 0x9f, 0x3f, 0xe7, 0xe1, 0x84, 0x33, 0x64, 0xe2, 0x84, 0x8d,
1123 0x79, 0x0f, 0xc5, 0x0d, 0xc2, 0x23, 0x4f, 0x61, 0x7b, 0x94, 0xd2, 0x28, 0xf8, 0xc6, 0x22, 0xfc,
1124 0x5e, 0x06, 0x90, 0x37, 0x3e, 0xc9, 0xdf, 0x60, 0x6e, 0x88, 0xd2, 0xdb, 0x7a, 0x0e, 0xf6, 0xca,
1125 0x0d, 0xd1, 0xfa, 0xcd, 0x00, 0xb3, 0xcc, 0xc5, 0xb5, 0x0b, 0xf7, 0x05, 0xd4, 0x33, 0xcb, 0x5a,
1126 0xb8, 0x6d, 0x89, 0xcb, 0x6c, 0xdb, 0x73, 0x80, 0xf5, 0xcf, 0xb2, 0x72, 0xce, 0xff, 0x4b, 0x39,
1127 0xd2, 0x85, 0xbb, 0xa3, 0x4b, 0x97, 0xf9, 0x18, 0x35, 0x37, 0x25, 0x63, 0x53, 0x32, 0x9e, 0x72,
1128 0x8f, 0x8e, 0xa9, 0x3b, 0x0c, 0x70, 0x1e, 0x58, 0x0a, 0xb4, 0xc6, 0x4b, 0x62, 0x3b, 0xb7, 0x21,
1129 0xb6, 0xf5, 0xab, 0x01, 0xfb, 0x8e, 0x70, 0xa7, 0xe2, 0x34, 0xf9, 0x74, 0x29, 0xf3, 0x5f, 0x48,
1130 0x41, 0x6e, 0x21, 0xad, 0x0b, 0xa9, 0xa8, 0x5d, 0xf7, 0x8d, 0x76, 0xa0, 0xe5, 0x08, 0x3e, 0x59,
1131 0xf4, 0x49, 0xe5, 0x94, 0xc0, 0xa6, 0xd4, 0xda, 0x90, 0x5a, 0xcb, 0xdf, 0x89, 0x5c, 0x65, 0x17,
1132 0xd6, 0x2e, 0xd7, 0x00, 0x1e, 0x48, 0x1b, 0xe8, 0x29, 0x13, 0x51, 0x66, 0xa3, 0x0b, 0x77, 0x55,
1133 0x00, 0x89, 0x91, 0xda, 0xf5, 0x49, 0xd6, 0x40, 0xeb, 0x77, 0x03, 0x5a, 0x0e, 0x8a, 0x01, 0xf7,
1134 0x13, 0xa7, 0x8f, 0x99, 0x37, 0xe1, 0x94, 0xdd, 0xa8, 0x76, 0x1f, 0xc3, 0xfd, 0x40, 0xb1, 0x5c,
1135 0xa0, 0xa6, 0x91, 0x61, 0xd4, 0xed, 0x9d, 0xa0, 0xc8, 0x9e, 0x87, 0xca, 0xc6, 0x3a, 0xe2, 0x81,
1136 0x2e, 0xdb, 0x14, 0x7a, 0xa6, 0x5f, 0x5b, 0x28, 0xdd, 0xb3, 0x31, 0xe4, 0x02, 0xe7, 0xde, 0xad,
1137 0x5d, 0xd4, 0xbf, 0x0c, 0x30, 0x7b, 0x25, 0x32, 0xac, 0xbd, 0x04, 0xcb, 0x54, 0xaa, 0xad, 0xae,
1138 0xd2, 0x66, 0xb9, 0x4a, 0xcf, 0xa1, 0xe9, 0xa0, 0x38, 0x8d, 0xfc, 0x67, 0x71, 0xb4, 0x98, 0xc3,
1139 0x4f, 0x61, 0x27, 0x8c, 0xfc, 0x61, 0x1c, 0xcd, 0x0d, 0xaa, 0xb2, 0xdd, 0x56, 0xaf, 0x53, 0xbc,
1140 0xf5, 0xb3, 0x01, 0xad, 0xde, 0x32, 0xcb, 0xda, 0x25, 0x28, 0x71, 0xa8, 0x56, 0xea, 0xd0, 0x77,
1141 0x70, 0xff, 0x98, 0x09, 0x2a, 0x28, 0x46, 0x03, 0xee, 0x0f, 0x70, 0x86, 0x01, 0x79, 0x0c, 0x5b,
1142 0x81, 0xfe, 0xad, 0x1d, 0x51, 0x13, 0x2d, 0x05, 0xd8, 0xd9, 0x31, 0x31, 0x61, 0x0b, 0xf5, 0xf5,
1143 0xe6, 0xc6, 0x61, 0xed, 0x51, 0xdd, 0xce, 0x9e, 0xad, 0x18, 0x88, 0xaa, 0x7a, 0x75, 0xe9, 0x06,
1144 0xe5, 0x7e, 0x04, 0xf5, 0x20, 0xd9, 0x14, 0x66, 0x18, 0x28, 0xfa, 0x46, 0xf7, 0x03, 0x89, 0x5c,
1145 0x74, 0xd9, 0x9e, 0xe3, 0xac, 0x9f, 0x0c, 0xd8, 0x2b, 0xd8, 0xd5, 0xe2, 0xfe, 0x17, 0xc3, 0xf3,
1146 0x44, 0x6c, 0xac, 0x92, 0x88, 0x5a, 0x75, 0xd1, 0xff, 0x00, 0xa4, 0xf7, 0x6e, 0x22, 0x5c, 0x27,
1147 0xf1, 0xdf, 0x06, 0xec, 0xf5, 0xde, 0x31, 0x56, 0x25, 0xf2, 0x60, 0x45, 0x91, 0x15, 0x2e, 0x27,
1148 0x50, 0x6d, 0x15, 0x81, 0x36, 0xab, 0x05, 0xea, 0x67, 0x4d, 0x21, 0xe9, 0x9e, 0xa9, 0xcd, 0x1b,
1149 0x08, 0xd5, 0xfd, 0x73, 0x0b, 0x5a, 0xaf, 0x5c, 0x41, 0x67, 0xd8, 0x3f, 0x3f, 0xcd, 0x36, 0x54,
1150 0x47, 0x2d, 0xa8, 0xc4, 0x81, 0xbd, 0x92, 0x01, 0x48, 0x2a, 0xdb, 0xb7, 0x79, 0x98, 0x86, 0x54,
1151 0x35, 0x34, 0x9f, 0x1a, 0xe4, 0x35, 0x90, 0xe5, 0x79, 0x44, 0x0e, 0xf4, 0xcd, 0x8a, 0xc9, 0x66,
1152 0x3e, 0xac, 0x3c, 0xd7, 0xe9, 0xeb, 0xc3, 0x6e, 0xd2, 0x24, 0x0a, 0x13, 0x88, 0x3c, 0x68, 0xab,
1153 0xb5, 0xb9, 0x9d, 0xae, 0xcd, 0xed, 0xe3, 0x64, 0x6d, 0x36, 0xf7, 0x55, 0x04, 0xe5, 0xe3, 0xea,
1154 0x1c, 0xde, 0xef, 0xa1, 0x58, 0xda, 0x83, 0xc9, 0x47, 0xf2, 0x52, 0xd5, 0xa2, 0x6d, 0x1e, 0x54,
1155 0x1d, 0x67, 0x91, 0x9f, 0xcb, 0xba, 0x5e, 0xd8, 0x5d, 0x74, 0xe4, 0x95, 0x1b, 0xae, 0x8e, 0xbc,
1156 0x7a, 0xbd, 0xd4, 0x92, 0xae, 0x48, 0xec, 0xbc, 0x85, 0x38, 0xbf, 0x4a, 0x7d, 0x9b, 0x36, 0xa3,
1157 0x42, 0xfb, 0xd7, 0x99, 0xaa, 0x9a, 0xcd, 0x66, 0x76, 0x5e, 0x31, 0x1c, 0x5f, 0xa6, 0x5f, 0x77,
1158 0x81, 0x75, 0xa7, 0xb0, 0xff, 0x9f, 0xbc, 0xd0, 0xde, 0x5d, 0x33, 0xfb, 0x6c, 0xd8, 0x5d, 0x9a,
1159 0x2d, 0x3a, 0x47, 0x55, 0x33, 0xe7, 0xad, 0xbe, 0x7d, 0xa3, 0x8a, 0xa8, 0xc8, 0x59, 0x55, 0x44,
1160 0x07, 0xa9, 0x87, 0x15, 0x93, 0xe9, 0x2c, 0xed, 0x33, 0x85, 0xaf, 0x94, 0x14, 0x02, 0x2b, 0xf9,
1161 0x7e, 0xcd, 0x66, 0x0e, 0x50, 0x6c, 0x51, 0x5f, 0x43, 0x23, 0xd7, 0xa5, 0xc9, 0x87, 0xb9, 0x4c,
1162 0xe4, 0x5b, 0xa5, 0x66, 0x70, 0xca, 0x19, 0x7a, 0x4b, 0x0c, 0xbd, 0x2a, 0x86, 0x12, 0x1f, 0x9e,
1163 0x7d, 0xf5, 0xfd, 0x97, 0x3e, 0x15, 0x97, 0xf1, 0xb0, 0x3d, 0xe2, 0x61, 0x87, 0x4f, 0x90, 0x8d,
1164 0xf8, 0xd4, 0xeb, 0xa8, 0x9e, 0xf2, 0x64, 0xfe, 0x2f, 0xf7, 0x09, 0x65, 0x02, 0xa7, 0x63, 0x77,
1165 0x84, 0x9d, 0xd9, 0x51, 0xc7, 0xe7, 0x1d, 0x2f, 0xa4, 0xc3, 0x3b, 0x52, 0xc2, 0xa3, 0x7f, 0x03,
1166 0x00, 0x00, 0xff, 0xff, 0x3a, 0x27, 0xf3, 0x9c, 0x15, 0x0f, 0x00, 0x00,
Amit Ghosh09f28362020-06-12 21:52:19 +01001167}
1168
1169// Reference imports to suppress errors if they are not otherwise used.
1170var _ context.Context
1171var _ grpc.ClientConn
1172
1173// This is a compile-time assertion to ensure that this generated file
1174// is compatible with the grpc package it is being compiled against.
1175const _ = grpc.SupportPackageIsVersion4
1176
1177// NativeHWManagementServiceClient is the client API for NativeHWManagementService service.
1178//
1179// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
1180type NativeHWManagementServiceClient interface {
1181 // Initializes context for a device and sets up required states
Amit Ghosh704462f2020-06-24 16:44:56 +01001182 // In the call to StartManagingDevice, the fields of ModifiableComponent which are relevant
1183 // and their meanings in this context is mentioned below:
1184 // name = The unique name that needs to be assigned to this hardware;
1185 // class = COMPONENT_TYPE_UNDEFINED;
1186 // parent = nil;
1187 // alias = Optional;
1188 // asset_id = Optional;
1189 // uri = IP Address of the Hardware;
1190 StartManagingDevice(ctx context.Context, in *ModifiableComponent, opts ...grpc.CallOption) (NativeHWManagementService_StartManagingDeviceClient, error)
Amit Ghosh366228e2020-07-06 13:46:42 +01001191 // Stop management of a device and clean up any context and caches for that device
1192 StopManagingDevice(ctx context.Context, in *StopManagingDeviceRequest, opts ...grpc.CallOption) (*StopManagingDeviceResponse, error)
Andrea Campanellacb990bc2020-09-22 12:50:56 +02001193 // Returns an object containing a list of devices managed by this entity
1194 GetManagedDevices(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ManagedDevicesResponse, error)
Amit Ghosh09f28362020-06-12 21:52:19 +01001195 // Get the HW inventory details of the Device
1196 GetPhysicalInventory(ctx context.Context, in *PhysicalInventoryRequest, opts ...grpc.CallOption) (NativeHWManagementService_GetPhysicalInventoryClient, error)
1197 // Get the details of a particular HW component
1198 GetHWComponentInfo(ctx context.Context, in *HWComponentInfoGetRequest, opts ...grpc.CallOption) (NativeHWManagementService_GetHWComponentInfoClient, error)
1199 // Sets the permissible attributes of a HW component
1200 SetHWComponentInfo(ctx context.Context, in *HWComponentInfoSetRequest, opts ...grpc.CallOption) (*HWComponentInfoSetResponse, error)
amit.ghosh188a84f2020-09-27 20:59:25 +02001201 // Sets the location to which logs need to be shipped
1202 SetLoggingEndpoint(ctx context.Context, in *SetLoggingEndpointRequest, opts ...grpc.CallOption) (*SetRemoteEndpointResponse, error)
1203 // Gets the configured location to which the logs are being shipped
amit.ghosh5d97dba2020-11-12 16:45:27 +01001204 GetLoggingEndpoint(ctx context.Context, in *HardwareID, opts ...grpc.CallOption) (*GetLoggingEndpointResponse, error)
amit.ghosh188a84f2020-09-27 20:59:25 +02001205 // Sets the location of the Message Bus to which events and metrics are shipped
1206 SetMsgBusEndpoint(ctx context.Context, in *SetMsgBusEndpointRequest, opts ...grpc.CallOption) (*SetRemoteEndpointResponse, error)
1207 // Gets the configured location to which the events and metrics are being shipped
1208 GetMsgBusEndpoint(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*GetMsgBusEndpointResponse, error)
Andrea Campanellab91e9a42020-10-09 14:31:43 +02001209 // Gets the entities of a device on which log can be configured. A few are expected, like OS, PON Management etc.
1210 // In general an entity is any item within an hardware system that can emit logs, e.g. service, process, subsystem,
1211 // interface, package etc.
1212 GetLoggableEntities(ctx context.Context, in *GetLoggableEntitiesRequest, opts ...grpc.CallOption) (*GetLogLevelResponse, error)
amit.ghosh5d97dba2020-11-12 16:45:27 +01001213 // Sets the log level of the device, for each given entity to a certain level.
Andrea Campanellab91e9a42020-10-09 14:31:43 +02001214 // If only one EntitiesLogLevel is provided for the device and that request contains only a log level with
1215 // no entity in the list it's assumed that the caller wants to set that level for all the entities.
1216 SetLogLevel(ctx context.Context, in *SetLogLevelRequest, opts ...grpc.CallOption) (*SetLogLevelResponse, error)
1217 // Gets the configured log level for a certain entity on a certain device.
1218 // If no entity is specified in the request all the entities with their log level should be returned.
1219 GetLogLevel(ctx context.Context, in *GetLogLevelRequest, opts ...grpc.CallOption) (*GetLogLevelResponse, error)
Amit Ghosh09f28362020-06-12 21:52:19 +01001220}
1221
1222type nativeHWManagementServiceClient struct {
1223 cc *grpc.ClientConn
1224}
1225
1226func NewNativeHWManagementServiceClient(cc *grpc.ClientConn) NativeHWManagementServiceClient {
1227 return &nativeHWManagementServiceClient{cc}
1228}
1229
Amit Ghosh704462f2020-06-24 16:44:56 +01001230func (c *nativeHWManagementServiceClient) StartManagingDevice(ctx context.Context, in *ModifiableComponent, opts ...grpc.CallOption) (NativeHWManagementService_StartManagingDeviceClient, error) {
Amit Ghosh09f28362020-06-12 21:52:19 +01001231 stream, err := c.cc.NewStream(ctx, &_NativeHWManagementService_serviceDesc.Streams[0], "/dmi.NativeHWManagementService/StartManagingDevice", opts...)
1232 if err != nil {
1233 return nil, err
1234 }
1235 x := &nativeHWManagementServiceStartManagingDeviceClient{stream}
1236 if err := x.ClientStream.SendMsg(in); err != nil {
1237 return nil, err
1238 }
1239 if err := x.ClientStream.CloseSend(); err != nil {
1240 return nil, err
1241 }
1242 return x, nil
1243}
1244
1245type NativeHWManagementService_StartManagingDeviceClient interface {
1246 Recv() (*StartManagingDeviceResponse, error)
1247 grpc.ClientStream
1248}
1249
1250type nativeHWManagementServiceStartManagingDeviceClient struct {
1251 grpc.ClientStream
1252}
1253
1254func (x *nativeHWManagementServiceStartManagingDeviceClient) Recv() (*StartManagingDeviceResponse, error) {
1255 m := new(StartManagingDeviceResponse)
1256 if err := x.ClientStream.RecvMsg(m); err != nil {
1257 return nil, err
1258 }
1259 return m, nil
1260}
1261
Amit Ghosh366228e2020-07-06 13:46:42 +01001262func (c *nativeHWManagementServiceClient) StopManagingDevice(ctx context.Context, in *StopManagingDeviceRequest, opts ...grpc.CallOption) (*StopManagingDeviceResponse, error) {
1263 out := new(StopManagingDeviceResponse)
1264 err := c.cc.Invoke(ctx, "/dmi.NativeHWManagementService/StopManagingDevice", in, out, opts...)
1265 if err != nil {
1266 return nil, err
1267 }
1268 return out, nil
1269}
1270
Andrea Campanellacb990bc2020-09-22 12:50:56 +02001271func (c *nativeHWManagementServiceClient) GetManagedDevices(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ManagedDevicesResponse, error) {
1272 out := new(ManagedDevicesResponse)
1273 err := c.cc.Invoke(ctx, "/dmi.NativeHWManagementService/GetManagedDevices", in, out, opts...)
1274 if err != nil {
1275 return nil, err
1276 }
1277 return out, nil
1278}
1279
Amit Ghosh09f28362020-06-12 21:52:19 +01001280func (c *nativeHWManagementServiceClient) GetPhysicalInventory(ctx context.Context, in *PhysicalInventoryRequest, opts ...grpc.CallOption) (NativeHWManagementService_GetPhysicalInventoryClient, error) {
1281 stream, err := c.cc.NewStream(ctx, &_NativeHWManagementService_serviceDesc.Streams[1], "/dmi.NativeHWManagementService/GetPhysicalInventory", opts...)
1282 if err != nil {
1283 return nil, err
1284 }
1285 x := &nativeHWManagementServiceGetPhysicalInventoryClient{stream}
1286 if err := x.ClientStream.SendMsg(in); err != nil {
1287 return nil, err
1288 }
1289 if err := x.ClientStream.CloseSend(); err != nil {
1290 return nil, err
1291 }
1292 return x, nil
1293}
1294
1295type NativeHWManagementService_GetPhysicalInventoryClient interface {
1296 Recv() (*PhysicalInventoryResponse, error)
1297 grpc.ClientStream
1298}
1299
1300type nativeHWManagementServiceGetPhysicalInventoryClient struct {
1301 grpc.ClientStream
1302}
1303
1304func (x *nativeHWManagementServiceGetPhysicalInventoryClient) Recv() (*PhysicalInventoryResponse, error) {
1305 m := new(PhysicalInventoryResponse)
1306 if err := x.ClientStream.RecvMsg(m); err != nil {
1307 return nil, err
1308 }
1309 return m, nil
1310}
1311
1312func (c *nativeHWManagementServiceClient) GetHWComponentInfo(ctx context.Context, in *HWComponentInfoGetRequest, opts ...grpc.CallOption) (NativeHWManagementService_GetHWComponentInfoClient, error) {
1313 stream, err := c.cc.NewStream(ctx, &_NativeHWManagementService_serviceDesc.Streams[2], "/dmi.NativeHWManagementService/GetHWComponentInfo", opts...)
1314 if err != nil {
1315 return nil, err
1316 }
1317 x := &nativeHWManagementServiceGetHWComponentInfoClient{stream}
1318 if err := x.ClientStream.SendMsg(in); err != nil {
1319 return nil, err
1320 }
1321 if err := x.ClientStream.CloseSend(); err != nil {
1322 return nil, err
1323 }
1324 return x, nil
1325}
1326
1327type NativeHWManagementService_GetHWComponentInfoClient interface {
aghoshc301dcd2020-09-03 16:55:34 +01001328 Recv() (*HWComponentInfoGetResponse, error)
Amit Ghosh09f28362020-06-12 21:52:19 +01001329 grpc.ClientStream
1330}
1331
1332type nativeHWManagementServiceGetHWComponentInfoClient struct {
1333 grpc.ClientStream
1334}
1335
aghoshc301dcd2020-09-03 16:55:34 +01001336func (x *nativeHWManagementServiceGetHWComponentInfoClient) Recv() (*HWComponentInfoGetResponse, error) {
1337 m := new(HWComponentInfoGetResponse)
Amit Ghosh09f28362020-06-12 21:52:19 +01001338 if err := x.ClientStream.RecvMsg(m); err != nil {
1339 return nil, err
1340 }
1341 return m, nil
1342}
1343
1344func (c *nativeHWManagementServiceClient) SetHWComponentInfo(ctx context.Context, in *HWComponentInfoSetRequest, opts ...grpc.CallOption) (*HWComponentInfoSetResponse, error) {
1345 out := new(HWComponentInfoSetResponse)
1346 err := c.cc.Invoke(ctx, "/dmi.NativeHWManagementService/SetHWComponentInfo", in, out, opts...)
1347 if err != nil {
1348 return nil, err
1349 }
1350 return out, nil
1351}
1352
amit.ghosh188a84f2020-09-27 20:59:25 +02001353func (c *nativeHWManagementServiceClient) SetLoggingEndpoint(ctx context.Context, in *SetLoggingEndpointRequest, opts ...grpc.CallOption) (*SetRemoteEndpointResponse, error) {
1354 out := new(SetRemoteEndpointResponse)
1355 err := c.cc.Invoke(ctx, "/dmi.NativeHWManagementService/SetLoggingEndpoint", in, out, opts...)
1356 if err != nil {
1357 return nil, err
1358 }
1359 return out, nil
1360}
1361
amit.ghosh5d97dba2020-11-12 16:45:27 +01001362func (c *nativeHWManagementServiceClient) GetLoggingEndpoint(ctx context.Context, in *HardwareID, opts ...grpc.CallOption) (*GetLoggingEndpointResponse, error) {
amit.ghosh188a84f2020-09-27 20:59:25 +02001363 out := new(GetLoggingEndpointResponse)
1364 err := c.cc.Invoke(ctx, "/dmi.NativeHWManagementService/GetLoggingEndpoint", in, out, opts...)
1365 if err != nil {
1366 return nil, err
1367 }
1368 return out, nil
1369}
1370
1371func (c *nativeHWManagementServiceClient) SetMsgBusEndpoint(ctx context.Context, in *SetMsgBusEndpointRequest, opts ...grpc.CallOption) (*SetRemoteEndpointResponse, error) {
1372 out := new(SetRemoteEndpointResponse)
1373 err := c.cc.Invoke(ctx, "/dmi.NativeHWManagementService/SetMsgBusEndpoint", in, out, opts...)
1374 if err != nil {
1375 return nil, err
1376 }
1377 return out, nil
1378}
1379
1380func (c *nativeHWManagementServiceClient) GetMsgBusEndpoint(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*GetMsgBusEndpointResponse, error) {
1381 out := new(GetMsgBusEndpointResponse)
1382 err := c.cc.Invoke(ctx, "/dmi.NativeHWManagementService/GetMsgBusEndpoint", in, out, opts...)
1383 if err != nil {
1384 return nil, err
1385 }
1386 return out, nil
1387}
1388
Andrea Campanellab91e9a42020-10-09 14:31:43 +02001389func (c *nativeHWManagementServiceClient) GetLoggableEntities(ctx context.Context, in *GetLoggableEntitiesRequest, opts ...grpc.CallOption) (*GetLogLevelResponse, error) {
1390 out := new(GetLogLevelResponse)
1391 err := c.cc.Invoke(ctx, "/dmi.NativeHWManagementService/GetLoggableEntities", in, out, opts...)
1392 if err != nil {
1393 return nil, err
1394 }
1395 return out, nil
1396}
1397
1398func (c *nativeHWManagementServiceClient) SetLogLevel(ctx context.Context, in *SetLogLevelRequest, opts ...grpc.CallOption) (*SetLogLevelResponse, error) {
1399 out := new(SetLogLevelResponse)
1400 err := c.cc.Invoke(ctx, "/dmi.NativeHWManagementService/SetLogLevel", in, out, opts...)
1401 if err != nil {
1402 return nil, err
1403 }
1404 return out, nil
1405}
1406
1407func (c *nativeHWManagementServiceClient) GetLogLevel(ctx context.Context, in *GetLogLevelRequest, opts ...grpc.CallOption) (*GetLogLevelResponse, error) {
1408 out := new(GetLogLevelResponse)
1409 err := c.cc.Invoke(ctx, "/dmi.NativeHWManagementService/GetLogLevel", in, out, opts...)
1410 if err != nil {
1411 return nil, err
1412 }
1413 return out, nil
1414}
1415
Amit Ghosh09f28362020-06-12 21:52:19 +01001416// NativeHWManagementServiceServer is the server API for NativeHWManagementService service.
1417type NativeHWManagementServiceServer interface {
1418 // Initializes context for a device and sets up required states
Amit Ghosh704462f2020-06-24 16:44:56 +01001419 // In the call to StartManagingDevice, the fields of ModifiableComponent which are relevant
1420 // and their meanings in this context is mentioned below:
1421 // name = The unique name that needs to be assigned to this hardware;
1422 // class = COMPONENT_TYPE_UNDEFINED;
1423 // parent = nil;
1424 // alias = Optional;
1425 // asset_id = Optional;
1426 // uri = IP Address of the Hardware;
1427 StartManagingDevice(*ModifiableComponent, NativeHWManagementService_StartManagingDeviceServer) error
Amit Ghosh366228e2020-07-06 13:46:42 +01001428 // Stop management of a device and clean up any context and caches for that device
1429 StopManagingDevice(context.Context, *StopManagingDeviceRequest) (*StopManagingDeviceResponse, error)
Andrea Campanellacb990bc2020-09-22 12:50:56 +02001430 // Returns an object containing a list of devices managed by this entity
1431 GetManagedDevices(context.Context, *empty.Empty) (*ManagedDevicesResponse, error)
Amit Ghosh09f28362020-06-12 21:52:19 +01001432 // Get the HW inventory details of the Device
1433 GetPhysicalInventory(*PhysicalInventoryRequest, NativeHWManagementService_GetPhysicalInventoryServer) error
1434 // Get the details of a particular HW component
1435 GetHWComponentInfo(*HWComponentInfoGetRequest, NativeHWManagementService_GetHWComponentInfoServer) error
1436 // Sets the permissible attributes of a HW component
1437 SetHWComponentInfo(context.Context, *HWComponentInfoSetRequest) (*HWComponentInfoSetResponse, error)
amit.ghosh188a84f2020-09-27 20:59:25 +02001438 // Sets the location to which logs need to be shipped
1439 SetLoggingEndpoint(context.Context, *SetLoggingEndpointRequest) (*SetRemoteEndpointResponse, error)
1440 // Gets the configured location to which the logs are being shipped
amit.ghosh5d97dba2020-11-12 16:45:27 +01001441 GetLoggingEndpoint(context.Context, *HardwareID) (*GetLoggingEndpointResponse, error)
amit.ghosh188a84f2020-09-27 20:59:25 +02001442 // Sets the location of the Message Bus to which events and metrics are shipped
1443 SetMsgBusEndpoint(context.Context, *SetMsgBusEndpointRequest) (*SetRemoteEndpointResponse, error)
1444 // Gets the configured location to which the events and metrics are being shipped
1445 GetMsgBusEndpoint(context.Context, *empty.Empty) (*GetMsgBusEndpointResponse, error)
Andrea Campanellab91e9a42020-10-09 14:31:43 +02001446 // Gets the entities of a device on which log can be configured. A few are expected, like OS, PON Management etc.
1447 // In general an entity is any item within an hardware system that can emit logs, e.g. service, process, subsystem,
1448 // interface, package etc.
1449 GetLoggableEntities(context.Context, *GetLoggableEntitiesRequest) (*GetLogLevelResponse, error)
amit.ghosh5d97dba2020-11-12 16:45:27 +01001450 // Sets the log level of the device, for each given entity to a certain level.
Andrea Campanellab91e9a42020-10-09 14:31:43 +02001451 // If only one EntitiesLogLevel is provided for the device and that request contains only a log level with
1452 // no entity in the list it's assumed that the caller wants to set that level for all the entities.
1453 SetLogLevel(context.Context, *SetLogLevelRequest) (*SetLogLevelResponse, error)
1454 // Gets the configured log level for a certain entity on a certain device.
1455 // If no entity is specified in the request all the entities with their log level should be returned.
1456 GetLogLevel(context.Context, *GetLogLevelRequest) (*GetLogLevelResponse, error)
Amit Ghosh09f28362020-06-12 21:52:19 +01001457}
1458
1459func RegisterNativeHWManagementServiceServer(s *grpc.Server, srv NativeHWManagementServiceServer) {
1460 s.RegisterService(&_NativeHWManagementService_serviceDesc, srv)
1461}
1462
1463func _NativeHWManagementService_StartManagingDevice_Handler(srv interface{}, stream grpc.ServerStream) error {
Amit Ghosh704462f2020-06-24 16:44:56 +01001464 m := new(ModifiableComponent)
Amit Ghosh09f28362020-06-12 21:52:19 +01001465 if err := stream.RecvMsg(m); err != nil {
1466 return err
1467 }
1468 return srv.(NativeHWManagementServiceServer).StartManagingDevice(m, &nativeHWManagementServiceStartManagingDeviceServer{stream})
1469}
1470
1471type NativeHWManagementService_StartManagingDeviceServer interface {
1472 Send(*StartManagingDeviceResponse) error
1473 grpc.ServerStream
1474}
1475
1476type nativeHWManagementServiceStartManagingDeviceServer struct {
1477 grpc.ServerStream
1478}
1479
1480func (x *nativeHWManagementServiceStartManagingDeviceServer) Send(m *StartManagingDeviceResponse) error {
1481 return x.ServerStream.SendMsg(m)
1482}
1483
Amit Ghosh366228e2020-07-06 13:46:42 +01001484func _NativeHWManagementService_StopManagingDevice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1485 in := new(StopManagingDeviceRequest)
1486 if err := dec(in); err != nil {
1487 return nil, err
1488 }
1489 if interceptor == nil {
1490 return srv.(NativeHWManagementServiceServer).StopManagingDevice(ctx, in)
1491 }
1492 info := &grpc.UnaryServerInfo{
1493 Server: srv,
1494 FullMethod: "/dmi.NativeHWManagementService/StopManagingDevice",
1495 }
1496 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1497 return srv.(NativeHWManagementServiceServer).StopManagingDevice(ctx, req.(*StopManagingDeviceRequest))
1498 }
1499 return interceptor(ctx, in, info, handler)
1500}
1501
Andrea Campanellacb990bc2020-09-22 12:50:56 +02001502func _NativeHWManagementService_GetManagedDevices_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1503 in := new(empty.Empty)
1504 if err := dec(in); err != nil {
1505 return nil, err
1506 }
1507 if interceptor == nil {
1508 return srv.(NativeHWManagementServiceServer).GetManagedDevices(ctx, in)
1509 }
1510 info := &grpc.UnaryServerInfo{
1511 Server: srv,
1512 FullMethod: "/dmi.NativeHWManagementService/GetManagedDevices",
1513 }
1514 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1515 return srv.(NativeHWManagementServiceServer).GetManagedDevices(ctx, req.(*empty.Empty))
1516 }
1517 return interceptor(ctx, in, info, handler)
1518}
1519
Amit Ghosh09f28362020-06-12 21:52:19 +01001520func _NativeHWManagementService_GetPhysicalInventory_Handler(srv interface{}, stream grpc.ServerStream) error {
1521 m := new(PhysicalInventoryRequest)
1522 if err := stream.RecvMsg(m); err != nil {
1523 return err
1524 }
1525 return srv.(NativeHWManagementServiceServer).GetPhysicalInventory(m, &nativeHWManagementServiceGetPhysicalInventoryServer{stream})
1526}
1527
1528type NativeHWManagementService_GetPhysicalInventoryServer interface {
1529 Send(*PhysicalInventoryResponse) error
1530 grpc.ServerStream
1531}
1532
1533type nativeHWManagementServiceGetPhysicalInventoryServer struct {
1534 grpc.ServerStream
1535}
1536
1537func (x *nativeHWManagementServiceGetPhysicalInventoryServer) Send(m *PhysicalInventoryResponse) error {
1538 return x.ServerStream.SendMsg(m)
1539}
1540
1541func _NativeHWManagementService_GetHWComponentInfo_Handler(srv interface{}, stream grpc.ServerStream) error {
1542 m := new(HWComponentInfoGetRequest)
1543 if err := stream.RecvMsg(m); err != nil {
1544 return err
1545 }
1546 return srv.(NativeHWManagementServiceServer).GetHWComponentInfo(m, &nativeHWManagementServiceGetHWComponentInfoServer{stream})
1547}
1548
1549type NativeHWManagementService_GetHWComponentInfoServer interface {
aghoshc301dcd2020-09-03 16:55:34 +01001550 Send(*HWComponentInfoGetResponse) error
Amit Ghosh09f28362020-06-12 21:52:19 +01001551 grpc.ServerStream
1552}
1553
1554type nativeHWManagementServiceGetHWComponentInfoServer struct {
1555 grpc.ServerStream
1556}
1557
aghoshc301dcd2020-09-03 16:55:34 +01001558func (x *nativeHWManagementServiceGetHWComponentInfoServer) Send(m *HWComponentInfoGetResponse) error {
Amit Ghosh09f28362020-06-12 21:52:19 +01001559 return x.ServerStream.SendMsg(m)
1560}
1561
1562func _NativeHWManagementService_SetHWComponentInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1563 in := new(HWComponentInfoSetRequest)
1564 if err := dec(in); err != nil {
1565 return nil, err
1566 }
1567 if interceptor == nil {
1568 return srv.(NativeHWManagementServiceServer).SetHWComponentInfo(ctx, in)
1569 }
1570 info := &grpc.UnaryServerInfo{
1571 Server: srv,
1572 FullMethod: "/dmi.NativeHWManagementService/SetHWComponentInfo",
1573 }
1574 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1575 return srv.(NativeHWManagementServiceServer).SetHWComponentInfo(ctx, req.(*HWComponentInfoSetRequest))
1576 }
1577 return interceptor(ctx, in, info, handler)
1578}
1579
amit.ghosh188a84f2020-09-27 20:59:25 +02001580func _NativeHWManagementService_SetLoggingEndpoint_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1581 in := new(SetLoggingEndpointRequest)
1582 if err := dec(in); err != nil {
1583 return nil, err
1584 }
1585 if interceptor == nil {
1586 return srv.(NativeHWManagementServiceServer).SetLoggingEndpoint(ctx, in)
1587 }
1588 info := &grpc.UnaryServerInfo{
1589 Server: srv,
1590 FullMethod: "/dmi.NativeHWManagementService/SetLoggingEndpoint",
1591 }
1592 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1593 return srv.(NativeHWManagementServiceServer).SetLoggingEndpoint(ctx, req.(*SetLoggingEndpointRequest))
1594 }
1595 return interceptor(ctx, in, info, handler)
1596}
1597
1598func _NativeHWManagementService_GetLoggingEndpoint_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
amit.ghosh5d97dba2020-11-12 16:45:27 +01001599 in := new(HardwareID)
amit.ghosh188a84f2020-09-27 20:59:25 +02001600 if err := dec(in); err != nil {
1601 return nil, err
1602 }
1603 if interceptor == nil {
1604 return srv.(NativeHWManagementServiceServer).GetLoggingEndpoint(ctx, in)
1605 }
1606 info := &grpc.UnaryServerInfo{
1607 Server: srv,
1608 FullMethod: "/dmi.NativeHWManagementService/GetLoggingEndpoint",
1609 }
1610 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
amit.ghosh5d97dba2020-11-12 16:45:27 +01001611 return srv.(NativeHWManagementServiceServer).GetLoggingEndpoint(ctx, req.(*HardwareID))
amit.ghosh188a84f2020-09-27 20:59:25 +02001612 }
1613 return interceptor(ctx, in, info, handler)
1614}
1615
1616func _NativeHWManagementService_SetMsgBusEndpoint_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1617 in := new(SetMsgBusEndpointRequest)
1618 if err := dec(in); err != nil {
1619 return nil, err
1620 }
1621 if interceptor == nil {
1622 return srv.(NativeHWManagementServiceServer).SetMsgBusEndpoint(ctx, in)
1623 }
1624 info := &grpc.UnaryServerInfo{
1625 Server: srv,
1626 FullMethod: "/dmi.NativeHWManagementService/SetMsgBusEndpoint",
1627 }
1628 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1629 return srv.(NativeHWManagementServiceServer).SetMsgBusEndpoint(ctx, req.(*SetMsgBusEndpointRequest))
1630 }
1631 return interceptor(ctx, in, info, handler)
1632}
1633
1634func _NativeHWManagementService_GetMsgBusEndpoint_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1635 in := new(empty.Empty)
1636 if err := dec(in); err != nil {
1637 return nil, err
1638 }
1639 if interceptor == nil {
1640 return srv.(NativeHWManagementServiceServer).GetMsgBusEndpoint(ctx, in)
1641 }
1642 info := &grpc.UnaryServerInfo{
1643 Server: srv,
1644 FullMethod: "/dmi.NativeHWManagementService/GetMsgBusEndpoint",
1645 }
1646 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1647 return srv.(NativeHWManagementServiceServer).GetMsgBusEndpoint(ctx, req.(*empty.Empty))
1648 }
1649 return interceptor(ctx, in, info, handler)
1650}
1651
Andrea Campanellab91e9a42020-10-09 14:31:43 +02001652func _NativeHWManagementService_GetLoggableEntities_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1653 in := new(GetLoggableEntitiesRequest)
1654 if err := dec(in); err != nil {
1655 return nil, err
1656 }
1657 if interceptor == nil {
1658 return srv.(NativeHWManagementServiceServer).GetLoggableEntities(ctx, in)
1659 }
1660 info := &grpc.UnaryServerInfo{
1661 Server: srv,
1662 FullMethod: "/dmi.NativeHWManagementService/GetLoggableEntities",
1663 }
1664 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1665 return srv.(NativeHWManagementServiceServer).GetLoggableEntities(ctx, req.(*GetLoggableEntitiesRequest))
1666 }
1667 return interceptor(ctx, in, info, handler)
1668}
1669
1670func _NativeHWManagementService_SetLogLevel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1671 in := new(SetLogLevelRequest)
1672 if err := dec(in); err != nil {
1673 return nil, err
1674 }
1675 if interceptor == nil {
1676 return srv.(NativeHWManagementServiceServer).SetLogLevel(ctx, in)
1677 }
1678 info := &grpc.UnaryServerInfo{
1679 Server: srv,
1680 FullMethod: "/dmi.NativeHWManagementService/SetLogLevel",
1681 }
1682 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1683 return srv.(NativeHWManagementServiceServer).SetLogLevel(ctx, req.(*SetLogLevelRequest))
1684 }
1685 return interceptor(ctx, in, info, handler)
1686}
1687
1688func _NativeHWManagementService_GetLogLevel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1689 in := new(GetLogLevelRequest)
1690 if err := dec(in); err != nil {
1691 return nil, err
1692 }
1693 if interceptor == nil {
1694 return srv.(NativeHWManagementServiceServer).GetLogLevel(ctx, in)
1695 }
1696 info := &grpc.UnaryServerInfo{
1697 Server: srv,
1698 FullMethod: "/dmi.NativeHWManagementService/GetLogLevel",
1699 }
1700 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1701 return srv.(NativeHWManagementServiceServer).GetLogLevel(ctx, req.(*GetLogLevelRequest))
1702 }
1703 return interceptor(ctx, in, info, handler)
1704}
1705
Amit Ghosh09f28362020-06-12 21:52:19 +01001706var _NativeHWManagementService_serviceDesc = grpc.ServiceDesc{
1707 ServiceName: "dmi.NativeHWManagementService",
1708 HandlerType: (*NativeHWManagementServiceServer)(nil),
1709 Methods: []grpc.MethodDesc{
1710 {
Amit Ghosh366228e2020-07-06 13:46:42 +01001711 MethodName: "StopManagingDevice",
1712 Handler: _NativeHWManagementService_StopManagingDevice_Handler,
1713 },
1714 {
Andrea Campanellacb990bc2020-09-22 12:50:56 +02001715 MethodName: "GetManagedDevices",
1716 Handler: _NativeHWManagementService_GetManagedDevices_Handler,
1717 },
1718 {
Amit Ghosh09f28362020-06-12 21:52:19 +01001719 MethodName: "SetHWComponentInfo",
1720 Handler: _NativeHWManagementService_SetHWComponentInfo_Handler,
1721 },
amit.ghosh188a84f2020-09-27 20:59:25 +02001722 {
1723 MethodName: "SetLoggingEndpoint",
1724 Handler: _NativeHWManagementService_SetLoggingEndpoint_Handler,
1725 },
1726 {
1727 MethodName: "GetLoggingEndpoint",
1728 Handler: _NativeHWManagementService_GetLoggingEndpoint_Handler,
1729 },
1730 {
1731 MethodName: "SetMsgBusEndpoint",
1732 Handler: _NativeHWManagementService_SetMsgBusEndpoint_Handler,
1733 },
1734 {
1735 MethodName: "GetMsgBusEndpoint",
1736 Handler: _NativeHWManagementService_GetMsgBusEndpoint_Handler,
1737 },
Andrea Campanellab91e9a42020-10-09 14:31:43 +02001738 {
1739 MethodName: "GetLoggableEntities",
1740 Handler: _NativeHWManagementService_GetLoggableEntities_Handler,
1741 },
1742 {
1743 MethodName: "SetLogLevel",
1744 Handler: _NativeHWManagementService_SetLogLevel_Handler,
1745 },
1746 {
1747 MethodName: "GetLogLevel",
1748 Handler: _NativeHWManagementService_GetLogLevel_Handler,
1749 },
Amit Ghosh09f28362020-06-12 21:52:19 +01001750 },
1751 Streams: []grpc.StreamDesc{
1752 {
1753 StreamName: "StartManagingDevice",
1754 Handler: _NativeHWManagementService_StartManagingDevice_Handler,
1755 ServerStreams: true,
1756 },
1757 {
1758 StreamName: "GetPhysicalInventory",
1759 Handler: _NativeHWManagementService_GetPhysicalInventory_Handler,
1760 ServerStreams: true,
1761 },
1762 {
1763 StreamName: "GetHWComponentInfo",
1764 Handler: _NativeHWManagementService_GetHWComponentInfo_Handler,
1765 ServerStreams: true,
1766 },
1767 },
1768 Metadata: "dmi/hw_management_service.proto",
1769}