| // Code generated by protoc-gen-go. DO NOT EDIT. |
| // source: test_platform/phosphorus/prejob.proto |
| |
| package phosphorus |
| |
| import ( |
| fmt "fmt" |
| proto "github.com/golang/protobuf/proto" |
| timestamp "github.com/golang/protobuf/ptypes/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 https://aip.dev/216 |
| 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{ |
| 0: "STATE_UNSPECIFIED", |
| 1: "SUCCEEDED", |
| 2: "FAILED", |
| 3: "TIMED_OUT", |
| 4: "ABORTED", |
| } |
| |
| var PrejobResponse_State_value = map[string]int32{ |
| "STATE_UNSPECIFIED": 0, |
| "SUCCEEDED": 1, |
| "FAILED": 2, |
| "TIMED_OUT": 3, |
| "ABORTED": 4, |
| } |
| |
| 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"` |
| 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() { |
| xxx_messageInfo_PrejobRequest.DiscardUnknown(m) |
| } |
| |
| 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 |
| } |
| |
| // 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() { |
| xxx_messageInfo_PrejobResponse.DiscardUnknown(m) |
| } |
| |
| 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{ |
| // 518 bytes of a gzipped FileDescriptorProto |
| 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x94, 0xdf, 0x8a, 0xd3, 0x40, |
| 0x14, 0xc6, 0x4d, 0xbb, 0xad, 0xee, 0xa9, 0xbb, 0xc4, 0x71, 0x85, 0x10, 0x95, 0xad, 0x05, 0xa1, |
| 0x57, 0x13, 0xa8, 0x20, 0x8b, 0x57, 0xb6, 0xcd, 0xd4, 0x2d, 0xec, 0x9f, 0x92, 0xa6, 0x37, 0xde, |
| 0x84, 0xb4, 0x99, 0xa6, 0xd1, 0x24, 0x27, 0x66, 0x26, 0xab, 0xfb, 0x08, 0x82, 0xef, 0xe0, 0x13, |
| 0xf8, 0x8e, 0xd2, 0x49, 0xab, 0x2e, 0x6e, 0xe8, 0xee, 0x5d, 0x4e, 0xe6, 0x3b, 0xdf, 0xf9, 0x71, |
| 0xe6, 0x63, 0xe0, 0xb5, 0xe4, 0x42, 0x7a, 0x59, 0xec, 0xcb, 0x25, 0xe6, 0x89, 0x95, 0xad, 0x50, |
| 0x64, 0x2b, 0xcc, 0x0b, 0x61, 0x65, 0x39, 0xff, 0x84, 0x73, 0x9a, 0xe5, 0x28, 0x91, 0x18, 0x37, |
| 0x64, 0xf4, 0xaf, 0xcc, 0x3c, 0x0e, 0x11, 0xc3, 0x98, 0x5b, 0x4a, 0x37, 0x2f, 0x96, 0x96, 0x8c, |
| 0x12, 0x2e, 0xa4, 0x9f, 0x64, 0x65, 0xab, 0x59, 0x3d, 0x61, 0x81, 0x49, 0x82, 0x69, 0x29, 0xeb, |
| 0xfc, 0x6c, 0xc2, 0xc1, 0x44, 0x8d, 0x74, 0xf8, 0x97, 0x82, 0x0b, 0x49, 0x4e, 0xa0, 0xb9, 0xc0, |
| 0x74, 0x19, 0x85, 0x86, 0xd6, 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