@blueid/access-proto 2.0.0-beta.14 → 2.0.0-beta.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,5 @@
1
1
  // DO NOT EDIT.
2
2
  // swift-format-ignore-file
3
- // swiftlint:disable all
4
3
  //
5
4
  // Generated by the Swift generator plugin for the protocol buffer compiler.
6
5
  // Source: BlueLock.proto
@@ -8,6 +7,7 @@
8
7
  // For information on using the generated types, please see the documentation:
9
8
  // https://github.com/apple/swift-protobuf/
10
9
 
10
+ import Foundation
11
11
  import SwiftProtobuf
12
12
 
13
13
  // If the compiler emits an error on this type, it is because this file
@@ -20,7 +20,7 @@ fileprivate struct _GeneratedWithProtocGenSwiftVersion: SwiftProtobuf.ProtobufAP
20
20
  typealias Version = _2
21
21
  }
22
22
 
23
- public enum BlueLockState: SwiftProtobuf.Enum, Swift.CaseIterable {
23
+ public enum BlueLockState: SwiftProtobuf.Enum {
24
24
  public typealias RawValue = Int
25
25
  case unknownLockState // = 1
26
26
  case locked // = 2
@@ -52,7 +52,15 @@ public enum BlueLockState: SwiftProtobuf.Enum, Swift.CaseIterable {
52
52
 
53
53
  }
54
54
 
55
- public struct BlueLockConfig: Sendable {
55
+ #if swift(>=4.2)
56
+
57
+ extension BlueLockState: CaseIterable {
58
+ // Support synthesized by the compiler.
59
+ }
60
+
61
+ #endif // swift(>=4.2)
62
+
63
+ public struct BlueLockConfig {
56
64
  // SwiftProtobuf.Message conformance is added in an extension below. See the
57
65
  // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
58
66
  // methods supported on all messages.
@@ -111,7 +119,7 @@ public struct BlueLockConfig: Sendable {
111
119
  fileprivate var _extendedOpenTimeSec: UInt32? = nil
112
120
  }
113
121
 
114
- public struct BlueLockStatus: Sendable {
122
+ public struct BlueLockStatus {
115
123
  // SwiftProtobuf.Message conformance is added in an extension below. See the
116
124
  // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
117
125
  // methods supported on all messages.
@@ -142,6 +150,12 @@ public struct BlueLockStatus: Sendable {
142
150
  fileprivate var _openings: UInt32? = nil
143
151
  }
144
152
 
153
+ #if swift(>=5.5) && canImport(_Concurrency)
154
+ extension BlueLockState: @unchecked Sendable {}
155
+ extension BlueLockConfig: @unchecked Sendable {}
156
+ extension BlueLockStatus: @unchecked Sendable {}
157
+ #endif // swift(>=5.5) && canImport(_Concurrency)
158
+
145
159
  // MARK: - Code below here is support for the SwiftProtobuf runtime.
146
160
 
147
161
  extension BlueLockState: SwiftProtobuf._ProtoNameProviding {
@@ -1,6 +1,5 @@
1
1
  // DO NOT EDIT.
2
2
  // swift-format-ignore-file
3
- // swiftlint:disable all
4
3
  //
5
4
  // Generated by the Swift generator plugin for the protocol buffer compiler.
6
5
  // Source: BlueSDK.proto
@@ -21,7 +20,7 @@ fileprivate struct _GeneratedWithProtocGenSwiftVersion: SwiftProtobuf.ProtobufAP
21
20
  typealias Version = _2
22
21
  }
23
22
 
24
- public enum BlueDeviceType: SwiftProtobuf.Enum, Swift.CaseIterable {
23
+ public enum BlueDeviceType: SwiftProtobuf.Enum {
25
24
  public typealias RawValue = Int
26
25
  case bluetoothDevice // = 1
27
26
  case uwbdevice // = 2
@@ -47,7 +46,15 @@ public enum BlueDeviceType: SwiftProtobuf.Enum, Swift.CaseIterable {
47
46
 
48
47
  }
49
48
 
50
- public enum BlueRefreshOssSoCredentialStatus: SwiftProtobuf.Enum, Swift.CaseIterable {
49
+ #if swift(>=4.2)
50
+
51
+ extension BlueDeviceType: CaseIterable {
52
+ // Support synthesized by the compiler.
53
+ }
54
+
55
+ #endif // swift(>=4.2)
56
+
57
+ public enum BlueRefreshOssSoCredentialStatus: SwiftProtobuf.Enum {
51
58
  public typealias RawValue = Int
52
59
  case succeeded // = 1
53
60
  case failed // = 2
@@ -79,7 +86,15 @@ public enum BlueRefreshOssSoCredentialStatus: SwiftProtobuf.Enum, Swift.CaseIter
79
86
 
80
87
  }
81
88
 
82
- public struct BlueI18n: @unchecked Sendable {
89
+ #if swift(>=4.2)
90
+
91
+ extension BlueRefreshOssSoCredentialStatus: CaseIterable {
92
+ // Support synthesized by the compiler.
93
+ }
94
+
95
+ #endif // swift(>=4.2)
96
+
97
+ public struct BlueI18n {
83
98
  // SwiftProtobuf.Message conformance is added in an extension below. See the
84
99
  // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
85
100
  // methods supported on all messages.
@@ -640,7 +655,7 @@ public struct BlueI18n: @unchecked Sendable {
640
655
  fileprivate var _storage = _StorageClass.defaultInstance
641
656
  }
642
657
 
643
- public struct BlueDeviceDetailsBluetooth: Sendable {
658
+ public struct BlueDeviceDetailsBluetooth {
644
659
  // SwiftProtobuf.Message conformance is added in an extension below. See the
645
660
  // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
646
661
  // methods supported on all messages.
@@ -681,7 +696,7 @@ public struct BlueDeviceDetailsBluetooth: Sendable {
681
696
  fileprivate var _isIbeacon: Bool? = nil
682
697
  }
683
698
 
684
- public struct BlueDeviceDetailsUWB: Sendable {
699
+ public struct BlueDeviceDetailsUWB {
685
700
  // SwiftProtobuf.Message conformance is added in an extension below. See the
686
701
  // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
687
702
  // methods supported on all messages.
@@ -702,7 +717,7 @@ public struct BlueDeviceDetailsUWB: Sendable {
702
717
  fileprivate var _notUsed: Bool? = nil
703
718
  }
704
719
 
705
- public struct BlueDeviceInfo: Sendable {
720
+ public struct BlueDeviceInfo {
706
721
  // SwiftProtobuf.Message conformance is added in an extension below. See the
707
722
  // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
708
723
  // methods supported on all messages.
@@ -763,7 +778,7 @@ public struct BlueDeviceInfo: Sendable {
763
778
 
764
779
  public var unknownFields = SwiftProtobuf.UnknownStorage()
765
780
 
766
- public enum OneOf_Details: Equatable, Sendable {
781
+ public enum OneOf_Details: Equatable {
767
782
  case bluetooth(BlueDeviceDetailsBluetooth)
768
783
  case uwb(BlueDeviceDetailsUWB)
769
784
 
@@ -783,6 +798,24 @@ public struct BlueDeviceInfo: Sendable {
783
798
  }
784
799
  }
785
800
 
801
+ #if !swift(>=4.1)
802
+ public static func ==(lhs: BlueDeviceInfo.OneOf_Details, rhs: BlueDeviceInfo.OneOf_Details) -> Bool {
803
+ // The use of inline closures is to circumvent an issue where the compiler
804
+ // allocates stack space for every case branch when no optimizations are
805
+ // enabled. https://github.com/apple/swift-protobuf/issues/1034
806
+ switch (lhs, rhs) {
807
+ case (.bluetooth, .bluetooth): return {
808
+ guard case .bluetooth(let l) = lhs, case .bluetooth(let r) = rhs else { preconditionFailure() }
809
+ return l == r
810
+ }()
811
+ case (.uwb, .uwb): return {
812
+ guard case .uwb(let l) = lhs, case .uwb(let r) = rhs else { preconditionFailure() }
813
+ return l == r
814
+ }()
815
+ default: return false
816
+ }
817
+ }
818
+ #endif
786
819
  }
787
820
 
788
821
  public init() {}
@@ -793,7 +826,7 @@ public struct BlueDeviceInfo: Sendable {
793
826
  fileprivate var _manufacturerInfo: BlueBleManufacturerInfo? = nil
794
827
  }
795
828
 
796
- public struct BlueIdentity: @unchecked Sendable {
829
+ public struct BlueIdentity {
797
830
  // SwiftProtobuf.Message conformance is added in an extension below. See the
798
831
  // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
799
832
  // methods supported on all messages.
@@ -915,7 +948,7 @@ public struct BlueIdentity: @unchecked Sendable {
915
948
  fileprivate var _storage = _StorageClass.defaultInstance
916
949
  }
917
950
 
918
- public struct BlueIdentitiesList: Sendable {
951
+ public struct BlueIdentitiesList {
919
952
  // SwiftProtobuf.Message conformance is added in an extension below. See the
920
953
  // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
921
954
  // methods supported on all messages.
@@ -927,7 +960,7 @@ public struct BlueIdentitiesList: Sendable {
927
960
  public init() {}
928
961
  }
929
962
 
930
- public struct BlueAccessDevice: Sendable {
963
+ public struct BlueAccessDevice {
931
964
  // SwiftProtobuf.Message conformance is added in an extension below. See the
932
965
  // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
933
966
  // methods supported on all messages.
@@ -968,7 +1001,7 @@ public struct BlueAccessDevice: Sendable {
968
1001
  fileprivate var _objectID: Int32? = nil
969
1002
  }
970
1003
 
971
- public struct BlueAccessDeviceList: Sendable {
1004
+ public struct BlueAccessDeviceList {
972
1005
  // SwiftProtobuf.Message conformance is added in an extension below. See the
973
1006
  // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
974
1007
  // methods supported on all messages.
@@ -980,7 +1013,7 @@ public struct BlueAccessDeviceList: Sendable {
980
1013
  public init() {}
981
1014
  }
982
1015
 
983
- public struct BlueAccessObject: Sendable {
1016
+ public struct BlueAccessObject {
984
1017
  // SwiftProtobuf.Message conformance is added in an extension below. See the
985
1018
  // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
986
1019
  // methods supported on all messages.
@@ -1033,7 +1066,7 @@ public struct BlueAccessObject: Sendable {
1033
1066
  fileprivate var _description_p: String? = nil
1034
1067
  }
1035
1068
 
1036
- public struct BlueAccessObjectList: Sendable {
1069
+ public struct BlueAccessObjectList {
1037
1070
  // SwiftProtobuf.Message conformance is added in an extension below. See the
1038
1071
  // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
1039
1072
  // methods supported on all messages.
@@ -1045,7 +1078,7 @@ public struct BlueAccessObjectList: Sendable {
1045
1078
  public init() {}
1046
1079
  }
1047
1080
 
1048
- public struct BlueHardwareInfo: Sendable {
1081
+ public struct BlueHardwareInfo {
1049
1082
  // SwiftProtobuf.Message conformance is added in an extension below. See the
1050
1083
  // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
1051
1084
  // methods supported on all messages.
@@ -1106,7 +1139,7 @@ public struct BlueHardwareInfo: Sendable {
1106
1139
  fileprivate var _type: BlueHardwareType? = nil
1107
1140
  }
1108
1141
 
1109
- public struct BlueSystemStatusExt: Sendable {
1142
+ public struct BlueSystemStatusExt {
1110
1143
  // SwiftProtobuf.Message conformance is added in an extension below. See the
1111
1144
  // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
1112
1145
  // methods supported on all messages.
@@ -1167,7 +1200,7 @@ public struct BlueSystemStatusExt: Sendable {
1167
1200
  fileprivate var _hardwareInfo: BlueHardwareInfo? = nil
1168
1201
  }
1169
1202
 
1170
- public struct BlueRefreshOssSoIdentity: Sendable {
1203
+ public struct BlueRefreshOssSoIdentity {
1171
1204
  // SwiftProtobuf.Message conformance is added in an extension below. See the
1172
1205
  // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
1173
1206
  // methods supported on all messages.
@@ -1210,7 +1243,7 @@ public struct BlueRefreshOssSoIdentity: Sendable {
1210
1243
  fileprivate var _configuration: BlueOssSoConfiguration? = nil
1211
1244
  }
1212
1245
 
1213
- public struct BlueRefreshOssSoIdentities: Sendable {
1246
+ public struct BlueRefreshOssSoIdentities {
1214
1247
  // SwiftProtobuf.Message conformance is added in an extension below. See the
1215
1248
  // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
1216
1249
  // methods supported on all messages.
@@ -1222,7 +1255,7 @@ public struct BlueRefreshOssSoIdentities: Sendable {
1222
1255
  public init() {}
1223
1256
  }
1224
1257
 
1225
- public struct BlueSynchronizeIdentity: Sendable {
1258
+ public struct BlueSynchronizeIdentity {
1226
1259
  // SwiftProtobuf.Message conformance is added in an extension below. See the
1227
1260
  // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
1228
1261
  // methods supported on all messages.
@@ -1263,7 +1296,7 @@ public struct BlueSynchronizeIdentity: Sendable {
1263
1296
  fileprivate var _errorDescription: String? = nil
1264
1297
  }
1265
1298
 
1266
- public struct BlueSynchronizeIdentities: Sendable {
1299
+ public struct BlueSynchronizeIdentities {
1267
1300
  // SwiftProtobuf.Message conformance is added in an extension below. See the
1268
1301
  // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
1269
1302
  // methods supported on all messages.
@@ -1275,7 +1308,7 @@ public struct BlueSynchronizeIdentities: Sendable {
1275
1308
  public init() {}
1276
1309
  }
1277
1310
 
1278
- public struct BlueLegacyProvisioningRequest: Sendable {
1311
+ public struct BlueLegacyProvisioningRequest {
1279
1312
  // SwiftProtobuf.Message conformance is added in an extension below. See the
1280
1313
  // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
1281
1314
  // methods supported on all messages.
@@ -1346,7 +1379,7 @@ public struct BlueLegacyProvisioningRequest: Sendable {
1346
1379
  fileprivate var _hardwareSerialNumber: String? = nil
1347
1380
  }
1348
1381
 
1349
- public struct BlueLegacyProvisioningResponse: Sendable {
1382
+ public struct BlueLegacyProvisioningResponse {
1350
1383
  // SwiftProtobuf.Message conformance is added in an extension below. See the
1351
1384
  // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
1352
1385
  // methods supported on all messages.
@@ -1398,7 +1431,7 @@ public struct BlueLegacyProvisioningResponse: Sendable {
1398
1431
  }
1399
1432
 
1400
1433
  /// @TODO: Keep it until we have updated all places in both iOS and Android SDK.
1401
- public struct BlueAccessCredential: @unchecked Sendable {
1434
+ public struct BlueAccessCredential {
1402
1435
  // SwiftProtobuf.Message conformance is added in an extension below. See the
1403
1436
  // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
1404
1437
  // methods supported on all messages.
@@ -1527,7 +1560,7 @@ public struct BlueAccessCredential: @unchecked Sendable {
1527
1560
  fileprivate var _storage = _StorageClass.defaultInstance
1528
1561
  }
1529
1562
 
1530
- public struct BlueAccessCredentialList: Sendable {
1563
+ public struct BlueAccessCredentialList {
1531
1564
  // SwiftProtobuf.Message conformance is added in an extension below. See the
1532
1565
  // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
1533
1566
  // methods supported on all messages.
@@ -1539,7 +1572,7 @@ public struct BlueAccessCredentialList: Sendable {
1539
1572
  public init() {}
1540
1573
  }
1541
1574
 
1542
- public struct BlueRefreshOssSoCredential: Sendable {
1575
+ public struct BlueRefreshOssSoCredential {
1543
1576
  // SwiftProtobuf.Message conformance is added in an extension below. See the
1544
1577
  // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
1545
1578
  // methods supported on all messages.
@@ -1580,7 +1613,7 @@ public struct BlueRefreshOssSoCredential: Sendable {
1580
1613
  fileprivate var _configuration: BlueOssSoConfiguration? = nil
1581
1614
  }
1582
1615
 
1583
- public struct BlueRefreshOssSoCredentials: Sendable {
1616
+ public struct BlueRefreshOssSoCredentials {
1584
1617
  // SwiftProtobuf.Message conformance is added in an extension below. See the
1585
1618
  // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
1586
1619
  // methods supported on all messages.
@@ -1592,7 +1625,7 @@ public struct BlueRefreshOssSoCredentials: Sendable {
1592
1625
  public init() {}
1593
1626
  }
1594
1627
 
1595
- public struct BlueSynchronizeAccessCredential: Sendable {
1628
+ public struct BlueSynchronizeAccessCredential {
1596
1629
  // SwiftProtobuf.Message conformance is added in an extension below. See the
1597
1630
  // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
1598
1631
  // methods supported on all messages.
@@ -1633,7 +1666,7 @@ public struct BlueSynchronizeAccessCredential: Sendable {
1633
1666
  fileprivate var _errorDescription: String? = nil
1634
1667
  }
1635
1668
 
1636
- public struct BlueSynchronizeAccessCredentials: Sendable {
1669
+ public struct BlueSynchronizeAccessCredentials {
1637
1670
  // SwiftProtobuf.Message conformance is added in an extension below. See the
1638
1671
  // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
1639
1672
  // methods supported on all messages.
@@ -1645,6 +1678,36 @@ public struct BlueSynchronizeAccessCredentials: Sendable {
1645
1678
  public init() {}
1646
1679
  }
1647
1680
 
1681
+ #if swift(>=5.5) && canImport(_Concurrency)
1682
+ extension BlueDeviceType: @unchecked Sendable {}
1683
+ extension BlueRefreshOssSoCredentialStatus: @unchecked Sendable {}
1684
+ extension BlueI18n: @unchecked Sendable {}
1685
+ extension BlueDeviceDetailsBluetooth: @unchecked Sendable {}
1686
+ extension BlueDeviceDetailsUWB: @unchecked Sendable {}
1687
+ extension BlueDeviceInfo: @unchecked Sendable {}
1688
+ extension BlueDeviceInfo.OneOf_Details: @unchecked Sendable {}
1689
+ extension BlueIdentity: @unchecked Sendable {}
1690
+ extension BlueIdentitiesList: @unchecked Sendable {}
1691
+ extension BlueAccessDevice: @unchecked Sendable {}
1692
+ extension BlueAccessDeviceList: @unchecked Sendable {}
1693
+ extension BlueAccessObject: @unchecked Sendable {}
1694
+ extension BlueAccessObjectList: @unchecked Sendable {}
1695
+ extension BlueHardwareInfo: @unchecked Sendable {}
1696
+ extension BlueSystemStatusExt: @unchecked Sendable {}
1697
+ extension BlueRefreshOssSoIdentity: @unchecked Sendable {}
1698
+ extension BlueRefreshOssSoIdentities: @unchecked Sendable {}
1699
+ extension BlueSynchronizeIdentity: @unchecked Sendable {}
1700
+ extension BlueSynchronizeIdentities: @unchecked Sendable {}
1701
+ extension BlueLegacyProvisioningRequest: @unchecked Sendable {}
1702
+ extension BlueLegacyProvisioningResponse: @unchecked Sendable {}
1703
+ extension BlueAccessCredential: @unchecked Sendable {}
1704
+ extension BlueAccessCredentialList: @unchecked Sendable {}
1705
+ extension BlueRefreshOssSoCredential: @unchecked Sendable {}
1706
+ extension BlueRefreshOssSoCredentials: @unchecked Sendable {}
1707
+ extension BlueSynchronizeAccessCredential: @unchecked Sendable {}
1708
+ extension BlueSynchronizeAccessCredentials: @unchecked Sendable {}
1709
+ #endif // swift(>=5.5) && canImport(_Concurrency)
1710
+
1648
1711
  // MARK: - Code below here is support for the SwiftProtobuf runtime.
1649
1712
 
1650
1713
  extension BlueDeviceType: SwiftProtobuf._ProtoNameProviding {
@@ -1,6 +1,5 @@
1
1
  // DO NOT EDIT.
2
2
  // swift-format-ignore-file
3
- // swiftlint:disable all
4
3
  //
5
4
  // Generated by the Swift generator plugin for the protocol buffer compiler.
6
5
  // Source: BlueSystem.proto
@@ -21,7 +20,7 @@ fileprivate struct _GeneratedWithProtocGenSwiftVersion: SwiftProtobuf.ProtobufAP
21
20
  typealias Version = _2
22
21
  }
23
22
 
24
- public struct BlueBaseConfig: Sendable {
23
+ public struct BlueBaseConfig {
25
24
  // SwiftProtobuf.Message conformance is added in an extension below. See the
26
25
  // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
27
26
  // methods supported on all messages.
@@ -75,7 +74,7 @@ public struct BlueBaseConfig: Sendable {
75
74
  fileprivate var _autoCheckSystemStatus: Bool? = nil
76
75
  }
77
76
 
78
- public struct BlueBleConfig: Sendable {
77
+ public struct BlueBleConfig {
79
78
  // SwiftProtobuf.Message conformance is added in an extension below. See the
80
79
  // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
81
80
  // methods supported on all messages.
@@ -161,7 +160,7 @@ public struct BlueBleConfig: Sendable {
161
160
  fileprivate var _isIbeaconAdvertisement: Bool? = nil
162
161
  }
163
162
 
164
- public struct BlueOnlineConfig: Sendable {
163
+ public struct BlueOnlineConfig {
165
164
  // SwiftProtobuf.Message conformance is added in an extension below. See the
166
165
  // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
167
166
  // methods supported on all messages.
@@ -210,7 +209,7 @@ public struct BlueOnlineConfig: Sendable {
210
209
  fileprivate var _timeoutSec: UInt32? = nil
211
210
  }
212
211
 
213
- public struct BlueAccessConfigGroup: Sendable {
212
+ public struct BlueAccessConfigGroup {
214
213
  // SwiftProtobuf.Message conformance is added in an extension below. See the
215
214
  // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
216
215
  // methods supported on all messages.
@@ -233,7 +232,7 @@ public struct BlueAccessConfigGroup: Sendable {
233
232
  fileprivate var _groupID: UInt32? = nil
234
233
  }
235
234
 
236
- public struct BlueAccessConfig: Sendable {
235
+ public struct BlueAccessConfig {
237
236
  // SwiftProtobuf.Message conformance is added in an extension below. See the
238
237
  // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
239
238
  // methods supported on all messages.
@@ -271,7 +270,7 @@ public struct BlueAccessConfig: Sendable {
271
270
 
272
271
  ///
273
272
  /// -- Oss SecureId --
274
- public struct BlueOssConfig: @unchecked Sendable {
273
+ public struct BlueOssConfig {
275
274
  // SwiftProtobuf.Message conformance is added in an extension below. See the
276
275
  // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
277
276
  // methods supported on all messages.
@@ -377,7 +376,7 @@ public struct BlueOssConfig: @unchecked Sendable {
377
376
  fileprivate var _soMifareAid: UInt32? = nil
378
377
  }
379
378
 
380
- public struct BlueSystemConfig: @unchecked Sendable {
379
+ public struct BlueSystemConfig {
381
380
  // SwiftProtobuf.Message conformance is added in an extension below. See the
382
381
  // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
383
382
  // methods supported on all messages.
@@ -454,7 +453,7 @@ public struct BlueSystemConfig: @unchecked Sendable {
454
453
  fileprivate var _storage = _StorageClass.defaultInstance
455
454
  }
456
455
 
457
- public struct BlueSystemTimeUnix: Sendable {
456
+ public struct BlueSystemTimeUnix {
458
457
  // SwiftProtobuf.Message conformance is added in an extension below. See the
459
458
  // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
460
459
  // methods supported on all messages.
@@ -475,7 +474,7 @@ public struct BlueSystemTimeUnix: Sendable {
475
474
  fileprivate var _epoch: UInt32? = nil
476
475
  }
477
476
 
478
- public struct BlueSystemUpdate: Sendable {
477
+ public struct BlueSystemUpdate {
479
478
  // SwiftProtobuf.Message conformance is added in an extension below. See the
480
479
  // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
481
480
  // methods supported on all messages.
@@ -506,7 +505,7 @@ public struct BlueSystemUpdate: Sendable {
506
505
  fileprivate var _timeUnix: BlueSystemTimeUnix? = nil
507
506
  }
508
507
 
509
- public struct BlueSystemSettings: Sendable {
508
+ public struct BlueSystemSettings {
510
509
  // SwiftProtobuf.Message conformance is added in an extension below. See the
511
510
  // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
512
511
  // methods supported on all messages.
@@ -637,7 +636,7 @@ public struct BlueSystemSettings: Sendable {
637
636
  fileprivate var _isBatteryLow: Bool? = nil
638
637
  }
639
638
 
640
- public struct BlueSystemProvisioning: @unchecked Sendable {
639
+ public struct BlueSystemProvisioning {
641
640
  // SwiftProtobuf.Message conformance is added in an extension below. See the
642
641
  // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
643
642
  // methods supported on all messages.
@@ -705,7 +704,7 @@ public struct BlueSystemProvisioning: @unchecked Sendable {
705
704
  fileprivate var _signaturePublicKey: Data? = nil
706
705
  }
707
706
 
708
- public struct BlueSystemStatus: @unchecked Sendable {
707
+ public struct BlueSystemStatus {
709
708
  // SwiftProtobuf.Message conformance is added in an extension below. See the
710
709
  // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
711
710
  // methods supported on all messages.
@@ -808,7 +807,7 @@ public struct BlueSystemStatus: @unchecked Sendable {
808
807
  fileprivate var _storage = _StorageClass.defaultInstance
809
808
  }
810
809
 
811
- public struct BlueSystemLogQuery: Sendable {
810
+ public struct BlueSystemLogQuery {
812
811
  // SwiftProtobuf.Message conformance is added in an extension below. See the
813
812
  // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
814
813
  // methods supported on all messages.
@@ -843,11 +842,29 @@ public struct BlueSystemLogQuery: Sendable {
843
842
 
844
843
  public var unknownFields = SwiftProtobuf.UnknownStorage()
845
844
 
846
- public enum OneOf_Start: Equatable, Sendable {
845
+ public enum OneOf_Start: Equatable {
847
846
  case sequenceID(UInt32)
848
847
  /// false = starts from tail
849
848
  case fromHead(Bool)
850
849
 
850
+ #if !swift(>=4.1)
851
+ public static func ==(lhs: BlueSystemLogQuery.OneOf_Start, rhs: BlueSystemLogQuery.OneOf_Start) -> Bool {
852
+ // The use of inline closures is to circumvent an issue where the compiler
853
+ // allocates stack space for every case branch when no optimizations are
854
+ // enabled. https://github.com/apple/swift-protobuf/issues/1034
855
+ switch (lhs, rhs) {
856
+ case (.sequenceID, .sequenceID): return {
857
+ guard case .sequenceID(let l) = lhs, case .sequenceID(let r) = rhs else { preconditionFailure() }
858
+ return l == r
859
+ }()
860
+ case (.fromHead, .fromHead): return {
861
+ guard case .fromHead(let l) = lhs, case .fromHead(let r) = rhs else { preconditionFailure() }
862
+ return l == r
863
+ }()
864
+ default: return false
865
+ }
866
+ }
867
+ #endif
851
868
  }
852
869
 
853
870
  public init() {}
@@ -855,7 +872,7 @@ public struct BlueSystemLogQuery: Sendable {
855
872
  fileprivate var _maxCount: UInt32? = nil
856
873
  }
857
874
 
858
- public struct BlueSystemLogEntry: Sendable {
875
+ public struct BlueSystemLogEntry {
859
876
  // SwiftProtobuf.Message conformance is added in an extension below. See the
860
877
  // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
861
878
  // methods supported on all messages.
@@ -926,7 +943,7 @@ public struct BlueSystemLogEntry: Sendable {
926
943
  fileprivate var _message: String? = nil
927
944
  }
928
945
 
929
- public struct BlueSystemLogResult: Sendable {
946
+ public struct BlueSystemLogResult {
930
947
  // SwiftProtobuf.Message conformance is added in an extension below. See the
931
948
  // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
932
949
  // methods supported on all messages.
@@ -938,7 +955,7 @@ public struct BlueSystemLogResult: Sendable {
938
955
  public init() {}
939
956
  }
940
957
 
941
- public struct BlueEventLogQuery: Sendable {
958
+ public struct BlueEventLogQuery {
942
959
  // SwiftProtobuf.Message conformance is added in an extension below. See the
943
960
  // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
944
961
  // methods supported on all messages.
@@ -973,11 +990,29 @@ public struct BlueEventLogQuery: Sendable {
973
990
 
974
991
  public var unknownFields = SwiftProtobuf.UnknownStorage()
975
992
 
976
- public enum OneOf_Start: Equatable, Sendable {
993
+ public enum OneOf_Start: Equatable {
977
994
  case sequenceID(UInt32)
978
995
  /// false = starts from tail
979
996
  case fromHead(Bool)
980
997
 
998
+ #if !swift(>=4.1)
999
+ public static func ==(lhs: BlueEventLogQuery.OneOf_Start, rhs: BlueEventLogQuery.OneOf_Start) -> Bool {
1000
+ // The use of inline closures is to circumvent an issue where the compiler
1001
+ // allocates stack space for every case branch when no optimizations are
1002
+ // enabled. https://github.com/apple/swift-protobuf/issues/1034
1003
+ switch (lhs, rhs) {
1004
+ case (.sequenceID, .sequenceID): return {
1005
+ guard case .sequenceID(let l) = lhs, case .sequenceID(let r) = rhs else { preconditionFailure() }
1006
+ return l == r
1007
+ }()
1008
+ case (.fromHead, .fromHead): return {
1009
+ guard case .fromHead(let l) = lhs, case .fromHead(let r) = rhs else { preconditionFailure() }
1010
+ return l == r
1011
+ }()
1012
+ default: return false
1013
+ }
1014
+ }
1015
+ #endif
981
1016
  }
982
1017
 
983
1018
  public init() {}
@@ -985,7 +1020,7 @@ public struct BlueEventLogQuery: Sendable {
985
1020
  fileprivate var _maxCount: UInt32? = nil
986
1021
  }
987
1022
 
988
- public struct BlueEventLogResult: Sendable {
1023
+ public struct BlueEventLogResult {
989
1024
  // SwiftProtobuf.Message conformance is added in an extension below. See the
990
1025
  // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
991
1026
  // methods supported on all messages.
@@ -997,7 +1032,7 @@ public struct BlueEventLogResult: Sendable {
997
1032
  public init() {}
998
1033
  }
999
1034
 
1000
- public struct BlueBlacklistEntries: Sendable {
1035
+ public struct BlueBlacklistEntries {
1001
1036
  // SwiftProtobuf.Message conformance is added in an extension below. See the
1002
1037
  // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
1003
1038
  // methods supported on all messages.
@@ -1009,6 +1044,29 @@ public struct BlueBlacklistEntries: Sendable {
1009
1044
  public init() {}
1010
1045
  }
1011
1046
 
1047
+ #if swift(>=5.5) && canImport(_Concurrency)
1048
+ extension BlueBaseConfig: @unchecked Sendable {}
1049
+ extension BlueBleConfig: @unchecked Sendable {}
1050
+ extension BlueOnlineConfig: @unchecked Sendable {}
1051
+ extension BlueAccessConfigGroup: @unchecked Sendable {}
1052
+ extension BlueAccessConfig: @unchecked Sendable {}
1053
+ extension BlueOssConfig: @unchecked Sendable {}
1054
+ extension BlueSystemConfig: @unchecked Sendable {}
1055
+ extension BlueSystemTimeUnix: @unchecked Sendable {}
1056
+ extension BlueSystemUpdate: @unchecked Sendable {}
1057
+ extension BlueSystemSettings: @unchecked Sendable {}
1058
+ extension BlueSystemProvisioning: @unchecked Sendable {}
1059
+ extension BlueSystemStatus: @unchecked Sendable {}
1060
+ extension BlueSystemLogQuery: @unchecked Sendable {}
1061
+ extension BlueSystemLogQuery.OneOf_Start: @unchecked Sendable {}
1062
+ extension BlueSystemLogEntry: @unchecked Sendable {}
1063
+ extension BlueSystemLogResult: @unchecked Sendable {}
1064
+ extension BlueEventLogQuery: @unchecked Sendable {}
1065
+ extension BlueEventLogQuery.OneOf_Start: @unchecked Sendable {}
1066
+ extension BlueEventLogResult: @unchecked Sendable {}
1067
+ extension BlueBlacklistEntries: @unchecked Sendable {}
1068
+ #endif // swift(>=5.5) && canImport(_Concurrency)
1069
+
1012
1070
  // MARK: - Code below here is support for the SwiftProtobuf runtime.
1013
1071
 
1014
1072
  extension BlueBaseConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {