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_image.proto |
| 3 | |
| 4 | package dmi |
| 5 | |
| 6 | import ( |
| 7 | fmt "fmt" |
| 8 | proto "github.com/golang/protobuf/proto" |
| 9 | math "math" |
| 10 | ) |
| 11 | |
| 12 | // Reference imports to suppress errors if they are not otherwise used. |
| 13 | var _ = proto.Marshal |
| 14 | var _ = fmt.Errorf |
| 15 | var _ = math.Inf |
| 16 | |
| 17 | // This is a compile-time assertion to ensure that this generated file |
| 18 | // is compatible with the proto package it is being compiled against. |
| 19 | // A compilation error at this line likely means your copy of the |
| 20 | // proto package needs to be updated. |
| 21 | const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package |
| 22 | |
| 23 | type ImageStatus_ImageState int32 |
| 24 | |
| 25 | const ( |
| 26 | ImageStatus_UNDEFINED_STATE ImageStatus_ImageState = 0 |
| 27 | ImageStatus_COPYING_IMAGE ImageStatus_ImageState = 1 |
| 28 | ImageStatus_INSTALLING_IMAGE ImageStatus_ImageState = 2 |
| 29 | ImageStatus_COMMITING_IMAGE ImageStatus_ImageState = 3 |
| 30 | ImageStatus_REBOOTING_DEVICE ImageStatus_ImageState = 4 |
| 31 | ImageStatus_UPGRADE_COMPLETE ImageStatus_ImageState = 5 |
| 32 | ImageStatus_UPGRADE_FAILED ImageStatus_ImageState = 6 |
| 33 | ImageStatus_ACTIVATION_COMPLETE ImageStatus_ImageState = 7 |
| 34 | ImageStatus_ACTIVATION_FAILED ImageStatus_ImageState = 8 |
| 35 | ) |
| 36 | |
| 37 | var ImageStatus_ImageState_name = map[int32]string{ |
| 38 | 0: "UNDEFINED_STATE", |
| 39 | 1: "COPYING_IMAGE", |
| 40 | 2: "INSTALLING_IMAGE", |
| 41 | 3: "COMMITING_IMAGE", |
| 42 | 4: "REBOOTING_DEVICE", |
| 43 | 5: "UPGRADE_COMPLETE", |
| 44 | 6: "UPGRADE_FAILED", |
| 45 | 7: "ACTIVATION_COMPLETE", |
| 46 | 8: "ACTIVATION_FAILED", |
| 47 | } |
| 48 | |
| 49 | var ImageStatus_ImageState_value = map[string]int32{ |
| 50 | "UNDEFINED_STATE": 0, |
| 51 | "COPYING_IMAGE": 1, |
| 52 | "INSTALLING_IMAGE": 2, |
| 53 | "COMMITING_IMAGE": 3, |
| 54 | "REBOOTING_DEVICE": 4, |
| 55 | "UPGRADE_COMPLETE": 5, |
| 56 | "UPGRADE_FAILED": 6, |
| 57 | "ACTIVATION_COMPLETE": 7, |
| 58 | "ACTIVATION_FAILED": 8, |
| 59 | } |
| 60 | |
| 61 | func (x ImageStatus_ImageState) String() string { |
| 62 | return proto.EnumName(ImageStatus_ImageState_name, int32(x)) |
| 63 | } |
| 64 | |
| 65 | func (ImageStatus_ImageState) EnumDescriptor() ([]byte, []int) { |
| 66 | return fileDescriptor_3d058607a829baf4, []int{2, 0} |
| 67 | } |
| 68 | |
| 69 | type ImageStatus_Reason int32 |
| 70 | |
| 71 | const ( |
| 72 | ImageStatus_UNDEFINED_READON ImageStatus_Reason = 0 |
| 73 | ImageStatus_ERROR_IN_REQUEST ImageStatus_Reason = 1 |
| 74 | ImageStatus_INTERNAL_ERROR ImageStatus_Reason = 2 |
| 75 | ImageStatus_DEVICE_IN_WRONG_STATE ImageStatus_Reason = 3 |
| 76 | ImageStatus_INVALID_IMAGE ImageStatus_Reason = 4 |
| 77 | ImageStatus_WRONG_IMAGE_CHECKSUM ImageStatus_Reason = 5 |
| 78 | ) |
| 79 | |
| 80 | var ImageStatus_Reason_name = map[int32]string{ |
| 81 | 0: "UNDEFINED_READON", |
| 82 | 1: "ERROR_IN_REQUEST", |
| 83 | 2: "INTERNAL_ERROR", |
| 84 | 3: "DEVICE_IN_WRONG_STATE", |
| 85 | 4: "INVALID_IMAGE", |
| 86 | 5: "WRONG_IMAGE_CHECKSUM", |
| 87 | } |
| 88 | |
| 89 | var ImageStatus_Reason_value = map[string]int32{ |
| 90 | "UNDEFINED_READON": 0, |
| 91 | "ERROR_IN_REQUEST": 1, |
| 92 | "INTERNAL_ERROR": 2, |
| 93 | "DEVICE_IN_WRONG_STATE": 3, |
| 94 | "INVALID_IMAGE": 4, |
| 95 | "WRONG_IMAGE_CHECKSUM": 5, |
| 96 | } |
| 97 | |
| 98 | func (x ImageStatus_Reason) String() string { |
| 99 | return proto.EnumName(ImageStatus_Reason_name, int32(x)) |
| 100 | } |
| 101 | |
| 102 | func (ImageStatus_Reason) EnumDescriptor() ([]byte, []int) { |
| 103 | return fileDescriptor_3d058607a829baf4, []int{2, 1} |
| 104 | } |
| 105 | |
| 106 | type ImageVersion struct { |
| 107 | ImageName string `protobuf:"bytes,1,opt,name=image_name,json=imageName,proto3" json:"image_name,omitempty"` |
| 108 | Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"` |
| 109 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 110 | XXX_unrecognized []byte `json:"-"` |
| 111 | XXX_sizecache int32 `json:"-"` |
| 112 | } |
| 113 | |
| 114 | func (m *ImageVersion) Reset() { *m = ImageVersion{} } |
| 115 | func (m *ImageVersion) String() string { return proto.CompactTextString(m) } |
| 116 | func (*ImageVersion) ProtoMessage() {} |
| 117 | func (*ImageVersion) Descriptor() ([]byte, []int) { |
| 118 | return fileDescriptor_3d058607a829baf4, []int{0} |
| 119 | } |
| 120 | |
| 121 | func (m *ImageVersion) XXX_Unmarshal(b []byte) error { |
| 122 | return xxx_messageInfo_ImageVersion.Unmarshal(m, b) |
| 123 | } |
| 124 | func (m *ImageVersion) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 125 | return xxx_messageInfo_ImageVersion.Marshal(b, m, deterministic) |
| 126 | } |
| 127 | func (m *ImageVersion) XXX_Merge(src proto.Message) { |
| 128 | xxx_messageInfo_ImageVersion.Merge(m, src) |
| 129 | } |
| 130 | func (m *ImageVersion) XXX_Size() int { |
| 131 | return xxx_messageInfo_ImageVersion.Size(m) |
| 132 | } |
| 133 | func (m *ImageVersion) XXX_DiscardUnknown() { |
| 134 | xxx_messageInfo_ImageVersion.DiscardUnknown(m) |
| 135 | } |
| 136 | |
| 137 | var xxx_messageInfo_ImageVersion proto.InternalMessageInfo |
| 138 | |
| 139 | func (m *ImageVersion) GetImageName() string { |
| 140 | if m != nil { |
| 141 | return m.ImageName |
| 142 | } |
| 143 | return "" |
| 144 | } |
| 145 | |
| 146 | func (m *ImageVersion) GetVersion() string { |
| 147 | if m != nil { |
| 148 | return m.Version |
| 149 | } |
| 150 | return "" |
| 151 | } |
| 152 | |
| 153 | type ImageInformation struct { |
| 154 | Image *ImageVersion `protobuf:"bytes,1,opt,name=image,proto3" json:"image,omitempty"` |
| 155 | // Script used by the device specific managers to install the image. |
| 156 | // Script must be included in the object downloaded from the image_url |
| 157 | ImageInstallScript string `protobuf:"bytes,2,opt,name=image_install_script,json=imageInstallScript,proto3" json:"image_install_script,omitempty"` |
| 158 | // Location of the image and installation script, authentication (user/pass) if any should be in the url string |
| 159 | ImageUrl string `protobuf:"bytes,3,opt,name=image_url,json=imageUrl,proto3" json:"image_url,omitempty"` |
| 160 | // SHA-256 sum of the image (sha256sum on Linux) |
| 161 | Sha256Sum string `protobuf:"bytes,5,opt,name=sha256sum,proto3" json:"sha256sum,omitempty"` |
| 162 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 163 | XXX_unrecognized []byte `json:"-"` |
| 164 | XXX_sizecache int32 `json:"-"` |
| 165 | } |
| 166 | |
| 167 | func (m *ImageInformation) Reset() { *m = ImageInformation{} } |
| 168 | func (m *ImageInformation) String() string { return proto.CompactTextString(m) } |
| 169 | func (*ImageInformation) ProtoMessage() {} |
| 170 | func (*ImageInformation) Descriptor() ([]byte, []int) { |
| 171 | return fileDescriptor_3d058607a829baf4, []int{1} |
| 172 | } |
| 173 | |
| 174 | func (m *ImageInformation) XXX_Unmarshal(b []byte) error { |
| 175 | return xxx_messageInfo_ImageInformation.Unmarshal(m, b) |
| 176 | } |
| 177 | func (m *ImageInformation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 178 | return xxx_messageInfo_ImageInformation.Marshal(b, m, deterministic) |
| 179 | } |
| 180 | func (m *ImageInformation) XXX_Merge(src proto.Message) { |
| 181 | xxx_messageInfo_ImageInformation.Merge(m, src) |
| 182 | } |
| 183 | func (m *ImageInformation) XXX_Size() int { |
| 184 | return xxx_messageInfo_ImageInformation.Size(m) |
| 185 | } |
| 186 | func (m *ImageInformation) XXX_DiscardUnknown() { |
| 187 | xxx_messageInfo_ImageInformation.DiscardUnknown(m) |
| 188 | } |
| 189 | |
| 190 | var xxx_messageInfo_ImageInformation proto.InternalMessageInfo |
| 191 | |
| 192 | func (m *ImageInformation) GetImage() *ImageVersion { |
| 193 | if m != nil { |
| 194 | return m.Image |
| 195 | } |
| 196 | return nil |
| 197 | } |
| 198 | |
| 199 | func (m *ImageInformation) GetImageInstallScript() string { |
| 200 | if m != nil { |
| 201 | return m.ImageInstallScript |
| 202 | } |
| 203 | return "" |
| 204 | } |
| 205 | |
| 206 | func (m *ImageInformation) GetImageUrl() string { |
| 207 | if m != nil { |
| 208 | return m.ImageUrl |
| 209 | } |
| 210 | return "" |
| 211 | } |
| 212 | |
| 213 | func (m *ImageInformation) GetSha256Sum() string { |
| 214 | if m != nil { |
| 215 | return m.Sha256Sum |
| 216 | } |
| 217 | return "" |
| 218 | } |
| 219 | |
| 220 | type ImageStatus struct { |
| 221 | Status Status `protobuf:"varint,1,opt,name=status,proto3,enum=dmi.Status" json:"status,omitempty"` |
| 222 | Reason ImageStatus_Reason `protobuf:"varint,2,opt,name=reason,proto3,enum=dmi.ImageStatus_Reason" json:"reason,omitempty"` |
| 223 | State ImageStatus_ImageState `protobuf:"varint,3,opt,name=state,proto3,enum=dmi.ImageStatus_ImageState" json:"state,omitempty"` |
| 224 | // description contains more information about the current state of the procedure and is device dependant |
| 225 | Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` |
| 226 | XXX_NoUnkeyedLiteral struct{} `json:"-"` |
| 227 | XXX_unrecognized []byte `json:"-"` |
| 228 | XXX_sizecache int32 `json:"-"` |
| 229 | } |
| 230 | |
| 231 | func (m *ImageStatus) Reset() { *m = ImageStatus{} } |
| 232 | func (m *ImageStatus) String() string { return proto.CompactTextString(m) } |
| 233 | func (*ImageStatus) ProtoMessage() {} |
| 234 | func (*ImageStatus) Descriptor() ([]byte, []int) { |
| 235 | return fileDescriptor_3d058607a829baf4, []int{2} |
| 236 | } |
| 237 | |
| 238 | func (m *ImageStatus) XXX_Unmarshal(b []byte) error { |
| 239 | return xxx_messageInfo_ImageStatus.Unmarshal(m, b) |
| 240 | } |
| 241 | func (m *ImageStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
| 242 | return xxx_messageInfo_ImageStatus.Marshal(b, m, deterministic) |
| 243 | } |
| 244 | func (m *ImageStatus) XXX_Merge(src proto.Message) { |
| 245 | xxx_messageInfo_ImageStatus.Merge(m, src) |
| 246 | } |
| 247 | func (m *ImageStatus) XXX_Size() int { |
| 248 | return xxx_messageInfo_ImageStatus.Size(m) |
| 249 | } |
| 250 | func (m *ImageStatus) XXX_DiscardUnknown() { |
| 251 | xxx_messageInfo_ImageStatus.DiscardUnknown(m) |
| 252 | } |
| 253 | |
| 254 | var xxx_messageInfo_ImageStatus proto.InternalMessageInfo |
| 255 | |
| 256 | func (m *ImageStatus) GetStatus() Status { |
| 257 | if m != nil { |
| 258 | return m.Status |
| 259 | } |
| 260 | return Status_UNDEFINED_STATUS |
| 261 | } |
| 262 | |
| 263 | func (m *ImageStatus) GetReason() ImageStatus_Reason { |
| 264 | if m != nil { |
| 265 | return m.Reason |
| 266 | } |
| 267 | return ImageStatus_UNDEFINED_READON |
| 268 | } |
| 269 | |
| 270 | func (m *ImageStatus) GetState() ImageStatus_ImageState { |
| 271 | if m != nil { |
| 272 | return m.State |
| 273 | } |
| 274 | return ImageStatus_UNDEFINED_STATE |
| 275 | } |
| 276 | |
| 277 | func (m *ImageStatus) GetDescription() string { |
| 278 | if m != nil { |
| 279 | return m.Description |
| 280 | } |
| 281 | return "" |
| 282 | } |
| 283 | |
| 284 | func init() { |
| 285 | proto.RegisterEnum("dmi.ImageStatus_ImageState", ImageStatus_ImageState_name, ImageStatus_ImageState_value) |
| 286 | proto.RegisterEnum("dmi.ImageStatus_Reason", ImageStatus_Reason_name, ImageStatus_Reason_value) |
| 287 | proto.RegisterType((*ImageVersion)(nil), "dmi.ImageVersion") |
| 288 | proto.RegisterType((*ImageInformation)(nil), "dmi.ImageInformation") |
| 289 | proto.RegisterType((*ImageStatus)(nil), "dmi.ImageStatus") |
| 290 | } |
| 291 | |
| 292 | func init() { proto.RegisterFile("dmi/sw_image.proto", fileDescriptor_3d058607a829baf4) } |
| 293 | |
| 294 | var fileDescriptor_3d058607a829baf4 = []byte{ |
| 295 | // 572 bytes of a gzipped FileDescriptorProto |
| 296 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x93, 0xcf, 0x6e, 0xd3, 0x4c, |
| 297 | 0x14, 0xc5, 0xeb, 0xe6, 0x4f, 0xdb, 0x9b, 0xef, 0x0b, 0xce, 0xb4, 0x55, 0x03, 0x05, 0xa9, 0x0a, |
| 298 | 0x0b, 0xd8, 0x34, 0x86, 0x54, 0x20, 0x21, 0x56, 0xae, 0x3d, 0x0d, 0x23, 0x92, 0x71, 0x99, 0x38, |
| 299 | 0x41, 0xb0, 0xb1, 0x5c, 0x7b, 0x9a, 0x8e, 0x94, 0xb1, 0x2b, 0xdb, 0x29, 0xaf, 0xc1, 0x0b, 0xb0, |
| 300 | 0xe7, 0x6d, 0x78, 0x25, 0x34, 0x33, 0x6e, 0x53, 0x89, 0xdd, 0xf8, 0x9c, 0xdf, 0xbd, 0xf7, 0xdc, |
| 301 | 0x2b, 0x19, 0x50, 0x2a, 0x85, 0x53, 0xfe, 0x88, 0x84, 0x8c, 0x97, 0x7c, 0x78, 0x5b, 0xe4, 0x55, |
| 302 | 0x8e, 0x1a, 0xa9, 0x14, 0xcf, 0x7a, 0xca, 0x48, 0x72, 0x29, 0xf3, 0xac, 0x34, 0xfa, 0x60, 0x0c, |
| 303 | 0xff, 0x11, 0x85, 0x2d, 0x78, 0x51, 0x8a, 0x3c, 0x43, 0x2f, 0x00, 0x74, 0x59, 0x94, 0xc5, 0x92, |
| 304 | 0xf7, 0xad, 0x13, 0xeb, 0xf5, 0x1e, 0xdb, 0xd3, 0x0a, 0x8d, 0x25, 0x47, 0x7d, 0xd8, 0xb9, 0x33, |
| 305 | 0x64, 0x7f, 0x5b, 0x7b, 0xf7, 0x9f, 0x83, 0xdf, 0x16, 0xd8, 0xba, 0x13, 0xc9, 0xae, 0xf3, 0x42, |
| 306 | 0xc6, 0x95, 0xea, 0xf6, 0x0a, 0x5a, 0xba, 0x56, 0x37, 0xea, 0x8c, 0x7a, 0xc3, 0x54, 0x8a, 0xe1, |
| 307 | 0xe3, 0x79, 0xcc, 0xf8, 0xe8, 0x0d, 0x1c, 0x98, 0xb1, 0x22, 0x2b, 0xab, 0x78, 0xb5, 0x8a, 0xca, |
| 308 | 0xa4, 0x10, 0xb7, 0x55, 0x3d, 0x04, 0x09, 0xd3, 0x58, 0x5b, 0x33, 0xed, 0xa0, 0x63, 0x30, 0xb1, |
| 309 | 0xa2, 0x75, 0xb1, 0xea, 0x37, 0x34, 0xb6, 0xab, 0x85, 0x79, 0xb1, 0x42, 0xcf, 0x61, 0xaf, 0xbc, |
| 310 | 0x89, 0x47, 0xef, 0xde, 0x97, 0x6b, 0xd9, 0x6f, 0x99, 0x25, 0x1e, 0x84, 0xc1, 0xaf, 0x26, 0x74, |
| 311 | 0x74, 0x88, 0x59, 0x15, 0x57, 0xeb, 0x12, 0xbd, 0x84, 0x76, 0xa9, 0x5f, 0x3a, 0x66, 0x77, 0xd4, |
| 312 | 0xd1, 0x31, 0x8d, 0xc9, 0x6a, 0x0b, 0x39, 0xd0, 0x2e, 0x78, 0x5c, 0xd6, 0x8b, 0x77, 0x47, 0x47, |
| 313 | 0x9b, 0x5d, 0x0c, 0x39, 0x64, 0xda, 0x66, 0x35, 0x86, 0xde, 0x42, 0x4b, 0x95, 0x72, 0x1d, 0xae, |
| 314 | 0x3b, 0x3a, 0xfe, 0x87, 0x7f, 0x78, 0x73, 0x66, 0x48, 0x74, 0x02, 0x9d, 0x94, 0x9b, 0xcd, 0xd5, |
| 315 | 0x85, 0x9b, 0x3a, 0xf8, 0x63, 0x69, 0xf0, 0xc7, 0x02, 0xd8, 0xd4, 0xa1, 0x7d, 0x78, 0x32, 0xa7, |
| 316 | 0x3e, 0xbe, 0x20, 0x14, 0xfb, 0xd1, 0x2c, 0x74, 0x43, 0x6c, 0x6f, 0xa1, 0x1e, 0xfc, 0xef, 0x05, |
| 317 | 0x97, 0xdf, 0x08, 0x1d, 0x47, 0x64, 0xea, 0x8e, 0xb1, 0x6d, 0xa1, 0x03, 0xb0, 0x09, 0x9d, 0x85, |
| 318 | 0xee, 0x64, 0xb2, 0x51, 0xb7, 0x55, 0xb5, 0x17, 0x4c, 0xa7, 0x24, 0xdc, 0x88, 0x0d, 0x85, 0x32, |
| 319 | 0x7c, 0x1e, 0x04, 0x5a, 0xf4, 0xf1, 0x82, 0x78, 0xd8, 0x6e, 0x2a, 0x75, 0x7e, 0x39, 0x66, 0xae, |
| 320 | 0x8f, 0x23, 0x2f, 0x98, 0x5e, 0x4e, 0x70, 0x88, 0xed, 0x16, 0x42, 0xd0, 0xbd, 0x57, 0x2f, 0x5c, |
| 321 | 0x32, 0xc1, 0xbe, 0xdd, 0x46, 0x47, 0xb0, 0xef, 0x7a, 0x21, 0x59, 0xb8, 0x21, 0x09, 0xe8, 0x06, |
| 322 | 0xde, 0x41, 0x87, 0xd0, 0x7b, 0x64, 0xd4, 0xfc, 0xee, 0xe0, 0xa7, 0x05, 0x6d, 0x73, 0x39, 0x3d, |
| 323 | 0xe4, 0x61, 0x1b, 0x86, 0x5d, 0x3f, 0xa0, 0xf6, 0x96, 0x52, 0x31, 0x63, 0x01, 0x8b, 0x08, 0x8d, |
| 324 | 0x18, 0xfe, 0x32, 0xc7, 0xb3, 0xd0, 0xb6, 0xd4, 0x68, 0x42, 0x43, 0xcc, 0xa8, 0x3b, 0x89, 0xb4, |
| 325 | 0x6d, 0x6f, 0xa3, 0xa7, 0x70, 0x68, 0x02, 0x2b, 0xf4, 0x2b, 0x0b, 0xe8, 0xb8, 0xbe, 0x49, 0x43, |
| 326 | 0xdd, 0x84, 0xd0, 0x85, 0x3b, 0x21, 0x7e, 0xbd, 0x68, 0x13, 0xf5, 0xe1, 0xc0, 0x30, 0x5a, 0x88, |
| 327 | 0xbc, 0x4f, 0xd8, 0xfb, 0x3c, 0x9b, 0x4f, 0xed, 0xd6, 0xf9, 0xc7, 0xef, 0x1f, 0x96, 0xa2, 0xba, |
| 328 | 0x59, 0x5f, 0x0d, 0x93, 0x5c, 0x3a, 0xf9, 0x2d, 0xcf, 0x92, 0xbc, 0x48, 0x9d, 0x94, 0xdf, 0x89, |
| 329 | 0x84, 0x9f, 0xca, 0x38, 0x8b, 0x97, 0x5c, 0xf2, 0xac, 0x3a, 0x15, 0x59, 0xc5, 0x8b, 0xeb, 0x38, |
| 330 | 0xe1, 0xce, 0xdd, 0x99, 0xb3, 0xcc, 0x9d, 0x54, 0x8a, 0xab, 0xb6, 0xfe, 0xaf, 0xce, 0xfe, 0x06, |
| 331 | 0x00, 0x00, 0xff, 0xff, 0xbe, 0x44, 0x10, 0x9d, 0x85, 0x03, 0x00, 0x00, |
| 332 | } |