Skip to content

Commit 033b0a2

Browse files
committed
Regenerate.
1 parent fdcd5f3 commit 033b0a2

File tree

56 files changed

+1188
-132
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+1188
-132
lines changed

FuzzTesting/Sources/FuzzCommon/fuzz_testing.pb.swift

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3551,7 +3551,15 @@ extension Fuzz_Testing_Message: SwiftProtobuf.Message, SwiftProtobuf._MessageImp
35513551
var _singularMessageSet: Fuzz_Testing_AMessageSetMessage? = nil
35523552
var _repeatedMessageSet: [Fuzz_Testing_AMessageSetMessage] = []
35533553

3554-
static let defaultInstance = _StorageClass()
3554+
#if swift(>=5.10)
3555+
// This property is used as the initial default value for new instances of the type.
3556+
// The type itself is protecting the reference to its storage via CoW semantics.
3557+
// This will force a copy to be made of this reference when the first mutation occurs;
3558+
// hence, it is safe to mark this as `nonisolated(unsafe)`.
3559+
static nonisolated(unsafe) let defaultInstance = _StorageClass()
3560+
#else
3561+
static let defaultInstance = _StorageClass()
3562+
#endif
35553563

35563564
private init() {}
35573565

Reference/Conformance/google/protobuf/test_messages_proto2.pb.swift

Lines changed: 36 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2446,7 +2446,15 @@ extension ProtobufTestMessages_Proto2_TestAllTypesProto2: SwiftProtobuf.Message,
24462446
var _fieldName17__: Int32? = nil
24472447
var _fieldName18__: Int32? = nil
24482448

2449-
static let defaultInstance = _StorageClass()
2449+
#if swift(>=5.10)
2450+
// This property is used as the initial default value for new instances of the type.
2451+
// The type itself is protecting the reference to its storage via CoW semantics.
2452+
// This will force a copy to be made of this reference when the first mutation occurs;
2453+
// hence, it is safe to mark this as `nonisolated(unsafe)`.
2454+
static nonisolated(unsafe) let defaultInstance = _StorageClass()
2455+
#else
2456+
static let defaultInstance = _StorageClass()
2457+
#endif
24502458

24512459
private init() {}
24522460

@@ -3397,7 +3405,15 @@ extension ProtobufTestMessages_Proto2_TestAllTypesProto2.NestedMessage: SwiftPro
33973405
var _a: Int32? = nil
33983406
var _corecursive: ProtobufTestMessages_Proto2_TestAllTypesProto2? = nil
33993407

3400-
static let defaultInstance = _StorageClass()
3408+
#if swift(>=5.10)
3409+
// This property is used as the initial default value for new instances of the type.
3410+
// The type itself is protecting the reference to its storage via CoW semantics.
3411+
// This will force a copy to be made of this reference when the first mutation occurs;
3412+
// hence, it is safe to mark this as `nonisolated(unsafe)`.
3413+
static nonisolated(unsafe) let defaultInstance = _StorageClass()
3414+
#else
3415+
static let defaultInstance = _StorageClass()
3416+
#endif
34013417

34023418
private init() {}
34033419

@@ -3960,7 +3976,15 @@ extension ProtobufTestMessages_Proto2_TestAllRequiredTypesProto2: SwiftProtobuf.
39603976
var _defaultString: String? = nil
39613977
var _defaultBytes: Data? = nil
39623978

3963-
static let defaultInstance = _StorageClass()
3979+
#if swift(>=5.10)
3980+
// This property is used as the initial default value for new instances of the type.
3981+
// The type itself is protecting the reference to its storage via CoW semantics.
3982+
// This will force a copy to be made of this reference when the first mutation occurs;
3983+
// hence, it is safe to mark this as `nonisolated(unsafe)`.
3984+
static nonisolated(unsafe) let defaultInstance = _StorageClass()
3985+
#else
3986+
static let defaultInstance = _StorageClass()
3987+
#endif
39643988

39653989
private init() {}
39663990

@@ -4322,7 +4346,15 @@ extension ProtobufTestMessages_Proto2_TestAllRequiredTypesProto2.NestedMessage:
43224346
var _corecursive: ProtobufTestMessages_Proto2_TestAllRequiredTypesProto2? = nil
43234347
var _optionalCorecursive: ProtobufTestMessages_Proto2_TestAllRequiredTypesProto2? = nil
43244348

