blob: d4bf59e3b02ea0edff25672bdaeb6aa8f6399c36 [file] [log] [blame]
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: chromiumos/config/api/software/chromeos_config/identity_scan_config.proto
package chromeos_config
import (
fmt "fmt"
proto ""
math "math"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
// Defines how devices are probed at runtime to dynamically
// determine the correct configuration payload.
type IdentityScanConfig struct {
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
func (m *IdentityScanConfig) Reset() { *m = IdentityScanConfig{} }
func (m *IdentityScanConfig) String() string { return proto.CompactTextString(m) }
func (*IdentityScanConfig) ProtoMessage() {}
func (*IdentityScanConfig) Descriptor() ([]byte, []int) {
return fileDescriptor_e15c215e81570d23, []int{0}
func (m *IdentityScanConfig) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_IdentityScanConfig.Unmarshal(m, b)
func (m *IdentityScanConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_IdentityScanConfig.Marshal(b, m, deterministic)
func (m *IdentityScanConfig) XXX_Merge(src proto.Message) {
xxx_messageInfo_IdentityScanConfig.Merge(m, src)
func (m *IdentityScanConfig) XXX_Size() int {
return xxx_messageInfo_IdentityScanConfig.Size(m)
func (m *IdentityScanConfig) XXX_DiscardUnknown() {
var xxx_messageInfo_IdentityScanConfig proto.InternalMessageInfo
// Scan config to identify a unique DesignConfigId, which determines
// which SoftwareConfig will be used.
type IdentityScanConfig_DesignConfigId struct {
// Types that are valid to be assigned to FirmwareNameMatch:
// *IdentityScanConfig_DesignConfigId_SmbiosNameMatch
// *IdentityScanConfig_DesignConfigId_DeviceTreeCompatibleMatch
FirmwareNameMatch isIdentityScanConfig_DesignConfigId_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"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
func (m *IdentityScanConfig_DesignConfigId) Reset() { *m = IdentityScanConfig_DesignConfigId{} }
func (m *IdentityScanConfig_DesignConfigId) String() string { return proto.CompactTextString(m) }
func (*IdentityScanConfig_DesignConfigId) ProtoMessage() {}
func (*IdentityScanConfig_DesignConfigId) Descriptor() ([]byte, []int) {
return fileDescriptor_e15c215e81570d23, []int{0, 0}
func (m *IdentityScanConfig_DesignConfigId) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_IdentityScanConfig_DesignConfigId.Unmarshal(m, b)
func (m *IdentityScanConfig_DesignConfigId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_IdentityScanConfig_DesignConfigId.Marshal(b, m, deterministic)
func (m *IdentityScanConfig_DesignConfigId) XXX_Merge(src proto.Message) {
xxx_messageInfo_IdentityScanConfig_DesignConfigId.Merge(m, src)
func (m *IdentityScanConfig_DesignConfigId) XXX_Size() int {
return xxx_messageInfo_IdentityScanConfig_DesignConfigId.Size(m)
func (m *IdentityScanConfig_DesignConfigId) XXX_DiscardUnknown() {
var xxx_messageInfo_IdentityScanConfig_DesignConfigId proto.InternalMessageInfo
type isIdentityScanConfig_DesignConfigId_FirmwareNameMatch interface {
type IdentityScanConfig_DesignConfigId_SmbiosNameMatch struct {
SmbiosNameMatch string `protobuf:"bytes,1,opt,name=smbios_name_match,json=smbiosNameMatch,proto3,oneof"`
type IdentityScanConfig_DesignConfigId_DeviceTreeCompatibleMatch struct {
DeviceTreeCompatibleMatch string `protobuf:"bytes,2,opt,name=device_tree_compatible_match,json=deviceTreeCompatibleMatch,proto3,oneof"`
func (*IdentityScanConfig_DesignConfigId_SmbiosNameMatch) isIdentityScanConfig_DesignConfigId_FirmwareNameMatch() {
func (*IdentityScanConfig_DesignConfigId_DeviceTreeCompatibleMatch) isIdentityScanConfig_DesignConfigId_FirmwareNameMatch() {
func (m *IdentityScanConfig_DesignConfigId) GetFirmwareNameMatch() isIdentityScanConfig_DesignConfigId_FirmwareNameMatch {
if m != nil {
return m.FirmwareNameMatch
return nil
func (m *IdentityScanConfig_DesignConfigId) GetSmbiosNameMatch() string {
if x, ok := m.GetFirmwareNameMatch().(*IdentityScanConfig_DesignConfigId_SmbiosNameMatch); ok {
return x.SmbiosNameMatch
return ""
func (m *IdentityScanConfig_DesignConfigId) GetDeviceTreeCompatibleMatch() string {
if x, ok := m.GetFirmwareNameMatch().(*IdentityScanConfig_DesignConfigId_DeviceTreeCompatibleMatch); ok {
return x.DeviceTreeCompatibleMatch
return ""
func (m *IdentityScanConfig_DesignConfigId) GetFirmwareSku() uint32 {
if m != nil {
return m.FirmwareSku
return 0
// XXX_OneofWrappers is for the internal use of the proto package.
func (*IdentityScanConfig_DesignConfigId) XXX_OneofWrappers() []interface{} {
return []interface{}{
// Scanning config based on: config/api/deivce_brand_id.proto
type IdentityScanConfig_BrandId struct {
// 'whitelabel_tag' value set in the VPD.
// See
WhitelabelTag string `protobuf:"bytes,1,opt,name=whitelabel_tag,json=whitelabelTag,proto3" json:"whitelabel_tag,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
func (m *IdentityScanConfig_BrandId) Reset() { *m = IdentityScanConfig_BrandId{} }
func (m *IdentityScanConfig_BrandId) String() string { return proto.CompactTextString(m) }
func (*IdentityScanConfig_BrandId) ProtoMessage() {}
func (*IdentityScanConfig_BrandId) Descriptor() ([]byte, []int) {
return fileDescriptor_e15c215e81570d23, []int{0, 1}
func (m *IdentityScanConfig_BrandId) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_IdentityScanConfig_BrandId.Unmarshal(m, b)
func (m *IdentityScanConfig_BrandId) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_IdentityScanConfig_BrandId.Marshal(b, m, deterministic)
func (m *IdentityScanConfig_BrandId) XXX_Merge(src proto.Message) {
xxx_messageInfo_IdentityScanConfig_BrandId.Merge(m, src)
func (m *IdentityScanConfig_BrandId) XXX_Size() int {
return xxx_messageInfo_IdentityScanConfig_BrandId.Size(m)
func (m *IdentityScanConfig_BrandId) XXX_DiscardUnknown() {
var xxx_messageInfo_IdentityScanConfig_BrandId proto.InternalMessageInfo
func (m *IdentityScanConfig_BrandId) GetWhitelabelTag() string {
if m != nil {
return m.WhitelabelTag
return ""
func init() {
proto.RegisterType((*IdentityScanConfig)(nil), "")
proto.RegisterType((*IdentityScanConfig_DesignConfigId)(nil), "")
proto.RegisterType((*IdentityScanConfig_BrandId)(nil), "")
func init() {
proto.RegisterFile("chromiumos/config/api/software/chromeos_config/identity_scan_config.proto", fileDescriptor_e15c215e81570d23)
var fileDescriptor_e15c215e81570d23 = []byte{
// 296 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x7c, 0x91, 0x41, 0x4b, 0xc3, 0x40,
0x10, 0x85, 0x4d, 0x05, 0xc5, 0xd5, 0x56, 0x8c, 0x08, 0xb5, 0x78, 0xa8, 0x82, 0xd0, 0x83, 0x24,
0x82, 0xbf, 0xa0, 0xad, 0x07, 0x73, 0xd0, 0x43, 0xdb, 0x93, 0x97, 0x65, 0xb2, 0x99, 0x6e, 0x87,
0x76, 0x33, 0x61, 0x77, 0x6b, 0xf1, 0xee, 0xbf, 0xf2, 0xcf, 0x49, 0x9b, 0x6d, 0x0b, 0x0a, 0x5e,
0xdf, 0x7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