Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 1 | // Code generated by protoc-gen-go. DO NOT EDIT. |
| 2 | // source: dmi/sw_management_service.proto |
| 3 | |
| 4 | package dmi |
| 5 | |
| 6 | import ( |
| 7 | context "context" |
| 8 | fmt "fmt" |
| 9 | proto "github.com/golang/protobuf/proto" |
| 10 | grpc "google.golang.org/grpc" |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 11 | codes "google.golang.org/grpc/codes" |
| 12 | status "google.golang.org/grpc/status" |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 13 | math "math" |
| 14 | ) |
| 15 | |
| 16 | // Reference imports to suppress errors if they are not otherwise used. |
| 17 | var _ = proto.Marshal |
| 18 | var _ = fmt.Errorf |
| 19 | var _ = 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. |
| 25 | const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package |
| 26 | |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 27 | type GetSoftwareVersionInformationResponse_Reason int32 |
| 28 | |
| 29 | const ( |
amit.ghosh | bd2022e | 2021-02-22 05:58:53 +0100 | [diff] [blame] | 30 | 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.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 34 | ) |
| 35 | |
| 36 | var GetSoftwareVersionInformationResponse_Reason_name = map[int32]string{ |
| 37 | 0: "UNDEFINED_REASON", |
| 38 | 1: "UNKNOWN_DEVICE", |
| 39 | 2: "INTERNAL_ERROR", |
amit.ghosh | bd2022e | 2021-02-22 05:58:53 +0100 | [diff] [blame] | 40 | 3: "DEVICE_UNREACHABLE", |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 41 | } |
| 42 | |
| 43 | var GetSoftwareVersionInformationResponse_Reason_value = map[string]int32{ |
amit.ghosh | bd2022e | 2021-02-22 05:58:53 +0100 | [diff] [blame] | 44 | "UNDEFINED_REASON": 0, |
| 45 | "UNKNOWN_DEVICE": 1, |
| 46 | "INTERNAL_ERROR": 2, |
| 47 | "DEVICE_UNREACHABLE": 3, |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 48 | } |
| 49 | |
| 50 | func (x GetSoftwareVersionInformationResponse_Reason) String() string { |
| 51 | return proto.EnumName(GetSoftwareVersionInformationResponse_Reason_name, int32(x)) |
| 52 | } |
| 53 | |
| 54 | func (GetSoftwareVersionInformationResponse_Reason) EnumDescriptor() ([]byte, []int) { |
| 55 | return fileDescriptor_000929e4bec891d7, []int{1, 0} |
| 56 | } |
| 57 | |
| 58 | type ConfigResponse_Reason int32 |
| 59 | |
| 60 | const ( |
| 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.ghosh | bd2022e | 2021-02-22 05:58:53 +0100 | [diff] [blame] | 67 | ConfigResponse_DEVICE_UNREACHABLE ConfigResponse_Reason = 6 |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 68 | ) |
| 69 | |
| 70 | var 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.ghosh | bd2022e | 2021-02-22 05:58:53 +0100 | [diff] [blame] | 77 | 6: "DEVICE_UNREACHABLE", |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 78 | } |
| 79 | |
| 80 | var 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.ghosh | bd2022e | 2021-02-22 05:58:53 +0100 | [diff] [blame] | 87 | "DEVICE_UNREACHABLE": 6, |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 88 | } |
| 89 | |
| 90 | func (x ConfigResponse_Reason) String() string { |
| 91 | return proto.EnumName(ConfigResponse_Reason_name, int32(x)) |
| 92 | } |
| 93 | |
| 94 | func (ConfigResponse_Reason) EnumDescriptor() ([]byte, []int) { |
| 95 | return fileDescriptor_000929e4bec891d7, []int{4, 0} |
| 96 | } |
| 97 | |
amit.ghosh | 2c938b8 | 2021-01-14 11:34:03 +0100 | [diff] [blame] | 98 | type StartupConfigInfoResponse_Reason int32 |
| 99 | |
| 100 | const ( |
amit.ghosh | bd2022e | 2021-02-22 05:58:53 +0100 | [diff] [blame] | 101 | 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.ghosh | 2c938b8 | 2021-01-14 11:34:03 +0100 | [diff] [blame] | 105 | ) |
| 106 | |
| 107 | var StartupConfigInfoResponse_Reason_name = map[int32]string{ |
| 108 | 0: "UNDEFINED_REASON", |
| 109 | 1: "UNKNOWN_DEVICE", |
| 110 | 2: "INTERNAL_ERROR", |
amit.ghosh | bd2022e | 2021-02-22 05:58:53 +0100 | [diff] [blame] | 111 | 3: "DEVICE_UNREACHABLE", |
amit.ghosh | 2c938b8 | 2021-01-14 11:34:03 +0100 | [diff] [blame] | 112 | } |
| 113 | |
| 114 | var StartupConfigInfoResponse_Reason_value = map[string]int32{ |
amit.ghosh | bd2022e | 2021-02-22 05:58:53 +0100 | [diff] [blame] | 115 | "UNDEFINED_REASON": 0, |
| 116 | "UNKNOWN_DEVICE": 1, |
| 117 | "INTERNAL_ERROR": 2, |
| 118 | "DEVICE_UNREACHABLE": 3, |
amit.ghosh | 2c938b8 | 2021-01-14 11:34:03 +0100 | [diff] [blame] | 119 | } |
| 120 | |
| 121 | func (x StartupConfigInfoResponse_Reason) String() string { |
| 122 | return proto.EnumName(StartupConfigInfoResponse_Reason_name, int32(x)) |
| 123 | } |
| 124 | |
| 125 | func (StartupConfigInfoResponse_Reason) EnumDescriptor() ([]byte, []int) { |
| 126 | return fileDescriptor_000929e4bec891d7, []int{6, 0} |
| 127 | } |
| 128 | |
amit.ghosh | 5a68980 | 2022-09-12 14:26:10 +0200 | [diff] [blame] | 129 | type UploadDebugInfoStatus_UploadStatus int32 |
| 130 | |
| 131 | const ( |
| 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 | |
| 138 | var UploadDebugInfoStatus_UploadStatus_name = map[int32]string{ |
| 139 | 0: "UNDEFINED_UPLOAD_STATUS", |
| 140 | 1: "COMPLETE", |
| 141 | 2: "IN_PROGRESS", |
| 142 | 3: "ERROR", |
| 143 | } |
| 144 | |
| 145 | var UploadDebugInfoStatus_UploadStatus_value = map[string]int32{ |
| 146 | "UNDEFINED_UPLOAD_STATUS": 0, |
| 147 | "COMPLETE": 1, |
| 148 | "IN_PROGRESS": 2, |
| 149 | "ERROR": 3, |
| 150 | } |
| 151 | |
| 152 | func (x UploadDebugInfoStatus_UploadStatus) String() string { |
| 153 | return proto.EnumName(UploadDebugInfoStatus_UploadStatus_name, int32(x)) |
| 154 | } |
| 155 | |
| 156 | func (UploadDebugInfoStatus_UploadStatus) EnumDescriptor() ([]byte, []int) { |
| 157 | return fileDescriptor_000929e4bec891d7, []int{8, 0} |
| 158 | } |
| 159 | |
| 160 | type UploadDebugInfoStatus_Reason int32 |
| 161 | |
| 162 | const ( |
amit.ghosh | dfd5d7e | 2023-03-14 21:14:33 +0100 | [diff] [blame] | 163 | 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.ghosh | 5a68980 | 2022-09-12 14:26:10 +0200 | [diff] [blame] | 169 | 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.ghosh | 4d731da | 2023-03-07 14:32:00 +0100 | [diff] [blame] | 172 | UploadDebugInfoStatus_DEVICE_BUSY UploadDebugInfoStatus_Reason = 7 |
amit.ghosh | dfd5d7e | 2023-03-14 21:14:33 +0100 | [diff] [blame] | 173 | // 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.ghosh | 5a68980 | 2022-09-12 14:26:10 +0200 | [diff] [blame] | 177 | ) |
| 178 | |
| 179 | var UploadDebugInfoStatus_Reason_name = map[int32]string{ |
amit.ghosh | dfd5d7e | 2023-03-14 21:14:33 +0100 | [diff] [blame] | 180 | 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.ghosh | 5a68980 | 2022-09-12 14:26:10 +0200 | [diff] [blame] | 191 | } |
| 192 | |
| 193 | var UploadDebugInfoStatus_Reason_value = map[string]int32{ |
| 194 | "UNDEFINED_REASON": 0, |
| 195 | "UNKNOWN_DEVICE": 1, |
| 196 | "INTERNAL_ERROR": 2, |
amit.ghosh | dfd5d7e | 2023-03-14 21:14:33 +0100 | [diff] [blame] | 197 | "DEVICE_NOT_REACHABLE": 3, |
amit.ghosh | 5a68980 | 2022-09-12 14:26:10 +0200 | [diff] [blame] | 198 | "REMOTE_LOCATION_UNREACHABLE": 4, |
| 199 | "REMOTE_LOCATION_PERMISSION_DENIED": 5, |
| 200 | "ERROR_DURING_UPLOAD": 6, |
amit.ghosh | 4d731da | 2023-03-07 14:32:00 +0100 | [diff] [blame] | 201 | "DEVICE_BUSY": 7, |
amit.ghosh | dfd5d7e | 2023-03-14 21:14:33 +0100 | [diff] [blame] | 202 | "ERROR_IN_REQUEST": 8, |
| 203 | "DEVICE_IN_WRONG_STATE": 9, |
| 204 | "OPERATION_ALREADY_IN_PROGRESS": 10, |
amit.ghosh | 5a68980 | 2022-09-12 14:26:10 +0200 | [diff] [blame] | 205 | } |
| 206 | |
| 207 | func (x UploadDebugInfoStatus_Reason) String() string { |
| 208 | return proto.EnumName(UploadDebugInfoStatus_Reason_name, int32(x)) |
| 209 | } |
| 210 | |
| 211 | func (UploadDebugInfoStatus_Reason) EnumDescriptor() ([]byte, []int) { |
| 212 | return fileDescriptor_000929e4bec891d7, []int{8, 1} |
| 213 | } |
| 214 | |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 215 | type 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 | |
| 223 | func (m *SoftwareVersionInformation) Reset() { *m = SoftwareVersionInformation{} } |
| 224 | func (m *SoftwareVersionInformation) String() string { return proto.CompactTextString(m) } |
| 225 | func (*SoftwareVersionInformation) ProtoMessage() {} |
| 226 | func (*SoftwareVersionInformation) Descriptor() ([]byte, []int) { |
| 227 | return fileDescriptor_000929e4bec891d7, []int{0} |
| 228 | } |
| 229 | |
| 230 | func (m *SoftwareVersionInformation) XXX_Unmarshal(b []byte) error { |
| 231 | return xxx_messageInfo_SoftwareVersionInformation.Unmarshal(m, b) |
| 232 | } |
| 233 | func (m *SoftwareVersionInformation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 234 | return xxx_messageInfo_SoftwareVersionInformation.Marshal(b, m, deterministic) |
| 235 | } |
| 236 | func (m *SoftwareVersionInformation) XXX_Merge(src proto.Message) { |
| 237 | xxx_messageInfo_SoftwareVersionInformation.Merge(m, src) |
| 238 | } |
| 239 | func (m *SoftwareVersionInformation) XXX_Size() int { |
| 240 | return xxx_messageInfo_SoftwareVersionInformation.Size(m) |
| 241 | } |
| 242 | func (m *SoftwareVersionInformation) XXX_DiscardUnknown() { |
| 243 | xxx_messageInfo_SoftwareVersionInformation.DiscardUnknown(m) |
| 244 | } |
| 245 | |
| 246 | var xxx_messageInfo_SoftwareVersionInformation proto.InternalMessageInfo |
| 247 | |
| 248 | func (m *SoftwareVersionInformation) GetActiveVersions() []*ImageVersion { |
| 249 | if m != nil { |
| 250 | return m.ActiveVersions |
| 251 | } |
| 252 | return nil |
| 253 | } |
| 254 | |
| 255 | func (m *SoftwareVersionInformation) GetStandbyVersions() []*ImageVersion { |
| 256 | if m != nil { |
| 257 | return m.StandbyVersions |
| 258 | } |
| 259 | return nil |
| 260 | } |
| 261 | |
aghosh | c301dcd | 2020-09-03 16:55:34 +0100 | [diff] [blame] | 262 | type GetSoftwareVersionInformationResponse struct { |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 263 | 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.ghosh | 8ab1e6e | 2021-02-23 07:40:17 +0100 | [diff] [blame] | 266 | ReasonDetail string `protobuf:"bytes,4,opt,name=reason_detail,json=reasonDetail,proto3" json:"reason_detail,omitempty"` |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 267 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 268 | XXX_unrecognized []byte `json:"-"` |
| 269 | XXX_sizecache int32 `json:"-"` |
aghosh | c301dcd | 2020-09-03 16:55:34 +0100 | [diff] [blame] | 270 | } |
| 271 | |
| 272 | func (m *GetSoftwareVersionInformationResponse) Reset() { *m = GetSoftwareVersionInformationResponse{} } |
| 273 | func (m *GetSoftwareVersionInformationResponse) String() string { return proto.CompactTextString(m) } |
| 274 | func (*GetSoftwareVersionInformationResponse) ProtoMessage() {} |
| 275 | func (*GetSoftwareVersionInformationResponse) Descriptor() ([]byte, []int) { |
| 276 | return fileDescriptor_000929e4bec891d7, []int{1} |
| 277 | } |
| 278 | |
| 279 | func (m *GetSoftwareVersionInformationResponse) XXX_Unmarshal(b []byte) error { |
| 280 | return xxx_messageInfo_GetSoftwareVersionInformationResponse.Unmarshal(m, b) |
| 281 | } |
| 282 | func (m *GetSoftwareVersionInformationResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 283 | return xxx_messageInfo_GetSoftwareVersionInformationResponse.Marshal(b, m, deterministic) |
| 284 | } |
| 285 | func (m *GetSoftwareVersionInformationResponse) XXX_Merge(src proto.Message) { |
| 286 | xxx_messageInfo_GetSoftwareVersionInformationResponse.Merge(m, src) |
| 287 | } |
| 288 | func (m *GetSoftwareVersionInformationResponse) XXX_Size() int { |
| 289 | return xxx_messageInfo_GetSoftwareVersionInformationResponse.Size(m) |
| 290 | } |
| 291 | func (m *GetSoftwareVersionInformationResponse) XXX_DiscardUnknown() { |
| 292 | xxx_messageInfo_GetSoftwareVersionInformationResponse.DiscardUnknown(m) |
| 293 | } |
| 294 | |
| 295 | var xxx_messageInfo_GetSoftwareVersionInformationResponse proto.InternalMessageInfo |
| 296 | |
| 297 | func (m *GetSoftwareVersionInformationResponse) GetStatus() Status { |
| 298 | if m != nil { |
| 299 | return m.Status |
| 300 | } |
| 301 | return Status_UNDEFINED_STATUS |
| 302 | } |
| 303 | |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 304 | func (m *GetSoftwareVersionInformationResponse) GetReason() GetSoftwareVersionInformationResponse_Reason { |
aghosh | c301dcd | 2020-09-03 16:55:34 +0100 | [diff] [blame] | 305 | if m != nil { |
| 306 | return m.Reason |
| 307 | } |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 308 | return GetSoftwareVersionInformationResponse_UNDEFINED_REASON |
aghosh | c301dcd | 2020-09-03 16:55:34 +0100 | [diff] [blame] | 309 | } |
| 310 | |
| 311 | func (m *GetSoftwareVersionInformationResponse) GetInfo() *SoftwareVersionInformation { |
| 312 | if m != nil { |
| 313 | return m.Info |
| 314 | } |
| 315 | return nil |
| 316 | } |
| 317 | |
amit.ghosh | 8ab1e6e | 2021-02-23 07:40:17 +0100 | [diff] [blame] | 318 | func (m *GetSoftwareVersionInformationResponse) GetReasonDetail() string { |
| 319 | if m != nil { |
| 320 | return m.ReasonDetail |
| 321 | } |
| 322 | return "" |
| 323 | } |
| 324 | |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 325 | type 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 | |
| 333 | func (m *DownloadImageRequest) Reset() { *m = DownloadImageRequest{} } |
| 334 | func (m *DownloadImageRequest) String() string { return proto.CompactTextString(m) } |
| 335 | func (*DownloadImageRequest) ProtoMessage() {} |
| 336 | func (*DownloadImageRequest) Descriptor() ([]byte, []int) { |
aghosh | c301dcd | 2020-09-03 16:55:34 +0100 | [diff] [blame] | 337 | return fileDescriptor_000929e4bec891d7, []int{2} |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 338 | } |
| 339 | |
| 340 | func (m *DownloadImageRequest) XXX_Unmarshal(b []byte) error { |
| 341 | return xxx_messageInfo_DownloadImageRequest.Unmarshal(m, b) |
| 342 | } |
| 343 | func (m *DownloadImageRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 344 | return xxx_messageInfo_DownloadImageRequest.Marshal(b, m, deterministic) |
| 345 | } |
| 346 | func (m *DownloadImageRequest) XXX_Merge(src proto.Message) { |
| 347 | xxx_messageInfo_DownloadImageRequest.Merge(m, src) |
| 348 | } |
| 349 | func (m *DownloadImageRequest) XXX_Size() int { |
| 350 | return xxx_messageInfo_DownloadImageRequest.Size(m) |
| 351 | } |
| 352 | func (m *DownloadImageRequest) XXX_DiscardUnknown() { |
| 353 | xxx_messageInfo_DownloadImageRequest.DiscardUnknown(m) |
| 354 | } |
| 355 | |
| 356 | var xxx_messageInfo_DownloadImageRequest proto.InternalMessageInfo |
| 357 | |
| 358 | func (m *DownloadImageRequest) GetDeviceUuid() *Uuid { |
| 359 | if m != nil { |
| 360 | return m.DeviceUuid |
| 361 | } |
| 362 | return nil |
| 363 | } |
| 364 | |
| 365 | func (m *DownloadImageRequest) GetImageInfo() *ImageInformation { |
| 366 | if m != nil { |
| 367 | return m.ImageInfo |
| 368 | } |
| 369 | return nil |
| 370 | } |
| 371 | |
amit.ghosh | ed23db0 | 2020-11-18 10:26:36 +0100 | [diff] [blame] | 372 | type 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 | |
| 383 | func (m *ConfigRequest) Reset() { *m = ConfigRequest{} } |
| 384 | func (m *ConfigRequest) String() string { return proto.CompactTextString(m) } |
| 385 | func (*ConfigRequest) ProtoMessage() {} |
| 386 | func (*ConfigRequest) Descriptor() ([]byte, []int) { |
| 387 | return fileDescriptor_000929e4bec891d7, []int{3} |
| 388 | } |
| 389 | |
| 390 | func (m *ConfigRequest) XXX_Unmarshal(b []byte) error { |
| 391 | return xxx_messageInfo_ConfigRequest.Unmarshal(m, b) |
| 392 | } |
| 393 | func (m *ConfigRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 394 | return xxx_messageInfo_ConfigRequest.Marshal(b, m, deterministic) |
| 395 | } |
| 396 | func (m *ConfigRequest) XXX_Merge(src proto.Message) { |
| 397 | xxx_messageInfo_ConfigRequest.Merge(m, src) |
| 398 | } |
| 399 | func (m *ConfigRequest) XXX_Size() int { |
| 400 | return xxx_messageInfo_ConfigRequest.Size(m) |
| 401 | } |
| 402 | func (m *ConfigRequest) XXX_DiscardUnknown() { |
| 403 | xxx_messageInfo_ConfigRequest.DiscardUnknown(m) |
| 404 | } |
| 405 | |
| 406 | var xxx_messageInfo_ConfigRequest proto.InternalMessageInfo |
| 407 | |
| 408 | func (m *ConfigRequest) GetDeviceUuid() *Uuid { |
| 409 | if m != nil { |
| 410 | return m.DeviceUuid |
| 411 | } |
| 412 | return nil |
| 413 | } |
| 414 | |
| 415 | func (m *ConfigRequest) GetConfigUrl() string { |
| 416 | if m != nil { |
| 417 | return m.ConfigUrl |
| 418 | } |
| 419 | return "" |
| 420 | } |
| 421 | |
| 422 | type ConfigResponse struct { |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 423 | 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.ghosh | 8ab1e6e | 2021-02-23 07:40:17 +0100 | [diff] [blame] | 425 | ReasonDetail string `protobuf:"bytes,3,opt,name=reason_detail,json=reasonDetail,proto3" json:"reason_detail,omitempty"` |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 426 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 427 | XXX_unrecognized []byte `json:"-"` |
| 428 | XXX_sizecache int32 `json:"-"` |
amit.ghosh | ed23db0 | 2020-11-18 10:26:36 +0100 | [diff] [blame] | 429 | } |
| 430 | |
| 431 | func (m *ConfigResponse) Reset() { *m = ConfigResponse{} } |
| 432 | func (m *ConfigResponse) String() string { return proto.CompactTextString(m) } |
| 433 | func (*ConfigResponse) ProtoMessage() {} |
| 434 | func (*ConfigResponse) Descriptor() ([]byte, []int) { |
| 435 | return fileDescriptor_000929e4bec891d7, []int{4} |
| 436 | } |
| 437 | |
| 438 | func (m *ConfigResponse) XXX_Unmarshal(b []byte) error { |
| 439 | return xxx_messageInfo_ConfigResponse.Unmarshal(m, b) |
| 440 | } |
| 441 | func (m *ConfigResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 442 | return xxx_messageInfo_ConfigResponse.Marshal(b, m, deterministic) |
| 443 | } |
| 444 | func (m *ConfigResponse) XXX_Merge(src proto.Message) { |
| 445 | xxx_messageInfo_ConfigResponse.Merge(m, src) |
| 446 | } |
| 447 | func (m *ConfigResponse) XXX_Size() int { |
| 448 | return xxx_messageInfo_ConfigResponse.Size(m) |
| 449 | } |
| 450 | func (m *ConfigResponse) XXX_DiscardUnknown() { |
| 451 | xxx_messageInfo_ConfigResponse.DiscardUnknown(m) |
| 452 | } |
| 453 | |
| 454 | var xxx_messageInfo_ConfigResponse proto.InternalMessageInfo |
| 455 | |
| 456 | func (m *ConfigResponse) GetStatus() Status { |
| 457 | if m != nil { |
| 458 | return m.Status |
| 459 | } |
| 460 | return Status_UNDEFINED_STATUS |
| 461 | } |
| 462 | |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 463 | func (m *ConfigResponse) GetReason() ConfigResponse_Reason { |
amit.ghosh | ed23db0 | 2020-11-18 10:26:36 +0100 | [diff] [blame] | 464 | if m != nil { |
| 465 | return m.Reason |
| 466 | } |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 467 | return ConfigResponse_UNDEFINED_REASON |
amit.ghosh | ed23db0 | 2020-11-18 10:26:36 +0100 | [diff] [blame] | 468 | } |
| 469 | |
amit.ghosh | 8ab1e6e | 2021-02-23 07:40:17 +0100 | [diff] [blame] | 470 | func (m *ConfigResponse) GetReasonDetail() string { |
| 471 | if m != nil { |
| 472 | return m.ReasonDetail |
| 473 | } |
| 474 | return "" |
| 475 | } |
| 476 | |
amit.ghosh | 2c938b8 | 2021-01-14 11:34:03 +0100 | [diff] [blame] | 477 | type 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 | |
| 484 | func (m *StartupConfigInfoRequest) Reset() { *m = StartupConfigInfoRequest{} } |
| 485 | func (m *StartupConfigInfoRequest) String() string { return proto.CompactTextString(m) } |
| 486 | func (*StartupConfigInfoRequest) ProtoMessage() {} |
| 487 | func (*StartupConfigInfoRequest) Descriptor() ([]byte, []int) { |
| 488 | return fileDescriptor_000929e4bec891d7, []int{5} |
| 489 | } |
| 490 | |
| 491 | func (m *StartupConfigInfoRequest) XXX_Unmarshal(b []byte) error { |
| 492 | return xxx_messageInfo_StartupConfigInfoRequest.Unmarshal(m, b) |
| 493 | } |
| 494 | func (m *StartupConfigInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 495 | return xxx_messageInfo_StartupConfigInfoRequest.Marshal(b, m, deterministic) |
| 496 | } |
| 497 | func (m *StartupConfigInfoRequest) XXX_Merge(src proto.Message) { |
| 498 | xxx_messageInfo_StartupConfigInfoRequest.Merge(m, src) |
| 499 | } |
| 500 | func (m *StartupConfigInfoRequest) XXX_Size() int { |
| 501 | return xxx_messageInfo_StartupConfigInfoRequest.Size(m) |
| 502 | } |
| 503 | func (m *StartupConfigInfoRequest) XXX_DiscardUnknown() { |
| 504 | xxx_messageInfo_StartupConfigInfoRequest.DiscardUnknown(m) |
| 505 | } |
| 506 | |
| 507 | var xxx_messageInfo_StartupConfigInfoRequest proto.InternalMessageInfo |
| 508 | |
| 509 | func (m *StartupConfigInfoRequest) GetDeviceUuid() *Uuid { |
| 510 | if m != nil { |
| 511 | return m.DeviceUuid |
| 512 | } |
| 513 | return nil |
| 514 | } |
| 515 | |
| 516 | type 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.ghosh | 8ab1e6e | 2021-02-23 07:40:17 +0100 | [diff] [blame] | 526 | ReasonDetail string `protobuf:"bytes,5,opt,name=reason_detail,json=reasonDetail,proto3" json:"reason_detail,omitempty"` |
amit.ghosh | 2c938b8 | 2021-01-14 11:34:03 +0100 | [diff] [blame] | 527 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 528 | XXX_unrecognized []byte `json:"-"` |
| 529 | XXX_sizecache int32 `json:"-"` |
| 530 | } |
| 531 | |
| 532 | func (m *StartupConfigInfoResponse) Reset() { *m = StartupConfigInfoResponse{} } |
| 533 | func (m *StartupConfigInfoResponse) String() string { return proto.CompactTextString(m) } |
| 534 | func (*StartupConfigInfoResponse) ProtoMessage() {} |
| 535 | func (*StartupConfigInfoResponse) Descriptor() ([]byte, []int) { |
| 536 | return fileDescriptor_000929e4bec891d7, []int{6} |
| 537 | } |
| 538 | |
| 539 | func (m *StartupConfigInfoResponse) XXX_Unmarshal(b []byte) error { |
| 540 | return xxx_messageInfo_StartupConfigInfoResponse.Unmarshal(m, b) |
| 541 | } |
| 542 | func (m *StartupConfigInfoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 543 | return xxx_messageInfo_StartupConfigInfoResponse.Marshal(b, m, deterministic) |
| 544 | } |
| 545 | func (m *StartupConfigInfoResponse) XXX_Merge(src proto.Message) { |
| 546 | xxx_messageInfo_StartupConfigInfoResponse.Merge(m, src) |
| 547 | } |
| 548 | func (m *StartupConfigInfoResponse) XXX_Size() int { |
| 549 | return xxx_messageInfo_StartupConfigInfoResponse.Size(m) |
| 550 | } |
| 551 | func (m *StartupConfigInfoResponse) XXX_DiscardUnknown() { |
| 552 | xxx_messageInfo_StartupConfigInfoResponse.DiscardUnknown(m) |
| 553 | } |
| 554 | |
| 555 | var xxx_messageInfo_StartupConfigInfoResponse proto.InternalMessageInfo |
| 556 | |
| 557 | func (m *StartupConfigInfoResponse) GetStatus() Status { |
| 558 | if m != nil { |
| 559 | return m.Status |
| 560 | } |
| 561 | return Status_UNDEFINED_STATUS |
| 562 | } |
| 563 | |
| 564 | func (m *StartupConfigInfoResponse) GetReason() StartupConfigInfoResponse_Reason { |
| 565 | if m != nil { |
| 566 | return m.Reason |
| 567 | } |
| 568 | return StartupConfigInfoResponse_UNDEFINED_REASON |
| 569 | } |
| 570 | |
| 571 | func (m *StartupConfigInfoResponse) GetConfigUrl() string { |
| 572 | if m != nil { |
| 573 | return m.ConfigUrl |
| 574 | } |
| 575 | return "" |
| 576 | } |
| 577 | |
| 578 | func (m *StartupConfigInfoResponse) GetVersion() string { |
| 579 | if m != nil { |
| 580 | return m.Version |
| 581 | } |
| 582 | return "" |
| 583 | } |
| 584 | |
amit.ghosh | 8ab1e6e | 2021-02-23 07:40:17 +0100 | [diff] [blame] | 585 | func (m *StartupConfigInfoResponse) GetReasonDetail() string { |
| 586 | if m != nil { |
| 587 | return m.ReasonDetail |
| 588 | } |
| 589 | return "" |
| 590 | } |
| 591 | |
amit.ghosh | 5a68980 | 2022-09-12 14:26:10 +0200 | [diff] [blame] | 592 | type 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 | |
| 604 | func (m *UploadDebugInfoRequest) Reset() { *m = UploadDebugInfoRequest{} } |
| 605 | func (m *UploadDebugInfoRequest) String() string { return proto.CompactTextString(m) } |
| 606 | func (*UploadDebugInfoRequest) ProtoMessage() {} |
| 607 | func (*UploadDebugInfoRequest) Descriptor() ([]byte, []int) { |
| 608 | return fileDescriptor_000929e4bec891d7, []int{7} |
| 609 | } |
| 610 | |
| 611 | func (m *UploadDebugInfoRequest) XXX_Unmarshal(b []byte) error { |
| 612 | return xxx_messageInfo_UploadDebugInfoRequest.Unmarshal(m, b) |
| 613 | } |
| 614 | func (m *UploadDebugInfoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 615 | return xxx_messageInfo_UploadDebugInfoRequest.Marshal(b, m, deterministic) |
| 616 | } |
| 617 | func (m *UploadDebugInfoRequest) XXX_Merge(src proto.Message) { |
| 618 | xxx_messageInfo_UploadDebugInfoRequest.Merge(m, src) |
| 619 | } |
| 620 | func (m *UploadDebugInfoRequest) XXX_Size() int { |
| 621 | return xxx_messageInfo_UploadDebugInfoRequest.Size(m) |
| 622 | } |
| 623 | func (m *UploadDebugInfoRequest) XXX_DiscardUnknown() { |
| 624 | xxx_messageInfo_UploadDebugInfoRequest.DiscardUnknown(m) |
| 625 | } |
| 626 | |
| 627 | var xxx_messageInfo_UploadDebugInfoRequest proto.InternalMessageInfo |
| 628 | |
| 629 | func (m *UploadDebugInfoRequest) GetDeviceUuid() *Uuid { |
| 630 | if m != nil { |
| 631 | return m.DeviceUuid |
| 632 | } |
| 633 | return nil |
| 634 | } |
| 635 | |
| 636 | func (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 |
| 644 | type UploadDebugInfoStatus struct { |
| 645 | DeviceUuid *Uuid `protobuf:"bytes,1,opt,name=device_uuid,json=deviceUuid,proto3" json:"device_uuid,omitempty"` |
| 646 | Status UploadDebugInfoStatus_UploadStatus `protobuf:"varint,2,opt,name=status,proto3,enum=dmi.UploadDebugInfoStatus_UploadStatus" json:"status,omitempty"` |
| 647 | // percent_uploaded is the percentage of the upload that is done |
| 648 | // should be a value between 0 and 100 when status is IN_PROGRESS |
| 649 | // should be 100 when status is COMPLETE |
| 650 | // can be set to -1 if the device manager implementations cannot support |
| 651 | // the progress percentage |
| 652 | PercentUploaded int32 `protobuf:"varint,3,opt,name=percent_uploaded,json=percentUploaded,proto3" json:"percent_uploaded,omitempty"` |
| 653 | Reason UploadDebugInfoStatus_Reason `protobuf:"varint,4,opt,name=reason,proto3,enum=dmi.UploadDebugInfoStatus_Reason" json:"reason,omitempty"` |
| 654 | LocationUrl string `protobuf:"bytes,5,opt,name=location_url,json=locationUrl,proto3" json:"location_url,omitempty"` |
| 655 | // file_name is the file at location_url where the debug information was uploaded. |
| 656 | // Implementations need to ensure that file_name is unique at the remote location. |
| 657 | FileName string `protobuf:"bytes,6,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"` |
| 658 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 659 | XXX_unrecognized []byte `json:"-"` |
| 660 | XXX_sizecache int32 `json:"-"` |
| 661 | } |
| 662 | |
| 663 | func (m *UploadDebugInfoStatus) Reset() { *m = UploadDebugInfoStatus{} } |
| 664 | func (m *UploadDebugInfoStatus) String() string { return proto.CompactTextString(m) } |
| 665 | func (*UploadDebugInfoStatus) ProtoMessage() {} |
| 666 | func (*UploadDebugInfoStatus) Descriptor() ([]byte, []int) { |
| 667 | return fileDescriptor_000929e4bec891d7, []int{8} |
| 668 | } |
| 669 | |
| 670 | func (m *UploadDebugInfoStatus) XXX_Unmarshal(b []byte) error { |
| 671 | return xxx_messageInfo_UploadDebugInfoStatus.Unmarshal(m, b) |
| 672 | } |
| 673 | func (m *UploadDebugInfoStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 674 | return xxx_messageInfo_UploadDebugInfoStatus.Marshal(b, m, deterministic) |
| 675 | } |
| 676 | func (m *UploadDebugInfoStatus) XXX_Merge(src proto.Message) { |
| 677 | xxx_messageInfo_UploadDebugInfoStatus.Merge(m, src) |
| 678 | } |
| 679 | func (m *UploadDebugInfoStatus) XXX_Size() int { |
| 680 | return xxx_messageInfo_UploadDebugInfoStatus.Size(m) |
| 681 | } |
| 682 | func (m *UploadDebugInfoStatus) XXX_DiscardUnknown() { |
| 683 | xxx_messageInfo_UploadDebugInfoStatus.DiscardUnknown(m) |
| 684 | } |
| 685 | |
| 686 | var xxx_messageInfo_UploadDebugInfoStatus proto.InternalMessageInfo |
| 687 | |
| 688 | func (m *UploadDebugInfoStatus) GetDeviceUuid() *Uuid { |
| 689 | if m != nil { |
| 690 | return m.DeviceUuid |
| 691 | } |
| 692 | return nil |
| 693 | } |
| 694 | |
| 695 | func (m *UploadDebugInfoStatus) GetStatus() UploadDebugInfoStatus_UploadStatus { |
| 696 | if m != nil { |
| 697 | return m.Status |
| 698 | } |
| 699 | return UploadDebugInfoStatus_UNDEFINED_UPLOAD_STATUS |
| 700 | } |
| 701 | |
| 702 | func (m *UploadDebugInfoStatus) GetPercentUploaded() int32 { |
| 703 | if m != nil { |
| 704 | return m.PercentUploaded |
| 705 | } |
| 706 | return 0 |
| 707 | } |
| 708 | |
| 709 | func (m *UploadDebugInfoStatus) GetReason() UploadDebugInfoStatus_Reason { |
| 710 | if m != nil { |
| 711 | return m.Reason |
| 712 | } |
| 713 | return UploadDebugInfoStatus_UNDEFINED_REASON |
| 714 | } |
| 715 | |
| 716 | func (m *UploadDebugInfoStatus) GetLocationUrl() string { |
| 717 | if m != nil { |
| 718 | return m.LocationUrl |
| 719 | } |
| 720 | return "" |
| 721 | } |
| 722 | |
| 723 | func (m *UploadDebugInfoStatus) GetFileName() string { |
| 724 | if m != nil { |
| 725 | return m.FileName |
| 726 | } |
| 727 | return "" |
| 728 | } |
| 729 | |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 730 | func init() { |
amit.ghosh | ae47303 | 2021-01-10 11:59:10 +0100 | [diff] [blame] | 731 | proto.RegisterEnum("dmi.GetSoftwareVersionInformationResponse_Reason", GetSoftwareVersionInformationResponse_Reason_name, GetSoftwareVersionInformationResponse_Reason_value) |
| 732 | proto.RegisterEnum("dmi.ConfigResponse_Reason", ConfigResponse_Reason_name, ConfigResponse_Reason_value) |
amit.ghosh | 2c938b8 | 2021-01-14 11:34:03 +0100 | [diff] [blame] | 733 | proto.RegisterEnum("dmi.StartupConfigInfoResponse_Reason", StartupConfigInfoResponse_Reason_name, StartupConfigInfoResponse_Reason_value) |
amit.ghosh | 5a68980 | 2022-09-12 14:26:10 +0200 | [diff] [blame] | 734 | proto.RegisterEnum("dmi.UploadDebugInfoStatus_UploadStatus", UploadDebugInfoStatus_UploadStatus_name, UploadDebugInfoStatus_UploadStatus_value) |
| 735 | proto.RegisterEnum("dmi.UploadDebugInfoStatus_Reason", UploadDebugInfoStatus_Reason_name, UploadDebugInfoStatus_Reason_value) |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 736 | proto.RegisterType((*SoftwareVersionInformation)(nil), "dmi.SoftwareVersionInformation") |
aghosh | c301dcd | 2020-09-03 16:55:34 +0100 | [diff] [blame] | 737 | proto.RegisterType((*GetSoftwareVersionInformationResponse)(nil), "dmi.GetSoftwareVersionInformationResponse") |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 738 | proto.RegisterType((*DownloadImageRequest)(nil), "dmi.DownloadImageRequest") |
amit.ghosh | ed23db0 | 2020-11-18 10:26:36 +0100 | [diff] [blame] | 739 | proto.RegisterType((*ConfigRequest)(nil), "dmi.ConfigRequest") |
| 740 | proto.RegisterType((*ConfigResponse)(nil), "dmi.ConfigResponse") |
amit.ghosh | 2c938b8 | 2021-01-14 11:34:03 +0100 | [diff] [blame] | 741 | proto.RegisterType((*StartupConfigInfoRequest)(nil), "dmi.StartupConfigInfoRequest") |
| 742 | proto.RegisterType((*StartupConfigInfoResponse)(nil), "dmi.StartupConfigInfoResponse") |
amit.ghosh | 5a68980 | 2022-09-12 14:26:10 +0200 | [diff] [blame] | 743 | proto.RegisterType((*UploadDebugInfoRequest)(nil), "dmi.UploadDebugInfoRequest") |
| 744 | proto.RegisterType((*UploadDebugInfoStatus)(nil), "dmi.UploadDebugInfoStatus") |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 745 | } |
| 746 | |
| 747 | func init() { proto.RegisterFile("dmi/sw_management_service.proto", fileDescriptor_000929e4bec891d7) } |
| 748 | |
| 749 | var fileDescriptor_000929e4bec891d7 = []byte{ |
amit.ghosh | dfd5d7e | 2023-03-14 21:14:33 +0100 | [diff] [blame] | 750 | // 1091 bytes of a gzipped FileDescriptorProto |
| 751 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x56, 0xdd, 0x52, 0xdb, 0x46, |
| 752 | 0x14, 0x8e, 0x7f, 0x13, 0x1f, 0x03, 0x56, 0x36, 0x90, 0x18, 0x33, 0x14, 0x70, 0x86, 0x29, 0xcd, |
| 753 | 0x4c, 0x30, 0x35, 0xb9, 0x49, 0xd3, 0x9f, 0x31, 0xd6, 0x62, 0x34, 0x35, 0x12, 0x59, 0x59, 0x64, |
| 754 | 0x92, 0xe9, 0x74, 0x47, 0x58, 0x6b, 0x47, 0x33, 0x96, 0xe4, 0x4a, 0x32, 0xb4, 0x2f, 0xd2, 0xab, |
| 755 | 0x5e, 0xf7, 0xa2, 0x57, 0x7d, 0x81, 0x5e, 0xf4, 0x11, 0xfa, 0x46, 0x9d, 0xdd, 0x95, 0xc1, 0x18, |
| 756 | 0x3b, 0x0d, 0x4c, 0x66, 0x7a, 0x27, 0x9d, 0x3d, 0x3f, 0xbb, 0xe7, 0xfb, 0xce, 0x0f, 0x6c, 0x38, |
| 757 | 0x9e, 0x5b, 0x8b, 0x2e, 0xa8, 0x67, 0xfb, 0x76, 0x9f, 0x79, 0xcc, 0x8f, 0x69, 0xc4, 0xc2, 0x73, |
| 758 | 0xb7, 0xcb, 0x76, 0x87, 0x61, 0x10, 0x07, 0x28, 0xe3, 0x78, 0x6e, 0xe5, 0x21, 0xd7, 0xea, 0x06, |
| 759 | 0x9e, 0x17, 0xf8, 0x91, 0x94, 0x57, 0x16, 0xb8, 0xe8, 0xfd, 0x45, 0xf2, 0x87, 0x12, 0x37, 0xae, |
| 760 | 0x67, 0xf7, 0x13, 0xcb, 0xea, 0xaf, 0x29, 0xa8, 0x98, 0x41, 0x2f, 0xbe, 0xb0, 0x43, 0x76, 0xca, |
| 761 | 0xc2, 0xc8, 0x0d, 0x7c, 0xcd, 0xef, 0x05, 0xa1, 0x67, 0xc7, 0x6e, 0xe0, 0xa3, 0xaf, 0xa0, 0x64, |
| 762 | 0x77, 0x63, 0xf7, 0x9c, 0xd1, 0x73, 0x79, 0x18, 0x95, 0x53, 0x9b, 0x99, 0x9d, 0x62, 0xfd, 0xe1, |
| 763 | 0xae, 0xe3, 0xb9, 0xbb, 0x1a, 0xf7, 0x94, 0x98, 0x91, 0x25, 0xa9, 0x99, 0xfc, 0x46, 0xe8, 0x6b, |
| 764 | 0x50, 0xa2, 0xd8, 0xf6, 0x9d, 0xb3, 0x5f, 0xae, 0x8c, 0xd3, 0xf3, 0x8c, 0x4b, 0x89, 0xea, 0xd8, |
| 765 | 0xba, 0xfa, 0x4f, 0x1a, 0xb6, 0x5b, 0x2c, 0x9e, 0x7f, 0x37, 0xc2, 0xa2, 0x61, 0xe0, 0x47, 0x0c, |
| 766 | 0x3d, 0x85, 0x7c, 0x14, 0xdb, 0xf1, 0x88, 0x5f, 0x2d, 0xb5, 0xb3, 0x54, 0x2f, 0x0a, 0xef, 0xa6, |
| 767 | 0x10, 0x91, 0xe4, 0x08, 0x69, 0x90, 0x0f, 0x99, 0x1d, 0x05, 0x7e, 0x39, 0x2d, 0x94, 0xbe, 0x14, |
| 768 | 0x4a, 0x1f, 0x15, 0x60, 0x97, 0x08, 0x43, 0x92, 0x38, 0x40, 0xfb, 0x90, 0x75, 0xfd, 0x5e, 0x50, |
| 769 | 0xce, 0x6c, 0xa6, 0x76, 0x8a, 0xf5, 0x0d, 0x19, 0x6d, 0xbe, 0x17, 0xa1, 0x8c, 0x9e, 0xc2, 0xa2, |
| 770 | 0x34, 0xa7, 0x0e, 0x8b, 0x6d, 0x77, 0x50, 0xce, 0x6e, 0xa6, 0x76, 0x0a, 0x64, 0x41, 0x0a, 0x55, |
| 771 | 0x21, 0xab, 0xfe, 0x08, 0x79, 0x19, 0x0b, 0x2d, 0x83, 0x62, 0xe9, 0x2a, 0x3e, 0xd4, 0x74, 0xac, |
| 772 | 0x52, 0x82, 0x1b, 0xa6, 0xa1, 0x2b, 0xf7, 0x10, 0x82, 0x25, 0x4b, 0xff, 0x5e, 0x37, 0xde, 0xe8, |
| 773 | 0x54, 0xc5, 0xa7, 0x5a, 0x13, 0x2b, 0x29, 0x2e, 0xd3, 0xf4, 0x0e, 0x26, 0x7a, 0xa3, 0x4d, 0x31, |
| 774 | 0x21, 0x06, 0x51, 0xd2, 0xe8, 0x31, 0x20, 0x79, 0x4e, 0x2d, 0x9d, 0xe0, 0x46, 0xf3, 0xa8, 0x71, |
| 775 | 0xd0, 0xc6, 0x4a, 0xa6, 0xfa, 0x33, 0x2c, 0xab, 0xc1, 0x85, 0x3f, 0x08, 0x6c, 0x47, 0x24, 0x9f, |
| 776 | 0xb0, 0x9f, 0x46, 0x2c, 0x8a, 0xd1, 0x33, 0x28, 0x3a, 0x8c, 0xd3, 0x89, 0x8e, 0x46, 0xae, 0x23, |
| 777 | 0xd2, 0x58, 0xac, 0x17, 0xc4, 0xc3, 0xac, 0x91, 0xeb, 0x10, 0x90, 0xa7, 0xfc, 0x1b, 0xbd, 0x00, |
| 778 | 0x10, 0xfc, 0xa1, 0x22, 0x07, 0x69, 0xa1, 0xba, 0x72, 0x85, 0xe7, 0xe4, 0xcb, 0x0b, 0xee, 0x58, |
| 779 | 0x52, 0x7d, 0x07, 0x8b, 0xcd, 0xc0, 0xef, 0xb9, 0xfd, 0xbb, 0x84, 0x5c, 0x07, 0xe8, 0x0a, 0x63, |
| 780 | 0x3a, 0x0a, 0x07, 0x22, 0x64, 0x81, 0x14, 0xa4, 0xc4, 0x0a, 0x07, 0xd5, 0xbf, 0xd3, 0xb0, 0x34, |
| 781 | 0x76, 0x7e, 0x1b, 0x4a, 0xd4, 0xa7, 0x28, 0x51, 0x11, 0x4a, 0xd7, 0x3d, 0x4d, 0x63, 0x7f, 0x03, |
| 782 | 0xc6, 0xcc, 0x0c, 0x18, 0xff, 0x4c, 0x7d, 0x22, 0x1c, 0x57, 0x61, 0x45, 0x7c, 0xd2, 0x43, 0xdc, |
| 783 | 0x69, 0x1e, 0x69, 0x7a, 0x8b, 0x36, 0x0d, 0xfd, 0x50, 0x6b, 0x29, 0x19, 0xa9, 0x7e, 0xda, 0x68, |
| 784 | 0x6b, 0xea, 0x58, 0x96, 0x45, 0x5b, 0xb0, 0x6e, 0x9c, 0x60, 0xd2, 0xe8, 0x68, 0x86, 0x4e, 0x1b, |
| 785 | 0x6d, 0x82, 0x1b, 0xea, 0x5b, 0xaa, 0xe9, 0xf4, 0x84, 0x18, 0x2d, 0x82, 0x4d, 0x53, 0xc9, 0xcd, |
| 786 | 0x61, 0x46, 0xbe, 0x7a, 0x08, 0x65, 0x33, 0xb6, 0xc3, 0x78, 0x34, 0x94, 0xef, 0xe7, 0xa0, 0xdd, |
| 787 | 0x01, 0xaa, 0xea, 0x5f, 0x69, 0x58, 0x9d, 0xe1, 0xe8, 0x36, 0xb0, 0x7c, 0x33, 0x05, 0xcb, 0xf6, |
| 788 | 0x58, 0x69, 0xb6, 0xd3, 0x69, 0x84, 0xae, 0x93, 0x25, 0x33, 0x45, 0x16, 0x54, 0x86, 0xfb, 0x49, |
| 789 | 0x33, 0x4a, 0x2a, 0x70, 0xfc, 0x7b, 0x13, 0xda, 0xdc, 0xff, 0x50, 0xa1, 0x7d, 0x78, 0x6c, 0x0d, |
| 790 | 0x79, 0x7d, 0xaa, 0xec, 0x6c, 0x74, 0x57, 0x14, 0xd0, 0x16, 0x2c, 0x0c, 0x82, 0xae, 0x28, 0xc2, |
| 791 | 0x89, 0x2c, 0x14, 0xc7, 0x32, 0x5e, 0x34, 0x7f, 0xe4, 0x60, 0x65, 0x2a, 0x92, 0xc4, 0xe1, 0x56, |
| 792 | 0x81, 0xbe, 0xbb, 0x04, 0x54, 0x62, 0xf5, 0xb9, 0x54, 0x9b, 0xe5, 0x37, 0x91, 0x4e, 0x81, 0xfd, |
| 793 | 0x05, 0x28, 0x43, 0x16, 0x76, 0xf9, 0x44, 0x1b, 0x89, 0x73, 0xe6, 0x88, 0xdb, 0xe6, 0x48, 0x29, |
| 794 | 0x91, 0x5b, 0x89, 0x18, 0xbd, 0xbc, 0xe4, 0x45, 0x56, 0xc4, 0xda, 0xfa, 0x40, 0xac, 0x29, 0x4e, |
| 795 | 0x4c, 0xe7, 0x23, 0x77, 0x23, 0x1f, 0x68, 0x0d, 0x0a, 0x3d, 0x77, 0xc0, 0xa8, 0x6f, 0x7b, 0xac, |
| 796 | 0x9c, 0x17, 0xe7, 0x0f, 0xb8, 0x40, 0xb7, 0x3d, 0x56, 0xb5, 0x60, 0x61, 0xf2, 0xf6, 0x68, 0x0d, |
| 797 | 0x9e, 0x5c, 0x61, 0x6f, 0x9d, 0xb4, 0x8d, 0x86, 0x4a, 0xcd, 0x4e, 0xa3, 0x63, 0x99, 0xca, 0x3d, |
| 798 | 0xb4, 0x00, 0x0f, 0x9a, 0xc6, 0xf1, 0x49, 0x1b, 0x77, 0x38, 0xf8, 0x25, 0x28, 0x4e, 0x56, 0x60, |
| 799 | 0x1a, 0x15, 0x20, 0x27, 0x49, 0x90, 0xa9, 0xfe, 0x9e, 0xfe, 0x44, 0x6c, 0x2a, 0xc3, 0x72, 0xc2, |
| 800 | 0x26, 0xdd, 0xe8, 0xd0, 0x09, 0x3e, 0xa1, 0x0d, 0x58, 0x23, 0xf8, 0xd8, 0xe8, 0x60, 0xda, 0x36, |
| 801 | 0x9a, 0xb2, 0x31, 0x4c, 0x12, 0x2e, 0x8b, 0xb6, 0x61, 0x6b, 0x5a, 0xe1, 0x04, 0x93, 0x63, 0xcd, |
| 802 | 0x34, 0xf9, 0xa7, 0x8a, 0x75, 0x0d, 0xab, 0x4a, 0x0e, 0x3d, 0x81, 0x47, 0xb2, 0x13, 0xa9, 0x16, |
| 803 | 0xe1, 0x7d, 0x48, 0x3e, 0x5a, 0xc9, 0xf3, 0xf7, 0x25, 0xa1, 0x0f, 0x2c, 0xf3, 0xad, 0x72, 0x9f, |
| 804 | 0xbf, 0x44, 0x6a, 0x6a, 0x3a, 0x25, 0xf8, 0xb5, 0x85, 0xcd, 0x8e, 0xf2, 0x80, 0x77, 0xb2, 0x44, |
| 805 | 0x4d, 0xd3, 0xe9, 0x1b, 0x62, 0xe8, 0x2d, 0x91, 0x30, 0xac, 0x14, 0xfe, 0xbb, 0x6b, 0x41, 0xfd, |
| 806 | 0xb7, 0x2c, 0x6c, 0xe8, 0x36, 0x5f, 0x2e, 0xc6, 0x73, 0xf6, 0xf8, 0x72, 0x13, 0x32, 0xe5, 0x22, |
| 807 | 0x84, 0x5e, 0x03, 0xba, 0x39, 0xcd, 0x51, 0x49, 0x90, 0xe4, 0xc8, 0x0e, 0x1d, 0x2e, 0xd5, 0xd4, |
| 808 | 0xca, 0xb3, 0x8f, 0x9f, 0xfb, 0xe8, 0x5b, 0x58, 0xbc, 0x36, 0x2e, 0xd1, 0xaa, 0x30, 0x9e, 0x35, |
| 809 | 0x42, 0x2b, 0xca, 0xd5, 0x08, 0x94, 0x24, 0xd9, 0x4b, 0xa1, 0x17, 0xb0, 0xd8, 0xe0, 0x2b, 0x91, |
| 810 | 0x1d, 0x33, 0x69, 0x7f, 0xe3, 0x36, 0xb3, 0xac, 0x5e, 0xc1, 0x32, 0x61, 0xe7, 0x2c, 0x8c, 0x3b, |
| 811 | 0x9c, 0xcd, 0x7c, 0x27, 0xba, 0x85, 0x71, 0x0b, 0x2a, 0xd6, 0xd0, 0xb1, 0x63, 0x76, 0xad, 0x5f, |
| 812 | 0x8e, 0x42, 0xb9, 0xcd, 0xa1, 0x6b, 0x13, 0x4e, 0x5e, 0xfc, 0xd1, 0x8c, 0xa9, 0xb7, 0x97, 0x42, |
| 813 | 0x3f, 0xc0, 0x1a, 0x4f, 0xd2, 0x0c, 0x2f, 0x3c, 0x53, 0x68, 0x7d, 0x5e, 0x53, 0x96, 0x4e, 0x3f, |
| 814 | 0xfb, 0x70, 0xcf, 0x46, 0x6d, 0x28, 0x4d, 0x15, 0x2e, 0x5a, 0x9b, 0x55, 0xce, 0x63, 0x7f, 0x95, |
| 815 | 0xf9, 0xb5, 0xbe, 0x97, 0x3a, 0x78, 0xf5, 0xee, 0x65, 0xdf, 0x8d, 0xdf, 0x8f, 0xce, 0x76, 0xbb, |
| 816 | 0x81, 0x57, 0x0b, 0x86, 0xcc, 0xef, 0x06, 0xa1, 0x53, 0x93, 0x7d, 0xea, 0xf9, 0xd5, 0xd2, 0xfc, |
| 817 | 0xdc, 0xf5, 0x63, 0x16, 0xf6, 0xec, 0x2e, 0xab, 0x9d, 0xef, 0xd7, 0xfa, 0x41, 0xcd, 0xf1, 0xdc, |
| 818 | 0xb3, 0xbc, 0xd8, 0x83, 0xf7, 0xff, 0x0d, 0x00, 0x00, 0xff, 0xff, 0xd3, 0x65, 0x3c, 0xff, 0x64, |
| 819 | 0x0b, 0x00, 0x00, |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 820 | } |
| 821 | |
| 822 | // Reference imports to suppress errors if they are not otherwise used. |
| 823 | var _ context.Context |
| 824 | var _ grpc.ClientConn |
| 825 | |
| 826 | // This is a compile-time assertion to ensure that this generated file |
| 827 | // is compatible with the grpc package it is being compiled against. |
| 828 | const _ = grpc.SupportPackageIsVersion4 |
| 829 | |
| 830 | // NativeSoftwareManagementServiceClient is the client API for NativeSoftwareManagementService service. |
| 831 | // |
| 832 | // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| 833 | type NativeSoftwareManagementServiceClient interface { |
| 834 | // Get the software version information of the Active and Standby images |
aghosh | c301dcd | 2020-09-03 16:55:34 +0100 | [diff] [blame] | 835 | GetSoftwareVersion(ctx context.Context, in *HardwareID, opts ...grpc.CallOption) (*GetSoftwareVersionInformationResponse, error) |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 836 | // Downloads and installs the image in the standby partition, returns the status/progress of the Install |
| 837 | DownloadImage(ctx context.Context, in *DownloadImageRequest, opts ...grpc.CallOption) (NativeSoftwareManagementService_DownloadImageClient, error) |
| 838 | // Activates and runs the OLT with the image in the standby partition. If things are fine this image will |
| 839 | // henceforth be marked as the Active Partition. The old working image would remain on the Standby partition. |
| 840 | // Any possibly required (sub-)steps like "commit" are left to the "Device Manager" |
| 841 | ActivateImage(ctx context.Context, in *HardwareID, opts ...grpc.CallOption) (NativeSoftwareManagementService_ActivateImageClient, error) |
| 842 | // Marks the image in the Standby as Active and reboots the device, so that it boots from that image which was in the standby. |
aghosh | c301dcd | 2020-09-03 16:55:34 +0100 | [diff] [blame] | 843 | // This API is to be used if operator wants to go back to the previous software |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 844 | RevertToStandbyImage(ctx context.Context, in *HardwareID, opts ...grpc.CallOption) (NativeSoftwareManagementService_RevertToStandbyImageClient, error) |
amit.ghosh | ed23db0 | 2020-11-18 10:26:36 +0100 | [diff] [blame] | 845 | // This API can be used to let the devices pickup their properitary configuration which they need at startup. |
| 846 | UpdateStartupConfiguration(ctx context.Context, in *ConfigRequest, opts ...grpc.CallOption) (NativeSoftwareManagementService_UpdateStartupConfigurationClient, error) |
amit.ghosh | 2c938b8 | 2021-01-14 11:34:03 +0100 | [diff] [blame] | 847 | // This API can be used to retrieve information about the current startup configuration that a device is using |
| 848 | GetStartupConfigurationInfo(ctx context.Context, in *StartupConfigInfoRequest, opts ...grpc.CallOption) (*StartupConfigInfoResponse, error) |
amit.ghosh | 5a68980 | 2022-09-12 14:26:10 +0200 | [diff] [blame] | 849 | // This API can be used to upload to a remote location, information useful for troubleshooting problems on the hardware |
| 850 | UploadDebugInfo(ctx context.Context, in *UploadDebugInfoRequest, opts ...grpc.CallOption) (NativeSoftwareManagementService_UploadDebugInfoClient, error) |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 851 | } |
| 852 | |
| 853 | type nativeSoftwareManagementServiceClient struct { |
| 854 | cc *grpc.ClientConn |
| 855 | } |
| 856 | |
| 857 | func NewNativeSoftwareManagementServiceClient(cc *grpc.ClientConn) NativeSoftwareManagementServiceClient { |
| 858 | return &nativeSoftwareManagementServiceClient{cc} |
| 859 | } |
| 860 | |
aghosh | c301dcd | 2020-09-03 16:55:34 +0100 | [diff] [blame] | 861 | func (c *nativeSoftwareManagementServiceClient) GetSoftwareVersion(ctx context.Context, in *HardwareID, opts ...grpc.CallOption) (*GetSoftwareVersionInformationResponse, error) { |
| 862 | out := new(GetSoftwareVersionInformationResponse) |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 863 | err := c.cc.Invoke(ctx, "/dmi.NativeSoftwareManagementService/GetSoftwareVersion", in, out, opts...) |
| 864 | if err != nil { |
| 865 | return nil, err |
| 866 | } |
| 867 | return out, nil |
| 868 | } |
| 869 | |
| 870 | func (c *nativeSoftwareManagementServiceClient) DownloadImage(ctx context.Context, in *DownloadImageRequest, opts ...grpc.CallOption) (NativeSoftwareManagementService_DownloadImageClient, error) { |
| 871 | stream, err := c.cc.NewStream(ctx, &_NativeSoftwareManagementService_serviceDesc.Streams[0], "/dmi.NativeSoftwareManagementService/DownloadImage", opts...) |
| 872 | if err != nil { |
| 873 | return nil, err |
| 874 | } |
| 875 | x := &nativeSoftwareManagementServiceDownloadImageClient{stream} |
| 876 | if err := x.ClientStream.SendMsg(in); err != nil { |
| 877 | return nil, err |
| 878 | } |
| 879 | if err := x.ClientStream.CloseSend(); err != nil { |
| 880 | return nil, err |
| 881 | } |
| 882 | return x, nil |
| 883 | } |
| 884 | |
| 885 | type NativeSoftwareManagementService_DownloadImageClient interface { |
| 886 | Recv() (*ImageStatus, error) |
| 887 | grpc.ClientStream |
| 888 | } |
| 889 | |
| 890 | type nativeSoftwareManagementServiceDownloadImageClient struct { |
| 891 | grpc.ClientStream |
| 892 | } |
| 893 | |
| 894 | func (x *nativeSoftwareManagementServiceDownloadImageClient) Recv() (*ImageStatus, error) { |
| 895 | m := new(ImageStatus) |
| 896 | if err := x.ClientStream.RecvMsg(m); err != nil { |
| 897 | return nil, err |
| 898 | } |
| 899 | return m, nil |
| 900 | } |
| 901 | |
| 902 | func (c *nativeSoftwareManagementServiceClient) ActivateImage(ctx context.Context, in *HardwareID, opts ...grpc.CallOption) (NativeSoftwareManagementService_ActivateImageClient, error) { |
| 903 | stream, err := c.cc.NewStream(ctx, &_NativeSoftwareManagementService_serviceDesc.Streams[1], "/dmi.NativeSoftwareManagementService/ActivateImage", opts...) |
| 904 | if err != nil { |
| 905 | return nil, err |
| 906 | } |
| 907 | x := &nativeSoftwareManagementServiceActivateImageClient{stream} |
| 908 | if err := x.ClientStream.SendMsg(in); err != nil { |
| 909 | return nil, err |
| 910 | } |
| 911 | if err := x.ClientStream.CloseSend(); err != nil { |
| 912 | return nil, err |
| 913 | } |
| 914 | return x, nil |
| 915 | } |
| 916 | |
| 917 | type NativeSoftwareManagementService_ActivateImageClient interface { |
| 918 | Recv() (*ImageStatus, error) |
| 919 | grpc.ClientStream |
| 920 | } |
| 921 | |
| 922 | type nativeSoftwareManagementServiceActivateImageClient struct { |
| 923 | grpc.ClientStream |
| 924 | } |
| 925 | |
| 926 | func (x *nativeSoftwareManagementServiceActivateImageClient) Recv() (*ImageStatus, error) { |
| 927 | m := new(ImageStatus) |
| 928 | if err := x.ClientStream.RecvMsg(m); err != nil { |
| 929 | return nil, err |
| 930 | } |
| 931 | return m, nil |
| 932 | } |
| 933 | |
| 934 | func (c *nativeSoftwareManagementServiceClient) RevertToStandbyImage(ctx context.Context, in *HardwareID, opts ...grpc.CallOption) (NativeSoftwareManagementService_RevertToStandbyImageClient, error) { |
| 935 | stream, err := c.cc.NewStream(ctx, &_NativeSoftwareManagementService_serviceDesc.Streams[2], "/dmi.NativeSoftwareManagementService/RevertToStandbyImage", opts...) |
| 936 | if err != nil { |
| 937 | return nil, err |
| 938 | } |
| 939 | x := &nativeSoftwareManagementServiceRevertToStandbyImageClient{stream} |
| 940 | if err := x.ClientStream.SendMsg(in); err != nil { |
| 941 | return nil, err |
| 942 | } |
| 943 | if err := x.ClientStream.CloseSend(); err != nil { |
| 944 | return nil, err |
| 945 | } |
| 946 | return x, nil |
| 947 | } |
| 948 | |
| 949 | type NativeSoftwareManagementService_RevertToStandbyImageClient interface { |
| 950 | Recv() (*ImageStatus, error) |
| 951 | grpc.ClientStream |
| 952 | } |
| 953 | |
| 954 | type nativeSoftwareManagementServiceRevertToStandbyImageClient struct { |
| 955 | grpc.ClientStream |
| 956 | } |
| 957 | |
| 958 | func (x *nativeSoftwareManagementServiceRevertToStandbyImageClient) Recv() (*ImageStatus, error) { |
| 959 | m := new(ImageStatus) |
| 960 | if err := x.ClientStream.RecvMsg(m); err != nil { |
| 961 | return nil, err |
| 962 | } |
| 963 | return m, nil |
| 964 | } |
| 965 | |
amit.ghosh | ed23db0 | 2020-11-18 10:26:36 +0100 | [diff] [blame] | 966 | func (c *nativeSoftwareManagementServiceClient) UpdateStartupConfiguration(ctx context.Context, in *ConfigRequest, opts ...grpc.CallOption) (NativeSoftwareManagementService_UpdateStartupConfigurationClient, error) { |
| 967 | stream, err := c.cc.NewStream(ctx, &_NativeSoftwareManagementService_serviceDesc.Streams[3], "/dmi.NativeSoftwareManagementService/UpdateStartupConfiguration", opts...) |
| 968 | if err != nil { |
| 969 | return nil, err |
| 970 | } |
| 971 | x := &nativeSoftwareManagementServiceUpdateStartupConfigurationClient{stream} |
| 972 | if err := x.ClientStream.SendMsg(in); err != nil { |
| 973 | return nil, err |
| 974 | } |
| 975 | if err := x.ClientStream.CloseSend(); err != nil { |
| 976 | return nil, err |
| 977 | } |
| 978 | return x, nil |
| 979 | } |
| 980 | |
| 981 | type NativeSoftwareManagementService_UpdateStartupConfigurationClient interface { |
| 982 | Recv() (*ConfigResponse, error) |
| 983 | grpc.ClientStream |
| 984 | } |
| 985 | |
| 986 | type nativeSoftwareManagementServiceUpdateStartupConfigurationClient struct { |
| 987 | grpc.ClientStream |
| 988 | } |
| 989 | |
| 990 | func (x *nativeSoftwareManagementServiceUpdateStartupConfigurationClient) Recv() (*ConfigResponse, error) { |
| 991 | m := new(ConfigResponse) |
| 992 | if err := x.ClientStream.RecvMsg(m); err != nil { |
| 993 | return nil, err |
| 994 | } |
| 995 | return m, nil |
| 996 | } |
| 997 | |
amit.ghosh | 2c938b8 | 2021-01-14 11:34:03 +0100 | [diff] [blame] | 998 | func (c *nativeSoftwareManagementServiceClient) GetStartupConfigurationInfo(ctx context.Context, in *StartupConfigInfoRequest, opts ...grpc.CallOption) (*StartupConfigInfoResponse, error) { |
| 999 | out := new(StartupConfigInfoResponse) |
| 1000 | err := c.cc.Invoke(ctx, "/dmi.NativeSoftwareManagementService/GetStartupConfigurationInfo", in, out, opts...) |
| 1001 | if err != nil { |
| 1002 | return nil, err |
| 1003 | } |
| 1004 | return out, nil |
| 1005 | } |
| 1006 | |
amit.ghosh | 5a68980 | 2022-09-12 14:26:10 +0200 | [diff] [blame] | 1007 | func (c *nativeSoftwareManagementServiceClient) UploadDebugInfo(ctx context.Context, in *UploadDebugInfoRequest, opts ...grpc.CallOption) (NativeSoftwareManagementService_UploadDebugInfoClient, error) { |
| 1008 | stream, err := c.cc.NewStream(ctx, &_NativeSoftwareManagementService_serviceDesc.Streams[4], "/dmi.NativeSoftwareManagementService/UploadDebugInfo", opts...) |
| 1009 | if err != nil { |
| 1010 | return nil, err |
| 1011 | } |
| 1012 | x := &nativeSoftwareManagementServiceUploadDebugInfoClient{stream} |
| 1013 | if err := x.ClientStream.SendMsg(in); err != nil { |
| 1014 | return nil, err |
| 1015 | } |
| 1016 | if err := x.ClientStream.CloseSend(); err != nil { |
| 1017 | return nil, err |
| 1018 | } |
| 1019 | return x, nil |
| 1020 | } |
| 1021 | |
| 1022 | type NativeSoftwareManagementService_UploadDebugInfoClient interface { |
| 1023 | Recv() (*UploadDebugInfoStatus, error) |
| 1024 | grpc.ClientStream |
| 1025 | } |
| 1026 | |
| 1027 | type nativeSoftwareManagementServiceUploadDebugInfoClient struct { |
| 1028 | grpc.ClientStream |
| 1029 | } |
| 1030 | |
| 1031 | func (x *nativeSoftwareManagementServiceUploadDebugInfoClient) Recv() (*UploadDebugInfoStatus, error) { |
| 1032 | m := new(UploadDebugInfoStatus) |
| 1033 | if err := x.ClientStream.RecvMsg(m); err != nil { |
| 1034 | return nil, err |
| 1035 | } |
| 1036 | return m, nil |
| 1037 | } |
| 1038 | |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 1039 | // NativeSoftwareManagementServiceServer is the server API for NativeSoftwareManagementService service. |
| 1040 | type NativeSoftwareManagementServiceServer interface { |
| 1041 | // Get the software version information of the Active and Standby images |
aghosh | c301dcd | 2020-09-03 16:55:34 +0100 | [diff] [blame] | 1042 | GetSoftwareVersion(context.Context, *HardwareID) (*GetSoftwareVersionInformationResponse, error) |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 1043 | // Downloads and installs the image in the standby partition, returns the status/progress of the Install |
| 1044 | DownloadImage(*DownloadImageRequest, NativeSoftwareManagementService_DownloadImageServer) error |
| 1045 | // Activates and runs the OLT with the image in the standby partition. If things are fine this image will |
| 1046 | // henceforth be marked as the Active Partition. The old working image would remain on the Standby partition. |
| 1047 | // Any possibly required (sub-)steps like "commit" are left to the "Device Manager" |
| 1048 | ActivateImage(*HardwareID, NativeSoftwareManagementService_ActivateImageServer) error |
| 1049 | // Marks the image in the Standby as Active and reboots the device, so that it boots from that image which was in the standby. |
aghosh | c301dcd | 2020-09-03 16:55:34 +0100 | [diff] [blame] | 1050 | // This API is to be used if operator wants to go back to the previous software |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 1051 | RevertToStandbyImage(*HardwareID, NativeSoftwareManagementService_RevertToStandbyImageServer) error |
amit.ghosh | ed23db0 | 2020-11-18 10:26:36 +0100 | [diff] [blame] | 1052 | // This API can be used to let the devices pickup their properitary configuration which they need at startup. |
| 1053 | UpdateStartupConfiguration(*ConfigRequest, NativeSoftwareManagementService_UpdateStartupConfigurationServer) error |
amit.ghosh | 2c938b8 | 2021-01-14 11:34:03 +0100 | [diff] [blame] | 1054 | // This API can be used to retrieve information about the current startup configuration that a device is using |
| 1055 | GetStartupConfigurationInfo(context.Context, *StartupConfigInfoRequest) (*StartupConfigInfoResponse, error) |
amit.ghosh | 5a68980 | 2022-09-12 14:26:10 +0200 | [diff] [blame] | 1056 | // This API can be used to upload to a remote location, information useful for troubleshooting problems on the hardware |
| 1057 | UploadDebugInfo(*UploadDebugInfoRequest, NativeSoftwareManagementService_UploadDebugInfoServer) error |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 1058 | } |
| 1059 | |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 1060 | // UnimplementedNativeSoftwareManagementServiceServer can be embedded to have forward compatible implementations. |
| 1061 | type UnimplementedNativeSoftwareManagementServiceServer struct { |
| 1062 | } |
| 1063 | |
| 1064 | func (*UnimplementedNativeSoftwareManagementServiceServer) GetSoftwareVersion(ctx context.Context, req *HardwareID) (*GetSoftwareVersionInformationResponse, error) { |
| 1065 | return nil, status.Errorf(codes.Unimplemented, "method GetSoftwareVersion not implemented") |
| 1066 | } |
| 1067 | func (*UnimplementedNativeSoftwareManagementServiceServer) DownloadImage(req *DownloadImageRequest, srv NativeSoftwareManagementService_DownloadImageServer) error { |
| 1068 | return status.Errorf(codes.Unimplemented, "method DownloadImage not implemented") |
| 1069 | } |
| 1070 | func (*UnimplementedNativeSoftwareManagementServiceServer) ActivateImage(req *HardwareID, srv NativeSoftwareManagementService_ActivateImageServer) error { |
| 1071 | return status.Errorf(codes.Unimplemented, "method ActivateImage not implemented") |
| 1072 | } |
| 1073 | func (*UnimplementedNativeSoftwareManagementServiceServer) RevertToStandbyImage(req *HardwareID, srv NativeSoftwareManagementService_RevertToStandbyImageServer) error { |
| 1074 | return status.Errorf(codes.Unimplemented, "method RevertToStandbyImage not implemented") |
| 1075 | } |
| 1076 | func (*UnimplementedNativeSoftwareManagementServiceServer) UpdateStartupConfiguration(req *ConfigRequest, srv NativeSoftwareManagementService_UpdateStartupConfigurationServer) error { |
| 1077 | return status.Errorf(codes.Unimplemented, "method UpdateStartupConfiguration not implemented") |
| 1078 | } |
| 1079 | func (*UnimplementedNativeSoftwareManagementServiceServer) GetStartupConfigurationInfo(ctx context.Context, req *StartupConfigInfoRequest) (*StartupConfigInfoResponse, error) { |
| 1080 | return nil, status.Errorf(codes.Unimplemented, "method GetStartupConfigurationInfo not implemented") |
| 1081 | } |
amit.ghosh | 5a68980 | 2022-09-12 14:26:10 +0200 | [diff] [blame] | 1082 | func (*UnimplementedNativeSoftwareManagementServiceServer) UploadDebugInfo(req *UploadDebugInfoRequest, srv NativeSoftwareManagementService_UploadDebugInfoServer) error { |
| 1083 | return status.Errorf(codes.Unimplemented, "method UploadDebugInfo not implemented") |
| 1084 | } |
Andrea Campanella | c795b7d | 2021-04-14 13:24:44 +0200 | [diff] [blame] | 1085 | |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 1086 | func RegisterNativeSoftwareManagementServiceServer(s *grpc.Server, srv NativeSoftwareManagementServiceServer) { |
| 1087 | s.RegisterService(&_NativeSoftwareManagementService_serviceDesc, srv) |
| 1088 | } |
| 1089 | |
| 1090 | func _NativeSoftwareManagementService_GetSoftwareVersion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1091 | in := new(HardwareID) |
| 1092 | if err := dec(in); err != nil { |
| 1093 | return nil, err |
| 1094 | } |
| 1095 | if interceptor == nil { |
| 1096 | return srv.(NativeSoftwareManagementServiceServer).GetSoftwareVersion(ctx, in) |
| 1097 | } |
| 1098 | info := &grpc.UnaryServerInfo{ |
| 1099 | Server: srv, |
| 1100 | FullMethod: "/dmi.NativeSoftwareManagementService/GetSoftwareVersion", |
| 1101 | } |
| 1102 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1103 | return srv.(NativeSoftwareManagementServiceServer).GetSoftwareVersion(ctx, req.(*HardwareID)) |
| 1104 | } |
| 1105 | return interceptor(ctx, in, info, handler) |
| 1106 | } |
| 1107 | |
| 1108 | func _NativeSoftwareManagementService_DownloadImage_Handler(srv interface{}, stream grpc.ServerStream) error { |
| 1109 | m := new(DownloadImageRequest) |
| 1110 | if err := stream.RecvMsg(m); err != nil { |
| 1111 | return err |
| 1112 | } |
| 1113 | return srv.(NativeSoftwareManagementServiceServer).DownloadImage(m, &nativeSoftwareManagementServiceDownloadImageServer{stream}) |
| 1114 | } |
| 1115 | |
| 1116 | type NativeSoftwareManagementService_DownloadImageServer interface { |
| 1117 | Send(*ImageStatus) error |
| 1118 | grpc.ServerStream |
| 1119 | } |
| 1120 | |
| 1121 | type nativeSoftwareManagementServiceDownloadImageServer struct { |
| 1122 | grpc.ServerStream |
| 1123 | } |
| 1124 | |
| 1125 | func (x *nativeSoftwareManagementServiceDownloadImageServer) Send(m *ImageStatus) error { |
| 1126 | return x.ServerStream.SendMsg(m) |
| 1127 | } |
| 1128 | |
| 1129 | func _NativeSoftwareManagementService_ActivateImage_Handler(srv interface{}, stream grpc.ServerStream) error { |
| 1130 | m := new(HardwareID) |
| 1131 | if err := stream.RecvMsg(m); err != nil { |
| 1132 | return err |
| 1133 | } |
| 1134 | return srv.(NativeSoftwareManagementServiceServer).ActivateImage(m, &nativeSoftwareManagementServiceActivateImageServer{stream}) |
| 1135 | } |
| 1136 | |
| 1137 | type NativeSoftwareManagementService_ActivateImageServer interface { |
| 1138 | Send(*ImageStatus) error |
| 1139 | grpc.ServerStream |
| 1140 | } |
| 1141 | |
| 1142 | type nativeSoftwareManagementServiceActivateImageServer struct { |
| 1143 | grpc.ServerStream |
| 1144 | } |
| 1145 | |
| 1146 | func (x *nativeSoftwareManagementServiceActivateImageServer) Send(m *ImageStatus) error { |
| 1147 | return x.ServerStream.SendMsg(m) |
| 1148 | } |
| 1149 | |
| 1150 | func _NativeSoftwareManagementService_RevertToStandbyImage_Handler(srv interface{}, stream grpc.ServerStream) error { |
| 1151 | m := new(HardwareID) |
| 1152 | if err := stream.RecvMsg(m); err != nil { |
| 1153 | return err |
| 1154 | } |
| 1155 | return srv.(NativeSoftwareManagementServiceServer).RevertToStandbyImage(m, &nativeSoftwareManagementServiceRevertToStandbyImageServer{stream}) |
| 1156 | } |
| 1157 | |
| 1158 | type NativeSoftwareManagementService_RevertToStandbyImageServer interface { |
| 1159 | Send(*ImageStatus) error |
| 1160 | grpc.ServerStream |
| 1161 | } |
| 1162 | |
| 1163 | type nativeSoftwareManagementServiceRevertToStandbyImageServer struct { |
| 1164 | grpc.ServerStream |
| 1165 | } |
| 1166 | |
| 1167 | func (x *nativeSoftwareManagementServiceRevertToStandbyImageServer) Send(m *ImageStatus) error { |
| 1168 | return x.ServerStream.SendMsg(m) |
| 1169 | } |
| 1170 | |
amit.ghosh | ed23db0 | 2020-11-18 10:26:36 +0100 | [diff] [blame] | 1171 | func _NativeSoftwareManagementService_UpdateStartupConfiguration_Handler(srv interface{}, stream grpc.ServerStream) error { |
| 1172 | m := new(ConfigRequest) |
| 1173 | if err := stream.RecvMsg(m); err != nil { |
| 1174 | return err |
| 1175 | } |
| 1176 | return srv.(NativeSoftwareManagementServiceServer).UpdateStartupConfiguration(m, &nativeSoftwareManagementServiceUpdateStartupConfigurationServer{stream}) |
| 1177 | } |
| 1178 | |
| 1179 | type NativeSoftwareManagementService_UpdateStartupConfigurationServer interface { |
| 1180 | Send(*ConfigResponse) error |
| 1181 | grpc.ServerStream |
| 1182 | } |
| 1183 | |
| 1184 | type nativeSoftwareManagementServiceUpdateStartupConfigurationServer struct { |
| 1185 | grpc.ServerStream |
| 1186 | } |
| 1187 | |
| 1188 | func (x *nativeSoftwareManagementServiceUpdateStartupConfigurationServer) Send(m *ConfigResponse) error { |
| 1189 | return x.ServerStream.SendMsg(m) |
| 1190 | } |
| 1191 | |
amit.ghosh | 2c938b8 | 2021-01-14 11:34:03 +0100 | [diff] [blame] | 1192 | func _NativeSoftwareManagementService_GetStartupConfigurationInfo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1193 | in := new(StartupConfigInfoRequest) |
| 1194 | if err := dec(in); err != nil { |
| 1195 | return nil, err |
| 1196 | } |
| 1197 | if interceptor == nil { |
| 1198 | return srv.(NativeSoftwareManagementServiceServer).GetStartupConfigurationInfo(ctx, in) |
| 1199 | } |
| 1200 | info := &grpc.UnaryServerInfo{ |
| 1201 | Server: srv, |
| 1202 | FullMethod: "/dmi.NativeSoftwareManagementService/GetStartupConfigurationInfo", |
| 1203 | } |
| 1204 | handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1205 | return srv.(NativeSoftwareManagementServiceServer).GetStartupConfigurationInfo(ctx, req.(*StartupConfigInfoRequest)) |
| 1206 | } |
| 1207 | return interceptor(ctx, in, info, handler) |
| 1208 | } |
| 1209 | |
amit.ghosh | 5a68980 | 2022-09-12 14:26:10 +0200 | [diff] [blame] | 1210 | func _NativeSoftwareManagementService_UploadDebugInfo_Handler(srv interface{}, stream grpc.ServerStream) error { |
| 1211 | m := new(UploadDebugInfoRequest) |
| 1212 | if err := stream.RecvMsg(m); err != nil { |
| 1213 | return err |
| 1214 | } |
| 1215 | return srv.(NativeSoftwareManagementServiceServer).UploadDebugInfo(m, &nativeSoftwareManagementServiceUploadDebugInfoServer{stream}) |
| 1216 | } |
| 1217 | |
| 1218 | type NativeSoftwareManagementService_UploadDebugInfoServer interface { |
| 1219 | Send(*UploadDebugInfoStatus) error |
| 1220 | grpc.ServerStream |
| 1221 | } |
| 1222 | |
| 1223 | type nativeSoftwareManagementServiceUploadDebugInfoServer struct { |
| 1224 | grpc.ServerStream |
| 1225 | } |
| 1226 | |
| 1227 | func (x *nativeSoftwareManagementServiceUploadDebugInfoServer) Send(m *UploadDebugInfoStatus) error { |
| 1228 | return x.ServerStream.SendMsg(m) |
| 1229 | } |
| 1230 | |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 1231 | var _NativeSoftwareManagementService_serviceDesc = grpc.ServiceDesc{ |
| 1232 | ServiceName: "dmi.NativeSoftwareManagementService", |
| 1233 | HandlerType: (*NativeSoftwareManagementServiceServer)(nil), |
| 1234 | Methods: []grpc.MethodDesc{ |
| 1235 | { |
| 1236 | MethodName: "GetSoftwareVersion", |
| 1237 | Handler: _NativeSoftwareManagementService_GetSoftwareVersion_Handler, |
| 1238 | }, |
amit.ghosh | 2c938b8 | 2021-01-14 11:34:03 +0100 | [diff] [blame] | 1239 | { |
| 1240 | MethodName: "GetStartupConfigurationInfo", |
| 1241 | Handler: _NativeSoftwareManagementService_GetStartupConfigurationInfo_Handler, |
| 1242 | }, |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 1243 | }, |
| 1244 | Streams: []grpc.StreamDesc{ |
| 1245 | { |
| 1246 | StreamName: "DownloadImage", |
| 1247 | Handler: _NativeSoftwareManagementService_DownloadImage_Handler, |
| 1248 | ServerStreams: true, |
| 1249 | }, |
| 1250 | { |
| 1251 | StreamName: "ActivateImage", |
| 1252 | Handler: _NativeSoftwareManagementService_ActivateImage_Handler, |
| 1253 | ServerStreams: true, |
| 1254 | }, |
| 1255 | { |
| 1256 | StreamName: "RevertToStandbyImage", |
| 1257 | Handler: _NativeSoftwareManagementService_RevertToStandbyImage_Handler, |
| 1258 | ServerStreams: true, |
| 1259 | }, |
amit.ghosh | ed23db0 | 2020-11-18 10:26:36 +0100 | [diff] [blame] | 1260 | { |
| 1261 | StreamName: "UpdateStartupConfiguration", |
| 1262 | Handler: _NativeSoftwareManagementService_UpdateStartupConfiguration_Handler, |
| 1263 | ServerStreams: true, |
| 1264 | }, |
amit.ghosh | 5a68980 | 2022-09-12 14:26:10 +0200 | [diff] [blame] | 1265 | { |
| 1266 | StreamName: "UploadDebugInfo", |
| 1267 | Handler: _NativeSoftwareManagementService_UploadDebugInfo_Handler, |
| 1268 | ServerStreams: true, |
| 1269 | }, |
Amit Ghosh | 09f2836 | 2020-06-12 21:52:19 +0100 | [diff] [blame] | 1270 | }, |
| 1271 | Metadata: "dmi/sw_management_service.proto", |
| 1272 | } |