| // 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: 10 |
| 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"` |
| // 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) 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{ |
| // 588 bytes of a gzipped FileDescriptorProto |
| 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x54, 0x5d, 0x6f, 0xd3, 0x30, |
| 0x14, 0x5d, 0xdb, 0xf5, 0xcb, 0xdb, 0x40, 0x18, 0x15, 0xc2, 0x04, 0x5a, 0x55, 0x18, 0x2a, 0x1f, |
| 0x4a, 0xd1, 0xf6, 0xc0, 0x0b, 0x20, 0xd1, 0x4d, 0xd3, 0xf2, 0x36, 0xbc, 0x07, 0x10, 0x12, 0xaa, |
| 0xdc, 0xd8, 0x09, 0x56, 0x1b, 0x3b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