@blueid/access-proto 2.0.0-beta.2 → 2.0.0-beta.21

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: 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 {