Documentation ¶
Overview ¶
Package build is a generated protocol buffer package.
It is generated from these files:
google/devtools/build/v1/build_events.proto google/devtools/build/v1/build_status.proto google/devtools/build/v1/publish_build_event.proto
It has these top-level messages:
BuildEvent StreamId BuildStatus PublishLifecycleEventRequest PublishBuildToolEventStreamResponse OrderedBuildEvent PublishBuildToolEventStreamRequest
Index ¶
- Variables
- func RegisterPublishBuildEventServer(s *grpc.Server, srv PublishBuildEventServer)
- type BuildEvent
- func (*BuildEvent) Descriptor() ([]byte, []int)
- func (m *BuildEvent) GetBazelEvent() *google_protobuf1.Any
- func (m *BuildEvent) GetBuildEnqueued() *BuildEvent_BuildEnqueued
- func (m *BuildEvent) GetBuildExecutionEvent() *google_protobuf1.Any
- func (m *BuildEvent) GetBuildFinished() *BuildEvent_BuildFinished
- func (m *BuildEvent) GetComponentStreamFinished() *BuildEvent_BuildComponentStreamFinished
- func (m *BuildEvent) GetConsoleOutput() *BuildEvent_ConsoleOutput
- func (m *BuildEvent) GetEvent() isBuildEvent_Event
- func (m *BuildEvent) GetEventTime() *google_protobuf2.Timestamp
- func (m *BuildEvent) GetInvocationAttemptFinished() *BuildEvent_InvocationAttemptFinished
- func (m *BuildEvent) GetInvocationAttemptStarted() *BuildEvent_InvocationAttemptStarted
- func (m *BuildEvent) GetSourceFetchEvent() *google_protobuf1.Any
- func (*BuildEvent) ProtoMessage()
- func (m *BuildEvent) Reset()
- func (m *BuildEvent) String() string
- func (*BuildEvent) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- type BuildEvent_BazelEvent
- type BuildEvent_BuildComponentStreamFinished
- func (*BuildEvent_BuildComponentStreamFinished) Descriptor() ([]byte, []int)
- func (m *BuildEvent_BuildComponentStreamFinished) GetType() BuildEvent_BuildComponentStreamFinished_FinishType
- func (*BuildEvent_BuildComponentStreamFinished) ProtoMessage()
- func (m *BuildEvent_BuildComponentStreamFinished) Reset()
- func (m *BuildEvent_BuildComponentStreamFinished) String() string
- type BuildEvent_BuildComponentStreamFinished_FinishType
- type BuildEvent_BuildEnqueued
- type BuildEvent_BuildEnqueued_
- type BuildEvent_BuildExecutionEvent
- type BuildEvent_BuildFinished
- type BuildEvent_BuildFinished_
- type BuildEvent_ComponentStreamFinished
- type BuildEvent_ConsoleOutput
- func (*BuildEvent_ConsoleOutput) Descriptor() ([]byte, []int)
- func (m *BuildEvent_ConsoleOutput) GetBinaryOutput() []byte
- func (m *BuildEvent_ConsoleOutput) GetOutput() isBuildEvent_ConsoleOutput_Output
- func (m *BuildEvent_ConsoleOutput) GetTextOutput() string
- func (m *BuildEvent_ConsoleOutput) GetType() ConsoleOutputStream
- func (*BuildEvent_ConsoleOutput) ProtoMessage()
- func (m *BuildEvent_ConsoleOutput) Reset()
- func (m *BuildEvent_ConsoleOutput) String() string
- func (*BuildEvent_ConsoleOutput) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- type BuildEvent_ConsoleOutput_
- type BuildEvent_ConsoleOutput_BinaryOutput
- type BuildEvent_ConsoleOutput_TextOutput
- type BuildEvent_InvocationAttemptFinished
- func (*BuildEvent_InvocationAttemptFinished) Descriptor() ([]byte, []int)
- func (m *BuildEvent_InvocationAttemptFinished) GetExitCode() *google_protobuf3.Int32Value
- func (m *BuildEvent_InvocationAttemptFinished) GetInvocationStatus() *BuildStatus
- func (*BuildEvent_InvocationAttemptFinished) ProtoMessage()
- func (m *BuildEvent_InvocationAttemptFinished) Reset()
- func (m *BuildEvent_InvocationAttemptFinished) String() string
- type BuildEvent_InvocationAttemptFinished_
- type BuildEvent_InvocationAttemptStarted
- func (*BuildEvent_InvocationAttemptStarted) Descriptor() ([]byte, []int)
- func (m *BuildEvent_InvocationAttemptStarted) GetAttemptNumber() int64
- func (*BuildEvent_InvocationAttemptStarted) ProtoMessage()
- func (m *BuildEvent_InvocationAttemptStarted) Reset()
- func (m *BuildEvent_InvocationAttemptStarted) String() string
- type BuildEvent_InvocationAttemptStarted_
- type BuildEvent_SourceFetchEvent
- type BuildStatus
- type BuildStatus_Result
- type ConsoleOutputStream
- type OrderedBuildEvent
- func (*OrderedBuildEvent) Descriptor() ([]byte, []int)
- func (m *OrderedBuildEvent) GetEvent() *BuildEvent
- func (m *OrderedBuildEvent) GetSequenceNumber() int64
- func (m *OrderedBuildEvent) GetStreamId() *StreamId
- func (*OrderedBuildEvent) ProtoMessage()
- func (m *OrderedBuildEvent) Reset()
- func (m *OrderedBuildEvent) String() string
- type PublishBuildEventClient
- type PublishBuildEventServer
- type PublishBuildEvent_PublishBuildToolEventStreamClient
- type PublishBuildEvent_PublishBuildToolEventStreamServer
- type PublishBuildToolEventStreamRequest
- func (*PublishBuildToolEventStreamRequest) Descriptor() ([]byte, []int)
- func (m *PublishBuildToolEventStreamRequest) GetEvent() *BuildEvent
- func (m *PublishBuildToolEventStreamRequest) GetNotificationKeywords() []string
- func (m *PublishBuildToolEventStreamRequest) GetOrderedBuildEvent() *OrderedBuildEvent
- func (m *PublishBuildToolEventStreamRequest) GetSequenceNumber() int64
- func (m *PublishBuildToolEventStreamRequest) GetStreamId() *StreamId
- func (*PublishBuildToolEventStreamRequest) ProtoMessage()
- func (m *PublishBuildToolEventStreamRequest) Reset()
- func (m *PublishBuildToolEventStreamRequest) String() string
- type PublishBuildToolEventStreamResponse
- func (*PublishBuildToolEventStreamResponse) Descriptor() ([]byte, []int)
- func (m *PublishBuildToolEventStreamResponse) GetSequenceNumber() int64
- func (m *PublishBuildToolEventStreamResponse) GetStreamId() *StreamId
- func (*PublishBuildToolEventStreamResponse) ProtoMessage()
- func (m *PublishBuildToolEventStreamResponse) Reset()
- func (m *PublishBuildToolEventStreamResponse) String() string
- type PublishLifecycleEventRequest
- func (*PublishLifecycleEventRequest) Descriptor() ([]byte, []int)
- func (m *PublishLifecycleEventRequest) GetBuildEvent() *OrderedBuildEvent
- func (m *PublishLifecycleEventRequest) GetNotificationKeywords() []string
- func (m *PublishLifecycleEventRequest) GetProjectId() string
- func (m *PublishLifecycleEventRequest) GetServiceLevel() PublishLifecycleEventRequest_ServiceLevel
- func (m *PublishLifecycleEventRequest) GetStreamTimeout() *google_protobuf4.Duration
- func (*PublishLifecycleEventRequest) ProtoMessage()
- func (m *PublishLifecycleEventRequest) Reset()
- func (m *PublishLifecycleEventRequest) String() string
- type PublishLifecycleEventRequest_ServiceLevel
- type StreamId
- type StreamId_BuildComponent
Constants ¶
This section is empty.
Variables ¶
var BuildEvent_BuildComponentStreamFinished_FinishType_name = map[int32]string{
0: "FINISH_TYPE_UNSPECIFIED",
1: "FINISHED",
2: "EXPIRED",
}
var BuildEvent_BuildComponentStreamFinished_FinishType_value = map[string]int32{
"FINISH_TYPE_UNSPECIFIED": 0,
"FINISHED": 1,
"EXPIRED": 2,
}
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,
}
var ConsoleOutputStream_name = map[int32]string{
0: "UNKNOWN",
1: "STDOUT",
2: "STDERR",
}
var ConsoleOutputStream_value = map[string]int32{
"UNKNOWN": 0,
"STDOUT": 1,
"STDERR": 2,
}
var PublishLifecycleEventRequest_ServiceLevel_name = map[int32]string{
0: "NONINTERACTIVE",
1: "INTERACTIVE",
}
var PublishLifecycleEventRequest_ServiceLevel_value = map[string]int32{
"NONINTERACTIVE": 0,
"INTERACTIVE": 1,
}
var StreamId_BuildComponent_name = map[int32]string{
0: "UNKNOWN_COMPONENT",
1: "CONTROLLER",
2: "WORKER",
3: "TOOL",
}
var StreamId_BuildComponent_value = map[string]int32{
"UNKNOWN_COMPONENT": 0,
"CONTROLLER": 1,
"WORKER": 2,
"TOOL": 3,
}
Functions ¶
func RegisterPublishBuildEventServer ¶
func RegisterPublishBuildEventServer(s *grpc.Server, srv PublishBuildEventServer)
Types ¶
type BuildEvent ¶
type BuildEvent struct { // The timestamp of this event. EventTime *google_protobuf2.Timestamp `protobuf:"bytes,1,opt,name=event_time,json=eventTime" json:"event_time,omitempty"` // ////////////////////////////////////////////////////////////////////////// // Events that indicate a state change of a build request in the build // queue. // // Types that are valid to be assigned to Event: // *BuildEvent_InvocationAttemptStarted_ // *BuildEvent_InvocationAttemptFinished_ // *BuildEvent_BuildEnqueued_ // *BuildEvent_BuildFinished_ // *BuildEvent_ConsoleOutput_ // *BuildEvent_ComponentStreamFinished // *BuildEvent_BazelEvent // *BuildEvent_BuildExecutionEvent // *BuildEvent_SourceFetchEvent Event isBuildEvent_Event `protobuf_oneof:"event"` }
An event representing some state change that occured in the build. This message does not include field for uniquely identifying an event.
func (*BuildEvent) Descriptor ¶
func (*BuildEvent) Descriptor() ([]byte, []int)
func (*BuildEvent) GetBazelEvent ¶
func (m *BuildEvent) GetBazelEvent() *google_protobuf1.Any
func (*BuildEvent) GetBuildEnqueued ¶
func (m *BuildEvent) GetBuildEnqueued() *BuildEvent_BuildEnqueued
func (*BuildEvent) GetBuildExecutionEvent ¶
func (m *BuildEvent) GetBuildExecutionEvent() *google_protobuf1.Any
func (*BuildEvent) GetBuildFinished ¶
func (m *BuildEvent) GetBuildFinished() *BuildEvent_BuildFinished
func (*BuildEvent) GetComponentStreamFinished ¶
func (m *BuildEvent) GetComponentStreamFinished() *BuildEvent_BuildComponentStreamFinished
func (*BuildEvent) GetConsoleOutput ¶
func (m *BuildEvent) GetConsoleOutput() *BuildEvent_ConsoleOutput
func (*BuildEvent) GetEvent ¶
func (m *BuildEvent) GetEvent() isBuildEvent_Event
func (*BuildEvent) GetEventTime ¶
func (m *BuildEvent) GetEventTime() *google_protobuf2.Timestamp
func (*BuildEvent) GetInvocationAttemptFinished ¶
func (m *BuildEvent) GetInvocationAttemptFinished() *BuildEvent_InvocationAttemptFinished
func (*BuildEvent) GetInvocationAttemptStarted ¶
func (m *BuildEvent) GetInvocationAttemptStarted() *BuildEvent_InvocationAttemptStarted
func (*BuildEvent) GetSourceFetchEvent ¶
func (m *BuildEvent) GetSourceFetchEvent() *google_protobuf1.Any
func (*BuildEvent) ProtoMessage ¶
func (*BuildEvent) ProtoMessage()
func (*BuildEvent) Reset ¶
func (m *BuildEvent) Reset()
func (*BuildEvent) String ¶
func (m *BuildEvent) String() string
func (*BuildEvent) XXX_OneofFuncs ¶
func (*BuildEvent) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
type BuildEvent_BazelEvent ¶
type BuildEvent_BazelEvent struct {
BazelEvent *google_protobuf1.Any `protobuf:"bytes,60,opt,name=bazel_event,json=bazelEvent,oneof"`
}
type BuildEvent_BuildComponentStreamFinished ¶
type BuildEvent_BuildComponentStreamFinished struct { // How the event stream finished. Type BuildEvent_BuildComponentStreamFinished_FinishType `` /* 136-byte string literal not displayed */ }
Notification of the end of a build event stream published by a build component other than CONTROLLER (See StreamId.BuildComponents).
func (*BuildEvent_BuildComponentStreamFinished) Descriptor ¶
func (*BuildEvent_BuildComponentStreamFinished) Descriptor() ([]byte, []int)
func (*BuildEvent_BuildComponentStreamFinished) ProtoMessage ¶
func (*BuildEvent_BuildComponentStreamFinished) ProtoMessage()
func (*BuildEvent_BuildComponentStreamFinished) Reset ¶
func (m *BuildEvent_BuildComponentStreamFinished) Reset()
func (*BuildEvent_BuildComponentStreamFinished) String ¶
func (m *BuildEvent_BuildComponentStreamFinished) String() string
type BuildEvent_BuildComponentStreamFinished_FinishType ¶
type BuildEvent_BuildComponentStreamFinished_FinishType int32
How did the event stream finish.
const ( // Unknown or unspecified; callers should never set this value. BuildEvent_BuildComponentStreamFinished_FINISH_TYPE_UNSPECIFIED BuildEvent_BuildComponentStreamFinished_FinishType = 0 // Set by the event publisher to indicate a build event stream is // finished. BuildEvent_BuildComponentStreamFinished_FINISHED BuildEvent_BuildComponentStreamFinished_FinishType = 1 // Set by the WatchBuild RPC server when the publisher of a build event // stream stops publishing events without publishing a // BuildComponentStreamFinished event whose type equals FINISHED. BuildEvent_BuildComponentStreamFinished_EXPIRED BuildEvent_BuildComponentStreamFinished_FinishType = 2 )
func (BuildEvent_BuildComponentStreamFinished_FinishType) EnumDescriptor ¶
func (BuildEvent_BuildComponentStreamFinished_FinishType) EnumDescriptor() ([]byte, []int)
func (BuildEvent_BuildComponentStreamFinished_FinishType) String ¶
func (x BuildEvent_BuildComponentStreamFinished_FinishType) String() string
type BuildEvent_BuildEnqueued ¶
type BuildEvent_BuildEnqueued struct { }
Notification that the build request is enqueued. It could happen when a new build request is inserted into the build queue, or when a build request is put back into the build queue due to a previous build failure.
func (*BuildEvent_BuildEnqueued) Descriptor ¶
func (*BuildEvent_BuildEnqueued) Descriptor() ([]byte, []int)
func (*BuildEvent_BuildEnqueued) ProtoMessage ¶
func (*BuildEvent_BuildEnqueued) ProtoMessage()
func (*BuildEvent_BuildEnqueued) Reset ¶
func (m *BuildEvent_BuildEnqueued) Reset()
func (*BuildEvent_BuildEnqueued) String ¶
func (m *BuildEvent_BuildEnqueued) String() string
type BuildEvent_BuildEnqueued_ ¶
type BuildEvent_BuildEnqueued_ struct {
BuildEnqueued *BuildEvent_BuildEnqueued `protobuf:"bytes,53,opt,name=build_enqueued,json=buildEnqueued,oneof"`
}
type BuildEvent_BuildExecutionEvent ¶
type BuildEvent_BuildExecutionEvent struct {
BuildExecutionEvent *google_protobuf1.Any `protobuf:"bytes,61,opt,name=build_execution_event,json=buildExecutionEvent,oneof"`
}
type BuildEvent_BuildFinished ¶
type BuildEvent_BuildFinished struct { // Final status of the build. Status *BuildStatus `protobuf:"bytes,1,opt,name=status" json:"status,omitempty"` }
Notification that the build request has finished, and no further invocations will occur. Note that this applies to the entire Build. Individual invocations trigger InvocationFinished when they finish.
func (*BuildEvent_BuildFinished) Descriptor ¶
func (*BuildEvent_BuildFinished) Descriptor() ([]byte, []int)
func (*BuildEvent_BuildFinished) GetStatus ¶
func (m *BuildEvent_BuildFinished) GetStatus() *BuildStatus
func (*BuildEvent_BuildFinished) ProtoMessage ¶
func (*BuildEvent_BuildFinished) ProtoMessage()
func (*BuildEvent_BuildFinished) Reset ¶
func (m *BuildEvent_BuildFinished) Reset()
func (*BuildEvent_BuildFinished) String ¶
func (m *BuildEvent_BuildFinished) String() string
type BuildEvent_BuildFinished_ ¶
type BuildEvent_BuildFinished_ struct {
BuildFinished *BuildEvent_BuildFinished `protobuf:"bytes,55,opt,name=build_finished,json=buildFinished,oneof"`
}
type BuildEvent_ComponentStreamFinished ¶
type BuildEvent_ComponentStreamFinished struct {
ComponentStreamFinished *BuildEvent_BuildComponentStreamFinished `protobuf:"bytes,59,opt,name=component_stream_finished,json=componentStreamFinished,oneof"`
}
type BuildEvent_ConsoleOutput ¶
type BuildEvent_ConsoleOutput struct { // The output stream type. Type ConsoleOutputStream `protobuf:"varint,1,opt,name=type,enum=google.devtools.build.v1.ConsoleOutputStream" json:"type,omitempty"` // The output stream content. // // Types that are valid to be assigned to Output: // *BuildEvent_ConsoleOutput_TextOutput // *BuildEvent_ConsoleOutput_BinaryOutput Output isBuildEvent_ConsoleOutput_Output `protobuf_oneof:"output"` }
Textual output written to standard output or standard error.
func (*BuildEvent_ConsoleOutput) Descriptor ¶
func (*BuildEvent_ConsoleOutput) Descriptor() ([]byte, []int)
func (*BuildEvent_ConsoleOutput) GetBinaryOutput ¶
func (m *BuildEvent_ConsoleOutput) GetBinaryOutput() []byte
func (*BuildEvent_ConsoleOutput) GetOutput ¶
func (m *BuildEvent_ConsoleOutput) GetOutput() isBuildEvent_ConsoleOutput_Output
func (*BuildEvent_ConsoleOutput) GetTextOutput ¶
func (m *BuildEvent_ConsoleOutput) GetTextOutput() string
func (*BuildEvent_ConsoleOutput) GetType ¶
func (m *BuildEvent_ConsoleOutput) GetType() ConsoleOutputStream
func (*BuildEvent_ConsoleOutput) ProtoMessage ¶
func (*BuildEvent_ConsoleOutput) ProtoMessage()
func (*BuildEvent_ConsoleOutput) Reset ¶
func (m *BuildEvent_ConsoleOutput) Reset()
func (*BuildEvent_ConsoleOutput) String ¶
func (m *BuildEvent_ConsoleOutput) String() string
func (*BuildEvent_ConsoleOutput) XXX_OneofFuncs ¶
func (*BuildEvent_ConsoleOutput) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
type BuildEvent_ConsoleOutput_ ¶
type BuildEvent_ConsoleOutput_ struct {
ConsoleOutput *BuildEvent_ConsoleOutput `protobuf:"bytes,56,opt,name=console_output,json=consoleOutput,oneof"`
}
type BuildEvent_ConsoleOutput_BinaryOutput ¶
type BuildEvent_ConsoleOutput_BinaryOutput struct {
BinaryOutput []byte `protobuf:"bytes,3,opt,name=binary_output,json=binaryOutput,proto3,oneof"`
}
type BuildEvent_ConsoleOutput_TextOutput ¶
type BuildEvent_ConsoleOutput_TextOutput struct {
TextOutput string `protobuf:"bytes,2,opt,name=text_output,json=textOutput,oneof"`
}
type BuildEvent_InvocationAttemptFinished ¶
type BuildEvent_InvocationAttemptFinished struct { // The exit code of the build tool. ExitCode *google_protobuf3.Int32Value `protobuf:"bytes,2,opt,name=exit_code,json=exitCode" json:"exit_code,omitempty"` // Final status of the invocation. InvocationStatus *BuildStatus `protobuf:"bytes,3,opt,name=invocation_status,json=invocationStatus" json:"invocation_status,omitempty"` }
Notification that an invocation attempt has finished.
func (*BuildEvent_InvocationAttemptFinished) Descriptor ¶
func (*BuildEvent_InvocationAttemptFinished) Descriptor() ([]byte, []int)
func (*BuildEvent_InvocationAttemptFinished) GetExitCode ¶
func (m *BuildEvent_InvocationAttemptFinished) GetExitCode() *google_protobuf3.Int32Value
func (*BuildEvent_InvocationAttemptFinished) GetInvocationStatus ¶
func (m *BuildEvent_InvocationAttemptFinished) GetInvocationStatus() *BuildStatus
func (*BuildEvent_InvocationAttemptFinished) ProtoMessage ¶
func (*BuildEvent_InvocationAttemptFinished) ProtoMessage()
func (*BuildEvent_InvocationAttemptFinished) Reset ¶
func (m *BuildEvent_InvocationAttemptFinished) Reset()
func (*BuildEvent_InvocationAttemptFinished) String ¶
func (m *BuildEvent_InvocationAttemptFinished) String() string
type BuildEvent_InvocationAttemptFinished_ ¶
type BuildEvent_InvocationAttemptFinished_ struct {
InvocationAttemptFinished *BuildEvent_InvocationAttemptFinished `protobuf:"bytes,52,opt,name=invocation_attempt_finished,json=invocationAttemptFinished,oneof"`
}
type BuildEvent_InvocationAttemptStarted ¶
type BuildEvent_InvocationAttemptStarted struct { // The number of the invocation attempt, starting at 1 and increasing by 1 // for each new attempt. Can be used to determine if there is a later // invocation attempt replacing the current one a client is processing. AttemptNumber int64 `protobuf:"varint,1,opt,name=attempt_number,json=attemptNumber" json:"attempt_number,omitempty"` }
Notification that the build system has attempted to run the build tool.
func (*BuildEvent_InvocationAttemptStarted) Descriptor ¶
func (*BuildEvent_InvocationAttemptStarted) Descriptor() ([]byte, []int)
func (*BuildEvent_InvocationAttemptStarted) GetAttemptNumber ¶
func (m *BuildEvent_InvocationAttemptStarted) GetAttemptNumber() int64
func (*BuildEvent_InvocationAttemptStarted) ProtoMessage ¶
func (*BuildEvent_InvocationAttemptStarted) ProtoMessage()
func (*BuildEvent_InvocationAttemptStarted) Reset ¶
func (m *BuildEvent_InvocationAttemptStarted) Reset()
func (*BuildEvent_InvocationAttemptStarted) String ¶
func (m *BuildEvent_InvocationAttemptStarted) String() string
type BuildEvent_InvocationAttemptStarted_ ¶
type BuildEvent_InvocationAttemptStarted_ struct {
InvocationAttemptStarted *BuildEvent_InvocationAttemptStarted `protobuf:"bytes,51,opt,name=invocation_attempt_started,json=invocationAttemptStarted,oneof"`
}
type BuildEvent_SourceFetchEvent ¶
type BuildEvent_SourceFetchEvent struct {
SourceFetchEvent *google_protobuf1.Any `protobuf:"bytes,62,opt,name=source_fetch_event,json=sourceFetchEvent,oneof"`
}
type BuildStatus ¶
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"` // Fine-grained diagnostic information to complement the status. Details *google_protobuf1.Any `protobuf:"bytes,2,opt,name=details" json:"details,omitempty"` }
Status used for both invocation attempt and overall build completion.
func (*BuildStatus) Descriptor ¶
func (*BuildStatus) Descriptor() ([]byte, []int)
func (*BuildStatus) GetDetails ¶
func (m *BuildStatus) GetDetails() *google_protobuf1.Any
func (*BuildStatus) GetResult ¶
func (m *BuildStatus) GetResult() BuildStatus_Result
func (*BuildStatus) ProtoMessage ¶
func (*BuildStatus) ProtoMessage()
func (*BuildStatus) Reset ¶
func (m *BuildStatus) Reset()
func (*BuildStatus) String ¶
func (m *BuildStatus) String() string
type BuildStatus_Result ¶
type BuildStatus_Result int32
The end result of the Build.
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 )
func (BuildStatus_Result) EnumDescriptor ¶
func (BuildStatus_Result) EnumDescriptor() ([]byte, []int)
func (BuildStatus_Result) String ¶
func (x BuildStatus_Result) String() string
type ConsoleOutputStream ¶
type ConsoleOutputStream int32
The type of console output stream.
const ( // Unspecified or unknown. ConsoleOutputStream_UNKNOWN ConsoleOutputStream = 0 // Normal output stream. ConsoleOutputStream_STDOUT ConsoleOutputStream = 1 // Error output stream. ConsoleOutputStream_STDERR ConsoleOutputStream = 2 )
func (ConsoleOutputStream) EnumDescriptor ¶
func (ConsoleOutputStream) EnumDescriptor() ([]byte, []int)
func (ConsoleOutputStream) String ¶
func (x ConsoleOutputStream) String() string
type OrderedBuildEvent ¶
type OrderedBuildEvent struct { // Which build event stream this event belongs to. StreamId *StreamId `protobuf:"bytes,1,opt,name=stream_id,json=streamId" json:"stream_id,omitempty"` // The position of this event in the stream. The sequence numbers for a build // event stream should be a sequence of consecutive natural numbers starting // from one. (1, 2, 3, ...) SequenceNumber int64 `protobuf:"varint,2,opt,name=sequence_number,json=sequenceNumber" json:"sequence_number,omitempty"` // The actual event. Event *BuildEvent `protobuf:"bytes,3,opt,name=event" json:"event,omitempty"` }
Build event with contextual information about the stream it belongs to and its position in that stream.
func (*OrderedBuildEvent) Descriptor ¶
func (*OrderedBuildEvent) Descriptor() ([]byte, []int)
func (*OrderedBuildEvent) GetEvent ¶
func (m *OrderedBuildEvent) GetEvent() *BuildEvent
func (*OrderedBuildEvent) GetSequenceNumber ¶
func (m *OrderedBuildEvent) GetSequenceNumber() int64
func (*OrderedBuildEvent) GetStreamId ¶
func (m *OrderedBuildEvent) GetStreamId() *StreamId
func (*OrderedBuildEvent) ProtoMessage ¶
func (*OrderedBuildEvent) ProtoMessage()
func (*OrderedBuildEvent) Reset ¶
func (m *OrderedBuildEvent) Reset()
func (*OrderedBuildEvent) String ¶
func (m *OrderedBuildEvent) String() string
type PublishBuildEventClient ¶
type PublishBuildEventClient interface { // Publish a build event stating the new state of a build (typically from the // build queue). If the event is a BuildEnqueued event, also register the new // build request ID and its build type to BES. // // The backend will persist the event and deliver it to registered frontend // jobs immediately without batching. // // The commit status of the request is reported by the RPC's util_status() // function. The error code is the canoncial error code defined in // //util/task/codes.proto. PublishLifecycleEvent(ctx context.Context, in *PublishLifecycleEventRequest, opts ...grpc.CallOption) (*google_protobuf5.Empty, error) // Publish build tool events belonging to the same stream to a backend job // using bidirectional streaming. PublishBuildToolEventStream(ctx context.Context, opts ...grpc.CallOption) (PublishBuildEvent_PublishBuildToolEventStreamClient, error) }
func NewPublishBuildEventClient ¶
func NewPublishBuildEventClient(cc *grpc.ClientConn) PublishBuildEventClient
type PublishBuildEventServer ¶
type PublishBuildEventServer interface { // Publish a build event stating the new state of a build (typically from the // build queue). If the event is a BuildEnqueued event, also register the new // build request ID and its build type to BES. // // The backend will persist the event and deliver it to registered frontend // jobs immediately without batching. // // The commit status of the request is reported by the RPC's util_status() // function. The error code is the canoncial error code defined in // //util/task/codes.proto. PublishLifecycleEvent(context.Context, *PublishLifecycleEventRequest) (*google_protobuf5.Empty, error) // Publish build tool events belonging to the same stream to a backend job // using bidirectional streaming. PublishBuildToolEventStream(PublishBuildEvent_PublishBuildToolEventStreamServer) error }
type PublishBuildEvent_PublishBuildToolEventStreamClient ¶
type PublishBuildEvent_PublishBuildToolEventStreamClient interface { Send(*OrderedBuildEvent) error Recv() (*PublishBuildToolEventStreamResponse, error) grpc.ClientStream }
type PublishBuildEvent_PublishBuildToolEventStreamServer ¶
type PublishBuildEvent_PublishBuildToolEventStreamServer interface { Send(*PublishBuildToolEventStreamResponse) error Recv() (*OrderedBuildEvent, error) grpc.ServerStream }
type PublishBuildToolEventStreamRequest ¶
type PublishBuildToolEventStreamRequest struct { // Which build event stream this event belongs to. StreamId *StreamId `protobuf:"bytes,1,opt,name=stream_id,json=streamId" json:"stream_id,omitempty"` // The position of this event in the stream. The sequence numbers for a build // event stream should be a sequence of consecutive natural numbers starting // from one. (1, 2, 3, ...) SequenceNumber int64 `protobuf:"varint,2,opt,name=sequence_number,json=sequenceNumber" json:"sequence_number,omitempty"` // The actual event. Event *BuildEvent `protobuf:"bytes,3,opt,name=event" json:"event,omitempty"` // The build event with position info. // New publishing clients should use this field rather than the 3 above. OrderedBuildEvent *OrderedBuildEvent `protobuf:"bytes,4,opt,name=ordered_build_event,json=orderedBuildEvent" json:"ordered_build_event,omitempty"` // The keywords to be attached to the notification which notifies the start // of a new build event stream. BES only reads this field when sequence_number // or ordered_build_event.sequence_number is 1 in this message. If this field // is empty, BES will not publish notification messages for this stream. NotificationKeywords []string `protobuf:"bytes,5,rep,name=notification_keywords,json=notificationKeywords" json:"notification_keywords,omitempty"` }
func (*PublishBuildToolEventStreamRequest) Descriptor ¶
func (*PublishBuildToolEventStreamRequest) Descriptor() ([]byte, []int)
func (*PublishBuildToolEventStreamRequest) GetEvent ¶
func (m *PublishBuildToolEventStreamRequest) GetEvent() *BuildEvent
func (*PublishBuildToolEventStreamRequest) GetNotificationKeywords ¶
func (m *PublishBuildToolEventStreamRequest) GetNotificationKeywords() []string
func (*PublishBuildToolEventStreamRequest) GetOrderedBuildEvent ¶
func (m *PublishBuildToolEventStreamRequest) GetOrderedBuildEvent() *OrderedBuildEvent
func (*PublishBuildToolEventStreamRequest) GetSequenceNumber ¶
func (m *PublishBuildToolEventStreamRequest) GetSequenceNumber() int64
func (*PublishBuildToolEventStreamRequest) GetStreamId ¶
func (m *PublishBuildToolEventStreamRequest) GetStreamId() *StreamId
func (*PublishBuildToolEventStreamRequest) ProtoMessage ¶
func (*PublishBuildToolEventStreamRequest) ProtoMessage()
func (*PublishBuildToolEventStreamRequest) Reset ¶
func (m *PublishBuildToolEventStreamRequest) Reset()
func (*PublishBuildToolEventStreamRequest) String ¶
func (m *PublishBuildToolEventStreamRequest) String() string
type PublishBuildToolEventStreamResponse ¶
type PublishBuildToolEventStreamResponse struct { // The stream that contains this event. StreamId *StreamId `protobuf:"bytes,1,opt,name=stream_id,json=streamId" json:"stream_id,omitempty"` // The sequence number of this event that has been committed. SequenceNumber int64 `protobuf:"varint,2,opt,name=sequence_number,json=sequenceNumber" json:"sequence_number,omitempty"` }
States which event has been committed. Any failure to commit will cause RPC errors, hence not recorded by this proto.
func (*PublishBuildToolEventStreamResponse) Descriptor ¶
func (*PublishBuildToolEventStreamResponse) Descriptor() ([]byte, []int)
func (*PublishBuildToolEventStreamResponse) GetSequenceNumber ¶
func (m *PublishBuildToolEventStreamResponse) GetSequenceNumber() int64
func (*PublishBuildToolEventStreamResponse) GetStreamId ¶
func (m *PublishBuildToolEventStreamResponse) GetStreamId() *StreamId
func (*PublishBuildToolEventStreamResponse) ProtoMessage ¶
func (*PublishBuildToolEventStreamResponse) ProtoMessage()
func (*PublishBuildToolEventStreamResponse) Reset ¶
func (m *PublishBuildToolEventStreamResponse) Reset()
func (*PublishBuildToolEventStreamResponse) String ¶
func (m *PublishBuildToolEventStreamResponse) String() string
type PublishLifecycleEventRequest ¶
type PublishLifecycleEventRequest struct { // The interactivity of this build. ServiceLevel PublishLifecycleEventRequest_ServiceLevel `` /* 163-byte string literal not displayed */ // The lifecycle build event. If this is a build tool event, the RPC will fail // with INVALID_REQUEST. BuildEvent *OrderedBuildEvent `protobuf:"bytes,2,opt,name=build_event,json=buildEvent" json:"build_event,omitempty"` // If the next event for this build or invocation (depending on the event // type) hasn't been published after this duration from when {build_event} // is written to BES, consider this stream expired. If this field is not set, // BES backend will use its own default value. StreamTimeout *google_protobuf4.Duration `protobuf:"bytes,3,opt,name=stream_timeout,json=streamTimeout" json:"stream_timeout,omitempty"` // Additional information about a build request. These are define by the event // publishers, and the Build Event Service does not validate or interpret // them. They are used while notifying internal systems of new builds and // invocations if the OrderedBuildEvent.event type is // BuildEnqueued/InvocationAttemptStarted. NotificationKeywords []string `protobuf:"bytes,4,rep,name=notification_keywords,json=notificationKeywords" json:"notification_keywords,omitempty"` // This field identifies which project (if any) the build is associated with. ProjectId string `protobuf:"bytes,6,opt,name=project_id,json=projectId" json:"project_id,omitempty"` }
Publishes 'lifecycle events' that update the high-level state of a build:
- BuildEnqueued: When a build is scheduled.
- InvocationAttemptStarted: When work for a build starts; there can be multiple invocations for a build (e.g. retries).
- InvocationAttemptCompleted: When work for a build finishes.
- BuildFinished: When a build is finished.
func (*PublishLifecycleEventRequest) Descriptor ¶
func (*PublishLifecycleEventRequest) Descriptor() ([]byte, []int)
func (*PublishLifecycleEventRequest) GetBuildEvent ¶
func (m *PublishLifecycleEventRequest) GetBuildEvent() *OrderedBuildEvent
func (*PublishLifecycleEventRequest) GetNotificationKeywords ¶
func (m *PublishLifecycleEventRequest) GetNotificationKeywords() []string
func (*PublishLifecycleEventRequest) GetProjectId ¶
func (m *PublishLifecycleEventRequest) GetProjectId() string
func (*PublishLifecycleEventRequest) GetServiceLevel ¶
func (m *PublishLifecycleEventRequest) GetServiceLevel() PublishLifecycleEventRequest_ServiceLevel
func (*PublishLifecycleEventRequest) GetStreamTimeout ¶
func (m *PublishLifecycleEventRequest) GetStreamTimeout() *google_protobuf4.Duration
func (*PublishLifecycleEventRequest) ProtoMessage ¶
func (*PublishLifecycleEventRequest) ProtoMessage()
func (*PublishLifecycleEventRequest) Reset ¶
func (m *PublishLifecycleEventRequest) Reset()
func (*PublishLifecycleEventRequest) String ¶
func (m *PublishLifecycleEventRequest) String() string
type PublishLifecycleEventRequest_ServiceLevel ¶
type PublishLifecycleEventRequest_ServiceLevel int32
The service level of the build request. Backends only uses this value when the BuildEnqueued event is published to determine what level of service this build should receive.
const ( // Non-interactive builds can tolerate longer event latencies. This is the // default ServiceLevel if callers do not specify one. PublishLifecycleEventRequest_NONINTERACTIVE PublishLifecycleEventRequest_ServiceLevel = 0 // The events of an interactive build should be delivered with low latency. PublishLifecycleEventRequest_INTERACTIVE PublishLifecycleEventRequest_ServiceLevel = 1 )
func (PublishLifecycleEventRequest_ServiceLevel) EnumDescriptor ¶
func (PublishLifecycleEventRequest_ServiceLevel) EnumDescriptor() ([]byte, []int)
func (PublishLifecycleEventRequest_ServiceLevel) String ¶
func (x PublishLifecycleEventRequest_ServiceLevel) String() string
type StreamId ¶
type StreamId struct { // The id of a Build message. BuildId string `protobuf:"bytes,1,opt,name=build_id,json=buildId" json:"build_id,omitempty"` // The unique invocation ID within this build. // It should be the same as {invocation} (below) during the migration. InvocationId string `protobuf:"bytes,6,opt,name=invocation_id,json=invocationId" json:"invocation_id,omitempty"` // The component that emitted this event. Component StreamId_BuildComponent `protobuf:"varint,3,opt,name=component,enum=google.devtools.build.v1.StreamId_BuildComponent" json:"component,omitempty"` }
Unique identifier for a build event stream.
func (*StreamId) Descriptor ¶
func (*StreamId) GetBuildId ¶
func (*StreamId) GetComponent ¶
func (m *StreamId) GetComponent() StreamId_BuildComponent
func (*StreamId) GetInvocationId ¶
func (*StreamId) ProtoMessage ¶
func (*StreamId) ProtoMessage()
type StreamId_BuildComponent ¶
type StreamId_BuildComponent int32
Which build component generates this event stream. Each build component may generate one event stream.
const ( // Unknown or unspecified; callers should never set this value. StreamId_UNKNOWN_COMPONENT StreamId_BuildComponent = 0 // A component that coordinates builds. StreamId_CONTROLLER StreamId_BuildComponent = 1 // A component that runs executables needed to complete a build. StreamId_WORKER StreamId_BuildComponent = 2 // A component that builds something. StreamId_TOOL StreamId_BuildComponent = 3 )
func (StreamId_BuildComponent) EnumDescriptor ¶
func (StreamId_BuildComponent) EnumDescriptor() ([]byte, []int)
func (StreamId_BuildComponent) String ¶
func (x StreamId_BuildComponent) String() string