-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild_event_stream.pb.go
More file actions
10326 lines (9211 loc) · 422 KB
/
build_event_stream.pb.go
File metadata and controls
10326 lines (9211 loc) · 422 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Copyright 2016 The Bazel Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// LINT: LEGACY_NAMES
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.30.0
// protoc v5.27.2
// source: build_event_stream.proto
package proto
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
anypb "google.golang.org/protobuf/types/known/anypb"
durationpb "google.golang.org/protobuf/types/known/durationpb"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
reflect "reflect"
sync "sync"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// Enumeration type characterizing the size of a test, as specified by the
// test rule.
type TestSize int32
const (
TestSize_UNKNOWN TestSize = 0
TestSize_SMALL TestSize = 1
TestSize_MEDIUM TestSize = 2
TestSize_LARGE TestSize = 3
TestSize_ENORMOUS TestSize = 4
)
// Enum value maps for TestSize.
var (
TestSize_name = map[int32]string{
0: "UNKNOWN",
1: "SMALL",
2: "MEDIUM",
3: "LARGE",
4: "ENORMOUS",
}
TestSize_value = map[string]int32{
"UNKNOWN": 0,
"SMALL": 1,
"MEDIUM": 2,
"LARGE": 3,
"ENORMOUS": 4,
}
)
func (x TestSize) Enum() *TestSize {
p := new(TestSize)
*p = x
return p
}
func (x TestSize) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (TestSize) Descriptor() protoreflect.EnumDescriptor {
return file_build_event_stream_proto_enumTypes[0].Descriptor()
}
func (TestSize) Type() protoreflect.EnumType {
return &file_build_event_stream_proto_enumTypes[0]
}
func (x TestSize) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use TestSize.Descriptor instead.
func (TestSize) EnumDescriptor() ([]byte, []int) {
return file_build_event_stream_proto_rawDescGZIP(), []int{0}
}
type TestStatus int32
const (
TestStatus_NO_STATUS TestStatus = 0
TestStatus_PASSED TestStatus = 1
TestStatus_FLAKY TestStatus = 2
TestStatus_TIMEOUT TestStatus = 3
TestStatus_FAILED TestStatus = 4
TestStatus_INCOMPLETE TestStatus = 5
TestStatus_REMOTE_FAILURE TestStatus = 6
TestStatus_FAILED_TO_BUILD TestStatus = 7
TestStatus_TOOL_HALTED_BEFORE_TESTING TestStatus = 8
)
// Enum value maps for TestStatus.
var (
TestStatus_name = map[int32]string{
0: "NO_STATUS",
1: "PASSED",
2: "FLAKY",
3: "TIMEOUT",
4: "FAILED",
5: "INCOMPLETE",
6: "REMOTE_FAILURE",
7: "FAILED_TO_BUILD",
8: "TOOL_HALTED_BEFORE_TESTING",
}
TestStatus_value = map[string]int32{
"NO_STATUS": 0,
"PASSED": 1,
"FLAKY": 2,
"TIMEOUT": 3,
"FAILED": 4,
"INCOMPLETE": 5,
"REMOTE_FAILURE": 6,
"FAILED_TO_BUILD": 7,
"TOOL_HALTED_BEFORE_TESTING": 8,
}
)
func (x TestStatus) Enum() *TestStatus {
p := new(TestStatus)
*p = x
return p
}
func (x TestStatus) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (TestStatus) Descriptor() protoreflect.EnumDescriptor {
return file_build_event_stream_proto_enumTypes[1].Descriptor()
}
func (TestStatus) Type() protoreflect.EnumType {
return &file_build_event_stream_proto_enumTypes[1]
}
func (x TestStatus) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use TestStatus.Descriptor instead.
func (TestStatus) EnumDescriptor() ([]byte, []int) {
return file_build_event_stream_proto_rawDescGZIP(), []int{1}
}
type Aborted_AbortReason int32
const (
Aborted_UNKNOWN Aborted_AbortReason = 0
// The user requested the build to be aborted (e.g., by hitting Ctl-C).
Aborted_USER_INTERRUPTED Aborted_AbortReason = 1
// The user requested that no analysis be performed.
Aborted_NO_ANALYZE Aborted_AbortReason = 8
// The user requested that no build be carried out.
Aborted_NO_BUILD Aborted_AbortReason = 9
// The build or target was aborted as a timeout was exceeded.
Aborted_TIME_OUT Aborted_AbortReason = 2
// The build or target was aborted as some remote environment (e.g., for
// remote execution of actions) was not available in the expected way.
Aborted_REMOTE_ENVIRONMENT_FAILURE Aborted_AbortReason = 3
// Failure due to reasons entirely internal to the build tool, i.e. an
// unexpected crash due to programmer error.
Aborted_INTERNAL Aborted_AbortReason = 4
// A Failure occurred in the loading phase of a target.
Aborted_LOADING_FAILURE Aborted_AbortReason = 5
// A Failure occurred in the analysis phase of a target.
Aborted_ANALYSIS_FAILURE Aborted_AbortReason = 6
// Target build was skipped (e.g. due to incompatible CPU constraints).
Aborted_SKIPPED Aborted_AbortReason = 7
// Build incomplete due to an earlier build failure (e.g. --keep_going was
// set to false causing the build be ended upon failure).
Aborted_INCOMPLETE Aborted_AbortReason = 10
// The build tool ran out of memory and crashed.
Aborted_OUT_OF_MEMORY Aborted_AbortReason = 11
)
// Enum value maps for Aborted_AbortReason.
var (
Aborted_AbortReason_name = map[int32]string{
0: "UNKNOWN",
1: "USER_INTERRUPTED",
8: "NO_ANALYZE",
9: "NO_BUILD",
2: "TIME_OUT",
3: "REMOTE_ENVIRONMENT_FAILURE",
4: "INTERNAL",
5: "LOADING_FAILURE",
6: "ANALYSIS_FAILURE",
7: "SKIPPED",
10: "INCOMPLETE",
11: "OUT_OF_MEMORY",
}
Aborted_AbortReason_value = map[string]int32{
"UNKNOWN": 0,
"USER_INTERRUPTED": 1,
"NO_ANALYZE": 8,
"NO_BUILD": 9,
"TIME_OUT": 2,
"REMOTE_ENVIRONMENT_FAILURE": 3,
"INTERNAL": 4,
"LOADING_FAILURE": 5,
"ANALYSIS_FAILURE": 6,
"SKIPPED": 7,
"INCOMPLETE": 10,
"OUT_OF_MEMORY": 11,
}
)
func (x Aborted_AbortReason) Enum() *Aborted_AbortReason {
p := new(Aborted_AbortReason)
*p = x
return p
}
func (x Aborted_AbortReason) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Aborted_AbortReason) Descriptor() protoreflect.EnumDescriptor {
return file_build_event_stream_proto_enumTypes[2].Descriptor()
}
func (Aborted_AbortReason) Type() protoreflect.EnumType {
return &file_build_event_stream_proto_enumTypes[2]
}
func (x Aborted_AbortReason) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Aborted_AbortReason.Descriptor instead.
func (Aborted_AbortReason) EnumDescriptor() ([]byte, []int) {
return file_build_event_stream_proto_rawDescGZIP(), []int{2, 0}
}
type BuildMetrics_WorkerMetrics_WorkerStatus int32
const (
// Used to indicate a worker instance where the process has not been
// created yet. In reality this isn't logged, but leaving this here as a
// possible option in the future.
BuildMetrics_WorkerMetrics_NOT_STARTED BuildMetrics_WorkerMetrics_WorkerStatus = 0
BuildMetrics_WorkerMetrics_ALIVE BuildMetrics_WorkerMetrics_WorkerStatus = 1
BuildMetrics_WorkerMetrics_KILLED_DUE_TO_MEMORY_PRESSURE BuildMetrics_WorkerMetrics_WorkerStatus = 2
// Indicates that the worker process was killed due to a reason unknown to
// Bazel at the point of measurement; if a known cause (below) comes along
// later on, this field will be updated.
BuildMetrics_WorkerMetrics_KILLED_UNKNOWN BuildMetrics_WorkerMetrics_WorkerStatus = 3
BuildMetrics_WorkerMetrics_KILLED_DUE_TO_INTERRUPTED_EXCEPTION BuildMetrics_WorkerMetrics_WorkerStatus = 4
BuildMetrics_WorkerMetrics_KILLED_DUE_TO_IO_EXCEPTION BuildMetrics_WorkerMetrics_WorkerStatus = 5
BuildMetrics_WorkerMetrics_KILLED_DUE_TO_USER_EXEC_EXCEPTION BuildMetrics_WorkerMetrics_WorkerStatus = 6
)
// Enum value maps for BuildMetrics_WorkerMetrics_WorkerStatus.
var (
BuildMetrics_WorkerMetrics_WorkerStatus_name = map[int32]string{
0: "NOT_STARTED",
1: "ALIVE",
2: "KILLED_DUE_TO_MEMORY_PRESSURE",
3: "KILLED_UNKNOWN",
4: "KILLED_DUE_TO_INTERRUPTED_EXCEPTION",
5: "KILLED_DUE_TO_IO_EXCEPTION",
6: "KILLED_DUE_TO_USER_EXEC_EXCEPTION",
}
BuildMetrics_WorkerMetrics_WorkerStatus_value = map[string]int32{
"NOT_STARTED": 0,
"ALIVE": 1,
"KILLED_DUE_TO_MEMORY_PRESSURE": 2,
"KILLED_UNKNOWN": 3,
"KILLED_DUE_TO_INTERRUPTED_EXCEPTION": 4,
"KILLED_DUE_TO_IO_EXCEPTION": 5,
"KILLED_DUE_TO_USER_EXEC_EXCEPTION": 6,
}
)
func (x BuildMetrics_WorkerMetrics_WorkerStatus) Enum() *BuildMetrics_WorkerMetrics_WorkerStatus {
p := new(BuildMetrics_WorkerMetrics_WorkerStatus)
*p = x
return p
}
func (x BuildMetrics_WorkerMetrics_WorkerStatus) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (BuildMetrics_WorkerMetrics_WorkerStatus) Descriptor() protoreflect.EnumDescriptor {
return file_build_event_stream_proto_enumTypes[3].Descriptor()
}
func (BuildMetrics_WorkerMetrics_WorkerStatus) Type() protoreflect.EnumType {
return &file_build_event_stream_proto_enumTypes[3]
}
func (x BuildMetrics_WorkerMetrics_WorkerStatus) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use BuildMetrics_WorkerMetrics_WorkerStatus.Descriptor instead.
func (BuildMetrics_WorkerMetrics_WorkerStatus) EnumDescriptor() ([]byte, []int) {
return file_build_event_stream_proto_rawDescGZIP(), []int{23, 9, 0}
}
type ConvenienceSymlink_Action int32
const (
ConvenienceSymlink_UNKNOWN ConvenienceSymlink_Action = 0
// Indicates a symlink should be created, or overwritten if it already
// exists.
ConvenienceSymlink_CREATE ConvenienceSymlink_Action = 1
// Indicates a symlink should be deleted if it already exists.
ConvenienceSymlink_DELETE ConvenienceSymlink_Action = 2
)
// Enum value maps for ConvenienceSymlink_Action.
var (
ConvenienceSymlink_Action_name = map[int32]string{
0: "UNKNOWN",
1: "CREATE",
2: "DELETE",
}
ConvenienceSymlink_Action_value = map[string]int32{
"UNKNOWN": 0,
"CREATE": 1,
"DELETE": 2,
}
)
func (x ConvenienceSymlink_Action) Enum() *ConvenienceSymlink_Action {
p := new(ConvenienceSymlink_Action)
*p = x
return p
}
func (x ConvenienceSymlink_Action) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ConvenienceSymlink_Action) Descriptor() protoreflect.EnumDescriptor {
return file_build_event_stream_proto_enumTypes[4].Descriptor()
}
func (ConvenienceSymlink_Action) Type() protoreflect.EnumType {
return &file_build_event_stream_proto_enumTypes[4]
}
func (x ConvenienceSymlink_Action) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ConvenienceSymlink_Action.Descriptor instead.
func (ConvenienceSymlink_Action) EnumDescriptor() ([]byte, []int) {
return file_build_event_stream_proto_rawDescGZIP(), []int{26, 0}
}
// Identifier for a build event. It is deliberately structured to also provide
// information about which build target etc the event is related to.
//
// Events are chained via the event id as follows: each event has an id and a
// set of ids of children events such that apart from the initial event each
// event has an id that is mentioned as child id in an earlier event and a build
// invocation is complete if and only if all direct and indirect children of the
// initial event have been posted.
type BuildEventId struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Types that are assignable to Id:
//
// *BuildEventId_Unknown
// *BuildEventId_Progress
// *BuildEventId_Started
// *BuildEventId_UnstructuredCommandLine
// *BuildEventId_StructuredCommandLine
// *BuildEventId_WorkspaceStatus
// *BuildEventId_OptionsParsed
// *BuildEventId_Fetch
// *BuildEventId_Configuration
// *BuildEventId_TargetConfigured
// *BuildEventId_Pattern
// *BuildEventId_PatternSkipped
// *BuildEventId_NamedSet
// *BuildEventId_TargetCompleted
// *BuildEventId_ActionCompleted
// *BuildEventId_UnconfiguredLabel
// *BuildEventId_ConfiguredLabel
// *BuildEventId_TestResult
// *BuildEventId_TestProgress
// *BuildEventId_TestSummary
// *BuildEventId_TargetSummary
// *BuildEventId_BuildFinished
// *BuildEventId_BuildToolLogs
// *BuildEventId_BuildMetrics
// *BuildEventId_Workspace
// *BuildEventId_BuildMetadata
// *BuildEventId_ConvenienceSymlinksIdentified
// *BuildEventId_ExecRequest
Id isBuildEventId_Id `protobuf_oneof:"id"`
}
func (x *BuildEventId) Reset() {
*x = BuildEventId{}
if protoimpl.UnsafeEnabled {
mi := &file_build_event_stream_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *BuildEventId) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BuildEventId) ProtoMessage() {}
func (x *BuildEventId) ProtoReflect() protoreflect.Message {
mi := &file_build_event_stream_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use BuildEventId.ProtoReflect.Descriptor instead.
func (*BuildEventId) Descriptor() ([]byte, []int) {
return file_build_event_stream_proto_rawDescGZIP(), []int{0}
}
func (m *BuildEventId) GetId() isBuildEventId_Id {
if m != nil {
return m.Id
}
return nil
}
func (x *BuildEventId) GetUnknown() *BuildEventId_UnknownBuildEventId {
if x, ok := x.GetId().(*BuildEventId_Unknown); ok {
return x.Unknown
}
return nil
}
func (x *BuildEventId) GetProgress() *BuildEventId_ProgressId {
if x, ok := x.GetId().(*BuildEventId_Progress); ok {
return x.Progress
}
return nil
}
func (x *BuildEventId) GetStarted() *BuildEventId_BuildStartedId {
if x, ok := x.GetId().(*BuildEventId_Started); ok {
return x.Started
}
return nil
}
func (x *BuildEventId) GetUnstructuredCommandLine() *BuildEventId_UnstructuredCommandLineId {
if x, ok := x.GetId().(*BuildEventId_UnstructuredCommandLine); ok {
return x.UnstructuredCommandLine
}
return nil
}
func (x *BuildEventId) GetStructuredCommandLine() *BuildEventId_StructuredCommandLineId {
if x, ok := x.GetId().(*BuildEventId_StructuredCommandLine); ok {
return x.StructuredCommandLine
}
return nil
}
func (x *BuildEventId) GetWorkspaceStatus() *BuildEventId_WorkspaceStatusId {
if x, ok := x.GetId().(*BuildEventId_WorkspaceStatus); ok {
return x.WorkspaceStatus
}
return nil
}
func (x *BuildEventId) GetOptionsParsed() *BuildEventId_OptionsParsedId {
if x, ok := x.GetId().(*BuildEventId_OptionsParsed); ok {
return x.OptionsParsed
}
return nil
}
func (x *BuildEventId) GetFetch() *BuildEventId_FetchId {
if x, ok := x.GetId().(*BuildEventId_Fetch); ok {
return x.Fetch
}
return nil
}
func (x *BuildEventId) GetConfiguration() *BuildEventId_ConfigurationId {
if x, ok := x.GetId().(*BuildEventId_Configuration); ok {
return x.Configuration
}
return nil
}
func (x *BuildEventId) GetTargetConfigured() *BuildEventId_TargetConfiguredId {
if x, ok := x.GetId().(*BuildEventId_TargetConfigured); ok {
return x.TargetConfigured
}
return nil
}
func (x *BuildEventId) GetPattern() *BuildEventId_PatternExpandedId {
if x, ok := x.GetId().(*BuildEventId_Pattern); ok {
return x.Pattern
}
return nil
}
func (x *BuildEventId) GetPatternSkipped() *BuildEventId_PatternExpandedId {
if x, ok := x.GetId().(*BuildEventId_PatternSkipped); ok {
return x.PatternSkipped
}
return nil
}
func (x *BuildEventId) GetNamedSet() *BuildEventId_NamedSetOfFilesId {
if x, ok := x.GetId().(*BuildEventId_NamedSet); ok {
return x.NamedSet
}
return nil
}
func (x *BuildEventId) GetTargetCompleted() *BuildEventId_TargetCompletedId {
if x, ok := x.GetId().(*BuildEventId_TargetCompleted); ok {
return x.TargetCompleted
}
return nil
}
func (x *BuildEventId) GetActionCompleted() *BuildEventId_ActionCompletedId {
if x, ok := x.GetId().(*BuildEventId_ActionCompleted); ok {
return x.ActionCompleted
}
return nil
}
func (x *BuildEventId) GetUnconfiguredLabel() *BuildEventId_UnconfiguredLabelId {
if x, ok := x.GetId().(*BuildEventId_UnconfiguredLabel); ok {
return x.UnconfiguredLabel
}
return nil
}
func (x *BuildEventId) GetConfiguredLabel() *BuildEventId_ConfiguredLabelId {
if x, ok := x.GetId().(*BuildEventId_ConfiguredLabel); ok {
return x.ConfiguredLabel
}
return nil
}
func (x *BuildEventId) GetTestResult() *BuildEventId_TestResultId {
if x, ok := x.GetId().(*BuildEventId_TestResult); ok {
return x.TestResult
}
return nil
}
func (x *BuildEventId) GetTestProgress() *BuildEventId_TestProgressId {
if x, ok := x.GetId().(*BuildEventId_TestProgress); ok {
return x.TestProgress
}
return nil
}
func (x *BuildEventId) GetTestSummary() *BuildEventId_TestSummaryId {
if x, ok := x.GetId().(*BuildEventId_TestSummary); ok {
return x.TestSummary
}
return nil
}
func (x *BuildEventId) GetTargetSummary() *BuildEventId_TargetSummaryId {
if x, ok := x.GetId().(*BuildEventId_TargetSummary); ok {
return x.TargetSummary
}
return nil
}
func (x *BuildEventId) GetBuildFinished() *BuildEventId_BuildFinishedId {
if x, ok := x.GetId().(*BuildEventId_BuildFinished); ok {
return x.BuildFinished
}
return nil
}
func (x *BuildEventId) GetBuildToolLogs() *BuildEventId_BuildToolLogsId {
if x, ok := x.GetId().(*BuildEventId_BuildToolLogs); ok {
return x.BuildToolLogs
}
return nil
}
func (x *BuildEventId) GetBuildMetrics() *BuildEventId_BuildMetricsId {
if x, ok := x.GetId().(*BuildEventId_BuildMetrics); ok {
return x.BuildMetrics
}
return nil
}
func (x *BuildEventId) GetWorkspace() *BuildEventId_WorkspaceConfigId {
if x, ok := x.GetId().(*BuildEventId_Workspace); ok {
return x.Workspace
}
return nil
}
func (x *BuildEventId) GetBuildMetadata() *BuildEventId_BuildMetadataId {
if x, ok := x.GetId().(*BuildEventId_BuildMetadata); ok {
return x.BuildMetadata
}
return nil
}
func (x *BuildEventId) GetConvenienceSymlinksIdentified() *BuildEventId_ConvenienceSymlinksIdentifiedId {
if x, ok := x.GetId().(*BuildEventId_ConvenienceSymlinksIdentified); ok {
return x.ConvenienceSymlinksIdentified
}
return nil
}
func (x *BuildEventId) GetExecRequest() *BuildEventId_ExecRequestId {
if x, ok := x.GetId().(*BuildEventId_ExecRequest); ok {
return x.ExecRequest
}
return nil
}
type isBuildEventId_Id interface {
isBuildEventId_Id()
}
type BuildEventId_Unknown struct {
Unknown *BuildEventId_UnknownBuildEventId `protobuf:"bytes,1,opt,name=unknown,proto3,oneof"`
}
type BuildEventId_Progress struct {
Progress *BuildEventId_ProgressId `protobuf:"bytes,2,opt,name=progress,proto3,oneof"`
}
type BuildEventId_Started struct {
Started *BuildEventId_BuildStartedId `protobuf:"bytes,3,opt,name=started,proto3,oneof"`
}
type BuildEventId_UnstructuredCommandLine struct {
UnstructuredCommandLine *BuildEventId_UnstructuredCommandLineId `protobuf:"bytes,11,opt,name=unstructured_command_line,json=unstructuredCommandLine,proto3,oneof"`
}
type BuildEventId_StructuredCommandLine struct {
StructuredCommandLine *BuildEventId_StructuredCommandLineId `protobuf:"bytes,18,opt,name=structured_command_line,json=structuredCommandLine,proto3,oneof"`
}
type BuildEventId_WorkspaceStatus struct {
WorkspaceStatus *BuildEventId_WorkspaceStatusId `protobuf:"bytes,14,opt,name=workspace_status,json=workspaceStatus,proto3,oneof"`
}
type BuildEventId_OptionsParsed struct {
OptionsParsed *BuildEventId_OptionsParsedId `protobuf:"bytes,12,opt,name=options_parsed,json=optionsParsed,proto3,oneof"`
}
type BuildEventId_Fetch struct {
Fetch *BuildEventId_FetchId `protobuf:"bytes,17,opt,name=fetch,proto3,oneof"`
}
type BuildEventId_Configuration struct {
Configuration *BuildEventId_ConfigurationId `protobuf:"bytes,15,opt,name=configuration,proto3,oneof"`
}
type BuildEventId_TargetConfigured struct {
TargetConfigured *BuildEventId_TargetConfiguredId `protobuf:"bytes,16,opt,name=target_configured,json=targetConfigured,proto3,oneof"`
}
type BuildEventId_Pattern struct {
Pattern *BuildEventId_PatternExpandedId `protobuf:"bytes,4,opt,name=pattern,proto3,oneof"`
}
type BuildEventId_PatternSkipped struct {
PatternSkipped *BuildEventId_PatternExpandedId `protobuf:"bytes,10,opt,name=pattern_skipped,json=patternSkipped,proto3,oneof"`
}
type BuildEventId_NamedSet struct {
NamedSet *BuildEventId_NamedSetOfFilesId `protobuf:"bytes,13,opt,name=named_set,json=namedSet,proto3,oneof"`
}
type BuildEventId_TargetCompleted struct {
TargetCompleted *BuildEventId_TargetCompletedId `protobuf:"bytes,5,opt,name=target_completed,json=targetCompleted,proto3,oneof"`
}
type BuildEventId_ActionCompleted struct {
ActionCompleted *BuildEventId_ActionCompletedId `protobuf:"bytes,6,opt,name=action_completed,json=actionCompleted,proto3,oneof"`
}
type BuildEventId_UnconfiguredLabel struct {
UnconfiguredLabel *BuildEventId_UnconfiguredLabelId `protobuf:"bytes,19,opt,name=unconfigured_label,json=unconfiguredLabel,proto3,oneof"`
}
type BuildEventId_ConfiguredLabel struct {
ConfiguredLabel *BuildEventId_ConfiguredLabelId `protobuf:"bytes,21,opt,name=configured_label,json=configuredLabel,proto3,oneof"`
}
type BuildEventId_TestResult struct {
TestResult *BuildEventId_TestResultId `protobuf:"bytes,8,opt,name=test_result,json=testResult,proto3,oneof"`
}
type BuildEventId_TestProgress struct {
TestProgress *BuildEventId_TestProgressId `protobuf:"bytes,29,opt,name=test_progress,json=testProgress,proto3,oneof"`
}
type BuildEventId_TestSummary struct {
TestSummary *BuildEventId_TestSummaryId `protobuf:"bytes,7,opt,name=test_summary,json=testSummary,proto3,oneof"`
}
type BuildEventId_TargetSummary struct {
TargetSummary *BuildEventId_TargetSummaryId `protobuf:"bytes,26,opt,name=target_summary,json=targetSummary,proto3,oneof"`
}
type BuildEventId_BuildFinished struct {
BuildFinished *BuildEventId_BuildFinishedId `protobuf:"bytes,9,opt,name=build_finished,json=buildFinished,proto3,oneof"`
}
type BuildEventId_BuildToolLogs struct {
BuildToolLogs *BuildEventId_BuildToolLogsId `protobuf:"bytes,20,opt,name=build_tool_logs,json=buildToolLogs,proto3,oneof"`
}
type BuildEventId_BuildMetrics struct {
BuildMetrics *BuildEventId_BuildMetricsId `protobuf:"bytes,22,opt,name=build_metrics,json=buildMetrics,proto3,oneof"`
}
type BuildEventId_Workspace struct {
Workspace *BuildEventId_WorkspaceConfigId `protobuf:"bytes,23,opt,name=workspace,proto3,oneof"`
}
type BuildEventId_BuildMetadata struct {
BuildMetadata *BuildEventId_BuildMetadataId `protobuf:"bytes,24,opt,name=build_metadata,json=buildMetadata,proto3,oneof"`
}
type BuildEventId_ConvenienceSymlinksIdentified struct {
ConvenienceSymlinksIdentified *BuildEventId_ConvenienceSymlinksIdentifiedId `protobuf:"bytes,25,opt,name=convenience_symlinks_identified,json=convenienceSymlinksIdentified,proto3,oneof"`
}
type BuildEventId_ExecRequest struct {
ExecRequest *BuildEventId_ExecRequestId `protobuf:"bytes,28,opt,name=exec_request,json=execRequest,proto3,oneof"`
}
func (*BuildEventId_Unknown) isBuildEventId_Id() {}
func (*BuildEventId_Progress) isBuildEventId_Id() {}
func (*BuildEventId_Started) isBuildEventId_Id() {}
func (*BuildEventId_UnstructuredCommandLine) isBuildEventId_Id() {}
func (*BuildEventId_StructuredCommandLine) isBuildEventId_Id() {}
func (*BuildEventId_WorkspaceStatus) isBuildEventId_Id() {}
func (*BuildEventId_OptionsParsed) isBuildEventId_Id() {}
func (*BuildEventId_Fetch) isBuildEventId_Id() {}
func (*BuildEventId_Configuration) isBuildEventId_Id() {}
func (*BuildEventId_TargetConfigured) isBuildEventId_Id() {}
func (*BuildEventId_Pattern) isBuildEventId_Id() {}
func (*BuildEventId_PatternSkipped) isBuildEventId_Id() {}
func (*BuildEventId_NamedSet) isBuildEventId_Id() {}
func (*BuildEventId_TargetCompleted) isBuildEventId_Id() {}
func (*BuildEventId_ActionCompleted) isBuildEventId_Id() {}
func (*BuildEventId_UnconfiguredLabel) isBuildEventId_Id() {}
func (*BuildEventId_ConfiguredLabel) isBuildEventId_Id() {}
func (*BuildEventId_TestResult) isBuildEventId_Id() {}
func (*BuildEventId_TestProgress) isBuildEventId_Id() {}
func (*BuildEventId_TestSummary) isBuildEventId_Id() {}
func (*BuildEventId_TargetSummary) isBuildEventId_Id() {}
func (*BuildEventId_BuildFinished) isBuildEventId_Id() {}
func (*BuildEventId_BuildToolLogs) isBuildEventId_Id() {}
func (*BuildEventId_BuildMetrics) isBuildEventId_Id() {}
func (*BuildEventId_Workspace) isBuildEventId_Id() {}
func (*BuildEventId_BuildMetadata) isBuildEventId_Id() {}
func (*BuildEventId_ConvenienceSymlinksIdentified) isBuildEventId_Id() {}
func (*BuildEventId_ExecRequest) isBuildEventId_Id() {}
// Payload of an event summarizing the progress of the build so far. Those
// events are also used to be parents of events where the more logical parent
// event cannot be posted yet as the needed information is not yet complete.
type Progress struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The next chunk of stdout that bazel produced since the last progress event
// or the beginning of the build.
Stdout string `protobuf:"bytes,1,opt,name=stdout,proto3" json:"stdout,omitempty"`
// The next chunk of stderr that bazel produced since the last progress event
// or the beginning of the build.
Stderr string `protobuf:"bytes,2,opt,name=stderr,proto3" json:"stderr,omitempty"`
}
func (x *Progress) Reset() {
*x = Progress{}
if protoimpl.UnsafeEnabled {
mi := &file_build_event_stream_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Progress) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Progress) ProtoMessage() {}
func (x *Progress) ProtoReflect() protoreflect.Message {
mi := &file_build_event_stream_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Progress.ProtoReflect.Descriptor instead.
func (*Progress) Descriptor() ([]byte, []int) {
return file_build_event_stream_proto_rawDescGZIP(), []int{1}
}
func (x *Progress) GetStdout() string {
if x != nil {
return x.Stdout
}
return ""
}
func (x *Progress) GetStderr() string {
if x != nil {
return x.Stderr
}
return ""
}
// Payload of an event indicating that an expected event will not come, as
// the build is aborted prematurely for some reason.
type Aborted struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Reason Aborted_AbortReason `protobuf:"varint,1,opt,name=reason,proto3,enum=build_event_stream.Aborted_AbortReason" json:"reason,omitempty"`
// A human readable description with more details about there reason, where
// available and useful.
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
}
func (x *Aborted) Reset() {
*x = Aborted{}
if protoimpl.UnsafeEnabled {
mi := &file_build_event_stream_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Aborted) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Aborted) ProtoMessage() {}
func (x *Aborted) ProtoReflect() protoreflect.Message {
mi := &file_build_event_stream_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Aborted.ProtoReflect.Descriptor instead.
func (*Aborted) Descriptor() ([]byte, []int) {
return file_build_event_stream_proto_rawDescGZIP(), []int{2}
}
func (x *Aborted) GetReason() Aborted_AbortReason {
if x != nil {
return x.Reason
}
return Aborted_UNKNOWN
}
func (x *Aborted) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
// Payload of an event indicating the beginning of a new build. Usually, events
// of those type start a new build-event stream. The target pattern requested
// to be build is contained in one of the announced child events; it is an
// invariant that precisely one of the announced child events has a non-empty
// target pattern.
type BuildStarted struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Uuid string `protobuf:"bytes,1,opt,name=uuid,proto3" json:"uuid,omitempty"`
// Start of the build in ms since the epoch.
//
// Deprecated, use `start_time` instead.
//
// TODO(yannic): Remove.
//
// Deprecated: Marked as deprecated in build_event_stream.proto.
StartTimeMillis int64 `protobuf:"varint,2,opt,name=start_time_millis,json=startTimeMillis,proto3" json:"start_time_millis,omitempty"`
// Start of the build.
StartTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
// Version of the build tool that is running.
BuildToolVersion string `protobuf:"bytes,3,opt,name=build_tool_version,json=buildToolVersion,proto3" json:"build_tool_version,omitempty"`
// A human-readable description of all the non-default option settings
OptionsDescription string `protobuf:"bytes,4,opt,name=options_description,json=optionsDescription,proto3" json:"options_description,omitempty"`
// The name of the command that the user invoked.
Command string `protobuf:"bytes,5,opt,name=command,proto3" json:"command,omitempty"`
// The working directory from which the build tool was invoked.
WorkingDirectory string `protobuf:"bytes,6,opt,name=working_directory,json=workingDirectory,proto3" json:"working_directory,omitempty"`
// The directory of the workspace.
WorkspaceDirectory string `protobuf:"bytes,7,opt,name=workspace_directory,json=workspaceDirectory,proto3" json:"workspace_directory,omitempty"`
// The process ID of the Bazel server.
ServerPid int64 `protobuf:"varint,8,opt,name=server_pid,json=serverPid,proto3" json:"server_pid,omitempty"`
}
func (x *BuildStarted) Reset() {
*x = BuildStarted{}
if protoimpl.UnsafeEnabled {
mi := &file_build_event_stream_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *BuildStarted) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BuildStarted) ProtoMessage() {}
func (x *BuildStarted) ProtoReflect() protoreflect.Message {
mi := &file_build_event_stream_proto_msgTypes[3]