blob: 0424f8902b87f224288108b08cccd10b63968a8f [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"
11 math "math"
12)
13
14// Reference imports to suppress errors if they are not otherwise used.
15var _ = proto.Marshal
16var _ = fmt.Errorf
17var _ = math.Inf
18
19// This is a compile-time assertion to ensure that this generated file
20// is compatible with the proto package it is being compiled against.
21// A compilation error at this line likely means your copy of the
22// proto package needs to be updated.
23const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
24
amit.ghoshae473032021-01-10 11:59:10 +010025type GetSoftwareVersionInformationResponse_Reason int32
26
27const (
amit.ghoshbd2022e2021-02-22 05:58:53 +010028 GetSoftwareVersionInformationResponse_UNDEFINED_REASON GetSoftwareVersionInformationResponse_Reason = 0
29 GetSoftwareVersionInformationResponse_UNKNOWN_DEVICE GetSoftwareVersionInformationResponse_Reason = 1
30 GetSoftwareVersionInformationResponse_INTERNAL_ERROR GetSoftwareVersionInformationResponse_Reason = 2
31 GetSoftwareVersionInformationResponse_DEVICE_UNREACHABLE GetSoftwareVersionInformationResponse_Reason = 3
amit.ghoshae473032021-01-10 11:59:10 +010032)
33
34var GetSoftwareVersionInformationResponse_Reason_name = map[int32]string{
35 0: "UNDEFINED_REASON",
36 1: "UNKNOWN_DEVICE",
37 2: "INTERNAL_ERROR",
amit.ghoshbd2022e2021-02-22 05:58:53 +010038 3: "DEVICE_UNREACHABLE",
amit.ghoshae473032021-01-10 11:59:10 +010039}
40
41var GetSoftwareVersionInformationResponse_Reason_value = map[string]int32{
amit.ghoshbd2022e2021-02-22 05:58:53 +010042 "UNDEFINED_REASON": 0,
43 "UNKNOWN_DEVICE": 1,
44 "INTERNAL_ERROR": 2,
45 "DEVICE_UNREACHABLE": 3,
amit.ghoshae473032021-01-10 11:59:10 +010046}
47
48func (x GetSoftwareVersionInformationResponse_Reason) String() string {
49 return proto.EnumName(GetSoftwareVersionInformationResponse_Reason_name, int32(x))
50}
51
52func (GetSoftwareVersionInformationResponse_Reason) EnumDescriptor() ([]byte, []int) {
53 return fileDescriptor_000929e4bec891d7, []int{1, 0}
54}
55
56type ConfigResponse_Reason int32
57
58const (
59 ConfigResponse_UNDEFINED_REASON ConfigResponse_Reason = 0
60 ConfigResponse_UNKNOWN_DEVICE ConfigResponse_Reason = 1
61 ConfigResponse_INTERNAL_ERROR ConfigResponse_Reason = 2
62 ConfigResponse_ERROR_FETCHING_CONFIG ConfigResponse_Reason = 3
63 ConfigResponse_INVALID_CONFIG ConfigResponse_Reason = 4
64 ConfigResponse_OPERATION_ALREADY_IN_PROGRESS ConfigResponse_Reason = 5
amit.ghoshbd2022e2021-02-22 05:58:53 +010065 ConfigResponse_DEVICE_UNREACHABLE ConfigResponse_Reason = 6
amit.ghoshae473032021-01-10 11:59:10 +010066)
67
68var ConfigResponse_Reason_name = map[int32]string{
69 0: "UNDEFINED_REASON",
70 1: "UNKNOWN_DEVICE",
71 2: "INTERNAL_ERROR",
72 3: "ERROR_FETCHING_CONFIG",
73 4: "INVALID_CONFIG",
74 5: "OPERATION_ALREADY_IN_PROGRESS",
amit.ghoshbd2022e2021-02-22 05:58:53 +010075 6: "DEVICE_UNREACHABLE",
amit.ghoshae473032021-01-10 11:59:10 +010076}
77
78var ConfigResponse_Reason_value = map[string]int32{
79 "UNDEFINED_REASON": 0,
80 "UNKNOWN_DEVICE": 1,
81 "INTERNAL_ERROR": 2,
82 "ERROR_FETCHING_CONFIG": 3,
83 "INVALID_CONFIG": 4,
84 "OPERATION_ALREADY_IN_PROGRESS": 5,
amit.ghoshbd2022e2021-02-22 05:58:53 +010085 "DEVICE_UNREACHABLE": 6,
amit.ghoshae473032021-01-10 11:59:10 +010086}
87
88func (x ConfigResponse_Reason) String() string {
89 return proto.EnumName(ConfigResponse_Reason_name, int32(x))
90}
91
92func (ConfigResponse_Reason) EnumDescriptor() ([]byte, []int) {
93 return fileDescriptor_000929e4bec891d7, []int{4, 0}
94}
95
amit.ghosh2c938b82021-01-14 11:34:03 +010096type StartupConfigInfoResponse_Reason int32
97
98const (
amit.ghoshbd2022e2021-02-22 05:58:53 +010099 StartupConfigInfoResponse_UNDEFINED_REASON StartupConfigInfoResponse_Reason = 0
100 StartupConfigInfoResponse_UNKNOWN_DEVICE StartupConfigInfoResponse_Reason = 1
101 StartupConfigInfoResponse_INTERNAL_ERROR StartupConfigInfoResponse_Reason = 2
102 StartupConfigInfoResponse_DEVICE_UNREACHABLE StartupConfigInfoResponse_Reason = 3
amit.ghosh2c938b82021-01-14 11:34:03 +0100103)
104
105var StartupConfigInfoResponse_Reason_name = map[int32]string{
106 0: "UNDEFINED_REASON",
107 1: "UNKNOWN_DEVICE",
108 2: "INTERNAL_ERROR",
amit.ghoshbd2022e2021-02-22 05:58:53 +0100109 3: "DEVICE_UNREACHABLE",
amit.ghosh2c938b82021-01-14 11:34:03 +0100110}
111
112var StartupConfigInfoResponse_Reason_value = map[string]int32{
amit.ghoshbd2022e2021-02-22 05:58:53 +0100113 "UNDEFINED_REASON": 0,
114 "UNKNOWN_DEVICE": 1,
115 "INTERNAL_ERROR": 2,
116 "DEVICE_UNREACHABLE": 3,
amit.ghosh2c938b82021-01-14 11:34:03 +0100117}
118
119func (x StartupConfigInfoResponse_Reason) String() string {
120 return proto.EnumName(StartupConfigInfoResponse_Reason_name, int32(x))
121}
122
123func (StartupConfigInfoResponse_Reason) EnumDescriptor() ([]byte, []int) {
124 return fileDescriptor_000929e4bec891d7, []int{6, 0}
125}
126
Amit Ghosh09f28362020-06-12 21:52:19 +0100127type SoftwareVersionInformation struct {
128 ActiveVersions []*ImageVersion `protobuf:"bytes,1,rep,name=active_versions,json=activeVersions,proto3" json:"active_versions,omitempty"`
129 StandbyVersions []*ImageVersion `protobuf:"bytes,2,rep,name=standby_versions,json=standbyVersions,proto3" json:"standby_versions,omitempty"`
130 XXX_NoUnkeyedLiteral struct{} `json:"-"`
131 XXX_unrecognized []byte `json:"-"`
132 XXX_sizecache int32 `json:"-"`
133}
134
135func (m *SoftwareVersionInformation) Reset() { *m = SoftwareVersionInformation{} }
136func (m *SoftwareVersionInformation) String() string { return proto.CompactTextString(m) }
137func (*SoftwareVersionInformation) ProtoMessage() {}
138func (*SoftwareVersionInformation) Descriptor() ([]byte, []int) {
139 return fileDescriptor_000929e4bec891d7, []int{0}
140}
141
142func (m *SoftwareVersionInformation) XXX_Unmarshal(b []byte) error {
143 return xxx_messageInfo_SoftwareVersionInformation.Unmarshal(m, b)
144}
145func (m *SoftwareVersionInformation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
146 return xxx_messageInfo_SoftwareVersionInformation.Marshal(b, m, deterministic)
147}
148func (m *SoftwareVersionInformation) XXX_Merge(src proto.Message) {
149 xxx_messageInfo_SoftwareVersionInformation.Merge(m, src)
150}
151func (m *SoftwareVersionInformation) XXX_Size() int {
152 return xxx_messageInfo_SoftwareVersionInformation.Size(m)
153}
154func (m *SoftwareVersionInformation) XXX_DiscardUnknown() {
155 xxx_messageInfo_SoftwareVersionInformation.DiscardUnknown(m)
156}
157
158var xxx_messageInfo_SoftwareVersionInformation proto.InternalMessageInfo
159
160func (m *SoftwareVersionInformation) GetActiveVersions() []*ImageVersion {
161 if m != nil {
162 return m.ActiveVersions
163 }
164 return nil
165}
166
167func (m *SoftwareVersionInformation) GetStandbyVersions() []*ImageVersion {
168 if m != nil {
169 return m.StandbyVersions
170 }
171 return nil
172}
173
aghoshc301dcd2020-09-03 16:55:34 +0100174type GetSoftwareVersionInformationResponse struct {
amit.ghoshae473032021-01-10 11:59:10 +0100175 Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=dmi.Status" json:"status,omitempty"`
176 Reason GetSoftwareVersionInformationResponse_Reason `protobuf:"varint,2,opt,name=reason,proto3,enum=dmi.GetSoftwareVersionInformationResponse_Reason" json:"reason,omitempty"`
177 Info *SoftwareVersionInformation `protobuf:"bytes,3,opt,name=info,proto3" json:"info,omitempty"`
178 XXX_NoUnkeyedLiteral struct{} `json:"-"`
179 XXX_unrecognized []byte `json:"-"`
180 XXX_sizecache int32 `json:"-"`
aghoshc301dcd2020-09-03 16:55:34 +0100181}
182
183func (m *GetSoftwareVersionInformationResponse) Reset() { *m = GetSoftwareVersionInformationResponse{} }
184func (m *GetSoftwareVersionInformationResponse) String() string { return proto.CompactTextString(m) }
185func (*GetSoftwareVersionInformationResponse) ProtoMessage() {}
186func (*GetSoftwareVersionInformationResponse) Descriptor() ([]byte, []int) {
187 return fileDescriptor_000929e4bec891d7, []int{1}
188}
189
190func (m *GetSoftwareVersionInformationResponse) XXX_Unmarshal(b []byte) error {
191 return xxx_messageInfo_GetSoftwareVersionInformationResponse.Unmarshal(m, b)
192}
193func (m *GetSoftwareVersionInformationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
194 return xxx_messageInfo_GetSoftwareVersionInformationResponse.Marshal(b, m, deterministic)
195}
196func (m *GetSoftwareVersionInformationResponse) XXX_Merge(src proto.Message) {
197 xxx_messageInfo_GetSoftwareVersionInformationResponse.Merge(m, src)
198}
199func (m *GetSoftwareVersionInformationResponse) XXX_Size() int {
200 return xxx_messageInfo_GetSoftwareVersionInformationResponse.Size(m)
201}
202func (m *GetSoftwareVersionInformationResponse) XXX_DiscardUnknown() {
203 xxx_messageInfo_GetSoftwareVersionInformationResponse.DiscardUnknown(m)
204}
205
206var xxx_messageInfo_GetSoftwareVersionInformationResponse proto.InternalMessageInfo
207
208func (m *GetSoftwareVersionInformationResponse) GetStatus() Status {
209 if m != nil {
210 return m.Status
211 }
212 return Status_UNDEFINED_STATUS
213}
214
amit.ghoshae473032021-01-10 11:59:10 +0100215func (m *GetSoftwareVersionInformationResponse) GetReason() GetSoftwareVersionInformationResponse_Reason {
aghoshc301dcd2020-09-03 16:55:34 +0100216 if m != nil {
217 return m.Reason
218 }
amit.ghoshae473032021-01-10 11:59:10 +0100219 return GetSoftwareVersionInformationResponse_UNDEFINED_REASON
aghoshc301dcd2020-09-03 16:55:34 +0100220}
221
222func (m *GetSoftwareVersionInformationResponse) GetInfo() *SoftwareVersionInformation {
223 if m != nil {
224 return m.Info
225 }
226 return nil
227}
228
Amit Ghosh09f28362020-06-12 21:52:19 +0100229type DownloadImageRequest struct {
230 DeviceUuid *Uuid `protobuf:"bytes,1,opt,name=device_uuid,json=deviceUuid,proto3" json:"device_uuid,omitempty"`
231 ImageInfo *ImageInformation `protobuf:"bytes,2,opt,name=image_info,json=imageInfo,proto3" json:"image_info,omitempty"`
232 XXX_NoUnkeyedLiteral struct{} `json:"-"`
233 XXX_unrecognized []byte `json:"-"`
234 XXX_sizecache int32 `json:"-"`
235}
236
237func (m *DownloadImageRequest) Reset() { *m = DownloadImageRequest{} }
238func (m *DownloadImageRequest) String() string { return proto.CompactTextString(m) }
239func (*DownloadImageRequest) ProtoMessage() {}
240func (*DownloadImageRequest) Descriptor() ([]byte, []int) {
aghoshc301dcd2020-09-03 16:55:34 +0100241 return fileDescriptor_000929e4bec891d7, []int{2}
Amit Ghosh09f28362020-06-12 21:52:19 +0100242}
243
244func (m *DownloadImageRequest) XXX_Unmarshal(b []byte) error {
245 return xxx_messageInfo_DownloadImageRequest.Unmarshal(m, b)
246}
247func (m *DownloadImageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
248 return xxx_messageInfo_DownloadImageRequest.Marshal(b, m, deterministic)
249}
250func (m *DownloadImageRequest) XXX_Merge(src proto.Message) {
251 xxx_messageInfo_DownloadImageRequest.Merge(m, src)
252}
253func (m *DownloadImageRequest) XXX_Size() int {
254 return xxx_messageInfo_DownloadImageRequest.Size(m)
255}
256func (m *DownloadImageRequest) XXX_DiscardUnknown() {
257 xxx_messageInfo_DownloadImageRequest.DiscardUnknown(m)
258}
259
260var xxx_messageInfo_DownloadImageRequest proto.InternalMessageInfo
261
262func (m *DownloadImageRequest) GetDeviceUuid() *Uuid {
263 if m != nil {
264 return m.DeviceUuid
265 }
266 return nil
267}
268
269func (m *DownloadImageRequest) GetImageInfo() *ImageInformation {
270 if m != nil {
271 return m.ImageInfo
272 }
273 return nil
274}
275
amit.ghoshed23db02020-11-18 10:26:36 +0100276type ConfigRequest struct {
277 DeviceUuid *Uuid `protobuf:"bytes,1,opt,name=device_uuid,json=deviceUuid,proto3" json:"device_uuid,omitempty"`
278 // Location of the configuration file, authentication (user/pass) if any should be in the url string
279 // The config_url would contain the protocol, credentials, the IP address/DNS of the server and the path of the file
280 // e.g. sftp://download_user:download_pass@192.168.0.1:22/OLT-configs/config-v1.2.3.xml
281 ConfigUrl string `protobuf:"bytes,2,opt,name=config_url,json=configUrl,proto3" json:"config_url,omitempty"`
282 XXX_NoUnkeyedLiteral struct{} `json:"-"`
283 XXX_unrecognized []byte `json:"-"`
284 XXX_sizecache int32 `json:"-"`
285}
286
287func (m *ConfigRequest) Reset() { *m = ConfigRequest{} }
288func (m *ConfigRequest) String() string { return proto.CompactTextString(m) }
289func (*ConfigRequest) ProtoMessage() {}
290func (*ConfigRequest) Descriptor() ([]byte, []int) {
291 return fileDescriptor_000929e4bec891d7, []int{3}
292}
293
294func (m *ConfigRequest) XXX_Unmarshal(b []byte) error {
295 return xxx_messageInfo_ConfigRequest.Unmarshal(m, b)
296}
297func (m *ConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
298 return xxx_messageInfo_ConfigRequest.Marshal(b, m, deterministic)
299}
300func (m *ConfigRequest) XXX_Merge(src proto.Message) {
301 xxx_messageInfo_ConfigRequest.Merge(m, src)
302}
303func (m *ConfigRequest) XXX_Size() int {
304 return xxx_messageInfo_ConfigRequest.Size(m)
305}
306func (m *ConfigRequest) XXX_DiscardUnknown() {
307 xxx_messageInfo_ConfigRequest.DiscardUnknown(m)
308}
309
310var xxx_messageInfo_ConfigRequest proto.InternalMessageInfo
311
312func (m *ConfigRequest) GetDeviceUuid() *Uuid {
313 if m != nil {
314 return m.DeviceUuid
315 }
316 return nil
317}
318
319func (m *ConfigRequest) GetConfigUrl() string {
320 if m != nil {
321 return m.ConfigUrl
322 }
323 return ""
324}
325
326type ConfigResponse struct {
amit.ghoshae473032021-01-10 11:59:10 +0100327 Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=dmi.Status" json:"status,omitempty"`
328 Reason ConfigResponse_Reason `protobuf:"varint,2,opt,name=reason,proto3,enum=dmi.ConfigResponse_Reason" json:"reason,omitempty"`
329 XXX_NoUnkeyedLiteral struct{} `json:"-"`
330 XXX_unrecognized []byte `json:"-"`
331 XXX_sizecache int32 `json:"-"`
amit.ghoshed23db02020-11-18 10:26:36 +0100332}
333
334func (m *ConfigResponse) Reset() { *m = ConfigResponse{} }
335func (m *ConfigResponse) String() string { return proto.CompactTextString(m) }
336func (*ConfigResponse) ProtoMessage() {}
337func (*ConfigResponse) Descriptor() ([]byte, []int) {
338 return fileDescriptor_000929e4bec891d7, []int{4}
339}
340
341func (m *ConfigResponse) XXX_Unmarshal(b []byte) error {
342 return xxx_messageInfo_ConfigResponse.Unmarshal(m, b)
343}
344func (m *ConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
345 return xxx_messageInfo_ConfigResponse.Marshal(b, m, deterministic)
346}
347func (m *ConfigResponse) XXX_Merge(src proto.Message) {
348 xxx_messageInfo_ConfigResponse.Merge(m, src)
349}
350func (m *ConfigResponse) XXX_Size() int {
351 return xxx_messageInfo_ConfigResponse.Size(m)
352}
353func (m *ConfigResponse) XXX_DiscardUnknown() {
354 xxx_messageInfo_ConfigResponse.DiscardUnknown(m)
355}
356
357var xxx_messageInfo_ConfigResponse proto.InternalMessageInfo
358
359func (m *ConfigResponse) GetStatus() Status {
360 if m != nil {
361 return m.Status
362 }
363 return Status_UNDEFINED_STATUS
364}
365
amit.ghoshae473032021-01-10 11:59:10 +0100366func (m *ConfigResponse) GetReason() ConfigResponse_Reason {
amit.ghoshed23db02020-11-18 10:26:36 +0100367 if m != nil {
368 return m.Reason
369 }
amit.ghoshae473032021-01-10 11:59:10 +0100370 return ConfigResponse_UNDEFINED_REASON
amit.ghoshed23db02020-11-18 10:26:36 +0100371}
372
amit.ghosh2c938b82021-01-14 11:34:03 +0100373type StartupConfigInfoRequest struct {
374 DeviceUuid *Uuid `protobuf:"bytes,1,opt,name=device_uuid,json=deviceUuid,proto3" json:"device_uuid,omitempty"`
375 XXX_NoUnkeyedLiteral struct{} `json:"-"`
376 XXX_unrecognized []byte `json:"-"`
377 XXX_sizecache int32 `json:"-"`
378}
379
380func (m *StartupConfigInfoRequest) Reset() { *m = StartupConfigInfoRequest{} }
381func (m *StartupConfigInfoRequest) String() string { return proto.CompactTextString(m) }
382func (*StartupConfigInfoRequest) ProtoMessage() {}
383func (*StartupConfigInfoRequest) Descriptor() ([]byte, []int) {
384 return fileDescriptor_000929e4bec891d7, []int{5}
385}
386
387func (m *StartupConfigInfoRequest) XXX_Unmarshal(b []byte) error {
388 return xxx_messageInfo_StartupConfigInfoRequest.Unmarshal(m, b)
389}
390func (m *StartupConfigInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
391 return xxx_messageInfo_StartupConfigInfoRequest.Marshal(b, m, deterministic)
392}
393func (m *StartupConfigInfoRequest) XXX_Merge(src proto.Message) {
394 xxx_messageInfo_StartupConfigInfoRequest.Merge(m, src)
395}
396func (m *StartupConfigInfoRequest) XXX_Size() int {
397 return xxx_messageInfo_StartupConfigInfoRequest.Size(m)
398}
399func (m *StartupConfigInfoRequest) XXX_DiscardUnknown() {
400 xxx_messageInfo_StartupConfigInfoRequest.DiscardUnknown(m)
401}
402
403var xxx_messageInfo_StartupConfigInfoRequest proto.InternalMessageInfo
404
405func (m *StartupConfigInfoRequest) GetDeviceUuid() *Uuid {
406 if m != nil {
407 return m.DeviceUuid
408 }
409 return nil
410}
411
412type StartupConfigInfoResponse struct {
413 Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=dmi.Status" json:"status,omitempty"`
414 Reason StartupConfigInfoResponse_Reason `protobuf:"varint,2,opt,name=reason,proto3,enum=dmi.StartupConfigInfoResponse_Reason" json:"reason,omitempty"`
415 // The config_url is an optional attribute, the device manager could return the location from
416 // where the config was downloaded. Also it would not be present/empty for a fresh device into which the
417 // startup config would have been installed in the factory.
418 ConfigUrl string `protobuf:"bytes,3,opt,name=config_url,json=configUrl,proto3" json:"config_url,omitempty"`
419 // The version of the startup configuration. It is recommended to use semVer, but the DM implementations
420 // and operators could choose any other format as well.
421 Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"`
422 XXX_NoUnkeyedLiteral struct{} `json:"-"`
423 XXX_unrecognized []byte `json:"-"`
424 XXX_sizecache int32 `json:"-"`
425}
426
427func (m *StartupConfigInfoResponse) Reset() { *m = StartupConfigInfoResponse{} }
428func (m *StartupConfigInfoResponse) String() string { return proto.CompactTextString(m) }
429func (*StartupConfigInfoResponse) ProtoMessage() {}
430func (*StartupConfigInfoResponse) Descriptor() ([]byte, []int) {
431 return fileDescriptor_000929e4bec891d7, []int{6}
432}
433
434func (m *StartupConfigInfoResponse) XXX_Unmarshal(b []byte) error {
435 return xxx_messageInfo_StartupConfigInfoResponse.Unmarshal(m, b)
436}
437func (m *StartupConfigInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
438 return xxx_messageInfo_StartupConfigInfoResponse.Marshal(b, m, deterministic)
439}
440func (m *StartupConfigInfoResponse) XXX_Merge(src proto.Message) {
441 xxx_messageInfo_StartupConfigInfoResponse.Merge(m, src)
442}
443func (m *StartupConfigInfoResponse) XXX_Size() int {
444 return xxx_messageInfo_StartupConfigInfoResponse.Size(m)
445}
446func (m *StartupConfigInfoResponse) XXX_DiscardUnknown() {
447 xxx_messageInfo_StartupConfigInfoResponse.DiscardUnknown(m)
448}
449
450var xxx_messageInfo_StartupConfigInfoResponse proto.InternalMessageInfo
451
452func (m *StartupConfigInfoResponse) GetStatus() Status {
453 if m != nil {
454 return m.Status
455 }
456 return Status_UNDEFINED_STATUS
457}
458
459func (m *StartupConfigInfoResponse) GetReason() StartupConfigInfoResponse_Reason {
460 if m != nil {
461 return m.Reason
462 }
463 return StartupConfigInfoResponse_UNDEFINED_REASON
464}
465
466func (m *StartupConfigInfoResponse) GetConfigUrl() string {
467 if m != nil {
468 return m.ConfigUrl
469 }
470 return ""
471}
472
473func (m *StartupConfigInfoResponse) GetVersion() string {
474 if m != nil {
475 return m.Version
476 }
477 return ""
478}
479
Amit Ghosh09f28362020-06-12 21:52:19 +0100480func init() {
amit.ghoshae473032021-01-10 11:59:10 +0100481 proto.RegisterEnum("dmi.GetSoftwareVersionInformationResponse_Reason", GetSoftwareVersionInformationResponse_Reason_name, GetSoftwareVersionInformationResponse_Reason_value)
482 proto.RegisterEnum("dmi.ConfigResponse_Reason", ConfigResponse_Reason_name, ConfigResponse_Reason_value)
amit.ghosh2c938b82021-01-14 11:34:03 +0100483 proto.RegisterEnum("dmi.StartupConfigInfoResponse_Reason", StartupConfigInfoResponse_Reason_name, StartupConfigInfoResponse_Reason_value)
Amit Ghosh09f28362020-06-12 21:52:19 +0100484 proto.RegisterType((*SoftwareVersionInformation)(nil), "dmi.SoftwareVersionInformation")
aghoshc301dcd2020-09-03 16:55:34 +0100485 proto.RegisterType((*GetSoftwareVersionInformationResponse)(nil), "dmi.GetSoftwareVersionInformationResponse")
Amit Ghosh09f28362020-06-12 21:52:19 +0100486 proto.RegisterType((*DownloadImageRequest)(nil), "dmi.DownloadImageRequest")
amit.ghoshed23db02020-11-18 10:26:36 +0100487 proto.RegisterType((*ConfigRequest)(nil), "dmi.ConfigRequest")
488 proto.RegisterType((*ConfigResponse)(nil), "dmi.ConfigResponse")
amit.ghosh2c938b82021-01-14 11:34:03 +0100489 proto.RegisterType((*StartupConfigInfoRequest)(nil), "dmi.StartupConfigInfoRequest")
490 proto.RegisterType((*StartupConfigInfoResponse)(nil), "dmi.StartupConfigInfoResponse")
Amit Ghosh09f28362020-06-12 21:52:19 +0100491}
492
493func init() { proto.RegisterFile("dmi/sw_management_service.proto", fileDescriptor_000929e4bec891d7) }
494
495var fileDescriptor_000929e4bec891d7 = []byte{
amit.ghoshbd2022e2021-02-22 05:58:53 +0100496 // 771 bytes of a gzipped FileDescriptorProto
497 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x55, 0xd1, 0x6e, 0xf3, 0x34,
498 0x14, 0x26, 0xed, 0x28, 0xea, 0x29, 0xeb, 0xf2, 0x9b, 0xfd, 0xa8, 0x2b, 0x1a, 0xfb, 0x09, 0x9a,
499 0x34, 0x4d, 0x5a, 0x3b, 0xba, 0xdd, 0xc0, 0x00, 0x29, 0x6b, 0xd3, 0x2e, 0xa2, 0xa4, 0xc3, 0x69,
500 0x87, 0x98, 0x10, 0x91, 0xd7, 0xb8, 0x9d, 0xa5, 0x25, 0x2e, 0x89, 0xd3, 0xc2, 0x8b, 0x20, 0x2e,
501 0x78, 0x04, 0x2e, 0x78, 0x12, 0x9e, 0x09, 0xc5, 0x4e, 0x29, 0xed, 0x5a, 0xb4, 0x4d, 0x70, 0x97,
502 0x1c, 0x7f, 0xdf, 0x67, 0xfb, 0x7c, 0xe7, 0x1c, 0xc3, 0x81, 0x1f, 0xb0, 0x7a, 0x3c, 0xf3, 0x02,
503 0x12, 0x92, 0x31, 0x0d, 0x68, 0x28, 0xbc, 0x98, 0x46, 0x53, 0x36, 0xa4, 0xb5, 0x49, 0xc4, 0x05,
504 0x47, 0x79, 0x3f, 0x60, 0xd5, 0x57, 0x29, 0x6a, 0xc8, 0x83, 0x80, 0x87, 0xb1, 0x8a, 0x57, 0xdf,
505 0x4d, 0x43, 0xf7, 0xb3, 0xec, 0x0f, 0x65, 0x32, 0x2c, 0x20, 0xe3, 0x8c, 0x69, 0xfc, 0xa2, 0x41,
506 0xd5, 0xe5, 0x23, 0x31, 0x23, 0x11, 0xbd, 0xa1, 0x51, 0xcc, 0x78, 0x68, 0x87, 0x23, 0x1e, 0x05,
507 0x44, 0x30, 0x1e, 0xa2, 0xcf, 0x60, 0x87, 0x0c, 0x05, 0x9b, 0x52, 0x6f, 0xaa, 0x16, 0xe3, 0x8a,
508 0xf6, 0x26, 0x7f, 0x54, 0x6a, 0xbc, 0xaa, 0xf9, 0x01, 0xab, 0xd9, 0xa9, 0x52, 0x46, 0xc3, 0x65,
509 0x85, 0xcc, 0x7e, 0x63, 0xf4, 0x39, 0xe8, 0xb1, 0x20, 0xa1, 0x7f, 0xf7, 0xf3, 0x82, 0x9c, 0xdb,
510 0x44, 0xde, 0xc9, 0xa0, 0x73, 0xb6, 0xf1, 0x7b, 0x0e, 0x0e, 0x3b, 0x54, 0x6c, 0x3e, 0x1b, 0xa6,
511 0xf1, 0x84, 0x87, 0x31, 0x45, 0x1f, 0x43, 0x21, 0x16, 0x44, 0x24, 0xe9, 0xd1, 0xb4, 0xa3, 0x72,
512 0xa3, 0x24, 0xd5, 0x5d, 0x19, 0xc2, 0xd9, 0x12, 0xb2, 0xa1, 0x10, 0x51, 0x12, 0xf3, 0xb0, 0x92,
513 0x93, 0xa0, 0x4f, 0x24, 0xe8, 0x49, 0x1b, 0xd4, 0xb0, 0x24, 0xe2, 0x4c, 0x00, 0x9d, 0xc1, 0x16,
514 0x0b, 0x47, 0xbc, 0x92, 0x7f, 0xa3, 0x1d, 0x95, 0x1a, 0x07, 0x6a, 0xb7, 0xcd, 0x2a, 0x12, 0x6c,
515 0xfc, 0x00, 0x05, 0x25, 0x83, 0x76, 0x41, 0x1f, 0x38, 0x2d, 0xab, 0x6d, 0x3b, 0x56, 0xcb, 0xc3,
516 0x96, 0xe9, 0xf6, 0x1c, 0xfd, 0x2d, 0x84, 0xa0, 0x3c, 0x70, 0xbe, 0x72, 0x7a, 0xdf, 0x3a, 0x5e,
517 0xcb, 0xba, 0xb1, 0x9b, 0x96, 0xae, 0xa5, 0x31, 0xdb, 0xe9, 0x5b, 0xd8, 0x31, 0xbb, 0x9e, 0x85,
518 0x71, 0x0f, 0xeb, 0x39, 0xf4, 0x3e, 0x20, 0xb5, 0xee, 0x0d, 0x1c, 0x6c, 0x99, 0xcd, 0x2b, 0xf3,
519 0xb2, 0x6b, 0xe9, 0x79, 0xe3, 0x27, 0xd8, 0x6d, 0xf1, 0x59, 0xf8, 0xc0, 0x89, 0x2f, 0xf3, 0x8a,
520 0xe9, 0x8f, 0x09, 0x8d, 0x05, 0x3a, 0x86, 0x92, 0x4f, 0xd3, 0x4a, 0xf1, 0x92, 0x84, 0xf9, 0x32,
521 0x43, 0xa5, 0x46, 0x51, 0x9e, 0x79, 0x90, 0x30, 0x1f, 0x83, 0x5a, 0x4d, 0xbf, 0xd1, 0x39, 0x80,
522 0x2c, 0x0d, 0x4f, 0x5e, 0x2f, 0x27, 0xa1, 0xaf, 0x17, 0x56, 0xfd, 0xf3, 0x52, 0x45, 0x36, 0x8f,
523 0x18, 0xb7, 0xb0, 0xdd, 0xe4, 0xe1, 0x88, 0x8d, 0x5f, 0xb2, 0xe5, 0x3e, 0xc0, 0x50, 0x92, 0xbd,
524 0x24, 0x7a, 0x90, 0x5b, 0x16, 0x71, 0x51, 0x45, 0x06, 0xd1, 0x83, 0xf1, 0x5b, 0x0e, 0xca, 0x73,
525 0xf1, 0xe7, 0xb8, 0xdd, 0x58, 0x71, 0xbb, 0x2a, 0x41, 0xcb, 0x4a, 0x2b, 0xb6, 0x1a, 0x7f, 0x68,
526 0xff, 0x91, 0x45, 0x7b, 0xf0, 0x5a, 0x7e, 0x7a, 0x6d, 0xab, 0xdf, 0xbc, 0xb2, 0x9d, 0x8e, 0xd7,
527 0xec, 0x39, 0x6d, 0xbb, 0xa3, 0xe7, 0x15, 0xfc, 0xc6, 0xec, 0xda, 0xad, 0x79, 0x6c, 0x0b, 0x7d,
528 0x04, 0xfb, 0xbd, 0x6b, 0x0b, 0x9b, 0x7d, 0xbb, 0xe7, 0x78, 0x66, 0x17, 0x5b, 0x66, 0xeb, 0x3b,
529 0xcf, 0x76, 0xbc, 0x6b, 0xdc, 0xeb, 0x60, 0xcb, 0x75, 0xf5, 0xb7, 0x37, 0x98, 0x5e, 0x30, 0xda,
530 0x50, 0x71, 0x05, 0x89, 0x44, 0x32, 0x51, 0x57, 0x4b, 0xfd, 0x78, 0x81, 0x0b, 0xc6, 0xaf, 0x39,
531 0xd8, 0x5b, 0x23, 0xf4, 0x9c, 0x8c, 0x7f, 0xb1, 0x92, 0xf1, 0xc3, 0x39, 0x68, 0xbd, 0xe8, 0x6a,
532 0x4f, 0x2d, 0xd7, 0x41, 0x7e, 0xa5, 0x0e, 0x50, 0x05, 0xde, 0xc9, 0x46, 0x48, 0x65, 0x4b, 0xae,
533 0xcd, 0x7f, 0xff, 0xef, 0xbe, 0x6a, 0xfc, 0x99, 0x87, 0x03, 0x87, 0xa4, 0x73, 0x6d, 0xde, 0xe2,
534 0x5f, 0xff, 0x3d, 0x84, 0x5d, 0x35, 0x83, 0xd1, 0x37, 0x80, 0x1e, 0x0f, 0x12, 0xb4, 0x23, 0x33,
535 0x70, 0x45, 0x22, 0x3f, 0x8d, 0xda, 0xad, 0xea, 0xf1, 0xd3, 0x47, 0x0e, 0xfa, 0x12, 0xb6, 0x97,
536 0xda, 0x19, 0xed, 0x49, 0xf2, 0xba, 0x16, 0xaf, 0xea, 0x8b, 0x16, 0x55, 0xa6, 0x9c, 0x6a, 0xe8,
537 0x1c, 0xb6, 0xcd, 0x74, 0x1a, 0x13, 0x41, 0x15, 0xff, 0xd1, 0x69, 0xd6, 0xb1, 0x2e, 0x60, 0x17,
538 0xd3, 0x29, 0x8d, 0x44, 0x9f, 0xbb, 0x6a, 0x1c, 0x3f, 0x83, 0xdc, 0x81, 0xea, 0x60, 0xe2, 0x13,
539 0x41, 0x97, 0x4c, 0x4f, 0x22, 0xf5, 0x90, 0xa0, 0xa5, 0x0e, 0x54, 0x07, 0x7f, 0x6f, 0x4d, 0x57,
540 0x9e, 0x6a, 0xe8, 0x7b, 0xf8, 0x20, 0x4d, 0xd2, 0x1a, 0x95, 0x34, 0x53, 0x68, 0x7f, 0x53, 0x65,
541 0x29, 0xd1, 0x0f, 0xff, 0xbd, 0xf0, 0x2e, 0x2f, 0x6e, 0x3f, 0x1d, 0x33, 0x71, 0x9f, 0xdc, 0xd5,
542 0x86, 0x3c, 0xa8, 0xf3, 0x09, 0x0d, 0x87, 0x3c, 0xf2, 0xeb, 0xaa, 0x1b, 0x4e, 0x16, 0x2f, 0xec,
543 0x09, 0x0b, 0x05, 0x8d, 0x46, 0x64, 0x48, 0xeb, 0xd3, 0xb3, 0xfa, 0x98, 0xd7, 0xfd, 0x80, 0xdd,
544 0x15, 0xe4, 0xa3, 0x79, 0xf6, 0x57, 0x00, 0x00, 0x00, 0xff, 0xff, 0x3d, 0x36, 0x33, 0x95, 0x91,
545 0x07, 0x00, 0x00,
Amit Ghosh09f28362020-06-12 21:52:19 +0100546}
547
548// Reference imports to suppress errors if they are not otherwise used.
549var _ context.Context
550var _ grpc.ClientConn
551
552// This is a compile-time assertion to ensure that this generated file
553// is compatible with the grpc package it is being compiled against.
554const _ = grpc.SupportPackageIsVersion4
555
556// NativeSoftwareManagementServiceClient is the client API for NativeSoftwareManagementService service.
557//
558// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
559type NativeSoftwareManagementServiceClient interface {
560 // Get the software version information of the Active and Standby images
aghoshc301dcd2020-09-03 16:55:34 +0100561 GetSoftwareVersion(ctx context.Context, in *HardwareID, opts ...grpc.CallOption) (*GetSoftwareVersionInformationResponse, error)
Amit Ghosh09f28362020-06-12 21:52:19 +0100562 // Downloads and installs the image in the standby partition, returns the status/progress of the Install
563 DownloadImage(ctx context.Context, in *DownloadImageRequest, opts ...grpc.CallOption) (NativeSoftwareManagementService_DownloadImageClient, error)
564 // Activates and runs the OLT with the image in the standby partition. If things are fine this image will
565 // henceforth be marked as the Active Partition. The old working image would remain on the Standby partition.
566 // Any possibly required (sub-)steps like "commit" are left to the "Device Manager"
567 ActivateImage(ctx context.Context, in *HardwareID, opts ...grpc.CallOption) (NativeSoftwareManagementService_ActivateImageClient, error)
568 // 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 +0100569 // This API is to be used if operator wants to go back to the previous software
Amit Ghosh09f28362020-06-12 21:52:19 +0100570 RevertToStandbyImage(ctx context.Context, in *HardwareID, opts ...grpc.CallOption) (NativeSoftwareManagementService_RevertToStandbyImageClient, error)
amit.ghoshed23db02020-11-18 10:26:36 +0100571 // This API can be used to let the devices pickup their properitary configuration which they need at startup.
572 UpdateStartupConfiguration(ctx context.Context, in *ConfigRequest, opts ...grpc.CallOption) (NativeSoftwareManagementService_UpdateStartupConfigurationClient, error)
amit.ghosh2c938b82021-01-14 11:34:03 +0100573 // This API can be used to retrieve information about the current startup configuration that a device is using
574 GetStartupConfigurationInfo(ctx context.Context, in *StartupConfigInfoRequest, opts ...grpc.CallOption) (*StartupConfigInfoResponse, error)
Amit Ghosh09f28362020-06-12 21:52:19 +0100575}
576
577type nativeSoftwareManagementServiceClient struct {
578 cc *grpc.ClientConn
579}
580
581func NewNativeSoftwareManagementServiceClient(cc *grpc.ClientConn) NativeSoftwareManagementServiceClient {
582 return &nativeSoftwareManagementServiceClient{cc}
583}
584
aghoshc301dcd2020-09-03 16:55:34 +0100585func (c *nativeSoftwareManagementServiceClient) GetSoftwareVersion(ctx context.Context, in *HardwareID, opts ...grpc.CallOption) (*GetSoftwareVersionInformationResponse, error) {
586 out := new(GetSoftwareVersionInformationResponse)
Amit Ghosh09f28362020-06-12 21:52:19 +0100587 err := c.cc.Invoke(ctx, "/dmi.NativeSoftwareManagementService/GetSoftwareVersion", in, out, opts...)
588 if err != nil {
589 return nil, err
590 }
591 return out, nil
592}
593
594func (c *nativeSoftwareManagementServiceClient) DownloadImage(ctx context.Context, in *DownloadImageRequest, opts ...grpc.CallOption) (NativeSoftwareManagementService_DownloadImageClient, error) {
595 stream, err := c.cc.NewStream(ctx, &_NativeSoftwareManagementService_serviceDesc.Streams[0], "/dmi.NativeSoftwareManagementService/DownloadImage", opts...)
596 if err != nil {
597 return nil, err
598 }
599 x := &nativeSoftwareManagementServiceDownloadImageClient{stream}
600 if err := x.ClientStream.SendMsg(in); err != nil {
601 return nil, err
602 }
603 if err := x.ClientStream.CloseSend(); err != nil {
604 return nil, err
605 }
606 return x, nil
607}
608
609type NativeSoftwareManagementService_DownloadImageClient interface {
610 Recv() (*ImageStatus, error)
611 grpc.ClientStream
612}
613
614type nativeSoftwareManagementServiceDownloadImageClient struct {
615 grpc.ClientStream
616}
617
618func (x *nativeSoftwareManagementServiceDownloadImageClient) Recv() (*ImageStatus, error) {
619 m := new(ImageStatus)
620 if err := x.ClientStream.RecvMsg(m); err != nil {
621 return nil, err
622 }
623 return m, nil
624}
625
626func (c *nativeSoftwareManagementServiceClient) ActivateImage(ctx context.Context, in *HardwareID, opts ...grpc.CallOption) (NativeSoftwareManagementService_ActivateImageClient, error) {
627 stream, err := c.cc.NewStream(ctx, &_NativeSoftwareManagementService_serviceDesc.Streams[1], "/dmi.NativeSoftwareManagementService/ActivateImage", opts...)
628 if err != nil {
629 return nil, err
630 }
631 x := &nativeSoftwareManagementServiceActivateImageClient{stream}
632 if err := x.ClientStream.SendMsg(in); err != nil {
633 return nil, err
634 }
635 if err := x.ClientStream.CloseSend(); err != nil {
636 return nil, err
637 }
638 return x, nil
639}
640
641type NativeSoftwareManagementService_ActivateImageClient interface {
642 Recv() (*ImageStatus, error)
643 grpc.ClientStream
644}
645
646type nativeSoftwareManagementServiceActivateImageClient struct {
647 grpc.ClientStream
648}
649
650func (x *nativeSoftwareManagementServiceActivateImageClient) Recv() (*ImageStatus, error) {
651 m := new(ImageStatus)
652 if err := x.ClientStream.RecvMsg(m); err != nil {
653 return nil, err
654 }
655 return m, nil
656}
657
658func (c *nativeSoftwareManagementServiceClient) RevertToStandbyImage(ctx context.Context, in *HardwareID, opts ...grpc.CallOption) (NativeSoftwareManagementService_RevertToStandbyImageClient, error) {
659 stream, err := c.cc.NewStream(ctx, &_NativeSoftwareManagementService_serviceDesc.Streams[2], "/dmi.NativeSoftwareManagementService/RevertToStandbyImage", opts...)
660 if err != nil {
661 return nil, err
662 }
663 x := &nativeSoftwareManagementServiceRevertToStandbyImageClient{stream}
664 if err := x.ClientStream.SendMsg(in); err != nil {
665 return nil, err
666 }
667 if err := x.ClientStream.CloseSend(); err != nil {
668 return nil, err
669 }
670 return x, nil
671}
672
673type NativeSoftwareManagementService_RevertToStandbyImageClient interface {
674 Recv() (*ImageStatus, error)
675 grpc.ClientStream
676}
677
678type nativeSoftwareManagementServiceRevertToStandbyImageClient struct {
679 grpc.ClientStream
680}
681
682func (x *nativeSoftwareManagementServiceRevertToStandbyImageClient) Recv() (*ImageStatus, error) {
683 m := new(ImageStatus)
684 if err := x.ClientStream.RecvMsg(m); err != nil {
685 return nil, err
686 }
687 return m, nil
688}
689
amit.ghoshed23db02020-11-18 10:26:36 +0100690func (c *nativeSoftwareManagementServiceClient) UpdateStartupConfiguration(ctx context.Context, in *ConfigRequest, opts ...grpc.CallOption) (NativeSoftwareManagementService_UpdateStartupConfigurationClient, error) {
691 stream, err := c.cc.NewStream(ctx, &_NativeSoftwareManagementService_serviceDesc.Streams[3], "/dmi.NativeSoftwareManagementService/UpdateStartupConfiguration", opts...)
692 if err != nil {
693 return nil, err
694 }
695 x := &nativeSoftwareManagementServiceUpdateStartupConfigurationClient{stream}
696 if err := x.ClientStream.SendMsg(in); err != nil {
697 return nil, err
698 }
699 if err := x.ClientStream.CloseSend(); err != nil {
700 return nil, err
701 }
702 return x, nil
703}
704
705type NativeSoftwareManagementService_UpdateStartupConfigurationClient interface {
706 Recv() (*ConfigResponse, error)
707 grpc.ClientStream
708}
709
710type nativeSoftwareManagementServiceUpdateStartupConfigurationClient struct {
711 grpc.ClientStream
712}
713
714func (x *nativeSoftwareManagementServiceUpdateStartupConfigurationClient) Recv() (*ConfigResponse, error) {
715 m := new(ConfigResponse)
716 if err := x.ClientStream.RecvMsg(m); err != nil {
717 return nil, err
718 }
719 return m, nil
720}
721
amit.ghosh2c938b82021-01-14 11:34:03 +0100722func (c *nativeSoftwareManagementServiceClient) GetStartupConfigurationInfo(ctx context.Context, in *StartupConfigInfoRequest, opts ...grpc.CallOption) (*StartupConfigInfoResponse, error) {
723 out := new(StartupConfigInfoResponse)
724 err := c.cc.Invoke(ctx, "/dmi.NativeSoftwareManagementService/GetStartupConfigurationInfo", in, out, opts...)
725 if err != nil {
726 return nil, err
727 }
728 return out, nil
729}
730
Amit Ghosh09f28362020-06-12 21:52:19 +0100731// NativeSoftwareManagementServiceServer is the server API for NativeSoftwareManagementService service.
732type NativeSoftwareManagementServiceServer interface {
733 // Get the software version information of the Active and Standby images
aghoshc301dcd2020-09-03 16:55:34 +0100734 GetSoftwareVersion(context.Context, *HardwareID) (*GetSoftwareVersionInformationResponse, error)
Amit Ghosh09f28362020-06-12 21:52:19 +0100735 // Downloads and installs the image in the standby partition, returns the status/progress of the Install
736 DownloadImage(*DownloadImageRequest, NativeSoftwareManagementService_DownloadImageServer) error
737 // Activates and runs the OLT with the image in the standby partition. If things are fine this image will
738 // henceforth be marked as the Active Partition. The old working image would remain on the Standby partition.
739 // Any possibly required (sub-)steps like "commit" are left to the "Device Manager"
740 ActivateImage(*HardwareID, NativeSoftwareManagementService_ActivateImageServer) error
741 // 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 +0100742 // This API is to be used if operator wants to go back to the previous software
Amit Ghosh09f28362020-06-12 21:52:19 +0100743 RevertToStandbyImage(*HardwareID, NativeSoftwareManagementService_RevertToStandbyImageServer) error
amit.ghoshed23db02020-11-18 10:26:36 +0100744 // This API can be used to let the devices pickup their properitary configuration which they need at startup.
745 UpdateStartupConfiguration(*ConfigRequest, NativeSoftwareManagementService_UpdateStartupConfigurationServer) error
amit.ghosh2c938b82021-01-14 11:34:03 +0100746 // This API can be used to retrieve information about the current startup configuration that a device is using
747 GetStartupConfigurationInfo(context.Context, *StartupConfigInfoRequest) (*StartupConfigInfoResponse, error)
Amit Ghosh09f28362020-06-12 21:52:19 +0100748}
749
750func RegisterNativeSoftwareManagementServiceServer(s *grpc.Server, srv NativeSoftwareManagementServiceServer) {
751 s.RegisterService(&_NativeSoftwareManagementService_serviceDesc, srv)
752}
753
754func _NativeSoftwareManagementService_GetSoftwareVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
755 in := new(HardwareID)
756 if err := dec(in); err != nil {
757 return nil, err
758 }
759 if interceptor == nil {
760 return srv.(NativeSoftwareManagementServiceServer).GetSoftwareVersion(ctx, in)
761 }
762 info := &grpc.UnaryServerInfo{
763 Server: srv,
764 FullMethod: "/dmi.NativeSoftwareManagementService/GetSoftwareVersion",
765 }
766 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
767 return srv.(NativeSoftwareManagementServiceServer).GetSoftwareVersion(ctx, req.(*HardwareID))
768 }
769 return interceptor(ctx, in, info, handler)
770}
771
772func _NativeSoftwareManagementService_DownloadImage_Handler(srv interface{}, stream grpc.ServerStream) error {
773 m := new(DownloadImageRequest)
774 if err := stream.RecvMsg(m); err != nil {
775 return err
776 }
777 return srv.(NativeSoftwareManagementServiceServer).DownloadImage(m, &nativeSoftwareManagementServiceDownloadImageServer{stream})
778}
779
780type NativeSoftwareManagementService_DownloadImageServer interface {
781 Send(*ImageStatus) error
782 grpc.ServerStream
783}
784
785type nativeSoftwareManagementServiceDownloadImageServer struct {
786 grpc.ServerStream
787}
788
789func (x *nativeSoftwareManagementServiceDownloadImageServer) Send(m *ImageStatus) error {
790 return x.ServerStream.SendMsg(m)
791}
792
793func _NativeSoftwareManagementService_ActivateImage_Handler(srv interface{}, stream grpc.ServerStream) error {
794 m := new(HardwareID)
795 if err := stream.RecvMsg(m); err != nil {
796 return err
797 }
798 return srv.(NativeSoftwareManagementServiceServer).ActivateImage(m, &nativeSoftwareManagementServiceActivateImageServer{stream})
799}
800
801type NativeSoftwareManagementService_ActivateImageServer interface {
802 Send(*ImageStatus) error
803 grpc.ServerStream
804}
805
806type nativeSoftwareManagementServiceActivateImageServer struct {
807 grpc.ServerStream
808}
809
810func (x *nativeSoftwareManagementServiceActivateImageServer) Send(m *ImageStatus) error {
811 return x.ServerStream.SendMsg(m)
812}
813
814func _NativeSoftwareManagementService_RevertToStandbyImage_Handler(srv interface{}, stream grpc.ServerStream) error {
815 m := new(HardwareID)
816 if err := stream.RecvMsg(m); err != nil {
817 return err
818 }
819 return srv.(NativeSoftwareManagementServiceServer).RevertToStandbyImage(m, &nativeSoftwareManagementServiceRevertToStandbyImageServer{stream})
820}
821
822type NativeSoftwareManagementService_RevertToStandbyImageServer interface {
823 Send(*ImageStatus) error
824 grpc.ServerStream
825}
826
827type nativeSoftwareManagementServiceRevertToStandbyImageServer struct {
828 grpc.ServerStream
829}
830
831func (x *nativeSoftwareManagementServiceRevertToStandbyImageServer) Send(m *ImageStatus) error {
832 return x.ServerStream.SendMsg(m)
833}
834
amit.ghoshed23db02020-11-18 10:26:36 +0100835func _NativeSoftwareManagementService_UpdateStartupConfiguration_Handler(srv interface{}, stream grpc.ServerStream) error {
836 m := new(ConfigRequest)
837 if err := stream.RecvMsg(m); err != nil {
838 return err
839 }
840 return srv.(NativeSoftwareManagementServiceServer).UpdateStartupConfiguration(m, &nativeSoftwareManagementServiceUpdateStartupConfigurationServer{stream})
841}
842
843type NativeSoftwareManagementService_UpdateStartupConfigurationServer interface {
844 Send(*ConfigResponse) error
845 grpc.ServerStream
846}
847
848type nativeSoftwareManagementServiceUpdateStartupConfigurationServer struct {
849 grpc.ServerStream
850}
851
852func (x *nativeSoftwareManagementServiceUpdateStartupConfigurationServer) Send(m *ConfigResponse) error {
853 return x.ServerStream.SendMsg(m)
854}
855
amit.ghosh2c938b82021-01-14 11:34:03 +0100856func _NativeSoftwareManagementService_GetStartupConfigurationInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
857 in := new(StartupConfigInfoRequest)
858 if err := dec(in); err != nil {
859 return nil, err
860 }
861 if interceptor == nil {
862 return srv.(NativeSoftwareManagementServiceServer).GetStartupConfigurationInfo(ctx, in)
863 }
864 info := &grpc.UnaryServerInfo{
865 Server: srv,
866 FullMethod: "/dmi.NativeSoftwareManagementService/GetStartupConfigurationInfo",
867 }
868 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
869 return srv.(NativeSoftwareManagementServiceServer).GetStartupConfigurationInfo(ctx, req.(*StartupConfigInfoRequest))
870 }
871 return interceptor(ctx, in, info, handler)
872}
873
Amit Ghosh09f28362020-06-12 21:52:19 +0100874var _NativeSoftwareManagementService_serviceDesc = grpc.ServiceDesc{
875 ServiceName: "dmi.NativeSoftwareManagementService",
876 HandlerType: (*NativeSoftwareManagementServiceServer)(nil),
877 Methods: []grpc.MethodDesc{
878 {
879 MethodName: "GetSoftwareVersion",
880 Handler: _NativeSoftwareManagementService_GetSoftwareVersion_Handler,
881 },
amit.ghosh2c938b82021-01-14 11:34:03 +0100882 {
883 MethodName: "GetStartupConfigurationInfo",
884 Handler: _NativeSoftwareManagementService_GetStartupConfigurationInfo_Handler,
885 },
Amit Ghosh09f28362020-06-12 21:52:19 +0100886 },
887 Streams: []grpc.StreamDesc{
888 {
889 StreamName: "DownloadImage",
890 Handler: _NativeSoftwareManagementService_DownloadImage_Handler,
891 ServerStreams: true,
892 },
893 {
894 StreamName: "ActivateImage",
895 Handler: _NativeSoftwareManagementService_ActivateImage_Handler,
896 ServerStreams: true,
897 },
898 {
899 StreamName: "RevertToStandbyImage",
900 Handler: _NativeSoftwareManagementService_RevertToStandbyImage_Handler,
901 ServerStreams: true,
902 },
amit.ghoshed23db02020-11-18 10:26:36 +0100903 {
904 StreamName: "UpdateStartupConfiguration",
905 Handler: _NativeSoftwareManagementService_UpdateStartupConfiguration_Handler,
906 ServerStreams: true,
907 },
Amit Ghosh09f28362020-06-12 21:52:19 +0100908 },
909 Metadata: "dmi/sw_management_service.proto",
910}