blob: ec8e136926aa3afcb138376c1672ac36aa0a0eac [file] [log] [blame]
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: test_platform/phosphorus/prejob.proto
package phosphorus
import (
fmt "fmt"
proto ""
timestamp ""
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
// Values should be consistent with
type PrejobResponse_State int32
const (
// Should not be used.
PrejobResponse_STATE_UNSPECIFIED PrejobResponse_State = 0
// The prejob succeeded.
// Some prejob failures may not be detectable during execution. These
// failures will be detected when parsing results off the prejob logs in a
// later step of test_runner.
PrejobResponse_SUCCEEDED PrejobResponse_State = 1
// The prejob failed.
PrejobResponse_FAILED PrejobResponse_State = 2
// The prejob hit the requested timeout.
PrejobResponse_TIMED_OUT PrejobResponse_State = 3
// The prejob was aborted externally.
PrejobResponse_ABORTED PrejobResponse_State = 4
var PrejobResponse_State_name = map[int32]string{
2: "FAILED",
var PrejobResponse_State_value = map[string]int32{
"FAILED": 2,
func (x PrejobResponse_State) String() string {
return proto.EnumName(PrejobResponse_State_name, int32(x))
func (PrejobResponse_State) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_5d406d24cdb4ff2a, []int{1, 0}
// PrejobRequest defines the input of `phosphorus prejob`.
type PrejobRequest struct {
Config *Config `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"`
DutHostname string `protobuf:"bytes,2,opt,name=dut_hostname,json=dutHostname,proto3" json:"dut_hostname,omitempty"`
ProvisionableLabels map[string]string `protobuf:"bytes,3,rep,name=provisionable_labels,json=provisionableLabels,proto3" json:"provisionable_labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // Deprecated: Do not use.
// What needs to be installed onto the DUT at the end of prejob, e.g.
// "cros-version": "reef-release/R77-12345.0.0".
DesiredProvisionableLabels map[string]string `protobuf:"bytes,4,rep,name=desired_provisionable_labels,json=desiredProvisionableLabels,proto3" json:"desired_provisionable_labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// What is installed on the DUT before the prejob, e.g.
// "cros-version": "reef-release/R77-12345.0.0".
ExistingProvisionableLabels map[string]string `protobuf:"bytes,5,rep,name=existing_provisionable_labels,json=existingProvisionableLabels,proto3" json:"existing_provisionable_labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Hard deadline for execution.
// All prejob execution should abort beyond this deadline.
Deadline *timestamp.Timestamp `protobuf:"bytes,6,opt,name=deadline,proto3" json:"deadline,omitempty"`
// If set, use the Provision TLS API for the prejob.
// See go/cros-prover go/cros-tls
// This is a transitional argument. Once go/cros-prover
// migration is complete, all prejobs will use the TLS API and this argument
// will be dropped.
UseTls bool `protobuf:"varint,7,opt,name=use_tls,json=useTls,proto3" json:"use_tls,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
func (m *PrejobRequest) Reset() { *m = PrejobRequest{} }
func (m *PrejobRequest) String() string { return proto.CompactTextString(m) }
func (*PrejobRequest) ProtoMessage() {}
func (*PrejobRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_5d406d24cdb4ff2a, []int{0}
func (m *PrejobRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PrejobRequest.Unmarshal(m, b)
func (m *PrejobRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PrejobRequest.Marshal(b, m, deterministic)
func (m *PrejobRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_PrejobRequest.Merge(m, src)
func (m *PrejobRequest) XXX_Size() int {
return xxx_messageInfo_PrejobRequest.Size(m)
func (m *PrejobRequest) XXX_DiscardUnknown() {
var xxx_messageInfo_PrejobRequest proto.InternalMessageInfo
func (m *PrejobRequest) GetConfig() *Config {
if m != nil {
return m.Config
return nil
func (m *PrejobRequest) GetDutHostname() string {
if m != nil {
return m.DutHostname
return ""
// Deprecated: Do not use.
func (m *PrejobRequest) GetProvisionableLabels() map[string]string {
if m != nil {
return m.ProvisionableLabels
return nil
func (m *PrejobRequest) GetDesiredProvisionableLabels() map[string]string {
if m != nil {
return m.DesiredProvisionableLabels
return nil
func (m *PrejobRequest) GetExistingProvisionableLabels() map[string]string {
if m != nil {
return m.ExistingProvisionableLabels
return nil
func (m *PrejobRequest) GetDeadline() *timestamp.Timestamp {
if m != nil {
return m.Deadline
return nil
func (m *PrejobRequest) GetUseTls() bool {
if m != nil {
return m.UseTls
return false
// PrejobResponse defines the output of `phosphorus prejob`.
type PrejobResponse struct {
// `phosphorus prejob` exits with exit code 0 unless there is an
// infrastructure failure. When the exit code is 0, `state` indicates the
// best known state of the prejob execution (see comments on State enum).
State PrejobResponse_State `protobuf:"varint,1,opt,name=state,proto3,enum=test_platform.phosphorus.PrejobResponse_State" json:"state,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
func (m *PrejobResponse) Reset() { *m = PrejobResponse{} }
func (m *PrejobResponse) String() string { return proto.CompactTextString(m) }
func (*PrejobResponse) ProtoMessage() {}
func (*PrejobResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_5d406d24cdb4ff2a, []int{1}
func (m *PrejobResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PrejobResponse.Unmarshal(m, b)
func (m *PrejobResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PrejobResponse.Marshal(b, m, deterministic)
func (m *PrejobResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_PrejobResponse.Merge(m, src)
func (m *PrejobResponse) XXX_Size() int {
return xxx_messageInfo_PrejobResponse.Size(m)
func (m *PrejobResponse) XXX_DiscardUnknown() {
var xxx_messageInfo_PrejobResponse proto.InternalMessageInfo
func (m *PrejobResponse) GetState() PrejobResponse_State {
if m != nil {
return m.State
return PrejobResponse_STATE_UNSPECIFIED
func init() {
proto.RegisterEnum("test_platform.phosphorus.PrejobResponse_State", PrejobResponse_State_name, PrejobResponse_State_value)
proto.RegisterType((*PrejobRequest)(nil), "test_platform.phosphorus.PrejobRequest")
proto.RegisterMapType((map[string]string)(nil), "test_platform.phosphorus.PrejobRequest.DesiredProvisionableLabelsEntry")
proto.RegisterMapType((map[string]string)(nil), "test_platform.phosphorus.PrejobRequest.ExistingProvisionableLabelsEntry")
proto.RegisterMapType((map[string]string)(nil), "test_platform.phosphorus.PrejobRequest.ProvisionableLabelsEntry")
proto.RegisterType((*PrejobResponse)(nil), "test_platform.phosphorus.PrejobResponse")
func init() {
proto.RegisterFile("test_platform/phosphorus/prejob.proto", fileDescriptor_5d406d24cdb4ff2a)
var fileDescriptor_5d406d24cdb4ff2a = []byte{
// 536 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x94, 0xdf, 0x6e, 0xd3, 0x30,
0x14, 0xc6, 0x49, 0xbb, 0xa6, 0xeb, 0x29, 0x9b, 0x82, 0x19, 0x22, 0x0a, 0xa0, 0x85, 0x4a, 0x48,
0xbd, 0x72, 0xa4, 0x22, 0xa1, 0x89, 0x2b, 0xda, 0xc6, 0x65, 0x95, 0xf6, 0xa7, 0x4a, 0xd3, 0x1b,
0x6e, 0xa2, 0xb4, 0x71, 0xd3, 0x40, 0x12, 0x87, 0xd8, 0x19, 0xec, 0x11, 0x90, 0x78, 0x15, 0xee,
0x79, 0x3c, 0x54, 0xa7, 0x05, 0xa6, 0x2d, 0xea, 0x76, 0x97, 0x13, 0x7f, 0xe7, 0x3b, 0x3f, 0xf9,
0x7c, 0x32, 0xb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