-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathResources.pb.go
5290 lines (4653 loc) · 170 KB
/
Resources.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
//
// Copyright (C) 2016 The Android Open Source Project
//
// 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.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.27.1
// protoc v3.18.1
// source: Resources.proto
package main
import (
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
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)
)
// The visibility of the resource outside of its package.
type Visibility_Level int32
const (
// No visibility was explicitly specified. This is typically treated as private.
// The distinction is important when two separate R.java files are generated: a public and
// private one. An unknown visibility, in this case, would cause the resource to be omitted
// from either R.java.
Visibility_UNKNOWN Visibility_Level = 0
// A resource was explicitly marked as private. This means the resource can not be accessed
// outside of its package unless the @*package:type/entry notation is used (the asterisk being
// the private accessor). If two R.java files are generated (private + public), the resource
// will only be emitted to the private R.java file.
Visibility_PRIVATE Visibility_Level = 1
// A resource was explicitly marked as public. This means the resource can be accessed
// from any package, and is emitted into all R.java files, public and private.
Visibility_PUBLIC Visibility_Level = 2
)
// Enum value maps for Visibility_Level.
var (
Visibility_Level_name = map[int32]string{
0: "UNKNOWN",
1: "PRIVATE",
2: "PUBLIC",
}
Visibility_Level_value = map[string]int32{
"UNKNOWN": 0,
"PRIVATE": 1,
"PUBLIC": 2,
}
)
func (x Visibility_Level) Enum() *Visibility_Level {
p := new(Visibility_Level)
*p = x
return p
}
func (x Visibility_Level) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Visibility_Level) Descriptor() protoreflect.EnumDescriptor {
return file_Resources_proto_enumTypes[0].Descriptor()
}
func (Visibility_Level) Type() protoreflect.EnumType {
return &file_Resources_proto_enumTypes[0]
}
func (x Visibility_Level) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Visibility_Level.Descriptor instead.
func (Visibility_Level) EnumDescriptor() ([]byte, []int) {
return file_Resources_proto_rawDescGZIP(), []int{9, 0}
}
type OverlayableItem_Policy int32
const (
OverlayableItem_NONE OverlayableItem_Policy = 0
OverlayableItem_PUBLIC OverlayableItem_Policy = 1
OverlayableItem_SYSTEM OverlayableItem_Policy = 2
OverlayableItem_VENDOR OverlayableItem_Policy = 3
OverlayableItem_PRODUCT OverlayableItem_Policy = 4
OverlayableItem_SIGNATURE OverlayableItem_Policy = 5
OverlayableItem_ODM OverlayableItem_Policy = 6
OverlayableItem_OEM OverlayableItem_Policy = 7
OverlayableItem_ACTOR OverlayableItem_Policy = 8
OverlayableItem_CONFIG_SIGNATURE OverlayableItem_Policy = 9
)
// Enum value maps for OverlayableItem_Policy.
var (
OverlayableItem_Policy_name = map[int32]string{
0: "NONE",
1: "PUBLIC",
2: "SYSTEM",
3: "VENDOR",
4: "PRODUCT",
5: "SIGNATURE",
6: "ODM",
7: "OEM",
8: "ACTOR",
9: "CONFIG_SIGNATURE",
}
OverlayableItem_Policy_value = map[string]int32{
"NONE": 0,
"PUBLIC": 1,
"SYSTEM": 2,
"VENDOR": 3,
"PRODUCT": 4,
"SIGNATURE": 5,
"ODM": 6,
"OEM": 7,
"ACTOR": 8,
"CONFIG_SIGNATURE": 9,
}
)
func (x OverlayableItem_Policy) Enum() *OverlayableItem_Policy {
p := new(OverlayableItem_Policy)
*p = x
return p
}
func (x OverlayableItem_Policy) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (OverlayableItem_Policy) Descriptor() protoreflect.EnumDescriptor {
return file_Resources_proto_enumTypes[1].Descriptor()
}
func (OverlayableItem_Policy) Type() protoreflect.EnumType {
return &file_Resources_proto_enumTypes[1]
}
func (x OverlayableItem_Policy) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use OverlayableItem_Policy.Descriptor instead.
func (OverlayableItem_Policy) EnumDescriptor() ([]byte, []int) {
return file_Resources_proto_rawDescGZIP(), []int{12, 0}
}
type Reference_Type int32
const (
// A plain reference (@package:type/entry).
Reference_REFERENCE Reference_Type = 0
// A reference to a theme attribute (?package:type/entry).
Reference_ATTRIBUTE Reference_Type = 1
)
// Enum value maps for Reference_Type.
var (
Reference_Type_name = map[int32]string{
0: "REFERENCE",
1: "ATTRIBUTE",
}
Reference_Type_value = map[string]int32{
"REFERENCE": 0,
"ATTRIBUTE": 1,
}
)
func (x Reference_Type) Enum() *Reference_Type {
p := new(Reference_Type)
*p = x
return p
}
func (x Reference_Type) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Reference_Type) Descriptor() protoreflect.EnumDescriptor {
return file_Resources_proto_enumTypes[2].Descriptor()
}
func (Reference_Type) Type() protoreflect.EnumType {
return &file_Resources_proto_enumTypes[2]
}
func (x Reference_Type) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Reference_Type.Descriptor instead.
func (Reference_Type) EnumDescriptor() ([]byte, []int) {
return file_Resources_proto_rawDescGZIP(), []int{21, 0}
}
type FileReference_Type int32
const (
FileReference_UNKNOWN FileReference_Type = 0
FileReference_PNG FileReference_Type = 1
FileReference_BINARY_XML FileReference_Type = 2
FileReference_PROTO_XML FileReference_Type = 3
)
// Enum value maps for FileReference_Type.
var (
FileReference_Type_name = map[int32]string{
0: "UNKNOWN",
1: "PNG",
2: "BINARY_XML",
3: "PROTO_XML",
}
FileReference_Type_value = map[string]int32{
"UNKNOWN": 0,
"PNG": 1,
"BINARY_XML": 2,
"PROTO_XML": 3,
}
)
func (x FileReference_Type) Enum() *FileReference_Type {
p := new(FileReference_Type)
*p = x
return p
}
func (x FileReference_Type) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (FileReference_Type) Descriptor() protoreflect.EnumDescriptor {
return file_Resources_proto_enumTypes[3].Descriptor()
}
func (FileReference_Type) Type() protoreflect.EnumType {
return &file_Resources_proto_enumTypes[3]
}
func (x FileReference_Type) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use FileReference_Type.Descriptor instead.
func (FileReference_Type) EnumDescriptor() ([]byte, []int) {
return file_Resources_proto_rawDescGZIP(), []int{26, 0}
}
// Bitmask of formats allowed for an attribute.
type Attribute_FormatFlags int32
const (
Attribute_NONE Attribute_FormatFlags = 0 // Proto3 requires a default of 0.
Attribute_ANY Attribute_FormatFlags = 65535 // Allows any type except ENUM and FLAGS.
Attribute_REFERENCE Attribute_FormatFlags = 1 // Allows Reference values.
Attribute_STRING Attribute_FormatFlags = 2 // Allows String/StyledString values.
Attribute_INTEGER Attribute_FormatFlags = 4 // Allows any integer BinaryPrimitive values.
Attribute_BOOLEAN Attribute_FormatFlags = 8 // Allows any boolean BinaryPrimitive values.
Attribute_COLOR Attribute_FormatFlags = 16 // Allows any color BinaryPrimitive values.
Attribute_FLOAT Attribute_FormatFlags = 32 // Allows any float BinaryPrimitive values.
Attribute_DIMENSION Attribute_FormatFlags = 64 // Allows any dimension BinaryPrimitive values.
Attribute_FRACTION Attribute_FormatFlags = 128 // Allows any fraction BinaryPrimitive values.
Attribute_ENUM Attribute_FormatFlags = 65536 // Allows enums that are defined in the Attribute's symbols.
// ENUM and FLAGS cannot BOTH be set.
Attribute_FLAGS Attribute_FormatFlags = 131072 // Allows flags that are defined in the Attribute's symbols.
)
// Enum value maps for Attribute_FormatFlags.
var (
Attribute_FormatFlags_name = map[int32]string{
0: "NONE",
65535: "ANY",
1: "REFERENCE",
2: "STRING",
4: "INTEGER",
8: "BOOLEAN",
16: "COLOR",
32: "FLOAT",
64: "DIMENSION",
128: "FRACTION",
65536: "ENUM",
131072: "FLAGS",
}
Attribute_FormatFlags_value = map[string]int32{
"NONE": 0,
"ANY": 65535,
"REFERENCE": 1,
"STRING": 2,
"INTEGER": 4,
"BOOLEAN": 8,
"COLOR": 16,
"FLOAT": 32,
"DIMENSION": 64,
"FRACTION": 128,
"ENUM": 65536,
"FLAGS": 131072,
}
)
func (x Attribute_FormatFlags) Enum() *Attribute_FormatFlags {
p := new(Attribute_FormatFlags)
*p = x
return p
}
func (x Attribute_FormatFlags) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Attribute_FormatFlags) Descriptor() protoreflect.EnumDescriptor {
return file_Resources_proto_enumTypes[4].Descriptor()
}
func (Attribute_FormatFlags) Type() protoreflect.EnumType {
return &file_Resources_proto_enumTypes[4]
}
func (x Attribute_FormatFlags) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Attribute_FormatFlags.Descriptor instead.
func (Attribute_FormatFlags) EnumDescriptor() ([]byte, []int) {
return file_Resources_proto_rawDescGZIP(), []int{28, 0}
}
// The arity of the plural.
type Plural_Arity int32
const (
Plural_ZERO Plural_Arity = 0
Plural_ONE Plural_Arity = 1
Plural_TWO Plural_Arity = 2
Plural_FEW Plural_Arity = 3
Plural_MANY Plural_Arity = 4
Plural_OTHER Plural_Arity = 5
)
// Enum value maps for Plural_Arity.
var (
Plural_Arity_name = map[int32]string{
0: "ZERO",
1: "ONE",
2: "TWO",
3: "FEW",
4: "MANY",
5: "OTHER",
}
Plural_Arity_value = map[string]int32{
"ZERO": 0,
"ONE": 1,
"TWO": 2,
"FEW": 3,
"MANY": 4,
"OTHER": 5,
}
)
func (x Plural_Arity) Enum() *Plural_Arity {
p := new(Plural_Arity)
*p = x
return p
}
func (x Plural_Arity) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Plural_Arity) Descriptor() protoreflect.EnumDescriptor {
return file_Resources_proto_enumTypes[5].Descriptor()
}
func (Plural_Arity) Type() protoreflect.EnumType {
return &file_Resources_proto_enumTypes[5]
}
func (x Plural_Arity) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Plural_Arity.Descriptor instead.
func (Plural_Arity) EnumDescriptor() ([]byte, []int) {
return file_Resources_proto_rawDescGZIP(), []int{32, 0}
}
// A string pool that wraps the binary form of the C++ class android::ResStringPool.
type StringPool struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"`
}
func (x *StringPool) Reset() {
*x = StringPool{}
if protoimpl.UnsafeEnabled {
mi := &file_Resources_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *StringPool) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*StringPool) ProtoMessage() {}
func (x *StringPool) ProtoReflect() protoreflect.Message {
mi := &file_Resources_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 StringPool.ProtoReflect.Descriptor instead.
func (*StringPool) Descriptor() ([]byte, []int) {
return file_Resources_proto_rawDescGZIP(), []int{0}
}
func (x *StringPool) GetData() []byte {
if x != nil {
return x.Data
}
return nil
}
// The position of a declared entity within a file.
type SourcePosition struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
LineNumber uint32 `protobuf:"varint,1,opt,name=line_number,json=lineNumber,proto3" json:"line_number,omitempty"`
ColumnNumber uint32 `protobuf:"varint,2,opt,name=column_number,json=columnNumber,proto3" json:"column_number,omitempty"`
}
func (x *SourcePosition) Reset() {
*x = SourcePosition{}
if protoimpl.UnsafeEnabled {
mi := &file_Resources_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SourcePosition) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SourcePosition) ProtoMessage() {}
func (x *SourcePosition) ProtoReflect() protoreflect.Message {
mi := &file_Resources_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 SourcePosition.ProtoReflect.Descriptor instead.
func (*SourcePosition) Descriptor() ([]byte, []int) {
return file_Resources_proto_rawDescGZIP(), []int{1}
}
func (x *SourcePosition) GetLineNumber() uint32 {
if x != nil {
return x.LineNumber
}
return 0
}
func (x *SourcePosition) GetColumnNumber() uint32 {
if x != nil {
return x.ColumnNumber
}
return 0
}
// Developer friendly source file information for an entity in the resource table.
type Source struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The index of the string path within the source string pool of a ResourceTable.
PathIdx uint32 `protobuf:"varint,1,opt,name=path_idx,json=pathIdx,proto3" json:"path_idx,omitempty"`
Position *SourcePosition `protobuf:"bytes,2,opt,name=position,proto3" json:"position,omitempty"`
}
func (x *Source) Reset() {
*x = Source{}
if protoimpl.UnsafeEnabled {
mi := &file_Resources_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Source) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Source) ProtoMessage() {}
func (x *Source) ProtoReflect() protoreflect.Message {
mi := &file_Resources_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 Source.ProtoReflect.Descriptor instead.
func (*Source) Descriptor() ([]byte, []int) {
return file_Resources_proto_rawDescGZIP(), []int{2}
}
func (x *Source) GetPathIdx() uint32 {
if x != nil {
return x.PathIdx
}
return 0
}
func (x *Source) GetPosition() *SourcePosition {
if x != nil {
return x.Position
}
return nil
}
// The name and version fingerprint of a build tool.
type ToolFingerprint struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Tool string `protobuf:"bytes,1,opt,name=tool,proto3" json:"tool,omitempty"`
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
}
func (x *ToolFingerprint) Reset() {
*x = ToolFingerprint{}
if protoimpl.UnsafeEnabled {
mi := &file_Resources_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ToolFingerprint) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ToolFingerprint) ProtoMessage() {}
func (x *ToolFingerprint) ProtoReflect() protoreflect.Message {
mi := &file_Resources_proto_msgTypes[3]
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 ToolFingerprint.ProtoReflect.Descriptor instead.
func (*ToolFingerprint) Descriptor() ([]byte, []int) {
return file_Resources_proto_rawDescGZIP(), []int{3}
}
func (x *ToolFingerprint) GetTool() string {
if x != nil {
return x.Tool
}
return ""
}
func (x *ToolFingerprint) GetVersion() string {
if x != nil {
return x.Version
}
return ""
}
// Top level message representing a resource table.
type ResourceTable struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The string pool containing source paths referenced throughout the resource table. This does
// not end up in the final binary ARSC file.
SourcePool *StringPool `protobuf:"bytes,1,opt,name=source_pool,json=sourcePool,proto3" json:"source_pool,omitempty"`
// Resource definitions corresponding to an Android package.
Package []*Package `protobuf:"bytes,2,rep,name=package,proto3" json:"package,omitempty"`
// The <overlayable> declarations within the resource table.
Overlayable []*Overlayable `protobuf:"bytes,3,rep,name=overlayable,proto3" json:"overlayable,omitempty"`
// The version fingerprints of the tools that built the resource table.
ToolFingerprint []*ToolFingerprint `protobuf:"bytes,4,rep,name=tool_fingerprint,json=toolFingerprint,proto3" json:"tool_fingerprint,omitempty"`
}
func (x *ResourceTable) Reset() {
*x = ResourceTable{}
if protoimpl.UnsafeEnabled {
mi := &file_Resources_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ResourceTable) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ResourceTable) ProtoMessage() {}
func (x *ResourceTable) ProtoReflect() protoreflect.Message {
mi := &file_Resources_proto_msgTypes[4]
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 ResourceTable.ProtoReflect.Descriptor instead.
func (*ResourceTable) Descriptor() ([]byte, []int) {
return file_Resources_proto_rawDescGZIP(), []int{4}
}
func (x *ResourceTable) GetSourcePool() *StringPool {
if x != nil {
return x.SourcePool
}
return nil
}
func (x *ResourceTable) GetPackage() []*Package {
if x != nil {
return x.Package
}
return nil
}
func (x *ResourceTable) GetOverlayable() []*Overlayable {
if x != nil {
return x.Overlayable
}
return nil
}
func (x *ResourceTable) GetToolFingerprint() []*ToolFingerprint {
if x != nil {
return x.ToolFingerprint
}
return nil
}
// A package ID in the range [0x00, 0xff].
type PackageId struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
}
func (x *PackageId) Reset() {
*x = PackageId{}
if protoimpl.UnsafeEnabled {
mi := &file_Resources_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PackageId) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PackageId) ProtoMessage() {}
func (x *PackageId) ProtoReflect() protoreflect.Message {
mi := &file_Resources_proto_msgTypes[5]
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 PackageId.ProtoReflect.Descriptor instead.
func (*PackageId) Descriptor() ([]byte, []int) {
return file_Resources_proto_rawDescGZIP(), []int{5}
}
func (x *PackageId) GetId() uint32 {
if x != nil {
return x.Id
}
return 0
}
// Defines resources for an Android package.
type Package struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The package ID of this package, in the range [0x00, 0xff].
// - ID 0x00 is reserved for shared libraries, or when the ID is assigned at run-time.
// - ID 0x01 is reserved for the 'android' package (framework).
// - ID range [0x02, 0x7f) is reserved for auto-assignment to shared libraries at run-time.
// - ID 0x7f is reserved for the application package.
// - IDs > 0x7f are reserved for the application as well and are treated as feature splits.
// This may not be set if no ID was assigned.
PackageId *PackageId `protobuf:"bytes,1,opt,name=package_id,json=packageId,proto3" json:"package_id,omitempty"`
// The Java compatible Android package name of the app.
PackageName string `protobuf:"bytes,2,opt,name=package_name,json=packageName,proto3" json:"package_name,omitempty"`
// The series of types defined by the package.
Type []*Type `protobuf:"bytes,3,rep,name=type,proto3" json:"type,omitempty"`
}
func (x *Package) Reset() {
*x = Package{}
if protoimpl.UnsafeEnabled {
mi := &file_Resources_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Package) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Package) ProtoMessage() {}
func (x *Package) ProtoReflect() protoreflect.Message {
mi := &file_Resources_proto_msgTypes[6]
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 Package.ProtoReflect.Descriptor instead.
func (*Package) Descriptor() ([]byte, []int) {
return file_Resources_proto_rawDescGZIP(), []int{6}
}
func (x *Package) GetPackageId() *PackageId {
if x != nil {
return x.PackageId
}
return nil
}
func (x *Package) GetPackageName() string {
if x != nil {
return x.PackageName
}
return ""
}
func (x *Package) GetType() []*Type {
if x != nil {
return x.Type
}
return nil
}
// A type ID in the range [0x01, 0xff].
type TypeId struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
}
func (x *TypeId) Reset() {
*x = TypeId{}
if protoimpl.UnsafeEnabled {
mi := &file_Resources_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TypeId) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TypeId) ProtoMessage() {}
func (x *TypeId) ProtoReflect() protoreflect.Message {
mi := &file_Resources_proto_msgTypes[7]
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 TypeId.ProtoReflect.Descriptor instead.
func (*TypeId) Descriptor() ([]byte, []int) {
return file_Resources_proto_rawDescGZIP(), []int{7}
}
func (x *TypeId) GetId() uint32 {
if x != nil {
return x.Id
}
return 0
}
// A set of resources grouped under a common type. Such types include string, layout, xml, dimen,
// attr, etc. This maps to the second part of a resource identifier in Java (R.type.entry).
type Type struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The ID of the type. This may not be set if no ID was assigned.
TypeId *TypeId `protobuf:"bytes,1,opt,name=type_id,json=typeId,proto3" json:"type_id,omitempty"`
// The name of the type. This corresponds to the 'type' part of a full resource name of the form
// package:type/entry. The set of legal type names is listed in Resource.cpp.
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// The entries defined for this type.
Entry []*Entry `protobuf:"bytes,3,rep,name=entry,proto3" json:"entry,omitempty"`
}
func (x *Type) Reset() {
*x = Type{}
if protoimpl.UnsafeEnabled {
mi := &file_Resources_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Type) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Type) ProtoMessage() {}
func (x *Type) ProtoReflect() protoreflect.Message {
mi := &file_Resources_proto_msgTypes[8]
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 Type.ProtoReflect.Descriptor instead.
func (*Type) Descriptor() ([]byte, []int) {
return file_Resources_proto_rawDescGZIP(), []int{8}
}
func (x *Type) GetTypeId() *TypeId {
if x != nil {
return x.TypeId
}
return nil
}
func (x *Type) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Type) GetEntry() []*Entry {
if x != nil {
return x.Entry
}
return nil
}
// The Visibility of a symbol/entry (public, private, undefined).
type Visibility struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
Level Visibility_Level `protobuf:"varint,1,opt,name=level,proto3,enum=aapt.pb.Visibility_Level" json:"level,omitempty"`
// The path at which this entry's visibility was defined (eg. public.xml).
Source *Source `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"`
// The comment associated with the <public> tag.
Comment string `protobuf:"bytes,3,opt,name=comment,proto3" json:"comment,omitempty"`
// Indicates that the resource id may change across builds and that the public R.java identifier
// for this resource should not be final. This is set to `true` for resources in `staging-group`
// tags.
StagedApi bool `protobuf:"varint,4,opt,name=staged_api,json=stagedApi,proto3" json:"staged_api,omitempty"`
}
func (x *Visibility) Reset() {
*x = Visibility{}
if protoimpl.UnsafeEnabled {
mi := &file_Resources_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Visibility) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Visibility) ProtoMessage() {}
func (x *Visibility) ProtoReflect() protoreflect.Message {
mi := &file_Resources_proto_msgTypes[9]
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 Visibility.ProtoReflect.Descriptor instead.
func (*Visibility) Descriptor() ([]byte, []int) {
return file_Resources_proto_rawDescGZIP(), []int{9}
}
func (x *Visibility) GetLevel() Visibility_Level {
if x != nil {
return x.Level
}
return Visibility_UNKNOWN
}
func (x *Visibility) GetSource() *Source {
if x != nil {
return x.Source
}
return nil
}
func (x *Visibility) GetComment() string {