1 // Code generated by protoc-gen-go. DO NOT EDIT.
2 // source: google/devtools/build/v1/build_events.proto
5 Package build is a generated protocol buffer package.
7 It is generated from these files:
8 google/devtools/build/v1/build_events.proto
9 google/devtools/build/v1/build_status.proto
10 google/devtools/build/v1/publish_build_event.proto
12 It has these top-level messages:
16 PublishLifecycleEventRequest
17 PublishBuildToolEventStreamResponse
19 PublishBuildToolEventStreamRequest
23 import proto "github.com/golang/protobuf/proto"
26 import _ "google.golang.org/genproto/googleapis/api/annotations"
27 import google_protobuf1 "github.com/golang/protobuf/ptypes/any"
28 import google_protobuf2 "github.com/golang/protobuf/ptypes/timestamp"
29 import google_protobuf3 "github.com/golang/protobuf/ptypes/wrappers"
30 import _ "google.golang.org/genproto/googleapis/rpc/status"
32 // Reference imports to suppress errors if they are not otherwise used.
37 // This is a compile-time assertion to ensure that this generated file
38 // is compatible with the proto package it is being compiled against.
39 // A compilation error at this line likely means your copy of the
40 // proto package needs to be updated.
41 const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
43 // The type of console output stream.
44 type ConsoleOutputStream int32
47 // Unspecified or unknown.
48 ConsoleOutputStream_UNKNOWN ConsoleOutputStream = 0
49 // Normal output stream.
50 ConsoleOutputStream_STDOUT ConsoleOutputStream = 1
51 // Error output stream.
52 ConsoleOutputStream_STDERR ConsoleOutputStream = 2
55 var ConsoleOutputStream_name = map[int32]string{
60 var ConsoleOutputStream_value = map[string]int32{
66 func (x ConsoleOutputStream) String() string {
67 return proto.EnumName(ConsoleOutputStream_name, int32(x))
69 func (ConsoleOutputStream) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
71 // How did the event stream finish.
72 type BuildEvent_BuildComponentStreamFinished_FinishType int32
75 // Unknown or unspecified; callers should never set this value.
76 BuildEvent_BuildComponentStreamFinished_FINISH_TYPE_UNSPECIFIED BuildEvent_BuildComponentStreamFinished_FinishType = 0
77 // Set by the event publisher to indicate a build event stream is
79 BuildEvent_BuildComponentStreamFinished_FINISHED BuildEvent_BuildComponentStreamFinished_FinishType = 1
80 // Set by the WatchBuild RPC server when the publisher of a build event
81 // stream stops publishing events without publishing a
82 // BuildComponentStreamFinished event whose type equals FINISHED.
83 BuildEvent_BuildComponentStreamFinished_EXPIRED BuildEvent_BuildComponentStreamFinished_FinishType = 2
86 var BuildEvent_BuildComponentStreamFinished_FinishType_name = map[int32]string{
87 0: "FINISH_TYPE_UNSPECIFIED",
91 var BuildEvent_BuildComponentStreamFinished_FinishType_value = map[string]int32{
92 "FINISH_TYPE_UNSPECIFIED": 0,
97 func (x BuildEvent_BuildComponentStreamFinished_FinishType) String() string {
98 return proto.EnumName(BuildEvent_BuildComponentStreamFinished_FinishType_name, int32(x))
100 func (BuildEvent_BuildComponentStreamFinished_FinishType) EnumDescriptor() ([]byte, []int) {
101 return fileDescriptor0, []int{0, 5, 0}
104 // Which build component generates this event stream. Each build component
105 // may generate one event stream.
106 type StreamId_BuildComponent int32
109 // Unknown or unspecified; callers should never set this value.
110 StreamId_UNKNOWN_COMPONENT StreamId_BuildComponent = 0
111 // A component that coordinates builds.
112 StreamId_CONTROLLER StreamId_BuildComponent = 1
113 // A component that runs executables needed to complete a build.
114 StreamId_WORKER StreamId_BuildComponent = 2
115 // A component that builds something.
116 StreamId_TOOL StreamId_BuildComponent = 3
119 var StreamId_BuildComponent_name = map[int32]string{
120 0: "UNKNOWN_COMPONENT",
125 var StreamId_BuildComponent_value = map[string]int32{
126 "UNKNOWN_COMPONENT": 0,
132 func (x StreamId_BuildComponent) String() string {
133 return proto.EnumName(StreamId_BuildComponent_name, int32(x))
135 func (StreamId_BuildComponent) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{1, 0} }
137 // An event representing some state change that occured in the build. This
138 // message does not include field for uniquely identifying an event.
139 type BuildEvent struct {
140 // The timestamp of this event.
141 EventTime *google_protobuf2.Timestamp `protobuf:"bytes,1,opt,name=event_time,json=eventTime" json:"event_time,omitempty"`
142 // //////////////////////////////////////////////////////////////////////////
143 // Events that indicate a state change of a build request in the build
146 // Types that are valid to be assigned to Event:
147 // *BuildEvent_InvocationAttemptStarted_
148 // *BuildEvent_InvocationAttemptFinished_
149 // *BuildEvent_BuildEnqueued_
150 // *BuildEvent_BuildFinished_
151 // *BuildEvent_ConsoleOutput_
152 // *BuildEvent_ComponentStreamFinished
153 // *BuildEvent_BazelEvent
154 // *BuildEvent_BuildExecutionEvent
155 // *BuildEvent_SourceFetchEvent
156 Event isBuildEvent_Event `protobuf_oneof:"event"`
159 func (m *BuildEvent) Reset() { *m = BuildEvent{} }
160 func (m *BuildEvent) String() string { return proto.CompactTextString(m) }
161 func (*BuildEvent) ProtoMessage() {}
162 func (*BuildEvent) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
164 type isBuildEvent_Event interface {
168 type BuildEvent_InvocationAttemptStarted_ struct {
169 InvocationAttemptStarted *BuildEvent_InvocationAttemptStarted `protobuf:"bytes,51,opt,name=invocation_attempt_started,json=invocationAttemptStarted,oneof"`
171 type BuildEvent_InvocationAttemptFinished_ struct {
172 InvocationAttemptFinished *BuildEvent_InvocationAttemptFinished `protobuf:"bytes,52,opt,name=invocation_attempt_finished,json=invocationAttemptFinished,oneof"`
174 type BuildEvent_BuildEnqueued_ struct {
175 BuildEnqueued *BuildEvent_BuildEnqueued `protobuf:"bytes,53,opt,name=build_enqueued,json=buildEnqueued,oneof"`
177 type BuildEvent_BuildFinished_ struct {
178 BuildFinished *BuildEvent_BuildFinished `protobuf:"bytes,55,opt,name=build_finished,json=buildFinished,oneof"`
180 type BuildEvent_ConsoleOutput_ struct {
181 ConsoleOutput *BuildEvent_ConsoleOutput `protobuf:"bytes,56,opt,name=console_output,json=consoleOutput,oneof"`
183 type BuildEvent_ComponentStreamFinished struct {
184 ComponentStreamFinished *BuildEvent_BuildComponentStreamFinished `protobuf:"bytes,59,opt,name=component_stream_finished,json=componentStreamFinished,oneof"`
186 type BuildEvent_BazelEvent struct {
187 BazelEvent *google_protobuf1.Any `protobuf:"bytes,60,opt,name=bazel_event,json=bazelEvent,oneof"`
189 type BuildEvent_BuildExecutionEvent struct {
190 BuildExecutionEvent *google_protobuf1.Any `protobuf:"bytes,61,opt,name=build_execution_event,json=buildExecutionEvent,oneof"`
192 type BuildEvent_SourceFetchEvent struct {
193 SourceFetchEvent *google_protobuf1.Any `protobuf:"bytes,62,opt,name=source_fetch_event,json=sourceFetchEvent,oneof"`
196 func (*BuildEvent_InvocationAttemptStarted_) isBuildEvent_Event() {}
197 func (*BuildEvent_InvocationAttemptFinished_) isBuildEvent_Event() {}
198 func (*BuildEvent_BuildEnqueued_) isBuildEvent_Event() {}
199 func (*BuildEvent_BuildFinished_) isBuildEvent_Event() {}
200 func (*BuildEvent_ConsoleOutput_) isBuildEvent_Event() {}
201 func (*BuildEvent_ComponentStreamFinished) isBuildEvent_Event() {}
202 func (*BuildEvent_BazelEvent) isBuildEvent_Event() {}
203 func (*BuildEvent_BuildExecutionEvent) isBuildEvent_Event() {}
204 func (*BuildEvent_SourceFetchEvent) isBuildEvent_Event() {}
206 func (m *BuildEvent) GetEvent() isBuildEvent_Event {
213 func (m *BuildEvent) GetEventTime() *google_protobuf2.Timestamp {
220 func (m *BuildEvent) GetInvocationAttemptStarted() *BuildEvent_InvocationAttemptStarted {
221 if x, ok := m.GetEvent().(*BuildEvent_InvocationAttemptStarted_); ok {
222 return x.InvocationAttemptStarted
227 func (m *BuildEvent) GetInvocationAttemptFinished() *BuildEvent_InvocationAttemptFinished {
228 if x, ok := m.GetEvent().(*BuildEvent_InvocationAttemptFinished_); ok {
229 return x.InvocationAttemptFinished
234 func (m *BuildEvent) GetBuildEnqueued() *BuildEvent_BuildEnqueued {
235 if x, ok := m.GetEvent().(*BuildEvent_BuildEnqueued_); ok {
236 return x.BuildEnqueued
241 func (m *BuildEvent) GetBuildFinished() *BuildEvent_BuildFinished {
242 if x, ok := m.GetEvent().(*BuildEvent_BuildFinished_); ok {
243 return x.BuildFinished
248 func (m *BuildEvent) GetConsoleOutput() *BuildEvent_ConsoleOutput {
249 if x, ok := m.GetEvent().(*BuildEvent_ConsoleOutput_); ok {
250 return x.ConsoleOutput
255 func (m *BuildEvent) GetComponentStreamFinished() *BuildEvent_BuildComponentStreamFinished {
256 if x, ok := m.GetEvent().(*BuildEvent_ComponentStreamFinished); ok {
257 return x.ComponentStreamFinished
262 func (m *BuildEvent) GetBazelEvent() *google_protobuf1.Any {
263 if x, ok := m.GetEvent().(*BuildEvent_BazelEvent); ok {
269 func (m *BuildEvent) GetBuildExecutionEvent() *google_protobuf1.Any {
270 if x, ok := m.GetEvent().(*BuildEvent_BuildExecutionEvent); ok {
271 return x.BuildExecutionEvent
276 func (m *BuildEvent) GetSourceFetchEvent() *google_protobuf1.Any {
277 if x, ok := m.GetEvent().(*BuildEvent_SourceFetchEvent); ok {
278 return x.SourceFetchEvent
283 // XXX_OneofFuncs is for the internal use of the proto package.
284 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{}) {
285 return _BuildEvent_OneofMarshaler, _BuildEvent_OneofUnmarshaler, _BuildEvent_OneofSizer, []interface{}{
286 (*BuildEvent_InvocationAttemptStarted_)(nil),
287 (*BuildEvent_InvocationAttemptFinished_)(nil),
288 (*BuildEvent_BuildEnqueued_)(nil),
289 (*BuildEvent_BuildFinished_)(nil),
290 (*BuildEvent_ConsoleOutput_)(nil),
291 (*BuildEvent_ComponentStreamFinished)(nil),
292 (*BuildEvent_BazelEvent)(nil),
293 (*BuildEvent_BuildExecutionEvent)(nil),
294 (*BuildEvent_SourceFetchEvent)(nil),
298 func _BuildEvent_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
299 m := msg.(*BuildEvent)
301 switch x := m.Event.(type) {
302 case *BuildEvent_InvocationAttemptStarted_:
303 b.EncodeVarint(51<<3 | proto.WireBytes)
304 if err := b.EncodeMessage(x.InvocationAttemptStarted); err != nil {
307 case *BuildEvent_InvocationAttemptFinished_:
308 b.EncodeVarint(52<<3 | proto.WireBytes)
309 if err := b.EncodeMessage(x.InvocationAttemptFinished); err != nil {
312 case *BuildEvent_BuildEnqueued_:
313 b.EncodeVarint(53<<3 | proto.WireBytes)
314 if err := b.EncodeMessage(x.BuildEnqueued); err != nil {
317 case *BuildEvent_BuildFinished_:
318 b.EncodeVarint(55<<3 | proto.WireBytes)
319 if err := b.EncodeMessage(x.BuildFinished); err != nil {
322 case *BuildEvent_ConsoleOutput_:
323 b.EncodeVarint(56<<3 | proto.WireBytes)
324 if err := b.EncodeMessage(x.ConsoleOutput); err != nil {
327 case *BuildEvent_ComponentStreamFinished:
328 b.EncodeVarint(59<<3 | proto.WireBytes)
329 if err := b.EncodeMessage(x.ComponentStreamFinished); err != nil {
332 case *BuildEvent_BazelEvent:
333 b.EncodeVarint(60<<3 | proto.WireBytes)
334 if err := b.EncodeMessage(x.BazelEvent); err != nil {
337 case *BuildEvent_BuildExecutionEvent:
338 b.EncodeVarint(61<<3 | proto.WireBytes)
339 if err := b.EncodeMessage(x.BuildExecutionEvent); err != nil {
342 case *BuildEvent_SourceFetchEvent:
343 b.EncodeVarint(62<<3 | proto.WireBytes)
344 if err := b.EncodeMessage(x.SourceFetchEvent); err != nil {
349 return fmt.Errorf("BuildEvent.Event has unexpected type %T", x)
354 func _BuildEvent_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
355 m := msg.(*BuildEvent)
357 case 51: // event.invocation_attempt_started
358 if wire != proto.WireBytes {
359 return true, proto.ErrInternalBadWireType
361 msg := new(BuildEvent_InvocationAttemptStarted)
362 err := b.DecodeMessage(msg)
363 m.Event = &BuildEvent_InvocationAttemptStarted_{msg}
365 case 52: // event.invocation_attempt_finished
366 if wire != proto.WireBytes {
367 return true, proto.ErrInternalBadWireType
369 msg := new(BuildEvent_InvocationAttemptFinished)
370 err := b.DecodeMessage(msg)
371 m.Event = &BuildEvent_InvocationAttemptFinished_{msg}
373 case 53: // event.build_enqueued
374 if wire != proto.WireBytes {
375 return true, proto.ErrInternalBadWireType
377 msg := new(BuildEvent_BuildEnqueued)
378 err := b.DecodeMessage(msg)
379 m.Event = &BuildEvent_BuildEnqueued_{msg}
381 case 55: // event.build_finished
382 if wire != proto.WireBytes {
383 return true, proto.ErrInternalBadWireType
385 msg := new(BuildEvent_BuildFinished)
386 err := b.DecodeMessage(msg)
387 m.Event = &BuildEvent_BuildFinished_{msg}
389 case 56: // event.console_output
390 if wire != proto.WireBytes {
391 return true, proto.ErrInternalBadWireType
393 msg := new(BuildEvent_ConsoleOutput)
394 err := b.DecodeMessage(msg)
395 m.Event = &BuildEvent_ConsoleOutput_{msg}
397 case 59: // event.component_stream_finished
398 if wire != proto.WireBytes {
399 return true, proto.ErrInternalBadWireType
401 msg := new(BuildEvent_BuildComponentStreamFinished)
402 err := b.DecodeMessage(msg)
403 m.Event = &BuildEvent_ComponentStreamFinished{msg}
405 case 60: // event.bazel_event
406 if wire != proto.WireBytes {
407 return true, proto.ErrInternalBadWireType
409 msg := new(google_protobuf1.Any)
410 err := b.DecodeMessage(msg)
411 m.Event = &BuildEvent_BazelEvent{msg}
413 case 61: // event.build_execution_event
414 if wire != proto.WireBytes {
415 return true, proto.ErrInternalBadWireType
417 msg := new(google_protobuf1.Any)
418 err := b.DecodeMessage(msg)
419 m.Event = &BuildEvent_BuildExecutionEvent{msg}
421 case 62: // event.source_fetch_event
422 if wire != proto.WireBytes {
423 return true, proto.ErrInternalBadWireType
425 msg := new(google_protobuf1.Any)
426 err := b.DecodeMessage(msg)
427 m.Event = &BuildEvent_SourceFetchEvent{msg}
434 func _BuildEvent_OneofSizer(msg proto.Message) (n int) {
435 m := msg.(*BuildEvent)
437 switch x := m.Event.(type) {
438 case *BuildEvent_InvocationAttemptStarted_:
439 s := proto.Size(x.InvocationAttemptStarted)
440 n += proto.SizeVarint(51<<3 | proto.WireBytes)
441 n += proto.SizeVarint(uint64(s))
443 case *BuildEvent_InvocationAttemptFinished_:
444 s := proto.Size(x.InvocationAttemptFinished)
445 n += proto.SizeVarint(52<<3 | proto.WireBytes)
446 n += proto.SizeVarint(uint64(s))
448 case *BuildEvent_BuildEnqueued_:
449 s := proto.Size(x.BuildEnqueued)
450 n += proto.SizeVarint(53<<3 | proto.WireBytes)
451 n += proto.SizeVarint(uint64(s))
453 case *BuildEvent_BuildFinished_:
454 s := proto.Size(x.BuildFinished)
455 n += proto.SizeVarint(55<<3 | proto.WireBytes)
456 n += proto.SizeVarint(uint64(s))
458 case *BuildEvent_ConsoleOutput_:
459 s := proto.Size(x.ConsoleOutput)
460 n += proto.SizeVarint(56<<3 | proto.WireBytes)
461 n += proto.SizeVarint(uint64(s))
463 case *BuildEvent_ComponentStreamFinished:
464 s := proto.Size(x.ComponentStreamFinished)
465 n += proto.SizeVarint(59<<3 | proto.WireBytes)
466 n += proto.SizeVarint(uint64(s))
468 case *BuildEvent_BazelEvent:
469 s := proto.Size(x.BazelEvent)
470 n += proto.SizeVarint(60<<3 | proto.WireBytes)
471 n += proto.SizeVarint(uint64(s))
473 case *BuildEvent_BuildExecutionEvent:
474 s := proto.Size(x.BuildExecutionEvent)
475 n += proto.SizeVarint(61<<3 | proto.WireBytes)
476 n += proto.SizeVarint(uint64(s))
478 case *BuildEvent_SourceFetchEvent:
479 s := proto.Size(x.SourceFetchEvent)
480 n += proto.SizeVarint(62<<3 | proto.WireBytes)
481 n += proto.SizeVarint(uint64(s))
485 panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
490 // Notification that the build system has attempted to run the build tool.
491 type BuildEvent_InvocationAttemptStarted struct {
492 // The number of the invocation attempt, starting at 1 and increasing by 1
493 // for each new attempt. Can be used to determine if there is a later
494 // invocation attempt replacing the current one a client is processing.
495 AttemptNumber int64 `protobuf:"varint,1,opt,name=attempt_number,json=attemptNumber" json:"attempt_number,omitempty"`
498 func (m *BuildEvent_InvocationAttemptStarted) Reset() { *m = BuildEvent_InvocationAttemptStarted{} }
499 func (m *BuildEvent_InvocationAttemptStarted) String() string { return proto.CompactTextString(m) }
500 func (*BuildEvent_InvocationAttemptStarted) ProtoMessage() {}
501 func (*BuildEvent_InvocationAttemptStarted) Descriptor() ([]byte, []int) {
502 return fileDescriptor0, []int{0, 0}
505 func (m *BuildEvent_InvocationAttemptStarted) GetAttemptNumber() int64 {
507 return m.AttemptNumber
512 // Notification that an invocation attempt has finished.
513 type BuildEvent_InvocationAttemptFinished struct {
514 // The exit code of the build tool.
515 ExitCode *google_protobuf3.Int32Value `protobuf:"bytes,2,opt,name=exit_code,json=exitCode" json:"exit_code,omitempty"`
516 // Final status of the invocation.
517 InvocationStatus *BuildStatus `protobuf:"bytes,3,opt,name=invocation_status,json=invocationStatus" json:"invocation_status,omitempty"`
520 func (m *BuildEvent_InvocationAttemptFinished) Reset() { *m = BuildEvent_InvocationAttemptFinished{} }
521 func (m *BuildEvent_InvocationAttemptFinished) String() string { return proto.CompactTextString(m) }
522 func (*BuildEvent_InvocationAttemptFinished) ProtoMessage() {}
523 func (*BuildEvent_InvocationAttemptFinished) Descriptor() ([]byte, []int) {
524 return fileDescriptor0, []int{0, 1}
527 func (m *BuildEvent_InvocationAttemptFinished) GetExitCode() *google_protobuf3.Int32Value {
534 func (m *BuildEvent_InvocationAttemptFinished) GetInvocationStatus() *BuildStatus {
536 return m.InvocationStatus
541 // Notification that the build request is enqueued. It could happen when
542 // a new build request is inserted into the build queue, or when a
543 // build request is put back into the build queue due to a previous build
545 type BuildEvent_BuildEnqueued struct {
548 func (m *BuildEvent_BuildEnqueued) Reset() { *m = BuildEvent_BuildEnqueued{} }
549 func (m *BuildEvent_BuildEnqueued) String() string { return proto.CompactTextString(m) }
550 func (*BuildEvent_BuildEnqueued) ProtoMessage() {}
551 func (*BuildEvent_BuildEnqueued) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 2} }
553 // Notification that the build request has finished, and no further
554 // invocations will occur. Note that this applies to the entire Build.
555 // Individual invocations trigger InvocationFinished when they finish.
556 type BuildEvent_BuildFinished struct {
557 // Final status of the build.
558 Status *BuildStatus `protobuf:"bytes,1,opt,name=status" json:"status,omitempty"`
561 func (m *BuildEvent_BuildFinished) Reset() { *m = BuildEvent_BuildFinished{} }
562 func (m *BuildEvent_BuildFinished) String() string { return proto.CompactTextString(m) }
563 func (*BuildEvent_BuildFinished) ProtoMessage() {}
564 func (*BuildEvent_BuildFinished) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 3} }
566 func (m *BuildEvent_BuildFinished) GetStatus() *BuildStatus {
573 // Textual output written to standard output or standard error.
574 type BuildEvent_ConsoleOutput struct {
575 // The output stream type.
576 Type ConsoleOutputStream `protobuf:"varint,1,opt,name=type,enum=google.devtools.build.v1.ConsoleOutputStream" json:"type,omitempty"`
577 // The output stream content.
579 // Types that are valid to be assigned to Output:
580 // *BuildEvent_ConsoleOutput_TextOutput
581 // *BuildEvent_ConsoleOutput_BinaryOutput
582 Output isBuildEvent_ConsoleOutput_Output `protobuf_oneof:"output"`
585 func (m *BuildEvent_ConsoleOutput) Reset() { *m = BuildEvent_ConsoleOutput{} }
586 func (m *BuildEvent_ConsoleOutput) String() string { return proto.CompactTextString(m) }
587 func (*BuildEvent_ConsoleOutput) ProtoMessage() {}
588 func (*BuildEvent_ConsoleOutput) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0, 4} }
590 type isBuildEvent_ConsoleOutput_Output interface {
591 isBuildEvent_ConsoleOutput_Output()
594 type BuildEvent_ConsoleOutput_TextOutput struct {
595 TextOutput string `protobuf:"bytes,2,opt,name=text_output,json=textOutput,oneof"`
597 type BuildEvent_ConsoleOutput_BinaryOutput struct {
598 BinaryOutput []byte `protobuf:"bytes,3,opt,name=binary_output,json=binaryOutput,proto3,oneof"`
601 func (*BuildEvent_ConsoleOutput_TextOutput) isBuildEvent_ConsoleOutput_Output() {}
602 func (*BuildEvent_ConsoleOutput_BinaryOutput) isBuildEvent_ConsoleOutput_Output() {}
604 func (m *BuildEvent_ConsoleOutput) GetOutput() isBuildEvent_ConsoleOutput_Output {
611 func (m *BuildEvent_ConsoleOutput) GetType() ConsoleOutputStream {
615 return ConsoleOutputStream_UNKNOWN
618 func (m *BuildEvent_ConsoleOutput) GetTextOutput() string {
619 if x, ok := m.GetOutput().(*BuildEvent_ConsoleOutput_TextOutput); ok {
625 func (m *BuildEvent_ConsoleOutput) GetBinaryOutput() []byte {
626 if x, ok := m.GetOutput().(*BuildEvent_ConsoleOutput_BinaryOutput); ok {
627 return x.BinaryOutput
632 // XXX_OneofFuncs is for the internal use of the proto package.
633 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{}) {
634 return _BuildEvent_ConsoleOutput_OneofMarshaler, _BuildEvent_ConsoleOutput_OneofUnmarshaler, _BuildEvent_ConsoleOutput_OneofSizer, []interface{}{
635 (*BuildEvent_ConsoleOutput_TextOutput)(nil),
636 (*BuildEvent_ConsoleOutput_BinaryOutput)(nil),
640 func _BuildEvent_ConsoleOutput_OneofMarshaler(msg proto.Message, b *proto.Buffer) error {
641 m := msg.(*BuildEvent_ConsoleOutput)
643 switch x := m.Output.(type) {
644 case *BuildEvent_ConsoleOutput_TextOutput:
645 b.EncodeVarint(2<<3 | proto.WireBytes)
646 b.EncodeStringBytes(x.TextOutput)
647 case *BuildEvent_ConsoleOutput_BinaryOutput:
648 b.EncodeVarint(3<<3 | proto.WireBytes)
649 b.EncodeRawBytes(x.BinaryOutput)
652 return fmt.Errorf("BuildEvent_ConsoleOutput.Output has unexpected type %T", x)
657 func _BuildEvent_ConsoleOutput_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error) {
658 m := msg.(*BuildEvent_ConsoleOutput)
660 case 2: // output.text_output
661 if wire != proto.WireBytes {
662 return true, proto.ErrInternalBadWireType
664 x, err := b.DecodeStringBytes()
665 m.Output = &BuildEvent_ConsoleOutput_TextOutput{x}
667 case 3: // output.binary_output
668 if wire != proto.WireBytes {
669 return true, proto.ErrInternalBadWireType
671 x, err := b.DecodeRawBytes(true)
672 m.Output = &BuildEvent_ConsoleOutput_BinaryOutput{x}
679 func _BuildEvent_ConsoleOutput_OneofSizer(msg proto.Message) (n int) {
680 m := msg.(*BuildEvent_ConsoleOutput)
682 switch x := m.Output.(type) {
683 case *BuildEvent_ConsoleOutput_TextOutput:
684 n += proto.SizeVarint(2<<3 | proto.WireBytes)
685 n += proto.SizeVarint(uint64(len(x.TextOutput)))
686 n += len(x.TextOutput)
687 case *BuildEvent_ConsoleOutput_BinaryOutput:
688 n += proto.SizeVarint(3<<3 | proto.WireBytes)
689 n += proto.SizeVarint(uint64(len(x.BinaryOutput)))
690 n += len(x.BinaryOutput)
693 panic(fmt.Sprintf("proto: unexpected type %T in oneof", x))
698 // Notification of the end of a build event stream published by a build
699 // component other than CONTROLLER (See StreamId.BuildComponents).
700 type BuildEvent_BuildComponentStreamFinished struct {
701 // How the event stream finished.
702 Type BuildEvent_BuildComponentStreamFinished_FinishType `protobuf:"varint,1,opt,name=type,enum=google.devtools.build.v1.BuildEvent_BuildComponentStreamFinished_FinishType" json:"type,omitempty"`
705 func (m *BuildEvent_BuildComponentStreamFinished) Reset() {
706 *m = BuildEvent_BuildComponentStreamFinished{}
708 func (m *BuildEvent_BuildComponentStreamFinished) String() string { return proto.CompactTextString(m) }
709 func (*BuildEvent_BuildComponentStreamFinished) ProtoMessage() {}
710 func (*BuildEvent_BuildComponentStreamFinished) Descriptor() ([]byte, []int) {
711 return fileDescriptor0, []int{0, 5}
714 func (m *BuildEvent_BuildComponentStreamFinished) GetType() BuildEvent_BuildComponentStreamFinished_FinishType {
718 return BuildEvent_BuildComponentStreamFinished_FINISH_TYPE_UNSPECIFIED
721 // Unique identifier for a build event stream.
722 type StreamId struct {
723 // The id of a Build message.
724 BuildId string `protobuf:"bytes,1,opt,name=build_id,json=buildId" json:"build_id,omitempty"`
725 // The unique invocation ID within this build.
726 // It should be the same as {invocation} (below) during the migration.
727 InvocationId string `protobuf:"bytes,6,opt,name=invocation_id,json=invocationId" json:"invocation_id,omitempty"`
728 // The component that emitted this event.
729 Component StreamId_BuildComponent `protobuf:"varint,3,opt,name=component,enum=google.devtools.build.v1.StreamId_BuildComponent" json:"component,omitempty"`
732 func (m *StreamId) Reset() { *m = StreamId{} }
733 func (m *StreamId) String() string { return proto.CompactTextString(m) }
734 func (*StreamId) ProtoMessage() {}
735 func (*StreamId) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
737 func (m *StreamId) GetBuildId() string {
744 func (m *StreamId) GetInvocationId() string {
746 return m.InvocationId
751 func (m *StreamId) GetComponent() StreamId_BuildComponent {
755 return StreamId_UNKNOWN_COMPONENT
759 proto.RegisterType((*BuildEvent)(nil), "google.devtools.build.v1.BuildEvent")
760 proto.RegisterType((*BuildEvent_InvocationAttemptStarted)(nil), "google.devtools.build.v1.BuildEvent.InvocationAttemptStarted")
761 proto.RegisterType((*BuildEvent_InvocationAttemptFinished)(nil), "google.devtools.build.v1.BuildEvent.InvocationAttemptFinished")
762 proto.RegisterType((*BuildEvent_BuildEnqueued)(nil), "google.devtools.build.v1.BuildEvent.BuildEnqueued")
763 proto.RegisterType((*BuildEvent_BuildFinished)(nil), "google.devtools.build.v1.BuildEvent.BuildFinished")
764 proto.RegisterType((*BuildEvent_ConsoleOutput)(nil), "google.devtools.build.v1.BuildEvent.ConsoleOutput")
765 proto.RegisterType((*BuildEvent_BuildComponentStreamFinished)(nil), "google.devtools.build.v1.BuildEvent.BuildComponentStreamFinished")
766 proto.RegisterType((*StreamId)(nil), "google.devtools.build.v1.StreamId")
767 proto.RegisterEnum("google.devtools.build.v1.ConsoleOutputStream", ConsoleOutputStream_name, ConsoleOutputStream_value)
768 proto.RegisterEnum("google.devtools.build.v1.BuildEvent_BuildComponentStreamFinished_FinishType", BuildEvent_BuildComponentStreamFinished_FinishType_name, BuildEvent_BuildComponentStreamFinished_FinishType_value)
769 proto.RegisterEnum("google.devtools.build.v1.StreamId_BuildComponent", StreamId_BuildComponent_name, StreamId_BuildComponent_value)
772 func init() { proto.RegisterFile("google/devtools/build/v1/build_events.proto", fileDescriptor0) }
774 var fileDescriptor0 = []byte{
775 // 927 bytes of a gzipped FileDescriptorProto
776 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xa4, 0x56, 0x6d, 0x6f, 0xe3, 0x44,
777 0x10, 0x8e, 0xdb, 0xa3, 0x4d, 0xa7, 0x49, 0xce, 0xb7, 0xc7, 0xa9, 0x8e, 0x5b, 0xf1, 0x52, 0x54,
778 0x09, 0x81, 0x70, 0xd4, 0x14, 0x74, 0x07, 0x47, 0x4f, 0xca, 0x8b, 0xab, 0x98, 0xeb, 0xd9, 0xd1,
779 0x26, 0xe5, 0x78, 0xf9, 0x10, 0x1c, 0x7b, 0x9b, 0xb3, 0x94, 0x78, 0x8d, 0xbd, 0x0e, 0x0d, 0x12,
780 0x82, 0x5f, 0x83, 0xc4, 0x1f, 0xe1, 0xc7, 0xf0, 0x07, 0xe0, 0x23, 0xf2, 0xee, 0xba, 0x49, 0xda,
781 0xa6, 0x77, 0x85, 0x6f, 0xbb, 0x33, 0xcf, 0x3c, 0xcf, 0xcc, 0xec, 0x8c, 0x65, 0xf8, 0x78, 0x44,
782 0xe9, 0x68, 0x4c, 0x6a, 0x3e, 0x99, 0x32, 0x4a, 0xc7, 0x49, 0x6d, 0x98, 0x06, 0x63, 0xbf, 0x36,
783 0x3d, 0x14, 0x87, 0x01, 0x99, 0x92, 0x90, 0x25, 0x46, 0x14, 0x53, 0x46, 0x91, 0x26, 0xc0, 0x46,
784 0x0e, 0x36, 0x38, 0xc6, 0x98, 0x1e, 0xea, 0x7b, 0x92, 0xc6, 0x8d, 0x82, 0x9a, 0x1b, 0x86, 0x94,
785 0xb9, 0x2c, 0xa0, 0xa1, 0x8c, 0xd3, 0x5f, 0x27, 0x92, 0x30, 0x97, 0xa5, 0x39, 0xb8, 0x2a, 0xc1,
786 0xfc, 0x36, 0x4c, 0xcf, 0x6b, 0x6e, 0x38, 0x93, 0xae, 0x77, 0xaf, 0xba, 0x58, 0x30, 0x21, 0x09,
787 0x73, 0x27, 0x91, 0x04, 0xbc, 0x73, 0x15, 0xf0, 0x53, 0xec, 0x46, 0x11, 0x89, 0x73, 0xee, 0x1d,
788 0xe9, 0x8f, 0x23, 0xaf, 0xb6, 0x28, 0xba, 0xff, 0x77, 0x09, 0xa0, 0x99, 0xe5, 0x62, 0x66, 0xf5,
789 0xa2, 0xcf, 0x01, 0x78, 0xe1, 0x83, 0x4c, 0x40, 0x53, 0xde, 0x53, 0x3e, 0xdc, 0xae, 0xeb, 0x86,
790 0xac, 0x3e, 0x27, 0x37, 0xfa, 0xb9, 0x3a, 0xde, 0xe2, 0xe8, 0xec, 0x8e, 0x7e, 0x01, 0x3d, 0x08,
791 0xa7, 0xd4, 0xe3, 0x0d, 0x18, 0xb8, 0x8c, 0x91, 0x49, 0xc4, 0xb2, 0x0a, 0x63, 0x46, 0x7c, 0xed,
792 0x88, 0x53, 0x1d, 0x1b, 0xab, 0x1a, 0x69, 0xcc, 0x93, 0x30, 0xac, 0x4b, 0x9a, 0x86, 0x60, 0xe9,
793 0x09, 0x92, 0x4e, 0x01, 0x6b, 0xc1, 0x0a, 0x1f, 0xfa, 0x4d, 0x81, 0xdd, 0x1b, 0xf4, 0xcf, 0x83,
794 0x30, 0x48, 0x5e, 0x11, 0x5f, 0xfb, 0x94, 0x27, 0xf0, 0xec, 0xbf, 0x25, 0x70, 0x22, 0x59, 0x3a,
795 0x05, 0x5c, 0x0d, 0x56, 0x39, 0xd1, 0xf7, 0x50, 0x91, 0xb3, 0x13, 0xfe, 0x98, 0x92, 0x94, 0xf8,
796 0xda, 0x67, 0x5c, 0xb4, 0xfe, 0x46, 0xa2, 0xe2, 0x28, 0x23, 0x3b, 0x05, 0x5c, 0x1e, 0x2e, 0x1a,
797 0xe6, 0xe4, 0x97, 0x15, 0x3d, 0xbe, 0x2b, 0xf9, 0x42, 0x15, 0x82, 0x7c, 0x31, 0x73, 0x8f, 0x86,
798 0x09, 0x1d, 0x93, 0x01, 0x4d, 0x59, 0x94, 0x32, 0xed, 0xc9, 0x1d, 0xc8, 0x5b, 0x22, 0xd4, 0xe1,
799 0x91, 0x19, 0xb9, 0xb7, 0x68, 0x40, 0xbf, 0x42, 0xd5, 0xa3, 0x93, 0x88, 0x86, 0xd9, 0x5c, 0x25,
800 0x2c, 0x26, 0xee, 0x64, 0x5e, 0xc4, 0x53, 0xae, 0xd3, 0x78, 0xf3, 0x22, 0x5a, 0x39, 0x55, 0x8f,
801 0x33, 0x2d, 0xd4, 0xb4, 0xe3, 0xdd, 0xec, 0x42, 0x8f, 0x61, 0x7b, 0xe8, 0xfe, 0x4c, 0xc6, 0x62,
802 0xa7, 0xb5, 0x2f, 0xb9, 0xe4, 0xdb, 0xd7, 0xa6, 0xba, 0x11, 0xce, 0x3a, 0x05, 0x0c, 0x1c, 0x2a,
803 0xb6, 0xe1, 0x2b, 0x78, 0x24, 0x1f, 0xf4, 0x82, 0x78, 0x29, 0x9f, 0x2b, 0x41, 0x71, 0x7c, 0x2b,
804 0xc5, 0x43, 0xf1, 0x72, 0x79, 0x8c, 0xe0, 0x6a, 0x03, 0x4a, 0x68, 0x1a, 0x7b, 0x64, 0x70, 0x4e,
805 0x98, 0xf7, 0x4a, 0x12, 0x3d, 0xbb, 0x95, 0x48, 0x15, 0x11, 0x27, 0x59, 0x00, 0x67, 0xd1, 0x1b,
806 0xa0, 0xad, 0xda, 0x0e, 0x74, 0x00, 0x95, 0x7c, 0xea, 0xc3, 0x74, 0x32, 0x24, 0x31, 0xdf, 0xdf,
807 0x75, 0x5c, 0x96, 0x56, 0x9b, 0x1b, 0xf5, 0x3f, 0x14, 0xa8, 0xae, 0x1c, 0x70, 0xf4, 0x04, 0xb6,
808 0xc8, 0x45, 0xc0, 0x06, 0x1e, 0xf5, 0x89,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