blob: d61b85bc18f6df81b35f7a929efdf9247dffb696 [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 (
28 GetSoftwareVersionInformationResponse_UNDEFINED_REASON GetSoftwareVersionInformationResponse_Reason = 0
29 GetSoftwareVersionInformationResponse_UNKNOWN_DEVICE GetSoftwareVersionInformationResponse_Reason = 1
30 GetSoftwareVersionInformationResponse_INTERNAL_ERROR GetSoftwareVersionInformationResponse_Reason = 2
31)
32
33var GetSoftwareVersionInformationResponse_Reason_name = map[int32]string{
34 0: "UNDEFINED_REASON",
35 1: "UNKNOWN_DEVICE",
36 2: "INTERNAL_ERROR",
37}
38
39var GetSoftwareVersionInformationResponse_Reason_value = map[string]int32{
40 "UNDEFINED_REASON": 0,
41 "UNKNOWN_DEVICE": 1,
42 "INTERNAL_ERROR": 2,
43}
44
45func (x GetSoftwareVersionInformationResponse_Reason) String() string {
46 return proto.EnumName(GetSoftwareVersionInformationResponse_Reason_name, int32(x))
47}
48
49func (GetSoftwareVersionInformationResponse_Reason) EnumDescriptor() ([]byte, []int) {
50 return fileDescriptor_000929e4bec891d7, []int{1, 0}
51}
52
53type ConfigResponse_Reason int32
54
55const (
56 ConfigResponse_UNDEFINED_REASON ConfigResponse_Reason = 0
57 ConfigResponse_UNKNOWN_DEVICE ConfigResponse_Reason = 1
58 ConfigResponse_INTERNAL_ERROR ConfigResponse_Reason = 2
59 ConfigResponse_ERROR_FETCHING_CONFIG ConfigResponse_Reason = 3
60 ConfigResponse_INVALID_CONFIG ConfigResponse_Reason = 4
61 ConfigResponse_OPERATION_ALREADY_IN_PROGRESS ConfigResponse_Reason = 5
62)
63
64var ConfigResponse_Reason_name = map[int32]string{
65 0: "UNDEFINED_REASON",
66 1: "UNKNOWN_DEVICE",
67 2: "INTERNAL_ERROR",
68 3: "ERROR_FETCHING_CONFIG",
69 4: "INVALID_CONFIG",
70 5: "OPERATION_ALREADY_IN_PROGRESS",
71}
72
73var ConfigResponse_Reason_value = map[string]int32{
74 "UNDEFINED_REASON": 0,
75 "UNKNOWN_DEVICE": 1,
76 "INTERNAL_ERROR": 2,
77 "ERROR_FETCHING_CONFIG": 3,
78 "INVALID_CONFIG": 4,
79 "OPERATION_ALREADY_IN_PROGRESS": 5,
80}
81
82func (x ConfigResponse_Reason) String() string {
83 return proto.EnumName(ConfigResponse_Reason_name, int32(x))
84}
85
86func (ConfigResponse_Reason) EnumDescriptor() ([]byte, []int) {
87 return fileDescriptor_000929e4bec891d7, []int{4, 0}
88}
89
Amit Ghosh09f28362020-06-12 21:52:19 +010090type SoftwareVersionInformation struct {
91 ActiveVersions []*ImageVersion `protobuf:"bytes,1,rep,name=active_versions,json=activeVersions,proto3" json:"active_versions,omitempty"`
92 StandbyVersions []*ImageVersion `protobuf:"bytes,2,rep,name=standby_versions,json=standbyVersions,proto3" json:"standby_versions,omitempty"`
93 XXX_NoUnkeyedLiteral struct{} `json:"-"`
94 XXX_unrecognized []byte `json:"-"`
95 XXX_sizecache int32 `json:"-"`
96}
97
98func (m *SoftwareVersionInformation) Reset() { *m = SoftwareVersionInformation{} }
99func (m *SoftwareVersionInformation) String() string { return proto.CompactTextString(m) }
100func (*SoftwareVersionInformation) ProtoMessage() {}
101func (*SoftwareVersionInformation) Descriptor() ([]byte, []int) {
102 return fileDescriptor_000929e4bec891d7, []int{0}
103}
104
105func (m *SoftwareVersionInformation) XXX_Unmarshal(b []byte) error {
106 return xxx_messageInfo_SoftwareVersionInformation.Unmarshal(m, b)
107}
108func (m *SoftwareVersionInformation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
109 return xxx_messageInfo_SoftwareVersionInformation.Marshal(b, m, deterministic)
110}
111func (m *SoftwareVersionInformation) XXX_Merge(src proto.Message) {
112 xxx_messageInfo_SoftwareVersionInformation.Merge(m, src)
113}
114func (m *SoftwareVersionInformation) XXX_Size() int {
115 return xxx_messageInfo_SoftwareVersionInformation.Size(m)
116}
117func (m *SoftwareVersionInformation) XXX_DiscardUnknown() {
118 xxx_messageInfo_SoftwareVersionInformation.DiscardUnknown(m)
119}
120
121var xxx_messageInfo_SoftwareVersionInformation proto.InternalMessageInfo
122
123func (m *SoftwareVersionInformation) GetActiveVersions() []*ImageVersion {
124 if m != nil {
125 return m.ActiveVersions
126 }
127 return nil
128}
129
130func (m *SoftwareVersionInformation) GetStandbyVersions() []*ImageVersion {
131 if m != nil {
132 return m.StandbyVersions
133 }
134 return nil
135}
136
aghoshc301dcd2020-09-03 16:55:34 +0100137type GetSoftwareVersionInformationResponse struct {
amit.ghoshae473032021-01-10 11:59:10 +0100138 Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=dmi.Status" json:"status,omitempty"`
139 Reason GetSoftwareVersionInformationResponse_Reason `protobuf:"varint,2,opt,name=reason,proto3,enum=dmi.GetSoftwareVersionInformationResponse_Reason" json:"reason,omitempty"`
140 Info *SoftwareVersionInformation `protobuf:"bytes,3,opt,name=info,proto3" json:"info,omitempty"`
141 XXX_NoUnkeyedLiteral struct{} `json:"-"`
142 XXX_unrecognized []byte `json:"-"`
143 XXX_sizecache int32 `json:"-"`
aghoshc301dcd2020-09-03 16:55:34 +0100144}
145
146func (m *GetSoftwareVersionInformationResponse) Reset() { *m = GetSoftwareVersionInformationResponse{} }
147func (m *GetSoftwareVersionInformationResponse) String() string { return proto.CompactTextString(m) }
148func (*GetSoftwareVersionInformationResponse) ProtoMessage() {}
149func (*GetSoftwareVersionInformationResponse) Descriptor() ([]byte, []int) {
150 return fileDescriptor_000929e4bec891d7, []int{1}
151}
152
153func (m *GetSoftwareVersionInformationResponse) XXX_Unmarshal(b []byte) error {
154 return xxx_messageInfo_GetSoftwareVersionInformationResponse.Unmarshal(m, b)
155}
156func (m *GetSoftwareVersionInformationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
157 return xxx_messageInfo_GetSoftwareVersionInformationResponse.Marshal(b, m, deterministic)
158}
159func (m *GetSoftwareVersionInformationResponse) XXX_Merge(src proto.Message) {
160 xxx_messageInfo_GetSoftwareVersionInformationResponse.Merge(m, src)
161}
162func (m *GetSoftwareVersionInformationResponse) XXX_Size() int {
163 return xxx_messageInfo_GetSoftwareVersionInformationResponse.Size(m)
164}
165func (m *GetSoftwareVersionInformationResponse) XXX_DiscardUnknown() {
166 xxx_messageInfo_GetSoftwareVersionInformationResponse.DiscardUnknown(m)
167}
168
169var xxx_messageInfo_GetSoftwareVersionInformationResponse proto.InternalMessageInfo
170
171func (m *GetSoftwareVersionInformationResponse) GetStatus() Status {
172 if m != nil {
173 return m.Status
174 }
175 return Status_UNDEFINED_STATUS
176}
177
amit.ghoshae473032021-01-10 11:59:10 +0100178func (m *GetSoftwareVersionInformationResponse) GetReason() GetSoftwareVersionInformationResponse_Reason {
aghoshc301dcd2020-09-03 16:55:34 +0100179 if m != nil {
180 return m.Reason
181 }
amit.ghoshae473032021-01-10 11:59:10 +0100182 return GetSoftwareVersionInformationResponse_UNDEFINED_REASON
aghoshc301dcd2020-09-03 16:55:34 +0100183}
184
185func (m *GetSoftwareVersionInformationResponse) GetInfo() *SoftwareVersionInformation {
186 if m != nil {
187 return m.Info
188 }
189 return nil
190}
191
Amit Ghosh09f28362020-06-12 21:52:19 +0100192type DownloadImageRequest struct {
193 DeviceUuid *Uuid `protobuf:"bytes,1,opt,name=device_uuid,json=deviceUuid,proto3" json:"device_uuid,omitempty"`
194 ImageInfo *ImageInformation `protobuf:"bytes,2,opt,name=image_info,json=imageInfo,proto3" json:"image_info,omitempty"`
195 XXX_NoUnkeyedLiteral struct{} `json:"-"`
196 XXX_unrecognized []byte `json:"-"`
197 XXX_sizecache int32 `json:"-"`
198}
199
200func (m *DownloadImageRequest) Reset() { *m = DownloadImageRequest{} }
201func (m *DownloadImageRequest) String() string { return proto.CompactTextString(m) }
202func (*DownloadImageRequest) ProtoMessage() {}
203func (*DownloadImageRequest) Descriptor() ([]byte, []int) {
aghoshc301dcd2020-09-03 16:55:34 +0100204 return fileDescriptor_000929e4bec891d7, []int{2}
Amit Ghosh09f28362020-06-12 21:52:19 +0100205}
206
207func (m *DownloadImageRequest) XXX_Unmarshal(b []byte) error {
208 return xxx_messageInfo_DownloadImageRequest.Unmarshal(m, b)
209}
210func (m *DownloadImageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
211 return xxx_messageInfo_DownloadImageRequest.Marshal(b, m, deterministic)
212}
213func (m *DownloadImageRequest) XXX_Merge(src proto.Message) {
214 xxx_messageInfo_DownloadImageRequest.Merge(m, src)
215}
216func (m *DownloadImageRequest) XXX_Size() int {
217 return xxx_messageInfo_DownloadImageRequest.Size(m)
218}
219func (m *DownloadImageRequest) XXX_DiscardUnknown() {
220 xxx_messageInfo_DownloadImageRequest.DiscardUnknown(m)
221}
222
223var xxx_messageInfo_DownloadImageRequest proto.InternalMessageInfo
224
225func (m *DownloadImageRequest) GetDeviceUuid() *Uuid {
226 if m != nil {
227 return m.DeviceUuid
228 }
229 return nil
230}
231
232func (m *DownloadImageRequest) GetImageInfo() *ImageInformation {
233 if m != nil {
234 return m.ImageInfo
235 }
236 return nil
237}
238
amit.ghoshed23db02020-11-18 10:26:36 +0100239type ConfigRequest struct {
240 DeviceUuid *Uuid `protobuf:"bytes,1,opt,name=device_uuid,json=deviceUuid,proto3" json:"device_uuid,omitempty"`
241 // Location of the configuration file, authentication (user/pass) if any should be in the url string
242 // The config_url would contain the protocol, credentials, the IP address/DNS of the server and the path of the file
243 // e.g. sftp://download_user:download_pass@192.168.0.1:22/OLT-configs/config-v1.2.3.xml
244 ConfigUrl string `protobuf:"bytes,2,opt,name=config_url,json=configUrl,proto3" json:"config_url,omitempty"`
245 XXX_NoUnkeyedLiteral struct{} `json:"-"`
246 XXX_unrecognized []byte `json:"-"`
247 XXX_sizecache int32 `json:"-"`
248}
249
250func (m *ConfigRequest) Reset() { *m = ConfigRequest{} }
251func (m *ConfigRequest) String() string { return proto.CompactTextString(m) }
252func (*ConfigRequest) ProtoMessage() {}
253func (*ConfigRequest) Descriptor() ([]byte, []int) {
254 return fileDescriptor_000929e4bec891d7, []int{3}
255}
256
257func (m *ConfigRequest) XXX_Unmarshal(b []byte) error {
258 return xxx_messageInfo_ConfigRequest.Unmarshal(m, b)
259}
260func (m *ConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
261 return xxx_messageInfo_ConfigRequest.Marshal(b, m, deterministic)
262}
263func (m *ConfigRequest) XXX_Merge(src proto.Message) {
264 xxx_messageInfo_ConfigRequest.Merge(m, src)
265}
266func (m *ConfigRequest) XXX_Size() int {
267 return xxx_messageInfo_ConfigRequest.Size(m)
268}
269func (m *ConfigRequest) XXX_DiscardUnknown() {
270 xxx_messageInfo_ConfigRequest.DiscardUnknown(m)
271}
272
273var xxx_messageInfo_ConfigRequest proto.InternalMessageInfo
274
275func (m *ConfigRequest) GetDeviceUuid() *Uuid {
276 if m != nil {
277 return m.DeviceUuid
278 }
279 return nil
280}
281
282func (m *ConfigRequest) GetConfigUrl() string {
283 if m != nil {
284 return m.ConfigUrl
285 }
286 return ""
287}
288
289type ConfigResponse struct {
amit.ghoshae473032021-01-10 11:59:10 +0100290 Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=dmi.Status" json:"status,omitempty"`
291 Reason ConfigResponse_Reason `protobuf:"varint,2,opt,name=reason,proto3,enum=dmi.ConfigResponse_Reason" json:"reason,omitempty"`
292 XXX_NoUnkeyedLiteral struct{} `json:"-"`
293 XXX_unrecognized []byte `json:"-"`
294 XXX_sizecache int32 `json:"-"`
amit.ghoshed23db02020-11-18 10:26:36 +0100295}
296
297func (m *ConfigResponse) Reset() { *m = ConfigResponse{} }
298func (m *ConfigResponse) String() string { return proto.CompactTextString(m) }
299func (*ConfigResponse) ProtoMessage() {}
300func (*ConfigResponse) Descriptor() ([]byte, []int) {
301 return fileDescriptor_000929e4bec891d7, []int{4}
302}
303
304func (m *ConfigResponse) XXX_Unmarshal(b []byte) error {
305 return xxx_messageInfo_ConfigResponse.Unmarshal(m, b)
306}
307func (m *ConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
308 return xxx_messageInfo_ConfigResponse.Marshal(b, m, deterministic)
309}
310func (m *ConfigResponse) XXX_Merge(src proto.Message) {
311 xxx_messageInfo_ConfigResponse.Merge(m, src)
312}
313func (m *ConfigResponse) XXX_Size() int {
314 return xxx_messageInfo_ConfigResponse.Size(m)
315}
316func (m *ConfigResponse) XXX_DiscardUnknown() {
317 xxx_messageInfo_ConfigResponse.DiscardUnknown(m)
318}
319
320var xxx_messageInfo_ConfigResponse proto.InternalMessageInfo
321
322func (m *ConfigResponse) GetStatus() Status {
323 if m != nil {
324 return m.Status
325 }
326 return Status_UNDEFINED_STATUS
327}
328
amit.ghoshae473032021-01-10 11:59:10 +0100329func (m *ConfigResponse) GetReason() ConfigResponse_Reason {
amit.ghoshed23db02020-11-18 10:26:36 +0100330 if m != nil {
331 return m.Reason
332 }
amit.ghoshae473032021-01-10 11:59:10 +0100333 return ConfigResponse_UNDEFINED_REASON
amit.ghoshed23db02020-11-18 10:26:36 +0100334}
335
Amit Ghosh09f28362020-06-12 21:52:19 +0100336func init() {
amit.ghoshae473032021-01-10 11:59:10 +0100337 proto.RegisterEnum("dmi.GetSoftwareVersionInformationResponse_Reason", GetSoftwareVersionInformationResponse_Reason_name, GetSoftwareVersionInformationResponse_Reason_value)
338 proto.RegisterEnum("dmi.ConfigResponse_Reason", ConfigResponse_Reason_name, ConfigResponse_Reason_value)
Amit Ghosh09f28362020-06-12 21:52:19 +0100339 proto.RegisterType((*SoftwareVersionInformation)(nil), "dmi.SoftwareVersionInformation")
aghoshc301dcd2020-09-03 16:55:34 +0100340 proto.RegisterType((*GetSoftwareVersionInformationResponse)(nil), "dmi.GetSoftwareVersionInformationResponse")
Amit Ghosh09f28362020-06-12 21:52:19 +0100341 proto.RegisterType((*DownloadImageRequest)(nil), "dmi.DownloadImageRequest")
amit.ghoshed23db02020-11-18 10:26:36 +0100342 proto.RegisterType((*ConfigRequest)(nil), "dmi.ConfigRequest")
343 proto.RegisterType((*ConfigResponse)(nil), "dmi.ConfigResponse")
Amit Ghosh09f28362020-06-12 21:52:19 +0100344}
345
346func init() { proto.RegisterFile("dmi/sw_management_service.proto", fileDescriptor_000929e4bec891d7) }
347
348var fileDescriptor_000929e4bec891d7 = []byte{
amit.ghoshae473032021-01-10 11:59:10 +0100349 // 671 bytes of a gzipped FileDescriptorProto
350 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x54, 0x5f, 0x4f, 0x13, 0x4f,
351 0x14, 0xfd, 0x6d, 0xcb, 0xaf, 0x49, 0x6f, 0xa5, 0x2c, 0x23, 0x24, 0xd0, 0x84, 0x80, 0x35, 0x26,
352 0x84, 0x84, 0x16, 0x0b, 0x2f, 0x8a, 0x31, 0xa9, 0xed, 0xb6, 0x6c, 0xc4, 0x2d, 0x4e, 0x5b, 0x8c,
353 0xbc, 0x6c, 0x86, 0xee, 0xb4, 0x4c, 0xc2, 0xce, 0xd4, 0xd9, 0xd9, 0x56, 0xdf, 0xfd, 0x08, 0xc6,
354 0xf8, 0x31, 0xfd, 0x08, 0x66, 0x67, 0xb6, 0x56, 0xfe, 0x25, 0x60, 0x7c, 0xdb, 0x3d, 0x73, 0xce,
355 0xb9, 0x77, 0xf7, 0x9e, 0x3b, 0xb0, 0x19, 0x84, 0xac, 0x1a, 0x4d, 0xfd, 0x90, 0x70, 0x32, 0xa2,
356 0x21, 0xe5, 0xca, 0x8f, 0xa8, 0x9c, 0xb0, 0x01, 0xad, 0x8c, 0xa5, 0x50, 0x02, 0x65, 0x83, 0x90,
357 0x95, 0x96, 0x13, 0xd6, 0x40, 0x84, 0xa1, 0xe0, 0x91, 0xc1, 0x4b, 0x8f, 0x12, 0xe8, 0x62, 0x9a,
358 0xbe, 0xa1, 0xd4, 0x86, 0x85, 0x64, 0x94, 0x2a, 0xcb, 0xdf, 0x2d, 0x28, 0x75, 0xc5, 0x50, 0x4d,
359 0x89, 0xa4, 0xa7, 0x54, 0x46, 0x4c, 0x70, 0x97, 0x0f, 0x85, 0x0c, 0x89, 0x62, 0x82, 0xa3, 0x97,
360 0xb0, 0x44, 0x06, 0x8a, 0x4d, 0xa8, 0x3f, 0x31, 0x87, 0xd1, 0x9a, 0xb5, 0x95, 0xdd, 0x2e, 0xd4,
361 0x96, 0x2b, 0x41, 0xc8, 0x2a, 0x6e, 0xe2, 0x94, 0xca, 0x70, 0xd1, 0x30, 0xd3, 0xd7, 0x08, 0xbd,
362 0x02, 0x3b, 0x52, 0x84, 0x07, 0xe7, 0x5f, 0xe6, 0xe2, 0xcc, 0x5d, 0xe2, 0xa5, 0x94, 0x3a, 0x53,
363 0x97, 0xbf, 0x65, 0xe0, 0x59, 0x9b, 0xaa, 0xbb, 0x7b, 0xc3, 0x34, 0x1a, 0x0b, 0x1e, 0x51, 0xf4,
364 0x14, 0x72, 0x91, 0x22, 0x2a, 0x4e, 0x5a, 0xb3, 0xb6, 0x8b, 0xb5, 0x82, 0x76, 0xef, 0x6a, 0x08,
365 0xa7, 0x47, 0xc8, 0x85, 0x9c, 0xa4, 0x24, 0x12, 0x7c, 0x2d, 0xa3, 0x49, 0xcf, 0x35, 0xe9, 0x5e,
366 0x05, 0x2a, 0x58, 0x0b, 0x71, 0x6a, 0x80, 0xf6, 0x61, 0x81, 0xf1, 0xa1, 0x58, 0xcb, 0x6e, 0x59,
367 0xdb, 0x85, 0xda, 0xa6, 0xa9, 0x76, 0xb7, 0x8b, 0x26, 0x97, 0x5b, 0x90, 0x33, 0x36, 0x68, 0x05,
368 0xec, 0xbe, 0xd7, 0x74, 0x5a, 0xae, 0xe7, 0x34, 0x7d, 0xec, 0xd4, 0xbb, 0x1d, 0xcf, 0xfe, 0x0f,
369 0x21, 0x28, 0xf6, 0xbd, 0xb7, 0x5e, 0xe7, 0x83, 0xe7, 0x37, 0x9d, 0x53, 0xb7, 0xe1, 0xd8, 0x56,
370 0x82, 0xb9, 0x5e, 0xcf, 0xc1, 0x5e, 0xfd, 0xd8, 0x77, 0x30, 0xee, 0x60, 0x3b, 0x53, 0xfe, 0x0c,
371 0x2b, 0x4d, 0x31, 0xe5, 0x97, 0x82, 0x04, 0xfa, 0xff, 0x61, 0xfa, 0x29, 0xa6, 0x91, 0x42, 0x3b,
372 0x50, 0x08, 0x68, 0x92, 0x08, 0x3f, 0x8e, 0x59, 0xa0, 0xff, 0x44, 0xa1, 0x96, 0xd7, 0xbd, 0xf5,
373 0x63, 0x16, 0x60, 0x30, 0xa7, 0xc9, 0x33, 0x3a, 0x00, 0xd0, 0x11, 0xf0, 0xf5, 0x67, 0x64, 0x34,
374 0x75, 0x75, 0x3e, 0x92, 0x3f, 0x9b, 0xcf, 0xb3, 0x19, 0x52, 0x3e, 0x83, 0xc5, 0x86, 0xe0, 0x43,
375 0x36, 0xfa, 0x9b, 0x92, 0x1b, 0x00, 0x03, 0x2d, 0xf6, 0x63, 0x79, 0xa9, 0x4b, 0xe6, 0x71, 0xde,
376 0x20, 0x7d, 0x79, 0x59, 0xfe, 0x9a, 0x81, 0xe2, 0xcc, 0xfc, 0x21, 0x53, 0xad, 0x5d, 0x9b, 0x6a,
377 0x49, 0x93, 0xae, 0x3a, 0x5d, 0x1b, 0x5f, 0xf9, 0x87, 0xf5, 0x6f, 0x46, 0x81, 0xd6, 0x61, 0x55,
378 0x3f, 0xfa, 0x2d, 0xa7, 0xd7, 0x38, 0x72, 0xbd, 0xb6, 0xdf, 0xe8, 0x78, 0x2d, 0xb7, 0x6d, 0x67,
379 0x0d, 0xfd, 0xb4, 0x7e, 0xec, 0x36, 0x67, 0xd8, 0x02, 0x7a, 0x02, 0x1b, 0x9d, 0x13, 0x07, 0xd7,
380 0x7b, 0x6e, 0xc7, 0xf3, 0xeb, 0xc7, 0xd8, 0xa9, 0x37, 0x3f, 0xfa, 0xae, 0xe7, 0x9f, 0xe0, 0x4e,
381 0x1b, 0x3b, 0xdd, 0xae, 0xfd, 0x7f, 0xed, 0x67, 0x06, 0x36, 0x3d, 0x92, 0x2c, 0xd1, 0x2c, 0x4f,
382 0xef, 0x7e, 0x6f, 0x7c, 0xd7, 0x2c, 0x3c, 0x7a, 0x0f, 0xe8, 0x66, 0x6a, 0xd1, 0x92, 0xfe, 0xf0,
383 0x23, 0x22, 0x83, 0x04, 0x75, 0x9b, 0xa5, 0x9d, 0xfb, 0xe7, 0x1b, 0xbd, 0x86, 0xc5, 0x2b, 0x99,
384 0x42, 0xeb, 0x5a, 0x7c, 0x5b, 0xce, 0x4a, 0xf6, 0x3c, 0x27, 0x66, 0x16, 0x7b, 0x16, 0x3a, 0x80,
385 0xc5, 0x7a, 0xb2, 0xfa, 0x44, 0x51, 0xa3, 0xbf, 0xd1, 0xcd, 0x6d, 0xaa, 0x43, 0x58, 0xc1, 0x74,
386 0x42, 0xa5, 0xea, 0x89, 0xae, 0xd9, 0xfd, 0x07, 0x88, 0xdb, 0x50, 0xea, 0x8f, 0x03, 0xa2, 0x12,
387 0x44, 0xaa, 0x78, 0x6c, 0x46, 0x1e, 0x4b, 0x73, 0x6b, 0xa1, 0x2b, 0x31, 0x30, 0x8d, 0x3f, 0xbe,
388 0x25, 0x1a, 0x7b, 0xd6, 0x9b, 0xc3, 0xb3, 0x17, 0x23, 0xa6, 0x2e, 0xe2, 0xf3, 0xca, 0x40, 0x84,
389 0x55, 0x31, 0xa6, 0x7c, 0x20, 0x64, 0x50, 0x35, 0xd1, 0xdd, 0x9d, 0x5f, 0xb8, 0xbb, 0x8c, 0x2b,
390 0x2a, 0x87, 0x64, 0x40, 0xab, 0x93, 0xfd, 0xea, 0x48, 0x54, 0x83, 0x90, 0x9d, 0xe7, 0xf4, 0x1d,
391 0xba, 0xff, 0x2b, 0x00, 0x00, 0xff, 0xff, 0x55, 0x2e, 0xda, 0x40, 0xa0, 0x05, 0x00, 0x00,
Amit Ghosh09f28362020-06-12 21:52:19 +0100392}
393
394// Reference imports to suppress errors if they are not otherwise used.
395var _ context.Context
396var _ grpc.ClientConn
397
398// This is a compile-time assertion to ensure that this generated file
399// is compatible with the grpc package it is being compiled against.
400const _ = grpc.SupportPackageIsVersion4
401
402// NativeSoftwareManagementServiceClient is the client API for NativeSoftwareManagementService service.
403//
404// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
405type NativeSoftwareManagementServiceClient interface {
406 // Get the software version information of the Active and Standby images
aghoshc301dcd2020-09-03 16:55:34 +0100407 GetSoftwareVersion(ctx context.Context, in *HardwareID, opts ...grpc.CallOption) (*GetSoftwareVersionInformationResponse, error)
Amit Ghosh09f28362020-06-12 21:52:19 +0100408 // Downloads and installs the image in the standby partition, returns the status/progress of the Install
409 DownloadImage(ctx context.Context, in *DownloadImageRequest, opts ...grpc.CallOption) (NativeSoftwareManagementService_DownloadImageClient, error)
410 // Activates and runs the OLT with the image in the standby partition. If things are fine this image will
411 // henceforth be marked as the Active Partition. The old working image would remain on the Standby partition.
412 // Any possibly required (sub-)steps like "commit" are left to the "Device Manager"
413 ActivateImage(ctx context.Context, in *HardwareID, opts ...grpc.CallOption) (NativeSoftwareManagementService_ActivateImageClient, error)
414 // 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 +0100415 // This API is to be used if operator wants to go back to the previous software
Amit Ghosh09f28362020-06-12 21:52:19 +0100416 RevertToStandbyImage(ctx context.Context, in *HardwareID, opts ...grpc.CallOption) (NativeSoftwareManagementService_RevertToStandbyImageClient, error)
amit.ghoshed23db02020-11-18 10:26:36 +0100417 // This API can be used to let the devices pickup their properitary configuration which they need at startup.
418 UpdateStartupConfiguration(ctx context.Context, in *ConfigRequest, opts ...grpc.CallOption) (NativeSoftwareManagementService_UpdateStartupConfigurationClient, error)
Amit Ghosh09f28362020-06-12 21:52:19 +0100419}
420
421type nativeSoftwareManagementServiceClient struct {
422 cc *grpc.ClientConn
423}
424
425func NewNativeSoftwareManagementServiceClient(cc *grpc.ClientConn) NativeSoftwareManagementServiceClient {
426 return &nativeSoftwareManagementServiceClient{cc}
427}
428
aghoshc301dcd2020-09-03 16:55:34 +0100429func (c *nativeSoftwareManagementServiceClient) GetSoftwareVersion(ctx context.Context, in *HardwareID, opts ...grpc.CallOption) (*GetSoftwareVersionInformationResponse, error) {
430 out := new(GetSoftwareVersionInformationResponse)
Amit Ghosh09f28362020-06-12 21:52:19 +0100431 err := c.cc.Invoke(ctx, "/dmi.NativeSoftwareManagementService/GetSoftwareVersion", in, out, opts...)
432 if err != nil {
433 return nil, err
434 }
435 return out, nil
436}
437
438func (c *nativeSoftwareManagementServiceClient) DownloadImage(ctx context.Context, in *DownloadImageRequest, opts ...grpc.CallOption) (NativeSoftwareManagementService_DownloadImageClient, error) {
439 stream, err := c.cc.NewStream(ctx, &_NativeSoftwareManagementService_serviceDesc.Streams[0], "/dmi.NativeSoftwareManagementService/DownloadImage", opts...)
440 if err != nil {
441 return nil, err
442 }
443 x := &nativeSoftwareManagementServiceDownloadImageClient{stream}
444 if err := x.ClientStream.SendMsg(in); err != nil {
445 return nil, err
446 }
447 if err := x.ClientStream.CloseSend(); err != nil {
448 return nil, err
449 }
450 return x, nil
451}
452
453type NativeSoftwareManagementService_DownloadImageClient interface {
454 Recv() (*ImageStatus, error)
455 grpc.ClientStream
456}
457
458type nativeSoftwareManagementServiceDownloadImageClient struct {
459 grpc.ClientStream
460}
461
462func (x *nativeSoftwareManagementServiceDownloadImageClient) Recv() (*ImageStatus, error) {
463 m := new(ImageStatus)
464 if err := x.ClientStream.RecvMsg(m); err != nil {
465 return nil, err
466 }
467 return m, nil
468}
469
470func (c *nativeSoftwareManagementServiceClient) ActivateImage(ctx context.Context, in *HardwareID, opts ...grpc.CallOption) (NativeSoftwareManagementService_ActivateImageClient, error) {
471 stream, err := c.cc.NewStream(ctx, &_NativeSoftwareManagementService_serviceDesc.Streams[1], "/dmi.NativeSoftwareManagementService/ActivateImage", opts...)
472 if err != nil {
473 return nil, err
474 }
475 x := &nativeSoftwareManagementServiceActivateImageClient{stream}
476 if err := x.ClientStream.SendMsg(in); err != nil {
477 return nil, err
478 }
479 if err := x.ClientStream.CloseSend(); err != nil {
480 return nil, err
481 }
482 return x, nil
483}
484
485type NativeSoftwareManagementService_ActivateImageClient interface {
486 Recv() (*ImageStatus, error)
487 grpc.ClientStream
488}
489
490type nativeSoftwareManagementServiceActivateImageClient struct {
491 grpc.ClientStream
492}
493
494func (x *nativeSoftwareManagementServiceActivateImageClient) Recv() (*ImageStatus, error) {
495 m := new(ImageStatus)
496 if err := x.ClientStream.RecvMsg(m); err != nil {
497 return nil, err
498 }
499 return m, nil
500}
501
502func (c *nativeSoftwareManagementServiceClient) RevertToStandbyImage(ctx context.Context, in *HardwareID, opts ...grpc.CallOption) (NativeSoftwareManagementService_RevertToStandbyImageClient, error) {
503 stream, err := c.cc.NewStream(ctx, &_NativeSoftwareManagementService_serviceDesc.Streams[2], "/dmi.NativeSoftwareManagementService/RevertToStandbyImage", opts...)
504 if err != nil {
505 return nil, err
506 }
507 x := &nativeSoftwareManagementServiceRevertToStandbyImageClient{stream}
508 if err := x.ClientStream.SendMsg(in); err != nil {
509 return nil, err
510 }
511 if err := x.ClientStream.CloseSend(); err != nil {
512 return nil, err
513 }
514 return x, nil
515}
516
517type NativeSoftwareManagementService_RevertToStandbyImageClient interface {
518 Recv() (*ImageStatus, error)
519 grpc.ClientStream
520}
521
522type nativeSoftwareManagementServiceRevertToStandbyImageClient struct {
523 grpc.ClientStream
524}
525
526func (x *nativeSoftwareManagementServiceRevertToStandbyImageClient) Recv() (*ImageStatus, error) {
527 m := new(ImageStatus)
528 if err := x.ClientStream.RecvMsg(m); err != nil {
529 return nil, err
530 }
531 return m, nil
532}
533
amit.ghoshed23db02020-11-18 10:26:36 +0100534func (c *nativeSoftwareManagementServiceClient) UpdateStartupConfiguration(ctx context.Context, in *ConfigRequest, opts ...grpc.CallOption) (NativeSoftwareManagementService_UpdateStartupConfigurationClient, error) {
535 stream, err := c.cc.NewStream(ctx, &_NativeSoftwareManagementService_serviceDesc.Streams[3], "/dmi.NativeSoftwareManagementService/UpdateStartupConfiguration", opts...)
536 if err != nil {
537 return nil, err
538 }
539 x := &nativeSoftwareManagementServiceUpdateStartupConfigurationClient{stream}
540 if err := x.ClientStream.SendMsg(in); err != nil {
541 return nil, err
542 }
543 if err := x.ClientStream.CloseSend(); err != nil {
544 return nil, err
545 }
546 return x, nil
547}
548
549type NativeSoftwareManagementService_UpdateStartupConfigurationClient interface {
550 Recv() (*ConfigResponse, error)
551 grpc.ClientStream
552}
553
554type nativeSoftwareManagementServiceUpdateStartupConfigurationClient struct {
555 grpc.ClientStream
556}
557
558func (x *nativeSoftwareManagementServiceUpdateStartupConfigurationClient) Recv() (*ConfigResponse, error) {
559 m := new(ConfigResponse)
560 if err := x.ClientStream.RecvMsg(m); err != nil {
561 return nil, err
562 }
563 return m, nil
564}
565
Amit Ghosh09f28362020-06-12 21:52:19 +0100566// NativeSoftwareManagementServiceServer is the server API for NativeSoftwareManagementService service.
567type NativeSoftwareManagementServiceServer interface {
568 // Get the software version information of the Active and Standby images
aghoshc301dcd2020-09-03 16:55:34 +0100569 GetSoftwareVersion(context.Context, *HardwareID) (*GetSoftwareVersionInformationResponse, error)
Amit Ghosh09f28362020-06-12 21:52:19 +0100570 // Downloads and installs the image in the standby partition, returns the status/progress of the Install
571 DownloadImage(*DownloadImageRequest, NativeSoftwareManagementService_DownloadImageServer) error
572 // Activates and runs the OLT with the image in the standby partition. If things are fine this image will
573 // henceforth be marked as the Active Partition. The old working image would remain on the Standby partition.
574 // Any possibly required (sub-)steps like "commit" are left to the "Device Manager"
575 ActivateImage(*HardwareID, NativeSoftwareManagementService_ActivateImageServer) error
576 // 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 +0100577 // This API is to be used if operator wants to go back to the previous software
Amit Ghosh09f28362020-06-12 21:52:19 +0100578 RevertToStandbyImage(*HardwareID, NativeSoftwareManagementService_RevertToStandbyImageServer) error
amit.ghoshed23db02020-11-18 10:26:36 +0100579 // This API can be used to let the devices pickup their properitary configuration which they need at startup.
580 UpdateStartupConfiguration(*ConfigRequest, NativeSoftwareManagementService_UpdateStartupConfigurationServer) error
Amit Ghosh09f28362020-06-12 21:52:19 +0100581}
582
583func RegisterNativeSoftwareManagementServiceServer(s *grpc.Server, srv NativeSoftwareManagementServiceServer) {
584 s.RegisterService(&_NativeSoftwareManagementService_serviceDesc, srv)
585}
586
587func _NativeSoftwareManagementService_GetSoftwareVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
588 in := new(HardwareID)
589 if err := dec(in); err != nil {
590 return nil, err
591 }
592 if interceptor == nil {
593 return srv.(NativeSoftwareManagementServiceServer).GetSoftwareVersion(ctx, in)
594 }
595 info := &grpc.UnaryServerInfo{
596 Server: srv,
597 FullMethod: "/dmi.NativeSoftwareManagementService/GetSoftwareVersion",
598 }
599 handler := func(ctx context.Context, req interface{}) (interface{}, error) {
600 return srv.(NativeSoftwareManagementServiceServer).GetSoftwareVersion(ctx, req.(*HardwareID))
601 }
602 return interceptor(ctx, in, info, handler)
603}
604
605func _NativeSoftwareManagementService_DownloadImage_Handler(srv interface{}, stream grpc.ServerStream) error {
606 m := new(DownloadImageRequest)
607 if err := stream.RecvMsg(m); err != nil {
608 return err
609 }
610 return srv.(NativeSoftwareManagementServiceServer).DownloadImage(m, &nativeSoftwareManagementServiceDownloadImageServer{stream})
611}
612
613type NativeSoftwareManagementService_DownloadImageServer interface {
614 Send(*ImageStatus) error
615 grpc.ServerStream
616}
617
618type nativeSoftwareManagementServiceDownloadImageServer struct {
619 grpc.ServerStream
620}
621
622func (x *nativeSoftwareManagementServiceDownloadImageServer) Send(m *ImageStatus) error {
623 return x.ServerStream.SendMsg(m)
624}
625
626func _NativeSoftwareManagementService_ActivateImage_Handler(srv interface{}, stream grpc.ServerStream) error {
627 m := new(HardwareID)
628 if err := stream.RecvMsg(m); err != nil {
629 return err
630 }
631 return srv.(NativeSoftwareManagementServiceServer).ActivateImage(m, &nativeSoftwareManagementServiceActivateImageServer{stream})
632}
633
634type NativeSoftwareManagementService_ActivateImageServer interface {
635 Send(*ImageStatus) error
636 grpc.ServerStream
637}
638
639type nativeSoftwareManagementServiceActivateImageServer struct {
640 grpc.ServerStream
641}
642
643func (x *nativeSoftwareManagementServiceActivateImageServer) Send(m *ImageStatus) error {
644 return x.ServerStream.SendMsg(m)
645}
646
647func _NativeSoftwareManagementService_RevertToStandbyImage_Handler(srv interface{}, stream grpc.ServerStream) error {
648 m := new(HardwareID)
649 if err := stream.RecvMsg(m); err != nil {
650 return err
651 }
652 return srv.(NativeSoftwareManagementServiceServer).RevertToStandbyImage(m, &nativeSoftwareManagementServiceRevertToStandbyImageServer{stream})
653}
654
655type NativeSoftwareManagementService_RevertToStandbyImageServer interface {
656 Send(*ImageStatus) error
657 grpc.ServerStream
658}
659
660type nativeSoftwareManagementServiceRevertToStandbyImageServer struct {
661 grpc.ServerStream
662}
663
664func (x *nativeSoftwareManagementServiceRevertToStandbyImageServer) Send(m *ImageStatus) error {
665 return x.ServerStream.SendMsg(m)
666}
667
amit.ghoshed23db02020-11-18 10:26:36 +0100668func _NativeSoftwareManagementService_UpdateStartupConfiguration_Handler(srv interface{}, stream grpc.ServerStream) error {
669 m := new(ConfigRequest)
670 if err := stream.RecvMsg(m); err != nil {
671 return err
672 }
673 return srv.(NativeSoftwareManagementServiceServer).UpdateStartupConfiguration(m, &nativeSoftwareManagementServiceUpdateStartupConfigurationServer{stream})
674}
675
676type NativeSoftwareManagementService_UpdateStartupConfigurationServer interface {
677 Send(*ConfigResponse) error
678 grpc.ServerStream
679}
680
681type nativeSoftwareManagementServiceUpdateStartupConfigurationServer struct {
682 grpc.ServerStream
683}
684
685func (x *nativeSoftwareManagementServiceUpdateStartupConfigurationServer) Send(m *ConfigResponse) error {
686 return x.ServerStream.SendMsg(m)
687}
688
Amit Ghosh09f28362020-06-12 21:52:19 +0100689var _NativeSoftwareManagementService_serviceDesc = grpc.ServiceDesc{
690 ServiceName: "dmi.NativeSoftwareManagementService",
691 HandlerType: (*NativeSoftwareManagementServiceServer)(nil),
692 Methods: []grpc.MethodDesc{
693 {
694 MethodName: "GetSoftwareVersion",
695 Handler: _NativeSoftwareManagementService_GetSoftwareVersion_Handler,
696 },
697 },
698 Streams: []grpc.StreamDesc{
699 {
700 StreamName: "DownloadImage",
701 Handler: _NativeSoftwareManagementService_DownloadImage_Handler,
702 ServerStreams: true,
703 },
704 {
705 StreamName: "ActivateImage",
706 Handler: _NativeSoftwareManagementService_ActivateImage_Handler,
707 ServerStreams: true,
708 },
709 {
710 StreamName: "RevertToStandbyImage",
711 Handler: _NativeSoftwareManagementService_RevertToStandbyImage_Handler,
712 ServerStreams: true,
713 },
amit.ghoshed23db02020-11-18 10:26:36 +0100714 {
715 StreamName: "UpdateStartupConfiguration",
716 Handler: _NativeSoftwareManagementService_UpdateStartupConfiguration_Handler,
717 ServerStreams: true,
718 },
Amit Ghosh09f28362020-06-12 21:52:19 +0100719 },
720 Metadata: "dmi/sw_management_service.proto",
721}