blob: 74be5d00951a889a0cfd84c1041fa91c81305b03 [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 (
amit.ghoshdfd5d7e2023-03-14 21:14:33 +0100163 UploadDebugInfoStatus_UNDEFINED_REASON UploadDebugInfoStatus_Reason = 0
164 UploadDebugInfoStatus_UNKNOWN_DEVICE UploadDebugInfoStatus_Reason = 1
165 UploadDebugInfoStatus_INTERNAL_ERROR UploadDebugInfoStatus_Reason = 2
166 // The DM implementations should have retry mechanisms (timeout values dependant on specific implementations)
167 // and even after those if the operation cannot be completed/reached then return error with reason as DEVICE_NOT_REACHABLE
168 UploadDebugInfoStatus_DEVICE_NOT_REACHABLE UploadDebugInfoStatus_Reason = 3
amit.ghosh5a689802022-09-12 14:26:10 +0200169 UploadDebugInfoStatus_REMOTE_LOCATION_UNREACHABLE UploadDebugInfoStatus_Reason = 4
170 UploadDebugInfoStatus_REMOTE_LOCATION_PERMISSION_DENIED UploadDebugInfoStatus_Reason = 5
171 UploadDebugInfoStatus_ERROR_DURING_UPLOAD UploadDebugInfoStatus_Reason = 6
amit.ghosh4d731da2023-03-07 14:32:00 +0100172 UploadDebugInfoStatus_DEVICE_BUSY UploadDebugInfoStatus_Reason = 7
amit.ghoshdfd5d7e2023-03-14 21:14:33 +0100173 // wrong location_url in the request
174 UploadDebugInfoStatus_ERROR_IN_REQUEST UploadDebugInfoStatus_Reason = 8
175 UploadDebugInfoStatus_DEVICE_IN_WRONG_STATE UploadDebugInfoStatus_Reason = 9
176 UploadDebugInfoStatus_OPERATION_ALREADY_IN_PROGRESS UploadDebugInfoStatus_Reason = 10
amit.ghosh5a689802022-09-12 14:26:10 +0200177)
178
179var UploadDebugInfoStatus_Reason_name = map[int32]string{
amit.ghoshdfd5d7e2023-03-14 21:14:33 +0100180 0: "UNDEFINED_REASON",
181 1: "UNKNOWN_DEVICE",
182 2: "INTERNAL_ERROR",
183 3: "DEVICE_NOT_REACHABLE",
184 4: "REMOTE_LOCATION_UNREACHABLE",
185 5: "REMOTE_LOCATION_PERMISSION_DENIED",
186 6: "ERROR_DURING_UPLOAD",
187 7: "DEVICE_BUSY",
188 8: "ERROR_IN_REQUEST",
189 9: "DEVICE_IN_WRONG_STATE",
190 10: "OPERATION_ALREADY_IN_PROGRESS",
amit.ghosh5a689802022-09-12 14:26:10 +0200191}
192
193var UploadDebugInfoStatus_Reason_value = map[string]int32{
194 "UNDEFINED_REASON": 0,
195 "UNKNOWN_DEVICE": 1,
196 "INTERNAL_ERROR": 2,
amit.ghoshdfd5d7e2023-03-14 21:14:33 +0100197 "DEVICE_NOT_REACHABLE": 3,
amit.ghosh5a689802022-09-12 14:26:10 +0200198 "REMOTE_LOCATION_UNREACHABLE": 4,
199 "REMOTE_LOCATION_PERMISSION_DENIED": 5,
200 "ERROR_DURING_UPLOAD": 6,
amit.ghosh4d731da2023-03-07 14:32:00 +0100201 "DEVICE_BUSY": 7,
amit.ghoshdfd5d7e2023-03-14 21:14:33 +0100202 "ERROR_IN_REQUEST": 8,
203 "DEVICE_IN_WRONG_STATE": 9,
204 "OPERATION_ALREADY_IN_PROGRESS": 10,
amit.ghosh5a689802022-09-12 14:26:10 +0200205}
206
207func (x UploadDebugInfoStatus_Reason) String() string {
208 return proto.EnumName(UploadDebugInfoStatus_Reason_name, int32(x))
209}
210
211func (UploadDebugInfoStatus_Reason) EnumDescriptor() ([]byte, []int) {
212 return fileDescriptor_000929e4bec891d7, []int{8, 1}
213}
214
Amit Ghosh09f28362020-06-12 21:52:19 +0100215type SoftwareVersionInformation struct {
216 ActiveVersions []*ImageVersion `protobuf:"bytes,1,rep,name=active_versions,json=activeVersions,proto3" json:"active_versions,omitempty"`
217 StandbyVersions []*ImageVersion `protobuf:"bytes,2,rep,name=standby_versions,json=standbyVersions,proto3" json:"standby_versions,omitempty"`
218 XXX_NoUnkeyedLiteral struct{} `json:"-"`
219 XXX_unrecognized []byte `json:"-"`
220 XXX_sizecache int32 `json:"-"`
221}
222
223func (m *SoftwareVersionInformation) Reset() { *m = SoftwareVersionInformation{} }
224func (m *SoftwareVersionInformation) String() string { return proto.CompactTextString(m) }
225func (*SoftwareVersionInformation) ProtoMessage() {}
226func (*SoftwareVersionInformation) Descriptor() ([]byte, []int) {
227 return fileDescriptor_000929e4bec891d7, []int{0}
228}
229
230func (m *SoftwareVersionInformation) XXX_Unmarshal(b []byte) error {
231 return xxx_messageInfo_SoftwareVersionInformation.Unmarshal(m, b)
232}
233func (m *SoftwareVersionInformation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
234 return xxx_messageInfo_SoftwareVersionInformation.Marshal(b, m, deterministic)
235}
236func (m *SoftwareVersionInformation) XXX_Merge(src proto.Message) {
237 xxx_messageInfo_SoftwareVersionInformation.Merge(m, src)
238}
239func (m *SoftwareVersionInformation) XXX_Size() int {
240 return xxx_messageInfo_SoftwareVersionInformation.Size(m)
241}
242func (m *SoftwareVersionInformation) XXX_DiscardUnknown() {
243 xxx_messageInfo_SoftwareVersionInformation.DiscardUnknown(m)
244}
245
246var xxx_messageInfo_SoftwareVersionInformation proto.InternalMessageInfo
247
248func (m *SoftwareVersionInformation) GetActiveVersions() []*ImageVersion {
249 if m != nil {
250 return m.ActiveVersions
251 }
252 return nil
253}
254
255func (m *SoftwareVersionInformation) GetStandbyVersions() []*ImageVersion {
256 if m != nil {
257 return m.StandbyVersions
258 }
259 return nil
260}
261
aghoshc301dcd2020-09-03 16:55:34 +0100262type GetSoftwareVersionInformationResponse struct {
amit.ghoshae473032021-01-10 11:59:10 +0100263 Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=dmi.Status" json:"status,omitempty"`
264 Reason GetSoftwareVersionInformationResponse_Reason `protobuf:"varint,2,opt,name=reason,proto3,enum=dmi.GetSoftwareVersionInformationResponse_Reason" json:"reason,omitempty"`
265 Info *SoftwareVersionInformation `protobuf:"bytes,3,opt,name=info,proto3" json:"info,omitempty"`
amit.ghosh8ab1e6e2021-02-23 07:40:17 +0100266 ReasonDetail string `protobuf:"bytes,4,opt,name=reason_detail,json=reasonDetail,proto3" json:"reason_detail,omitempty"`
amit.ghoshae473032021-01-10 11:59:10 +0100267 XXX_NoUnkeyedLiteral struct{} `json:"-"`
268 XXX_unrecognized []byte `json:"-"`
269 XXX_sizecache int32 `json:"-"`
aghoshc301dcd2020-09-03 16:55:34 +0100270}
271
272func (m *GetSoftwareVersionInformationResponse) Reset() { *m = GetSoftwareVersionInformationResponse{} }
273func (m *GetSoftwareVersionInformationResponse) String() string { return proto.CompactTextString(m) }
274func (*GetSoftwareVersionInformationResponse) ProtoMessage() {}
275func (*GetSoftwareVersionInformationResponse) Descriptor() ([]byte, []int) {
276 return fileDescriptor_000929e4bec891d7, []int{1}
277}
278
279func (m *GetSoftwareVersionInformationResponse) XXX_Unmarshal(b []byte) error {
280 return xxx_messageInfo_GetSoftwareVersionInformationResponse.Unmarshal(m, b)
281}
282func (m *GetSoftwareVersionInformationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
283 return xxx_messageInfo_GetSoftwareVersionInformationResponse.Marshal(b, m, deterministic)
284}
285func (m *GetSoftwareVersionInformationResponse) XXX_Merge(src proto.Message) {
286 xxx_messageInfo_GetSoftwareVersionInformationResponse.Merge(m, src)
287}
288func (m *GetSoftwareVersionInformationResponse) XXX_Size() int {
289 return xxx_messageInfo_GetSoftwareVersionInformationResponse.Size(m)
290}
291func (m *GetSoftwareVersionInformationResponse) XXX_DiscardUnknown() {
292 xxx_messageInfo_GetSoftwareVersionInformationResponse.DiscardUnknown(m)
293}
294
295var xxx_messageInfo_GetSoftwareVersionInformationResponse proto.InternalMessageInfo
296
297func (m *GetSoftwareVersionInformationResponse) GetStatus() Status {
298 if m != nil {
299 return m.Status
300 }
301 return Status_UNDEFINED_STATUS
302}
303
amit.ghoshae473032021-01-10 11:59:10 +0100304func (m *GetSoftwareVersionInformationResponse) GetReason() GetSoftwareVersionInformationResponse_Reason {
aghoshc301dcd2020-09-03 16:55:34 +0100305 if m != nil {
306 return m.Reason
307 }
amit.ghoshae473032021-01-10 11:59:10 +0100308 return GetSoftwareVersionInformationResponse_UNDEFINED_REASON
aghoshc301dcd2020-09-03 16:55:34 +0100309}
310
311func (m *GetSoftwareVersionInformationResponse) GetInfo() *SoftwareVersionInformation {
312 if m != nil {
313 return m.Info
314 }
315 return nil
316}
317
amit.ghosh8ab1e6e2021-02-23 07:40:17 +0100318func (m *GetSoftwareVersionInformationResponse) GetReasonDetail() string {
319 if m != nil {
320 return m.ReasonDetail
321 }
322 return ""
323}
324
Amit Ghosh09f28362020-06-12 21:52:19 +0100325type DownloadImageRequest struct {
326 DeviceUuid *Uuid `protobuf:"bytes,1,opt,name=device_uuid,json=deviceUuid,proto3" json:"device_uuid,omitempty"`
327 ImageInfo *ImageInformation `protobuf:"bytes,2,opt,name=image_info,json=imageInfo,proto3" json:"image_info,omitempty"`
328 XXX_NoUnkeyedLiteral struct{} `json:"-"`
329 XXX_unrecognized []byte `json:"-"`
330 XXX_sizecache int32 `json:"-"`
331}
332
333func (m *DownloadImageRequest) Reset() { *m = DownloadImageRequest{} }
334func (m *DownloadImageRequest) String() string { return proto.CompactTextString(m) }
335func (*DownloadImageRequest) ProtoMessage() {}
336func (*DownloadImageRequest) Descriptor() ([]byte, []int) {
aghoshc301dcd2020-09-03 16:55:34 +0100337 return fileDescriptor_000929e4bec891d7, []int{2}
Amit Ghosh09f28362020-06-12 21:52:19 +0100338}
339
340func (m *DownloadImageRequest) XXX_Unmarshal(b []byte) error {
341 return xxx_messageInfo_DownloadImageRequest.Unmarshal(m, b)
342}
343func (m *DownloadImageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
344 return xxx_messageInfo_DownloadImageRequest.Marshal(b, m, deterministic)
345}
346func (m *DownloadImageRequest) XXX_Merge(src proto.Message) {
347 xxx_messageInfo_DownloadImageRequest.Merge(m, src)
348}
349func (m *DownloadImageRequest) XXX_Size() int {
350 return xxx_messageInfo_DownloadImageRequest.Size(m)
351}
352func (m *DownloadImageRequest) XXX_DiscardUnknown() {
353 xxx_messageInfo_DownloadImageRequest.DiscardUnknown(m)
354}
355
356var xxx_messageInfo_DownloadImageRequest proto.InternalMessageInfo
357
358func (m *DownloadImageRequest) GetDeviceUuid() *Uuid {
359 if m != nil {
360 return m.DeviceUuid
361 }
362 return nil
363}
364
365func (m *DownloadImageRequest) GetImageInfo() *ImageInformation {
366 if m != nil {
367 return m.ImageInfo
368 }
369 return nil
370}
371
amit.ghoshed23db02020-11-18 10:26:36 +0100372type ConfigRequest struct {
373 DeviceUuid *Uuid `protobuf:"bytes,1,opt,name=device_uuid,json=deviceUuid,proto3" json:"device_uuid,omitempty"`
374 // Location of the configuration file, authentication (user/pass) if any should be in the url string
375 // The config_url would contain the protocol, credentials, the IP address/DNS of the server and the path of the file
376 // e.g. sftp://download_user:download_pass@192.168.0.1:22/OLT-configs/config-v1.2.3.xml
377 ConfigUrl string `protobuf:"bytes,2,opt,name=config_url,json=configUrl,proto3" json:"config_url,omitempty"`
378 XXX_NoUnkeyedLiteral struct{} `json:"-"`
379 XXX_unrecognized []byte `json:"-"`
380 XXX_sizecache int32 `json:"-"`
381}
382
383func (m *ConfigRequest) Reset() { *m = ConfigRequest{} }
384func (m *ConfigRequest) String() string { return proto.CompactTextString(m) }
385func (*ConfigRequest) ProtoMessage() {}
386func (*ConfigRequest) Descriptor() ([]byte, []int) {
387 return fileDescriptor_000929e4bec891d7, []int{3}
388}
389
390func (m *ConfigRequest) XXX_Unmarshal(b []byte) error {
391 return xxx_messageInfo_ConfigRequest.Unmarshal(m, b)
392}
393func (m *ConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
394 return xxx_messageInfo_ConfigRequest.Marshal(b, m, deterministic)
395}
396func (m *ConfigRequest) XXX_Merge(src proto.Message) {
397 xxx_messageInfo_ConfigRequest.Merge(m, src)
398}
399func (m *ConfigRequest) XXX_Size() int {
400 return xxx_messageInfo_ConfigRequest.Size(m)
401}
402func (m *ConfigRequest) XXX_DiscardUnknown() {
403 xxx_messageInfo_ConfigRequest.DiscardUnknown(m)
404}
405
406var xxx_messageInfo_ConfigRequest proto.InternalMessageInfo
407
408func (m *ConfigRequest) GetDeviceUuid() *Uuid {
409 if m != nil {
410 return m.DeviceUuid
411 }
412 return nil
413}
414
415func (m *ConfigRequest) GetConfigUrl() string {
416 if m != nil {
417 return m.ConfigUrl
418 }
419 return ""
420}
421
422type ConfigResponse struct {
amit.ghoshae473032021-01-10 11:59:10 +0100423 Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=dmi.Status" json:"status,omitempty"`
424 Reason ConfigResponse_Reason `protobuf:"varint,2,opt,name=reason,proto3,enum=dmi.ConfigResponse_Reason" json:"reason,omitempty"`
amit.ghosh8ab1e6e2021-02-23 07:40:17 +0100425 ReasonDetail string `protobuf:"bytes,3,opt,name=reason_detail,json=reasonDetail,proto3" json:"reason_detail,omitempty"`
amit.ghoshae473032021-01-10 11:59:10 +0100426 XXX_NoUnkeyedLiteral struct{} `json:"-"`
427 XXX_unrecognized []byte `json:"-"`
428 XXX_sizecache int32 `json:"-"`
amit.ghoshed23db02020-11-18 10:26:36 +0100429}
430
431func (m *ConfigResponse) Reset() { *m = ConfigResponse{} }
432func (m *ConfigResponse) String() string { return proto.CompactTextString(m) }
433func (*ConfigResponse) ProtoMessage() {}
434func (*ConfigResponse) Descriptor() ([]byte, []int) {
435 return fileDescriptor_000929e4bec891d7, []int{4}
436}
437
438func (m *ConfigResponse) XXX_Unmarshal(b []byte) error {
439 return xxx_messageInfo_ConfigResponse.Unmarshal(m, b)
440}
441func (m *ConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
442 return xxx_messageInfo_ConfigResponse.Marshal(b, m, deterministic)
443}
444func (m *ConfigResponse) XXX_Merge(src proto.Message) {
445 xxx_messageInfo_ConfigResponse.Merge(m, src)
446}
447func (m *ConfigResponse) XXX_Size() int {
448 return xxx_messageInfo_ConfigResponse.Size(m)
449}
450func (m *ConfigResponse) XXX_DiscardUnknown() {
451 xxx_messageInfo_ConfigResponse.DiscardUnknown(m)
452}
453
454var xxx_messageInfo_ConfigResponse proto.InternalMessageInfo
455
456func (m *ConfigResponse) GetStatus() Status {
457 if m != nil {
458 return m.Status
459 }
460 return Status_UNDEFINED_STATUS
461}
462
amit.ghoshae473032021-01-10 11:59:10 +0100463func (m *ConfigResponse) GetReason() ConfigResponse_Reason {
amit.ghoshed23db02020-11-18 10:26:36 +0100464 if m != nil {
465 return m.Reason
466 }
amit.ghoshae473032021-01-10 11:59:10 +0100467 return ConfigResponse_UNDEFINED_REASON
amit.ghoshed23db02020-11-18 10:26:36 +0100468}
469
amit.ghosh8ab1e6e2021-02-23 07:40:17 +0100470func (m *ConfigResponse) GetReasonDetail() string {
471 if m != nil {
472 return m.ReasonDetail
473 }
474 return ""
475}
476
amit.ghosh2c938b82021-01-14 11:34:03 +0100477type StartupConfigInfoRequest struct {
478 DeviceUuid *Uuid `protobuf:"bytes,1,opt,name=device_uuid,json=deviceUuid,proto3" json:"device_uuid,omitempty"`
479 XXX_NoUnkeyedLiteral struct{} `json:"-"`
480 XXX_unrecognized []byte `json:"-"`
481 XXX_sizecache int32 `json:"-"`
482}
483
484func (m *StartupConfigInfoRequest) Reset() { *m = StartupConfigInfoRequest{} }
485func (m *StartupConfigInfoRequest) String() string { return proto.CompactTextString(m) }
486func (*StartupConfigInfoRequest) ProtoMessage() {}
487func (*StartupConfigInfoRequest) Descriptor() ([]byte, []int) {
488 return fileDescriptor_000929e4bec891d7, []int{5}
489}
490
491func (m *StartupConfigInfoRequest) XXX_Unmarshal(b []byte) error {
492 return xxx_messageInfo_StartupConfigInfoRequest.Unmarshal(m, b)
493}
494func (m *StartupConfigInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
495 return xxx_messageInfo_StartupConfigInfoRequest.Marshal(b, m, deterministic)
496}
497func (m *StartupConfigInfoRequest) XXX_Merge(src proto.Message) {
498 xxx_messageInfo_StartupConfigInfoRequest.Merge(m, src)
499}
500func (m *StartupConfigInfoRequest) XXX_Size() int {
501 return xxx_messageInfo_StartupConfigInfoRequest.Size(m)
502}
503func (m *StartupConfigInfoRequest) XXX_DiscardUnknown() {
504 xxx_messageInfo_StartupConfigInfoRequest.DiscardUnknown(m)
505}
506
507var xxx_messageInfo_StartupConfigInfoRequest proto.InternalMessageInfo
508
509func (m *StartupConfigInfoRequest) GetDeviceUuid() *Uuid {
510 if m != nil {
511 return m.DeviceUuid
512 }
513 return nil
514}
515
516type StartupConfigInfoResponse struct {
517 Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=dmi.Status" json:"status,omitempty"`
518 Reason StartupConfigInfoResponse_Reason `protobuf:"varint,2,opt,name=reason,proto3,enum=dmi.StartupConfigInfoResponse_Reason" json:"reason,omitempty"`
519 // The config_url is an optional attribute, the device manager could return the location from
520 // where the config was downloaded. Also it would not be present/empty for a fresh device into which the
521 // startup config would have been installed in the factory.
522 ConfigUrl string `protobuf:"bytes,3,opt,name=config_url,json=configUrl,proto3" json:"config_url,omitempty"`
523 // The version of the startup configuration. It is recommended to use semVer, but the DM implementations
524 // and operators could choose any other format as well.
525 Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"`
amit.ghosh8ab1e6e2021-02-23 07:40:17 +0100526 ReasonDetail string `protobuf:"bytes,5,opt,name=reason_detail,json=reasonDetail,proto3" json:"reason_detail,omitempty"`
amit.ghosh2c938b82021-01-14 11:34:03 +0100527 XXX_NoUnkeyedLiteral struct{} `json:"-"`
528 XXX_unrecognized []byte `json:"-"`
529 XXX_sizecache int32 `json:"-"`
530}
531
532func (m *StartupConfigInfoResponse) Reset() { *m = StartupConfigInfoResponse{} }
533func (m *StartupConfigInfoResponse) String() string { return proto.CompactTextString(m) }
534func (*StartupConfigInfoResponse) ProtoMessage() {}
535func (*StartupConfigInfoResponse) Descriptor() ([]byte, []int) {
536 return fileDescriptor_000929e4bec891d7, []int{6}
537}
538
539func (m *StartupConfigInfoResponse) XXX_Unmarshal(b []byte) error {
540 return xxx_messageInfo_StartupConfigInfoResponse.Unmarshal(m, b)
541}
542func (m *StartupConfigInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
543 return xxx_messageInfo_StartupConfigInfoResponse.Marshal(b, m, deterministic)
544}
545func (m *StartupConfigInfoResponse) XXX_Merge(src proto.Message) {
546 xxx_messageInfo_StartupConfigInfoResponse.Merge(m, src)
547}
548func (m *StartupConfigInfoResponse) XXX_Size() int {
549 return xxx_messageInfo_StartupConfigInfoResponse.Size(m)
550}
551func (m *StartupConfigInfoResponse) XXX_DiscardUnknown() {
552 xxx_messageInfo_StartupConfigInfoResponse.DiscardUnknown(m)
553}
554
555var xxx_messageInfo_StartupConfigInfoResponse proto.InternalMessageInfo
556
557func (m *StartupConfigInfoResponse) GetStatus() Status {
558 if m != nil {
559 return m.Status
560 }
561 return Status_UNDEFINED_STATUS
562}
563
564func (m *StartupConfigInfoResponse) GetReason() StartupConfigInfoResponse_Reason {
565 if m != nil {
566 return m.Reason
567 }
568 return StartupConfigInfoResponse_UNDEFINED_REASON
569}
570
571func (m *StartupConfigInfoResponse) GetConfigUrl() string {
572 if m != nil {
573 return m.ConfigUrl
574 }
575 return ""
576}
577
578func (m *StartupConfigInfoResponse) GetVersion() string {
579 if m != nil {
580 return m.Version
581 }
582 return ""
583}
584
amit.ghosh8ab1e6e2021-02-23 07:40:17 +0100585func (m *StartupConfigInfoResponse) GetReasonDetail() string {
586 if m != nil {
587 return m.ReasonDetail
588 }
589 return ""
590}
591
amit.ghosh5a689802022-09-12 14:26:10 +0200592type UploadDebugInfoRequest struct {
593 DeviceUuid *Uuid `protobuf:"bytes,1,opt,name=device_uuid,json=deviceUuid,proto3" json:"device_uuid,omitempty"`
594 // location_url is the remote location where the information needed for troubleshooting should be uploaded.
595 // Authentication (user/pass) if any should be in the location_url string
596 // The locaion_url would contain the protocol, credentials, the IP address/DNS of the server and the path of the directory
597 // e.g. sftp://upload_user:upload_pass@192.168.0.1:22/hw_debug_info/
598 LocationUrl string `protobuf:"bytes,3,opt,name=location_url,json=locationUrl,proto3" json:"location_url,omitempty"`
599 XXX_NoUnkeyedLiteral struct{} `json:"-"`
600 XXX_unrecognized []byte `json:"-"`
601 XXX_sizecache int32 `json:"-"`
602}
603
604func (m *UploadDebugInfoRequest) Reset() { *m = UploadDebugInfoRequest{} }
605func (m *UploadDebugInfoRequest) String() string { return proto.CompactTextString(m) }
606func (*UploadDebugInfoRequest) ProtoMessage() {}
607func (*UploadDebugInfoRequest) Descriptor() ([]byte, []int) {
608 return fileDescriptor_000929e4bec891d7, []int{7}
609}
610
611func (m *UploadDebugInfoRequest) XXX_Unmarshal(b []byte) error {
612 return xxx_messageInfo_UploadDebugInfoRequest.Unmarshal(m, b)
613}
614func (m *UploadDebugInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
615 return xxx_messageInfo_UploadDebugInfoRequest.Marshal(b, m, deterministic)
616}
617func (m *UploadDebugInfoRequest) XXX_Merge(src proto.Message) {
618 xxx_messageInfo_UploadDebugInfoRequest.Merge(m, src)
619}
620func (m *UploadDebugInfoRequest) XXX_Size() int {
621 return xxx_messageInfo_UploadDebugInfoRequest.Size(m)
622}
623func (m *UploadDebugInfoRequest) XXX_DiscardUnknown() {
624 xxx_messageInfo_UploadDebugInfoRequest.DiscardUnknown(m)
625}
626
627var xxx_messageInfo_UploadDebugInfoRequest proto.InternalMessageInfo
628
629func (m *UploadDebugInfoRequest) GetDeviceUuid() *Uuid {
630 if m != nil {
631 return m.DeviceUuid
632 }
633 return nil
634}
635
636func (m *UploadDebugInfoRequest) GetLocationUrl() string {
637 if m != nil {
638 return m.LocationUrl
639 }
640 return ""
641}
642
643// Implementations would be expected to stream multiple UploadDebugInfoStatus indicating the progress of the upload
644type UploadDebugInfoStatus struct {
645 DeviceUuid *Uuid `protobuf:"bytes,1,opt,name=device_uuid,json=deviceUuid,proto3" json:"device_uuid,omitempty"`
646 Status UploadDebugInfoStatus_UploadStatus `protobuf:"varint,2,opt,name=status,proto3,enum=dmi.UploadDebugInfoStatus_UploadStatus" json:"status,omitempty"`
647 // percent_uploaded is the percentage of the upload that is done
648 // should be a value between 0 and 100 when status is IN_PROGRESS
649 // should be 100 when status is COMPLETE
650 // can be set to -1 if the device manager implementations cannot support
651 // the progress percentage
652 PercentUploaded int32 `protobuf:"varint,3,opt,name=percent_uploaded,json=percentUploaded,proto3" json:"percent_uploaded,omitempty"`
653 Reason UploadDebugInfoStatus_Reason `protobuf:"varint,4,opt,name=reason,proto3,enum=dmi.UploadDebugInfoStatus_Reason" json:"reason,omitempty"`
654 LocationUrl string `protobuf:"bytes,5,opt,name=location_url,json=locationUrl,proto3" json:"location_url,omitempty"`
655 // file_name is the file at location_url where the debug information was uploaded.
656 // Implementations need to ensure that file_name is unique at the remote location.
657 FileName string `protobuf:"bytes,6,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"`
658 XXX_NoUnkeyedLiteral struct{} `json:"-"`
659 XXX_unrecognized []byte `json:"-"`
660 XXX_sizecache int32 `json:"-"`
661}
662
663func (m *UploadDebugInfoStatus) Reset() { *m = UploadDebugInfoStatus{} }
664func (m *UploadDebugInfoStatus) String() string { return proto.CompactTextString(m) }
665func (*UploadDebugInfoStatus) ProtoMessage() {}
666func (*UploadDebugInfoStatus) Descriptor() ([]byte, []int) {
667 return fileDescriptor_000929e4bec891d7, []int{8}
668}
669
670func (m *UploadDebugInfoStatus) XXX_Unmarshal(b []byte) error {
671 return xxx_messageInfo_UploadDebugInfoStatus.Unmarshal(m, b)
672}
673func (m *UploadDebugInfoStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
674 return xxx_messageInfo_UploadDebugInfoStatus.Marshal(b, m, deterministic)
675}
676func (m *UploadDebugInfoStatus) XXX_Merge(src proto.Message) {
677 xxx_messageInfo_UploadDebugInfoStatus.Merge(m, src)
678}
679func (m *UploadDebugInfoStatus) XXX_Size() int {
680 return xxx_messageInfo_UploadDebugInfoStatus.Size(m)
681}
682func (m *UploadDebugInfoStatus) XXX_DiscardUnknown() {
683 xxx_messageInfo_UploadDebugInfoStatus.DiscardUnknown(m)
684}
685
686var xxx_messageInfo_UploadDebugInfoStatus proto.InternalMessageInfo
687
688func (m *UploadDebugInfoStatus) GetDeviceUuid() *Uuid {
689 if m != nil {
690 return m.DeviceUuid
691 }
692 return nil
693}
694
695func (m *UploadDebugInfoStatus) GetStatus() UploadDebugInfoStatus_UploadStatus {
696 if m != nil {
697 return m.Status
698 }
699 return UploadDebugInfoStatus_UNDEFINED_UPLOAD_STATUS
700}
701
702func (m *UploadDebugInfoStatus) GetPercentUploaded() int32 {
703 if m != nil {
704 return m.PercentUploaded
705 }
706 return 0
707}
708
709func (m *UploadDebugInfoStatus) GetReason() UploadDebugInfoStatus_Reason {
710 if m != nil {
711 return m.Reason
712 }
713 return UploadDebugInfoStatus_UNDEFINED_REASON
714}
715
716func (m *UploadDebugInfoStatus) GetLocationUrl() string {
717 if m != nil {
718 return m.LocationUrl
719 }
720 return ""
721}
722
723func (m *UploadDebugInfoStatus) GetFileName() string {
724 if m != nil {
725 return m.FileName
726 }
727 return ""
728}
729
Amit Ghosh09f28362020-06-12 21:52:19 +0100730func init() {
amit.ghoshae473032021-01-10 11:59:10 +0100731 proto.RegisterEnum("dmi.GetSoftwareVersionInformationResponse_Reason", GetSoftwareVersionInformationResponse_Reason_name, GetSoftwareVersionInformationResponse_Reason_value)
732 proto.RegisterEnum("dmi.ConfigResponse_Reason", ConfigResponse_Reason_name, ConfigResponse_Reason_value)
amit.ghosh2c938b82021-01-14 11:34:03 +0100733 proto.RegisterEnum("dmi.StartupConfigInfoResponse_Reason", StartupConfigInfoResponse_Reason_name, StartupConfigInfoResponse_Reason_value)
amit.ghosh5a689802022-09-12 14:26:10 +0200734 proto.RegisterEnum("dmi.UploadDebugInfoStatus_UploadStatus", UploadDebugInfoStatus_UploadStatus_name, UploadDebugInfoStatus_UploadStatus_value)
735 proto.RegisterEnum("dmi.UploadDebugInfoStatus_Reason", UploadDebugInfoStatus_Reason_name, UploadDebugInfoStatus_Reason_value)
Amit Ghosh09f28362020-06-12 21:52:19 +0100736 proto.RegisterType((*SoftwareVersionInformation)(nil), "dmi.SoftwareVersionInformation")
aghoshc301dcd2020-09-03 16:55:34 +0100737 proto.RegisterType((*GetSoftwareVersionInformationResponse)(nil), "dmi.GetSoftwareVersionInformationResponse")
Amit Ghosh09f28362020-06-12 21:52:19 +0100738 proto.RegisterType((*DownloadImageRequest)(nil), "dmi.DownloadImageRequest")
amit.ghoshed23db02020-11-18 10:26:36 +0100739 proto.RegisterType((*ConfigRequest)(nil), "dmi.ConfigRequest")
740 proto.RegisterType((*ConfigResponse)(nil), "dmi.ConfigResponse")
amit.ghosh2c938b82021-01-14 11:34:03 +0100741 proto.RegisterType((*StartupConfigInfoRequest)(nil), "dmi.StartupConfigInfoRequest")
742 proto.RegisterType((*StartupConfigInfoResponse)(nil), "dmi.StartupConfigInfoResponse")
amit.ghosh5a689802022-09-12 14:26:10 +0200743 proto.RegisterType((*UploadDebugInfoRequest)(nil), "dmi.UploadDebugInfoRequest")
744 proto.RegisterType((*UploadDebugInfoStatus)(nil), "dmi.UploadDebugInfoStatus")
Amit Ghosh09f28362020-06-12 21:52:19 +0100745}
746
747func init() { proto.RegisterFile("dmi/sw_management_service.proto", fileDescriptor_000929e4bec891d7) }
748
749var fileDescriptor_000929e4bec891d7 = []byte{
amit.ghoshdfd5d7e2023-03-14 21:14:33 +0100750 // 1091 bytes of a gzipped FileDescriptorProto
751 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x56, 0xdd, 0x52, 0xdb, 0x46,
752 0x14, 0x8e, 0x7f, 0x13, 0x1f, 0x03, 0x56, 0x36, 0x90, 0x18, 0x33, 0x14, 0x70, 0x86, 0x29, 0xcd,
753 0x4c, 0x30, 0x35, 0xb9, 0x49, 0xd3, 0x9f, 0x31, 0xd6, 0x62, 0x34, 0x35, 0x12, 0x59, 0x59, 0x64,
754 0x92, 0xe9, 0x74, 0x47, 0x58, 0x6b, 0x47, 0x33, 0x96, 0xe4, 0x4a, 0x32, 0xb4, 0x2f, 0xd2, 0xab,
755 0x5e, 0xf7, 0xa2, 0x57, 0x7d, 0x81, 0x5e, 0xf4, 0x11, 0xfa, 0x46, 0x9d, 0xdd, 0x95, 0xc1, 0x18,
756 0x3b, 0x0d, 0x4c, 0x66, 0x7a, 0x27, 0x9d, 0x3d, 0x3f, 0xbb, 0xe7, 0xfb, 0xce, 0x0f, 0x6c, 0x38,
757 0x9e, 0x5b, 0x8b, 0x2e, 0xa8, 0x67, 0xfb, 0x76, 0x9f, 0x79, 0xcc, 0x8f, 0x69, 0xc4, 0xc2, 0x73,
758 0xb7, 0xcb, 0x76, 0x87, 0x61, 0x10, 0x07, 0x28, 0xe3, 0x78, 0x6e, 0xe5, 0x21, 0xd7, 0xea, 0x06,
759 0x9e, 0x17, 0xf8, 0x91, 0x94, 0x57, 0x16, 0xb8, 0xe8, 0xfd, 0x45, 0xf2, 0x87, 0x12, 0x37, 0xae,
760 0x67, 0xf7, 0x13, 0xcb, 0xea, 0xaf, 0x29, 0xa8, 0x98, 0x41, 0x2f, 0xbe, 0xb0, 0x43, 0x76, 0xca,
761 0xc2, 0xc8, 0x0d, 0x7c, 0xcd, 0xef, 0x05, 0xa1, 0x67, 0xc7, 0x6e, 0xe0, 0xa3, 0xaf, 0xa0, 0x64,
762 0x77, 0x63, 0xf7, 0x9c, 0xd1, 0x73, 0x79, 0x18, 0x95, 0x53, 0x9b, 0x99, 0x9d, 0x62, 0xfd, 0xe1,
763 0xae, 0xe3, 0xb9, 0xbb, 0x1a, 0xf7, 0x94, 0x98, 0x91, 0x25, 0xa9, 0x99, 0xfc, 0x46, 0xe8, 0x6b,
764 0x50, 0xa2, 0xd8, 0xf6, 0x9d, 0xb3, 0x5f, 0xae, 0x8c, 0xd3, 0xf3, 0x8c, 0x4b, 0x89, 0xea, 0xd8,
765 0xba, 0xfa, 0x4f, 0x1a, 0xb6, 0x5b, 0x2c, 0x9e, 0x7f, 0x37, 0xc2, 0xa2, 0x61, 0xe0, 0x47, 0x0c,
766 0x3d, 0x85, 0x7c, 0x14, 0xdb, 0xf1, 0x88, 0x5f, 0x2d, 0xb5, 0xb3, 0x54, 0x2f, 0x0a, 0xef, 0xa6,
767 0x10, 0x91, 0xe4, 0x08, 0x69, 0x90, 0x0f, 0x99, 0x1d, 0x05, 0x7e, 0x39, 0x2d, 0x94, 0xbe, 0x14,
768 0x4a, 0x1f, 0x15, 0x60, 0x97, 0x08, 0x43, 0x92, 0x38, 0x40, 0xfb, 0x90, 0x75, 0xfd, 0x5e, 0x50,
769 0xce, 0x6c, 0xa6, 0x76, 0x8a, 0xf5, 0x0d, 0x19, 0x6d, 0xbe, 0x17, 0xa1, 0x8c, 0x9e, 0xc2, 0xa2,
770 0x34, 0xa7, 0x0e, 0x8b, 0x6d, 0x77, 0x50, 0xce, 0x6e, 0xa6, 0x76, 0x0a, 0x64, 0x41, 0x0a, 0x55,
771 0x21, 0xab, 0xfe, 0x08, 0x79, 0x19, 0x0b, 0x2d, 0x83, 0x62, 0xe9, 0x2a, 0x3e, 0xd4, 0x74, 0xac,
772 0x52, 0x82, 0x1b, 0xa6, 0xa1, 0x2b, 0xf7, 0x10, 0x82, 0x25, 0x4b, 0xff, 0x5e, 0x37, 0xde, 0xe8,
773 0x54, 0xc5, 0xa7, 0x5a, 0x13, 0x2b, 0x29, 0x2e, 0xd3, 0xf4, 0x0e, 0x26, 0x7a, 0xa3, 0x4d, 0x31,
774 0x21, 0x06, 0x51, 0xd2, 0xe8, 0x31, 0x20, 0x79, 0x4e, 0x2d, 0x9d, 0xe0, 0x46, 0xf3, 0xa8, 0x71,
775 0xd0, 0xc6, 0x4a, 0xa6, 0xfa, 0x33, 0x2c, 0xab, 0xc1, 0x85, 0x3f, 0x08, 0x6c, 0x47, 0x24, 0x9f,
776 0xb0, 0x9f, 0x46, 0x2c, 0x8a, 0xd1, 0x33, 0x28, 0x3a, 0x8c, 0xd3, 0x89, 0x8e, 0x46, 0xae, 0x23,
777 0xd2, 0x58, 0xac, 0x17, 0xc4, 0xc3, 0xac, 0x91, 0xeb, 0x10, 0x90, 0xa7, 0xfc, 0x1b, 0xbd, 0x00,
778 0x10, 0xfc, 0xa1, 0x22, 0x07, 0x69, 0xa1, 0xba, 0x72, 0x85, 0xe7, 0xe4, 0xcb, 0x0b, 0xee, 0x58,
779 0x52, 0x7d, 0x07, 0x8b, 0xcd, 0xc0, 0xef, 0xb9, 0xfd, 0xbb, 0x84, 0x5c, 0x07, 0xe8, 0x0a, 0x63,
780 0x3a, 0x0a, 0x07, 0x22, 0x64, 0x81, 0x14, 0xa4, 0xc4, 0x0a, 0x07, 0xd5, 0xbf, 0xd3, 0xb0, 0x34,
781 0x76, 0x7e, 0x1b, 0x4a, 0xd4, 0xa7, 0x28, 0x51, 0x11, 0x4a, 0xd7, 0x3d, 0x4d, 0x63, 0x7f, 0x03,
782 0xc6, 0xcc, 0x0c, 0x18, 0xff, 0x4c, 0x7d, 0x22, 0x1c, 0x57, 0x61, 0x45, 0x7c, 0xd2, 0x43, 0xdc,
783 0x69, 0x1e, 0x69, 0x7a, 0x8b, 0x36, 0x0d, 0xfd, 0x50, 0x6b, 0x29, 0x19, 0xa9, 0x7e, 0xda, 0x68,
784 0x6b, 0xea, 0x58, 0x96, 0x45, 0x5b, 0xb0, 0x6e, 0x9c, 0x60, 0xd2, 0xe8, 0x68, 0x86, 0x4e, 0x1b,
785 0x6d, 0x82, 0x1b, 0xea, 0x5b, 0xaa, 0xe9, 0xf4, 0x84, 0x18, 0x2d, 0x82, 0x4d, 0x53, 0xc9, 0xcd,
786 0x61, 0x46, 0xbe, 0x7a, 0x08, 0x65, 0x33, 0xb6, 0xc3, 0x78, 0x34, 0x94, 0xef, 0xe7, 0xa0, 0xdd,
787 0x01, 0xaa, 0xea, 0x5f, 0x69, 0x58, 0x9d, 0xe1, 0xe8, 0x36, 0xb0, 0x7c, 0x33, 0x05, 0xcb, 0xf6,
788 0x58, 0x69, 0xb6, 0xd3, 0x69, 0x84, 0xae, 0x93, 0x25, 0x33, 0x45, 0x16, 0x54, 0x86, 0xfb, 0x49,
789 0x33, 0x4a, 0x2a, 0x70, 0xfc, 0x7b, 0x13, 0xda, 0xdc, 0xff, 0x50, 0xa1, 0x7d, 0x78, 0x6c, 0x0d,
790 0x79, 0x7d, 0xaa, 0xec, 0x6c, 0x74, 0x57, 0x14, 0xd0, 0x16, 0x2c, 0x0c, 0x82, 0xae, 0x28, 0xc2,
791 0x89, 0x2c, 0x14, 0xc7, 0x32, 0x5e, 0x34, 0x7f, 0xe4, 0x60, 0x65, 0x2a, 0x92, 0xc4, 0xe1, 0x56,
792 0x81, 0xbe, 0xbb, 0x04, 0x54, 0x62, 0xf5, 0xb9, 0x54, 0x9b, 0xe5, 0x37, 0x91, 0x4e, 0x81, 0xfd,
793 0x05, 0x28, 0x43, 0x16, 0x76, 0xf9, 0x44, 0x1b, 0x89, 0x73, 0xe6, 0x88, 0xdb, 0xe6, 0x48, 0x29,
794 0x91, 0x5b, 0x89, 0x18, 0xbd, 0xbc, 0xe4, 0x45, 0x56, 0xc4, 0xda, 0xfa, 0x40, 0xac, 0x29, 0x4e,
795 0x4c, 0xe7, 0x23, 0x77, 0x23, 0x1f, 0x68, 0x0d, 0x0a, 0x3d, 0x77, 0xc0, 0xa8, 0x6f, 0x7b, 0xac,
796 0x9c, 0x17, 0xe7, 0x0f, 0xb8, 0x40, 0xb7, 0x3d, 0x56, 0xb5, 0x60, 0x61, 0xf2, 0xf6, 0x68, 0x0d,
797 0x9e, 0x5c, 0x61, 0x6f, 0x9d, 0xb4, 0x8d, 0x86, 0x4a, 0xcd, 0x4e, 0xa3, 0x63, 0x99, 0xca, 0x3d,
798 0xb4, 0x00, 0x0f, 0x9a, 0xc6, 0xf1, 0x49, 0x1b, 0x77, 0x38, 0xf8, 0x25, 0x28, 0x4e, 0x56, 0x60,
799 0x1a, 0x15, 0x20, 0x27, 0x49, 0x90, 0xa9, 0xfe, 0x9e, 0xfe, 0x44, 0x6c, 0x2a, 0xc3, 0x72, 0xc2,
800 0x26, 0xdd, 0xe8, 0xd0, 0x09, 0x3e, 0xa1, 0x0d, 0x58, 0x23, 0xf8, 0xd8, 0xe8, 0x60, 0xda, 0x36,
801 0x9a, 0xb2, 0x31, 0x4c, 0x12, 0x2e, 0x8b, 0xb6, 0x61, 0x6b, 0x5a, 0xe1, 0x04, 0x93, 0x63, 0xcd,
802 0x34, 0xf9, 0xa7, 0x8a, 0x75, 0x0d, 0xab, 0x4a, 0x0e, 0x3d, 0x81, 0x47, 0xb2, 0x13, 0xa9, 0x16,
803 0xe1, 0x7d, 0x48, 0x3e, 0x5a, 0xc9, 0xf3, 0xf7, 0x25, 0xa1, 0x0f, 0x2c, 0xf3, 0xad, 0x72, 0x9f,
804 0xbf, 0x44, 0x6a, 0x6a, 0x3a, 0x25, 0xf8, 0xb5, 0x85, 0xcd, 0x8e, 0xf2, 0x80, 0x77, 0xb2, 0x44,
805 0x4d, 0xd3, 0xe9, 0x1b, 0x62, 0xe8, 0x2d, 0x91, 0x30, 0xac, 0x14, 0xfe, 0xbb, 0x6b, 0x41, 0xfd,
806 0xb7, 0x2c, 0x6c, 0xe8, 0x36, 0x5f, 0x2e, 0xc6, 0x73, 0xf6, 0xf8, 0x72, 0x13, 0x32, 0xe5, 0x22,
807 0x84, 0x5e, 0x03, 0xba, 0x39, 0xcd, 0x51, 0x49, 0x90, 0xe4, 0xc8, 0x0e, 0x1d, 0x2e, 0xd5, 0xd4,
808 0xca, 0xb3, 0x8f, 0x9f, 0xfb, 0xe8, 0x5b, 0x58, 0xbc, 0x36, 0x2e, 0xd1, 0xaa, 0x30, 0x9e, 0x35,
809 0x42, 0x2b, 0xca, 0xd5, 0x08, 0x94, 0x24, 0xd9, 0x4b, 0xa1, 0x17, 0xb0, 0xd8, 0xe0, 0x2b, 0x91,
810 0x1d, 0x33, 0x69, 0x7f, 0xe3, 0x36, 0xb3, 0xac, 0x5e, 0xc1, 0x32, 0x61, 0xe7, 0x2c, 0x8c, 0x3b,
811 0x9c, 0xcd, 0x7c, 0x27, 0xba, 0x85, 0x71, 0x0b, 0x2a, 0xd6, 0xd0, 0xb1, 0x63, 0x76, 0xad, 0x5f,
812 0x8e, 0x42, 0xb9, 0xcd, 0xa1, 0x6b, 0x13, 0x4e, 0x5e, 0xfc, 0xd1, 0x8c, 0xa9, 0xb7, 0x97, 0x42,
813 0x3f, 0xc0, 0x1a, 0x4f, 0xd2, 0x0c, 0x2f, 0x3c, 0x53, 0x68, 0x7d, 0x5e, 0x53, 0x96, 0x4e, 0x3f,
814 0xfb, 0x70, 0xcf, 0x46, 0x6d, 0x28, 0x4d, 0x15, 0x2e, 0x5a, 0x9b, 0x55, 0xce, 0x63, 0x7f, 0x95,
815 0xf9, 0xb5, 0xbe, 0x97, 0x3a, 0x78, 0xf5, 0xee, 0x65, 0xdf, 0x8d, 0xdf, 0x8f, 0xce, 0x76, 0xbb,
816 0x81, 0x57, 0x0b, 0x86, 0xcc, 0xef, 0x06, 0xa1, 0x53, 0x93, 0x7d, 0xea, 0xf9, 0xd5, 0xd2, 0xfc,
817 0xdc, 0xf5, 0x63, 0x16, 0xf6, 0xec, 0x2e, 0xab, 0x9d, 0xef, 0xd7, 0xfa, 0x41, 0xcd, 0xf1, 0xdc,
818 0xb3, 0xbc, 0xd8, 0x83, 0xf7, 0xff, 0x0d, 0x00, 0x00, 0xff, 0xff, 0xd3, 0x65, 0x3c, 0xff, 0x64,
819 0x0b, 0x00, 0x00,
Amit Ghosh09f28362020-06-12 21:52:19 +0100820}
821
822// Reference imports to suppress errors if they are not otherwise used.
823var _ context.Context
824var _ grpc.ClientConn
825
826// This is a compile-time assertion to ensure that this generated file
827// is compatible with the grpc package it is being compiled against.
828const _ = grpc.SupportPackageIsVersion4
829
830// NativeSoftwareManagementServiceClient is the client API for NativeSoftwareManagementService service.
831//
832// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
833type NativeSoftwareManagementServiceClient interface {
834 // Get the software version information of the Active and Standby images
aghoshc301dcd2020-09-03 16:55:34 +0100835 GetSoftwareVersion(ctx context.Context, in *HardwareID, opts ...grpc.CallOption) (*GetSoftwareVersionInformationResponse, error)
Amit Ghosh09f28362020-06-12 21:52:19 +0100836 // Downloads and installs the image in the standby partition, returns the status/progress of the Install
837 DownloadImage(ctx context.Context, in *DownloadImageRequest, opts ...grpc.CallOption) (NativeSoftwareManagementService_DownloadImageClient, error)
838 // Activates and runs the OLT with the image in the standby partition. If things are fine this image will
839 // henceforth be marked as the Active Partition. The old working image would remain on the Standby partition.
840 // Any possibly required (sub-)steps like "commit" are left to the "Device Manager"
841 ActivateImage(ctx context.Context, in *HardwareID, opts ...grpc.CallOption) (NativeSoftwareManagementService_ActivateImageClient, error)
842 // 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 +0100843 // This API is to be used if operator wants to go back to the previous software
Amit Ghosh09f28362020-06-12 21:52:19 +0100844 RevertToStandbyImage(ctx context.Context, in *HardwareID, opts ...grpc.CallOption) (NativeSoftwareManagementService_RevertToStandbyImageClient, error)
amit.ghoshed23db02020-11-18 10:26:36 +0100845 // This API can be used to let the devices pickup their properitary configuration which they need at startup.
846 UpdateStartupConfiguration(ctx context.Context, in *ConfigRequest, opts ...grpc.CallOption) (NativeSoftwareManagementService_UpdateStartupConfigurationClient, error)
amit.ghosh2c938b82021-01-14 11:34:03 +0100847 // This API can be used to retrieve information about the current startup configuration that a device is using
848 GetStartupConfigurationInfo(ctx context.Context, in *StartupConfigInfoRequest, opts ...grpc.CallOption) (*StartupConfigInfoResponse, error)
amit.ghosh5a689802022-09-12 14:26:10 +0200849 // This API can be used to upload to a remote location, information useful for troubleshooting problems on the hardware
850 UploadDebugInfo(ctx context.Context, in *UploadDebugInfoRequest, opts ...grpc.CallOption) (NativeSoftwareManagementService_UploadDebugInfoClient, error)
Amit Ghosh09f28362020-06-12 21:52:19 +0100851}
852
853type nativeSoftwareManagementServiceClient struct {
854 cc *grpc.ClientConn
855}
856
857func NewNativeSoftwareManagementServiceClient(cc *grpc.ClientConn) NativeSoftwareManagementServiceClient {
858 return &nativeSoftwareManagementServiceClient{cc}
859}
860
aghoshc301dcd2020-09-03 16:55:34 +0100861func (c *nativeSoftwareManagementServiceClient) GetSoftwareVersion(ctx context.Context, in *HardwareID, opts ...grpc.CallOption) (*GetSoftwareVersionInformationResponse, error) {
862 out := new(GetSoftwareVersionInformationResponse)
Amit Ghosh09f28362020-06-12 21:52:19 +0100863 err := c.cc.Invoke(ctx, "/dmi.NativeSoftwareManagementService/GetSoftwareVersion", in, out, opts...)
864 if err != nil {
865 return nil, err
866 }
867 return out, nil
868}
869
870func (c *nativeSoftwareManagementServiceClient) DownloadImage(ctx context.Context, in *DownloadImageRequest, opts ...grpc.CallOption) (NativeSoftwareManagementService_DownloadImageClient, error) {
871 stream, err := c.cc.NewStream(ctx, &_NativeSoftwareManagementService_serviceDesc.Streams[0], "/dmi.NativeSoftwareManagementService/DownloadImage", opts...)
872 if err != nil {
873 return nil, err
874 }
875 x := &nativeSoftwareManagementServiceDownloadImageClient{stream}
876 if err := x.ClientStream.SendMsg(in); err != nil {
877 return nil, err
878 }
879 if err := x.ClientStream.CloseSend(); err != nil {
880 return nil, err
881 }
882 return x, nil
883}
884
885type NativeSoftwareManagementService_DownloadImageClient interface {
886 Recv() (*ImageStatus, error)
887 grpc.ClientStream
888}
889
890type nativeSoftwareManagementServiceDownloadImageClient struct {
891 grpc.ClientStream
892}
893
894func (x *nativeSoftwareManagementServiceDownloadImageClient) Recv() (*ImageStatus, error) {
895 m := new(ImageStatus)
896 if err := x.ClientStream.RecvMsg(m); err != nil {
897 return nil, err
898 }
899 return m, nil
900}
901
902func (c *nativeSoftwareManagementServiceClient) ActivateImage(ctx context.Context, in *HardwareID, opts ...grpc.CallOption) (NativeSoftwareManagementService_ActivateImageClient, error) {
903 stream, err := c.cc.NewStream(ctx, &_NativeSoftwareManagementService_serviceDesc.Streams[1], "/dmi.NativeSoftwareManagementService/ActivateImage", opts...)
904 if err != nil {
905 return nil, err
906 }
907 x := &nativeSoftwareManagementServiceActivateImageClient{stream}
908 if err := x.ClientStream.SendMsg(in); err != nil {
909 return nil, err
910 }
911 if err := x.ClientStream.CloseSend(); err != nil {
912 return nil, err
913 }
914 return x, nil
915}
916
917type NativeSoftwareManagementService_ActivateImageClient interface {
918 Recv() (*ImageStatus, error)
919 grpc.ClientStream
920}
921
922type nativeSoftwareManagementServiceActivateImageClient struct {
923 grpc.ClientStream
924}
925
926func (x *nativeSoftwareManagementServiceActivateImageClient) Recv() (*ImageStatus, error) {
927 m := new(ImageStatus)
928 if err := x.ClientStream.RecvMsg(m); err != nil {
929 return nil, err
930 }
931 return m, nil
932}
933
934func (c *nativeSoftwareManagementServiceClient) RevertToStandbyImage(ctx context.Context, in *HardwareID, opts ...grpc.CallOption) (NativeSoftwareManagementService_RevertToStandbyImageClient, error) {
935 stream, err := c.cc.NewStream(ctx, &_NativeSoftwareManagementService_serviceDesc.Streams[2], "/dmi.NativeSoftwareManagementService/RevertToStandbyImage", opts...)
936 if err != nil {
937 return nil, err
938 }
939 x := &nativeSoftwareManagementServiceRevertToStandbyImageClient{stream}
940 if err := x.ClientStream.SendMsg(in); err != nil {
941 return nil, err
942 }
943 if err := x.ClientStream.CloseSend(); err != nil {
944 return nil, err
945 }
946 return x, nil
947}
948
949type NativeSoftwareManagementService_RevertToStandbyImageClient interface {
950 Recv() (*ImageStatus, error)
951 grpc.ClientStream
952}
953
954type nativeSoftwareManagementServiceRevertToStandbyImageClient struct {
955 grpc.ClientStream
956}
957
958func (x *nativeSoftwareManagementServiceRevertToStandbyImageClient) Recv() (*ImageStatus, error) {
959 m := new(ImageStatus)
960 if err := x.ClientStream.RecvMsg(m); err != nil {
961 return nil, err
962 }
963 return m, nil
964}
965
amit.ghoshed23db02020-11-18 10:26:36 +0100966func (c *nativeSoftwareManagementServiceClient) UpdateStartupConfiguration(ctx context.Context, in *ConfigRequest, opts ...grpc.CallOption) (NativeSoftwareManagementService_UpdateStartupConfigurationClient, error) {
967 stream, err := c.cc.NewStream(ctx, &_NativeSoftwareManagementService_serviceDesc.Streams[3], "/dmi.NativeSoftwareManagementService/UpdateStartupConfiguration", opts...)
968 if err != nil {
969 return nil, err
970 }
971 x := &nativeSoftwareManagementServiceUpdateStartupConfigurationClient{stream}
972 if err := x.ClientStream.SendMsg(in); err != nil {
973 return nil, err
974 }
975 if err := x.ClientStream.CloseSend(); err != nil {
976 return nil, err
977 }
978 return x, nil
979}
980
981type NativeSoftwareManagementService_UpdateStartupConfigurationClient interface {
982 Recv() (*ConfigResponse, error)
983 grpc.ClientStream
984}
985
986type nativeSoftwareManagementServiceUpdateStartupConfigurationClient struct {
987 grpc.ClientStream
988}
989
990func (x *nativeSoftwareManagementServiceUpdateStartupConfigurationClient) Recv() (*ConfigResponse, error) {
991 m := new(ConfigResponse)
992 if err := x.ClientStream.RecvMsg(m); err != nil {
993 return nil, err
994 }
995 return m, nil
996}
997
amit.ghosh2c938b82021-01-14 11:34:03 +0100998func (c *nativeSoftwareManagementServiceClient) GetStartupConfigurationInfo(ctx context.Context, in *StartupConfigInfoRequest, opts ...grpc.CallOption) (*StartupConfigInfoResponse, error) {
999 out := new(StartupConfigInfoResponse)
1000 err := c.cc.Invoke(ctx, "/dmi.NativeSoftwareManagementService/GetStartupConfigurationInfo", in, out, opts...)
1001 if err != nil {
1002 return nil, err
1003 }
1004 return out, nil
1005}
1006
amit.ghosh5a689802022-09-12 14:26:10 +02001007func (c *nativeSoftwareManagementServiceClient) UploadDebugInfo(ctx context.Context, in *UploadDebugInfoRequest, opts ...grpc.CallOption) (NativeSoftwareManagementService_UploadDebugInfoClient, error) {
1008 stream, err := c.cc.NewStream(ctx, &_NativeSoftwareManagementService_serviceDesc.Streams[4], "/dmi.NativeSoftwareManagementService/UploadDebugInfo", opts...)
1009 if err != nil {
1010 return nil, err
1011 }
1012 x := &nativeSoftwareManagementServiceUploadDebugInfoClient{stream}
1013 if err := x.ClientStream.SendMsg(in); err != nil {
1014 return nil, err
1015 }
1016 if err := x.ClientStream.CloseSend(); err != nil {
1017 return nil, err
1018 }
1019 return x, nil
1020}
1021
1022type NativeSoftwareManagementService_UploadDebugInfoClient interface {
1023 Recv() (*UploadDebugInfoStatus, error)
1024 grpc.ClientStream
1025}
1026
1027type nativeSoftwareManagementServiceUploadDebugInfoClient struct {
1028 grpc.ClientStream
1029}
1030
1031func (x *nativeSoftwareManagementServiceUploadDebugInfoClient) Recv() (*UploadDebugInfoStatus, error) {
1032 m := new(UploadDebugInfoStatus)
1033 if err := x.ClientStream.RecvMsg(m); err != nil {
1034 return nil, err
1035 }
1036 return m, nil
1037}
1038
Amit Ghosh09f28362020-06-12 21:52:19 +01001039// NativeSoftwareManagementServiceServer is the server API for NativeSoftwareManagementService service.
1040type NativeSoftwareManagementServiceServer interface {
1041 // Get the software version information of the Active and Standby images
aghoshc301dcd2020-09-03 16:55:34 +01001042 GetSoftwareVersion(context.Context, *HardwareID) (*GetSoftwareVersionInformationResponse, error)
Amit Ghosh09f28362020-06-12 21:52:19 +01001043 // Downloads and installs the image in the standby partition, returns the status/progress of the Install
1044 DownloadImage(*DownloadImageRequest, NativeSoftwareManagementService_DownloadImageServer) error
1045 // Activates and runs the OLT with the image in the standby partition. If things are fine this image will
1046 // henceforth be marked as the Active Partition. The old working image would remain on the Standby partition.
1047 // Any possibly required (sub-)steps like "commit" are left to the "Device Manager"
1048 ActivateImage(*HardwareID, NativeSoftwareManagementService_ActivateImageServer) error
1049 // 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 +01001050 // This API is to be used if operator wants to go back to the previous software
Amit Ghosh09f28362020-06-12 21:52:19 +01001051 RevertToStandbyImage(*HardwareID, NativeSoftwareManagementService_RevertToStandbyImageServer) error
amit.ghoshed23db02020-11-18 10:26:36 +01001052 // This API can be used to let the devices pickup their properitary configuration which they need at startup.
1053 UpdateStartupConfiguration(*ConfigRequest, NativeSoftwareManagementService_UpdateStartupConfigurationServer) error
amit.ghosh2c938b82021-01-14 11:34:03 +01001054 // This API can be used to retrieve information about the current startup configuration that a device is using
1055 GetStartupConfigurationInfo(context.Context, *StartupConfigInfoRequest) (*StartupConfigInfoResponse, error)
amit.ghosh5a689802022-09-12 14:26:10 +02001056 // This API can be used to upload to a remote location, information useful for troubleshooting problems on the hardware
1057 UploadDebugInfo(*UploadDebugInfoRequest, NativeSoftwareManagementService_UploadDebugInfoServer) error
Amit Ghosh09f28362020-06-12 21:52:19 +01001058}
1059
Andrea Campanellac795b7d2021-04-14 13:24:44 +02001060// UnimplementedNativeSoftwareManagementServiceServer can be embedded to have forward compatible implementations.
1061type UnimplementedNativeSoftwareManagementServiceServer struct {
1062}
1063
1064func (*UnimplementedNativeSoftwareManagementServiceServer) GetSoftwareVersion(ctx context.Context, req *HardwareID) (*GetSoftwareVersionInformationResponse, error) {
1065 return nil, status.Errorf(codes.Unimplemented, "method GetSoftwareVersion not implemented")
1066}
1067func (*UnimplementedNativeSoftwareManagementServiceServer) DownloadImage(req *DownloadImageRequest, srv NativeSoftwareManagementService_DownloadImageServer) error {
1068 return status.Errorf(codes.Unimplemented, "method DownloadImage not implemented")
1069}
1070func (*UnimplementedNativeSoftwareManagementServiceServer) ActivateImage(req *HardwareID, srv NativeSoftwareManagementService_ActivateImageServer) error {
1071 return status.Errorf(codes.Unimplemented, "method ActivateImage not implemented")
1072}
1073func (*UnimplementedNativeSoftwareManagementServiceServer) RevertToStandbyImage(req *HardwareID, srv NativeSoftwareManagementService_RevertToStandbyImageServer) error {
1074 return status.Errorf(codes.Unimplemented, "method RevertToStandbyImage not implemented")
1075}
1076func (*UnimplementedNativeSoftwareManagementServiceServer) UpdateStartupConfiguration(req *ConfigRequest, srv NativeSoftwareManagementService_UpdateStartupConfigurationServer) error {
1077 return status.Errorf(codes.Unimplemented, "method UpdateStartupConfiguration not implemented")
1078}
1079func (*UnimplementedNativeSoftwareManagementServiceServer) GetStartupConfigurationInfo(ctx context.Context, req *StartupConfigInfoRequest) (*StartupConfigInfoResponse, error) {
1080 return nil, status.Errorf(codes.Unimplemented, "method GetStartupConfigurationInfo not implemented")
1081}
amit.ghosh5a689802022-09-12 14:26:10 +02001082func (*UnimplementedNativeSoftwareManagementServiceServer) UploadDebugInfo(req *UploadDebugInfoRequest, srv NativeSoftwareManagementService_UploadDebugInfoServer) error {
1083 return status.Errorf(codes.Unimplemented, "method UploadDebugInfo not implemented")
1084}
Andrea Campanellac795b7d2021-04-14 13:24:44 +02001085
Amit Ghosh09f28362020-06-12 21:52:19 +01001086func RegisterNativeSoftwareManagementServiceServer(s *grpc.Server, srv NativeSoftwareManagementServiceServer) {
1087 s.RegisterService(&_NativeSoftwareManagementService_serviceDesc, srv)
1088}
1089
1090func _NativeSoftwareManagementService_GetSoftwareVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1091 in := new(HardwareID)
1092 if err := dec(in); err != nil {
1093 return nil, err
1094 }
1095 if interceptor == nil {
1096 return srv.(NativeSoftwareManagementServiceServer).GetSoftwareVersion(ctx, in)
1097 }
1098 info := &grpc.UnaryServerInfo{
1099 Server: srv,
1100 FullMethod: "/dmi.NativeSoftwareManagementService/GetSoftwareVersion",
1101 }
1102 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1103 return srv.(NativeSoftwareManagementServiceServer).GetSoftwareVersion(ctx, req.(*HardwareID))
1104 }
1105 return interceptor(ctx, in, info, handler)
1106}
1107
1108func _NativeSoftwareManagementService_DownloadImage_Handler(srv interface{}, stream grpc.ServerStream) error {
1109 m := new(DownloadImageRequest)
1110 if err := stream.RecvMsg(m); err != nil {
1111 return err
1112 }
1113 return srv.(NativeSoftwareManagementServiceServer).DownloadImage(m, &nativeSoftwareManagementServiceDownloadImageServer{stream})
1114}
1115
1116type NativeSoftwareManagementService_DownloadImageServer interface {
1117 Send(*ImageStatus) error
1118 grpc.ServerStream
1119}
1120
1121type nativeSoftwareManagementServiceDownloadImageServer struct {
1122 grpc.ServerStream
1123}
1124
1125func (x *nativeSoftwareManagementServiceDownloadImageServer) Send(m *ImageStatus) error {
1126 return x.ServerStream.SendMsg(m)
1127}
1128
1129func _NativeSoftwareManagementService_ActivateImage_Handler(srv interface{}, stream grpc.ServerStream) error {
1130 m := new(HardwareID)
1131 if err := stream.RecvMsg(m); err != nil {
1132 return err
1133 }
1134 return srv.(NativeSoftwareManagementServiceServer).ActivateImage(m, &nativeSoftwareManagementServiceActivateImageServer{stream})
1135}
1136
1137type NativeSoftwareManagementService_ActivateImageServer interface {
1138 Send(*ImageStatus) error
1139 grpc.ServerStream
1140}
1141
1142type nativeSoftwareManagementServiceActivateImageServer struct {
1143 grpc.ServerStream
1144}
1145
1146func (x *nativeSoftwareManagementServiceActivateImageServer) Send(m *ImageStatus) error {
1147 return x.ServerStream.SendMsg(m)
1148}
1149
1150func _NativeSoftwareManagementService_RevertToStandbyImage_Handler(srv interface{}, stream grpc.ServerStream) error {
1151 m := new(HardwareID)
1152 if err := stream.RecvMsg(m); err != nil {
1153 return err
1154 }
1155 return srv.(NativeSoftwareManagementServiceServer).RevertToStandbyImage(m, &nativeSoftwareManagementServiceRevertToStandbyImageServer{stream})
1156}
1157
1158type NativeSoftwareManagementService_RevertToStandbyImageServer interface {
1159 Send(*ImageStatus) error
1160 grpc.ServerStream
1161}
1162
1163type nativeSoftwareManagementServiceRevertToStandbyImageServer struct {
1164 grpc.ServerStream
1165}
1166
1167func (x *nativeSoftwareManagementServiceRevertToStandbyImageServer) Send(m *ImageStatus) error {
1168 return x.ServerStream.SendMsg(m)
1169}
1170
amit.ghoshed23db02020-11-18 10:26:36 +01001171func _NativeSoftwareManagementService_UpdateStartupConfiguration_Handler(srv interface{}, stream grpc.ServerStream) error {
1172 m := new(ConfigRequest)
1173 if err := stream.RecvMsg(m); err != nil {
1174 return err
1175 }
1176 return srv.(NativeSoftwareManagementServiceServer).UpdateStartupConfiguration(m, &nativeSoftwareManagementServiceUpdateStartupConfigurationServer{stream})
1177}
1178
1179type NativeSoftwareManagementService_UpdateStartupConfigurationServer interface {
1180 Send(*ConfigResponse) error
1181 grpc.ServerStream
1182}
1183
1184type nativeSoftwareManagementServiceUpdateStartupConfigurationServer struct {
1185 grpc.ServerStream
1186}
1187
1188func (x *nativeSoftwareManagementServiceUpdateStartupConfigurationServer) Send(m *ConfigResponse) error {
1189 return x.ServerStream.SendMsg(m)
1190}
1191
amit.ghosh2c938b82021-01-14 11:34:03 +01001192func _NativeSoftwareManagementService_GetStartupConfigurationInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1193 in := new(StartupConfigInfoRequest)
1194 if err := dec(in); err != nil {
1195 return nil, err
1196 }
1197 if interceptor == nil {
1198 return srv.(NativeSoftwareManagementServiceServer).GetStartupConfigurationInfo(ctx, in)
1199 }
1200 info := &grpc.UnaryServerInfo{
1201 Server: srv,
1202 FullMethod: "/dmi.NativeSoftwareManagementService/GetStartupConfigurationInfo",
1203 }
1204 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1205 return srv.(NativeSoftwareManagementServiceServer).GetStartupConfigurationInfo(ctx, req.(*StartupConfigInfoRequest))
1206 }
1207 return interceptor(ctx, in, info, handler)
1208}
1209
amit.ghosh5a689802022-09-12 14:26:10 +02001210func _NativeSoftwareManagementService_UploadDebugInfo_Handler(srv interface{}, stream grpc.ServerStream) error {
1211 m := new(UploadDebugInfoRequest)
1212 if err := stream.RecvMsg(m); err != nil {
1213 return err
1214 }
1215 return srv.(NativeSoftwareManagementServiceServer).UploadDebugInfo(m, &nativeSoftwareManagementServiceUploadDebugInfoServer{stream})
1216}
1217
1218type NativeSoftwareManagementService_UploadDebugInfoServer interface {
1219 Send(*UploadDebugInfoStatus) error
1220 grpc.ServerStream
1221}
1222
1223type nativeSoftwareManagementServiceUploadDebugInfoServer struct {
1224 grpc.ServerStream
1225}
1226
1227func (x *nativeSoftwareManagementServiceUploadDebugInfoServer) Send(m *UploadDebugInfoStatus) error {
1228 return x.ServerStream.SendMsg(m)
1229}
1230
Amit Ghosh09f28362020-06-12 21:52:19 +01001231var _NativeSoftwareManagementService_serviceDesc = grpc.ServiceDesc{
1232 ServiceName: "dmi.NativeSoftwareManagementService",
1233 HandlerType: (*NativeSoftwareManagementServiceServer)(nil),
1234 Methods: []grpc.MethodDesc{
1235 {
1236 MethodName: "GetSoftwareVersion",
1237 Handler: _NativeSoftwareManagementService_GetSoftwareVersion_Handler,
1238 },
amit.ghosh2c938b82021-01-14 11:34:03 +01001239 {
1240 MethodName: "GetStartupConfigurationInfo",
1241 Handler: _NativeSoftwareManagementService_GetStartupConfigurationInfo_Handler,
1242 },
Amit Ghosh09f28362020-06-12 21:52:19 +01001243 },
1244 Streams: []grpc.StreamDesc{
1245 {
1246 StreamName: "DownloadImage",
1247 Handler: _NativeSoftwareManagementService_DownloadImage_Handler,
1248 ServerStreams: true,
1249 },
1250 {
1251 StreamName: "ActivateImage",
1252 Handler: _NativeSoftwareManagementService_ActivateImage_Handler,
1253 ServerStreams: true,
1254 },
1255 {
1256 StreamName: "RevertToStandbyImage",
1257 Handler: _NativeSoftwareManagementService_RevertToStandbyImage_Handler,
1258 ServerStreams: true,
1259 },
amit.ghoshed23db02020-11-18 10:26:36 +01001260 {
1261 StreamName: "UpdateStartupConfiguration",
1262 Handler: _NativeSoftwareManagementService_UpdateStartupConfiguration_Handler,
1263 ServerStreams: true,
1264 },
amit.ghosh5a689802022-09-12 14:26:10 +02001265 {
1266 StreamName: "UploadDebugInfo",
1267 Handler: _NativeSoftwareManagementService_UploadDebugInfo_Handler,
1268 ServerStreams: true,
1269 },
Amit Ghosh09f28362020-06-12 21:52:19 +01001270 },
1271 Metadata: "dmi/sw_management_service.proto",
1272}