blob: edf3b372fbb06f05928e2d64a63e329804463813 [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 {
874 Responses []*DeviceLogResponse `protobuf:"bytes,1,rep,name=responses,proto3" json:"responses,omitempty"`
875 XXX_NoUnkeyedLiteral struct{} `json:"-"`
876 XXX_unrecognized []byte `json:"-"`
877 XXX_sizecache int32 `json:"-"`
878}
879
880func (m *SetLogLevelResponse) Reset() { *m = SetLogLevelResponse{} }
881func (m *SetLogLevelResponse) String() string { return proto.CompactTextString(m) }
882func (*SetLogLevelResponse) ProtoMessage() {}
883func (*SetLogLevelResponse) Descriptor() ([]byte, []int) {
884 return fileDescriptor_eae902e73066286d, []int{17}
885}
886
887func (m *SetLogLevelResponse) XXX_Unmarshal(b []byte) error {
888 return xxx_messageInfo_SetLogLevelResponse.Unmarshal(m, b)
889}
890func (m *SetLogLevelResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
891 return xxx_messageInfo_SetLogLevelResponse.Marshal(b, m, deterministic)
892}
893func (m *SetLogLevelResponse) XXX_Merge(src proto.Message) {
894 xxx_messageInfo_SetLogLevelResponse.Merge(m, src)
895}
896func (m *SetLogLevelResponse) XXX_Size() int {
897 return xxx_messageInfo_SetLogLevelResponse.Size(m)
898}
899func (m *SetLogLevelResponse) XXX_DiscardUnknown() {
900 xxx_messageInfo_SetLogLevelResponse.DiscardUnknown(m)
901}
902
903var xxx_messageInfo_SetLogLevelResponse proto.InternalMessageInfo
904
905func (m *SetLogLevelResponse) GetResponses() []*DeviceLogResponse {
906 if m != nil {
907 return m.Responses
908 }
909 return nil
910}
911
912type DeviceLogResponse struct {
913 DeviceUuid *Uuid `protobuf:"bytes,1,opt,name=device_uuid,json=deviceUuid,proto3" json:"device_uuid,omitempty"`
914 Status Status `protobuf:"varint,2,opt,name=status,proto3,enum=dmi.Status" json:"status,omitempty"`
915 Reason Reason `protobuf:"varint,3,opt,name=reason,proto3,enum=dmi.Reason" json:"reason,omitempty"`
916 XXX_NoUnkeyedLiteral struct{} `json:"-"`
917 XXX_unrecognized []byte `json:"-"`
918 XXX_sizecache int32 `json:"-"`
919}
920
921func (m *DeviceLogResponse) Reset() { *m = DeviceLogResponse{} }
922func (m *DeviceLogResponse) String() string { return proto.CompactTextString(m) }
923func (*DeviceLogResponse) ProtoMessage() {}
924func (*DeviceLogResponse) Descriptor() ([]byte, []int) {
925 return fileDescriptor_eae902e73066286d, []int{18}
926}
927
928func (m *DeviceLogResponse) XXX_Unmarshal(b []byte) error {
929 return xxx_messageInfo_DeviceLogResponse.Unmarshal(m, b)
930}
931func (m *DeviceLogResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
932 return xxx_messageInfo_DeviceLogResponse.Marshal(b, m, deterministic)
933}
934func (m *DeviceLogResponse) XXX_Merge(src proto.Message) {
935 xxx_messageInfo_DeviceLogResponse.Merge(m, src)
936}
937func (m *DeviceLogResponse) XXX_Size() int {
938 return xxx_messageInfo_DeviceLogResponse.Size(m)
939}
940func (m *DeviceLogResponse) XXX_DiscardUnknown() {
941 xxx_messageInfo_DeviceLogResponse.DiscardUnknown(m)
942}
943
944var xxx_messageInfo_DeviceLogResponse proto.InternalMessageInfo
945
946func (m *DeviceLogResponse) GetDeviceUuid() *Uuid {
947 if m != nil {
948 return m.DeviceUuid
949 }
950 return nil
951}
952
953func (m *DeviceLogResponse) GetStatus() Status {
954 if m != nil {
955 return m.Status
956 }
957 return Status_UNDEFINED_STATUS
958}
959
960func (m *DeviceLogResponse) GetReason() Reason {
961 if m != nil {
962 return m.Reason
963 }
964 return Reason_UNDEFINED_REASON
965}
966
967type GetLogLevelRequest struct {
968 DeviceUuid *Uuid `protobuf:"bytes,1,opt,name=device_uuid,json=deviceUuid,proto3" json:"device_uuid,omitempty"`
969 Entities []string `protobuf:"bytes,2,rep,name=entities,proto3" json:"entities,omitempty"`
970 XXX_NoUnkeyedLiteral struct{} `json:"-"`
971 XXX_unrecognized []byte `json:"-"`
972 XXX_sizecache int32 `json:"-"`
973}
974
975func (m *GetLogLevelRequest) Reset() { *m = GetLogLevelRequest{} }
976func (m *GetLogLevelRequest) String() string { return proto.CompactTextString(m) }
977func (*GetLogLevelRequest) ProtoMessage() {}
978func (*GetLogLevelRequest) Descriptor() ([]byte, []int) {
979 return fileDescriptor_eae902e73066286d, []int{19}
980}
981
982func (m *GetLogLevelRequest) XXX_Unmarshal(b []byte) error {
983 return xxx_messageInfo_GetLogLevelRequest.Unmarshal(m, b)
984}
985func (m *GetLogLevelRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
986 return xxx_messageInfo_GetLogLevelRequest.Marshal(b, m, deterministic)
987}
988func (m *GetLogLevelRequest) XXX_Merge(src proto.Message) {
989 xxx_messageInfo_GetLogLevelRequest.Merge(m, src)
990}
991func (m *GetLogLevelRequest) XXX_Size() int {
992 return xxx_messageInfo_GetLogLevelRequest.Size(m)
993}
994func (m *GetLogLevelRequest) XXX_DiscardUnknown() {
995 xxx_messageInfo_GetLogLevelRequest.DiscardUnknown(m)
996}
997
998var xxx_messageInfo_GetLogLevelRequest proto.InternalMessageInfo
999
1000func (m *GetLogLevelRequest) GetDeviceUuid() *Uuid {
1001 if m != nil {
1002 return m.DeviceUuid
1003 }
1004 return nil
1005}
1006
1007func (m *GetLogLevelRequest) GetEntities() []string {
1008 if m != nil {
1009 return m.Entities
1010 }
1011 return nil
1012}
1013
1014type GetLogLevelResponse struct {
1015 DeviceUuid *Uuid `protobuf:"bytes,1,opt,name=device_uuid,json=deviceUuid,proto3" json:"device_uuid,omitempty"`
1016 LogLevels []*EntitiesLogLevel `protobuf:"bytes,2,rep,name=logLevels,proto3" json:"logLevels,omitempty"`
1017 Status Status `protobuf:"varint,3,opt,name=status,proto3,enum=dmi.Status" json:"status,omitempty"`
1018 Reason Reason `protobuf:"varint,4,opt,name=reason,proto3,enum=dmi.Reason" json:"reason,omitempty"`
1019 XXX_NoUnkeyedLiteral struct{} `json:"-"`
1020 XXX_unrecognized []byte `json:"-"`
1021 XXX_sizecache int32 `json:"-"`
1022}
1023
1024func (m *GetLogLevelResponse) Reset() { *m = GetLogLevelResponse{} }
1025func (m *GetLogLevelResponse) String() string { return proto.CompactTextString(m) }
1026func (*GetLogLevelResponse) ProtoMessage() {}
1027func (*GetLogLevelResponse) Descriptor() ([]byte, []int) {
1028 return fileDescriptor_eae902e73066286d, []int{20}
1029}
1030
1031func (m *GetLogLevelResponse) XXX_Unmarshal(b []byte) error {
1032 return xxx_messageInfo_GetLogLevelResponse.Unmarshal(m, b)
1033}
1034func (m *GetLogLevelResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1035 return xxx_messageInfo_GetLogLevelResponse.Marshal(b, m, deterministic)
1036}
1037func (m *GetLogLevelResponse) XXX_Merge(src proto.Message) {
1038 xxx_messageInfo_GetLogLevelResponse.Merge(m, src)
1039}
1040func (m *GetLogLevelResponse) XXX_Size() int {
1041 return xxx_messageInfo_GetLogLevelResponse.Size(m)
1042}
1043func (m *GetLogLevelResponse) XXX_DiscardUnknown() {
1044 xxx_messageInfo_GetLogLevelResponse.DiscardUnknown(m)
1045}
1046
1047var xxx_messageInfo_GetLogLevelResponse proto.InternalMessageInfo
1048
1049func (m *GetLogLevelResponse) GetDeviceUuid() *Uuid {
1050 if m != nil {
1051 return m.DeviceUuid
1052 }
1053 return nil
1054}
1055
1056func (m *GetLogLevelResponse) GetLogLevels() []*EntitiesLogLevel {
1057 if m != nil {
1058 return m.LogLevels
1059 }
1060 return nil
1061}
1062
1063func (m *GetLogLevelResponse) GetStatus() Status {
1064 if m != nil {
1065 return m.Status
1066 }
1067 return Status_UNDEFINED_STATUS
1068}
1069
1070func (m *GetLogLevelResponse) GetReason() Reason {
1071 if m != nil {
1072 return m.Reason
1073 }
1074 return Reason_UNDEFINED_REASON
1075}
1076
1077type GetLoggableEntitiesRequest struct {
1078 DeviceUuid *Uuid `protobuf:"bytes,1,opt,name=device_uuid,json=deviceUuid,proto3" json:"device_uuid,omitempty"`
1079 XXX_NoUnkeyedLiteral struct{} `json:"-"`
1080 XXX_unrecognized []byte `json:"-"`
1081 XXX_sizecache int32 `json:"-"`
1082}
1083
1084func (m *GetLoggableEntitiesRequest) Reset() { *m = GetLoggableEntitiesRequest{} }
1085func (m *GetLoggableEntitiesRequest) String() string { return proto.CompactTextString(m) }
1086func (*GetLoggableEntitiesRequest) ProtoMessage() {}
1087func (*GetLoggableEntitiesRequest) Descriptor() ([]byte, []int) {
1088 return fileDescriptor_eae902e73066286d, []int{21}
1089}
1090
1091func (m *GetLoggableEntitiesRequest) XXX_Unmarshal(b []byte) error {
1092 return xxx_messageInfo_GetLoggableEntitiesRequest.Unmarshal(m, b)
1093}
1094func (m *GetLoggableEntitiesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
1095 return xxx_messageInfo_GetLoggableEntitiesRequest.Marshal(b, m, deterministic)
1096}
1097func (m *GetLoggableEntitiesRequest) XXX_Merge(src proto.Message) {
1098 xxx_messageInfo_GetLoggableEntitiesRequest.Merge(m, src)
1099}
1100func (m *GetLoggableEntitiesRequest) XXX_Size() int {
1101 return xxx_messageInfo_GetLoggableEntitiesRequest.Size(m)
1102}
1103func (m *GetLoggableEntitiesRequest) XXX_DiscardUnknown() {
1104 xxx_messageInfo_GetLoggableEntitiesRequest.DiscardUnknown(m)
1105}
1106
1107var xxx_messageInfo_GetLoggableEntitiesRequest proto.InternalMessageInfo
1108
1109func (m *GetLoggableEntitiesRequest) GetDeviceUuid() *Uuid {
1110 if m != nil {
1111 return m.DeviceUuid
1112 }
1113 return nil
1114}
1115
Amit Ghosh09f28362020-06-12 21:52:19 +01001116func init() {
1117 proto.RegisterType((*PhysicalInventoryRequest)(nil), "dmi.PhysicalInventoryRequest")
1118 proto.RegisterType((*PhysicalInventoryResponse)(nil), "dmi.PhysicalInventoryResponse")
1119 proto.RegisterType((*HWComponentInfoGetRequest)(nil), "dmi.HWComponentInfoGetRequest")
aghoshc301dcd2020-09-03 16:55:34 +01001120 proto.RegisterType((*HWComponentInfoGetResponse)(nil), "dmi.HWComponentInfoGetResponse")
Amit Ghosh09f28362020-06-12 21:52:19 +01001121 proto.RegisterType((*HWComponentInfoSetRequest)(nil), "dmi.HWComponentInfoSetRequest")
1122 proto.RegisterType((*HWComponentInfoSetResponse)(nil), "dmi.HWComponentInfoSetResponse")
1123 proto.RegisterType((*StartManagingDeviceResponse)(nil), "dmi.StartManagingDeviceResponse")
Amit Ghosh366228e2020-07-06 13:46:42 +01001124 proto.RegisterType((*StopManagingDeviceRequest)(nil), "dmi.StopManagingDeviceRequest")
1125 proto.RegisterType((*StopManagingDeviceResponse)(nil), "dmi.StopManagingDeviceResponse")
Andrea Campanellacb990bc2020-09-22 12:50:56 +02001126 proto.RegisterType((*ManagedDevicesResponse)(nil), "dmi.ManagedDevicesResponse")
amit.ghosh188a84f2020-09-27 20:59:25 +02001127 proto.RegisterType((*SetLoggingEndpointRequest)(nil), "dmi.SetLoggingEndpointRequest")
1128 proto.RegisterType((*SetRemoteEndpointResponse)(nil), "dmi.SetRemoteEndpointResponse")
1129 proto.RegisterType((*GetLoggingEndpointResponse)(nil), "dmi.GetLoggingEndpointResponse")
1130 proto.RegisterType((*SetMsgBusEndpointRequest)(nil), "dmi.SetMsgBusEndpointRequest")
1131 proto.RegisterType((*GetMsgBusEndpointResponse)(nil), "dmi.GetMsgBusEndpointResponse")
Andrea Campanellab91e9a42020-10-09 14:31:43 +02001132 proto.RegisterType((*EntitiesLogLevel)(nil), "dmi.EntitiesLogLevel")
1133 proto.RegisterType((*SetLogLevelRequest)(nil), "dmi.SetLogLevelRequest")
1134 proto.RegisterType((*SetLogLevelResponse)(nil), "dmi.SetLogLevelResponse")
1135 proto.RegisterType((*DeviceLogResponse)(nil), "dmi.DeviceLogResponse")
1136 proto.RegisterType((*GetLogLevelRequest)(nil), "dmi.GetLogLevelRequest")
1137 proto.RegisterType((*GetLogLevelResponse)(nil), "dmi.GetLogLevelResponse")
1138 proto.RegisterType((*GetLoggableEntitiesRequest)(nil), "dmi.GetLoggableEntitiesRequest")
Amit Ghosh09f28362020-06-12 21:52:19 +01001139}
1140
1141func init() { proto.RegisterFile("dmi/hw_management_service.proto", fileDescriptor_eae902e73066286d) }
1142
1143var fileDescriptor_eae902e73066286d = []byte{
Andrea Campanellab91e9a42020-10-09 14:31:43 +02001144 // 1009 bytes of a gzipped FileDescriptorProto
1145 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xcc, 0x57, 0xcd, 0x6e, 0xdb, 0x46,
1146 0x10, 0x06, 0x2d, 0x23, 0xb1, 0x46, 0x8d, 0x13, 0xaf, 0x5b, 0x57, 0xa2, 0x51, 0xc7, 0x60, 0x51,
1147 0x34, 0x69, 0x1b, 0x29, 0x90, 0x7b, 0x29, 0x7a, 0x09, 0x92, 0xba, 0x52, 0x10, 0x39, 0x30, 0xc8,
1148 0x06, 0x46, 0x8b, 0x02, 0x06, 0x25, 0x8e, 0x68, 0x02, 0xe4, 0xae, 0x4a, 0x2e, 0x15, 0xf8, 0x11,
1149 0x7a, 0xe9, 0xa1, 0xed, 0xb5, 0x40, 0xaf, 0x7d, 0x87, 0x1e, 0xfa, 0x10, 0x7d, 0xa0, 0x82, 0xbb,
1150 0xcb, 0x3f, 0x89, 0x74, 0x14, 0x57, 0x06, 0x72, 0xa3, 0x76, 0xbf, 0xfd, 0x76, 0xe6, 0x9b, 0xd9,
1151 0x99, 0x11, 0xdc, 0x77, 0x02, 0xaf, 0x77, 0xf1, 0xfa, 0x3c, 0xb0, 0xa9, 0xed, 0x62, 0x80, 0x94,
1152 0x9f, 0x47, 0x18, 0xce, 0xbd, 0x09, 0x76, 0x67, 0x21, 0xe3, 0x8c, 0x34, 0x9c, 0xc0, 0xd3, 0x77,
1153 0x12, 0xd4, 0x84, 0x05, 0x01, 0xa3, 0x91, 0x5c, 0xd7, 0xdf, 0x93, 0x07, 0xd5, 0xaf, 0x7d, 0x97,
1154 0x31, 0xd7, 0xc7, 0x9e, 0xf8, 0x35, 0x8e, 0xa7, 0x3d, 0x0c, 0x66, 0xfc, 0x52, 0x6e, 0x1a, 0xdf,
1155 0x42, 0xfb, 0xf4, 0xe2, 0x32, 0xf2, 0x26, 0xb6, 0xff, 0x9c, 0xce, 0x91, 0x72, 0x16, 0x5e, 0x9a,
1156 0xf8, 0x53, 0x8c, 0x11, 0x27, 0x9f, 0x41, 0xcb, 0xc1, 0xe4, 0xba, 0xf3, 0x38, 0xf6, 0x9c, 0xb6,
1157 0x76, 0xa8, 0x3d, 0x68, 0xf5, 0x9b, 0x5d, 0x27, 0xf0, 0xba, 0xaf, 0x62, 0xcf, 0x31, 0x41, 0xee,
1158 0x26, 0xdf, 0xc6, 0xaf, 0x1a, 0x74, 0x2a, 0x88, 0xa2, 0x19, 0xa3, 0x11, 0x92, 0x8f, 0xe1, 0x56,
1159 0xc4, 0x6d, 0x1e, 0x47, 0x82, 0x64, 0xbb, 0xdf, 0x12, 0x24, 0x96, 0x58, 0x32, 0xd5, 0x56, 0x02,
1160 0x0a, 0xd1, 0x8e, 0x18, 0x6d, 0x6f, 0x14, 0x40, 0xa6, 0x58, 0x32, 0xd5, 0x16, 0xf9, 0x1c, 0x9a,
1161 0x5e, 0x4a, 0xdf, 0x6e, 0x08, 0x8b, 0xee, 0x08, 0xdc, 0xd0, 0x0e, 0x9d, 0xd7, 0x76, 0x88, 0x66,
1162 0xbe, 0x6f, 0xfc, 0xa9, 0x41, 0x67, 0x78, 0xf6, 0x8c, 0x05, 0x33, 0x46, 0x91, 0xf2, 0xe7, 0x74,
1163 0xca, 0x06, 0xc8, 0xaf, 0xe1, 0x1e, 0x79, 0x0c, 0xdb, 0x93, 0x94, 0x46, 0xc2, 0x37, 0x16, 0xe1,
1164 0x77, 0x32, 0x80, 0x38, 0xf1, 0x49, 0xf1, 0x04, 0xb5, 0x03, 0x14, 0xd6, 0x36, 0x0b, 0xb0, 0x97,
1165 0x76, 0x80, 0xc6, 0xef, 0x1a, 0xe8, 0x55, 0x26, 0xae, 0x5d, 0xb8, 0x2f, 0xa0, 0x99, 0xdd, 0xac,
1166 0x84, 0xdb, 0x16, 0xb8, 0xec, 0x6e, 0x33, 0x07, 0x18, 0xff, 0x2e, 0x2b, 0x67, 0xbd, 0x5b, 0xca,
1167 0x91, 0x3e, 0xdc, 0x9e, 0x5c, 0xd8, 0xd4, 0xc5, 0xa8, 0xbd, 0x29, 0x18, 0xdb, 0x82, 0xf1, 0x84,
1168 0x39, 0xde, 0xd4, 0xb3, 0xc7, 0x3e, 0xe6, 0x8e, 0xa5, 0x40, 0x63, 0xba, 0x24, 0xb6, 0x75, 0x13,
1169 0x62, 0x1b, 0xbf, 0x69, 0xb0, 0x6f, 0x71, 0x3b, 0xe4, 0x27, 0xc9, 0xd3, 0xf5, 0xa8, 0xfb, 0x8d,
1170 0x10, 0xe4, 0x06, 0xc2, 0xba, 0x10, 0x8a, 0xc6, 0x55, 0x6f, 0xb4, 0x07, 0x1d, 0x8b, 0xb3, 0xd9,
1171 0xa2, 0x4d, 0x32, 0xa6, 0x04, 0x36, 0x85, 0xd6, 0x9a, 0xd0, 0x5a, 0x7c, 0x27, 0x72, 0x55, 0x1d,
1172 0x58, 0xbb, 0x5c, 0x23, 0xd8, 0x13, 0x77, 0xa0, 0x23, 0xaf, 0x88, 0xb2, 0x3b, 0xfa, 0x70, 0x5b,
1173 0x3a, 0x90, 0x5c, 0xd2, 0xb8, 0x3a, 0xc8, 0x0a, 0x68, 0xfc, 0xa1, 0x41, 0xc7, 0x42, 0x3e, 0x62,
1174 0x6e, 0x62, 0xf4, 0x31, 0x75, 0x66, 0xcc, 0xa3, 0xd7, 0xca, 0xdd, 0x87, 0x70, 0xcf, 0x97, 0x2c,
1175 0xe7, 0xa8, 0x68, 0x84, 0x1b, 0x4d, 0xf3, 0xae, 0x5f, 0x66, 0x2f, 0x42, 0x45, 0x61, 0x9d, 0x30,
1176 0x5f, 0xa5, 0x6d, 0x0a, 0x3d, 0x55, 0xcb, 0x06, 0x0a, 0xf3, 0x4c, 0x0c, 0x18, 0xc7, 0xdc, 0xba,
1177 0xb5, 0x8b, 0xfa, 0xb7, 0x06, 0xfa, 0xa0, 0x42, 0x86, 0xb5, 0xa7, 0x60, 0x95, 0x4a, 0x8d, 0xd5,
1178 0x55, 0xda, 0xac, 0x56, 0xe9, 0x19, 0xb4, 0x2d, 0xe4, 0x27, 0x91, 0xfb, 0x34, 0x8e, 0x16, 0x63,
1179 0xf8, 0x29, 0xdc, 0x0d, 0x22, 0x77, 0x1c, 0x47, 0xf9, 0x85, 0x32, 0x6d, 0xb7, 0xe5, 0x72, 0x8a,
1180 0x37, 0x7e, 0xd1, 0xa0, 0x33, 0x58, 0x66, 0x59, 0xbb, 0x04, 0x15, 0x06, 0x35, 0x2a, 0x0d, 0xfa,
1181 0x1e, 0xee, 0x1d, 0x53, 0xee, 0x71, 0x0f, 0xa3, 0x11, 0x73, 0x47, 0x38, 0x47, 0x9f, 0x3c, 0x84,
1182 0x2d, 0x5f, 0x7d, 0x2b, 0x43, 0x64, 0x47, 0x4b, 0x01, 0x66, 0xb6, 0x4d, 0x74, 0xd8, 0x42, 0x75,
1183 0xbc, 0xbd, 0x71, 0xd8, 0x78, 0xd0, 0x34, 0xb3, 0xdf, 0x46, 0x0c, 0x44, 0x66, 0xbd, 0x3c, 0x74,
1184 0x8d, 0x74, 0x3f, 0x82, 0xa6, 0x9f, 0x4c, 0x0a, 0x73, 0xf4, 0x25, 0x7d, 0xab, 0xff, 0x81, 0x40,
1185 0x2e, 0x9a, 0x6c, 0xe6, 0x38, 0xe3, 0x05, 0xec, 0x96, 0xae, 0x55, 0xda, 0x7e, 0x09, 0xcd, 0x50,
1186 0x7d, 0xa7, 0x4f, 0x77, 0x4f, 0x70, 0xc9, 0x17, 0x3e, 0x62, 0x6e, 0x0a, 0x35, 0x73, 0xa0, 0xf1,
1187 0xb3, 0x06, 0x3b, 0x4b, 0x80, 0xb7, 0xf2, 0x21, 0x8f, 0xe9, 0xc6, 0x2a, 0x31, 0x6d, 0xd4, 0xbf,
1188 0x9f, 0x1f, 0x81, 0x0c, 0xfe, 0x9f, 0x9e, 0x57, 0x45, 0xeb, 0x1f, 0x0d, 0x76, 0x07, 0x15, 0xba,
1189 0xbd, 0x7d, 0xbc, 0x46, 0x2b, 0xc6, 0x4b, 0xe2, 0x0a, 0x02, 0x35, 0x56, 0x11, 0x68, 0xb3, 0x5e,
1190 0xa0, 0x61, 0x56, 0x5f, 0x92, 0x42, 0x9c, 0xde, 0x79, 0x0d, 0xa1, 0xfa, 0x7f, 0x6d, 0x41, 0xe7,
1191 0xa5, 0xcd, 0xbd, 0x39, 0x0e, 0xcf, 0x4e, 0xb2, 0x61, 0xd7, 0x92, 0xb3, 0x2e, 0xb1, 0x60, 0xb7,
1192 0xa2, 0x97, 0x92, 0xda, 0x4e, 0xa0, 0x1f, 0xa6, 0x2e, 0xd5, 0xf5, 0xdf, 0xc7, 0x1a, 0x79, 0x05,
1193 0x64, 0xb9, 0xb5, 0x91, 0x03, 0x75, 0xb2, 0xa6, 0x49, 0xea, 0xf7, 0x6b, 0xf7, 0x55, 0xf8, 0x86,
1194 0xb0, 0x93, 0xd4, 0x9b, 0x52, 0x33, 0x23, 0x7b, 0x5d, 0x39, 0x81, 0x77, 0xd3, 0x09, 0xbc, 0x7b,
1195 0x9c, 0x4c, 0xe0, 0xfa, 0xbe, 0xf4, 0xa0, 0xba, 0xf3, 0x9d, 0xc1, 0xfb, 0x03, 0xe4, 0x4b, 0x23,
1196 0x35, 0xf9, 0x48, 0x1c, 0xaa, 0x9b, 0xd9, 0xf5, 0x83, 0xba, 0xed, 0xcc, 0xf3, 0x33, 0x91, 0xd7,
1197 0x0b, 0x63, 0x90, 0xf2, 0xbc, 0x76, 0x58, 0x56, 0x9e, 0xd7, 0x4f, 0xaa, 0x4a, 0xd2, 0x15, 0x89,
1198 0xad, 0x37, 0x10, 0x17, 0xa7, 0xb2, 0xef, 0xd2, 0xba, 0x56, 0xea, 0x24, 0x2a, 0x52, 0x75, 0x6d,
1199 0x5e, 0xcf, 0xf6, 0x6b, 0xfa, 0xec, 0x93, 0xf4, 0x75, 0x97, 0x58, 0xf3, 0xfc, 0x54, 0x76, 0x5d,
1200 0xd1, 0x40, 0x4d, 0xd8, 0x59, 0x6a, 0x50, 0x2a, 0x3a, 0x75, 0x8d, 0xeb, 0x8d, 0x56, 0xbd, 0x90,
1201 0xe9, 0x53, 0xe6, 0xac, 0x4b, 0x9f, 0x83, 0xd4, 0xc2, 0x9a, 0xf6, 0x76, 0x9a, 0x56, 0x98, 0xd2,
1202 0xfb, 0x24, 0x25, 0xc7, 0x2a, 0x5e, 0xae, 0xde, 0x2e, 0x00, 0xca, 0xc5, 0xe9, 0x09, 0xb4, 0x0a,
1203 0xb5, 0x9e, 0x7c, 0x58, 0x88, 0x41, 0xb1, 0x48, 0x2a, 0x06, 0xab, 0x9a, 0x61, 0xb0, 0xc4, 0x30,
1204 0xa8, 0x63, 0xa8, 0xb0, 0xe1, 0xe9, 0xd7, 0x3f, 0x7c, 0xe5, 0x7a, 0xfc, 0x22, 0x1e, 0x77, 0x27,
1205 0x2c, 0xe8, 0xb1, 0x19, 0xd2, 0x09, 0x0b, 0x9d, 0x9e, 0xac, 0x26, 0x8f, 0xf2, 0xbf, 0xca, 0x8f,
1206 0x3c, 0xca, 0x31, 0x9c, 0xda, 0x13, 0xec, 0xcd, 0x8f, 0x7a, 0x2e, 0xeb, 0x39, 0x81, 0x37, 0xbe,
1207 0x25, 0x24, 0x3c, 0xfa, 0x2f, 0x00, 0x00, 0xff, 0xff, 0xf2, 0x86, 0xe7, 0xb8, 0x5a, 0x0f, 0x00,
1208 0x00,
Amit Ghosh09f28362020-06-12 21:52:19 +01001209}
1210
1211// Reference imports to suppress errors if they are not otherwise used.
1212var _ context.Context
1213var _ grpc.ClientConn
1214
1215// This is a compile-time assertion to ensure that this generated file
1216// is compatible with the grpc package it is being compiled against.
1217const _ = grpc.SupportPackageIsVersion4
1218
1219// NativeHWManagementServiceClient is the client API for NativeHWManagementService service.
1220//
1221// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
1222type NativeHWManagementServiceClient interface {
1223 // Initializes context for a device and sets up required states
Amit Ghosh704462f2020-06-24 16:44:56 +01001224 // In the call to StartManagingDevice, the fields of ModifiableComponent which are relevant
1225 // and their meanings in this context is mentioned below:
1226 // name = The unique name that needs to be assigned to this hardware;
1227 // class = COMPONENT_TYPE_UNDEFINED;
1228 // parent = nil;
1229 // alias = Optional;
1230 // asset_id = Optional;
1231 // uri = IP Address of the Hardware;
1232 StartManagingDevice(ctx context.Context, in *ModifiableComponent, opts ...grpc.CallOption) (NativeHWManagementService_StartManagingDeviceClient, error)
Amit Ghosh366228e2020-07-06 13:46:42 +01001233 // Stop management of a device and clean up any context and caches for that device
1234 StopManagingDevice(ctx context.Context, in *StopManagingDeviceRequest, opts ...grpc.CallOption) (*StopManagingDeviceResponse, error)
Andrea Campanellacb990bc2020-09-22 12:50:56 +02001235 // Returns an object containing a list of devices managed by this entity
1236 GetManagedDevices(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ManagedDevicesResponse, error)
Amit Ghosh09f28362020-06-12 21:52:19 +01001237 // Get the HW inventory details of the Device
1238 GetPhysicalInventory(ctx context.Context, in *PhysicalInventoryRequest, opts ...grpc.CallOption) (NativeHWManagementService_GetPhysicalInventoryClient, error)
1239 // Get the details of a particular HW component
1240 GetHWComponentInfo(ctx context.Context, in *HWComponentInfoGetRequest, opts ...grpc.CallOption) (NativeHWManagementService_GetHWComponentInfoClient, error)
1241 // Sets the permissible attributes of a HW component
1242 SetHWComponentInfo(ctx context.Context, in *HWComponentInfoSetRequest, opts ...grpc.CallOption) (*HWComponentInfoSetResponse, error)
amit.ghosh188a84f2020-09-27 20:59:25 +02001243 // Sets the location to which logs need to be shipped
1244 SetLoggingEndpoint(ctx context.Context, in *SetLoggingEndpointRequest, opts ...grpc.CallOption) (*SetRemoteEndpointResponse, error)
1245 // Gets the configured location to which the logs are being shipped
1246 GetLoggingEndpoint(ctx context.Context, in *Uuid, opts ...grpc.CallOption) (*GetLoggingEndpointResponse, error)
1247 // Sets the location of the Message Bus to which events and metrics are shipped
1248 SetMsgBusEndpoint(ctx context.Context, in *SetMsgBusEndpointRequest, opts ...grpc.CallOption) (*SetRemoteEndpointResponse, error)
1249 // Gets the configured location to which the events and metrics are being shipped
1250 GetMsgBusEndpoint(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*GetMsgBusEndpointResponse, error)
Andrea Campanellab91e9a42020-10-09 14:31:43 +02001251 // Gets the entities of a device on which log can be configured. A few are expected, like OS, PON Management etc.
1252 // In general an entity is any item within an hardware system that can emit logs, e.g. service, process, subsystem,
1253 // interface, package etc.
1254 GetLoggableEntities(ctx context.Context, in *GetLoggableEntitiesRequest, opts ...grpc.CallOption) (*GetLogLevelResponse, error)
1255 // Sets the log level for one or more devices for each given entity to a certain level.
1256 // If only one EntitiesLogLevel is provided for the device and that request contains only a log level with
1257 // no entity in the list it's assumed that the caller wants to set that level for all the entities.
1258 SetLogLevel(ctx context.Context, in *SetLogLevelRequest, opts ...grpc.CallOption) (*SetLogLevelResponse, error)
1259 // Gets the configured log level for a certain entity on a certain device.
1260 // If no entity is specified in the request all the entities with their log level should be returned.
1261 GetLogLevel(ctx context.Context, in *GetLogLevelRequest, opts ...grpc.CallOption) (*GetLogLevelResponse, error)
Amit Ghosh09f28362020-06-12 21:52:19 +01001262}
1263
1264type nativeHWManagementServiceClient struct {
1265 cc *grpc.ClientConn
1266}
1267
1268func NewNativeHWManagementServiceClient(cc *grpc.ClientConn) NativeHWManagementServiceClient {
1269 return &nativeHWManagementServiceClient{cc}
1270}
1271
Amit Ghosh704462f2020-06-24 16:44:56 +01001272func (c *nativeHWManagementServiceClient) StartManagingDevice(ctx context.Context, in *ModifiableComponent, opts ...grpc.CallOption) (NativeHWManagementService_StartManagingDeviceClient, error) {
Amit Ghosh09f28362020-06-12 21:52:19 +01001273 stream, err := c.cc.NewStream(ctx, &_NativeHWManagementService_serviceDesc.Streams[0], "/dmi.NativeHWManagementService/StartManagingDevice", opts...)
1274 if err != nil {
1275 return nil, err
1276 }
1277 x := &nativeHWManagementServiceStartManagingDeviceClient{stream}
1278 if err := x.ClientStream.SendMsg(in); err != nil {
1279 return nil, err
1280 }
1281 if err := x.ClientStream.CloseSend(); err != nil {
1282 return nil, err
1283 }
1284 return x, nil
1285}
1286
1287type NativeHWManagementService_StartManagingDeviceClient interface {
1288 Recv() (*StartManagingDeviceResponse, error)
1289 grpc.ClientStream
1290}
1291
1292type nativeHWManagementServiceStartManagingDeviceClient struct {
1293 grpc.ClientStream
1294}
1295
1296func (x *nativeHWManagementServiceStartManagingDeviceClient) Recv() (*StartManagingDeviceResponse, error) {
1297 m := new(StartManagingDeviceResponse)
1298 if err := x.ClientStream.RecvMsg(m); err != nil {
1299 return nil, err
1300 }
1301 return m, nil
1302}
1303
Amit Ghosh366228e2020-07-06 13:46:42 +01001304func (c *nativeHWManagementServiceClient) StopManagingDevice(ctx context.Context, in *StopManagingDeviceRequest, opts ...grpc.CallOption) (*StopManagingDeviceResponse, error) {
1305 out := new(StopManagingDeviceResponse)
1306 err := c.cc.Invoke(ctx, "/dmi.NativeHWManagementService/StopManagingDevice", in, out, opts...)
1307 if err != nil {
1308 return nil, err
1309 }
1310 return out, nil
1311}
1312
Andrea Campanellacb990bc2020-09-22 12:50:56 +02001313func (c *nativeHWManagementServiceClient) GetManagedDevices(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*ManagedDevicesResponse, error) {
1314 out := new(ManagedDevicesResponse)
1315 err := c.cc.Invoke(ctx, "/dmi.NativeHWManagementService/GetManagedDevices", in, out, opts...)
1316 if err != nil {
1317 return nil, err
1318 }
1319 return out, nil
1320}
1321
Amit Ghosh09f28362020-06-12 21:52:19 +01001322func (c *nativeHWManagementServiceClient) GetPhysicalInventory(ctx context.Context, in *PhysicalInventoryRequest, opts ...grpc.CallOption) (NativeHWManagementService_GetPhysicalInventoryClient, error) {
1323 stream, err := c.cc.NewStream(ctx, &_NativeHWManagementService_serviceDesc.Streams[1], "/dmi.NativeHWManagementService/GetPhysicalInventory", opts...)
1324 if err != nil {
1325 return nil, err
1326 }
1327 x := &nativeHWManagementServiceGetPhysicalInventoryClient{stream}
1328 if err := x.ClientStream.SendMsg(in); err != nil {
1329 return nil, err
1330 }
1331 if err := x.ClientStream.CloseSend(); err != nil {
1332 return nil, err
1333 }
1334 return x, nil
1335}
1336
1337type NativeHWManagementService_GetPhysicalInventoryClient interface {
1338 Recv() (*PhysicalInventoryResponse, error)
1339 grpc.ClientStream
1340}
1341
1342type nativeHWManagementServiceGetPhysicalInventoryClient struct {
1343 grpc.ClientStream
1344}
1345
1346func (x *nativeHWManagementServiceGetPhysicalInventoryClient) Recv() (*PhysicalInventoryResponse, error) {
1347 m := new(PhysicalInventoryResponse)
1348 if err := x.ClientStream.RecvMsg(m); err != nil {
1349 return nil, err
1350 }
1351 return m, nil
1352}
1353
1354func (c *nativeHWManagementServiceClient) GetHWComponentInfo(ctx context.Context, in *HWComponentInfoGetRequest, opts ...grpc.CallOption) (NativeHWManagementService_GetHWComponentInfoClient, error) {
1355 stream, err := c.cc.NewStream(ctx, &_NativeHWManagementService_serviceDesc.Streams[2], "/dmi.NativeHWManagementService/GetHWComponentInfo", opts...)
1356 if err != nil {
1357 return nil, err
1358 }
1359 x := &nativeHWManagementServiceGetHWComponentInfoClient{stream}
1360 if err := x.ClientStream.SendMsg(in); err != nil {
1361 return nil, err
1362 }
1363 if err := x.ClientStream.CloseSend(); err != nil {
1364 return nil, err
1365 }
1366 return x, nil
1367}
1368
1369type NativeHWManagementService_GetHWComponentInfoClient interface {
aghoshc301dcd2020-09-03 16:55:34 +01001370 Recv() (*HWComponentInfoGetResponse, error)
Amit Ghosh09f28362020-06-12 21:52:19 +01001371 grpc.ClientStream
1372}
1373
1374type nativeHWManagementServiceGetHWComponentInfoClient struct {
1375 grpc.ClientStream
1376}
1377
aghoshc301dcd2020-09-03 16:55:34 +01001378func (x *nativeHWManagementServiceGetHWComponentInfoClient) Recv() (*HWComponentInfoGetResponse, error) {
1379 m := new(HWComponentInfoGetResponse)
Amit Ghosh09f28362020-06-12 21:52:19 +01001380 if err := x.ClientStream.RecvMsg(m); err != nil {
1381 return nil, err
1382 }
1383 return m, nil
1384}
1385
1386func (c *nativeHWManagementServiceClient) SetHWComponentInfo(ctx context.Context, in *HWComponentInfoSetRequest, opts ...grpc.CallOption) (*HWComponentInfoSetResponse, error) {
1387 out := new(HWComponentInfoSetResponse)
1388 err := c.cc.Invoke(ctx, "/dmi.NativeHWManagementService/SetHWComponentInfo", in, out, opts...)
1389 if err != nil {
1390 return nil, err
1391 }
1392 return out, nil
1393}
1394
amit.ghosh188a84f2020-09-27 20:59:25 +02001395func (c *nativeHWManagementServiceClient) SetLoggingEndpoint(ctx context.Context, in *SetLoggingEndpointRequest, opts ...grpc.CallOption) (*SetRemoteEndpointResponse, error) {
1396 out := new(SetRemoteEndpointResponse)
1397 err := c.cc.Invoke(ctx, "/dmi.NativeHWManagementService/SetLoggingEndpoint", in, out, opts...)
1398 if err != nil {
1399 return nil, err
1400 }
1401 return out, nil
1402}
1403
1404func (c *nativeHWManagementServiceClient) GetLoggingEndpoint(ctx context.Context, in *Uuid, opts ...grpc.CallOption) (*GetLoggingEndpointResponse, error) {
1405 out := new(GetLoggingEndpointResponse)
1406 err := c.cc.Invoke(ctx, "/dmi.NativeHWManagementService/GetLoggingEndpoint", in, out, opts...)
1407 if err != nil {
1408 return nil, err
1409 }
1410 return out, nil
1411}
1412
1413func (c *nativeHWManagementServiceClient) SetMsgBusEndpoint(ctx context.Context, in *SetMsgBusEndpointRequest, opts ...grpc.CallOption) (*SetRemoteEndpointResponse, error) {
1414 out := new(SetRemoteEndpointResponse)
1415 err := c.cc.Invoke(ctx, "/dmi.NativeHWManagementService/SetMsgBusEndpoint", in, out, opts...)
1416 if err != nil {
1417 return nil, err
1418 }
1419 return out, nil
1420}
1421
1422func (c *nativeHWManagementServiceClient) GetMsgBusEndpoint(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*GetMsgBusEndpointResponse, error) {
1423 out := new(GetMsgBusEndpointResponse)
1424 err := c.cc.Invoke(ctx, "/dmi.NativeHWManagementService/GetMsgBusEndpoint", in, out, opts...)
1425 if err != nil {
1426 return nil, err
1427 }
1428 return out, nil
1429}
1430
Andrea Campanellab91e9a42020-10-09 14:31:43 +02001431func (c *nativeHWManagementServiceClient) GetLoggableEntities(ctx context.Context, in *GetLoggableEntitiesRequest, opts ...grpc.CallOption) (*GetLogLevelResponse, error) {
1432 out := new(GetLogLevelResponse)
1433 err := c.cc.Invoke(ctx, "/dmi.NativeHWManagementService/GetLoggableEntities", in, out, opts...)
1434 if err != nil {
1435 return nil, err
1436 }
1437 return out, nil
1438}
1439
1440func (c *nativeHWManagementServiceClient) SetLogLevel(ctx context.Context, in *SetLogLevelRequest, opts ...grpc.CallOption) (*SetLogLevelResponse, error) {
1441 out := new(SetLogLevelResponse)
1442 err := c.cc.Invoke(ctx, "/dmi.NativeHWManagementService/SetLogLevel", in, out, opts...)
1443 if err != nil {
1444 return nil, err
1445 }
1446 return out, nil
1447}
1448
1449func (c *nativeHWManagementServiceClient) GetLogLevel(ctx context.Context, in *GetLogLevelRequest, opts ...grpc.CallOption) (*GetLogLevelResponse, error) {
1450 out := new(GetLogLevelResponse)
1451 err := c.cc.Invoke(ctx, "/dmi.NativeHWManagementService/GetLogLevel", in, out, opts...)
1452 if err != nil {
1453 return nil, err
1454 }
1455 return out, nil
1456}
1457
Amit Ghosh09f28362020-06-12 21:52:19 +01001458// NativeHWManagementServiceServer is the server API for NativeHWManagementService service.
1459type NativeHWManagementServiceServer interface {
1460 // Initializes context for a device and sets up required states
Amit Ghosh704462f2020-06-24 16:44:56 +01001461 // In the call to StartManagingDevice, the fields of ModifiableComponent which are relevant
1462 // and their meanings in this context is mentioned below:
1463 // name = The unique name that needs to be assigned to this hardware;
1464 // class = COMPONENT_TYPE_UNDEFINED;
1465 // parent = nil;
1466 // alias = Optional;
1467 // asset_id = Optional;
1468 // uri = IP Address of the Hardware;
1469 StartManagingDevice(*ModifiableComponent, NativeHWManagementService_StartManagingDeviceServer) error
Amit Ghosh366228e2020-07-06 13:46:42 +01001470 // Stop management of a device and clean up any context and caches for that device
1471 StopManagingDevice(context.Context, *StopManagingDeviceRequest) (*StopManagingDeviceResponse, error)
Andrea Campanellacb990bc2020-09-22 12:50:56 +02001472 // Returns an object containing a list of devices managed by this entity
1473 GetManagedDevices(context.Context, *empty.Empty) (*ManagedDevicesResponse, error)
Amit Ghosh09f28362020-06-12 21:52:19 +01001474 // Get the HW inventory details of the Device
1475 GetPhysicalInventory(*PhysicalInventoryRequest, NativeHWManagementService_GetPhysicalInventoryServer) error
1476 // Get the details of a particular HW component
1477 GetHWComponentInfo(*HWComponentInfoGetRequest, NativeHWManagementService_GetHWComponentInfoServer) error
1478 // Sets the permissible attributes of a HW component
1479 SetHWComponentInfo(context.Context, *HWComponentInfoSetRequest) (*HWComponentInfoSetResponse, error)
amit.ghosh188a84f2020-09-27 20:59:25 +02001480 // Sets the location to which logs need to be shipped
1481 SetLoggingEndpoint(context.Context, *SetLoggingEndpointRequest) (*SetRemoteEndpointResponse, error)
1482 // Gets the configured location to which the logs are being shipped
1483 GetLoggingEndpoint(context.Context, *Uuid) (*GetLoggingEndpointResponse, error)
1484 // Sets the location of the Message Bus to which events and metrics are shipped
1485 SetMsgBusEndpoint(context.Context, *SetMsgBusEndpointRequest) (*SetRemoteEndpointResponse, error)
1486 // Gets the configured location to which the events and metrics are being shipped
1487 GetMsgBusEndpoint(context.Context, *empty.Empty) (*GetMsgBusEndpointResponse, error)
Andrea Campanellab91e9a42020-10-09 14:31:43 +02001488 // Gets the entities of a device on which log can be configured. A few are expected, like OS, PON Management etc.
1489 // In general an entity is any item within an hardware system that can emit logs, e.g. service, process, subsystem,
1490 // interface, package etc.
1491 GetLoggableEntities(context.Context, *GetLoggableEntitiesRequest) (*GetLogLevelResponse, error)
1492 // Sets the log level for one or more devices for each given entity to a certain level.
1493 // If only one EntitiesLogLevel is provided for the device and that request contains only a log level with
1494 // no entity in the list it's assumed that the caller wants to set that level for all the entities.
1495 SetLogLevel(context.Context, *SetLogLevelRequest) (*SetLogLevelResponse, error)
1496 // Gets the configured log level for a certain entity on a certain device.
1497 // If no entity is specified in the request all the entities with their log level should be returned.
1498 GetLogLevel(context.Context, *GetLogLevelRequest) (*GetLogLevelResponse, error)
Amit Ghosh09f28362020-06-12 21:52:19 +01001499}
1500
1501func RegisterNativeHWManagementServiceServer(s *grpc.Server, srv NativeHWManagementServiceServer) {
1502 s.RegisterService(&_NativeHWManagementService_serviceDesc, srv)
1503}
1504
1505func _NativeHWManagementService_StartManagingDevice_Handler(srv interface{}, stream grpc.ServerStream) error {
Amit Ghosh704462f2020-06-24 16:44:56 +01001506 m := new(ModifiableComponent)
Amit Ghosh09f28362020-06-12 21:52:19 +01001507 if err := stream.RecvMsg(m); err != nil {
1508 return err
1509 }
1510 return srv.(NativeHWManagementServiceServer).StartManagingDevice(m, &nativeHWManagementServiceStartManagingDeviceServer{stream})
1511}
1512
1513type NativeHWManagementService_StartManagingDeviceServer interface {
1514 Send(*StartManagingDeviceResponse) error
1515 grpc.ServerStream
1516}
1517
1518type nativeHWManagementServiceStartManagingDeviceServer struct {
1519 grpc.ServerStream
1520}
1521
1522func (x *nativeHWManagementServiceStartManagingDeviceServer) Send(m *StartManagingDeviceResponse) error {
1523 return x.ServerStream.SendMsg(m)
1524}
1525
Amit Ghosh366228e2020-07-06 13:46:42 +01001526func _NativeHWManagementService_StopManagingDevice_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1527 in := new(StopManagingDeviceRequest)
1528 if err := dec(in); err != nil {
1529 return nil, err
1530 }
1531 if interceptor == nil {
1532 return srv.(NativeHWManagementServiceServer).StopManagingDevice(ctx, in)
1533 }
1534 info := &grpc.UnaryServerInfo{
1535 Server: srv,
1536 FullMethod: "/dmi.NativeHWManagementService/StopManagingDevice",
1537 }
1538 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1539 return srv.(NativeHWManagementServiceServer).StopManagingDevice(ctx, req.(*StopManagingDeviceRequest))
1540 }
1541 return interceptor(ctx, in, info, handler)
1542}
1543
Andrea Campanellacb990bc2020-09-22 12:50:56 +02001544func _NativeHWManagementService_GetManagedDevices_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1545 in := new(empty.Empty)
1546 if err := dec(in); err != nil {
1547 return nil, err
1548 }
1549 if interceptor == nil {
1550 return srv.(NativeHWManagementServiceServer).GetManagedDevices(ctx, in)
1551 }
1552 info := &grpc.UnaryServerInfo{
1553 Server: srv,
1554 FullMethod: "/dmi.NativeHWManagementService/GetManagedDevices",
1555 }
1556 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1557 return srv.(NativeHWManagementServiceServer).GetManagedDevices(ctx, req.(*empty.Empty))
1558 }
1559 return interceptor(ctx, in, info, handler)
1560}
1561
Amit Ghosh09f28362020-06-12 21:52:19 +01001562func _NativeHWManagementService_GetPhysicalInventory_Handler(srv interface{}, stream grpc.ServerStream) error {
1563 m := new(PhysicalInventoryRequest)
1564 if err := stream.RecvMsg(m); err != nil {
1565 return err
1566 }
1567 return srv.(NativeHWManagementServiceServer).GetPhysicalInventory(m, &nativeHWManagementServiceGetPhysicalInventoryServer{stream})
1568}
1569
1570type NativeHWManagementService_GetPhysicalInventoryServer interface {
1571 Send(*PhysicalInventoryResponse) error
1572 grpc.ServerStream
1573}
1574
1575type nativeHWManagementServiceGetPhysicalInventoryServer struct {
1576 grpc.ServerStream
1577}
1578
1579func (x *nativeHWManagementServiceGetPhysicalInventoryServer) Send(m *PhysicalInventoryResponse) error {
1580 return x.ServerStream.SendMsg(m)
1581}
1582
1583func _NativeHWManagementService_GetHWComponentInfo_Handler(srv interface{}, stream grpc.ServerStream) error {
1584 m := new(HWComponentInfoGetRequest)
1585 if err := stream.RecvMsg(m); err != nil {
1586 return err
1587 }
1588 return srv.(NativeHWManagementServiceServer).GetHWComponentInfo(m, &nativeHWManagementServiceGetHWComponentInfoServer{stream})
1589}
1590
1591type NativeHWManagementService_GetHWComponentInfoServer interface {
aghoshc301dcd2020-09-03 16:55:34 +01001592 Send(*HWComponentInfoGetResponse) error
Amit Ghosh09f28362020-06-12 21:52:19 +01001593 grpc.ServerStream
1594}
1595
1596type nativeHWManagementServiceGetHWComponentInfoServer struct {
1597 grpc.ServerStream
1598}
1599
aghoshc301dcd2020-09-03 16:55:34 +01001600func (x *nativeHWManagementServiceGetHWComponentInfoServer) Send(m *HWComponentInfoGetResponse) error {
Amit Ghosh09f28362020-06-12 21:52:19 +01001601 return x.ServerStream.SendMsg(m)
1602}
1603
1604func _NativeHWManagementService_SetHWComponentInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1605 in := new(HWComponentInfoSetRequest)
1606 if err := dec(in); err != nil {
1607 return nil, err
1608 }
1609 if interceptor == nil {
1610 return srv.(NativeHWManagementServiceServer).SetHWComponentInfo(ctx, in)
1611 }
1612 info := &grpc.UnaryServerInfo{
1613 Server: srv,
1614 FullMethod: "/dmi.NativeHWManagementService/SetHWComponentInfo",
1615 }
1616 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1617 return srv.(NativeHWManagementServiceServer).SetHWComponentInfo(ctx, req.(*HWComponentInfoSetRequest))
1618 }
1619 return interceptor(ctx, in, info, handler)
1620}
1621
amit.ghosh188a84f2020-09-27 20:59:25 +02001622func _NativeHWManagementService_SetLoggingEndpoint_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1623 in := new(SetLoggingEndpointRequest)
1624 if err := dec(in); err != nil {
1625 return nil, err
1626 }
1627 if interceptor == nil {
1628 return srv.(NativeHWManagementServiceServer).SetLoggingEndpoint(ctx, in)
1629 }
1630 info := &grpc.UnaryServerInfo{
1631 Server: srv,
1632 FullMethod: "/dmi.NativeHWManagementService/SetLoggingEndpoint",
1633 }
1634 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1635 return srv.(NativeHWManagementServiceServer).SetLoggingEndpoint(ctx, req.(*SetLoggingEndpointRequest))
1636 }
1637 return interceptor(ctx, in, info, handler)
1638}
1639
1640func _NativeHWManagementService_GetLoggingEndpoint_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1641 in := new(Uuid)
1642 if err := dec(in); err != nil {
1643 return nil, err
1644 }
1645 if interceptor == nil {
1646 return srv.(NativeHWManagementServiceServer).GetLoggingEndpoint(ctx, in)
1647 }
1648 info := &grpc.UnaryServerInfo{
1649 Server: srv,
1650 FullMethod: "/dmi.NativeHWManagementService/GetLoggingEndpoint",
1651 }
1652 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1653 return srv.(NativeHWManagementServiceServer).GetLoggingEndpoint(ctx, req.(*Uuid))
1654 }
1655 return interceptor(ctx, in, info, handler)
1656}
1657
1658func _NativeHWManagementService_SetMsgBusEndpoint_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1659 in := new(SetMsgBusEndpointRequest)
1660 if err := dec(in); err != nil {
1661 return nil, err
1662 }
1663 if interceptor == nil {
1664 return srv.(NativeHWManagementServiceServer).SetMsgBusEndpoint(ctx, in)
1665 }
1666 info := &grpc.UnaryServerInfo{
1667 Server: srv,
1668 FullMethod: "/dmi.NativeHWManagementService/SetMsgBusEndpoint",
1669 }
1670 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1671 return srv.(NativeHWManagementServiceServer).SetMsgBusEndpoint(ctx, req.(*SetMsgBusEndpointRequest))
1672 }
1673 return interceptor(ctx, in, info, handler)
1674}
1675
1676func _NativeHWManagementService_GetMsgBusEndpoint_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1677 in := new(empty.Empty)
1678 if err := dec(in); err != nil {
1679 return nil, err
1680 }
1681 if interceptor == nil {
1682 return srv.(NativeHWManagementServiceServer).GetMsgBusEndpoint(ctx, in)
1683 }
1684 info := &grpc.UnaryServerInfo{
1685 Server: srv,
1686 FullMethod: "/dmi.NativeHWManagementService/GetMsgBusEndpoint",
1687 }
1688 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1689 return srv.(NativeHWManagementServiceServer).GetMsgBusEndpoint(ctx, req.(*empty.Empty))
1690 }
1691 return interceptor(ctx, in, info, handler)
1692}
1693
Andrea Campanellab91e9a42020-10-09 14:31:43 +02001694func _NativeHWManagementService_GetLoggableEntities_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1695 in := new(GetLoggableEntitiesRequest)
1696 if err := dec(in); err != nil {
1697 return nil, err
1698 }
1699 if interceptor == nil {
1700 return srv.(NativeHWManagementServiceServer).GetLoggableEntities(ctx, in)
1701 }
1702 info := &grpc.UnaryServerInfo{
1703 Server: srv,
1704 FullMethod: "/dmi.NativeHWManagementService/GetLoggableEntities",
1705 }
1706 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1707 return srv.(NativeHWManagementServiceServer).GetLoggableEntities(ctx, req.(*GetLoggableEntitiesRequest))
1708 }
1709 return interceptor(ctx, in, info, handler)
1710}
1711
1712func _NativeHWManagementService_SetLogLevel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1713 in := new(SetLogLevelRequest)
1714 if err := dec(in); err != nil {
1715 return nil, err
1716 }
1717 if interceptor == nil {
1718 return srv.(NativeHWManagementServiceServer).SetLogLevel(ctx, in)
1719 }
1720 info := &grpc.UnaryServerInfo{
1721 Server: srv,
1722 FullMethod: "/dmi.NativeHWManagementService/SetLogLevel",
1723 }
1724 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1725 return srv.(NativeHWManagementServiceServer).SetLogLevel(ctx, req.(*SetLogLevelRequest))
1726 }
1727 return interceptor(ctx, in, info, handler)
1728}
1729
1730func _NativeHWManagementService_GetLogLevel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1731 in := new(GetLogLevelRequest)
1732 if err := dec(in); err != nil {
1733 return nil, err
1734 }
1735 if interceptor == nil {
1736 return srv.(NativeHWManagementServiceServer).GetLogLevel(ctx, in)
1737 }
1738 info := &grpc.UnaryServerInfo{
1739 Server: srv,
1740 FullMethod: "/dmi.NativeHWManagementService/GetLogLevel",
1741 }
1742 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1743 return srv.(NativeHWManagementServiceServer).GetLogLevel(ctx, req.(*GetLogLevelRequest))
1744 }
1745 return interceptor(ctx, in, info, handler)
1746}
1747
Amit Ghosh09f28362020-06-12 21:52:19 +01001748var _NativeHWManagementService_serviceDesc = grpc.ServiceDesc{
1749 ServiceName: "dmi.NativeHWManagementService",
1750 HandlerType: (*NativeHWManagementServiceServer)(nil),
1751 Methods: []grpc.MethodDesc{
1752 {
Amit Ghosh366228e2020-07-06 13:46:42 +01001753 MethodName: "StopManagingDevice",
1754 Handler: _NativeHWManagementService_StopManagingDevice_Handler,
1755 },
1756 {
Andrea Campanellacb990bc2020-09-22 12:50:56 +02001757 MethodName: "GetManagedDevices",
1758 Handler: _NativeHWManagementService_GetManagedDevices_Handler,
1759 },
1760 {
Amit Ghosh09f28362020-06-12 21:52:19 +01001761 MethodName: "SetHWComponentInfo",
1762 Handler: _NativeHWManagementService_SetHWComponentInfo_Handler,
1763 },
amit.ghosh188a84f2020-09-27 20:59:25 +02001764 {
1765 MethodName: "SetLoggingEndpoint",
1766 Handler: _NativeHWManagementService_SetLoggingEndpoint_Handler,
1767 },
1768 {
1769 MethodName: "GetLoggingEndpoint",
1770 Handler: _NativeHWManagementService_GetLoggingEndpoint_Handler,
1771 },
1772 {
1773 MethodName: "SetMsgBusEndpoint",
1774 Handler: _NativeHWManagementService_SetMsgBusEndpoint_Handler,
1775 },
1776 {
1777 MethodName: "GetMsgBusEndpoint",
1778 Handler: _NativeHWManagementService_GetMsgBusEndpoint_Handler,
1779 },
Andrea Campanellab91e9a42020-10-09 14:31:43 +02001780 {
1781 MethodName: "GetLoggableEntities",
1782 Handler: _NativeHWManagementService_GetLoggableEntities_Handler,
1783 },
1784 {
1785 MethodName: "SetLogLevel",
1786 Handler: _NativeHWManagementService_SetLogLevel_Handler,
1787 },
1788 {
1789 MethodName: "GetLogLevel",
1790 Handler: _NativeHWManagementService_GetLogLevel_Handler,
1791 },
Amit Ghosh09f28362020-06-12 21:52:19 +01001792 },
1793 Streams: []grpc.StreamDesc{
1794 {
1795 StreamName: "StartManagingDevice",
1796 Handler: _NativeHWManagementService_StartManagingDevice_Handler,
1797 ServerStreams: true,
1798 },
1799 {
1800 StreamName: "GetPhysicalInventory",
1801 Handler: _NativeHWManagementService_GetPhysicalInventory_Handler,
1802 ServerStreams: true,
1803 },
1804 {
1805 StreamName: "GetHWComponentInfo",
1806 Handler: _NativeHWManagementService_GetHWComponentInfo_Handler,
1807 ServerStreams: true,
1808 },
1809 },
1810 Metadata: "dmi/hw_management_service.proto",
1811}