// Code generated by protoc-gen-go.
// source: google/devtools/build/v1/build_status.proto
// DO NOT EDIT!

package build

import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import _ "google.golang.org/genproto/googleapis/api/annotations"
import _ "github.com/golang/protobuf/ptypes/any"

// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf

// The end result of the Build.
type BuildStatus_Result int32

const (
	// Unspecified or unknown.
	BuildStatus_UNKNOWN_STATUS BuildStatus_Result = 0
	// Build was successful and tests (if requested) all pass.
	BuildStatus_COMMAND_SUCCEEDED BuildStatus_Result = 1
	// Build error and/or test failure.
	BuildStatus_COMMAND_FAILED BuildStatus_Result = 2
	// Unable to obtain a result due to input provided by the user.
	BuildStatus_USER_ERROR BuildStatus_Result = 3
	// Unable to obtain a result due to a failure within the build system.
	BuildStatus_SYSTEM_ERROR BuildStatus_Result = 4
	// Build required too many resources, such as build tool RAM.
	BuildStatus_RESOURCE_EXHAUSTED BuildStatus_Result = 5
	// An invocation attempt time exceeded its deadline.
	BuildStatus_INVOCATION_DEADLINE_EXCEEDED BuildStatus_Result = 6
	// Build request time exceeded the request_deadline
	BuildStatus_REQUEST_DEADLINE_EXCEEDED BuildStatus_Result = 8
	// The build was cancelled by a call to CancelBuild.
	BuildStatus_CANCELLED BuildStatus_Result = 7
)

var BuildStatus_Result_name = map[int32]string{
	0: "UNKNOWN_STATUS",
	1: "COMMAND_SUCCEEDED",
	2: "COMMAND_FAILED",
	3: "USER_ERROR",
	4: "SYSTEM_ERROR",
	5: "RESOURCE_EXHAUSTED",
	6: "INVOCATION_DEADLINE_EXCEEDED",
	8: "REQUEST_DEADLINE_EXCEEDED",
	7: "CANCELLED",
}
var BuildStatus_Result_value = map[string]int32{
	"UNKNOWN_STATUS":               0,
	"COMMAND_SUCCEEDED":            1,
	"COMMAND_FAILED":               2,
	"USER_ERROR":                   3,
	"SYSTEM_ERROR":                 4,
	"RESOURCE_EXHAUSTED":           5,
	"INVOCATION_DEADLINE_EXCEEDED": 6,
	"REQUEST_DEADLINE_EXCEEDED":    8,
	"CANCELLED":                    7,
}

func (x BuildStatus_Result) String() string {
	return proto.EnumName(BuildStatus_Result_name, int32(x))
}
func (BuildStatus_Result) EnumDescriptor() ([]byte, []int) { return fileDescriptor1, []int{0, 0} }

// Status used for both invocation attempt and overall build completion.
type BuildStatus struct {
	// The end result.
	Result BuildStatus_Result `protobuf:"varint,1,opt,name=result,enum=google.devtools.build.v1.BuildStatus_Result" json:"result,omitempty"`
}

func (m *BuildStatus) Reset()                    { *m = BuildStatus{} }
func (m *BuildStatus) String() string            { return proto.CompactTextString(m) }
func (*BuildStatus) ProtoMessage()               {}
func (*BuildStatus) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0} }

func (m *BuildStatus) GetResult() BuildStatus_Result {
	if m != nil {
		return m.Result
	}
	return BuildStatus_UNKNOWN_STATUS
}

func init() {
	proto.RegisterType((*BuildStatus)(nil), "google.devtools.build.v1.BuildStatus")
	proto.RegisterEnum("google.devtools.build.v1.BuildStatus_Result", BuildStatus_Result_name, BuildStatus_Result_value)
}

func init() { proto.RegisterFile("google/devtools/build/v1/build_status.proto", fileDescriptor1) }

var fileDescriptor1 = []byte{
	// 370 bytes of a gzipped FileDescriptorProto
	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x91, 0x5f, 0x4b, 0xe3, 0x40,
	0x14, 0xc5, 0x37, 0xdd, 0xdd, 0xec, 0xee, 0xec, 0x6e, 0xc9, 0x0e, 0xac, 0xb4, 0xa5, 0x42, 0xe9,
	0x93, 0xa0, 0x4c, 0xa8, 0x3e, 0x8a, 0x0f, 0x69, 0xe6, 0x8a, 0xc1, 0x76, 0x52, 0x67, 0x12, 0xff,
	0xbd, 0x84, 0xd4, 0xc6, 0x10, 0x88, 0x99, 0xd2, 0x4c, 0x0a, 0x7e, 0x22, 0x3f, 0x8f, 0xdf, 0xc6,
	0x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