-
Notifications
You must be signed in to change notification settings - Fork 528
Expand file tree
/
Copy pathtest_bad_identifiers_editions.pb.swift
More file actions
2858 lines (2419 loc) · 125 KB
/
Copy pathtest_bad_identifiers_editions.pb.swift
File metadata and controls
2858 lines (2419 loc) · 125 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
// DO NOT EDIT.
// swift-format-ignore-file
// swiftlint:disable all
//
// Generated by the Swift generator plugin for the protocol buffer compiler.
// Source: google/protobuf/compiler/cpp/test_bad_identifiers_editions.proto
//
// For information on using the generated types, please see the documentation:
// https://github.com/apple/swift-protobuf/
// Protocol Buffers - Google's data interchange format
// Copyright 2008 Google Inc. All rights reserved.
//
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file or at
// https://developers.google.com/open-source/licenses/bsd
// This file tests that various identifiers work as field and type names even
// though the same identifiers are used internally by the C++ code generator.
// LINT: LEGACY_NAMES
import SwiftProtobuf
// If the compiler emits an error on this type, it is because this file
// was generated by a version of the `protoc` Swift plug-in that is
// incompatible with the version of SwiftProtobuf to which you are linking.
// Please ensure that you are building against the same version of the API
// that was used to generate this file.
fileprivate nonisolated struct _GeneratedWithProtocGenSwiftVersion: SwiftProtobuf.ProtobufAPIVersionCheck {
struct _2: SwiftProtobuf.ProtobufAPIVersion_2 {}
typealias Version = _2
}
nonisolated enum EditionUnittest_bool: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
case `default` = 0
case notEq = 1
case volatile = 2
case `return` = 3
init() {
self = .default
}
}
/// Test that fields can have names like "input" and "i" which are also used
/// internally by the code generator for local variables.
nonisolated struct EditionUnittest_TestConflictingSymbolNames: SwiftProtobuf.ExtensibleMessage, @unchecked Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var input: Int32 {
get {_storage._input ?? 0}
set {_uniqueStorage()._input = newValue}
}
/// Returns true if `input` has been explicitly set.
var hasInput: Bool {_storage._input != nil}
/// Clears the value of `input`. Subsequent reads from it will return its default value.
mutating func clearInput() {_uniqueStorage()._input = nil}
var output: Int32 {
get {_storage._output ?? 0}
set {_uniqueStorage()._output = newValue}
}
/// Returns true if `output` has been explicitly set.
var hasOutput: Bool {_storage._output != nil}
/// Clears the value of `output`. Subsequent reads from it will return its default value.
mutating func clearOutput() {_uniqueStorage()._output = nil}
var length: String {
get {_storage._length ?? String()}
set {_uniqueStorage()._length = newValue}
}
/// Returns true if `length` has been explicitly set.
var hasLength: Bool {_storage._length != nil}
/// Clears the value of `length`. Subsequent reads from it will return its default value.
mutating func clearLength() {_uniqueStorage()._length = nil}
var i: [Int32] {
get {_storage._i}
set {_uniqueStorage()._i = newValue}
}
var newElement: [String] {
get {_storage._newElement}
set {_uniqueStorage()._newElement = newValue}
}
var totalSize: Int32 {
get {_storage._totalSize ?? 0}
set {_uniqueStorage()._totalSize = newValue}
}
/// Returns true if `totalSize` has been explicitly set.
var hasTotalSize: Bool {_storage._totalSize != nil}
/// Clears the value of `totalSize`. Subsequent reads from it will return its default value.
mutating func clearTotalSize() {_uniqueStorage()._totalSize = nil}
var tag: Int32 {
get {_storage._tag ?? 0}
set {_uniqueStorage()._tag = newValue}
}
/// Returns true if `tag` has been explicitly set.
var hasTag: Bool {_storage._tag != nil}
/// Clears the value of `tag`. Subsequent reads from it will return its default value.
mutating func clearTag() {_uniqueStorage()._tag = nil}
var source: Int32 {
get {_storage._source ?? 0}
set {_uniqueStorage()._source = newValue}
}
/// Returns true if `source` has been explicitly set.
var hasSource: Bool {_storage._source != nil}
/// Clears the value of `source`. Subsequent reads from it will return its default value.
mutating func clearSource() {_uniqueStorage()._source = nil}
var value: Int32 {
get {_storage._value ?? 0}
set {_uniqueStorage()._value = newValue}
}
/// Returns true if `value` has been explicitly set.
var hasValue: Bool {_storage._value != nil}
/// Clears the value of `value`. Subsequent reads from it will return its default value.
mutating func clearValue() {_uniqueStorage()._value = nil}
var file: Int32 {
get {_storage._file ?? 0}
set {_uniqueStorage()._file = newValue}
}
/// Returns true if `file` has been explicitly set.
var hasFile: Bool {_storage._file != nil}
/// Clears the value of `file`. Subsequent reads from it will return its default value.
mutating func clearFile() {_uniqueStorage()._file = nil}
var from: Int32 {
get {_storage._from ?? 0}
set {_uniqueStorage()._from = newValue}
}
/// Returns true if `from` has been explicitly set.
var hasFrom: Bool {_storage._from != nil}
/// Clears the value of `from`. Subsequent reads from it will return its default value.
mutating func clearFrom() {_uniqueStorage()._from = nil}
var handleUninterpreted: Int32 {
get {_storage._handleUninterpreted ?? 0}
set {_uniqueStorage()._handleUninterpreted = newValue}
}
/// Returns true if `handleUninterpreted` has been explicitly set.
var hasHandleUninterpreted: Bool {_storage._handleUninterpreted != nil}
/// Clears the value of `handleUninterpreted`. Subsequent reads from it will return its default value.
mutating func clearHandleUninterpreted() {_uniqueStorage()._handleUninterpreted = nil}
var index: [Int32] {
get {_storage._index}
set {_uniqueStorage()._index = newValue}
}
var controller: Int32 {
get {_storage._controller ?? 0}
set {_uniqueStorage()._controller = newValue}
}
/// Returns true if `controller` has been explicitly set.
var hasController: Bool {_storage._controller != nil}
/// Clears the value of `controller`. Subsequent reads from it will return its default value.
mutating func clearController() {_uniqueStorage()._controller = nil}
var alreadyHere: Int32 {
get {_storage._alreadyHere ?? 0}
set {_uniqueStorage()._alreadyHere = newValue}
}
/// Returns true if `alreadyHere` has been explicitly set.
var hasAlreadyHere: Bool {_storage._alreadyHere != nil}
/// Clears the value of `alreadyHere`. Subsequent reads from it will return its default value.
mutating func clearAlreadyHere() {_uniqueStorage()._alreadyHere = nil}
/// Integral types
var uint8: UInt32 {
get {_storage._uint8 ?? 0}
set {_uniqueStorage()._uint8 = newValue}
}
/// Returns true if `uint8` has been explicitly set.
var hasUint8: Bool {_storage._uint8 != nil}
/// Clears the value of `uint8`. Subsequent reads from it will return its default value.
mutating func clearUint8() {_uniqueStorage()._uint8 = nil}
var uint8T: UInt32 {
get {_storage._uint8T ?? 0}
set {_uniqueStorage()._uint8T = newValue}
}
/// Returns true if `uint8T` has been explicitly set.
var hasUint8T: Bool {_storage._uint8T != nil}
/// Clears the value of `uint8T`. Subsequent reads from it will return its default value.
mutating func clearUint8T() {_uniqueStorage()._uint8T = nil}
var uint16: UInt32 {
get {_storage._uint16 ?? 0}
set {_uniqueStorage()._uint16 = newValue}
}
/// Returns true if `uint16` has been explicitly set.
var hasUint16: Bool {_storage._uint16 != nil}
/// Clears the value of `uint16`. Subsequent reads from it will return its default value.
mutating func clearUint16() {_uniqueStorage()._uint16 = nil}
var uint16T: UInt32 {
get {_storage._uint16T ?? 0}
set {_uniqueStorage()._uint16T = newValue}
}
/// Returns true if `uint16T` has been explicitly set.
var hasUint16T: Bool {_storage._uint16T != nil}
/// Clears the value of `uint16T`. Subsequent reads from it will return its default value.
mutating func clearUint16T() {_uniqueStorage()._uint16T = nil}
var uint32: UInt32 {
get {_storage._uint32 ?? 0}
set {_uniqueStorage()._uint32 = newValue}
}
/// Returns true if `uint32` has been explicitly set.
var hasUint32: Bool {_storage._uint32 != nil}
/// Clears the value of `uint32`. Subsequent reads from it will return its default value.
mutating func clearUint32() {_uniqueStorage()._uint32 = nil}
var uint32T: UInt32 {
get {_storage._uint32T ?? 0}
set {_uniqueStorage()._uint32T = newValue}
}
/// Returns true if `uint32T` has been explicitly set.
var hasUint32T: Bool {_storage._uint32T != nil}
/// Clears the value of `uint32T`. Subsequent reads from it will return its default value.
mutating func clearUint32T() {_uniqueStorage()._uint32T = nil}
var uint64: UInt64 {
get {_storage._uint64 ?? 0}
set {_uniqueStorage()._uint64 = newValue}
}
/// Returns true if `uint64` has been explicitly set.
var hasUint64: Bool {_storage._uint64 != nil}
/// Clears the value of `uint64`. Subsequent reads from it will return its default value.
mutating func clearUint64() {_uniqueStorage()._uint64 = nil}
var uint64T: UInt32 {
get {_storage._uint64T ?? 0}
set {_uniqueStorage()._uint64T = newValue}
}
/// Returns true if `uint64T` has been explicitly set.
var hasUint64T: Bool {_storage._uint64T != nil}
/// Clears the value of `uint64T`. Subsequent reads from it will return its default value.
mutating func clearUint64T() {_uniqueStorage()._uint64T = nil}
var int8: UInt32 {
get {_storage._int8 ?? 0}
set {_uniqueStorage()._int8 = newValue}
}
/// Returns true if `int8` has been explicitly set.
var hasInt8: Bool {_storage._int8 != nil}
/// Clears the value of `int8`. Subsequent reads from it will return its default value.
mutating func clearInt8() {_uniqueStorage()._int8 = nil}
var int8T: UInt32 {
get {_storage._int8T ?? 0}
set {_uniqueStorage()._int8T = newValue}
}
/// Returns true if `int8T` has been explicitly set.
var hasInt8T: Bool {_storage._int8T != nil}
/// Clears the value of `int8T`. Subsequent reads from it will return its default value.
mutating func clearInt8T() {_uniqueStorage()._int8T = nil}
var int16: UInt32 {
get {_storage._int16 ?? 0}
set {_uniqueStorage()._int16 = newValue}
}
/// Returns true if `int16` has been explicitly set.
var hasInt16: Bool {_storage._int16 != nil}
/// Clears the value of `int16`. Subsequent reads from it will return its default value.
mutating func clearInt16() {_uniqueStorage()._int16 = nil}
var int16T: UInt32 {
get {_storage._int16T ?? 0}
set {_uniqueStorage()._int16T = newValue}
}
/// Returns true if `int16T` has been explicitly set.
var hasInt16T: Bool {_storage._int16T != nil}
/// Clears the value of `int16T`. Subsequent reads from it will return its default value.
mutating func clearInt16T() {_uniqueStorage()._int16T = nil}
var int32: Int32 {
get {_storage._int32 ?? 0}
set {_uniqueStorage()._int32 = newValue}
}
/// Returns true if `int32` has been explicitly set.
var hasInt32: Bool {_storage._int32 != nil}
/// Clears the value of `int32`. Subsequent reads from it will return its default value.
mutating func clearInt32() {_uniqueStorage()._int32 = nil}
var int32T: Int32 {
get {_storage._int32T ?? 0}
set {_uniqueStorage()._int32T = newValue}
}
/// Returns true if `int32T` has been explicitly set.
var hasInt32T: Bool {_storage._int32T != nil}
/// Clears the value of `int32T`. Subsequent reads from it will return its default value.
mutating func clearInt32T() {_uniqueStorage()._int32T = nil}
var int64: Int64 {
get {_storage._int64 ?? 0}
set {_uniqueStorage()._int64 = newValue}
}
/// Returns true if `int64` has been explicitly set.
var hasInt64: Bool {_storage._int64 != nil}
/// Clears the value of `int64`. Subsequent reads from it will return its default value.
mutating func clearInt64() {_uniqueStorage()._int64 = nil}
var int64T: Int64 {
get {_storage._int64T ?? 0}
set {_uniqueStorage()._int64T = newValue}
}
/// Returns true if `int64T` has been explicitly set.
var hasInt64T: Bool {_storage._int64T != nil}
/// Clears the value of `int64T`. Subsequent reads from it will return its default value.
mutating func clearInt64T() {_uniqueStorage()._int64T = nil}
var sizeT: Int64 {
get {_storage._sizeT ?? 0}
set {_uniqueStorage()._sizeT = newValue}
}
/// Returns true if `sizeT` has been explicitly set.
var hasSizeT: Bool {_storage._sizeT != nil}
/// Clears the value of `sizeT`. Subsequent reads from it will return its default value.
mutating func clearSizeT() {_uniqueStorage()._sizeT = nil}
var ssizeT: Int64 {
get {_storage._ssizeT ?? 0}
set {_uniqueStorage()._ssizeT = newValue}
}
/// Returns true if `ssizeT` has been explicitly set.
var hasSsizeT: Bool {_storage._ssizeT != nil}
/// Clears the value of `ssizeT`. Subsequent reads from it will return its default value.
mutating func clearSsizeT() {_uniqueStorage()._ssizeT = nil}
var intptrT: Int64 {
get {_storage._intptrT ?? 0}
set {_uniqueStorage()._intptrT = newValue}
}
/// Returns true if `intptrT` has been explicitly set.
var hasIntptrT: Bool {_storage._intptrT != nil}
/// Clears the value of `intptrT`. Subsequent reads from it will return its default value.
mutating func clearIntptrT() {_uniqueStorage()._intptrT = nil}
var uintptrT: Int64 {
get {_storage._uintptrT ?? 0}
set {_uniqueStorage()._uintptrT = newValue}
}
/// Returns true if `uintptrT` has been explicitly set.
var hasUintptrT: Bool {_storage._uintptrT != nil}
/// Clears the value of `uintptrT`. Subsequent reads from it will return its default value.
mutating func clearUintptrT() {_uniqueStorage()._uintptrT = nil}
var string: String {
get {_storage._string ?? String()}
set {_uniqueStorage()._string = newValue}
}
/// Returns true if `string` has been explicitly set.
var hasString: Bool {_storage._string != nil}
/// Clears the value of `string`. Subsequent reads from it will return its default value.
mutating func clearString() {_uniqueStorage()._string = nil}
var memset: Int32 {
get {_storage._memset ?? 0}
set {_uniqueStorage()._memset = newValue}
}
/// Returns true if `memset` has been explicitly set.
var hasMemset: Bool {_storage._memset != nil}
/// Clears the value of `memset`. Subsequent reads from it will return its default value.
mutating func clearMemset() {_uniqueStorage()._memset = nil}
/// Internal identifier
var cachedSize: UInt32 {
get {_storage._cachedSize ?? 0}
set {_uniqueStorage()._cachedSize = newValue}
}
/// Returns true if `cachedSize` has been explicitly set.
var hasCachedSize: Bool {_storage._cachedSize != nil}
/// Clears the value of `cachedSize`. Subsequent reads from it will return its default value.
mutating func clearCachedSize() {_uniqueStorage()._cachedSize = nil}
var extensions: UInt32 {
get {_storage._extensions ?? 0}
set {_uniqueStorage()._extensions = newValue}
}
/// Returns true if `extensions` has been explicitly set.
var hasExtensions: Bool {_storage._extensions != nil}
/// Clears the value of `extensions`. Subsequent reads from it will return its default value.
mutating func clearExtensions() {_uniqueStorage()._extensions = nil}
var bit: UInt32 {
get {_storage._bit ?? 0}
set {_uniqueStorage()._bit = newValue}
}
/// Returns true if `bit` has been explicitly set.
var hasBit: Bool {_storage._bit != nil}
/// Clears the value of `bit`. Subsequent reads from it will return its default value.
mutating func clearBit() {_uniqueStorage()._bit = nil}
var bits: UInt32 {
get {_storage._bits ?? 0}
set {_uniqueStorage()._bits = newValue}
}
/// Returns true if `bits` has been explicitly set.
var hasBits: Bool {_storage._bits != nil}
/// Clears the value of `bits`. Subsequent reads from it will return its default value.
mutating func clearBits() {_uniqueStorage()._bits = nil}
var offsets: UInt32 {
get {_storage._offsets ?? 0}
set {_uniqueStorage()._offsets = newValue}
}
/// Returns true if `offsets` has been explicitly set.
var hasOffsets: Bool {_storage._offsets != nil}
/// Clears the value of `offsets`. Subsequent reads from it will return its default value.
mutating func clearOffsets() {_uniqueStorage()._offsets = nil}
var reflection: UInt32 {
get {_storage._reflection ?? 0}
set {_uniqueStorage()._reflection = newValue}
}
/// Returns true if `reflection` has been explicitly set.
var hasReflection: Bool {_storage._reflection != nil}
/// Clears the value of `reflection`. Subsequent reads from it will return its default value.
mutating func clearReflection() {_uniqueStorage()._reflection = nil}
var someCord: String {
get {_storage._someCord ?? String()}
set {_uniqueStorage()._someCord = newValue}
}
/// Returns true if `someCord` has been explicitly set.
var hasSomeCord: Bool {_storage._someCord != nil}
/// Clears the value of `someCord`. Subsequent reads from it will return its default value.
mutating func clearSomeCord() {_uniqueStorage()._someCord = nil}
var someStringPiece: String {
get {_storage._someStringPiece ?? String()}
set {_uniqueStorage()._someStringPiece = newValue}
}
/// Returns true if `someStringPiece` has been explicitly set.
var hasSomeStringPiece: Bool {_storage._someStringPiece != nil}
/// Clears the value of `someStringPiece`. Subsequent reads from it will return its default value.
mutating func clearSomeStringPiece() {_uniqueStorage()._someStringPiece = nil}
var someView: String {
get {_storage._someView ?? String()}
set {_uniqueStorage()._someView = newValue}
}
/// Returns true if `someView` has been explicitly set.
var hasSomeView: Bool {_storage._someView != nil}
/// Clears the value of `someView`. Subsequent reads from it will return its default value.
mutating func clearSomeView() {_uniqueStorage()._someView = nil}
/// Some keywords.
var int: UInt32 {
get {_storage._int ?? 0}
set {_uniqueStorage()._int = newValue}
}
/// Returns true if `int` has been explicitly set.
var hasInt: Bool {_storage._int != nil}
/// Clears the value of `int`. Subsequent reads from it will return its default value.
mutating func clearInt() {_uniqueStorage()._int = nil}
var friend: UInt32 {
get {_storage._friend ?? 0}
set {_uniqueStorage()._friend = newValue}
}
/// Returns true if `friend` has been explicitly set.
var hasFriend: Bool {_storage._friend != nil}
/// Clears the value of `friend`. Subsequent reads from it will return its default value.
mutating func clearFriend() {_uniqueStorage()._friend = nil}
var `class`: UInt32 {
get {_storage._class ?? 0}
set {_uniqueStorage()._class = newValue}
}
/// Returns true if ``class`` has been explicitly set.
var hasClass: Bool {_storage._class != nil}
/// Clears the value of ``class``. Subsequent reads from it will return its default value.
mutating func clearClass() {_uniqueStorage()._class = nil}
var typedecl: UInt32 {
get {_storage._typedecl ?? 0}
set {_uniqueStorage()._typedecl = newValue}
}
/// Returns true if `typedecl` has been explicitly set.
var hasTypedecl: Bool {_storage._typedecl != nil}
/// Clears the value of `typedecl`. Subsequent reads from it will return its default value.
mutating func clearTypedecl() {_uniqueStorage()._typedecl = nil}
var auto: UInt32 {
get {_storage._auto ?? 0}
set {_uniqueStorage()._auto = newValue}
}
/// Returns true if `auto` has been explicitly set.
var hasAuto: Bool {_storage._auto != nil}
/// Clears the value of `auto`. Subsequent reads from it will return its default value.
mutating func clearAuto() {_uniqueStorage()._auto = nil}
var `do`: EditionUnittest_TestConflictingSymbolNames.DO {
get {_storage._do ?? EditionUnittest_TestConflictingSymbolNames.DO()}
set {_uniqueStorage()._do = newValue}
}
/// Returns true if ``do`` has been explicitly set.
var hasDo: Bool {_storage._do != nil}
/// Clears the value of ``do``. Subsequent reads from it will return its default value.
mutating func clearDo() {_uniqueStorage()._do = nil}
/// Some template parameter names for extensions.
var fieldType: Int32 {
get {_storage._fieldType ?? 0}
set {_uniqueStorage()._fieldType = newValue}
}
/// Returns true if `fieldType` has been explicitly set.
var hasFieldType: Bool {_storage._fieldType != nil}
/// Clears the value of `fieldType`. Subsequent reads from it will return its default value.
mutating func clearFieldType() {_uniqueStorage()._fieldType = nil}
var isPacked: Bool {
get {_storage._isPacked ?? false}
set {_uniqueStorage()._isPacked = newValue}
}
/// Returns true if `isPacked` has been explicitly set.
var hasIsPacked: Bool {_storage._isPacked != nil}
/// Clears the value of `isPacked`. Subsequent reads from it will return its default value.
mutating func clearIsPacked() {_uniqueStorage()._isPacked = nil}
/// test conflicting release_$name$. "length" and "do" field in this message
/// must remain string or message fields to make the test valid.
var releaseLength: String {
get {_storage._releaseLength ?? String()}
set {_uniqueStorage()._releaseLength = newValue}
}
/// Returns true if `releaseLength` has been explicitly set.
var hasReleaseLength: Bool {_storage._releaseLength != nil}
/// Clears the value of `releaseLength`. Subsequent reads from it will return its default value.
mutating func clearReleaseLength() {_uniqueStorage()._releaseLength = nil}
/// A more extreme case, the field name "do" here is a keyword, which will be
/// escaped to "do_" already. Test there is no conflict even with escaped field
/// names.
var releaseDo: EditionUnittest_TestConflictingSymbolNames.DO {
get {_storage._releaseDo ?? EditionUnittest_TestConflictingSymbolNames.DO()}
set {_uniqueStorage()._releaseDo = newValue}
}
/// Returns true if `releaseDo` has been explicitly set.
var hasReleaseDo: Bool {_storage._releaseDo != nil}
/// Clears the value of `releaseDo`. Subsequent reads from it will return its default value.
mutating func clearReleaseDo() {_uniqueStorage()._releaseDo = nil}
/// For clashing local variables in Serialize and ByteSize calculation.
var target: String {
get {_storage._target ?? String()}
set {_uniqueStorage()._target = newValue}
}
/// Returns true if `target` has been explicitly set.
var hasTarget: Bool {_storage._target != nil}
/// Clears the value of `target`. Subsequent reads from it will return its default value.
mutating func clearTarget() {_uniqueStorage()._target = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
nonisolated enum TestEnum: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
case foo = 0
init() {
self = .foo
}
}
nonisolated struct BuildDescriptors: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
}
nonisolated struct TypeTraits: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
}
/// Use common namespaces to make sure we are properly qualifying
nonisolated struct std: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
}
nonisolated struct Data1: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var data: [Int32] = []
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
}
nonisolated struct Data2: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var data: [EditionUnittest_TestConflictingSymbolNames.TestEnum] = []
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
}
nonisolated struct Data3: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var data: [String] = []
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
}
nonisolated struct Data4: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var data: [EditionUnittest_TestConflictingSymbolNames.Data4] = []
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
}
nonisolated struct Data5: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var data: [String] = []
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
}
nonisolated struct Data6: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var data: [String] = []
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
}
nonisolated struct Cord: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
}
nonisolated struct StringPiece: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
}
/// Methods generated in the parent type
nonisolated struct BadKnownNamesFields: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var unknownFields_p: Int32 {
get {_unknownFields_p ?? 0}
set {_unknownFields_p = newValue}
}
/// Returns true if `unknownFields_p` has been explicitly set.
var hasUnknownFields_p: Bool {self._unknownFields_p != nil}
/// Clears the value of `unknownFields_p`. Subsequent reads from it will return its default value.
mutating func clearUnknownFields_p() {self._unknownFields_p = nil}
var mutableUnknownFields: Int32 {
get {_mutableUnknownFields ?? 0}
set {_mutableUnknownFields = newValue}
}
/// Returns true if `mutableUnknownFields` has been explicitly set.
var hasMutableUnknownFields: Bool {self._mutableUnknownFields != nil}
/// Clears the value of `mutableUnknownFields`. Subsequent reads from it will return its default value.
mutating func clearMutableUnknownFields() {self._mutableUnknownFields = nil}
var descriptor: Int32 {
get {_descriptor ?? 0}
set {_descriptor = newValue}
}
/// Returns true if `descriptor` has been explicitly set.
var hasDescriptor: Bool {self._descriptor != nil}
/// Clears the value of `descriptor`. Subsequent reads from it will return its default value.
mutating func clearDescriptor() {self._descriptor = nil}
var defaultInstance: Int32 {
get {_defaultInstance ?? 0}
set {_defaultInstance = newValue}
}
/// Returns true if `defaultInstance` has been explicitly set.
var hasDefaultInstance: Bool {self._defaultInstance != nil}
/// Clears the value of `defaultInstance`. Subsequent reads from it will return its default value.
mutating func clearDefaultInstance() {self._defaultInstance = nil}
var swap: Int32 {
get {_swap ?? 0}
set {_swap = newValue}
}
/// Returns true if `swap` has been explicitly set.
var hasSwap: Bool {self._swap != nil}
/// Clears the value of `swap`. Subsequent reads from it will return its default value.
mutating func clearSwap() {self._swap = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _unknownFields_p: Int32? = nil
fileprivate var _mutableUnknownFields: Int32? = nil
fileprivate var _descriptor: Int32? = nil
fileprivate var _defaultInstance: Int32? = nil
fileprivate var _swap: Int32? = nil
}
nonisolated struct BadKnownNamesFieldsNoStandardDescriptor: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var descriptor: Int32 {
get {_descriptor ?? 0}
set {_descriptor = newValue}
}
/// Returns true if `descriptor` has been explicitly set.
var hasDescriptor: Bool {self._descriptor != nil}
/// Clears the value of `descriptor`. Subsequent reads from it will return its default value.
mutating func clearDescriptor() {self._descriptor = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _descriptor: Int32? = nil
}
nonisolated struct BadKnownNamesTypes: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var unknownFields = SwiftProtobuf.UnknownStorage()
nonisolated struct GetDescriptor: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
}
nonisolated struct GetReflection: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
}
nonisolated struct Swap: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
}
nonisolated struct UnsafeArenaSwap: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
}
nonisolated struct New: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
}
nonisolated struct CopyFrom: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
}
nonisolated struct MergeFrom: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
}
nonisolated struct GetMetadata: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
}
nonisolated struct Clear: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
}
nonisolated struct IsInitialized: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
}
init() {}
}
nonisolated struct BadKnownNamesValues: SwiftProtobuf.ExtensibleMessage, Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
var _protobuf_extensionFieldValues = SwiftProtobuf.ExtensionFieldValueSet()
}
/// The generator used to #define a macro called "DO" inside the .cc file.
nonisolated struct DO: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
}
init() {}
var _protobuf_extensionFieldValues = SwiftProtobuf.ExtensionFieldValueSet()
fileprivate var _storage = _StorageClass.defaultInstance
}
/// Special names as above, but at file scope.
nonisolated struct EditionUnittest_GetDescriptor: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
}
nonisolated struct EditionUnittest_GetReflection: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
}
nonisolated struct EditionUnittest_Swap: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
}
nonisolated struct EditionUnittest_UnsafeArenaSwap: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
}
nonisolated struct EditionUnittest_New: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
}
nonisolated struct EditionUnittest_CopyFrom: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
}
nonisolated struct EditionUnittest_MergeFrom: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
}
nonisolated struct EditionUnittest_GetMetadata: Sendable {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
}