blob: 398719bece609d3fbf7515b54db699d47c77402f [file] [log] [blame]
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: test_platform/result_flow/publish.proto
package result_flow
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
// PublishRequest defines the input of `result_flow publish`.
type PublishRequest struct {
// Subscribers call Buildbucket to fetch the build information via this ID.
BuildId int64 `protobuf:"varint,1,opt,name=build_id,json=buildId,proto3" json:"build_id,omitempty"`
// Should not be used, as the parent CTP build may contain multiple TestPlanRuns.
// Use parent_uid below.
ParentBuildId int64 `protobuf:"varint,2,opt,name=parent_build_id,json=parentBuildId,proto3" json:"parent_build_id,omitempty"` // Deprecated: Do not use.
// PubSub endpoint to publish a CTP build.
Ctp *PubSubConfig `protobuf:"bytes,3,opt,name=ctp,proto3" json:"ctp,omitempty"`
// PubSub endpoint to publish a test runner build.
TestRunner *PubSubConfig `protobuf:"bytes,4,opt,name=test_runner,json=testRunner,proto3" json:"test_runner,omitempty"`
// Hard deadline for execution.
//
// Publish command should abort beyond this deadline.
Deadline *timestamp.Timestamp `protobuf:"bytes,5,opt,name=deadline,proto3" json:"deadline,omitempty"`
// True if subscribers should fetch the build's final status from
// Buildbucket. The message may be earlier than the build's completion. If
// the Buildbucket's response does not contain its final status, subscribers
// should retry. Otherwise, subscribers should expect an intermediate status
// of the build.
ShouldPollForCompletion bool `protobuf:"varint,6,opt,name=should_poll_for_completion,json=shouldPollForCompletion,proto3" json:"should_poll_for_completion,omitempty"`
// The UID of the parent test plan run, which kicks off this test run.
// Placed inside the pubsub message for test_runner builds.
ParentUid string `protobuf:"bytes,7,opt,name=parent_uid,json=parentUid,proto3" json:"parent_uid,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PublishRequest) Reset() { *m = PublishRequest{} }
func (m *PublishRequest) String() string { return proto.CompactTextString(m) }
func (*PublishRequest) ProtoMessage() {}
func (*PublishRequest) Descriptor() ([]byte, []int) {
return fileDescriptor_c45128fac736122f, []int{0}
}
func (m *PublishRequest) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PublishRequest.Unmarshal(m, b)
}
func (m *PublishRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PublishRequest.Marshal(b, m, deterministic)
}
func (m *PublishRequest) XXX_Merge(src proto.Message) {
xxx_messageInfo_PublishRequest.Merge(m, src)
}
func (m *PublishRequest) XXX_Size() int {
return xxx_messageInfo_PublishRequest.Size(m)
}
func (m *PublishRequest) XXX_DiscardUnknown() {
xxx_messageInfo_PublishRequest.DiscardUnknown(m)
}
var xxx_messageInfo_PublishRequest proto.InternalMessageInfo
func (m *PublishRequest) GetBuildId() int64 {
if m != nil {
return m.BuildId
}
return 0
}
// Deprecated: Do not use.
func (m *PublishRequest) GetParentBuildId() int64 {
if m != nil {
return m.ParentBuildId
}
return 0
}
func (m *PublishRequest) GetCtp() *PubSubConfig {
if m != nil {
return m.Ctp
}
return nil
}
func (m *PublishRequest) GetTestRunner() *PubSubConfig {
if m != nil {
return m.TestRunner
}
return nil
}
func (m *PublishRequest) GetDeadline() *timestamp.Timestamp {
if m != nil {
return m.Deadline
}
return nil
}
func (m *PublishRequest) GetShouldPollForCompletion() bool {
if m != nil {
return m.ShouldPollForCompletion
}
return false
}
func (m *PublishRequest) GetParentUid() string {
if m != nil {
return m.ParentUid
}
return ""
}
// PublishRequest defines the output of `result_flow publish`.
type PublishResponse struct {
// `result_flow publish` 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 publish execution (see comments on State enum).
State State `protobuf:"varint,1,opt,name=state,proto3,enum=test_platform.result_flow.State" json:"state,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PublishResponse) Reset() { *m = PublishResponse{} }
func (m *PublishResponse) String() string { return proto.CompactTextString(m) }
func (*PublishResponse) ProtoMessage() {}
func (*PublishResponse) Descriptor() ([]byte, []int) {
return fileDescriptor_c45128fac736122f, []int{1}
}
func (m *PublishResponse) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PublishResponse.Unmarshal(m, b)
}
func (m *PublishResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PublishResponse.Marshal(b, m, deterministic)
}
func (m *PublishResponse) XXX_Merge(src proto.Message) {
xxx_messageInfo_PublishResponse.Merge(m, src)
}
func (m *PublishResponse) XXX_Size() int {
return xxx_messageInfo_PublishResponse.Size(m)
}
func (m *PublishResponse) XXX_DiscardUnknown() {
xxx_messageInfo_PublishResponse.DiscardUnknown(m)
}
var xxx_messageInfo_PublishResponse proto.InternalMessageInfo
func (m *PublishResponse) GetState() State {
if m != nil {
return m.State
}
return State_STATE_UNSPECIFIED
}
func init() {
proto.RegisterType((*PublishRequest)(nil), "test_platform.result_flow.PublishRequest")
proto.RegisterType((*PublishResponse)(nil), "test_platform.result_flow.PublishResponse")
}
func init() {
proto.RegisterFile("test_platform/result_flow/publish.proto", fileDescriptor_c45128fac736122f)
}
var fileDescriptor_c45128fac736122f = []byte{
// 378 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x92, 0xcf, 0x8b, 0xd4, 0x30,
0x14, 0xc7, 0xe9, 0x8c, 0xbb, 0x3b, 0x9b, 0xc5, 0x5d, 0xc8, 0xc5, 0x6e, 0x41, 0x2c, 0x7b, 0x70,
0x8b, 0x87, 0x04, 0x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