blob: a63b4ca5e211e2dbaca4b4f183ed33e9030001d0 [file] [log] [blame]
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: chromiumos/config/api/program.proto
package api
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
public_replication "go.chromium.org/chromiumos/config/go/public_replication"
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 space in a firmware configuration field is allocated.
//
// This is used for both FW_CONFIG and Second Source Factory Cache (SSFC) fields
//
// Every FirmwareConfiguration must specify a mask that aligns with a segment.
// No segments for a program within a field can overlap.
type FirmwareConfigurationSegment struct {
// Human-readable name describing the segment, e.g. "Daughter board".
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The mask of valid bits that could be used by this type of Topology.
Mask uint32 `protobuf:"varint,2,opt,name=mask,proto3" json:"mask,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *FirmwareConfigurationSegment) Reset() { *m = FirmwareConfigurationSegment{} }
func (m *FirmwareConfigurationSegment) String() string { return proto.CompactTextString(m) }
func (*FirmwareConfigurationSegment) ProtoMessage() {}
func (*FirmwareConfigurationSegment) Descriptor() ([]byte, []int) {
return fileDescriptor_dce3b73f3bd54421, []int{0}
}
func (m *FirmwareConfigurationSegment) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_FirmwareConfigurationSegment.Unmarshal(m, b)
}
func (m *FirmwareConfigurationSegment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_FirmwareConfigurationSegment.Marshal(b, m, deterministic)
}
func (m *FirmwareConfigurationSegment) XXX_Merge(src proto.Message) {
xxx_messageInfo_FirmwareConfigurationSegment.Merge(m, src)
}
func (m *FirmwareConfigurationSegment) XXX_Size() int {
return xxx_messageInfo_FirmwareConfigurationSegment.Size(m)
}
func (m *FirmwareConfigurationSegment) XXX_DiscardUnknown() {
xxx_messageInfo_FirmwareConfigurationSegment.DiscardUnknown(m)
}
var xxx_messageInfo_FirmwareConfigurationSegment proto.InternalMessageInfo
func (m *FirmwareConfigurationSegment) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *FirmwareConfigurationSegment) GetMask() uint32 {
if m != nil {
return m.Mask
}
return 0
}
// A segment of DesignConfigIds allocated to a given Design.
//
// To ensure that DesignConfigIds are unique within a Program, a segment can be
// allocated to each Design. For example, Design "A" gets ids [11, 20], Design
// "B" gets ids [21, 30], etc.
//
// The "unprovisioned" id 0x7FFFFFFF is exempt from this check.
//
// No segments in a program can overlap.
type DesignConfigIdSegment struct {
// Design the segment applies to.
DesignId *DesignId `protobuf:"bytes,1,opt,name=design_id,json=designId,proto3" json:"design_id,omitempty"`
// Min and max DesignConfigIds the Design can use. Both are inclusive.
MinId uint32 `protobuf:"varint,2,opt,name=min_id,json=minId,proto3" json:"min_id,omitempty"`
MaxId uint32 `protobuf:"varint,3,opt,name=max_id,json=maxId,proto3" json:"max_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DesignConfigIdSegment) Reset() { *m = DesignConfigIdSegment{} }
func (m *DesignConfigIdSegment) String() string { return proto.CompactTextString(m) }
func (*DesignConfigIdSegment) ProtoMessage() {}
func (*DesignConfigIdSegment) Descriptor() ([]byte, []int) {
return fileDescriptor_dce3b73f3bd54421, []int{1}
}
func (m *DesignConfigIdSegment) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DesignConfigIdSegment.Unmarshal(m, b)
}
func (m *DesignConfigIdSegment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DesignConfigIdSegment.Marshal(b, m, deterministic)
}
func (m *DesignConfigIdSegment) XXX_Merge(src proto.Message) {
xxx_messageInfo_DesignConfigIdSegment.Merge(m, src)
}
func (m *DesignConfigIdSegment) XXX_Size() int {
return xxx_messageInfo_DesignConfigIdSegment.Size(m)
}
func (m *DesignConfigIdSegment) XXX_DiscardUnknown() {
xxx_messageInfo_DesignConfigIdSegment.DiscardUnknown(m)
}
var xxx_messageInfo_DesignConfigIdSegment proto.InternalMessageInfo
func (m *DesignConfigIdSegment) GetDesignId() *DesignId {
if m != nil {
return m.DesignId
}
return nil
}
func (m *DesignConfigIdSegment) GetMinId() uint32 {
if m != nil {
return m.MinId
}
return 0
}
func (m *DesignConfigIdSegment) GetMaxId() uint32 {
if m != nil {
return m.MaxId
}
return 0
}
// Defines the signing key that will be used for a given device brand.
type DeviceSignerConfig struct {
// Associates a key to either a specific brand or design.
// Per brand association supports Whitelabel devices with separate brands.
//
// Types that are valid to be assigned to Identifier:
// *DeviceSignerConfig_BrandId
// *DeviceSignerConfig_DesignId
Identifier isDeviceSignerConfig_Identifier `protobuf_oneof:"identifier"`
KeyId string `protobuf:"bytes,2,opt,name=key_id,json=keyId,proto3" json:"key_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeviceSignerConfig) Reset() { *m = DeviceSignerConfig{} }
func (m *DeviceSignerConfig) String() string { return proto.CompactTextString(m) }
func (*DeviceSignerConfig) ProtoMessage() {}
func (*DeviceSignerConfig) Descriptor() ([]byte, []int) {
return fileDescriptor_dce3b73f3bd54421, []int{2}
}
func (m *DeviceSignerConfig) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeviceSignerConfig.Unmarshal(m, b)
}
func (m *DeviceSignerConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeviceSignerConfig.Marshal(b, m, deterministic)
}
func (m *DeviceSignerConfig) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeviceSignerConfig.Merge(m, src)
}
func (m *DeviceSignerConfig) XXX_Size() int {
return xxx_messageInfo_DeviceSignerConfig.Size(m)
}
func (m *DeviceSignerConfig) XXX_DiscardUnknown() {
xxx_messageInfo_DeviceSignerConfig.DiscardUnknown(m)
}
var xxx_messageInfo_DeviceSignerConfig proto.InternalMessageInfo
type isDeviceSignerConfig_Identifier interface {
isDeviceSignerConfig_Identifier()
}
type DeviceSignerConfig_BrandId struct {
BrandId *DeviceBrandId `protobuf:"bytes,1,opt,name=brand_id,json=brandId,proto3,oneof"`
}
type DeviceSignerConfig_DesignId struct {
DesignId *DesignId `protobuf:"bytes,3,opt,name=design_id,json=designId,proto3,oneof"`
}
func (*DeviceSignerConfig_BrandId) isDeviceSignerConfig_Identifier() {}
func (*DeviceSignerConfig_DesignId) isDeviceSignerConfig_Identifier() {}
func (m *DeviceSignerConfig) GetIdentifier() isDeviceSignerConfig_Identifier {
if m != nil {
return m.Identifier
}
return nil
}
func (m *DeviceSignerConfig) GetBrandId() *DeviceBrandId {
if x, ok := m.GetIdentifier().(*DeviceSignerConfig_BrandId); ok {
return x.BrandId
}
return nil
}
func (m *DeviceSignerConfig) GetDesignId() *DesignId {
if x, ok := m.GetIdentifier().(*DeviceSignerConfig_DesignId); ok {
return x.DesignId
}
return nil
}
func (m *DeviceSignerConfig) GetKeyId() string {
if m != nil {
return m.KeyId
}
return ""
}
// XXX_OneofWrappers is for the internal use of the proto package.
func (*DeviceSignerConfig) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*DeviceSignerConfig_BrandId)(nil),
(*DeviceSignerConfig_DesignId)(nil),
}
}
// Defines a Chromium OS program, which establishes the set of constraints and
// guidelines for all hardware design projects developed under the given
// program.
//
// Reference designs developed for a given program will be treated like any
// other hardware design project. They will either fully comply with the
// prescribed program constraints or provide waivers that highlight any
// constraint violations.
// Next ID: 11
type Program struct {
// Fields replicated to public configs.
PublicReplication *public_replication.PublicReplication `protobuf:"bytes,8,opt,name=public_replication,json=publicReplication,proto3" json:"public_replication,omitempty"`
// Globally unique program identifier.
Id *ProgramId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Program codename (human friendly).
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// platform-name override for mosys. This should not need to be
// set for most programs.
MosysPlatformName string `protobuf:"bytes,10,opt,name=mosys_platform_name,json=mosysPlatformName,proto3" json:"mosys_platform_name,omitempty"`
// Defines program constraints for all proposed design configs.
DesignConfigConstraints []*Design_Config_Constraint `protobuf:"bytes,3,rep,name=design_config_constraints,json=designConfigConstraints,proto3" json:"design_config_constraints,omitempty"`
// Components for the given program and their corresponding qualification
// status.
ComponentQuals []*Component_Qualification `protobuf:"bytes,4,rep,name=component_quals,json=componentQuals,proto3" json:"component_quals,omitempty"`
// Firmware segment allocations for the given program.
FirmwareConfigurationSegments []*FirmwareConfigurationSegment `protobuf:"bytes,5,rep,name=firmware_configuration_segments,json=firmwareConfigurationSegments,proto3" json:"firmware_configuration_segments,omitempty"`
// Second Source Factory Cache (SSFC) allocations for the given program.
SsfcSegments []*FirmwareConfigurationSegment `protobuf:"bytes,9,rep,name=ssfc_segments,json=ssfcSegments,proto3" json:"ssfc_segments,omitempty"`
// DesignConfigId segment allocations for the given program.
DesignConfigIdSegments []*DesignConfigIdSegment `protobuf:"bytes,7,rep,name=design_config_id_segments,json=designConfigIdSegments,proto3" json:"design_config_id_segments,omitempty"`
DeviceSignerConfigs []*DeviceSignerConfig `protobuf:"bytes,6,rep,name=device_signer_configs,json=deviceSignerConfigs,proto3" json:"device_signer_configs,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Program) Reset() { *m = Program{} }
func (m *Program) String() string { return proto.CompactTextString(m) }
func (*Program) ProtoMessage() {}
func (*Program) Descriptor() ([]byte, []int) {
return fileDescriptor_dce3b73f3bd54421, []int{3}
}
func (m *Program) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Program.Unmarshal(m, b)
}
func (m *Program) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Program.Marshal(b, m, deterministic)
}
func (m *Program) XXX_Merge(src proto.Message) {
xxx_messageInfo_Program.Merge(m, src)
}
func (m *Program) XXX_Size() int {
return xxx_messageInfo_Program.Size(m)
}
func (m *Program) XXX_DiscardUnknown() {
xxx_messageInfo_Program.DiscardUnknown(m)
}
var xxx_messageInfo_Program proto.InternalMessageInfo
func (m *Program) GetPublicReplication() *public_replication.PublicReplication {
if m != nil {
return m.PublicReplication
}
return nil
}
func (m *Program) GetId() *ProgramId {
if m != nil {
return m.Id
}
return nil
}
func (m *Program) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *Program) GetMosysPlatformName() string {
if m != nil {
return m.MosysPlatformName
}
return ""
}
func (m *Program) GetDesignConfigConstraints() []*Design_Config_Constraint {
if m != nil {
return m.DesignConfigConstraints
}
return nil
}
func (m *Program) GetComponentQuals() []*Component_Qualification {
if m != nil {
return m.ComponentQuals
}
return nil
}
func (m *Program) GetFirmwareConfigurationSegments() []*FirmwareConfigurationSegment {
if m != nil {
return m.FirmwareConfigurationSegments
}
return nil
}
func (m *Program) GetSsfcSegments() []*FirmwareConfigurationSegment {
if m != nil {
return m.SsfcSegments
}
return nil
}
func (m *Program) GetDesignConfigIdSegments() []*DesignConfigIdSegment {
if m != nil {
return m.DesignConfigIdSegments
}
return nil
}
func (m *Program) GetDeviceSignerConfigs() []*DeviceSignerConfig {
if m != nil {
return m.DeviceSignerConfigs
}
return nil
}
func init() {
proto.RegisterType((*FirmwareConfigurationSegment)(nil), "chromiumos.config.api.FirmwareConfigurationSegment")
proto.RegisterType((*DesignConfigIdSegment)(nil), "chromiumos.config.api.DesignConfigIdSegment")
proto.RegisterType((*DeviceSignerConfig)(nil), "chromiumos.config.api.DeviceSignerConfig")
proto.RegisterType((*Program)(nil), "chromiumos.config.api.Program")
}
func init() {
proto.RegisterFile("chromiumos/config/api/program.proto", fileDescriptor_dce3b73f3bd54421)
}
var fileDescriptor_dce3b73f3bd54421 = []byte{
// 612 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0x4d, 0x6f, 0xd3, 0x30,
0x18, 0x5e, 0xdb, 0xad, 0x5b, 0xbd, 0x0d, 0x34, 0x4f, 0x85, 0x30, 0x81, 0x56, 0x15, 0x86, 0xca,
0x87, 0x52, 0xb4, 0x1d, 0xb8, 0x00, 0x12, 0xdd, 0x34, 0x2d, 0x17, 0x54, 0xbc, 0x03, 0x08, 0x09,
0x45, 0x6e, 0xec, 0x04, 0xab, 0x75, 0x1c, 0xec, 0x14, 0x56, 0x71, 0xe4, 0x6f, 0xf1, 0x13, 0xf8,
0x51, 0x28, 0xb6, 0x9b, 0x94, 0x36, 0x8d, 0x10, 0x27, 0x5b, 0x8f, 0x9f, 0xf7, 0x7d, 0xfc, 0x7e,
0x82, 0x87, 0xc1, 0x17, 0x29, 0x38, 0x9b, 0x72, 0xa1, 0xfa, 0x81, 0x88, 0x43, 0x16, 0xf5, 0x71,
0xc2, 0xfa, 0x89, 0x14, 0x91, 0xc4, 0xdc, 0x4d, 0xa4, 0x48, 0x05, 0x6c, 0x17, 0x24, 0xd7, 0x90,
0x5c, 0x9c, 0xb0, 0xa3, 0x93, 0x72, 0xdb, 0x40, 0xf0, 0x44, 0xc4, 0x34, 0x4e, 0x8d, 0xf5, 0x51,
0xb7, 0x9c, 0x46, 0xa8, 0x62, 0x51, 0x6c, 0x39, 0x27, 0x55, 0x1c, 0x9f, 0x11, 0x4b, 0x7b, 0xb6,
0x8e, 0xf6, 0x8d, 0x05, 0xd4, 0x1f, 0x49, 0x1c, 0x93, 0x82, 0xfc, 0xb8, 0x32, 0xb4, 0x82, 0xf7,
0x7a, 0x95, 0x97, 0x4c, 0x47, 0x13, 0x16, 0xf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