-
Notifications
You must be signed in to change notification settings - Fork 111
/
build.pb.go
executable file
·2095 lines (1865 loc) · 82.3 KB
/
build.pb.go
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
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: third_party/bazel/master/src/main/protobuf/build.proto
/*
Package blaze_query is a generated protocol buffer package.
It is generated from these files:
third_party/bazel/master/src/main/protobuf/build.proto
It has these top-level messages:
License
StringDictEntry
LabelDictUnaryEntry
LabelListDictEntry
LabelKeyedStringDictEntry
StringListDictEntry
FilesetEntry
Attribute
Rule
AttributeAspect
SkylarkAspect
RuleSummary
PackageGroup
EnvironmentGroup
SourceFile
GeneratedFile
Target
QueryResult
AllowedRuleClassInfo
AttributeDefinition
RuleDefinition
BuildLanguage
Location
MakeVarBinding
MakeVar
GlobCriteria
Event
*/
package blaze_query
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// Indicates what to do when a source file is actually a symlink.
type FilesetEntry_SymlinkBehavior int32
const (
FilesetEntry_COPY FilesetEntry_SymlinkBehavior = 1
FilesetEntry_DEREFERENCE FilesetEntry_SymlinkBehavior = 2
)
var FilesetEntry_SymlinkBehavior_name = map[int32]string{
1: "COPY",
2: "DEREFERENCE",
}
var FilesetEntry_SymlinkBehavior_value = map[string]int32{
"COPY": 1,
"DEREFERENCE": 2,
}
func (x FilesetEntry_SymlinkBehavior) Enum() *FilesetEntry_SymlinkBehavior {
p := new(FilesetEntry_SymlinkBehavior)
*p = x
return p
}
func (x FilesetEntry_SymlinkBehavior) String() string {
return proto.EnumName(FilesetEntry_SymlinkBehavior_name, int32(x))
}
func (x *FilesetEntry_SymlinkBehavior) UnmarshalJSON(data []byte) error {
value, err := proto.UnmarshalJSONEnum(FilesetEntry_SymlinkBehavior_value, data, "FilesetEntry_SymlinkBehavior")
if err != nil {
return err
}
*x = FilesetEntry_SymlinkBehavior(value)
return nil
}
func (FilesetEntry_SymlinkBehavior) EnumDescriptor() ([]byte, []int) {
return fileDescriptor0, []int{6, 0}
}
// Indicates the type of attribute.
type Attribute_Discriminator int32
const (
Attribute_INTEGER Attribute_Discriminator = 1
Attribute_STRING Attribute_Discriminator = 2
Attribute_LABEL Attribute_Discriminator = 3
Attribute_OUTPUT Attribute_Discriminator = 4
Attribute_STRING_LIST Attribute_Discriminator = 5
Attribute_LABEL_LIST Attribute_Discriminator = 6
Attribute_OUTPUT_LIST Attribute_Discriminator = 7
Attribute_DISTRIBUTION_SET Attribute_Discriminator = 8
Attribute_LICENSE Attribute_Discriminator = 9
Attribute_STRING_DICT Attribute_Discriminator = 10
Attribute_FILESET_ENTRY_LIST Attribute_Discriminator = 11
Attribute_LABEL_LIST_DICT Attribute_Discriminator = 12
Attribute_STRING_LIST_DICT Attribute_Discriminator = 13
Attribute_BOOLEAN Attribute_Discriminator = 14
Attribute_TRISTATE Attribute_Discriminator = 15
Attribute_INTEGER_LIST Attribute_Discriminator = 16
Attribute_UNKNOWN Attribute_Discriminator = 18
Attribute_LABEL_DICT_UNARY Attribute_Discriminator = 19
Attribute_SELECTOR_LIST Attribute_Discriminator = 20
Attribute_LABEL_KEYED_STRING_DICT Attribute_Discriminator = 21
Attribute_DEPRECATED_STRING_DICT_UNARY Attribute_Discriminator = 17
)
var Attribute_Discriminator_name = map[int32]string{
1: "INTEGER",
2: "STRING",
3: "LABEL",
4: "OUTPUT",
5: "STRING_LIST",
6: "LABEL_LIST",
7: "OUTPUT_LIST",
8: "DISTRIBUTION_SET",
9: "LICENSE",
10: "STRING_DICT",
11: "FILESET_ENTRY_LIST",
12: "LABEL_LIST_DICT",
13: "STRING_LIST_DICT",
14: "BOOLEAN",
15: "TRISTATE",
16: "INTEGER_LIST",
18: "UNKNOWN",
19: "LABEL_DICT_UNARY",
20: "SELECTOR_LIST",
21: "LABEL_KEYED_STRING_DICT",
17: "DEPRECATED_STRING_DICT_UNARY",
}
var Attribute_Discriminator_value = map[string]int32{
"INTEGER": 1,
"STRING": 2,
"LABEL": 3,
"OUTPUT": 4,
"STRING_LIST": 5,
"LABEL_LIST": 6,
"OUTPUT_LIST": 7,
"DISTRIBUTION_SET": 8,
"LICENSE": 9,
"STRING_DICT": 10,
"FILESET_ENTRY_LIST": 11,
"LABEL_LIST_DICT": 12,
"STRING_LIST_DICT": 13,
"BOOLEAN": 14,
"TRISTATE": 15,
"INTEGER_LIST": 16,
"UNKNOWN": 18,
"LABEL_DICT_UNARY": 19,
"SELECTOR_LIST": 20,
"LABEL_KEYED_STRING_DICT": 21,
"DEPRECATED_STRING_DICT_UNARY": 17,
}
func (x Attribute_Discriminator) Enum() *Attribute_Discriminator {
p := new(Attribute_Discriminator)
*p = x
return p
}
func (x Attribute_Discriminator) String() string {
return proto.EnumName(Attribute_Discriminator_name, int32(x))
}
func (x *Attribute_Discriminator) UnmarshalJSON(data []byte) error {
value, err := proto.UnmarshalJSONEnum(Attribute_Discriminator_value, data, "Attribute_Discriminator")
if err != nil {
return err
}
*x = Attribute_Discriminator(value)
return nil
}
func (Attribute_Discriminator) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{7, 0} }
// Values for the TriState field type.
type Attribute_Tristate int32
const (
Attribute_NO Attribute_Tristate = 0
Attribute_YES Attribute_Tristate = 1
Attribute_AUTO Attribute_Tristate = 2
)
var Attribute_Tristate_name = map[int32]string{
0: "NO",
1: "YES",
2: "AUTO",
}
var Attribute_Tristate_value = map[string]int32{
"NO": 0,
"YES": 1,
"AUTO": 2,
}
func (x Attribute_Tristate) Enum() *Attribute_Tristate {
p := new(Attribute_Tristate)
*p = x
return p
}
func (x Attribute_Tristate) String() string {
return proto.EnumName(Attribute_Tristate_name, int32(x))
}
func (x *Attribute_Tristate) UnmarshalJSON(data []byte) error {
value, err := proto.UnmarshalJSONEnum(Attribute_Tristate_value, data, "Attribute_Tristate")
if err != nil {
return err
}
*x = Attribute_Tristate(value)
return nil
}
func (Attribute_Tristate) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{7, 1} }
type Target_Discriminator int32
const (
Target_RULE Target_Discriminator = 1
Target_SOURCE_FILE Target_Discriminator = 2
Target_GENERATED_FILE Target_Discriminator = 3
Target_PACKAGE_GROUP Target_Discriminator = 4
Target_ENVIRONMENT_GROUP Target_Discriminator = 5
)
var Target_Discriminator_name = map[int32]string{
1: "RULE",
2: "SOURCE_FILE",
3: "GENERATED_FILE",
4: "PACKAGE_GROUP",
5: "ENVIRONMENT_GROUP",
}
var Target_Discriminator_value = map[string]int32{
"RULE": 1,
"SOURCE_FILE": 2,
"GENERATED_FILE": 3,
"PACKAGE_GROUP": 4,
"ENVIRONMENT_GROUP": 5,
}
func (x Target_Discriminator) Enum() *Target_Discriminator {
p := new(Target_Discriminator)
*p = x
return p
}
func (x Target_Discriminator) String() string {
return proto.EnumName(Target_Discriminator_name, int32(x))
}
func (x *Target_Discriminator) UnmarshalJSON(data []byte) error {
value, err := proto.UnmarshalJSONEnum(Target_Discriminator_value, data, "Target_Discriminator")
if err != nil {
return err
}
*x = Target_Discriminator(value)
return nil
}
func (Target_Discriminator) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{16, 0} }
type AllowedRuleClassInfo_AllowedRuleClasses int32
const (
AllowedRuleClassInfo_ANY AllowedRuleClassInfo_AllowedRuleClasses = 1
AllowedRuleClassInfo_SPECIFIED AllowedRuleClassInfo_AllowedRuleClasses = 2
)
var AllowedRuleClassInfo_AllowedRuleClasses_name = map[int32]string{
1: "ANY",
2: "SPECIFIED",
}
var AllowedRuleClassInfo_AllowedRuleClasses_value = map[string]int32{
"ANY": 1,
"SPECIFIED": 2,
}
func (x AllowedRuleClassInfo_AllowedRuleClasses) Enum() *AllowedRuleClassInfo_AllowedRuleClasses {
p := new(AllowedRuleClassInfo_AllowedRuleClasses)
*p = x
return p
}
func (x AllowedRuleClassInfo_AllowedRuleClasses) String() string {
return proto.EnumName(AllowedRuleClassInfo_AllowedRuleClasses_name, int32(x))
}
func (x *AllowedRuleClassInfo_AllowedRuleClasses) UnmarshalJSON(data []byte) error {
value, err := proto.UnmarshalJSONEnum(AllowedRuleClassInfo_AllowedRuleClasses_value, data, "AllowedRuleClassInfo_AllowedRuleClasses")
if err != nil {
return err
}
*x = AllowedRuleClassInfo_AllowedRuleClasses(value)
return nil
}
func (AllowedRuleClassInfo_AllowedRuleClasses) EnumDescriptor() ([]byte, []int) {
return fileDescriptor0, []int{18, 0}
}
type Event_EventKind int32
const (
Event_ERROR Event_EventKind = 1
Event_WARNING Event_EventKind = 2
Event_INFO Event_EventKind = 3
Event_PROGRESS Event_EventKind = 4
)
var Event_EventKind_name = map[int32]string{
1: "ERROR",
2: "WARNING",
3: "INFO",
4: "PROGRESS",
}
var Event_EventKind_value = map[string]int32{
"ERROR": 1,
"WARNING": 2,
"INFO": 3,
"PROGRESS": 4,
}
func (x Event_EventKind) Enum() *Event_EventKind {
p := new(Event_EventKind)
*p = x
return p
}
func (x Event_EventKind) String() string {
return proto.EnumName(Event_EventKind_name, int32(x))
}
func (x *Event_EventKind) UnmarshalJSON(data []byte) error {
value, err := proto.UnmarshalJSONEnum(Event_EventKind_value, data, "Event_EventKind")
if err != nil {
return err
}
*x = Event_EventKind(value)
return nil
}
func (Event_EventKind) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{26, 0} }
type License struct {
LicenseType []string `protobuf:"bytes,1,rep,name=license_type,json=licenseType" json:"license_type,omitempty"`
Exception []string `protobuf:"bytes,2,rep,name=exception" json:"exception,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *License) Reset() { *m = License{} }
func (m *License) String() string { return proto.CompactTextString(m) }
func (*License) ProtoMessage() {}
func (*License) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *License) GetLicenseType() []string {
if m != nil {
return m.LicenseType
}
return nil
}
func (m *License) GetException() []string {
if m != nil {
return m.Exception
}
return nil
}
type StringDictEntry struct {
Key *string `protobuf:"bytes,1,req,name=key" json:"key,omitempty"`
Value *string `protobuf:"bytes,2,req,name=value" json:"value,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *StringDictEntry) Reset() { *m = StringDictEntry{} }
func (m *StringDictEntry) String() string { return proto.CompactTextString(m) }
func (*StringDictEntry) ProtoMessage() {}
func (*StringDictEntry) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *StringDictEntry) GetKey() string {
if m != nil && m.Key != nil {
return *m.Key
}
return ""
}
func (m *StringDictEntry) GetValue() string {
if m != nil && m.Value != nil {
return *m.Value
}
return ""
}
type LabelDictUnaryEntry struct {
Key *string `protobuf:"bytes,1,req,name=key" json:"key,omitempty"`
Value *string `protobuf:"bytes,2,req,name=value" json:"value,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *LabelDictUnaryEntry) Reset() { *m = LabelDictUnaryEntry{} }
func (m *LabelDictUnaryEntry) String() string { return proto.CompactTextString(m) }
func (*LabelDictUnaryEntry) ProtoMessage() {}
func (*LabelDictUnaryEntry) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
func (m *LabelDictUnaryEntry) GetKey() string {
if m != nil && m.Key != nil {
return *m.Key
}
return ""
}
func (m *LabelDictUnaryEntry) GetValue() string {
if m != nil && m.Value != nil {
return *m.Value
}
return ""
}
type LabelListDictEntry struct {
Key *string `protobuf:"bytes,1,req,name=key" json:"key,omitempty"`
Value []string `protobuf:"bytes,2,rep,name=value" json:"value,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *LabelListDictEntry) Reset() { *m = LabelListDictEntry{} }
func (m *LabelListDictEntry) String() string { return proto.CompactTextString(m) }
func (*LabelListDictEntry) ProtoMessage() {}
func (*LabelListDictEntry) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
func (m *LabelListDictEntry) GetKey() string {
if m != nil && m.Key != nil {
return *m.Key
}
return ""
}
func (m *LabelListDictEntry) GetValue() []string {
if m != nil {
return m.Value
}
return nil
}
type LabelKeyedStringDictEntry struct {
Key *string `protobuf:"bytes,1,req,name=key" json:"key,omitempty"`
Value *string `protobuf:"bytes,2,req,name=value" json:"value,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *LabelKeyedStringDictEntry) Reset() { *m = LabelKeyedStringDictEntry{} }
func (m *LabelKeyedStringDictEntry) String() string { return proto.CompactTextString(m) }
func (*LabelKeyedStringDictEntry) ProtoMessage() {}
func (*LabelKeyedStringDictEntry) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
func (m *LabelKeyedStringDictEntry) GetKey() string {
if m != nil && m.Key != nil {
return *m.Key
}
return ""
}
func (m *LabelKeyedStringDictEntry) GetValue() string {
if m != nil && m.Value != nil {
return *m.Value
}
return ""
}
type StringListDictEntry struct {
Key *string `protobuf:"bytes,1,req,name=key" json:"key,omitempty"`
Value []string `protobuf:"bytes,2,rep,name=value" json:"value,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *StringListDictEntry) Reset() { *m = StringListDictEntry{} }
func (m *StringListDictEntry) String() string { return proto.CompactTextString(m) }
func (*StringListDictEntry) ProtoMessage() {}
func (*StringListDictEntry) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
func (m *StringListDictEntry) GetKey() string {
if m != nil && m.Key != nil {
return *m.Key
}
return ""
}
func (m *StringListDictEntry) GetValue() []string {
if m != nil {
return m.Value
}
return nil
}
// Represents an entry attribute of a Fileset rule in a build file.
type FilesetEntry struct {
// The label pointing to the source target where files are copied from.
Source *string `protobuf:"bytes,1,req,name=source" json:"source,omitempty"`
// The relative path within the fileset rule where files will be mapped.
DestinationDirectory *string `protobuf:"bytes,2,req,name=destination_directory,json=destinationDirectory" json:"destination_directory,omitempty"`
// Whether the files= attribute was specified. This is necessary because
// no files= attribute and files=[] mean different things.
FilesPresent *bool `protobuf:"varint,7,opt,name=files_present,json=filesPresent" json:"files_present,omitempty"`
// A list of file labels to include from the source directory.
File []string `protobuf:"bytes,3,rep,name=file" json:"file,omitempty"`
// If this is a fileset entry representing files within the rule
// package, this lists relative paths to files that should be excluded from
// the set. This cannot contain values if 'file' also has values.
Exclude []string `protobuf:"bytes,4,rep,name=exclude" json:"exclude,omitempty"`
// This field is optional because there will be some time when the new
// PB is used by tools depending on blaze query, but the new blaze version
// is not yet released.
// TODO(bazel-team): Make this field required once a version of Blaze is
// released that outputs this field.
SymlinkBehavior *FilesetEntry_SymlinkBehavior `protobuf:"varint,5,opt,name=symlink_behavior,json=symlinkBehavior,enum=blaze_query.FilesetEntry_SymlinkBehavior,def=1" json:"symlink_behavior,omitempty"`
// The prefix to strip from the path of the files in this FilesetEntry. Note
// that no value and the empty string as the value mean different things here.
StripPrefix *string `protobuf:"bytes,6,opt,name=strip_prefix,json=stripPrefix" json:"strip_prefix,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *FilesetEntry) Reset() { *m = FilesetEntry{} }
func (m *FilesetEntry) String() string { return proto.CompactTextString(m) }
func (*FilesetEntry) ProtoMessage() {}
func (*FilesetEntry) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
const Default_FilesetEntry_SymlinkBehavior FilesetEntry_SymlinkBehavior = FilesetEntry_COPY
func (m *FilesetEntry) GetSource() string {
if m != nil && m.Source != nil {
return *m.Source
}
return ""
}
func (m *FilesetEntry) GetDestinationDirectory() string {
if m != nil && m.DestinationDirectory != nil {
return *m.DestinationDirectory
}
return ""
}
func (m *FilesetEntry) GetFilesPresent() bool {
if m != nil && m.FilesPresent != nil {
return *m.FilesPresent
}
return false
}
func (m *FilesetEntry) GetFile() []string {
if m != nil {
return m.File
}
return nil
}
func (m *FilesetEntry) GetExclude() []string {
if m != nil {
return m.Exclude
}
return nil
}
func (m *FilesetEntry) GetSymlinkBehavior() FilesetEntry_SymlinkBehavior {
if m != nil && m.SymlinkBehavior != nil {
return *m.SymlinkBehavior
}
return Default_FilesetEntry_SymlinkBehavior
}
func (m *FilesetEntry) GetStripPrefix() string {
if m != nil && m.StripPrefix != nil {
return *m.StripPrefix
}
return ""
}
// A rule attribute. Each attribute must have a type and one of the various
// value fields populated - for the most part.
//
// Attributes of BOOLEAN and TRISTATE type may set all of the int, bool, and
// string values for backwards compatibility with clients that expect them to
// be set.
//
// Attributes of INTEGER, STRING, LABEL, LICENSE, BOOLEAN, and TRISTATE type
// may set *none* of the values. This can happen if the Attribute message is
// prepared for a client that doesn't support SELECTOR_LIST, but the rule has
// a selector list value for the attribute. (Selector lists for attributes of
// other types--the collection types--are handled differently when prepared
// for such a client. The possible collection values are gathered together
// and flattened.)
//
// By checking the type, the appropriate value can be extracted - see the
// comments on each type for the associated value. The order of lists comes
// from the blaze parsing. If an attribute is of a list type, the associated
// list should never be empty.
type Attribute struct {
// The name of the attribute
Name *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"`
// The location of the target in the BUILD file in a machine-parseable form.
DEPRECATEDParseableLocation *Location `protobuf:"bytes,12,opt,name=DEPRECATED_parseable_location,json=DEPRECATEDParseableLocation" json:"DEPRECATED_parseable_location,omitempty"`
// Whether the attribute was explicitly specified
ExplicitlySpecified *bool `protobuf:"varint,13,opt,name=explicitly_specified,json=explicitlySpecified" json:"explicitly_specified,omitempty"`
// If this attribute has a string value or a string list value, then this
// may be set to indicate that the value may be treated as a label that
// isn't a dependency of this attribute's rule.
Nodep *bool `protobuf:"varint,20,opt,name=nodep" json:"nodep,omitempty"`
// The type of attribute. This message is used for all of the different
// attribute types so the discriminator helps for figuring out what is
// stored in the message.
Type *Attribute_Discriminator `protobuf:"varint,2,req,name=type,enum=blaze_query.Attribute_Discriminator" json:"type,omitempty"`
// If this attribute has an integer value this will be populated.
// Boolean and TriState also use this field as [0,1] and [-1,0,1]
// for [false, true] and [auto, no, yes] respectively.
IntValue *int32 `protobuf:"varint,3,opt,name=int_value,json=intValue" json:"int_value,omitempty"`
// If the attribute has a string value this will be populated. Label and
// path attributes use this field as the value even though the type may
// be LABEL or something else other than STRING.
StringValue *string `protobuf:"bytes,5,opt,name=string_value,json=stringValue" json:"string_value,omitempty"`
// If the attribute has a boolean value this will be populated.
BooleanValue *bool `protobuf:"varint,14,opt,name=boolean_value,json=booleanValue" json:"boolean_value,omitempty"`
// If the attribute is a Tristate value, this will be populated.
TristateValue *Attribute_Tristate `protobuf:"varint,15,opt,name=tristate_value,json=tristateValue,enum=blaze_query.Attribute_Tristate" json:"tristate_value,omitempty"`
// The value of the attribute has a list of string values (label and path
// note from STRING applies here as well).
StringListValue []string `protobuf:"bytes,6,rep,name=string_list_value,json=stringListValue" json:"string_list_value,omitempty"`
// If this is a license attribute, the license information is stored here.
License *License `protobuf:"bytes,7,opt,name=license" json:"license,omitempty"`
// If this is a string dict, each entry will be stored here.
StringDictValue []*StringDictEntry `protobuf:"bytes,8,rep,name=string_dict_value,json=stringDictValue" json:"string_dict_value,omitempty"`
// If the attribute is part of a Fileset, the fileset entries are stored in
// this field.
FilesetListValue []*FilesetEntry `protobuf:"bytes,9,rep,name=fileset_list_value,json=filesetListValue" json:"fileset_list_value,omitempty"`
// If this is a label list dict, each entry will be stored here.
LabelListDictValue []*LabelListDictEntry `protobuf:"bytes,10,rep,name=label_list_dict_value,json=labelListDictValue" json:"label_list_dict_value,omitempty"`
// If this is a string list dict, each entry will be stored here.
StringListDictValue []*StringListDictEntry `protobuf:"bytes,11,rep,name=string_list_dict_value,json=stringListDictValue" json:"string_list_dict_value,omitempty"`
// The glob criteria. This is non-empty if:
// 1. This attribute is a list of strings or labels, and,
// 2. It contained a glob() expression
GlobCriteria []*GlobCriteria `protobuf:"bytes,16,rep,name=glob_criteria,json=globCriteria" json:"glob_criteria,omitempty"`
// The value of the attribute has a list of int32 values
IntListValue []int32 `protobuf:"varint,17,rep,name=int_list_value,json=intListValue" json:"int_list_value,omitempty"`
// If this is a label dict unary, each entry will be stored here.
LabelDictUnaryValue []*LabelDictUnaryEntry `protobuf:"bytes,19,rep,name=label_dict_unary_value,json=labelDictUnaryValue" json:"label_dict_unary_value,omitempty"`
// If this is a label-keyed string dict, each entry will be stored here.
LabelKeyedStringDictValue []*LabelKeyedStringDictEntry `protobuf:"bytes,22,rep,name=label_keyed_string_dict_value,json=labelKeyedStringDictValue" json:"label_keyed_string_dict_value,omitempty"`
// If this attribute's value is an expression containing one or more select
// expressions, then its type is SELECTOR_LIST and a SelectorList will be
// stored here.
SelectorList *Attribute_SelectorList `protobuf:"bytes,21,opt,name=selector_list,json=selectorList" json:"selector_list,omitempty"`
DEPRECATEDStringDictUnaryValue [][]byte `protobuf:"bytes,18,rep,name=DEPRECATED_string_dict_unary_value,json=DEPRECATEDStringDictUnaryValue" json:"DEPRECATED_string_dict_unary_value,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *Attribute) Reset() { *m = Attribute{} }
func (m *Attribute) String() string { return proto.CompactTextString(m) }
func (*Attribute) ProtoMessage() {}
func (*Attribute) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
func (m *Attribute) GetName() string {
if m != nil && m.Name != nil {
return *m.Name
}
return ""
}
func (m *Attribute) GetDEPRECATEDParseableLocation() *Location {
if m != nil {
return m.DEPRECATEDParseableLocation
}
return nil
}
func (m *Attribute) GetExplicitlySpecified() bool {
if m != nil && m.ExplicitlySpecified != nil {
return *m.ExplicitlySpecified
}
return false
}
func (m *Attribute) GetNodep() bool {
if m != nil && m.Nodep != nil {
return *m.Nodep
}
return false
}
func (m *Attribute) GetType() Attribute_Discriminator {
if m != nil && m.Type != nil {
return *m.Type
}
return Attribute_INTEGER
}
func (m *Attribute) GetIntValue() int32 {
if m != nil && m.IntValue != nil {
return *m.IntValue
}
return 0
}
func (m *Attribute) GetStringValue() string {
if m != nil && m.StringValue != nil {
return *m.StringValue
}
return ""
}
func (m *Attribute) GetBooleanValue() bool {
if m != nil && m.BooleanValue != nil {
return *m.BooleanValue
}
return false
}
func (m *Attribute) GetTristateValue() Attribute_Tristate {
if m != nil && m.TristateValue != nil {
return *m.TristateValue
}
return Attribute_NO
}
func (m *Attribute) GetStringListValue() []string {
if m != nil {
return m.StringListValue
}
return nil
}
func (m *Attribute) GetLicense() *License {
if m != nil {
return m.License
}
return nil
}
func (m *Attribute) GetStringDictValue() []*StringDictEntry {
if m != nil {
return m.StringDictValue
}
return nil
}
func (m *Attribute) GetFilesetListValue() []*FilesetEntry {
if m != nil {
return m.FilesetListValue
}
return nil
}
func (m *Attribute) GetLabelListDictValue() []*LabelListDictEntry {
if m != nil {
return m.LabelListDictValue
}
return nil
}
func (m *Attribute) GetStringListDictValue() []*StringListDictEntry {
if m != nil {
return m.StringListDictValue
}
return nil
}
func (m *Attribute) GetGlobCriteria() []*GlobCriteria {
if m != nil {
return m.GlobCriteria
}
return nil
}
func (m *Attribute) GetIntListValue() []int32 {
if m != nil {
return m.IntListValue
}
return nil
}
func (m *Attribute) GetLabelDictUnaryValue() []*LabelDictUnaryEntry {
if m != nil {
return m.LabelDictUnaryValue
}
return nil
}
func (m *Attribute) GetLabelKeyedStringDictValue() []*LabelKeyedStringDictEntry {
if m != nil {
return m.LabelKeyedStringDictValue
}
return nil
}
func (m *Attribute) GetSelectorList() *Attribute_SelectorList {
if m != nil {
return m.SelectorList
}
return nil
}
func (m *Attribute) GetDEPRECATEDStringDictUnaryValue() [][]byte {
if m != nil {
return m.DEPRECATEDStringDictUnaryValue
}
return nil
}
type Attribute_SelectorEntry struct {
// The key of the selector entry. At this time, this is the label of a
// config_setting rule, or the pseudo-label "//conditions:default".
Label *string `protobuf:"bytes,1,opt,name=label" json:"label,omitempty"`
// True if the entry's value is the default value for the type as a
// result of the condition value being specified as None (ie:
// {"//condition": None}).
IsDefaultValue *bool `protobuf:"varint,16,opt,name=is_default_value,json=isDefaultValue" json:"is_default_value,omitempty"`
// Exactly one of the following fields (except for glob_criteria) must be
// populated - note that the BOOLEAN and TRISTATE caveat in Attribute's
// comment does not apply here. The type field in the SelectorList
// containing this entry indicates which of these fields is populated,
// in accordance with the comments on Discriminator enum values above.
// (To be explicit: BOOLEAN populates the boolean_value field and TRISTATE
// populates the tristate_value field.)
IntValue *int32 `protobuf:"varint,2,opt,name=int_value,json=intValue" json:"int_value,omitempty"`
StringValue *string `protobuf:"bytes,3,opt,name=string_value,json=stringValue" json:"string_value,omitempty"`
BooleanValue *bool `protobuf:"varint,4,opt,name=boolean_value,json=booleanValue" json:"boolean_value,omitempty"`
TristateValue *Attribute_Tristate `protobuf:"varint,5,opt,name=tristate_value,json=tristateValue,enum=blaze_query.Attribute_Tristate" json:"tristate_value,omitempty"`
StringListValue []string `protobuf:"bytes,6,rep,name=string_list_value,json=stringListValue" json:"string_list_value,omitempty"`
License *License `protobuf:"bytes,7,opt,name=license" json:"license,omitempty"`
StringDictValue []*StringDictEntry `protobuf:"bytes,8,rep,name=string_dict_value,json=stringDictValue" json:"string_dict_value,omitempty"`
FilesetListValue []*FilesetEntry `protobuf:"bytes,9,rep,name=fileset_list_value,json=filesetListValue" json:"fileset_list_value,omitempty"`
LabelListDictValue []*LabelListDictEntry `protobuf:"bytes,10,rep,name=label_list_dict_value,json=labelListDictValue" json:"label_list_dict_value,omitempty"`
StringListDictValue []*StringListDictEntry `protobuf:"bytes,11,rep,name=string_list_dict_value,json=stringListDictValue" json:"string_list_dict_value,omitempty"`
GlobCriteria []*GlobCriteria `protobuf:"bytes,12,rep,name=glob_criteria,json=globCriteria" json:"glob_criteria,omitempty"`
IntListValue []int32 `protobuf:"varint,13,rep,name=int_list_value,json=intListValue" json:"int_list_value,omitempty"`
LabelDictUnaryValue []*LabelDictUnaryEntry `protobuf:"bytes,15,rep,name=label_dict_unary_value,json=labelDictUnaryValue" json:"label_dict_unary_value,omitempty"`
LabelKeyedStringDictValue []*LabelKeyedStringDictEntry `protobuf:"bytes,17,rep,name=label_keyed_string_dict_value,json=labelKeyedStringDictValue" json:"label_keyed_string_dict_value,omitempty"`
DEPRECATEDStringDictUnaryValue [][]byte `protobuf:"bytes,14,rep,name=DEPRECATED_string_dict_unary_value,json=DEPRECATEDStringDictUnaryValue" json:"DEPRECATED_string_dict_unary_value,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *Attribute_SelectorEntry) Reset() { *m = Attribute_SelectorEntry{} }
func (m *Attribute_SelectorEntry) String() string { return proto.CompactTextString(m) }
func (*Attribute_SelectorEntry) ProtoMessage() {}
func (*Attribute_SelectorEntry) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7, 0} }
func (m *Attribute_SelectorEntry) GetLabel() string {
if m != nil && m.Label != nil {
return *m.Label
}
return ""
}
func (m *Attribute_SelectorEntry) GetIsDefaultValue() bool {
if m != nil && m.IsDefaultValue != nil {
return *m.IsDefaultValue
}
return false
}
func (m *Attribute_SelectorEntry) GetIntValue() int32 {
if m != nil && m.IntValue != nil {
return *m.IntValue
}
return 0
}
func (m *Attribute_SelectorEntry) GetStringValue() string {
if m != nil && m.StringValue != nil {
return *m.StringValue
}
return ""
}
func (m *Attribute_SelectorEntry) GetBooleanValue() bool {
if m != nil && m.BooleanValue != nil {
return *m.BooleanValue
}
return false
}
func (m *Attribute_SelectorEntry) GetTristateValue() Attribute_Tristate {
if m != nil && m.TristateValue != nil {
return *m.TristateValue
}
return Attribute_NO
}
func (m *Attribute_SelectorEntry) GetStringListValue() []string {
if m != nil {
return m.StringListValue
}
return nil
}
func (m *Attribute_SelectorEntry) GetLicense() *License {
if m != nil {
return m.License
}
return nil
}
func (m *Attribute_SelectorEntry) GetStringDictValue() []*StringDictEntry {
if m != nil {
return m.StringDictValue
}
return nil
}
func (m *Attribute_SelectorEntry) GetFilesetListValue() []*FilesetEntry {
if m != nil {
return m.FilesetListValue
}
return nil
}
func (m *Attribute_SelectorEntry) GetLabelListDictValue() []*LabelListDictEntry {
if m != nil {
return m.LabelListDictValue
}
return nil
}
func (m *Attribute_SelectorEntry) GetStringListDictValue() []*StringListDictEntry {
if m != nil {
return m.StringListDictValue
}
return nil
}
func (m *Attribute_SelectorEntry) GetGlobCriteria() []*GlobCriteria {
if m != nil {
return m.GlobCriteria
}
return nil
}
func (m *Attribute_SelectorEntry) GetIntListValue() []int32 {
if m != nil {
return m.IntListValue
}
return nil
}
func (m *Attribute_SelectorEntry) GetLabelDictUnaryValue() []*LabelDictUnaryEntry {
if m != nil {
return m.LabelDictUnaryValue
}
return nil
}
func (m *Attribute_SelectorEntry) GetLabelKeyedStringDictValue() []*LabelKeyedStringDictEntry {
if m != nil {
return m.LabelKeyedStringDictValue
}
return nil
}
func (m *Attribute_SelectorEntry) GetDEPRECATEDStringDictUnaryValue() [][]byte {
if m != nil {
return m.DEPRECATEDStringDictUnaryValue
}
return nil
}
type Attribute_Selector struct {
// The list of (label, value) pairs in the map that defines the selector.
// At this time, this cannot be empty, i.e. a selector has at least one
// entry.
Entries []*Attribute_SelectorEntry `protobuf:"bytes,1,rep,name=entries" json:"entries,omitempty"`
// Whether or not this has any default values.
HasDefaultValue *bool `protobuf:"varint,2,opt,name=has_default_value,json=hasDefaultValue" json:"has_default_value,omitempty"`
// The error message when no condition matches.
NoMatchError *string `protobuf:"bytes,3,opt,name=no_match_error,json=noMatchError" json:"no_match_error,omitempty"`
XXX_unrecognized []byte `json:"-"`
}
func (m *Attribute_Selector) Reset() { *m = Attribute_Selector{} }
func (m *Attribute_Selector) String() string { return proto.CompactTextString(m) }
func (*Attribute_Selector) ProtoMessage() {}
func (*Attribute_Selector) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7, 1} }
func (m *Attribute_Selector) GetEntries() []*Attribute_SelectorEntry {
if m != nil {
return m.Entries
}
return nil
}
func (m *Attribute_Selector) GetHasDefaultValue() bool {
if m != nil && m.HasDefaultValue != nil {
return *m.HasDefaultValue
}
return false
}
func (m *Attribute_Selector) GetNoMatchError() string {
if m != nil && m.NoMatchError != nil {
return *m.NoMatchError
}
return ""
}
type Attribute_SelectorList struct {