| // Copyright 2020 The ChromiumOS 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.27.1 |
| // protoc v3.17.1 |
| // source: chromiumos/config/api/design_config_id.proto |
| |
| package api |
| |
| import ( |
| protoreflect "google.golang.org/protobuf/reflect/protoreflect" |
| protoimpl "google.golang.org/protobuf/runtime/protoimpl" |
| reflect "reflect" |
| sync "sync" |
| ) |
| |
| 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) |
| ) |
| |
| // Uniquely identifies a hardware configuration that will be developed |
| // for a given hardware design project. |
| type DesignConfigId struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` |
| } |
| |
| func (x *DesignConfigId) Reset() { |
| *x = DesignConfigId{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_chromiumos_config_api_design_config_id_proto_msgTypes[0] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *DesignConfigId) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*DesignConfigId) ProtoMessage() {} |
| |
| func (x *DesignConfigId) ProtoReflect() protoreflect.Message { |
| mi := &file_chromiumos_config_api_design_config_id_proto_msgTypes[0] |
| if protoimpl.UnsafeEnabled && x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use DesignConfigId.ProtoReflect.Descriptor instead. |
| func (*DesignConfigId) Descriptor() ([]byte, []int) { |
| return file_chromiumos_config_api_design_config_id_proto_rawDescGZIP(), []int{0} |
| } |
| |
| func (x *DesignConfigId) GetValue() string { |
| if x != nil { |
| return x.Value |
| } |
| return "" |
| } |
| |
| // Config used to scan an actual device to determine a given DesignConfig |
| type DesignConfigId_ScanConfig struct { |
| state protoimpl.MessageState |
| sizeCache protoimpl.SizeCache |
| unknownFields protoimpl.UnknownFields |
| |
| // Types that are assignable to FirmwareNameMatch: |
| // *DesignConfigId_ScanConfig_SmbiosNameMatch |
| // *DesignConfigId_ScanConfig_DeviceTreeCompatibleMatch |
| // *DesignConfigId_ScanConfig_Frid |
| FirmwareNameMatch isDesignConfigId_ScanConfig_FirmwareNameMatch `protobuf_oneof:"firmware_name_match"` |
| // SKU configured during board manufacturing. Should match the value |
| // returned by "cros_config /identity sku-id" (which abstracts how SKU is |
| // encoded on the specific platform). Must be in the range [0, 0x7FFFFFFF]. |
| FirmwareSku uint32 `protobuf:"varint,3,opt,name=firmware_sku,json=firmwareSku,proto3" json:"firmware_sku,omitempty"` |
| } |
| |
| func (x *DesignConfigId_ScanConfig) Reset() { |
| *x = DesignConfigId_ScanConfig{} |
| if protoimpl.UnsafeEnabled { |
| mi := &file_chromiumos_config_api_design_config_id_proto_msgTypes[1] |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| ms.StoreMessageInfo(mi) |
| } |
| } |
| |
| func (x *DesignConfigId_ScanConfig) String() string { |
| return protoimpl.X.MessageStringOf(x) |
| } |
| |
| func (*DesignConfigId_ScanConfig) ProtoMessage() {} |
| |
| func (x *DesignConfigId_ScanConfig) ProtoReflect() protoreflect.Message { |
| mi := &file_chromiumos_config_api_design_config_id_proto_msgTypes[1] |
| if protoimpl.UnsafeEnabled && x != nil { |
| ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) |
| if ms.LoadMessageInfo() == nil { |
| ms.StoreMessageInfo(mi) |
| } |
| return ms |
| } |
| return mi.MessageOf(x) |
| } |
| |
| // Deprecated: Use DesignConfigId_ScanConfig.ProtoReflect.Descriptor instead. |
| func (*DesignConfigId_ScanConfig) Descriptor() ([]byte, []int) { |
| return file_chromiumos_config_api_design_config_id_proto_rawDescGZIP(), []int{0, 0} |
| } |
| |
| func (m *DesignConfigId_ScanConfig) GetFirmwareNameMatch() isDesignConfigId_ScanConfig_FirmwareNameMatch { |
| if m != nil { |
| return m.FirmwareNameMatch |
| } |
| return nil |
| } |
| |
| func (x *DesignConfigId_ScanConfig) GetSmbiosNameMatch() string { |
| if x, ok := x.GetFirmwareNameMatch().(*DesignConfigId_ScanConfig_SmbiosNameMatch); ok { |
| return x.SmbiosNameMatch |
| } |
| return "" |
| } |
| |
| func (x *DesignConfigId_ScanConfig) GetDeviceTreeCompatibleMatch() string { |
| if x, ok := x.GetFirmwareNameMatch().(*DesignConfigId_ScanConfig_DeviceTreeCompatibleMatch); ok { |
| return x.DeviceTreeCompatibleMatch |
| } |
| return "" |
| } |
| |
| func (x *DesignConfigId_ScanConfig) GetFrid() string { |
| if x, ok := x.GetFirmwareNameMatch().(*DesignConfigId_ScanConfig_Frid); ok { |
| return x.Frid |
| } |
| return "" |
| } |
| |
| func (x *DesignConfigId_ScanConfig) GetFirmwareSku() uint32 { |
| if x != nil { |
| return x.FirmwareSku |
| } |
| return 0 |
| } |
| |
| type isDesignConfigId_ScanConfig_FirmwareNameMatch interface { |
| isDesignConfigId_ScanConfig_FirmwareNameMatch() |
| } |
| |
| type DesignConfigId_ScanConfig_SmbiosNameMatch struct { |
| // x86 only. Firmware name built into the firmware and reflected back |
| // out in the SMBIOS tables. |
| // This is deprecated in favor of FRID matching |
| SmbiosNameMatch string `protobuf:"bytes,1,opt,name=smbios_name_match,json=smbiosNameMatch,proto3,oneof"` |
| } |
| |
| type DesignConfigId_ScanConfig_DeviceTreeCompatibleMatch struct { |
| // ARM only. String pattern (partial) that is matched against the |
| // contents of /proc/device-tree/compatible on ARM devices. |
| // This is deprecated in favor of FRID matching |
| DeviceTreeCompatibleMatch string `protobuf:"bytes,2,opt,name=device_tree_compatible_match,json=deviceTreeCompatibleMatch,proto3,oneof"` |
| } |
| |
| type DesignConfigId_ScanConfig_Frid struct { |
| // String pattern (partial) that is matched against the |
| // contents of first available: |
| // /proc/device-tree/firmware/chromeos/readonly-firmware-version |
| // /sys/devices/platform/chromeos_acpi/FRID |
| Frid string `protobuf:"bytes,4,opt,name=frid,proto3,oneof"` |
| } |
| |
| func (*DesignConfigId_ScanConfig_SmbiosNameMatch) isDesignConfigId_ScanConfig_FirmwareNameMatch() {} |
| |
| func (*DesignConfigId_ScanConfig_DeviceTreeCompatibleMatch) isDesignConfigId_ScanConfig_FirmwareNameMatch() { |
| } |
| |
| func (*DesignConfigId_ScanConfig_Frid) isDesignConfigId_ScanConfig_FirmwareNameMatch() {} |
| |
| var File_chromiumos_config_api_design_config_id_proto protoreflect.FileDescriptor |
| |
| var file_chromiumos_config_api_design_config_id_proto_rawDesc = []byte{ |
| 0x0a, 0x2c, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x6e, |
| 0x66, 0x69, 0x67, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x64, 0x65, 0x73, 0x69, 0x67, 0x6e, 0x5f, 0x63, |
| 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x5f, 0x69, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x15, |
| 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x6f, 0x73, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, |
| 0x67, 0x2e, 0x61, 0x70, 0x69, 0x22, 0xf6, 0x01, 0x0a, 0x0e, 0x44, 0x65, 0x73, 0x69, 0x67, 0x6e, |
| 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x49, 0x64, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, |
| 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x1a, 0xcd, |
| 0x01, 0x0a, 0x0a, 0x53, 0x63, 0x61, 0x6e, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x2c, 0x0a, |
| 0x11, 0x73, 0x6d, 0x62, 0x69, 0x6f, 0x73, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x6d, 0x61, 0x74, |
| 0x63, 0x68, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x0f, 0x73, 0x6d, 0x62, 0x69, |
| 0x6f, 0x73, 0x4e, 0x61, 0x6d, 0x65, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x12, 0x41, 0x0a, 0x1c, 0x64, |
| 0x65, 0x76, 0x69, 0x63, 0x65, 0x5f, 0x74, 0x72, 0x65, 0x65, 0x5f, 0x63, 0x6f, 0x6d, 0x70, 0x61, |
| 0x74, 0x69, 0x62, 0x6c, 0x65, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x18, 0x02, 0x20, 0x01, 0x28, |
| 0x09, 0x48, 0x00, 0x52, 0x19, 0x64, 0x65, 0x76, 0x69, 0x63, 0x65, 0x54, 0x72, 0x65, 0x65, 0x43, |
| 0x6f, 0x6d, 0x70, 0x61, 0x74, 0x69, 0x62, 0x6c, 0x65, 0x4d, 0x61, 0x74, 0x63, 0x68, 0x12, 0x14, |
| 0x0a, 0x04, 0x66, 0x72, 0x69, 0x64, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x04, |
| 0x66, 0x72, 0x69, 0x64, 0x12, 0x21, 0x0a, 0x0c, 0x66, 0x69, 0x72, 0x6d, 0x77, 0x61, 0x72, 0x65, |
| 0x5f, 0x73, 0x6b, 0x75, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0d, 0x52, 0x0b, 0x66, 0x69, 0x72, 0x6d, |
| 0x77, 0x61, 0x72, 0x65, 0x53, 0x6b, 0x75, 0x42, 0x15, 0x0a, 0x13, 0x66, 0x69, 0x72, 0x6d, 0x77, |
| 0x61, 0x72, 0x65, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x5f, 0x6d, 0x61, 0x74, 0x63, 0x68, 0x42, 0x2a, |
| 0x5a, 0x28, 0x67, 0x6f, 0x2e, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x2e, 0x6f, 0x72, |
| 0x67, 0x2f, 0x63, 0x68, 0x72, 0x6f, 0x6d, 0x69, 0x75, 0x6d, 0x6f, 0x73, 0x2f, 0x63, 0x6f, 0x6e, |
| 0x66, 0x69, 0x67, 0x2f, 0x67, 0x6f, 0x2f, 0x61, 0x70, 0x69, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, |
| 0x6f, 0x33, |
| } |
| |
| var ( |
| file_chromiumos_config_api_design_config_id_proto_rawDescOnce sync.Once |
| file_chromiumos_config_api_design_config_id_proto_rawDescData = file_chromiumos_config_api_design_config_id_proto_rawDesc |
| ) |
| |
| func file_chromiumos_config_api_design_config_id_proto_rawDescGZIP() []byte { |
| file_chromiumos_config_api_design_config_id_proto_rawDescOnce.Do(func() { |
| file_chromiumos_config_api_design_config_id_proto_rawDescData = protoimpl.X.CompressGZIP(file_chromiumos_config_api_design_config_id_proto_rawDescData) |
| }) |
| return file_chromiumos_config_api_design_config_id_proto_rawDescData |
| } |
| |
| var file_chromiumos_config_api_design_config_id_proto_msgTypes = make([]protoimpl.MessageInfo, 2) |
| var file_chromiumos_config_api_design_config_id_proto_goTypes = []interface{}{ |
| (*DesignConfigId)(nil), // 0: chromiumos.config.api.DesignConfigId |
| (*DesignConfigId_ScanConfig)(nil), // 1: chromiumos.config.api.DesignConfigId.ScanConfig |
| } |
| var file_chromiumos_config_api_design_config_id_proto_depIdxs = []int32{ |
| 0, // [0:0] is the sub-list for method output_type |
| 0, // [0:0] is the sub-list for method input_type |
| 0, // [0:0] is the sub-list for extension type_name |
| 0, // [0:0] is the sub-list for extension extendee |
| 0, // [0:0] is the sub-list for field type_name |
| } |
| |
| func init() { file_chromiumos_config_api_design_config_id_proto_init() } |
| func file_chromiumos_config_api_design_config_id_proto_init() { |
| if File_chromiumos_config_api_design_config_id_proto != nil { |
| return |
| } |
| if !protoimpl.UnsafeEnabled { |
| file_chromiumos_config_api_design_config_id_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*DesignConfigId); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| file_chromiumos_config_api_design_config_id_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { |
| switch v := v.(*DesignConfigId_ScanConfig); i { |
| case 0: |
| return &v.state |
| case 1: |
| return &v.sizeCache |
| case 2: |
| return &v.unknownFields |
| default: |
| return nil |
| } |
| } |
| } |
| file_chromiumos_config_api_design_config_id_proto_msgTypes[1].OneofWrappers = []interface{}{ |
| (*DesignConfigId_ScanConfig_SmbiosNameMatch)(nil), |
| (*DesignConfigId_ScanConfig_DeviceTreeCompatibleMatch)(nil), |
| (*DesignConfigId_ScanConfig_Frid)(nil), |
| } |
| type x struct{} |
| out := protoimpl.TypeBuilder{ |
| File: protoimpl.DescBuilder{ |
| GoPackagePath: reflect.TypeOf(x{}).PkgPath(), |
| RawDescriptor: file_chromiumos_config_api_design_config_id_proto_rawDesc, |
| NumEnums: 0, |
| NumMessages: 2, |
| NumExtensions: 0, |
| NumServices: 0, |
| }, |
| GoTypes: file_chromiumos_config_api_design_config_id_proto_goTypes, |
| DependencyIndexes: file_chromiumos_config_api_design_config_id_proto_depIdxs, |
| MessageInfos: file_chromiumos_config_api_design_config_id_proto_msgTypes, |
| }.Build() |
| File_chromiumos_config_api_design_config_id_proto = out.File |
| file_chromiumos_config_api_design_config_id_proto_rawDesc = nil |
| file_chromiumos_config_api_design_config_id_proto_goTypes = nil |
| file_chromiumos_config_api_design_config_id_proto_depIdxs = nil |
| } |