blob: cdda37289e46adb72a214779a19d3d12bad5fa80 [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.
Abhilash laxmeshware33e67a2025-01-15 15:34:56 +0530657 // file_name to be shared in the response stream when the upload begins.
amit.ghosh5a689802022-09-12 14:26:10 +0200658 FileName string `protobuf:"bytes,6,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"`
659 XXX_NoUnkeyedLiteral struct{} `json:"-"`
660 XXX_unrecognized []byte `json:"-"`
661 XXX_sizecache int32 `json:"-"`
662}
663
664func (m *UploadDebugInfoStatus) Reset() { *m = UploadDebugInfoStatus{} }
665func (m *UploadDebugInfoStatus) String() string { return proto.CompactTextString(m) }
666func (*UploadDebugInfoStatus) ProtoMessage() {}
667func (*UploadDebugInfoStatus) Descriptor() ([]byte, []int) {
668 return fileDescriptor_000929e4bec891d7, []int{8}
669}
670
671func (m *UploadDebugInfoStatus) XXX_Unmarshal(b []byte) error {
672 return xxx_messageInfo_UploadDebugInfoStatus.Unmarshal(m, b)
673}
674func (m *UploadDebugInfoStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
675 return xxx_messageInfo_UploadDebugInfoStatus.Marshal(b, m, deterministic)
676}
677func (m *UploadDebugInfoStatus) XXX_Merge(src proto.Message) {
678 xxx_messageInfo_UploadDebugInfoStatus.Merge(m, src)
679}
680func (m *UploadDebugInfoStatus) XXX_Size() int {
681 return xxx_messageInfo_UploadDebugInfoStatus.Size(m)
682}
683func (m *UploadDebugInfoStatus) XXX_DiscardUnknown() {
684 xxx_messageInfo_UploadDebugInfoStatus.DiscardUnknown(m)
685}
686
687var xxx_messageInfo_UploadDebugInfoStatus proto.InternalMessageInfo
688
689func (m *UploadDebugInfoStatus) GetDeviceUuid() *Uuid {
690 if m != nil {
691 return m.DeviceUuid
692 }
693 return nil
694}
695
696func (m *UploadDebugInfoStatus) GetStatus() UploadDebugInfoStatus_UploadStatus {
697 if m != nil {
698 return m.Status
699 }
700 return UploadDebugInfoStatus_UNDEFINED_UPLOAD_STATUS
701}
702
703func (m *UploadDebugInfoStatus) GetPercentUploaded() int32 {
704 if m != nil {
705 return m.PercentUploaded
706 }
707 return 0
708}
709
710func (m *UploadDebugInfoStatus) GetReason() UploadDebugInfoStatus_Reason {
711 if m != nil {
712 return m.Reason
713 }
714 return UploadDebugInfoStatus_UNDEFINED_REASON
715}
716
717func (m *UploadDebugInfoStatus) GetLocationUrl() string {
718 if m != nil {
719 return m.LocationUrl
720 }
721 return ""
722}
723
724func (m *UploadDebugInfoStatus) GetFileName() string {
725 if m != nil {
726 return m.FileName
727 }
728 return ""
729}
730
Amit Ghosh09f28362020-06-12 21:52:19 +0100731func init() {
amit.ghoshae473032021-01-10 11:59:10 +0100732 proto.RegisterEnum("dmi.GetSoftwareVersionInformationResponse_Reason", GetSoftwareVersionInformationResponse_Reason_name, GetSoftwareVersionInformationResponse_Reason_value)
733 proto.RegisterEnum("dmi.ConfigResponse_Reason", ConfigResponse_Reason_name, ConfigResponse_Reason_value)
amit.ghosh2c938b82021-01-14 11:34:03 +0100734 proto.RegisterEnum("dmi.StartupConfigInfoResponse_Reason", StartupConfigInfoResponse_Reason_name, StartupConfigInfoResponse_Reason_value)
amit.ghosh5a689802022-09-12 14:26:10 +0200735 proto.RegisterEnum("dmi.UploadDebugInfoStatus_UploadStatus", UploadDebugInfoStatus_UploadStatus_name, UploadDebugInfoStatus_UploadStatus_value)
736 proto.RegisterEnum("dmi.UploadDebugInfoStatus_Reason", UploadDebugInfoStatus_Reason_name, UploadDebugInfoStatus_Reason_value)
Amit Ghosh09f28362020-06-12 21:52:19 +0100737 proto.RegisterType((*SoftwareVersionInformation)(nil), "dmi.SoftwareVersionInformation")
aghoshc301dcd2020-09-03 16:55:34 +0100738 proto.RegisterType((*GetSoftwareVersionInformationResponse)(nil), "dmi.GetSoftwareVersionInformationResponse")
Amit Ghosh09f28362020-06-12 21:52:19 +0100739 proto.RegisterType((*DownloadImageRequest)(nil), "dmi.DownloadImageRequest")
amit.ghoshed23db02020-11-18 10:26:36 +0100740 proto.RegisterType((*ConfigRequest)(nil), "dmi.ConfigRequest")
741 proto.RegisterType((*ConfigResponse)(nil), "dmi.ConfigResponse")
amit.ghosh2c938b82021-01-14 11:34:03 +0100742 proto.RegisterType((*StartupConfigInfoRequest)(nil), "dmi.StartupConfigInfoRequest")
743 proto.RegisterType((*StartupConfigInfoResponse)(nil), "dmi.StartupConfigInfoResponse")
amit.ghosh5a689802022-09-12 14:26:10 +0200744 proto.RegisterType((*UploadDebugInfoRequest)(nil), "dmi.UploadDebugInfoRequest")
745 proto.RegisterType((*UploadDebugInfoStatus)(nil), "dmi.UploadDebugInfoStatus")
Amit Ghosh09f28362020-06-12 21:52:19 +0100746}
747
748func init() { proto.RegisterFile("dmi/sw_management_service.proto", fileDescriptor_000929e4bec891d7) }
749
750var fileDescriptor_000929e4bec891d7 = []byte{
amit.ghoshdfd5d7e2023-03-14 21:14:33 +0100751 // 1091 bytes of a gzipped FileDescriptorProto
752 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x56, 0xdd, 0x52, 0xdb, 0x46,
753 0x14, 0x8e, 0x7f, 0x13, 0x1f, 0x03, 0x56, 0x36, 0x90, 0x18, 0x33, 0x14, 0x70, 0x86, 0x29, 0xcd,
754 0x4c, 0x30, 0x35, 0xb9, 0x49, 0xd3, 0x9f, 0x31, 0xd6, 0x62, 0x34, 0x35, 0x12, 0x59, 0x59, 0x64,
755 0x92, 0xe9, 0x74, 0x47, 0x58, 0x6b, 0x47, 0x33, 0x96, 0xe4, 0x4a, 0x32, 0xb4, 0x2f, 0xd2, 0xab,
756 0x5e, 0xf7, 0xa2, 0x57, 0x7d, 0x81, 0x5e, 0xf4, 0x11, 0xfa, 0x46, 0x9d, 0xdd, 0x95, 0xc1, 0x18,
757 0x3b, 0x0d, 0x4c, 0x66, 0x7a, 0x27, 0x9d, 0x3d, 0x3f, 0xbb, 0xe7, 0xfb, 0xce, 0x0f, 0x6c, 0x38,
758 0x9e, 0x5b, 0x8b, 0x2e, 0xa8, 0x67, 0xfb, 0x76, 0x9f, 0x79, 0xcc, 0x8f, 0x69, 0xc4, 0xc2, 0x73,
759 0xb7, 0xcb, 0x76, 0x87, 0x61, 0x10, 0x07, 0x28, 0xe3, 0x78, 0x6e, 0xe5, 0x21, 0xd7, 0xea, 0x06,
760 0x9e, 0x17, 0xf8, 0x91, 0x94, 0x57, 0x16, 0xb8, 0xe8, 0xfd, 0x45, 0xf2, 0x87, 0x12, 0x37, 0xae,
761 0x67, 0xf7, 0x13, 0xcb, 0xea, 0xaf, 0x29, 0xa8, 0x98, 0x41, 0x2f, 0xbe, 0xb0, 0x43, 0x76, 0xca,
762 0xc2, 0xc8, 0x0d, 0x7c, 0xcd, 0xef, 0x05, 0xa1, 0x67, 0xc7, 0x6e, 0xe0, 0xa3, 0xaf, 0xa0, 0x64,
763 0x77, 0x63, 0xf7, 0x9c, 0xd1, 0x73, 0x79, 0x18, 0x95, 0x53, 0x9b, 0x99, 0x9d, 0x62, 0xfd, 0xe1,
764 0xae, 0xe3, 0xb9, 0xbb, 0x1a, 0xf7, 0x94, 0x98, 0x91, 0x25, 0xa9, 0x99, 0xfc, 0x46, 0xe8, 0x6b,
765 0x50, 0xa2, 0xd8, 0xf6, 0x9d, 0xb3, 0x5f, 0xae, 0x8c, 0xd3, 0xf3, 0x8c, 0x4b, 0x89, 0xea, 0xd8,
766 0xba, 0xfa, 0x4f, 0x1a, 0xb6, 0x5b, 0x2c, 0x9e, 0x7f, 0x37, 0xc2, 0xa2, 0x61, 0xe0, 0x47, 0x0c,
767 0x3d, 0x85, 0x7c, 0x14, 0xdb, 0xf1, 0x88, 0x5f, 0x2d, 0xb5, 0xb3, 0x54, 0x2f, 0x0a, 0xef, 0xa6,
768 0x10, 0x91, 0xe4, 0x08, 0x69, 0x90, 0x0f, 0x99, 0x1d, 0x05, 0x7e, 0x39, 0x2d, 0x94, 0xbe, 0x14,
769 0x4a, 0x1f, 0x15, 0x60, 0x97, 0x08, 0x43, 0x92, 0x38, 0x40, 0xfb, 0x90, 0x75, 0xfd, 0x5e, 0x50,
770 0xce, 0x6c, 0xa6, 0x76, 0x8a, 0xf5, 0x0d, 0x19, 0x6d, 0xbe, 0x17, 0xa1, 0x8c, 0x9e, 0xc2, 0xa2,
771 0x34, 0xa7, 0x0e, 0x8b, 0x6d, 0x77, 0x50, 0xce, 0x6e, 0xa6, 0x76, 0x0a, 0x64, 0x41, 0x0a, 0x55,
772 0x21, 0xab, 0xfe, 0x08, 0x79, 0x19, 0x0b, 0x2d, 0x83, 0x62, 0xe9, 0x2a, 0x3e, 0xd4, 0x74, 0xac,
773 0x52, 0x82, 0x1b, 0xa6, 0xa1, 0x2b, 0xf7, 0x10, 0x82, 0x25, 0x4b, 0xff, 0x5e, 0x37, 0xde, 0xe8,
774 0x54, 0xc5, 0xa7, 0x5a, 0x13, 0x2b, 0x29, 0x2e, 0xd3, 0xf4, 0x0e, 0x26, 0x7a, 0xa3, 0x4d, 0x31,
775 0x21, 0x06, 0x51, 0xd2, 0xe8, 0x31, 0x20, 0x79, 0x4e, 0x2d, 0x9d, 0xe0, 0x46, 0xf3, 0xa8, 0x71,
776 0xd0, 0xc6, 0x4a, 0xa6, 0xfa, 0x33, 0x2c, 0xab, 0xc1, 0x85, 0x3f, 0x08, 0x6c, 0x47, 0x24, 0x9f,
777 0xb0, 0x9f, 0x46, 0x2c, 0x8a, 0xd1, 0x33, 0x28, 0x3a, 0x8c, 0xd3, 0x89, 0x8e, 0x46, 0xae, 0x23,
778 0xd2, 0x58, 0xac, 0x17, 0xc4, 0xc3, 0xac, 0x91, 0xeb, 0x10, 0x90, 0xa7, 0xfc, 0x1b, 0xbd, 0x00,
779 0x10, 0xfc, 0xa1, 0x22, 0x07, 0x69, 0xa1, 0xba, 0x72, 0x85, 0xe7, 0xe4, 0xcb, 0x0b, 0xee, 0x58,
780 0x52, 0x7d, 0x07, 0x8b, 0xcd, 0xc0, 0xef, 0xb9, 0xfd, 0xbb, 0x84, 0x5c, 0x07, 0xe8, 0x0a, 0x63,
781 0x3a, 0x0a, 0x07, 0x22, 0x64, 0x81, 0x14, 0xa4, 0xc4, 0x0a, 0x07, 0xd5, 0xbf, 0xd3, 0xb0, 0x34,
782 0x76, 0x7e, 0x1b, 0x4a, 0xd4, 0xa7, 0x28, 0x51, 0x11, 0x4a, 0xd7, 0x3d, 0x4d, 0x63, 0x7f, 0x03,
783 0xc6, 0xcc, 0x0c, 0x18, 0xff, 0x4c, 0x7d, 0x22, 0x1c, 0x57, 0x61, 0x45, 0x7c, 0xd2, 0x43, 0xdc,
784 0x69, 0x1e, 0x69, 0x7a, 0x8b, 0x36, 0x0d, 0xfd, 0x50, 0x6b, 0x29, 0x19, 0xa9, 0x7e, 0xda, 0x68,
785 0x6b, 0xea, 0x58, 0x96, 0x45, 0x5b, 0xb0, 0x6e, 0x9c, 0x60, 0xd2, 0xe8, 0x68, 0x86, 0x4e, 0x1b,
786 0x6d, 0x82, 0x1b, 0xea, 0x5b, 0xaa, 0xe9, 0xf4, 0x84, 0x18, 0x2d, 0x82, 0x4d, 0x53, 0xc9, 0xcd,
787 0x61, 0x46, 0xbe, 0x7a, 0x08, 0x65, 0x33, 0xb6, 0xc3, 0x78, 0x34, 0x94, 0xef, 0xe7, 0xa0, 0xdd,
788 0x01, 0xaa, 0xea, 0x5f, 0x69, 0x58, 0x9d, 0xe1, 0xe8, 0x36, 0xb0, 0x7c, 0x33, 0x05, 0xcb, 0xf6,
789 0x58, 0x69, 0xb6, 0xd3, 0x69, 0x84, 0xae, 0x93, 0x25, 0x33, 0x45, 0x16, 0x54, 0x86, 0xfb, 0x49,
790 0x33, 0x4a, 0x2a, 0x70, 0xfc, 0x7b, 0x13, 0xda, 0xdc, 0xff, 0x50, 0xa1, 0x7d, 0x78, 0x6c, 0x0d,
791 0x79, 0x7d, 0xaa, 0xec, 0x6c, 0x74, 0x57, 0x14, 0xd0, 0x16, 0x2c, 0x0c, 0x82, 0xae, 0x28, 0xc2,
792 0x89, 0x2c, 0x14, 0xc7, 0x32, 0x5e, 0x34, 0x7f, 0xe4, 0x60, 0x65, 0x2a, 0x92, 0xc4, 0xe1, 0x56,
793 0x81, 0xbe, 0xbb, 0x04, 0x54, 0x62, 0xf5, 0xb9, 0x54, 0x9b, 0xe5, 0x37, 0x91, 0x4e, 0x81, 0xfd,
794 0x05, 0x28, 0x43, 0x16, 0x76, 0xf9, 0x44, 0x1b, 0x89, 0x73, 0xe6, 0x88, 0xdb, 0xe6, 0x48, 0x29,
795 0x91, 0x5b, 0x89, 0x18, 0xbd, 0xbc, 0xe4, 0x45, 0x56, 0xc4, 0xda, 0xfa, 0x40, 0xac, 0x29, 0x4e,
796 0x4c, 0xe7, 0x23, 0x77, 0x23, 0x1f, 0x68, 0x0d, 0x0a, 0x3d, 0x77, 0xc0, 0xa8, 0x6f, 0x7b, 0xac,
797 0x9c, 0x17, 0xe7, 0x0f, 0xb8, 0x40, 0xb7, 0x3d, 0x56, 0xb5, 0x60, 0x61, 0xf2, 0xf6, 0x68, 0x0d,
798 0x9e, 0x5c, 0x61, 0x6f, 0x9d, 0xb4, 0x8d, 0x86, 0x4a, 0xcd, 0x4e, 0xa3, 0x63, 0x99, 0xca, 0x3d,
799 0xb4, 0x00, 0x0f, 0x9a, 0xc6, 0xf1, 0x49, 0x1b, 0x77, 0x38, 0xf8, 0x25, 0x28, 0x4e, 0x56, 0x60,
800 0x1a, 0x15, 0x20, 0x27, 0x49, 0x90, 0xa9, 0xfe, 0x9e, 0xfe, 0x44, 0x6c, 0x2a, 0xc3, 0x72, 0xc2,
801 0x26, 0xdd, 0xe8, 0xd0, 0x09, 0x3e, 0xa1, 0x0d, 0x58, 0x23, 0xf8, 0xd8, 0xe8, 0x60, 0xda, 0x36,
802 0x9a, 0xb2, 0x31, 0x4c, 0x12, 0x2e, 0x8b, 0xb6, 0x61, 0x6b, 0x5a, 0xe1, 0x04, 0x93, 0x63, 0xcd,
803 0x34, 0xf9, 0xa7, 0x8a, 0x75, 0x0d, 0xab, 0x4a, 0x0e, 0x3d, 0x81, 0x47, 0xb2, 0x13, 0xa9, 0x16,
804 0xe1, 0x7d, 0x48, 0x3e, 0x5a, 0xc9, 0xf3, 0xf7, 0x25, 0xa1, 0x0f, 0x2c, 0xf3, 0xad, 0x72, 0x9f,
805 0xbf, 0x44, 0x6a, 0x6a, 0x3a, 0x25, 0xf8, 0xb5, 0x85, 0xcd, 0x8e, 0xf2, 0x80, 0x77, 0xb2, 0x44,
806 0x4d, 0xd3, 0xe9, 0x1b, 0x62, 0xe8, 0x2d, 0x91, 0x30, 0xac, 0x14, 0xfe, 0xbb, 0x6b, 0x41, 0xfd,
807 0xb7, 0x2c, 0x6c, 0xe8, 0x36, 0x5f, 0x2e, 0xc6, 0x73, 0xf6, 0xf8, 0x72, 0x13, 0x32, 0xe5, 0x22,
808 0x84, 0x5e, 0x03, 0xba, 0x39, 0xcd, 0x51, 0x49, 0x90, 0xe4, 0xc8, 0x0e, 0x1d, 0x2e, 0xd5, 0xd4,
809 0xca, 0xb3, 0x8f, 0x9f, 0xfb, 0xe8, 0x5b, 0x58, 0xbc, 0x36, 0x2e, 0xd1, 0xaa, 0x30, 0x9e, 0x35,
810 0x42, 0x2b, 0xca, 0xd5, 0x08, 0x94, 0x24, 0xd9, 0x4b, 0xa1, 0x17, 0xb0, 0xd8, 0xe0, 0x2b, 0x91,
811 0x1d, 0x33, 0x69, 0x7f, 0xe3, 0x36, 0xb3, 0xac, 0x5e, 0xc1, 0x32, 0x61, 0xe7, 0x2c, 0x8c, 0x3b,
812 0x9c, 0xcd, 0x7c, 0x27, 0xba, 0x85, 0x71, 0x0b, 0x2a, 0xd6, 0xd0, 0xb1, 0x63, 0x76, 0xad, 0x5f,
813 0x8e, 0x42, 0xb9, 0xcd, 0xa1, 0x6b, 0x13, 0x4e, 0x5e, 0xfc, 0xd1, 0x8c, 0xa9, 0xb7, 0x97, 0x42,
814 0x3f, 0xc0, 0x1a, 0x4f, 0xd2, 0x0c, 0x2f, 0x3c, 0x53, 0x68, 0x7d, 0x5e, 0x53, 0x96, 0x4e, 0x3f,
815 0xfb, 0x70, 0xcf, 0x46, 0x6d, 0x28, 0x4d, 0x15, 0x2e, 0x5a, 0x9b, 0x55, 0xce, 0x63, 0x7f, 0x95,
816 0xf9, 0xb5, 0xbe, 0x97, 0x3a, 0x78, 0xf5, 0xee, 0x65, 0xdf, 0x8d, 0xdf, 0x8f, 0xce, 0x76, 0xbb,
817 0x81, 0x57, 0x0b, 0x86, 0xcc, 0xef, 0x06, 0xa1, 0x53, 0x93, 0x7d, 0xea, 0xf9, 0xd5, 0xd2, 0xfc,
818 0xdc, 0xf5, 0x63, 0x16, 0xf6, 0xec, 0x2e, 0xab, 0x9d, 0xef, 0xd7, 0xfa, 0x41, 0xcd, 0xf1, 0xdc,
819 0xb3, 0xbc, 0xd8, 0x83, 0xf7, 0xff, 0x0d, 0x00, 0x00, 0xff, 0xff, 0xd3, 0x65, 0x3c, 0xff, 0x64,
820 0x0b, 0x00, 0x00,
Amit Ghosh09f28362020-06-12 21:52:19 +0100821}
822
823// Reference imports to suppress errors if they are not otherwise used.
824var _ context.Context
825var _ grpc.ClientConn
826
827// This is a compile-time assertion to ensure that this generated file
828// is compatible with the grpc package it is being compiled against.
829const _ = grpc.SupportPackageIsVersion4
830
831// NativeSoftwareManagementServiceClient is the client API for NativeSoftwareManagementService service.
832//
833// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
834type NativeSoftwareManagementServiceClient interface {
835 // Get the software version information of the Active and Standby images
aghoshc301dcd2020-09-03 16:55:34 +0100836 GetSoftwareVersion(ctx context.Context, in *HardwareID, opts ...grpc.CallOption) (*GetSoftwareVersionInformationResponse, error)
Amit Ghosh09f28362020-06-12 21:52:19 +0100837 // Downloads and installs the image in the standby partition, returns the status/progress of the Install
838 DownloadImage(ctx context.Context, in *DownloadImageRequest, opts ...grpc.CallOption) (NativeSoftwareManagementService_DownloadImageClient, error)
839 // Activates and runs the OLT with the image in the standby partition. If things are fine this image will
840 // henceforth be marked as the Active Partition. The old working image would remain on the Standby partition.
841 // Any possibly required (sub-)steps like "commit" are left to the "Device Manager"
842 ActivateImage(ctx context.Context, in *HardwareID, opts ...grpc.CallOption) (NativeSoftwareManagementService_ActivateImageClient, error)
843 // 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 +0100844 // This API is to be used if operator wants to go back to the previous software
Amit Ghosh09f28362020-06-12 21:52:19 +0100845 RevertToStandbyImage(ctx context.Context, in *HardwareID, opts ...grpc.CallOption) (NativeSoftwareManagementService_RevertToStandbyImageClient, error)
amit.ghoshed23db02020-11-18 10:26:36 +0100846 // This API can be used to let the devices pickup their properitary configuration which they need at startup.
847 UpdateStartupConfiguration(ctx context.Context, in *ConfigRequest, opts ...grpc.CallOption) (NativeSoftwareManagementService_UpdateStartupConfigurationClient, error)
amit.ghosh2c938b82021-01-14 11:34:03 +0100848 // This API can be used to retrieve information about the current startup configuration that a device is using
849 GetStartupConfigurationInfo(ctx context.Context, in *StartupConfigInfoRequest, opts ...grpc.CallOption) (*StartupConfigInfoResponse, error)
amit.ghosh5a689802022-09-12 14:26:10 +0200850 // This API can be used to upload to a remote location, information useful for troubleshooting problems on the hardware
851 UploadDebugInfo(ctx context.Context, in *UploadDebugInfoRequest, opts ...grpc.CallOption) (NativeSoftwareManagementService_UploadDebugInfoClient, error)
Amit Ghosh09f28362020-06-12 21:52:19 +0100852}
853
854type nativeSoftwareManagementServiceClient struct {
855 cc *grpc.ClientConn
856}
857
858func NewNativeSoftwareManagementServiceClient(cc *grpc.ClientConn) NativeSoftwareManagementServiceClient {
859 return &nativeSoftwareManagementServiceClient{cc}
860}
861
aghoshc301dcd2020-09-03 16:55:34 +0100862func (c *nativeSoftwareManagementServiceClient) GetSoftwareVersion(ctx context.Context, in *HardwareID, opts ...grpc.CallOption) (*GetSoftwareVersionInformationResponse, error) {
863 out := new(GetSoftwareVersionInformationResponse)
Amit Ghosh09f28362020-06-12 21:52:19 +0100864 err := c.cc.Invoke(ctx, "/dmi.NativeSoftwareManagementService/GetSoftwareVersion", in, out, opts...)
865 if err != nil {
866 return nil, err
867 }
868 return out, nil
869}
870
871func (c *nativeSoftwareManagementServiceClient) DownloadImage(ctx context.Context, in *DownloadImageRequest, opts ...grpc.CallOption) (NativeSoftwareManagementService_DownloadImageClient, error) {
872 stream, err := c.cc.NewStream(ctx, &_NativeSoftwareManagementService_serviceDesc.Streams[0], "/dmi.NativeSoftwareManagementService/DownloadImage", opts...)
873 if err != nil {
874 return nil, err
875 }
876 x := &nativeSoftwareManagementServiceDownloadImageClient{stream}
877 if err := x.ClientStream.SendMsg(in); err != nil {
878 return nil, err
879 }
880 if err := x.ClientStream.CloseSend(); err != nil {
881 return nil, err
882 }
883 return x, nil
884}
885
886type NativeSoftwareManagementService_DownloadImageClient interface {
887 Recv() (*ImageStatus, error)
888 grpc.ClientStream
889}
890
891type nativeSoftwareManagementServiceDownloadImageClient struct {
892 grpc.ClientStream
893}
894
895func (x *nativeSoftwareManagementServiceDownloadImageClient) Recv() (*ImageStatus, error) {
896 m := new(ImageStatus)
897 if err := x.ClientStream.RecvMsg(m); err != nil {
898 return nil, err
899 }
900 return m, nil
901}
902
903func (c *nativeSoftwareManagementServiceClient) ActivateImage(ctx context.Context, in *HardwareID, opts ...grpc.CallOption) (NativeSoftwareManagementService_ActivateImageClient, error) {
904 stream, err := c.cc.NewStream(ctx, &_NativeSoftwareManagementService_serviceDesc.Streams[1], "/dmi.NativeSoftwareManagementService/ActivateImage", opts...)
905 if err != nil {
906 return nil, err
907 }
908 x := &nativeSoftwareManagementServiceActivateImageClient{stream}
909 if err := x.ClientStream.SendMsg(in); err != nil {
910 return nil, err
911 }
912 if err := x.ClientStream.CloseSend(); err != nil {
913 return nil, err
914 }
915 return x, nil
916}
917
918type NativeSoftwareManagementService_ActivateImageClient interface {
919 Recv() (*ImageStatus, error)
920 grpc.ClientStream
921}
922
923type nativeSoftwareManagementServiceActivateImageClient struct {
924 grpc.ClientStream
925}
926
927func (x *nativeSoftwareManagementServiceActivateImageClient) Recv() (*ImageStatus, error) {
928 m := new(ImageStatus)
929 if err := x.ClientStream.RecvMsg(m); err != nil {
930 return nil, err
931 }
932 return m, nil
933}
934
935func (c *nativeSoftwareManagementServiceClient) RevertToStandbyImage(ctx context.Context, in *HardwareID, opts ...grpc.CallOption) (NativeSoftwareManagementService_RevertToStandbyImageClient, error) {
936 stream, err := c.cc.NewStream(ctx, &_NativeSoftwareManagementService_serviceDesc.Streams[2], "/dmi.NativeSoftwareManagementService/RevertToStandbyImage", opts...)
937 if err != nil {
938 return nil, err
939 }
940 x := &nativeSoftwareManagementServiceRevertToStandbyImageClient{stream}
941 if err := x.ClientStream.SendMsg(in); err != nil {
942 return nil, err
943 }
944 if err := x.ClientStream.CloseSend(); err != nil {
945 return nil, err
946 }
947 return x, nil
948}
949
950type NativeSoftwareManagementService_RevertToStandbyImageClient interface {
951 Recv() (*ImageStatus, error)
952 grpc.ClientStream
953}
954
955type nativeSoftwareManagementServiceRevertToStandbyImageClient struct {
956 grpc.ClientStream
957}
958
959func (x *nativeSoftwareManagementServiceRevertToStandbyImageClient) Recv() (*ImageStatus, error) {
960 m := new(ImageStatus)
961 if err := x.ClientStream.RecvMsg(m); err != nil {
962 return nil, err
963 }
964 return m, nil
965}
966
amit.ghoshed23db02020-11-18 10:26:36 +0100967func (c *nativeSoftwareManagementServiceClient) UpdateStartupConfiguration(ctx context.Context, in *ConfigRequest, opts ...grpc.CallOption) (NativeSoftwareManagementService_UpdateStartupConfigurationClient, error) {
968 stream, err := c.cc.NewStream(ctx, &_NativeSoftwareManagementService_serviceDesc.Streams[3], "/dmi.NativeSoftwareManagementService/UpdateStartupConfiguration", opts...)
969 if err != nil {
970 return nil, err
971 }
972 x := &nativeSoftwareManagementServiceUpdateStartupConfigurationClient{stream}
973 if err := x.ClientStream.SendMsg(in); err != nil {
974 return nil, err
975 }
976 if err := x.ClientStream.CloseSend(); err != nil {
977 return nil, err
978 }
979 return x, nil
980}
981
982type NativeSoftwareManagementService_UpdateStartupConfigurationClient interface {
983 Recv() (*ConfigResponse, error)
984 grpc.ClientStream
985}
986
987type nativeSoftwareManagementServiceUpdateStartupConfigurationClient struct {
988 grpc.ClientStream
989}
990
991func (x *nativeSoftwareManagementServiceUpdateStartupConfigurationClient) Recv() (*ConfigResponse, error) {
992 m := new(ConfigResponse)
993 if err := x.ClientStream.RecvMsg(m); err != nil {
994 return nil, err
995 }
996 return m, nil
997}
998
amit.ghosh2c938b82021-01-14 11:34:03 +0100999func (c *nativeSoftwareManagementServiceClient) GetStartupConfigurationInfo(ctx context.Context, in *StartupConfigInfoRequest, opts ...grpc.CallOption) (*StartupConfigInfoResponse, error) {
1000 out := new(StartupConfigInfoResponse)
1001 err := c.cc.Invoke(ctx, "/dmi.NativeSoftwareManagementService/GetStartupConfigurationInfo", in, out, opts...)
1002 if err != nil {
1003 return nil, err
1004 }
1005 return out, nil
1006}
1007
amit.ghosh5a689802022-09-12 14:26:10 +02001008func (c *nativeSoftwareManagementServiceClient) UploadDebugInfo(ctx context.Context, in *UploadDebugInfoRequest, opts ...grpc.CallOption) (NativeSoftwareManagementService_UploadDebugInfoClient, error) {
1009 stream, err := c.cc.NewStream(ctx, &_NativeSoftwareManagementService_serviceDesc.Streams[4], "/dmi.NativeSoftwareManagementService/UploadDebugInfo", opts...)
1010 if err != nil {
1011 return nil, err
1012 }
1013 x := &nativeSoftwareManagementServiceUploadDebugInfoClient{stream}
1014 if err := x.ClientStream.SendMsg(in); err != nil {
1015 return nil, err
1016 }
1017 if err := x.ClientStream.CloseSend(); err != nil {
1018 return nil, err
1019 }
1020 return x, nil
1021}
1022
1023type NativeSoftwareManagementService_UploadDebugInfoClient interface {
1024 Recv() (*UploadDebugInfoStatus, error)
1025 grpc.ClientStream
1026}
1027
1028type nativeSoftwareManagementServiceUploadDebugInfoClient struct {
1029 grpc.ClientStream
1030}
1031
1032func (x *nativeSoftwareManagementServiceUploadDebugInfoClient) Recv() (*UploadDebugInfoStatus, error) {
1033 m := new(UploadDebugInfoStatus)
1034 if err := x.ClientStream.RecvMsg(m); err != nil {
1035 return nil, err
1036 }
1037 return m, nil
1038}
1039
Amit Ghosh09f28362020-06-12 21:52:19 +01001040// NativeSoftwareManagementServiceServer is the server API for NativeSoftwareManagementService service.
1041type NativeSoftwareManagementServiceServer interface {
1042 // Get the software version information of the Active and Standby images
aghoshc301dcd2020-09-03 16:55:34 +01001043 GetSoftwareVersion(context.Context, *HardwareID) (*GetSoftwareVersionInformationResponse, error)
Amit Ghosh09f28362020-06-12 21:52:19 +01001044 // Downloads and installs the image in the standby partition, returns the status/progress of the Install
1045 DownloadImage(*DownloadImageRequest, NativeSoftwareManagementService_DownloadImageServer) error
1046 // Activates and runs the OLT with the image in the standby partition. If things are fine this image will
1047 // henceforth be marked as the Active Partition. The old working image would remain on the Standby partition.
1048 // Any possibly required (sub-)steps like "commit" are left to the "Device Manager"
1049 ActivateImage(*HardwareID, NativeSoftwareManagementService_ActivateImageServer) error
1050 // 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 +01001051 // This API is to be used if operator wants to go back to the previous software
Amit Ghosh09f28362020-06-12 21:52:19 +01001052 RevertToStandbyImage(*HardwareID, NativeSoftwareManagementService_RevertToStandbyImageServer) error
amit.ghoshed23db02020-11-18 10:26:36 +01001053 // This API can be used to let the devices pickup their properitary configuration which they need at startup.
1054 UpdateStartupConfiguration(*ConfigRequest, NativeSoftwareManagementService_UpdateStartupConfigurationServer) error
amit.ghosh2c938b82021-01-14 11:34:03 +01001055 // This API can be used to retrieve information about the current startup configuration that a device is using
1056 GetStartupConfigurationInfo(context.Context, *StartupConfigInfoRequest) (*StartupConfigInfoResponse, error)
amit.ghosh5a689802022-09-12 14:26:10 +02001057 // This API can be used to upload to a remote location, information useful for troubleshooting problems on the hardware
1058 UploadDebugInfo(*UploadDebugInfoRequest, NativeSoftwareManagementService_UploadDebugInfoServer) error
Amit Ghosh09f28362020-06-12 21:52:19 +01001059}
1060
Andrea Campanellac795b7d2021-04-14 13:24:44 +02001061// UnimplementedNativeSoftwareManagementServiceServer can be embedded to have forward compatible implementations.
1062type UnimplementedNativeSoftwareManagementServiceServer struct {
1063}
1064
1065func (*UnimplementedNativeSoftwareManagementServiceServer) GetSoftwareVersion(ctx context.Context, req *HardwareID) (*GetSoftwareVersionInformationResponse, error) {
1066 return nil, status.Errorf(codes.Unimplemented, "method GetSoftwareVersion not implemented")
1067}
1068func (*UnimplementedNativeSoftwareManagementServiceServer) DownloadImage(req *DownloadImageRequest, srv NativeSoftwareManagementService_DownloadImageServer) error {
1069 return status.Errorf(codes.Unimplemented, "method DownloadImage not implemented")
1070}
1071func (*UnimplementedNativeSoftwareManagementServiceServer) ActivateImage(req *HardwareID, srv NativeSoftwareManagementService_ActivateImageServer) error {
1072 return status.Errorf(codes.Unimplemented, "method ActivateImage not implemented")
1073}
1074func (*UnimplementedNativeSoftwareManagementServiceServer) RevertToStandbyImage(req *HardwareID, srv NativeSoftwareManagementService_RevertToStandbyImageServer) error {
1075 return status.Errorf(codes.Unimplemented, "method RevertToStandbyImage not implemented")
1076}
1077func (*UnimplementedNativeSoftwareManagementServiceServer) UpdateStartupConfiguration(req *ConfigRequest, srv NativeSoftwareManagementService_UpdateStartupConfigurationServer) error {
1078 return status.Errorf(codes.Unimplemented, "method UpdateStartupConfiguration not implemented")
1079}
1080func (*UnimplementedNativeSoftwareManagementServiceServer) GetStartupConfigurationInfo(ctx context.Context, req *StartupConfigInfoRequest) (*StartupConfigInfoResponse, error) {
1081 return nil, status.Errorf(codes.Unimplemented, "method GetStartupConfigurationInfo not implemented")
1082}
amit.ghosh5a689802022-09-12 14:26:10 +02001083func (*UnimplementedNativeSoftwareManagementServiceServer) UploadDebugInfo(req *UploadDebugInfoRequest, srv NativeSoftwareManagementService_UploadDebugInfoServer) error {
1084 return status.Errorf(codes.Unimplemented, "method UploadDebugInfo not implemented")
1085}
Andrea Campanellac795b7d2021-04-14 13:24:44 +02001086
Amit Ghosh09f28362020-06-12 21:52:19 +01001087func RegisterNativeSoftwareManagementServiceServer(s *grpc.Server, srv NativeSoftwareManagementServiceServer) {
1088 s.RegisterService(&_NativeSoftwareManagementService_serviceDesc, srv)
1089}
1090
1091func _NativeSoftwareManagementService_GetSoftwareVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1092 in := new(HardwareID)
1093 if err := dec(in); err != nil {
1094 return nil, err
1095 }
1096 if interceptor == nil {
1097 return srv.(NativeSoftwareManagementServiceServer).GetSoftwareVersion(ctx, in)
1098 }
1099 info := &grpc.UnaryServerInfo{
1100 Server: srv,
1101 FullMethod: "/dmi.NativeSoftwareManagementService/GetSoftwareVersion",
1102 }
1103 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1104 return srv.(NativeSoftwareManagementServiceServer).GetSoftwareVersion(ctx, req.(*HardwareID))
1105 }
1106 return interceptor(ctx, in, info, handler)
1107}
1108
1109func _NativeSoftwareManagementService_DownloadImage_Handler(srv interface{}, stream grpc.ServerStream) error {
1110 m := new(DownloadImageRequest)
1111 if err := stream.RecvMsg(m); err != nil {
1112 return err
1113 }
1114 return srv.(NativeSoftwareManagementServiceServer).DownloadImage(m, &nativeSoftwareManagementServiceDownloadImageServer{stream})
1115}
1116
1117type NativeSoftwareManagementService_DownloadImageServer interface {
1118 Send(*ImageStatus) error
1119 grpc.ServerStream
1120}
1121
1122type nativeSoftwareManagementServiceDownloadImageServer struct {
1123 grpc.ServerStream
1124}
1125
1126func (x *nativeSoftwareManagementServiceDownloadImageServer) Send(m *ImageStatus) error {
1127 return x.ServerStream.SendMsg(m)
1128}
1129
1130func _NativeSoftwareManagementService_ActivateImage_Handler(srv interface{}, stream grpc.ServerStream) error {
1131 m := new(HardwareID)
1132 if err := stream.RecvMsg(m); err != nil {
1133 return err
1134 }
1135 return srv.(NativeSoftwareManagementServiceServer).ActivateImage(m, &nativeSoftwareManagementServiceActivateImageServer{stream})
1136}
1137
1138type NativeSoftwareManagementService_ActivateImageServer interface {
1139 Send(*ImageStatus) error
1140 grpc.ServerStream
1141}
1142
1143type nativeSoftwareManagementServiceActivateImageServer struct {
1144 grpc.ServerStream
1145}
1146
1147func (x *nativeSoftwareManagementServiceActivateImageServer) Send(m *ImageStatus) error {
1148 return x.ServerStream.SendMsg(m)
1149}
1150
1151func _NativeSoftwareManagementService_RevertToStandbyImage_Handler(srv interface{}, stream grpc.ServerStream) error {
1152 m := new(HardwareID)
1153 if err := stream.RecvMsg(m); err != nil {
1154 return err
1155 }
1156 return srv.(NativeSoftwareManagementServiceServer).RevertToStandbyImage(m, &nativeSoftwareManagementServiceRevertToStandbyImageServer{stream})
1157}
1158
1159type NativeSoftwareManagementService_RevertToStandbyImageServer interface {
1160 Send(*ImageStatus) error
1161 grpc.ServerStream
1162}
1163
1164type nativeSoftwareManagementServiceRevertToStandbyImageServer struct {
1165 grpc.ServerStream
1166}
1167
1168func (x *nativeSoftwareManagementServiceRevertToStandbyImageServer) Send(m *ImageStatus) error {
1169 return x.ServerStream.SendMsg(m)
1170}
1171
amit.ghoshed23db02020-11-18 10:26:36 +01001172func _NativeSoftwareManagementService_UpdateStartupConfiguration_Handler(srv interface{}, stream grpc.ServerStream) error {
1173 m := new(ConfigRequest)
1174 if err := stream.RecvMsg(m); err != nil {
1175 return err
1176 }
1177 return srv.(NativeSoftwareManagementServiceServer).UpdateStartupConfiguration(m, &nativeSoftwareManagementServiceUpdateStartupConfigurationServer{stream})
1178}
1179
1180type NativeSoftwareManagementService_UpdateStartupConfigurationServer interface {
1181 Send(*ConfigResponse) error
1182 grpc.ServerStream
1183}
1184
1185type nativeSoftwareManagementServiceUpdateStartupConfigurationServer struct {
1186 grpc.ServerStream
1187}
1188
1189func (x *nativeSoftwareManagementServiceUpdateStartupConfigurationServer) Send(m *ConfigResponse) error {
1190 return x.ServerStream.SendMsg(m)
1191}
1192
amit.ghosh2c938b82021-01-14 11:34:03 +01001193func _NativeSoftwareManagementService_GetStartupConfigurationInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
1194 in := new(StartupConfigInfoRequest)
1195 if err := dec(in); err != nil {
1196 return nil, err
1197 }
1198 if interceptor == nil {
1199 return srv.(NativeSoftwareManagementServiceServer).GetStartupConfigurationInfo(ctx, in)
1200 }
1201 info := &grpc.UnaryServerInfo{
1202 Server: srv,
1203 FullMethod: "/dmi.NativeSoftwareManagementService/GetStartupConfigurationInfo",
1204 }
1205 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
1206 return srv.(NativeSoftwareManagementServiceServer).GetStartupConfigurationInfo(ctx, req.(*StartupConfigInfoRequest))
1207 }
1208 return interceptor(ctx, in, info, handler)
1209}
1210
amit.ghosh5a689802022-09-12 14:26:10 +02001211func _NativeSoftwareManagementService_UploadDebugInfo_Handler(srv interface{}, stream grpc.ServerStream) error {
1212 m := new(UploadDebugInfoRequest)
1213 if err := stream.RecvMsg(m); err != nil {
1214 return err
1215 }
1216 return srv.(NativeSoftwareManagementServiceServer).UploadDebugInfo(m, &nativeSoftwareManagementServiceUploadDebugInfoServer{stream})
1217}
1218
1219type NativeSoftwareManagementService_UploadDebugInfoServer interface {
1220 Send(*UploadDebugInfoStatus) error
1221 grpc.ServerStream
1222}
1223
1224type nativeSoftwareManagementServiceUploadDebugInfoServer struct {
1225 grpc.ServerStream
1226}
1227
1228func (x *nativeSoftwareManagementServiceUploadDebugInfoServer) Send(m *UploadDebugInfoStatus) error {
1229 return x.ServerStream.SendMsg(m)
1230}
1231
Amit Ghosh09f28362020-06-12 21:52:19 +01001232var _NativeSoftwareManagementService_serviceDesc = grpc.ServiceDesc{
1233 ServiceName: "dmi.NativeSoftwareManagementService",
1234 HandlerType: (*NativeSoftwareManagementServiceServer)(nil),
1235 Methods: []grpc.MethodDesc{
1236 {
1237 MethodName: "GetSoftwareVersion",
1238 Handler: _NativeSoftwareManagementService_GetSoftwareVersion_Handler,
1239 },
amit.ghosh2c938b82021-01-14 11:34:03 +01001240 {
1241 MethodName: "GetStartupConfigurationInfo",
1242 Handler: _NativeSoftwareManagementService_GetStartupConfigurationInfo_Handler,
1243 },
Amit Ghosh09f28362020-06-12 21:52:19 +01001244 },
1245 Streams: []grpc.StreamDesc{
1246 {
1247 StreamName: "DownloadImage",
1248 Handler: _NativeSoftwareManagementService_DownloadImage_Handler,
1249 ServerStreams: true,
1250 },
1251 {
1252 StreamName: "ActivateImage",
1253 Handler: _NativeSoftwareManagementService_ActivateImage_Handler,
1254 ServerStreams: true,
1255 },
1256 {
1257 StreamName: "RevertToStandbyImage",
1258 Handler: _NativeSoftwareManagementService_RevertToStandbyImage_Handler,
1259 ServerStreams: true,
1260 },
amit.ghoshed23db02020-11-18 10:26:36 +01001261 {
1262 StreamName: "UpdateStartupConfiguration",
1263 Handler: _NativeSoftwareManagementService_UpdateStartupConfiguration_Handler,
1264 ServerStreams: true,
1265 },
amit.ghosh5a689802022-09-12 14:26:10 +02001266 {
1267 StreamName: "UploadDebugInfo",
1268 Handler: _NativeSoftwareManagementService_UploadDebugInfo_Handler,
1269 ServerStreams: true,
1270 },
Amit Ghosh09f28362020-06-12 21:52:19 +01001271 },
1272 Metadata: "dmi/sw_management_service.proto",
1273}