| // Copyright 2023 The Chromium Authors |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // versions: |
| // protoc-gen-go v1.36.9 |
| // protoc v6.32.0 |
| // source: go.chromium.org/infra/cros/recovery/models/recovery_version.proto |
| |
| package models |
| |
| import ( |
| protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| reflect "reflect" |
| sync "sync" |
| unsafe "unsafe" |
| ) |
| |
| const ( |
| // Verify that this generated code is sufficiently up-to-date. |
| _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) |
| // Verify that runtime/protoimpl is sufficiently up-to-date. |
| _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) |
| ) |
| |
| // RecoveryVersion represents stable version information to be used for repair. |
| type RecoveryVersion struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| // The board of the device. |
| // For CrOS it can be represented as build-target. |
| Board string `protobuf:"bytes,1,opt,name=board,proto3" json:"board,omitempty"` |
| // The model of the device. |
| Model string `protobuf:"bytes,2,opt,name=model,proto3" json:"model,omitempty"` |
| // The version of the OS. |
| // e.g. "R80-14444.333.0". |
| OsImage string `protobuf:"bytes,3,opt,name=os_image,json=osImage,proto3" json:"os_image,omitempty"` |
| // The version of the firmware RO. |
| // e.g. "Google_Board.14444.333.0". |
| FwVersion string `protobuf:"bytes,4,opt,name=fw_version,json=fwVersion,proto3" json:"fw_version,omitempty"` |
| // The path of the firmware RO image file. |
| // Examples: |
| // 1) "board-firmware/R80-14444.333.0" |
| // 2) "gs://bucket/board-firmware/R80-14444.333.0/file_name.tar.xz". |
| FwImage string `protobuf:"bytes,5,opt,name=fw_image,json=fwImage,proto3" json:"fw_image,omitempty"` |
| // The path of the OS image file. |
| // Examples: |
| // 1) "board-release/R80-14444.333.0" |
| // 2) "gs://bucket/board-release/R80-14444.333.0/file_name.tar.xz". |
| OsImagePath string `protobuf:"bytes,6,opt,name=os_image_path,json=osImagePath,proto3" json:"os_image_path,omitempty"` |
| // Device type like cros/androidos. |
| DeviceType string `protobuf:"bytes,7,opt,name=device_type,json=deviceType,proto3" json:"device_type,omitempty"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *RecoveryVersion) Reset() { |
| *x = RecoveryVersion{} |
| mi := &file_go_chromium_org_infra_cros_recovery_models_recovery_version_proto_msgTypes[0] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *RecoveryVersion) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*RecoveryVersion) ProtoMessage() {} |
| |
| func (x *RecoveryVersion) ProtoReflect() protoreflect.Message { |
| mi := &file_go_chromium_org_infra_cros_recovery_models_recovery_version_proto_msgTypes[0] |
| if x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use RecoveryVersion.ProtoReflect.Descriptor instead. |
| func (*RecoveryVersion) Descriptor() ([]byte, []int) { |
| return file_go_chromium_org_infra_cros_recovery_models_recovery_version_proto_rawDescGZIP(), []int{0} |
| } |
| |
| func (x *RecoveryVersion) GetBoard() string { |
| if x != nil { |
| return x.Board |
| } |
| return "" |
| } |
| |
| func (x *RecoveryVersion) GetModel() string { |
| if x != nil { |
| return x.Model |
| } |
| return "" |
| } |
| |
| func (x *RecoveryVersion) GetOsImage() string { |
| if x != nil { |
| return x.OsImage |
| } |
| return "" |
| } |
| |
| func (x *RecoveryVersion) GetFwVersion() string { |
| if x != nil { |
| return x.FwVersion |
| } |
| return "" |
| } |
| |
| func (x *RecoveryVersion) GetFwImage() string { |
| if x != nil { |
| return x.FwImage |
| } |
| return "" |
| } |
| |
| func (x *RecoveryVersion) GetOsImagePath() string { |
| if x != nil { |
| return x.OsImagePath |
| } |
| return "" |
| } |
| |
| func (x *RecoveryVersion) GetDeviceType() string { |
| if x != nil { |
| return x.DeviceType |
| } |
| return "" |
| } |
| |
| // RecoveryVersionList represents list with different stable version dependent on device_type. |
| type RecoveryVersionList struct { |
| state protoimpl.MessageState `protogen:"open.v1"` |
| Versions []*RecoveryVersion `protobuf:"bytes,1,rep,name=versions,proto3" json:"versions,omitempty"` |
| unknownFields protoimpl.UnknownFields |
| sizeCache protoimpl.SizeCache |
| } |
| |
| func (x *RecoveryVersionList) Reset() { |
| *x = RecoveryVersionList{} |
| mi := &file_go_chromium_org_infra_cros_recovery_models_recovery_version_proto_msgTypes[1] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| |
| func (x *RecoveryVersionList) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*RecoveryVersionList) ProtoMessage() {} |
| |
| func (x *RecoveryVersionList) ProtoReflect() protoreflect.Message { |
| mi := &file_go_chromium_org_infra_cros_recovery_models_recovery_version_proto_msgTypes[1] |
| if x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use RecoveryVersionList.ProtoReflect.Descriptor instead. |
| func (*RecoveryVersionList) Descriptor() ([]byte, []int) { |
| return file_go_chromium_org_infra_cros_recovery_models_recovery_version_proto_rawDescGZIP(), []int{1} |
| } |
| |
| func (x *RecoveryVersionList) GetVersions() []*RecoveryVersion { |
| if x != nil { |
| return x.Versions |
| } |
| return nil |
| } |
| |
| var File_go_chromium_org_infra_cros_recovery_models_recovery_version_proto protoreflect.FileDescriptor |
| |
| const file_go_chromium_org_infra_cros_recovery_models_recovery_version_proto_rawDesc = "" + |
| "\n" + |
| "Ago.chromium.org/infra/cros/recovery/models/recovery_version.proto\x12\x11chromeos.recovery\"\xd7\x01\n" + |
| "\x0fRecoveryVersion\x12\x14\n" + |
| "\x05board\x18\x01 \x01(\tR\x05board\x12\x14\n" + |
| "\x05model\x18\x02 \x01(\tR\x05model\x12\x19\n" + |
| "\bos_image\x18\x03 \x01(\tR\aosImage\x12\x1d\n" + |
| "\n" + |
| "fw_version\x18\x04 \x01(\tR\tfwVersion\x12\x19\n" + |
| "\bfw_image\x18\x05 \x01(\tR\afwImage\x12\"\n" + |
| "\ros_image_path\x18\x06 \x01(\tR\vosImagePath\x12\x1f\n" + |
| "\vdevice_type\x18\a \x01(\tR\n" + |
| "deviceType\"U\n" + |
| "\x13RecoveryVersionList\x12>\n" + |
| "\bversions\x18\x01 \x03(\v2\".chromeos.recovery.RecoveryVersionR\bversionsB3Z1go.chromium.org/infra/cros/recovery/models;modelsb\x06proto3" |
| |
| var ( |
| file_go_chromium_org_infra_cros_recovery_models_recovery_version_proto_rawDescOnce sync.Once |
| file_go_chromium_org_infra_cros_recovery_models_recovery_version_proto_rawDescData []byte |
| ) |
| |
| func file_go_chromium_org_infra_cros_recovery_models_recovery_version_proto_rawDescGZIP() []byte { |
| file_go_chromium_org_infra_cros_recovery_models_recovery_version_proto_rawDescOnce.Do(func() { |
| file_go_chromium_org_infra_cros_recovery_models_recovery_version_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_go_chromium_org_infra_cros_recovery_models_recovery_version_proto_rawDesc), len(file_go_chromium_org_infra_cros_recovery_models_recovery_version_proto_rawDesc))) |
| }) |
| return file_go_chromium_org_infra_cros_recovery_models_recovery_version_proto_rawDescData |
| } |
| |
| var file_go_chromium_org_infra_cros_recovery_models_recovery_version_proto_msgTypes = make([]protoimpl.MessageInfo, 2) |
| var file_go_chromium_org_infra_cros_recovery_models_recovery_version_proto_goTypes = []any{ |
| (*RecoveryVersion)(nil), // 0: chromeos.recovery.RecoveryVersion |
| (*RecoveryVersionList)(nil), // 1: chromeos.recovery.RecoveryVersionList |
| } |
| var file_go_chromium_org_infra_cros_recovery_models_recovery_version_proto_depIdxs = []int32{ |
| 0, // 0: chromeos.recovery.RecoveryVersionList.versions:type_name -> chromeos.recovery.RecoveryVersion |
| 1, // [1:1] is the sub-list for method output_type |
| 1, // [1:1] is the sub-list for method input_type |
| 1, // [1:1] is the sub-list for extension type_name |
| 1, // [1:1] is the sub-list for extension extendee |
| 0, // [0:1] is the sub-list for field type_name |
| } |
| |
| func init() { file_go_chromium_org_infra_cros_recovery_models_recovery_version_proto_init() } |
| func file_go_chromium_org_infra_cros_recovery_models_recovery_version_proto_init() { |
| if File_go_chromium_org_infra_cros_recovery_models_recovery_version_proto != nil { |
| return |
| } |
| type x struct{} |
| out := protoimpl.TypeBuilder{ |
| File: protoimpl.DescBuilder{ |
| GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| RawDescriptor: unsafe.Slice(unsafe.StringData(file_go_chromium_org_infra_cros_recovery_models_recovery_version_proto_rawDesc), len(file_go_chromium_org_infra_cros_recovery_models_recovery_version_proto_rawDesc)), |
| NumEnums: 0, |
| NumMessages: 2, |
| NumExtensions: 0, |
| NumServices: 0, |
| }, |
| GoTypes: file_go_chromium_org_infra_cros_recovery_models_recovery_version_proto_goTypes, |
| DependencyIndexes: file_go_chromium_org_infra_cros_recovery_models_recovery_version_proto_depIdxs, |
| MessageInfos: file_go_chromium_org_infra_cros_recovery_models_recovery_version_proto_msgTypes, |
| }.Build() |
| File_go_chromium_org_infra_cros_recovery_models_recovery_version_proto = out.File |
| file_go_chromium_org_infra_cros_recovery_models_recovery_version_proto_goTypes = nil |
| file_go_chromium_org_infra_cros_recovery_models_recovery_version_proto_depIdxs = nil |
| } |