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