blob: 09dbb8352c45479e8967aee3736c975fd31ea4a5 [file] [log] [blame]
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: chromiumos/config/api/design.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
type Design_Config_Constraint_Level int32
const (
Design_Config_Constraint_TYPE_UNKNOWN Design_Config_Constraint_Level = 0
Design_Config_Constraint_REQUIRED Design_Config_Constraint_Level = 1
Design_Config_Constraint_PREFERRED Design_Config_Constraint_Level = 2
Design_Config_Constraint_OPTIONAL Design_Config_Constraint_Level = 3
)
var Design_Config_Constraint_Level_name = map[int32]string{
0: "TYPE_UNKNOWN",
1: "REQUIRED",
2: "PREFERRED",
3: "OPTIONAL",
}
var Design_Config_Constraint_Level_value = map[string]int32{
"TYPE_UNKNOWN": 0,
"REQUIRED": 1,
"PREFERRED": 2,
"OPTIONAL": 3,
}
func (x Design_Config_Constraint_Level) String() string {
return proto.EnumName(Design_Config_Constraint_Level_name, int32(x))
}
func (Design_Config_Constraint_Level) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_0949ab302cb28294, []int{0, 2, 0, 0}
}
// Next ID: 9
type Design struct {
// Fields replicated to public configs.
PublicReplication *public_replication.PublicReplication `protobuf:"bytes,7,opt,name=public_replication,json=publicReplication,proto3" json:"public_replication,omitempty"`
// Globally unique design identifier.
Id *DesignId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Program that defines the constraints for this design.
ProgramId *ProgramId `protobuf:"bytes,2,opt,name=program_id,json=programId,proto3" json:"program_id,omitempty"`
// ODM for the given hardware design.
OdmId *PartnerId `protobuf:"bytes,3,opt,name=odm_id,json=odmId,proto3" json:"odm_id,omitempty"`
// Design codename (human friendly).
Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"`
// Board version assignment for each build phase.
// Example:
// 1 --> proto
// 2 --> proto2 ...
BoardIdPhase map[uint32]string `protobuf:"bytes,5,rep,name=board_id_phase,json=boardIdPhase,proto3" json:"board_id_phase,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Supported hardware configurations for a given design.
Configs []*Design_Config `protobuf:"bytes,6,rep,name=configs,proto3" json:"configs,omitempty"`
// Map of SSFC values for this project. These values must fit within the
// program's definitions of SSFC Segments. The string represents the human-
// readable description of the SSFC value (e.g. BMI160, PS8751)
// E.g 0x0010 -> "CameraA"; 0x0020 -> "CameraB" within SsfcSegment 0x0030
SsfcValue map[uint32]string `protobuf:"bytes,8,rep,name=ssfc_value,json=ssfcValue,proto3" json:"ssfc_value,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Design) Reset() { *m = Design{} }
func (m *Design) String() string { return proto.CompactTextString(m) }
func (*Design) ProtoMessage() {}
func (*Design) Descriptor() ([]byte, []int) {
return fileDescriptor_0949ab302cb28294, []int{0}
}
func (m *Design) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Design.Unmarshal(m, b)
}
func (m *Design) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Design.Marshal(b, m, deterministic)
}
func (m *Design) XXX_Merge(src proto.Message) {
xxx_messageInfo_Design.Merge(m, src)
}
func (m *Design) XXX_Size() int {
return xxx_messageInfo_Design.Size(m)
}
func (m *Design) XXX_DiscardUnknown() {
xxx_messageInfo_Design.DiscardUnknown(m)
}
var xxx_messageInfo_Design proto.InternalMessageInfo
func (m *Design) GetPublicReplication() *public_replication.PublicReplication {
if m != nil {
return m.PublicReplication
}
return nil
}
func (m *Design) GetId() *DesignId {
if m != nil {
return m.Id
}
return nil
}
func (m *Design) GetProgramId() *ProgramId {
if m != nil {
return m.ProgramId
}
return nil
}
func (m *Design) GetOdmId() *PartnerId {
if m != nil {
return m.OdmId
}
return nil
}
func (m *Design) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *Design) GetBoardIdPhase() map[uint32]string {
if m != nil {
return m.BoardIdPhase
}
return nil
}
func (m *Design) GetConfigs() []*Design_Config {
if m != nil {
return m.Configs
}
return nil
}
func (m *Design) GetSsfcValue() map[uint32]string {
if m != nil {
return m.SsfcValue
}
return nil
}
// Defines a unique hardware configuration for a given hardware design
// and the corresponding hardware features that will be supported.
// Next ID: 6
type Design_Config struct {
// Fields replicated to public configs.
PublicReplication *public_replication.PublicReplication `protobuf:"bytes,5,opt,name=public_replication,json=publicReplication,proto3" json:"public_replication,omitempty"`
// The ID encoded in hardware on a device, typically in CBI.
Id *DesignConfigId `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Each unique value of hardware_topology requires a unique DesignConfigId
HardwareTopology *HardwareTopology `protobuf:"bytes,2,opt,name=hardware_topology,json=hardwareTopology,proto3" json:"hardware_topology,omitempty"`
// This field is generated from hardware_topology by combining all of the
// partial HardwareFeatures definitions from each selected hardware topology
HardwareFeatures *HardwareFeatures `protobuf:"bytes,3,opt,name=hardware_features,json=hardwareFeatures,proto3" json:"hardware_features,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Design_Config) Reset() { *m = Design_Config{} }
func (m *Design_Config) String() string { return proto.CompactTextString(m) }
func (*Design_Config) ProtoMessage() {}
func (*Design_Config) Descriptor() ([]byte, []int) {
return fileDescriptor_0949ab302cb28294, []int{0, 2}
}
func (m *Design_Config) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Design_Config.Unmarshal(m, b)
}
func (m *Design_Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Design_Config.Marshal(b, m, deterministic)
}
func (m *Design_Config) XXX_Merge(src proto.Message) {
xxx_messageInfo_Design_Config.Merge(m, src)
}
func (m *Design_Config) XXX_Size() int {
return xxx_messageInfo_Design_Config.Size(m)
}
func (m *Design_Config) XXX_DiscardUnknown() {
xxx_messageInfo_Design_Config.DiscardUnknown(m)
}
var xxx_messageInfo_Design_Config proto.InternalMessageInfo
func (m *Design_Config) GetPublicReplication() *public_replication.PublicReplication {
if m != nil {
return m.PublicReplication
}
return nil
}
func (m *Design_Config) GetId() *DesignConfigId {
if m != nil {
return m.Id
}
return nil
}
func (m *Design_Config) GetHardwareTopology() *HardwareTopology {
if m != nil {
return m.HardwareTopology
}
return nil
}
func (m *Design_Config) GetHardwareFeatures() *HardwareFeatures {
if m != nil {
return m.HardwareFeatures
}
return nil
}
// Constraints on HardwareFeatures.
//
// Each Constraint should specify exactly one HardwareFeature to constrain.
// Constraints are OR'd across the same type of HardwareFeatures, and AND'd
// across different types of HardwareFeatures. For example, the following
// specifies CLAMSHELL or CONVERTIBLE form factors are allowed, and the
// screen must have touch support:
//
// design_config_constraints: <
// level: REQUIRED
// features: <
// form_factor: <
// form_factor: CLAMSHELL
// >
// >
// >
// design_config_constraints: <
// level: REQUIRED
// features: <
// form_factor: <
// form_factor: CONVERTIBLE
// >
// >
// >
// design_config_constraints: <
// level: REQUIRED
// features: <
// screen: <
// touch_support: PRESENT
// >
// >
// >
//
// TODO: Formalize constraint definitions further, e.g. what are the
// semantics of level?
// TODO: should this be moved into Design or Program? This isn't used here
type Design_Config_Constraint struct {
Level Design_Config_Constraint_Level `protobuf:"varint,1,opt,name=level,proto3,enum=chromiumos.config.api.Design_Config_Constraint_Level" json:"level,omitempty"`
Features *HardwareFeatures `protobuf:"bytes,2,opt,name=features,proto3" json:"features,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Design_Config_Constraint) Reset() { *m = Design_Config_Constraint{} }
func (m *Design_Config_Constraint) String() string { return proto.CompactTextString(m) }
func (*Design_Config_Constraint) ProtoMessage() {}
func (*Design_Config_Constraint) Descriptor() ([]byte, []int) {
return fileDescriptor_0949ab302cb28294, []int{0, 2, 0}
}
func (m *Design_Config_Constraint) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Design_Config_Constraint.Unmarshal(m, b)
}
func (m *Design_Config_Constraint) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Design_Config_Constraint.Marshal(b, m, deterministic)
}
func (m *Design_Config_Constraint) XXX_Merge(src proto.Message) {
xxx_messageInfo_Design_Config_Constraint.Merge(m, src)
}
func (m *Design_Config_Constraint) XXX_Size() int {
return xxx_messageInfo_Design_Config_Constraint.Size(m)
}
func (m *Design_Config_Constraint) XXX_DiscardUnknown() {
xxx_messageInfo_Design_Config_Constraint.DiscardUnknown(m)
}
var xxx_messageInfo_Design_Config_Constraint proto.InternalMessageInfo
func (m *Design_Config_Constraint) GetLevel() Design_Config_Constraint_Level {
if m != nil {
return m.Level
}
return Design_Config_Constraint_TYPE_UNKNOWN
}
func (m *Design_Config_Constraint) GetFeatures() *HardwareFeatures {
if m != nil {
return m.Features
}
return nil
}
func init() {
proto.RegisterEnum("chromiumos.config.api.Design_Config_Constraint_Level", Design_Config_Constraint_Level_name, Design_Config_Constraint_Level_value)
proto.RegisterType((*Design)(nil), "chromiumos.config.api.Design")
proto.RegisterMapType((map[uint32]string)(nil), "chromiumos.config.api.Design.BoardIdPhaseEntry")
proto.RegisterMapType((map[uint32]string)(nil), "chromiumos.config.api.Design.SsfcValueEntry")
proto.RegisterType((*Design_Config)(nil), "chromiumos.config.api.Design.Config")
proto.RegisterType((*Design_Config_Constraint)(nil), "chromiumos.config.api.Design.Config.Constraint")
}
func init() { proto.RegisterFile("chromiumos/config/api/design.proto", fileDescriptor_0949ab302cb28294) }
var fileDescriptor_0949ab302cb28294 = []byte{
// 618 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x94, 0x5f, 0x6f, 0xd3, 0x3c,
0x14, 0xc6, 0xdf, 0xa6, 0x4d, 0xd7, 0x9e, 0xfd, 0x51, 0x66, 0xbd, 0x48, 0x51, 0x6f, 0xa8, 0xa6,
0x0d, 0x2a, 0x34, 0x52, 0x69, 0x68, 0x1a, 0x42, 0xc0, 0xc4, 0xb6, 0x4e, 0x74, 0x9b, 0xba, 0x62,
0x3a, 0x10, 0xdc, 0x44, 0x6e, 0xed, 0xa6, 0x16, 0x6d, 0x1c, 0x39, 0xe9, 0xd0, 0xbe, 0x20, 0x5f,
0x82, 0x5b, 0x3e, 0x08, 0x8a, 0x9d, 0x36, 0xdb, 0x9a, 0x06, 0x26, 0x71, 0x67, 0x3f, 0xf9, 0x3d,
0x4f, 0x8e, 0xed, 0xa3, 0x03, 0x5b, 0x83, 0x91, 0x14, 0x13, 0x3e, 0x9d, 0x88, 0xb0, 0x39, 0x10,
0xfe, 0x90, 0x7b, 0x4d, 0x12, 0xf0, 0x26, 0x65, 0x21, 0xf7, 0x7c, 0x27, 0x90, 0x22, 0x12, 0xe8,
0x51, 0xca, 0x38, 0x9a, 0x71, 0x48, 0xc0, 0x6b, 0xbb, 0x79, 0x56, 0x57, 0x2b, 0x2e, 0xa7, 0x3a,
0xa4, 0xb6, 0x93, 0x4b, 0xcf, 0xb1, 0xe7, 0xd9, 0xd8, 0x88, 0x48, 0xfa, 0x9d, 0x48, 0xe6, 0x46,
0x22, 0x10, 0x63, 0xe1, 0xdd, 0x24, 0xf8, 0x93, 0x6c, 0x3c, 0x20, 0x32, 0xf2, 0x99, 0x4c, 0x63,
0x97, 0x71, 0x52, 0x78, 0x92, 0x4c, 0x52, 0x6e, 0x3b, 0x9b, 0xbb, 0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