4325-
static let defaultInstance = _StorageClass()
4349+
#if swift(>=5.10)
4350+
// This property is used as the initial default value for new instances of the type.
4351+
// The type itself is protecting the reference to its storage via CoW semantics.
4352+
// This will force a copy to be made of this reference when the first mutation occurs;
4353+
// hence, it is safe to mark this as `nonisolated(unsafe)`.
4354+
static nonisolated(unsafe) let defaultInstance = _StorageClass()
4355+
#else
4356+
static let defaultInstance = _StorageClass()
4357+
#endif
43264358

43274359
private init() {}
43284360

Reference/Conformance/google/protobuf/test_messages_proto3.pb.swift

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1545,7 +1545,15 @@ extension ProtobufTestMessages_Proto3_TestAllTypesProto3: SwiftProtobuf.Message,
15451545
var _fieldName17__: Int32 = 0
15461546
var _fieldName18__: Int32 = 0
15471547

1548-
static let defaultInstance = _StorageClass()
1548+
#if swift(>=5.10)
1549+
// This property is used as the initial default value for new instances of the type.
1550+
// The type itself is protecting the reference to its storage via CoW semantics.
1551+
// This will force a copy to be made of this reference when the first mutation occurs;
1552+
// hence, it is safe to mark this as `nonisolated(unsafe)`.
1553+
static nonisolated(unsafe) let defaultInstance = _StorageClass()
1554+
#else
1555+
static let defaultInstance = _StorageClass()
1556+
#endif
15491557

15501558
private init() {}
15511559

@@ -2602,7 +2610,15 @@ extension ProtobufTestMessages_Proto3_TestAllTypesProto3.NestedMessage: SwiftPro
26022610
var _a: Int32 = 0
26032611
var _corecursive: ProtobufTestMessages_Proto3_TestAllTypesProto3? = nil
26042612

2605-
static let defaultInstance = _StorageClass()
2613+
#if swift(>=5.10)
2614+
// This property is used as the initial default value for new instances of the type.
2615+
// The type itself is protecting the reference to its storage via CoW semantics.
2616+
// This will force a copy to be made of this reference when the first mutation occurs;
2617+
// hence, it is safe to mark this as `nonisolated(unsafe)`.
2618+
static nonisolated(unsafe) let defaultInstance = _StorageClass()
2619+
#else
2620+
static let defaultInstance = _StorageClass()
2621+
#endif
26062622

26072623
private init() {}
26082624

Reference/SwiftProtobuf/google/protobuf/descriptor.pb.swift

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3261,7 +3261,15 @@ extension Google_Protobuf_DescriptorProto: SwiftProtobuf.Message, SwiftProtobuf.
32613261
var _reservedRange: [Google_Protobuf_DescriptorProto.ReservedRange] = []
32623262
var _reservedName: [String] = []
32633263

3264-
static let defaultInstance = _StorageClass()
3264+
#if swift(>=5.10)
3265+
// This property is used as the initial default value for new instances of the type.
3266+
// The type itself is protecting the reference to its storage via CoW semantics.
3267+
// This will force a copy to be made of this reference when the first mutation occurs;
3268+
// hence, it is safe to mark this as `nonisolated(unsafe)`.
3269+
static nonisolated(unsafe) let defaultInstance = _StorageClass()
3270+
#else
3271+
static let defaultInstance = _StorageClass()
3272+
#endif
32653273

32663274
private init() {}
32673275

@@ -4128,7 +4136,15 @@ extension Google_Protobuf_FileOptions: SwiftProtobuf.Message, SwiftProtobuf._Mes
41284136
var _features: Google_Protobuf_FeatureSet? = nil
41294137
var _uninterpretedOption: [Google_Protobuf_UninterpretedOption] = []
41304138

4131-
static let defaultInstance = _StorageClass()
4139+
#if swift(>=5.10)
4140+
// This property is used as the initial default value for new instances of the type.
4141+
// The type itself is protecting the reference to its storage via CoW semantics.
4142+
// This will force a copy to be made of this reference when the first mutation occurs;
4143+
// hence, it is safe to mark this as `nonisolated(unsafe)`.
4144+
static nonisolated(unsafe) let defaultInstance = _StorageClass()
4145+
#else
4146+
static let defaultInstance = _StorageClass()
4147+
#endif
41324148

