blob: b1aad29705b6305d3d9b65b02eb50265da2b3e7d [file] [log] [blame]
Amit Ghosh09f28362020-06-12 21:52:19 +01001// Code generated by protoc-gen-go. DO NOT EDIT.
2// source: dmi/sw_management_service.proto
3
4package dmi
5
6import (
7 context "context"
8 fmt "fmt"
9 proto "github.com/golang/protobuf/proto"
10 grpc "google.golang.org/grpc"
Andrea Campanellac795b7d2021-04-14 13:24:44 +020011 codes "google.golang.org/grpc/codes"
12 status "google.golang.org/grpc/status"
Amit Ghosh09f28362020-06-12 21:52:19 +010013 math "math"
14)
15
16// Reference imports to suppress errors if they are not otherwise used.
17var _ = proto.Marshal
18var _ = fmt.Errorf
19var _ = math.Inf
20
21// This is a compile-time assertion to ensure that this generated file
22// is compatible with the proto package it is being compiled against.
23// A compilation error at this line likely means your copy of the
24// proto package needs to be updated.
25const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
26
amit.ghoshae473032021-01-10 11:59:10 +010027type GetSoftwareVersionInformationResponse_Reason int32
28
29const (
amit.ghoshbd2022e2021-02-22 05:58:53 +010030 GetSoftwareVersionInformationResponse_UNDEFINED_REASON GetSoftwareVersionInformationResponse_Reason = 0
31 GetSoftwareVersionInformationResponse_UNKNOWN_DEVICE GetSoftwareVersionInformationResponse_Reason = 1
32 GetSoftwareVersionInformationResponse_INTERNAL_ERROR GetSoftwareVersionInformationResponse_Reason = 2
33 GetSoftwareVersionInformationResponse_DEVICE_UNREACHABLE GetSoftwareVersionInformationResponse_Reason = 3
amit.ghoshae473032021-01-10 11:59:10 +010034)
35
36var GetSoftwareVersionInformationResponse_Reason_name = map[int32]string{
37 0: "UNDEFINED_REASON",
38 1: "UNKNOWN_DEVICE",
39 2: "INTERNAL_ERROR",
amit.ghoshbd2022e2021-02-22 05:58:53 +010040 3: "DEVICE_UNREACHABLE",
amit.ghoshae473032021-01-10 11:59:10 +010041}
42
43var GetSoftwareVersionInformationResponse_Reason_value = map[string]int32{
amit.ghoshbd2022e2021-02-22 05:58:53 +010044 "UNDEFINED_REASON": 0,
45 "UNKNOWN_DEVICE": 1,
46 "INTERNAL_ERROR": 2,
47 "DEVICE_UNREACHABLE": 3,
amit.ghoshae473032021-01-10 11:59:10 +010048}
49
50func (x GetSoftwareVersionInformationResponse_Reason) String() string {
51 return proto.EnumName(GetSoftwareVersionInformationResponse_Reason_name, int32(x))
52}
53
54func (GetSoftwareVersionInformationResponse_Reason) EnumDescriptor() ([]byte, []int) {
55 return fileDescriptor_000929e4bec891d7, []int{1, 0}
56}
57
58type ConfigResponse_Reason int32
59
60const (
61 ConfigResponse_UNDEFINED_REASON ConfigResponse_Reason = 0
62 ConfigResponse_UNKNOWN_DEVICE ConfigResponse_Reason = 1
63 ConfigResponse_INTERNAL_ERROR ConfigResponse_Reason = 2
64 ConfigResponse_ERROR_FETCHING_CONFIG ConfigResponse_Reason = 3
65 ConfigResponse_INVALID_CONFIG ConfigResponse_Reason = 4
66 ConfigResponse_OPERATION_ALREADY_IN_PROGRESS ConfigResponse_Reason = 5
amit.ghoshbd2022e2021-02-22 05:58:53 +010067 ConfigResponse_DEVICE_UNREACHABLE ConfigResponse_Reason = 6
amit.ghoshae473032021-01-10 11:59:10 +010068)
69
70var ConfigResponse_Reason_name = map[int32]string{
71 0: "UNDEFINED_REASON",
72 1: "UNKNOWN_DEVICE",
73 2: "INTERNAL_ERROR",
74 3: "ERROR_FETCHING_CONFIG",
75 4: "INVALID_CONFIG",
76 5: "OPERATION_ALREADY_IN_PROGRESS",
amit.ghoshbd2022e2021-02-22 05:58:53 +010077 6: "DEVICE_UNREACHABLE",
amit.ghoshae473032021-01-10 11:59:10 +010078}
79
80var ConfigResponse_Reason_value = map[string]int32{
81 "UNDEFINED_REASON": 0,
82 "UNKNOWN_DEVICE": 1,
83 "INTERNAL_ERROR": 2,
84 "ERROR_FETCHING_CONFIG": 3,
85 "INVALID_CONFIG": 4,
86 "OPERATION_ALREADY_IN_PROGRESS": 5,
amit.ghoshbd2022e2021-02-22 05:58:53 +010087 "DEVICE_UNREACHABLE": 6,
amit.ghoshae473032021-01-10 11:59:10 +010088}
89
90func (x ConfigResponse_Reason) String() string {
91 return proto.EnumName(ConfigResponse_Reason_name, int32(x))
92}
93
94func (ConfigResponse_Reason) EnumDescriptor() ([]byte, []int) {
95 return fileDescriptor_000929e4bec891d7, []int{4, 0}
96}
97
amit.ghosh2c938b82021-01-14 11:34:03 +010098type StartupConfigInfoResponse_Reason int32
99
100const (
amit.ghoshbd2022e2021-02-22 05:58:53 +0100101 StartupConfigInfoResponse_UNDEFINED_REASON StartupConfigInfoResponse_Reason = 0
102 StartupConfigInfoResponse_UNKNOWN_DEVICE StartupConfigInfoResponse_Reason = 1
103 StartupConfigInfoResponse_INTERNAL_ERROR StartupConfigInfoResponse_Reason = 2
104 StartupConfigInfoResponse_DEVICE_UNREACHABLE StartupConfigInfoResponse_Reason = 3
amit.ghosh2c938b82021-01-14 11:34:03 +0100105)
106
107var StartupConfigInfoResponse_Reason_name = map[int32]string{
108 0: "UNDEFINED_REASON",
109 1: "UNKNOWN_DEVICE",
110 2: "INTERNAL_ERROR",
amit.ghoshbd2022e2021-02-22 05:58:53 +0100111 3: "DEVICE_UNREACHABLE",
amit.ghosh2c938b82021-01-14 11:34:03 +0100112}
113
114var StartupConfigInfoResponse_Reason_value = map[string]int32{
amit.ghoshbd2022e2021-02-22 05:58:53 +0100115 "UNDEFINED_REASON": 0,
116 "UNKNOWN_DEVICE": 1,
117 "INTERNAL_ERROR": 2,
118 "DEVICE_UNREACHABLE": 3,
amit.ghosh2c938b82021-01-14 11:34:03 +0100119}
120
121func (x StartupConfigInfoResponse_Reason) String() string {
122 return proto.EnumName(StartupConfigInfoResponse_Reason_name, int32(x))
123}
124
125func (StartupConfigInfoResponse_Reason) EnumDescriptor() ([]byte, []int) {
126 return fileDescriptor_000929e4bec891d7, []int{6, 0}
127}
128
amit.ghosh5a689802022-09-12 14:26:10 +0200129type UploadDebugInfoStatus_UploadStatus int32
130
131const (
132 UploadDebugInfoStatus_UNDEFINED_UPLOAD_STATUS UploadDebugInfoStatus_UploadStatus = 0
133 UploadDebugInfoStatus_COMPLETE UploadDebugInfoStatus_UploadStatus = 1
134 UploadDebugInfoStatus_IN_PROGRESS UploadDebugInfoStatus_UploadStatus = 2
135 UploadDebugInfoStatus_ERROR UploadDebugInfoStatus_UploadStatus = 3
136)
137
138var UploadDebugInfoStatus_UploadStatus_name = map[int32]string{
139 0: "UNDEFINED_UPLOAD_STATUS",
140 1: "COMPLETE",
141 2: "IN_PROGRESS",
142 3: "ERROR",
143}
144
145var UploadDebugInfoStatus_UploadStatus_value = map[string]int32{
146 "UNDEFINED_UPLOAD_STATUS": 0,
147 "COMPLETE": 1,
148 "IN_PROGRESS": 2,
149 "ERROR": 3,
150}
151
152func (x UploadDebugInfoStatus_UploadStatus) String() string {
153 return proto.EnumName(UploadDebugInfoStatus_UploadStatus_name, int32(x))
154}
155
156func (UploadDebugInfoStatus_UploadStatus) EnumDescriptor() ([]byte, []int) {
157 return fileDescriptor_000929e4bec891d7, []int{8, 0}
158}
159
160type UploadDebugInfoStatus_Reason int32
161
162const (
163 UploadDebugInfoStatus_UNDEFINED_REASON UploadDebugInfoStatus_Reason = 0
164 UploadDebugInfoStatus_UNKNOWN_DEVICE UploadDebugInfoStatus_Reason = 1
165 UploadDebugInfoStatus_INTERNAL_ERROR UploadDebugInfoStatus_Reason = 2
166 UploadDebugInfoStatus_DEVICE_UNREACHABLE UploadDebugInfoStatus_Reason = 3
167 UploadDebugInfoStatus_REMOTE_LOCATION_UNREACHABLE UploadDebugInfoStatus_Reason = 4
168 UploadDebugInfoStatus_REMOTE_LOCATION_PERMISSION_DENIED UploadDebugInfoStatus_Reason = 5
169 UploadDebugInfoStatus_ERROR_DURING_UPLOAD UploadDebugInfoStatus_Reason = 6
amit.ghosh4d731da2023-03-07 14:32:00 +0100170 UploadDebugInfoStatus_DEVICE_BUSY UploadDebugInfoStatus_Reason = 7
amit.ghosh5a689802022-09-12 14:26:10 +0200171)
172
173var UploadDebugInfoStatus_Reason_name = map[int32]string{
174 0: "UNDEFINED_REASON",
175 1: "UNKNOWN_DEVICE",
176 2: "INTERNAL_ERROR",
177 3: "DEVICE_UNREACHABLE",
178 4: "REMOTE_LOCATION_UNREACHABLE",
179 5: "REMOTE_LOCATION_PERMISSION_DENIED",
180 6: "ERROR_DURING_UPLOAD",
amit.ghosh4d731da2023-03-07 14:32:00 +0100181 7: "DEVICE_BUSY",
amit.ghosh5a689802022-09-12 14:26:10 +0200182}
183
184var UploadDebugInfoStatus_Reason_value = map[string]int32{
185 "UNDEFINED_REASON": 0,
186 "UNKNOWN_DEVICE": 1,
187 "INTERNAL_ERROR": 2,
188 "DEVICE_UNREACHABLE": 3,
189 "REMOTE_LOCATION_UNREACHABLE": 4,
190 "REMOTE_LOCATION_PERMISSION_DENIED": 5,
191 "ERROR_DURING_UPLOAD": 6,
amit.ghosh4d731da2023-03-07 14:32:00 +0100192 "DEVICE_BUSY": 7,
amit.ghosh5a689802022-09-12 14:26:10 +0200193}
194
195func (x UploadDebugInfoStatus_Reason) String() string {
196 return proto.EnumName(UploadDebugInfoStatus_Reason_name, int32(x))
197}
198
199func (UploadDebugInfoStatus_Reason) EnumDescriptor() ([]byte, []int) {
200 return fileDescriptor_000929e4bec891d7, []int{8, 1}
201}
202
Amit Ghosh09f28362020-06-12 21:52:19 +0100203type SoftwareVersionInformation struct {
204 ActiveVersions []*ImageVersion `protobuf:"bytes,1,rep,name=active_versions,json=activeVersions,proto3" json:"active_versions,omitempty"`
205 StandbyVersions []*ImageVersion `protobuf:"bytes,2,rep,name=standby_versions,json=standbyVersions,proto3" json:"standby_versions,omitempty"`
206 XXX_NoUnkeyedLiteral struct{} `json:"-"`
207 XXX_unrecognized []byte `json:"-"`
208 XXX_sizecache int32 `json:"-"`
209}
210
211func (m *SoftwareVersionInformation) Reset() { *m = SoftwareVersionInformation{} }
212func (m *SoftwareVersionInformation) String() string { return proto.CompactTextString(m) }
213func (*SoftwareVersionInformation) ProtoMessage() {}
214func (*SoftwareVersionInformation) Descriptor() ([]byte, []int) {
215 return fileDescriptor_000929e4bec891d7, []int{0}
216}
217
218func (m *SoftwareVersionInformation) XXX_Unmarshal(b []byte) error {
219 return xxx_messageInfo_SoftwareVersionInformation.Unmarshal(m, b)
220}
221func (m *SoftwareVersionInformation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
222 return xxx_messageInfo_SoftwareVersionInformation.Marshal(b, m, deterministic)
223}
224func (m *SoftwareVersionInformation) XXX_Merge(src proto.Message) {
225 xxx_messageInfo_SoftwareVersionInformation.Merge(m, src)
226}
227func (m *SoftwareVersionInformation) XXX_Size() int {
228 return xxx_messageInfo_SoftwareVersionInformation.Size(m)
229}
230func (m *SoftwareVersionInformation) XXX_DiscardUnknown() {
231 xxx_messageInfo_SoftwareVersionInformation.DiscardUnknown(m)
232}
233
234var xxx_messageInfo_SoftwareVersionInformation proto.InternalMessageInfo
235
236func (m *SoftwareVersionInformation) GetActiveVersions() []*ImageVersion {
237 if m != nil {
238 return m.ActiveVersions
239 }
240 return nil
241}
242
243func (m *SoftwareVersionInformation) GetStandbyVersions() []*ImageVersion {
244 if m != nil {
245 return m.StandbyVersions
246 }
247 return nil
248}
249
aghoshc301dcd2020-09-03 16:55:34 +0100250type GetSoftwareVersionInformationResponse struct {
amit.ghoshae473032021-01-10 11:59:10 +0100251 Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=dmi.Status" json:"status,omitempty"`
252 Reason GetSoftwareVersionInformationResponse_Reason `protobuf:"varint,2,opt,name=reason,proto3,enum=dmi.GetSoftwareVersionInformationResponse_Reason" json:"reason,omitempty"`
253 Info *SoftwareVersionInformation `protobuf:"bytes,3,opt,name=info,proto3" json:"info,omitempty"`
amit.ghosh8ab1e6e2021-02-23 07:40:17 +0100254 ReasonDetail string `protobuf:"bytes,4,opt,name=reason_detail,json=reasonDetail,proto3" json:"reason_detail,omitempty"`
amit.ghoshae473032021-01-10 11:59:10 +0100255 XXX_NoUnkeyedLiteral struct{} `json:"-"`
256 XXX_unrecognized []byte `json:"-"`
257 XXX_sizecache int32 `json:"-"`
aghoshc301dcd2020-09-03 16:55:34 +0100258}
259
260func (m *GetSoftwareVersionInformationResponse) Reset() { *m = GetSoftwareVersionInformationResponse{} }
261func (m *GetSoftwareVersionInformationResponse) String() string { return proto.CompactTextString(m) }
262func (*GetSoftwareVersionInformationResponse) ProtoMessage() {}
263func (*GetSoftwareVersionInformationResponse) Descriptor() ([]byte, []int) {
264 return fileDescriptor_000929e4bec891d7, []int{1}
265}
266
267func (m *GetSoftwareVersionInformationResponse) XXX_Unmarshal(b []byte) error {
268 return xxx_messageInfo_GetSoftwareVersionInformationResponse.Unmarshal(m, b)
269}
270func (m *GetSoftwareVersionInformationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
271 return xxx_messageInfo_GetSoftwareVersionInformationResponse.Marshal(b, m, deterministic)
272}
273func (m *GetSoftwareVersionInformationResponse) XXX_Merge(src proto.Message) {
274 xxx_messageInfo_GetSoftwareVersionInformationResponse.Merge(m, src)
275}
276func (m *GetSoftwareVersionInformationResponse) XXX_Size() int {
277 return xxx_messageInfo_GetSoftwareVersionInformationResponse.Size(m)
278}
279func (m *GetSoftwareVersionInformationResponse) XXX_DiscardUnknown() {
280 xxx_messageInfo_GetSoftwareVersionInformationResponse.DiscardUnknown(m)
281}
282
283var xxx_messageInfo_GetSoftwareVersionInformationResponse proto.InternalMessageInfo
284
285func (m *GetSoftwareVersionInformationResponse) GetStatus() Status {
286 if m != nil {
287 return m.Status
288 }
289 return Status_UNDEFINED_STATUS
290}
291
amit.ghoshae473032021-01-10 11:59:10 +0100292func (m *GetSoftwareVersionInformationResponse) GetReason() GetSoftwareVersionInformationResponse_Reason {
aghoshc301dcd2020-09-03 16:55:34 +0100293 if m != nil {
294 return m.Reason
295 }
amit.ghoshae473032021-01-10 11:59:10 +0100296 return GetSoftwareVersionInformationResponse_UNDEFINED_REASON
aghoshc301dcd2020-09-03 16:55:34 +0100297}
298
299func (m *GetSoftwareVersionInformationResponse) GetInfo() *SoftwareVersionInformation {
300 if m != nil {
301 return m.Info
302 }
303 return nil
304}
305
amit.ghosh8ab1e6e2021-02-23 07:40:17 +0100306func (m *GetSoftwareVersionInformationResponse) GetReasonDetail() string {
307 if m != nil {
308 return m.ReasonDetail
309 }
310 return ""
311}
312
Amit Ghosh09f28362020-06-12 21:52:19 +0100313type DownloadImageRequest struct {
314 DeviceUuid *Uuid `protobuf:"bytes,1,opt,name=device_uuid,json=deviceUuid,proto3" json:"device_uuid,omitempty"`
315 ImageInfo *ImageInformation `protobuf:"bytes,2,opt,name=image_info,json=imageInfo,proto3" json:"image_info,omitempty"`
316 XXX_NoUnkeyedLiteral struct{} `json:"-"`
317 XXX_unrecognized []byte `json:"-"`
318 XXX_sizecache int32 `json:"-"`
319}
320
321func (m *DownloadImageRequest) Reset() { *m = DownloadImageRequest{} }
322func (m *DownloadImageRequest) String() string { return proto.CompactTextString(m) }
323func (*DownloadImageRequest) ProtoMessage() {}
324func (*DownloadImageRequest) Descriptor() ([]byte, []int) {
aghoshc301dcd2020-09-03 16:55:34 +0100325 return fileDescriptor_000929e4bec891d7, []int{2}
Amit Ghosh09f28362020-06-12 21:52:19 +0100326}
327
328func (m *DownloadImageRequest) XXX_Unmarshal(b []byte) error {
329 return xxx_messageInfo_DownloadImageRequest.Unmarshal(m, b)
330}
331func (m *DownloadImageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
332 return xxx_messageInfo_DownloadImageRequest.Marshal(b, m, deterministic)
333}
334func (m *DownloadImageRequest) XXX_Merge(src proto.Message) {
335 xxx_messageInfo_DownloadImageRequest.Merge(m, src)
336}
337func (m *DownloadImageRequest) XXX_Size() int {
338 return xxx_messageInfo_DownloadImageRequest.Size(m)
339}
340func (m *DownloadImageRequest) XXX_DiscardUnknown() {
341 xxx_messageInfo_DownloadImageRequest.DiscardUnknown(m)
342}
343
344var xxx_messageInfo_DownloadImageRequest proto.InternalMessageInfo
345
346func (m *DownloadImageRequest) GetDeviceUuid() *Uuid {
347 if m != nil {
348 return m.DeviceUuid
349 }
350 return nil
351}
352
353func (m *DownloadImageRequest) GetImageInfo() *ImageInformation {
354 if m != nil {
355 return m.ImageInfo
356 }
357 return nil
358}
359
amit.ghoshed23db02020-11-18 10:26:36 +0100360type ConfigRequest struct {
361 DeviceUuid *Uuid `protobuf:"bytes,1,opt,name=device_uuid,json=deviceUuid,proto3" json:"device_uuid,omitempty"`
362 // Location of the configuration file, authentication (user/pass) if any should be in the url string
363 // The config_url would contain the protocol, credentials, the IP address/DNS of the server and the path of the file
364 // e.g. sftp://download_user:download_pass@192.168.0.1:22/OLT-configs/config-v1.2.3.xml
365 ConfigUrl string `protobuf:"bytes,2,opt,name=config_url,json=configUrl,proto3" json:"config_url,omitempty"`
366 XXX_NoUnkeyedLiteral struct{} `json:"-"`
367 XXX_unrecognized []byte `json:"-"`
368 XXX_sizecache int32 `json:"-"`
369}
370
371func (m *ConfigRequest) Reset() { *m = ConfigRequest{} }
372func (m *ConfigRequest) String() string { return proto.CompactTextString(m) }
373func (*ConfigRequest) ProtoMessage() {}
374func (*ConfigRequest) Descriptor() ([]byte, []int) {
375 return fileDescriptor_000929e4bec891d7, []int{3}
376}
377
378func (m *ConfigRequest) XXX_Unmarshal(b []byte) error {
379 return xxx_messageInfo_ConfigRequest.Unmarshal(m, b)
380}
381func (m *ConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
382 return xxx_messageInfo_ConfigRequest.Marshal(b, m, deterministic)
383}
384func (m *ConfigRequest) XXX_Merge(src proto.Message) {
385 xxx_messageInfo_ConfigRequest.Merge(m, src)
386}
387func (m *ConfigRequest) XXX_Size() int {
388 return xxx_messageInfo_ConfigRequest.Size(m)
389}
390func (m *ConfigRequest) XXX_DiscardUnknown() {
391 xxx_messageInfo_ConfigRequest.DiscardUnknown(m)
392}
393
394var xxx_messageInfo_ConfigRequest proto.InternalMessageInfo
395
396func (m *ConfigRequest) GetDeviceUuid() *Uuid {
397 if m != nil {
398 return m.DeviceUuid
399 }
400 return nil
401}
402
403func (m *ConfigRequest) GetConfigUrl() string {
404 if m != nil {
405 return m.ConfigUrl
406 }
407 return ""
408}
409
410type ConfigResponse struct {
amit.ghoshae473032021-01-10 11:59:10 +0100411 Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=dmi.Status" json:"status,omitempty"`
412 Reason ConfigResponse_Reason `protobuf:"varint,2,opt,name=reason,proto3,enum=dmi.ConfigResponse_Reason" json:"reason,omitempty"`
amit.ghosh8ab1e6e2021-02-23 07:40:17 +0100413 ReasonDetail string `protobuf:"bytes,3,opt,name=reason_detail,json=reasonDetail,proto3" json:"reason_detail,omitempty"`
amit.ghoshae473032021-01-10 11:59:10 +0100414 XXX_NoUnkeyedLiteral struct{} `json:"-"`
415 XXX_unrecognized []byte `json:"-"`
416 XXX_sizecache int32 `json:"-"`
amit.ghoshed23db02020-11-18 10:26:36 +0100417}
418
419func (m *ConfigResponse) Reset() { *m = ConfigResponse{} }
420func (m *ConfigResponse) String() string { return proto.CompactTextString(m) }
421func (*ConfigResponse) ProtoMessage() {}
422func (*ConfigResponse) Descriptor() ([]byte, []int) {
423 return fileDescriptor_000929e4bec891d7, []int{4}
424}
425
426func (m *ConfigResponse) XXX_Unmarshal(b []byte) error {
427 return xxx_messageInfo_ConfigResponse.Unmarshal(m, b)
428}
429func (m *ConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
430 return xxx_messageInfo_ConfigResponse.Marshal(b, m, deterministic)
431}
432func (m *ConfigResponse) XXX_Merge(src proto.Message) {
433 xxx_messageInfo_ConfigResponse.Merge(m, src)
434}
435func (m *ConfigResponse) XXX_Size() int {
436 return xxx_messageInfo_ConfigResponse.Size(m)
437}
438func (m *ConfigResponse) XXX_DiscardUnknown() {
439 xxx_messageInfo_ConfigResponse.DiscardUnknown(m)
440}
441
442var xxx_messageInfo_ConfigResponse proto.InternalMessageInfo
443
444func (m *ConfigResponse) GetStatus() Status {
445 if m != nil {
446 return m.Status
447 }
448 return Status_UNDEFINED_STATUS
449}
450
amit.ghoshae473032021-01-10 11:59:10 +0100451func (m *ConfigResponse) GetReason() ConfigResponse_Reason {
amit.ghoshed23db02020-11-18 10:26:36 +0100452 if m != nil {
453 return m.Reason
454 }
amit.ghoshae473032021-01-10 11:59:10 +0100455 return ConfigResponse_UNDEFINED_REASON
amit.ghoshed23db02020-11-18 10:26:36 +0100456}
457
amit.ghosh8ab1e6e2021-02-23 07:40:17 +0100458func (m *ConfigResponse) GetReasonDetail() string {
459 if m != nil {
460 return m.ReasonDetail
461 }
462 return ""
463}
464
amit.ghosh2c938b82021-01-14 11:34:03 +0100465type StartupConfigInfoRequest struct {
466 DeviceUuid *Uuid `protobuf:"bytes,1,opt,name=device_uuid,json=deviceUuid,proto3" json:"device_uuid,omitempty"`
467 XXX_NoUnkeyedLiteral struct{} `json:"-"`
468 XXX_unrecognized []byte `json:"-"`
469 XXX_sizecache int32 `json:"-"`
470}
471
472func (m *StartupConfigInfoRequest) Reset() { *m = StartupConfigInfoRequest{} }
473func (m *StartupConfigInfoRequest) String() string { return proto.CompactTextString(m) }
474func (*StartupConfigInfoRequest) ProtoMessage() {}
475func (*StartupConfigInfoRequest) Descriptor() ([]byte, []int) {
476 return fileDescriptor_000929e4bec891d7, []int{5}
477}
478
479func (m *StartupConfigInfoRequest) XXX_Unmarshal(b []byte) error {
480 return xxx_messageInfo_StartupConfigInfoRequest.Unmarshal(m, b)
481}
482func (m *StartupConfigInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
483 return xxx_messageInfo_StartupConfigInfoRequest.Marshal(b, m, deterministic)
484}
485func (m *StartupConfigInfoRequest) XXX_Merge(src proto.Message) {
486 xxx_messageInfo_StartupConfigInfoRequest.Merge(m, src)
487}
488func (m *StartupConfigInfoRequest) XXX_Size() int {
489 return xxx_messageInfo_StartupConfigInfoRequest.Size(m)
490}
491func (m *StartupConfigInfoRequest) XXX_DiscardUnknown() {
492 xxx_messageInfo_StartupConfigInfoRequest.DiscardUnknown(m)
493}
494
495var xxx_messageInfo_StartupConfigInfoRequest proto.InternalMessageInfo
496
497func (m *StartupConfigInfoRequest) GetDeviceUuid() *Uuid {
498 if m != nil {
499 return m.DeviceUuid
500 }
501 return nil
502}
503
504type StartupConfigInfoResponse struct {
505 Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=dmi.Status" json:"status,omitempty"`
506 Reason StartupConfigInfoResponse_Reason `protobuf:"varint,2,opt,name=reason,proto3,enum=dmi.StartupConfigInfoResponse_Reason" json:"reason,omitempty"`
507 // The config_url is an optional attribute, the device manager could return the location from
508 // where the config was downloaded. Also it would not be present/empty for a fresh device into which the
509 // startup config would have been installed in the factory.
510 ConfigUrl string `protobuf:"bytes,3,opt,name=config_url,json=configUrl,proto3" json:"config_url,omitempty"`
511 // The version of the startup configuration. It is recommended to use semVer, but the DM implementations
512 // and operators could choose any other format as well.
513 Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"`
amit.ghosh8ab1e6e2021-02-23 07:40:17 +0100514 ReasonDetail string `protobuf:"bytes,5,opt,name=reason_detail,json=reasonDetail,proto3" json:"reason_detail,omitempty"`
amit.ghosh2c938b82021-01-14 11:34:03 +0100515 XXX_NoUnkeyedLiteral struct{} `json:"-"`
516 XXX_unrecognized []byte `json:"-"`
517 XXX_sizecache int32 `json:"-"`
518}
519
520func (m *StartupConfigInfoResponse) Reset() { *m = StartupConfigInfoResponse{} }
521func (m *StartupConfigInfoResponse) String() string { return proto.CompactTextString(m) }
522func (*StartupConfigInfoResponse) ProtoMessage() {}
523func (*StartupConfigInfoResponse) Descriptor() ([]byte, []int) {
524 return fileDescriptor_000929e4bec891d7, []int{6}
525}
526
527func (m *StartupConfigInfoResponse) XXX_Unmarshal(b []byte) error {
528 return xxx_messageInfo_StartupConfigInfoResponse.Unmarshal(m, b)
529}
530func (m *StartupConfigInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
531 return xxx_messageInfo_StartupConfigInfoResponse.Marshal(b, m, deterministic)
532}
533func (m *StartupConfigInfoResponse) XXX_Merge(src proto.Message) {
534 xxx_messageInfo_StartupConfigInfoResponse.Merge(m, src)
535}
536func (m *StartupConfigInfoResponse) XXX_Size() int {
537 return xxx_messageInfo_StartupConfigInfoResponse.Size(m)
538}
539func (m *StartupConfigInfoResponse) XXX_DiscardUnknown() {
540 xxx_messageInfo_StartupConfigInfoResponse.DiscardUnknown(m)
541}
542
543var xxx_messageInfo_StartupConfigInfoResponse proto.InternalMessageInfo
544
545func (m *StartupConfigInfoResponse) GetStatus() Status {
546 if m != nil {
547 return m.Status
548 }
549 return Status_UNDEFINED_STATUS
550}
551
552func (m *StartupConfigInfoResponse) GetReason() StartupConfigInfoResponse_Reason {
553 if m != nil {
554 return m.Reason
555 }
556 return StartupConfigInfoResponse_UNDEFINED_REASON
557}
558
559func (m *StartupConfigInfoResponse) GetConfigUrl() string {
560 if m != nil {
561 return m.ConfigUrl
562 }
563 return ""
564}
565
566func (m *StartupConfigInfoResponse) GetVersion() string {
567 if m != nil {
568 return m.Version
569 }
570 return ""
571}
572
amit.ghosh8ab1e6e2021-02-23 07:40:17 +0100573func (m *StartupConfigInfoResponse) GetReasonDetail() string {
574 if m != nil {
575 return m.ReasonDetail
576 }
577 return ""
578}
579
amit.ghosh5a689802022-09-12 14:26:10 +0200580type UploadDebugInfoRequest struct {
581 DeviceUuid *Uuid `protobuf:"bytes,1,opt,name=device_uuid,json=deviceUuid,proto3" json:"device_uuid,omitempty"`
582 // location_url is the remote location where the information needed for troubleshooting should be uploaded.
583 // Authentication (user/pass) if any should be in the location_url string
584 // The locaion_url would contain the protocol, credentials, the IP address/DNS of the server and the path of the directory
585 // e.g. sftp://upload_user:upload_pass@192.168.0.1:22/hw_debug_info/
586 LocationUrl string `protobuf:"bytes,3,opt,name=location_url,json=locationUrl,proto3" json:"location_url,omitempty"`
587 XXX_NoUnkeyedLiteral struct{} `json:"-"`
588 XXX_unrecognized []byte `json:"-"`
589 XXX_sizecache int32 `json:"-"`
590}
591
592func (m *UploadDebugInfoRequest) Reset() { *m = UploadDebugInfoRequest{} }
593func (m *UploadDebugInfoRequest) String() string { return proto.CompactTextString(m) }
594func (*UploadDebugInfoRequest) ProtoMessage() {}
595func (*UploadDebugInfoRequest) Descriptor() ([]byte, []int) {
596 return fileDescriptor_000929e4bec891d7, []int{7}
597}
598
599func (m *UploadDebugInfoRequest) XXX_Unmarshal(b []byte) error {
600 return xxx_messageInfo_UploadDebugInfoRequest.Unmarshal(m, b)
601}
602func (m *UploadDebugInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
603 return xxx_messageInfo_UploadDebugInfoRequest.Marshal(b, m, deterministic)
604}
605func (m *UploadDebugInfoRequest) XXX_Merge(src proto.Message) {
606 xxx_messageInfo_UploadDebugInfoRequest.Merge(m, src)
607}
608func (m *UploadDebugInfoRequest) XXX_Size() int {
609 return xxx_messageInfo_UploadDebugInfoRequest.Size(m)
610}
611func (m *UploadDebugInfoRequest) XXX_DiscardUnknown() {
612 xxx_messageInfo_UploadDebugInfoRequest.DiscardUnknown(m)
613}
614
615var xxx_messageInfo_UploadDebugInfoRequest proto.InternalMessageInfo
616
617func (m *UploadDebugInfoRequest) GetDeviceUuid() *Uuid {
618 if m != nil {
619 return m.DeviceUuid
620 }
621 return nil
622}
623
624func (m *UploadDebugInfoRequest) GetLocationUrl() string {
625 if m != nil {
626 return m.LocationUrl
627 }
628 return ""
629}
630
631// Implementations would be expected to stream multiple UploadDebugInfoStatus indicating the progress of the upload
632type UploadDebugInfoStatus struct {
633 DeviceUuid *Uuid `protobuf:"bytes,1,opt,name=device_uuid,json=deviceUuid,proto3" json:"device_uuid,omitempty"`
634 Status UploadDebugInfoStatus_UploadStatus `protobuf:"varint,2,opt,name=status,proto3,enum=dmi.UploadDebugInfoStatus_UploadStatus" json:"status,omitempty"`
635 // percent_uploaded is the percentage of the upload that is done
636 // should be a value between 0 and 100 when status is IN_PROGRESS
637 // should be 100 when status is COMPLETE
638 // can be set to -1 if the device manager implementations cannot support
639 // the progress percentage
640 PercentUploaded int32 `protobuf:"varint,3,opt,name=percent_uploaded,json=percentUploaded,proto3" json:"percent_uploaded,omitempty"`
641 Reason UploadDebugInfoStatus_Reason `protobuf:"varint,4,opt,name=reason,proto3,enum=dmi.UploadDebugInfoStatus_Reason" json:"reason,omitempty"`
642 LocationUrl string `protobuf:"bytes,5,opt,name=location_url,json=locationUrl,proto3" json:"location_url,omitempty"`
643 // file_name is the file at location_url where the debug information was uploaded.
644 // Implementations need to ensure that file_name is unique at the remote location.
645 FileName string `protobuf:"bytes,6,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"`
646 XXX_NoUnkeyedLiteral struct{} `json:"-"`
647 XXX_unrecognized []byte `json:"-"`
648 XXX_sizecache int32 `json:"-"`
649}
650
651func (m *UploadDebugInfoStatus) Reset() { *m = UploadDebugInfoStatus{} }
652func (m *UploadDebugInfoStatus) String() string { return proto.CompactTextString(m) }
653func (*UploadDebugInfoStatus) ProtoMessage() {}
654func (*UploadDebugInfoStatus) Descriptor() ([]byte, []int) {
655 return fileDescriptor_000929e4bec891d7, []int{8}
656}
657
658func (m *UploadDebugInfoStatus) XXX_Unmarshal(b []byte) error {
659 return xxx_messageInfo_UploadDebugInfoStatus.Unmarshal(m, b)
660}
661func (m *UploadDebugInfoStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
662 return xxx_messageInfo_UploadDebugInfoStatus.Marshal(b, m, deterministic)
663}
664func (m *UploadDebugInfoStatus) XXX_Merge(src proto.Message) {
665 xxx_messageInfo_UploadDebugInfoStatus.Merge(m, src)
666}
667func (m *UploadDebugInfoStatus) XXX_Size() int {
668 return xxx_messageInfo_UploadDebugInfoStatus.Size(m)
669}
670func (m *UploadDebugInfoStatus) XXX_DiscardUnknown() {
671 xxx_messageInfo_UploadDebugInfoStatus.DiscardUnknown(m)
672}
673
674var xxx_messageInfo_UploadDebugInfoStatus proto.InternalMessageInfo
675
676func (m *UploadDebugInfoStatus) GetDeviceUuid() *Uuid {
677 if m != nil {
678 return m.DeviceUuid
679 }
680 return nil
681}
682
683func (m *UploadDebugInfoStatus) GetStatus() UploadDebugInfoStatus_UploadStatus {
684 if m != nil {
685 return m.Status
686 }
687 return UploadDebugInfoStatus_UNDEFINED_UPLOAD_STATUS
688}
689
690func (m *UploadDebugInfoStatus) GetPercentUploaded() int32 {
691 if m != nil {
692 return m.PercentUploaded
693 }
694 return 0
695}
696
697func (m *UploadDebugInfoStatus) GetReason() UploadDebugInfoStatus_Reason {
698 if m != nil {
699 return m.Reason
700 }
701 return UploadDebugInfoStatus_UNDEFINED_REASON
702}
703
704func (m *UploadDebugInfoStatus) GetLocationUrl() string {
705 if m != nil {
706 return m.LocationUrl
707 }
708 return ""
709}
710
711func (m *UploadDebugInfoStatus) GetFileName() string {
712 if m != nil {
713 return m.FileName
714 }
715 return ""
716}
717
Amit Ghosh09f28362020-06-12 21:52:19 +0100718func init() {
amit.ghoshae473032021-01-10 11:59:10 +0100719 proto.RegisterEnum("dmi.GetSoftwareVersionInformationResponse_Reason", GetSoftwareVersionInformationResponse_Reason_name, GetSoftwareVersionInformationResponse_Reason_value)
720 proto.RegisterEnum("dmi.ConfigResponse_Reason", ConfigResponse_Reason_name, ConfigResponse_Reason_value)
amit.ghosh2c938b82021-01-14 11:34:03 +0100721 proto.RegisterEnum("dmi.StartupConfigInfoResponse_Reason", StartupConfigInfoResponse_Reason_name, StartupConfigInfoResponse_Reason_value)
amit.ghosh5a689802022-09-12 14:26:10 +0200722 proto.RegisterEnum("dmi.UploadDebugInfoStatus_UploadStatus", UploadDebugInfoStatus_UploadStatus_name, UploadDebugInfoStatus_UploadStatus_value)
723 proto.RegisterEnum("dmi.UploadDebugInfoStatus_Reason", UploadDebugInfoStatus_Reason_name, UploadDebugInfoStatus_Reason_value)
Amit Ghosh09f28362020-06-12 21:52:19 +0100724 proto.RegisterType((*SoftwareVersionInformation)(nil), "dmi.SoftwareVersionInformation")
aghoshc301dcd2020-09-03 16:55:34 +0100725 proto.RegisterType((*GetSoftwareVersionInformationResponse)(nil), "dmi.GetSoftwareVersionInformationResponse")
Amit Ghosh09f28362020-06-12 21:52:19 +0100726 proto.RegisterType((*DownloadImageRequest)(nil), "dmi.DownloadImageRequest")
amit.ghoshed23db02020-11-18 10:26:36 +0100727 proto.RegisterType((*ConfigRequest)(nil), "dmi.ConfigRequest")
728 proto.RegisterType((*ConfigResponse)(nil), "dmi.ConfigResponse")
amit.ghosh2c938b82021-01-14 11:34:03 +0100729 proto.RegisterType((*StartupConfigInfoRequest)(nil), "dmi.StartupConfigInfoRequest")
730 proto.RegisterType((*StartupConfigInfoResponse)(nil), "dmi.StartupConfigInfoResponse")
amit.ghosh5a689802022-09-12 14:26:10 +0200731 proto.RegisterType((*UploadDebugInfoRequest)(nil), "dmi.UploadDebugInfoRequest")
732 proto.RegisterType((*UploadDebugInfoStatus)(nil), "dmi.UploadDebugInfoStatus")
Amit Ghosh09f28362020-06-12 21:52:19 +0100733}
734
735func init() { proto.RegisterFile("dmi/sw_management_service.proto", fileDescriptor_000929e4bec891d7) }
736
737var fileDescriptor_000929e4bec891d7 = []byte{
amit.ghosh4d731da2023-03-07 14:32:00 +0100738 // 1048 bytes of a gzipped FileDescriptorProto
739 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x56, 0xd9, 0x6e, 0xdb, 0x46,
740 0x17, 0x0e, 0xb5, 0x25, 0x3a, 0xb2, 0x2d, 0x66, 0x62, 0x27, 0xb2, 0x0c, 0xff, 0xb6, 0x19, 0x18,
741 0xbf, 0x1b, 0x20, 0x96, 0x2b, 0xe7, 0x26, 0x4d, 0x17, 0xd0, 0x22, 0x6d, 0x13, 0x95, 0x49, 0x77,
742 0x28, 0xba, 0x48, 0x50, 0x94, 0xa0, 0xc5, 0x91, 0x42, 0x40, 0x24, 0x55, 0x2e, 0x76, 0xfb, 0x22,
743 0xbd, 0xea, 0x43, 0xf4, 0x05, 0x7a, 0xd1, 0x37, 0x68, 0x81, 0x3e, 0x50, 0x31, 0x33, 0x94, 0x17,
744 0x4a, 0x0a, 0x62, 0xa3, 0x45, 0xef, 0xc8, 0x6f, 0xce, 0x32, 0x73, 0xbe, 0xb3, 0xc1, 0x86, 0xeb,
745 0x7b, 0xad, 0xf8, 0xd2, 0xf6, 0x9d, 0xc0, 0x19, 0x12, 0x9f, 0x04, 0x89, 0x1d, 0x93, 0xe8, 0xc2,
746 0xeb, 0x93, 0xdd, 0x71, 0x14, 0x26, 0x21, 0x2a, 0xba, 0xbe, 0xd7, 0x7c, 0x4c, 0xa5, 0xfa, 0xa1,
747 0xef, 0x87, 0x41, 0xcc, 0xf1, 0xe6, 0x02, 0x85, 0xde, 0x5f, 0x66, 0x7f, 0x28, 0x33, 0xe3, 0xf9,
748 0xce, 0x30, 0xd3, 0x94, 0x7e, 0x16, 0xa0, 0x69, 0x86, 0x83, 0xe4, 0xd2, 0x89, 0xc8, 0x19, 0x89,
749 0x62, 0x2f, 0x0c, 0xb4, 0x60, 0x10, 0x46, 0xbe, 0x93, 0x78, 0x61, 0x80, 0x3e, 0x83, 0xba, 0xd3,
750 0x4f, 0xbc, 0x0b, 0x62, 0x5f, 0xf0, 0xc3, 0xb8, 0x21, 0x6c, 0x16, 0x77, 0x6a, 0xed, 0xc7, 0xbb,
751 0xae, 0xef, 0xed, 0x6a, 0xd4, 0x52, 0xa6, 0x86, 0x97, 0xb8, 0x64, 0xf6, 0x1b, 0xa3, 0xcf, 0x41,
752 0x8c, 0x13, 0x27, 0x70, 0xcf, 0x7f, 0xba, 0x56, 0x2e, 0xcc, 0x53, 0xae, 0x67, 0xa2, 0x13, 0x6d,
753 0xe9, 0xcf, 0x02, 0x6c, 0x1f, 0x91, 0x64, 0xfe, 0xdd, 0x30, 0x89, 0xc7, 0x61, 0x10, 0x13, 0xf4,
754 0x1c, 0x2a, 0x71, 0xe2, 0x24, 0x29, 0xbd, 0x9a, 0xb0, 0xb3, 0xd4, 0xae, 0x31, 0xeb, 0x26, 0x83,
755 0x70, 0x76, 0x84, 0x34, 0xa8, 0x44, 0xc4, 0x89, 0xc3, 0xa0, 0x51, 0x60, 0x42, 0x9f, 0x32, 0xa1,
756 0x8f, 0x72, 0xb0, 0x8b, 0x99, 0x22, 0xce, 0x0c, 0xa0, 0x7d, 0x28, 0x79, 0xc1, 0x20, 0x6c, 0x14,
757 0x37, 0x85, 0x9d, 0x5a, 0x7b, 0x83, 0x7b, 0x9b, 0x6f, 0x85, 0x09, 0xa3, 0xe7, 0xb0, 0xc8, 0xd5,
758 0x6d, 0x97, 0x24, 0x8e, 0x37, 0x6a, 0x94, 0x36, 0x85, 0x9d, 0x2a, 0x5e, 0xe0, 0xa0, 0xc2, 0x30,
759 0xe9, 0x7b, 0xa8, 0x70, 0x5f, 0x68, 0x19, 0x44, 0x4b, 0x57, 0xd4, 0x43, 0x4d, 0x57, 0x15, 0x1b,
760 0xab, 0xb2, 0x69, 0xe8, 0xe2, 0x03, 0x84, 0x60, 0xc9, 0xd2, 0xbf, 0xd6, 0x8d, 0x6f, 0x75, 0x5b,
761 0x51, 0xcf, 0xb4, 0x8e, 0x2a, 0x0a, 0x14, 0xd3, 0xf4, 0x9e, 0x8a, 0x75, 0xb9, 0x6b, 0xab, 0x18,
762 0x1b, 0x58, 0x2c, 0xa0, 0xa7, 0x80, 0xf8, 0xb9, 0x6d, 0xe9, 0x58, 0x95, 0x3b, 0xc7, 0xf2, 0x41,
763 0x57, 0x15, 0x8b, 0xd2, 0x8f, 0xb0, 0xac, 0x84, 0x97, 0xc1, 0x28, 0x74, 0x5c, 0x16, 0x7c, 0x4c,
764 0x7e, 0x48, 0x49, 0x9c, 0xa0, 0x17, 0x50, 0x73, 0x09, 0x4d, 0x27, 0x3b, 0x4d, 0x3d, 0x97, 0x85,
765 0xb1, 0xd6, 0xae, 0xb2, 0x87, 0x59, 0xa9, 0xe7, 0x62, 0xe0, 0xa7, 0xf4, 0x1b, 0xbd, 0x02, 0x60,
766 0xf9, 0x63, 0xb3, 0x18, 0x14, 0x98, 0xe8, 0xca, 0x35, 0x9f, 0x37, 0x5f, 0x5e, 0xf5, 0x26, 0x88,
767 0xf4, 0x0e, 0x16, 0x3b, 0x61, 0x30, 0xf0, 0x86, 0xf7, 0x71, 0xb9, 0x0e, 0xd0, 0x67, 0xca, 0x76,
768 0x1a, 0x8d, 0x98, 0xcb, 0x2a, 0xae, 0x72, 0xc4, 0x8a, 0x46, 0xd2, 0xef, 0x05, 0x58, 0x9a, 0x18,
769 0xbf, 0x4b, 0x4a, 0xb4, 0x73, 0x29, 0xd1, 0x64, 0x42, 0xb7, 0x2d, 0xe5, 0xb9, 0x9f, 0xa2, 0xb1,
770 0x38, 0x83, 0xc6, 0x5f, 0x85, 0x7f, 0x88, 0xc7, 0x55, 0x58, 0x61, 0x9f, 0xf6, 0xa1, 0xda, 0xeb,
771 0x1c, 0x6b, 0xfa, 0x91, 0xdd, 0x31, 0xf4, 0x43, 0xed, 0x48, 0x2c, 0x72, 0xf1, 0x33, 0xb9, 0xab,
772 0x29, 0x13, 0xac, 0x84, 0xb6, 0x60, 0xdd, 0x38, 0x55, 0xb1, 0xdc, 0xd3, 0x0c, 0xdd, 0x96, 0xbb,
773 0x58, 0x95, 0x95, 0xb7, 0xb6, 0xa6, 0xdb, 0xa7, 0xd8, 0x38, 0xc2, 0xaa, 0x69, 0x8a, 0xe5, 0x39,
774 0x99, 0x51, 0x91, 0x0e, 0xa1, 0x61, 0x26, 0x4e, 0x94, 0xa4, 0x63, 0xfe, 0x7e, 0x4a, 0xda, 0x3d,
775 0xa8, 0x92, 0x7e, 0x2b, 0xc0, 0xea, 0x0c, 0x43, 0x77, 0xa1, 0xe5, 0x8b, 0x1c, 0x2d, 0xdb, 0x13,
776 0xa1, 0xd9, 0x46, 0xf3, 0x0c, 0xdd, 0x4e, 0x96, 0x62, 0x2e, 0x59, 0x50, 0x03, 0x1e, 0x66, 0xcd,
777 0x28, 0xab, 0xc0, 0xc9, 0xef, 0x34, 0xb5, 0xe5, 0xff, 0xa0, 0x42, 0x87, 0xf0, 0xd4, 0x1a, 0xd3,
778 0xfa, 0x54, 0xc8, 0x79, 0x7a, 0x5f, 0x16, 0xd0, 0x16, 0x2c, 0x8c, 0xc2, 0x3e, 0x2b, 0xc2, 0x1b,
779 0x51, 0xa8, 0x4d, 0x30, 0x5a, 0x34, 0x7f, 0x95, 0x60, 0x25, 0xe7, 0x89, 0xf3, 0x70, 0x27, 0x47,
780 0x5f, 0x5d, 0x11, 0xca, 0xb9, 0xfa, 0x3f, 0x17, 0x9b, 0x65, 0x37, 0x43, 0x73, 0x64, 0x7f, 0x02,
781 0xe2, 0x98, 0x44, 0x7d, 0x3a, 0xd1, 0x52, 0x76, 0x4e, 0x5c, 0x76, 0xdb, 0x32, 0xae, 0x67, 0xb8,
782 0x95, 0xc1, 0xe8, 0xf5, 0x55, 0x5e, 0x94, 0x98, 0xaf, 0xad, 0x0f, 0xf8, 0xca, 0xe5, 0x44, 0x3e,
783 0x1e, 0xe5, 0xa9, 0x78, 0xa0, 0x35, 0xa8, 0x0e, 0xbc, 0x11, 0xb1, 0x03, 0xc7, 0x27, 0x8d, 0x0a,
784 0x3b, 0x7f, 0x44, 0x01, 0xdd, 0xf1, 0x89, 0x64, 0xc1, 0xc2, 0xcd, 0xdb, 0xa3, 0x35, 0x78, 0x76,
785 0xcd, 0xbd, 0x75, 0xda, 0x35, 0x64, 0xc5, 0x36, 0x7b, 0x72, 0xcf, 0x32, 0xc5, 0x07, 0x68, 0x01,
786 0x1e, 0x75, 0x8c, 0x93, 0xd3, 0xae, 0xda, 0xa3, 0xe4, 0xd7, 0xa1, 0x76, 0xb3, 0x02, 0x0b, 0xa8,
787 0x0a, 0x65, 0x9e, 0x04, 0x45, 0xe9, 0x0f, 0xe1, 0xdf, 0xcd, 0x26, 0xb4, 0x01, 0x6b, 0x58, 0x3d,
788 0x31, 0x7a, 0xaa, 0xdd, 0x35, 0x3a, 0xbc, 0x2d, 0xdc, 0x14, 0x28, 0xa1, 0x6d, 0xd8, 0xca, 0x0b,
789 0x9c, 0xaa, 0xf8, 0x44, 0x33, 0x4d, 0xfa, 0xa9, 0xa8, 0xba, 0xa6, 0x2a, 0x62, 0x19, 0x3d, 0x83,
790 0x27, 0xbc, 0x0f, 0x29, 0x16, 0xa6, 0x5d, 0x88, 0x3f, 0x59, 0xac, 0xd0, 0xd7, 0x65, 0x8e, 0x0f,
791 0x2c, 0xf3, 0xad, 0xf8, 0xb0, 0xfd, 0x4b, 0x09, 0x36, 0x74, 0x87, 0xae, 0x01, 0x93, 0x89, 0x78,
792 0x72, 0xb5, 0xb3, 0x98, 0x7c, 0x65, 0x41, 0xdf, 0x00, 0x9a, 0x9e, 0xbb, 0xa8, 0xce, 0xe8, 0x3c,
793 0x76, 0x22, 0x97, 0xa2, 0x9a, 0xd2, 0x7c, 0xf1, 0xf1, 0x13, 0x1a, 0x7d, 0x09, 0x8b, 0xb7, 0x06,
794 0x1b, 0x5a, 0x65, 0xca, 0xb3, 0x86, 0x5d, 0x53, 0xbc, 0x1e, 0x56, 0x9c, 0xce, 0x3d, 0x01, 0xbd,
795 0x82, 0x45, 0x99, 0x2e, 0x2f, 0x4e, 0x42, 0xb8, 0xfe, 0xd4, 0x6d, 0x66, 0x69, 0xbd, 0x81, 0x65,
796 0x4c, 0x2e, 0x48, 0x94, 0xf4, 0x68, 0xde, 0xd1, 0xed, 0xe5, 0x0e, 0xca, 0x47, 0xd0, 0xb4, 0xc6,
797 0xae, 0x93, 0x90, 0x5b, 0x9d, 0x2d, 0x8d, 0xf8, 0xde, 0x85, 0x6e, 0xcd, 0x22, 0x7e, 0xf1, 0x27,
798 0x33, 0xe6, 0xd3, 0x9e, 0x80, 0xbe, 0x83, 0x35, 0x1a, 0xa4, 0x19, 0x56, 0x68, 0xa4, 0xd0, 0xfa,
799 0xbc, 0xf6, 0xc9, 0x8d, 0xfe, 0xef, 0xc3, 0xdd, 0x15, 0x75, 0xa1, 0x9e, 0x2b, 0x31, 0xb4, 0x36,
800 0xab, 0xf0, 0x26, 0xf6, 0x9a, 0xf3, 0xab, 0x72, 0x4f, 0x38, 0x78, 0xf3, 0xee, 0xf5, 0xd0, 0x4b,
801 0xde, 0xa7, 0xe7, 0xbb, 0xfd, 0xd0, 0x6f, 0x85, 0x63, 0x12, 0xf4, 0xc3, 0xc8, 0x6d, 0xf1, 0x8e,
802 0xf2, 0xf2, 0x7a, 0xbd, 0x7d, 0xe9, 0x05, 0x09, 0x89, 0x06, 0x4e, 0x9f, 0xb4, 0x2e, 0xf6, 0x5b,
803 0xc3, 0xb0, 0xe5, 0xfa, 0xde, 0x79, 0x85, 0x6d, 0xac, 0xfb, 0x7f, 0x07, 0x00, 0x00, 0xff, 0xff,
804 0x5b, 0xf0, 0x2f, 0xd2, 0x0e, 0x0b, 0x00, 0x00,
Amit Ghosh09f28362020-06-12 21:52:19 +0100805}
806
807// Reference imports to suppress errors if they are not otherwise used.
808var _ context.Context
809var _ grpc.ClientConn
810
811// This is a compile-time assertion to ensure that this generated file
812// is compatible with the grpc package it is being compiled against.
813const _ = grpc.SupportPackageIsVersion4
814
815// NativeSoftwareManagementServiceClient is the client API for NativeSoftwareManagementService service.
816//
817// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
818type NativeSoftwareManagementServiceClient interface {
819 // Get the software version information of the Active and Standby images
aghoshc301dcd2020-09-03 16:55:34 +0100820 GetSoftwareVersion(ctx context.Context, in *HardwareID, opts ...grpc.CallOption) (*GetSoftwareVersionInformationResponse, error)
Amit Ghosh09f28362020-06-12 21:52:19 +0100821 // Downloads and installs the image in the standby partition, returns the status/progress of the Install
822 DownloadImage(ctx context.Context, in *DownloadImageRequest, opts ...grpc.CallOption) (NativeSoftwareManagementService_DownloadImageClient, error)
823 // Activates and runs the OLT with the image in the standby partition. If things are fine this image will
824 // henceforth be marked as the Active Partition. The old working image would remain on the Standby partition.
825 // Any possibly required (sub-)steps like "commit" are left to the "Device Manager"
826 ActivateImage(ctx context.Context, in *HardwareID, opts ...grpc.CallOption) (NativeSoftwareManagementService_ActivateImageClient, error)
827 // Marks the image in the Standby as Active and reboots the device, so that it boots from that image which was in the standby.
aghoshc301dcd2020-09-03 16:55:34 +0100828 // This API is to be used if operator wants to go back to the previous software
Amit Ghosh09f28362020-06-12 21:52:19 +0100829 RevertToStandbyImage(ctx context.Context, in *HardwareID, opts ...grpc.CallOption) (NativeSoftwareManagementService_RevertToStandbyImageClient, error)
amit.ghoshed23db02020-11-18 10:26:36 +0100830 // This API can be used to let the devices pickup their properitary configuration which they need at startup.
831 UpdateStartupConfiguration(ctx context.Context, in *ConfigRequest, opts ...grpc.CallOption) (NativeSoftwareManagementService_UpdateStartupConfigurationClient, error)
amit.ghosh2c938b82021-01-14 11:34:03 +0100832 // This API can be used to retrieve information about the current startup configuration that a device is using
833 GetStartupConfigurationInfo(ctx context.Context, in *StartupConfigInfoRequest, opts ...grpc.CallOption) (*StartupConfigInfoResponse, error)
amit.ghosh5a689802022-09-12 14:26:10 +0200834 // This API can be used to upload to a remote location, information useful for troubleshooting problems on the hardware
835 UploadDebugInfo(ctx context.Context, in *UploadDebugInfoRequest, opts ...grpc.CallOption) (NativeSoftwareManagementService_UploadDebugInfoClient, error)
Amit Ghosh09f28362020-06-12 21:52:19 +0100836}
837
838type nativeSoftwareManagementServiceClient struct {
839 cc *grpc.ClientConn
840}
841
842func NewNativeSoftwareManagementServiceClient(cc *grpc.ClientConn) NativeSoftwareManagementServiceClient {
843 return &nativeSoftwareManagementServiceClient{cc}
844}
845
aghoshc301dcd2020-09-03 16:55:34 +0100846func (c *nativeSoftwareManagementServiceClient) GetSoftwareVersion(ctx context.Context, in *HardwareID, opts ...grpc.CallOption) (*GetSoftwareVersionInformationResponse, error) {
847 out := new(GetSoftwareVersionInformationResponse)
Amit Ghosh09f28362020-06-12 21:52:19 +0100848 err := c.cc.Invoke(ctx, "/dmi.NativeSoftwareManagementService/GetSoftwareVersion", in, out, opts...)
849 if err != nil {
850 return nil, err
851 }
852 return out, nil
853}
854
855func (c *nativeSoftwareManagementServiceClient) DownloadImage(ctx context.Context, in *DownloadImageRequest, opts ...grpc.CallOption) (NativeSoftwareManagementService_DownloadImageClient, error) {
856 stream, err := c.cc.NewStream(ctx, &_NativeSoftwareManagementService_serviceDesc.Streams[0], "/dmi.NativeSoftwareManagementService/DownloadImage", opts...)
857 if err != nil {
858 return nil, err
859 }
860 x := &nativeSoftwareManagementServiceDownloadImageClient{stream}
861 if err := x.ClientStream.SendMsg(in); err != nil {
862 return nil, err
863 }
864 if err := x.ClientStream.CloseSend(); err != nil {
865 return nil, err
866 }
867 return x, nil
868}
869
870type NativeSoftwareManagementService_DownloadImageClient interface {
871 Recv() (*ImageStatus, error)
872 grpc.ClientStream
873}
874
875type nativeSoftwareManagementServiceDownloadImageClient struct {
876 grpc.ClientStream
877}
878
879func (x *nativeSoftwareManagementServiceDownloadImageClient) Recv() (*ImageStatus, error) {
880 m := new(ImageStatus)
881 if err := x.ClientStream.RecvMsg(m); err != nil {
882 return nil, err
883 }
884 return m, nil
885}
886
887func (c *nativeSoftwareManagementServiceClient) ActivateImage(ctx context.Context, in *HardwareID, opts ...grpc.CallOption) (NativeSoftwareManagementService_ActivateImageClient, error) {
888 stream, err := c.cc.NewStream(ctx, &_NativeSoftwareManagementService_serviceDesc.Streams[1], "/dmi.NativeSoftwareManagementService/ActivateImage", opts...)
889 if err != nil {
890 return nil, err
891 }
892 x := &nativeSoftwareManagementServiceActivateImageClient{stream}
893 if err := x.ClientStream.SendMsg(in); err != nil {
894 return nil, err
895 }
896 if err := x.ClientStream.CloseSend(); err != nil {
897 return nil, err
898 }
899 return x, nil
900}
901
902type NativeSoftwareManagementService_ActivateImageClient interface {
903 Recv() (*ImageStatus, error)
904 grpc.ClientStream
905}
906
907type nativeSoftwareManagementServiceActivateImageClient struct {
908 grpc.ClientStream
909}
910
911func (x *nativeSoftwareManagementServiceActivateImageClient) Recv() (*ImageStatus, error) {
912 m := new(ImageStatus)
913 if err := x.ClientStream.RecvMsg(m); err != nil {
914 return nil, err
915 }
916 return m, nil
917}
918
919func (c *nativeSoftwareManagementServiceClient) RevertToStandbyImage(ctx context.Context, in *HardwareID, opts ...grpc.CallOption) (NativeSoftwareManagementService_RevertToStandbyImageClient, error) {
920 stream, err := c.cc.NewStream(ctx, &_NativeSoftwareManagementService_serviceDesc.Streams[2], "/dmi.NativeSoftwareManagementService/RevertToStandbyImage", opts...)
921 if err != nil {
922 return nil, err
923 }
924 x := &nativeSoftwareManagementServiceRevertToStandbyImageClient{stream}
925 if err := x.ClientStream.SendMsg(in); err != nil {
926 return nil, err
927 }
928 if err := x.ClientStream.CloseSend(); err != nil {
929 return nil, err
930 }
931 return x, nil
932}
933
934type NativeSoftwareManagementService_RevertToStandbyImageClient interface {
935 Recv() (*ImageStatus, error)
936 grpc.ClientStream
937}
938
939type nativeSoftwareManagementServiceRevertToStandbyImageClient struct {
940 grpc.ClientStream
941}
942
943func (x *nativeSoftwareManagementServiceRevertToStandbyImageClient) Recv() (*ImageStatus, error) {
944 m := new(ImageStatus)
945 if err := x.ClientStream.RecvMsg(m); err != nil {
946 return nil, err
947 }
948 return m, nil
949}
950
amit.ghoshed23db02020-11-18 10:26:36 +0100951func (c *nativeSoftwareManagementServiceClient) UpdateStartupConfiguration(ctx context.Context, in *ConfigRequest, opts ...grpc.CallOption) (NativeSoftwareManagementService_UpdateStartupConfigurationClient, error) {
952 stream, err := c.cc.NewStream(ctx, &_NativeSoftwareManagementService_serviceDesc.Streams[3], "/dmi.NativeSoftwareManagementService/UpdateStartupConfiguration", opts...)
953 if err != nil {
954 return nil, err
955 }
956 x := &nativeSoftwareManagementServiceUpdateStartupConfigurationClient{stream}
957 if err := x.ClientStream.SendMsg(in); err != nil {
958 return nil, err
959 }
960 if err := x.ClientStream.CloseSend(); err != nil {
961 return nil, err
962 }
963 return x, nil
964}
965
966type NativeSoftwareManagementService_UpdateStartupConfigurationClient interface {
967 Recv() (*ConfigResponse, error)
968 grpc.ClientStream
969}
970
971type nativeSoftwareManagementServiceUpdateStartupConfigurationClient struct {
972 grpc.ClientStream
973}
974
975func (x *nativeSoftwareManagementServiceUpdateStartupConfigurationClient) Recv() (*ConfigResponse, error) {
976 m := new(ConfigResponse)
977 if err := x.ClientStream.RecvMsg(m); err != nil {
978 return nil, err
979 }
980 return m, nil
981}
982
amit.ghosh2c938b82021-01-14 11:34:03 +0100983func (c *nativeSoftwareManagementServiceClient) GetStartupConfigurationInfo(ctx context.Context, in *StartupConfigInfoRequest, opts ...grpc.CallOption) (*StartupConfigInfoResponse, error) {
984 out := new(StartupConfigInfoResponse)
985 err := c.cc.Invoke(ctx, "/dmi.NativeSoftwareManagementService/GetStartupConfigurationInfo", in, out, opts...)
986 if err != nil {
987 return nil, err
988 }
989 return out, nil
990}
991
amit.ghosh5a689802022-09-12 14:26:10 +0200992func (c *nativeSoftwareManagementServiceClient) UploadDebugInfo(ctx context.Context, in *UploadDebugInfoRequest, opts ...grpc.CallOption) (NativeSoftwareManagementService_UploadDebugInfoClient, error) {
993 stream, err := c.cc.NewStream(ctx, &_NativeSoftwareManagementService_serviceDesc.Streams[4], "/dmi.NativeSoftwareManagementService/UploadDebugInfo", opts...)
994 if err != nil {
995 return nil, err
996 }
997 x := &nativeSoftwareManagementServiceUploadDebugInfoClient{stream}
998 if err := x.ClientStream.SendMsg(in); err != nil {
999 return nil, err
1000 }
1001 if err := x.ClientStream.CloseSend(); err != nil {
1002 return nil, err
1003 }
1004 return x, nil
1005}
1006
1007type NativeSoftwareManagementService_UploadDebugInfoClient interface {
1008 Recv() (*UploadDebugInfoStatus, error)
1009 grpc.ClientStream
1010}
1011
1012type nativeSoftwareManagementServiceUploadDebugInfoClient struct {
1013 grpc.ClientStream
1014}
1015
1016func (x *nativeSoftwareManagementServiceUploadDebugInfoClient) Recv() (*UploadDebugInfoStatus, error) {
1017 m := new(UploadDebugInfoStatus)
1018 if err := x.ClientStream.RecvMsg(m); err != nil {
1019 return nil, err
1020 }
1021 return m, nil
1022}
1023
Amit Ghosh09f28362020-06-12 21:52:19 +01001024// NativeSoftwareManagementServiceServer is the server API for NativeSoftwareManagementService service.
1025type NativeSoftwareManagementServiceServer interface {
1026 // Get the software version information of the Active and Standby images
aghoshc301dcd2020-09-03 16:55:34 +01001027 GetSoftwareVersion(context.Context, *HardwareID) (*GetSoftwareVersionInformationResponse, error)
Amit Ghosh09f28362020-06-12 21:52:19 +01001028 // Downloads and installs the image in the standby partition, returns the status/progress of the Install
1029 DownloadImage(*DownloadImageRequest, NativeSoftwareManagementService_DownloadImageServer) error
1030 // Activates and runs the OLT with the image in the standby partition. If things are fine this image will
1031 // henceforth be marked as the Active Partition. The old working image would remain on the Standby partition.
1032 // Any possibly required (sub-)steps like "commit" are left to the "Device Manager"
1033 ActivateImage(*HardwareID, NativeSoftwareManagementService_ActivateImageServer) error
1034 // Marks the image in the Standby as Active and reboots the device, so that it boots from that image which was in the standby.
aghoshc301dcd2020-09-03 16:55:34 +01001035 // This API is to be used if operator wants to go back to the previous software
Amit Ghosh09f28362020-06-12 21:52:19 +01001036 RevertToStandbyImage(*HardwareID, NativeSoftwareManagementService_RevertToStandbyImageServer) error
amit.ghoshed23db02020-11-18 10:26:36 +01001037 // This API can be used to let the devices pickup their properitary configuration which they need at startup.
1038 UpdateStartupConfiguration(*ConfigRequest, NativeSoftwareManagementService_UpdateStartupConfigurationServer) error
amit.ghosh2c938b82021-01-14 11:34:03 +01001039 // This API can be used to retrieve information about the current startup configuration that a device is using
1040 GetStartupConfigurationInfo(context.Context, *StartupConfigInfoRequest) (*StartupConfigInfoResponse, error)
amit.ghosh5a689802022-09-12 14:26:10 +02001041 // This API can be used to upload to a remote location, information useful for troubleshooting problems on the hardware
1042 UploadDebugInfo(*UploadDebugInfoRequest, NativeSoftwareManagementService_UploadDebugInfoServer) error
Amit Ghosh09f28362020-06-12 21:52:19 +01001043}
1044
Andrea Campanellac795b7d2021-04-14 13:24:44 +02001045// UnimplementedNativeSoftwareManagementServiceServer can be embedded to have forward compatible implementations.
1046type UnimplementedNativeSoftwareManagementServiceServer struct {
1047}
1048
1049func (*UnimplementedNativeSoftwareManagementServiceServer) GetSoftwareVersion(ctx context.Context, req *HardwareID) (*GetSoftwareVersionInformationResponse, error) {
1050 return nil, status.Errorf(codes.Unimplemented, "method GetSoftwareVersion not implemented")
1051}
1052func (*UnimplementedNativeSoftwareManagementServiceServer) DownloadImage(req *DownloadImageRequest, srv NativeSoftwareManagementService_DownloadImageServer) error {
1053 return status.Errorf(codes.Unimplemented, "method DownloadImage not implemented")
1054}
1055func (*UnimplementedNativeSoftwareManagementServiceServer) ActivateImage(req *HardwareID, srv NativeSoftwareManagementService_ActivateImageServer) error {
1056 return status.Errorf(codes.Unimplemented, "method ActivateImage not implemented")
1057}
1058func (*UnimplementedNativeSoftwareManagementServiceServer) RevertToStandbyImage(req *HardwareID, srv NativeSoftwareManagementService_RevertToStandbyImageServer) error {
1059 return status.Errorf(codes.Unimplemented, "method RevertToStandbyImage not implemented")
1060}
1061func (*UnimplementedNativeSoftwareManagementServiceServer) UpdateStartupConfiguration(req *ConfigRequest, srv NativeSoftwareManagementService_UpdateStartupConfigurationServer) error {
1062 return status.Errorf(codes.Unimplemented, "method UpdateStartupConfiguration not implemented")
1063}
1064func (*UnimplementedNativeSoftwareManagementServiceServer) GetStartupConfigurationInfo(ctx context.Context, req *StartupConfigInfoRequest) (*StartupConfigInfoResponse, error) {
1065 return nil, status.Errorf(codes.Unimplemented, "method GetStartupConfigurationInfo not implemented")
1066}
amit.ghosh5a689802022-09-12 14:26:10 +02001067func (*UnimplementedNativeSoftwareManagementServiceServer) UploadDebugInfo(req *UploadDebugInfoRequest, srv NativeSoftwareManagementService_UploadDebugInfoServer) error {
1068 return status.Errorf(codes.Unimplemented, "method UploadDebugInfo not implemented")
1069}
Andrea Campanellac795b7d2021-04-14 13:24:44 +02001070
Amit Ghosh09f28362020-06-12 21:52:19 +01001071func RegisterNativeSoftwareManagementServiceServer(s *grpc.Server, srv NativeSoftwareManagementServiceServer) {
1072 s.RegisterService(&_NativeSoftwareManagementService_serviceDesc, srv)
1073}
1074
1075func _NativeSoftwareManagementService_GetSoftwareVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1076 in := new(HardwareID)
1077 if err := dec(in); err != nil {
1078 return nil, err
1079 }
1080 if interceptor == nil {
1081 return srv.(NativeSoftwareManagementServiceServer).GetSoftwareVersion(ctx, in)
1082 }
1083 info := &grpc.UnaryServerInfo{
1084 Server: srv,
1085 FullMethod: "/dmi.NativeSoftwareManagementService/GetSoftwareVersion",
1086 }
1087 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1088 return srv.(NativeSoftwareManagementServiceServer).GetSoftwareVersion(ctx, req.(*HardwareID))
1089 }
1090 return interceptor(ctx, in, info, handler)
1091}
1092
1093func _NativeSoftwareManagementService_DownloadImage_Handler(srv interface{}, stream grpc.ServerStream) error {
1094 m := new(DownloadImageRequest)
1095 if err := stream.RecvMsg(m); err != nil {
1096 return err
1097 }
1098 return srv.(NativeSoftwareManagementServiceServer).DownloadImage(m, &nativeSoftwareManagementServiceDownloadImageServer{stream})
1099}
1100
1101type NativeSoftwareManagementService_DownloadImageServer interface {
1102 Send(*ImageStatus) error
1103 grpc.ServerStream
1104}
1105
1106type nativeSoftwareManagementServiceDownloadImageServer struct {
1107 grpc.ServerStream
1108}
1109
1110func (x *nativeSoftwareManagementServiceDownloadImageServer) Send(m *ImageStatus) error {
1111 return x.ServerStream.SendMsg(m)
1112}
1113
1114func _NativeSoftwareManagementService_ActivateImage_Handler(srv interface{}, stream grpc.ServerStream) error {
1115 m := new(HardwareID)
1116 if err := stream.RecvMsg(m); err != nil {
1117 return err
1118 }
1119 return srv.(NativeSoftwareManagementServiceServer).ActivateImage(m, &nativeSoftwareManagementServiceActivateImageServer{stream})
1120}
1121
1122type NativeSoftwareManagementService_ActivateImageServer interface {
1123 Send(*ImageStatus) error
1124 grpc.ServerStream
1125}
1126
1127type nativeSoftwareManagementServiceActivateImageServer struct {
1128 grpc.ServerStream
1129}
1130
1131func (x *nativeSoftwareManagementServiceActivateImageServer) Send(m *ImageStatus) error {
1132 return x.ServerStream.SendMsg(m)
1133}
1134
1135func _NativeSoftwareManagementService_RevertToStandbyImage_Handler(srv interface{}, stream grpc.ServerStream) error {
1136 m := new(HardwareID)
1137 if err := stream.RecvMsg(m); err != nil {
1138 return err
1139 }
1140 return srv.(NativeSoftwareManagementServiceServer).RevertToStandbyImage(m, &nativeSoftwareManagementServiceRevertToStandbyImageServer{stream})
1141}
1142
1143type NativeSoftwareManagementService_RevertToStandbyImageServer interface {
1144 Send(*ImageStatus) error
1145 grpc.ServerStream
1146}
1147
1148type nativeSoftwareManagementServiceRevertToStandbyImageServer struct {
1149 grpc.ServerStream
1150}
1151
1152func (x *nativeSoftwareManagementServiceRevertToStandbyImageServer) Send(m *ImageStatus) error {
1153 return x.ServerStream.SendMsg(m)
1154}
1155
amit.ghoshed23db02020-11-18 10:26:36 +01001156func _NativeSoftwareManagementService_UpdateStartupConfiguration_Handler(srv interface{}, stream grpc.ServerStream) error {
1157 m := new(ConfigRequest)
1158 if err := stream.RecvMsg(m); err != nil {
1159 return err
1160 }
1161 return srv.(NativeSoftwareManagementServiceServer).UpdateStartupConfiguration(m, &nativeSoftwareManagementServiceUpdateStartupConfigurationServer{stream})
1162}
1163
1164type NativeSoftwareManagementService_UpdateStartupConfigurationServer interface {
1165 Send(*ConfigResponse) error
1166 grpc.ServerStream
1167}
1168
1169type nativeSoftwareManagementServiceUpdateStartupConfigurationServer struct {
1170 grpc.ServerStream
1171}
1172
1173func (x *nativeSoftwareManagementServiceUpdateStartupConfigurationServer) Send(m *ConfigResponse) error {
1174 return x.ServerStream.SendMsg(m)
1175}
1176
amit.ghosh2c938b82021-01-14 11:34:03 +01001177func _NativeSoftwareManagementService_GetStartupConfigurationInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1178 in := new(StartupConfigInfoRequest)
1179 if err := dec(in); err != nil {
1180 return nil, err
1181 }
1182 if interceptor == nil {
1183 return srv.(NativeSoftwareManagementServiceServer).GetStartupConfigurationInfo(ctx, in)
1184 }
1185 info := &grpc.UnaryServerInfo{
1186 Server: srv,
1187 FullMethod: "/dmi.NativeSoftwareManagementService/GetStartupConfigurationInfo",
1188 }
1189 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1190 return srv.(NativeSoftwareManagementServiceServer).GetStartupConfigurationInfo(ctx, req.(*StartupConfigInfoRequest))
1191 }
1192 return interceptor(ctx, in, info, handler)
1193}
1194
amit.ghosh5a689802022-09-12 14:26:10 +02001195func _NativeSoftwareManagementService_UploadDebugInfo_Handler(srv interface{}, stream grpc.ServerStream) error {
1196 m := new(UploadDebugInfoRequest)
1197 if err := stream.RecvMsg(m); err != nil {
1198 return err
1199 }
1200 return srv.(NativeSoftwareManagementServiceServer).UploadDebugInfo(m, &nativeSoftwareManagementServiceUploadDebugInfoServer{stream})
1201}
1202
1203type NativeSoftwareManagementService_UploadDebugInfoServer interface {
1204 Send(*UploadDebugInfoStatus) error
1205 grpc.ServerStream
1206}
1207
1208type nativeSoftwareManagementServiceUploadDebugInfoServer struct {
1209 grpc.ServerStream
1210}
1211
1212func (x *nativeSoftwareManagementServiceUploadDebugInfoServer) Send(m *UploadDebugInfoStatus) error {
1213 return x.ServerStream.SendMsg(m)
1214}
1215
Amit Ghosh09f28362020-06-12 21:52:19 +01001216var _NativeSoftwareManagementService_serviceDesc = grpc.ServiceDesc{
1217 ServiceName: "dmi.NativeSoftwareManagementService",
1218 HandlerType: (*NativeSoftwareManagementServiceServer)(nil),
1219 Methods: []grpc.MethodDesc{
1220 {
1221 MethodName: "GetSoftwareVersion",
1222 Handler: _NativeSoftwareManagementService_GetSoftwareVersion_Handler,
1223 },
amit.ghosh2c938b82021-01-14 11:34:03 +01001224 {
1225 MethodName: "GetStartupConfigurationInfo",
1226 Handler: _NativeSoftwareManagementService_GetStartupConfigurationInfo_Handler,
1227 },
Amit Ghosh09f28362020-06-12 21:52:19 +01001228 },
1229 Streams: []grpc.StreamDesc{
1230 {
1231 StreamName: "DownloadImage",
1232 Handler: _NativeSoftwareManagementService_DownloadImage_Handler,
1233 ServerStreams: true,
1234 },
1235 {
1236 StreamName: "ActivateImage",
1237 Handler: _NativeSoftwareManagementService_ActivateImage_Handler,
1238 ServerStreams: true,
1239 },
1240 {
1241 StreamName: "RevertToStandbyImage",
1242 Handler: _NativeSoftwareManagementService_RevertToStandbyImage_Handler,
1243 ServerStreams: true,
1244 },
amit.ghoshed23db02020-11-18 10:26:36 +01001245 {
1246 StreamName: "UpdateStartupConfiguration",
1247 Handler: _NativeSoftwareManagementService_UpdateStartupConfiguration_Handler,
1248 ServerStreams: true,
1249 },
amit.ghosh5a689802022-09-12 14:26:10 +02001250 {
1251 StreamName: "UploadDebugInfo",
1252 Handler: _NativeSoftwareManagementService_UploadDebugInfo_Handler,
1253 ServerStreams: true,
1254 },
Amit Ghosh09f28362020-06-12 21:52:19 +01001255 },
1256 Metadata: "dmi/sw_management_service.proto",
1257}