41334149
private init() {}
41344150

@@ -4444,7 +4460,15 @@ extension Google_Protobuf_FieldOptions: SwiftProtobuf.Message, SwiftProtobuf._Me
44444460
var _features: Google_Protobuf_FeatureSet? = nil
44454461
var _uninterpretedOption: [Google_Protobuf_UninterpretedOption] = []
44464462

4447-
static let defaultInstance = _StorageClass()
4463+
#if swift(>=5.10)
4464+
// This property is used as the initial default value for new instances of the type.
4465+
// The type itself is protecting the reference to its storage via CoW semantics.
4466+
// This will force a copy to be made of this reference when the first mutation occurs;
4467+
// hence, it is safe to mark this as `nonisolated(unsafe)`.
4468+
static nonisolated(unsafe) let defaultInstance = _StorageClass()
4469+
#else
4470+
static let defaultInstance = _StorageClass()
4471+
#endif
44484472

44494473
private init() {}
44504474

Reference/SwiftProtobufPluginLibraryTests/pluginlib_descriptor_test.pb.swift

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -768,7 +768,15 @@ extension SDTTopLevelMessage: SwiftProtobuf.Message, SwiftProtobuf._MessageImple
768768
var _field2: Int32? = nil
769769
var _o: SDTTopLevelMessage.OneOf_O?
770770

771-
static let defaultInstance = _StorageClass()
771+
#if swift(>=5.10)
772+
// This property is used as the initial default value for new instances of the type.
773+
// The type itself is protecting the reference to its storage via CoW semantics.
774+
// This will force a copy to be made of this reference when the first mutation occurs;
775+
// hence, it is safe to mark this as `nonisolated(unsafe)`.
776+
static nonisolated(unsafe) let defaultInstance = _StorageClass()
777+
#else
778+
static let defaultInstance = _StorageClass()
779+
#endif
772780

773781
private init() {}
774782

@@ -917,7 +925,15 @@ extension SDTTopLevelMessage.SubMessage: SwiftProtobuf.Message, SwiftProtobuf._M
917925
var _field2: String? = nil
918926
var _field3: SDTTopLevelMessage.SubMessage? = nil
919927

920-
static let defaultInstance = _StorageClass()
928+
#if swift(>=5.10)
929+
// This property is used as the initial default value for new instances of the type.
930+
// The type itself is protecting the reference to its storage via CoW semantics.
931+
// This will force a copy to be made of this reference when the first mutation occurs;
932+
// hence, it is safe to mark this as `nonisolated(unsafe)`.
933+
static nonisolated(unsafe) let defaultInstance = _StorageClass()
934+
#else
935+
static let defaultInstance = _StorageClass()
936+
#endif
921937

922938
private init() {}
923939

@@ -999,7 +1015,15 @@ extension SDTTopLevelMessage2: SwiftProtobuf.Message, SwiftProtobuf._MessageImpl
9991015
var _left: SDTTopLevelMessage? = nil
10001016
var _right: SDTTopLevelMessage2? = nil
10011017

1002-
static let defaultInstance = _StorageClass()
1018+
#if swift(>=5.10)
1019+
// This property is used as the initial default value for new instances of the type.
1020+
// The type itself is protecting the reference to its storage via CoW semantics.
1021+
// This will force a copy to be made of this reference when the first mutation occurs;
1022+
// hence, it is safe to mark this as `nonisolated(unsafe)`.
1023+
static nonisolated(unsafe) let defaultInstance = _StorageClass()
1024+
#else
1025+
static let defaultInstance = _StorageClass()
1026+
#endif
10031027

10041028
private init() {}
10051029

Reference/SwiftProtobufTests/fuzz_testing.pb.swift

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3551,7 +3551,15 @@ extension Fuzz_Testing_Message: SwiftProtobuf.Message, SwiftProtobuf._MessageImp
35513551
var _singularMessageSet: Fuzz_Testing_AMessageSetMessage? = nil
35523552
var _repeatedMessageSet: [Fuzz_Testing_AMessageSetMessage] = []
35533553

3554-
static let defaultInstance = _StorageClass()
3554+
#if swift(>=5.10)
3555+
// This property is used as the initial default value for new instances of the type.
3556+
// The type itself is protecting the reference to its storage via CoW semantics.
3557+
// This will force a copy to be made of this reference when the first mutation occurs;
3558+
// hence, it is safe to mark this as `nonisolated(unsafe)`.
3559+
static nonisolated(unsafe) let defaultInstance = _StorageClass()
3560+
#else
3561+
static let defaultInstance = _StorageClass()
3562+
#endif
35553563

35563564
private init() {}
35573565

Reference/SwiftProtobufTests/generated_swift_names_fields.pb.swift

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6666,7 +6666,15 @@ extension ProtobufUnittestGenerated_GeneratedSwiftReservedFields: SwiftProtobuf.
66666666
var _written: Int32 = 0
66676667
var _yday: Int32 = 0
66686668

6669-
static let defaultInstance = _StorageClass()
6669+
#if swift(>=5.10)
6670+
// This property is used as the initial default value for new instances of the type.
6671+
// The type itself is protecting the reference to its storage via CoW semantics.
6672+
// This will force a copy to be made of this reference when the first mutation occurs;
6673+
// hence, it is safe to mark this as `nonisolated(unsafe)`.
6674+
static nonisolated(unsafe) let defaultInstance = _StorageClass()
6675+
#else
6676+
static let defaultInstance = _StorageClass()
6677+
#endif
66706678

66716679
private init() {}
66726680

Reference/SwiftProtobufTests/map_unittest.pb.swift

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,15 @@ extension ProtobufUnittest_TestMap: SwiftProtobuf.Message, SwiftProtobuf._Messag
291291
var _mapStringForeignMessage: Dictionary<String,ProtobufUnittest_ForeignMessage> = [:]
292292
var _mapInt32AllTypes: Dictionary<Int32,ProtobufUnittest_TestAllTypes> = [:]
293293

294-
static let defaultInstance = _StorageClass()
294+
#if swift(>=5.10)
295+
// This property is used as the initial default value for new instances of the type.
296+
// The type itself is protecting the reference to its storage via CoW semantics.
297+
// This will force a copy to be made of this reference when the first mutation occurs;
298+
// hence, it is safe to mark this as `nonisolated(unsafe)`.
299+
static nonisolated(unsafe) let defaultInstance = _StorageClass()
300+
#else
301+
static let defaultInstance = _StorageClass()
302+
#endif
295303

296304
private init() {}
297305

Reference/SwiftProtobufTests/test_messages_proto3.pb.swift

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1100,7 +1100,15 @@ extension ProtobufTestMessages_Proto3_TestAllTypesProto3: SwiftProtobuf.Message,
11001100
var _fieldName17__: Int32 = 0
11011101
var _fieldName18__: Int32 = 0
11021102

1103-
static let defaultInstance = _StorageClass()
1103+
#if swift(>=5.10)
1104+
// This property is used as the initial default value for new instances of the type.
1105+
// The type itself is protecting the reference to its storage via CoW semantics.
1106+
// This will force a copy to be made of this reference when the first mutation occurs;
1107+
// hence, it is safe to mark this as `nonisolated(unsafe)`.
1108+
static nonisolated(unsafe) let defaultInstance = _StorageClass()
1109+
#else
1110+
static let defaultInstance = _StorageClass()
1111+
#endif
11041112

11051113
private init() {}
11061114

@@ -1909,7 +1917,15 @@ extension ProtobufTestMessages_Proto3_TestAllTypesProto3.NestedMessage: SwiftPro
19091917
var _a: Int32 = 0
19101918
var _corecursive: ProtobufTestMessages_Proto3_TestAllTypesProto3? = nil
19111919

1912-
static let defaultInstance = _StorageClass()
1920+
#if swift(>=5.10)
1921+
// This property is used as the initial default value for new instances of the type.
1922+
// The type itself is protecting the reference to its storage via CoW semantics.
1923+
// This will force a copy to be made of this reference when the first mutation occurs;
1924+
// hence, it is safe to mark this as `nonisolated(unsafe)`.
1925+
static nonisolated(unsafe) let defaultInstance = _StorageClass()
1926+
#else
1927+
static let defaultInstance = _StorageClass()
1928+
#endif
19131929

19141930
private init() {}
19151931

Reference/SwiftProtobufTests/unittest.pb.swift

Lines changed: 45 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4681,7 +4681,15 @@ extension ProtobufUnittest_TestAllTypes: SwiftProtobuf.Message, SwiftProtobuf._M
46814681
var _defaultCord: String? = nil
46824682
var _oneofField: ProtobufUnittest_TestAllTypes.OneOf_OneofField?
46834683

4684-
static let defaultInstance = _StorageClass()
4684+
#if swift(>=5.10)
4685+
// This property is used as the initial default value for new instances of the type.
4686+
// The type itself is protecting the reference to its storage via CoW semantics.
4687+
// This will force a copy to be made of this reference when the first mutation occurs;
4688+
// hence, it is safe to mark this as `nonisolated(unsafe)`.
4689+
static nonisolated(unsafe) let defaultInstance = _StorageClass()
4690+
#else
4691+
static let defaultInstance = _StorageClass()
4692+
#endif
46854693

46864694
private init() {}
46874695

@@ -5358,7 +5366,15 @@ extension ProtobufUnittest_NestedTestAllTypes: SwiftProtobuf.Message, SwiftProto
53585366
var _lazyChild: ProtobufUnittest_NestedTestAllTypes? = nil
53595367
var _eagerChild: ProtobufUnittest_TestAllTypes? = nil
53605368

5361-
static let defaultInstance = _StorageClass()
5369+
#if swift(>=5.10)
5370+
// This property is used as the initial default value for new instances of the type.
5371+
// The type itself is protecting the reference to its storage via CoW semantics.
5372+
// This will force a copy to be made of this reference when the first mutation occurs;
5373+
// hence, it is safe to mark this as `nonisolated(unsafe)`.
5374+
static nonisolated(unsafe) let defaultInstance = _StorageClass()
5375+
#else
5376+
static let defaultInstance = _StorageClass()
5377+
#endif
53625378

53635379
private init() {}
53645380

@@ -5678,7 +5694,15 @@ extension ProtobufUnittest_TestRequired: SwiftProtobuf.Message, SwiftProtobuf._M
56785694
var _c: Int32? = nil
56795695
var _optionalForeign: ProtobufUnittest_ForeignMessage? = nil
56805696

5681-
static let defaultInstance = _StorageClass()
5697+
#if swift(>=5.10)
5698+
// This property is used as the initial default value for new instances of the type.
5699+
// The type itself is protecting the reference to its storage via CoW semantics.
5700+
// This will force a copy to be made of this reference when the first mutation occurs;
5701+
// hence, it is safe to mark this as `nonisolated(unsafe)`.
5702+
static nonisolated(unsafe) let defaultInstance = _StorageClass()
5703+
#else
5704+
static let defaultInstance = _StorageClass()
5705+
#endif
56825706

56835707
private init() {}
56845708

@@ -6132,7 +6156,15 @@ extension ProtobufUnittest_TestRecursiveMessage: SwiftProtobuf.Message, SwiftPro
61326156
var _a: ProtobufUnittest_TestRecursiveMessage? = nil
61336157
var _i: Int32? = nil
61346158

6135-
static let defaultInstance = _StorageClass()
6159+
#if swift(>=5.10)
6160+
// This property is used as the initial default value for new instances of the type.
6161+
// The type itself is protecting the reference to its storage via CoW semantics.
6162+
// This will force a copy to be made of this reference when the first mutation occurs;
6163+
// hence, it is safe to mark this as `nonisolated(unsafe)`.
6164+
static nonisolated(unsafe) let defaultInstance = _StorageClass()
6165+
#else
6166+
static let defaultInstance = _StorageClass()
6167+
#endif
61366168

61376169
private init() {}
61386170

@@ -6364,7 +6396,15 @@ extension ProtobufUnittest_TestExtremeDefaultValues: SwiftProtobuf.Message, Swif
63646396
var _cordWithZero: String? = nil
63656397
var _replacementString: String? = nil
63666398

6367-
static let defaultInstance = _StorageClass()
6399+
#if swift(>=5.10)
6400+
// This property is used as the initial default value for new instances of the type.
6401+
// The type itself is protecting the reference to its storage via CoW semantics.
6402+
// This will force a copy to be made of this reference when the first mutation occurs;
6403+
// hence, it is safe to mark this as `nonisolated(unsafe)`.
6404+
static nonisolated(unsafe) let defaultInstance = _StorageClass()
6405+
#else
6406+
static let defaultInstance = _StorageClass()
6407+
#endif
63686408

63696409
private init() {}
63706410

0 commit comments

Comments
 (0)