@blueid/access-proto 0.21.0 → 0.22.0
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.
- package/BlueCore.proto +24 -23
- package/BlueSystem.proto +54 -56
- package/cjs/BlueCore_pb.d.ts +28 -23
- package/cjs/BlueCore_pb.js +16 -15
- package/cjs/BlueSystem_pb.d.ts +51 -86
- package/cjs/BlueSystem_pb.js +37 -40
- package/es/BlueCore_pb.d.ts +28 -23
- package/es/BlueCore_pb.js +10 -9
- package/es/BlueSystem_pb.d.ts +51 -86
- package/es/BlueSystem_pb.js +22 -34
- package/nanopb/BlueCore.pb.c +2 -2
- package/nanopb/BlueCore.pb.h +88 -83
- package/nanopb/BlueLock.pb.c +1 -1
- package/nanopb/BlueLock.pb.h +1 -1
- package/nanopb/BlueSystem.pb.c +5 -6
- package/nanopb/BlueSystem.pb.h +100 -139
- package/package.json +1 -1
- package/swift/BlueCore.pb.swift +44 -36
- package/swift/BlueSystem.pb.swift +174 -217
|
@@ -20,94 +20,37 @@ fileprivate struct _GeneratedWithProtocGenSwiftVersion: SwiftProtobuf.ProtobufAP
|
|
|
20
20
|
typealias Version = _2
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
public
|
|
24
|
-
public typealias RawValue = Int
|
|
25
|
-
|
|
26
|
-
/// Offline mode
|
|
27
|
-
case offlineMode // = 0
|
|
28
|
-
|
|
29
|
-
/// Wifi is manually re-connected whenever required
|
|
30
|
-
case manualWifi // = 1
|
|
31
|
-
|
|
32
|
-
/// Wifi is always connected and re-connects automatically
|
|
33
|
-
case alwaysOnWifi // = 2
|
|
34
|
-
|
|
35
|
-
/// A LAN connection is available that shall be used
|
|
36
|
-
case useLan // = 3
|
|
37
|
-
|
|
38
|
-
public init() {
|
|
39
|
-
self = .offlineMode
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
public init?(rawValue: Int) {
|
|
43
|
-
switch rawValue {
|
|
44
|
-
case 0: self = .offlineMode
|
|
45
|
-
case 1: self = .manualWifi
|
|
46
|
-
case 2: self = .alwaysOnWifi
|
|
47
|
-
case 3: self = .useLan
|
|
48
|
-
default: return nil
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
public var rawValue: Int {
|
|
53
|
-
switch self {
|
|
54
|
-
case .offlineMode: return 0
|
|
55
|
-
case .manualWifi: return 1
|
|
56
|
-
case .alwaysOnWifi: return 2
|
|
57
|
-
case .useLan: return 3
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
#if swift(>=4.2)
|
|
64
|
-
|
|
65
|
-
extension BlueOnlineMode: CaseIterable {
|
|
66
|
-
// Support synthesized by the compiler.
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
#endif // swift(>=4.2)
|
|
70
|
-
|
|
71
|
-
public struct BlueTimeOffsetPeriod {
|
|
23
|
+
public struct BlueBaseConfig {
|
|
72
24
|
// SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
73
25
|
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
74
26
|
// methods supported on all messages.
|
|
75
27
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
set {_epoch = newValue}
|
|
28
|
+
public var isoCountry: String {
|
|
29
|
+
get {return _isoCountry ?? String()}
|
|
30
|
+
set {_isoCountry = newValue}
|
|
80
31
|
}
|
|
81
|
-
/// Returns true if `
|
|
82
|
-
public var
|
|
83
|
-
/// Clears the value of `
|
|
84
|
-
public mutating func
|
|
32
|
+
/// Returns true if `isoCountry` has been explicitly set.
|
|
33
|
+
public var hasIsoCountry: Bool {return self._isoCountry != nil}
|
|
34
|
+
/// Clears the value of `isoCountry`. Subsequent reads from it will return its default value.
|
|
35
|
+
public mutating func clearIsoCountry() {self._isoCountry = nil}
|
|
85
36
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
set {_offset = newValue}
|
|
37
|
+
public var isoState: String {
|
|
38
|
+
get {return _isoState ?? String()}
|
|
39
|
+
set {_isoState = newValue}
|
|
90
40
|
}
|
|
91
|
-
/// Returns true if `
|
|
92
|
-
public var
|
|
93
|
-
/// Clears the value of `
|
|
94
|
-
public mutating func
|
|
95
|
-
|
|
96
|
-
public var unknownFields = SwiftProtobuf.UnknownStorage()
|
|
97
|
-
|
|
98
|
-
public init() {}
|
|
41
|
+
/// Returns true if `isoState` has been explicitly set.
|
|
42
|
+
public var hasIsoState: Bool {return self._isoState != nil}
|
|
43
|
+
/// Clears the value of `isoState`. Subsequent reads from it will return its default value.
|
|
44
|
+
public mutating func clearIsoState() {self._isoState = nil}
|
|
99
45
|
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
/// The time offsets that get shifted automatically
|
|
110
|
-
public var timeOffsetPeriods: [BlueTimeOffsetPeriod] = []
|
|
46
|
+
public var utcOffsetMinutes: Int32 {
|
|
47
|
+
get {return _utcOffsetMinutes ?? 0}
|
|
48
|
+
set {_utcOffsetMinutes = newValue}
|
|
49
|
+
}
|
|
50
|
+
/// Returns true if `utcOffsetMinutes` has been explicitly set.
|
|
51
|
+
public var hasUtcOffsetMinutes: Bool {return self._utcOffsetMinutes != nil}
|
|
52
|
+
/// Clears the value of `utcOffsetMinutes`. Subsequent reads from it will return its default value.
|
|
53
|
+
public mutating func clearUtcOffsetMinutes() {self._utcOffsetMinutes = nil}
|
|
111
54
|
|
|
112
55
|
/// If enabled this will check the system-status every 24-hours and
|
|
113
56
|
/// react accordingly ie like when battery is running low opening the lock
|
|
@@ -125,6 +68,9 @@ public struct BlueBaseConfig {
|
|
|
125
68
|
|
|
126
69
|
public init() {}
|
|
127
70
|
|
|
71
|
+
fileprivate var _isoCountry: String? = nil
|
|
72
|
+
fileprivate var _isoState: String? = nil
|
|
73
|
+
fileprivate var _utcOffsetMinutes: Int32? = nil
|
|
128
74
|
fileprivate var _autoCheckSystemStatus: Bool? = nil
|
|
129
75
|
}
|
|
130
76
|
|
|
@@ -219,18 +165,9 @@ public struct BlueOnlineConfig {
|
|
|
219
165
|
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
220
166
|
// methods supported on all messages.
|
|
221
167
|
|
|
222
|
-
///
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
set {_mode = newValue}
|
|
226
|
-
}
|
|
227
|
-
/// Returns true if `mode` has been explicitly set.
|
|
228
|
-
public var hasMode: Bool {return self._mode != nil}
|
|
229
|
-
/// Clears the value of `mode`. Subsequent reads from it will return its default value.
|
|
230
|
-
public mutating func clearMode() {self._mode = nil}
|
|
231
|
-
|
|
232
|
-
/// Schedules when it should go online for updating. Only takes effect if
|
|
233
|
-
/// online mode is set to manual wifi. The end time is not used.
|
|
168
|
+
/// Schedules when it should go online for updating. Only applies to
|
|
169
|
+
/// battery-powered devices with wifi or gsm module. If no schedule is set will
|
|
170
|
+
/// never go online. The end time is not used.
|
|
234
171
|
public var connectSchedules: [BlueLocalTimeSchedule] = []
|
|
235
172
|
|
|
236
173
|
/// The SSID of the wifi network
|
|
@@ -267,12 +204,34 @@ public struct BlueOnlineConfig {
|
|
|
267
204
|
|
|
268
205
|
public init() {}
|
|
269
206
|
|
|
270
|
-
fileprivate var _mode: BlueOnlineMode? = nil
|
|
271
207
|
fileprivate var _wifiSsid: String? = nil
|
|
272
208
|
fileprivate var _wifiPassword: String? = nil
|
|
273
209
|
fileprivate var _timeoutSec: UInt32? = nil
|
|
274
210
|
}
|
|
275
211
|
|
|
212
|
+
public struct BlueAccessConfigGroup {
|
|
213
|
+
// SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
214
|
+
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
215
|
+
// methods supported on all messages.
|
|
216
|
+
|
|
217
|
+
public var groupID: UInt32 {
|
|
218
|
+
get {return _groupID ?? 0}
|
|
219
|
+
set {_groupID = newValue}
|
|
220
|
+
}
|
|
221
|
+
/// Returns true if `groupID` has been explicitly set.
|
|
222
|
+
public var hasGroupID: Bool {return self._groupID != nil}
|
|
223
|
+
/// Clears the value of `groupID`. Subsequent reads from it will return its default value.
|
|
224
|
+
public mutating func clearGroupID() {self._groupID = nil}
|
|
225
|
+
|
|
226
|
+
public var schedules: [BlueLocalTimeSchedule] = []
|
|
227
|
+
|
|
228
|
+
public var unknownFields = SwiftProtobuf.UnknownStorage()
|
|
229
|
+
|
|
230
|
+
public init() {}
|
|
231
|
+
|
|
232
|
+
fileprivate var _groupID: UInt32? = nil
|
|
233
|
+
}
|
|
234
|
+
|
|
276
235
|
public struct BlueAccessConfig {
|
|
277
236
|
// SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
278
237
|
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
@@ -299,7 +258,7 @@ public struct BlueAccessConfig {
|
|
|
299
258
|
public mutating func clearSiteID() {self._siteID = nil}
|
|
300
259
|
|
|
301
260
|
/// The access groups this device is part of
|
|
302
|
-
public var
|
|
261
|
+
public var groups: [BlueAccessConfigGroup] = []
|
|
303
262
|
|
|
304
263
|
public var unknownFields = SwiftProtobuf.UnknownStorage()
|
|
305
264
|
|
|
@@ -422,14 +381,14 @@ public struct BlueSystemConfig {
|
|
|
422
381
|
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
423
382
|
// methods supported on all messages.
|
|
424
383
|
|
|
425
|
-
public var
|
|
426
|
-
get {return _storage.
|
|
427
|
-
set {_uniqueStorage().
|
|
384
|
+
public var configID: String {
|
|
385
|
+
get {return _storage._configID ?? String()}
|
|
386
|
+
set {_uniqueStorage()._configID = newValue}
|
|
428
387
|
}
|
|
429
|
-
/// Returns true if `
|
|
430
|
-
public var
|
|
431
|
-
/// Clears the value of `
|
|
432
|
-
public mutating func
|
|
388
|
+
/// Returns true if `configID` has been explicitly set.
|
|
389
|
+
public var hasConfigID: Bool {return _storage._configID != nil}
|
|
390
|
+
/// Clears the value of `configID`. Subsequent reads from it will return its default value.
|
|
391
|
+
public mutating func clearConfigID() {_uniqueStorage()._configID = nil}
|
|
433
392
|
|
|
434
393
|
/// -- Base
|
|
435
394
|
public var base: BlueBaseConfig {
|
|
@@ -750,14 +709,14 @@ public struct BlueSystemStatus {
|
|
|
750
709
|
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
751
710
|
// methods supported on all messages.
|
|
752
711
|
|
|
753
|
-
public var
|
|
754
|
-
get {return _storage.
|
|
755
|
-
set {_uniqueStorage().
|
|
712
|
+
public var configID: String {
|
|
713
|
+
get {return _storage._configID ?? String()}
|
|
714
|
+
set {_uniqueStorage()._configID = newValue}
|
|
756
715
|
}
|
|
757
|
-
/// Returns true if `
|
|
758
|
-
public var
|
|
759
|
-
/// Clears the value of `
|
|
760
|
-
public mutating func
|
|
716
|
+
/// Returns true if `configID` has been explicitly set.
|
|
717
|
+
public var hasConfigID: Bool {return _storage._configID != nil}
|
|
718
|
+
/// Clears the value of `configID`. Subsequent reads from it will return its default value.
|
|
719
|
+
public mutating func clearConfigID() {_uniqueStorage()._configID = nil}
|
|
761
720
|
|
|
762
721
|
public var deviceID: String {
|
|
763
722
|
get {return _storage._deviceID ?? String()}
|
|
@@ -1122,11 +1081,10 @@ public struct BlueBlacklistEntries {
|
|
|
1122
1081
|
}
|
|
1123
1082
|
|
|
1124
1083
|
#if swift(>=5.5) && canImport(_Concurrency)
|
|
1125
|
-
extension BlueOnlineMode: @unchecked Sendable {}
|
|
1126
|
-
extension BlueTimeOffsetPeriod: @unchecked Sendable {}
|
|
1127
1084
|
extension BlueBaseConfig: @unchecked Sendable {}
|
|
1128
1085
|
extension BlueBleConfig: @unchecked Sendable {}
|
|
1129
1086
|
extension BlueOnlineConfig: @unchecked Sendable {}
|
|
1087
|
+
extension BlueAccessConfigGroup: @unchecked Sendable {}
|
|
1130
1088
|
extension BlueAccessConfig: @unchecked Sendable {}
|
|
1131
1089
|
extension BlueOssConfig: @unchecked Sendable {}
|
|
1132
1090
|
extension BlueSystemConfig: @unchecked Sendable {}
|
|
@@ -1147,73 +1105,20 @@ extension BlueBlacklistEntries: @unchecked Sendable {}
|
|
|
1147
1105
|
|
|
1148
1106
|
// MARK: - Code below here is support for the SwiftProtobuf runtime.
|
|
1149
1107
|
|
|
1150
|
-
extension BlueOnlineMode: SwiftProtobuf._ProtoNameProviding {
|
|
1151
|
-
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
|
|
1152
|
-
0: .same(proto: "OfflineMode"),
|
|
1153
|
-
1: .same(proto: "ManualWifi"),
|
|
1154
|
-
2: .same(proto: "AlwaysOnWifi"),
|
|
1155
|
-
3: .same(proto: "UseLan"),
|
|
1156
|
-
]
|
|
1157
|
-
}
|
|
1158
|
-
|
|
1159
|
-
extension BlueTimeOffsetPeriod: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
1160
|
-
public static let protoMessageName: String = "BlueTimeOffsetPeriod"
|
|
1161
|
-
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
|
|
1162
|
-
1: .same(proto: "epoch"),
|
|
1163
|
-
2: .same(proto: "offset"),
|
|
1164
|
-
]
|
|
1165
|
-
|
|
1166
|
-
public var isInitialized: Bool {
|
|
1167
|
-
if self._epoch == nil {return false}
|
|
1168
|
-
if self._offset == nil {return false}
|
|
1169
|
-
return true
|
|
1170
|
-
}
|
|
1171
|
-
|
|
1172
|
-
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
|
|
1173
|
-
while let fieldNumber = try decoder.nextFieldNumber() {
|
|
1174
|
-
// The use of inline closures is to circumvent an issue where the compiler
|
|
1175
|
-
// allocates stack space for every case branch when no optimizations are
|
|
1176
|
-
// enabled. https://github.com/apple/swift-protobuf/issues/1034
|
|
1177
|
-
switch fieldNumber {
|
|
1178
|
-
case 1: try { try decoder.decodeSingularUInt32Field(value: &self._epoch) }()
|
|
1179
|
-
case 2: try { try decoder.decodeSingularInt32Field(value: &self._offset) }()
|
|
1180
|
-
default: break
|
|
1181
|
-
}
|
|
1182
|
-
}
|
|
1183
|
-
}
|
|
1184
|
-
|
|
1185
|
-
public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
|
|
1186
|
-
// The use of inline closures is to circumvent an issue where the compiler
|
|
1187
|
-
// allocates stack space for every if/case branch local when no optimizations
|
|
1188
|
-
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
|
|
1189
|
-
// https://github.com/apple/swift-protobuf/issues/1182
|
|
1190
|
-
try { if let v = self._epoch {
|
|
1191
|
-
try visitor.visitSingularUInt32Field(value: v, fieldNumber: 1)
|
|
1192
|
-
} }()
|
|
1193
|
-
try { if let v = self._offset {
|
|
1194
|
-
try visitor.visitSingularInt32Field(value: v, fieldNumber: 2)
|
|
1195
|
-
} }()
|
|
1196
|
-
try unknownFields.traverse(visitor: &visitor)
|
|
1197
|
-
}
|
|
1198
|
-
|
|
1199
|
-
public static func ==(lhs: BlueTimeOffsetPeriod, rhs: BlueTimeOffsetPeriod) -> Bool {
|
|
1200
|
-
if lhs._epoch != rhs._epoch {return false}
|
|
1201
|
-
if lhs._offset != rhs._offset {return false}
|
|
1202
|
-
if lhs.unknownFields != rhs.unknownFields {return false}
|
|
1203
|
-
return true
|
|
1204
|
-
}
|
|
1205
|
-
}
|
|
1206
|
-
|
|
1207
1108
|
extension BlueBaseConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
1208
1109
|
public static let protoMessageName: String = "BlueBaseConfig"
|
|
1209
1110
|
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
|
|
1210
|
-
1: .same(proto: "
|
|
1211
|
-
2: .same(proto: "
|
|
1111
|
+
1: .same(proto: "isoCountry"),
|
|
1112
|
+
2: .same(proto: "isoState"),
|
|
1113
|
+
3: .same(proto: "utcOffsetMinutes"),
|
|
1114
|
+
4: .same(proto: "autoCheckSystemStatus"),
|
|
1212
1115
|
]
|
|
1213
1116
|
|
|
1214
1117
|
public var isInitialized: Bool {
|
|
1118
|
+
if self._isoCountry == nil {return false}
|
|
1119
|
+
if self._isoState == nil {return false}
|
|
1120
|
+
if self._utcOffsetMinutes == nil {return false}
|
|
1215
1121
|
if self._autoCheckSystemStatus == nil {return false}
|
|
1216
|
-
if !SwiftProtobuf.Internal.areAllInitialized(self.timeOffsetPeriods) {return false}
|
|
1217
1122
|
return true
|
|
1218
1123
|
}
|
|
1219
1124
|
|
|
@@ -1223,8 +1128,10 @@ extension BlueBaseConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImplement
|
|
|
1223
1128
|
// allocates stack space for every case branch when no optimizations are
|
|
1224
1129
|
// enabled. https://github.com/apple/swift-protobuf/issues/1034
|
|
1225
1130
|
switch fieldNumber {
|
|
1226
|
-
case 1: try { try decoder.
|
|
1227
|
-
case 2: try { try decoder.
|
|
1131
|
+
case 1: try { try decoder.decodeSingularStringField(value: &self._isoCountry) }()
|
|
1132
|
+
case 2: try { try decoder.decodeSingularStringField(value: &self._isoState) }()
|
|
1133
|
+
case 3: try { try decoder.decodeSingularInt32Field(value: &self._utcOffsetMinutes) }()
|
|
1134
|
+
case 4: try { try decoder.decodeSingularBoolField(value: &self._autoCheckSystemStatus) }()
|
|
1228
1135
|
default: break
|
|
1229
1136
|
}
|
|
1230
1137
|
}
|
|
@@ -1235,17 +1142,25 @@ extension BlueBaseConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImplement
|
|
|
1235
1142
|
// allocates stack space for every if/case branch local when no optimizations
|
|
1236
1143
|
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
|
|
1237
1144
|
// https://github.com/apple/swift-protobuf/issues/1182
|
|
1238
|
-
if
|
|
1239
|
-
try visitor.
|
|
1240
|
-
}
|
|
1145
|
+
try { if let v = self._isoCountry {
|
|
1146
|
+
try visitor.visitSingularStringField(value: v, fieldNumber: 1)
|
|
1147
|
+
} }()
|
|
1148
|
+
try { if let v = self._isoState {
|
|
1149
|
+
try visitor.visitSingularStringField(value: v, fieldNumber: 2)
|
|
1150
|
+
} }()
|
|
1151
|
+
try { if let v = self._utcOffsetMinutes {
|
|
1152
|
+
try visitor.visitSingularInt32Field(value: v, fieldNumber: 3)
|
|
1153
|
+
} }()
|
|
1241
1154
|
try { if let v = self._autoCheckSystemStatus {
|
|
1242
|
-
try visitor.visitSingularBoolField(value: v, fieldNumber:
|
|
1155
|
+
try visitor.visitSingularBoolField(value: v, fieldNumber: 4)
|
|
1243
1156
|
} }()
|
|
1244
1157
|
try unknownFields.traverse(visitor: &visitor)
|
|
1245
1158
|
}
|
|
1246
1159
|
|
|
1247
1160
|
public static func ==(lhs: BlueBaseConfig, rhs: BlueBaseConfig) -> Bool {
|
|
1248
|
-
if lhs.
|
|
1161
|
+
if lhs._isoCountry != rhs._isoCountry {return false}
|
|
1162
|
+
if lhs._isoState != rhs._isoState {return false}
|
|
1163
|
+
if lhs._utcOffsetMinutes != rhs._utcOffsetMinutes {return false}
|
|
1249
1164
|
if lhs._autoCheckSystemStatus != rhs._autoCheckSystemStatus {return false}
|
|
1250
1165
|
if lhs.unknownFields != rhs.unknownFields {return false}
|
|
1251
1166
|
return true
|
|
@@ -1344,15 +1259,13 @@ extension BlueBleConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementa
|
|
|
1344
1259
|
extension BlueOnlineConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
1345
1260
|
public static let protoMessageName: String = "BlueOnlineConfig"
|
|
1346
1261
|
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
|
|
1347
|
-
1: .same(proto: "
|
|
1348
|
-
2: .same(proto: "
|
|
1349
|
-
3: .same(proto: "
|
|
1350
|
-
4: .same(proto: "
|
|
1351
|
-
5: .same(proto: "timeoutSec"),
|
|
1262
|
+
1: .same(proto: "connectSchedules"),
|
|
1263
|
+
2: .same(proto: "wifiSSID"),
|
|
1264
|
+
3: .same(proto: "wifiPassword"),
|
|
1265
|
+
4: .same(proto: "timeoutSec"),
|
|
1352
1266
|
]
|
|
1353
1267
|
|
|
1354
1268
|
public var isInitialized: Bool {
|
|
1355
|
-
if self._mode == nil {return false}
|
|
1356
1269
|
if self._wifiSsid == nil {return false}
|
|
1357
1270
|
if self._wifiPassword == nil {return false}
|
|
1358
1271
|
if self._timeoutSec == nil {return false}
|
|
@@ -1366,11 +1279,10 @@ extension BlueOnlineConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImpleme
|
|
|
1366
1279
|
// allocates stack space for every case branch when no optimizations are
|
|
1367
1280
|
// enabled. https://github.com/apple/swift-protobuf/issues/1034
|
|
1368
1281
|
switch fieldNumber {
|
|
1369
|
-
case 1: try { try decoder.
|
|
1370
|
-
case 2: try { try decoder.
|
|
1371
|
-
case 3: try { try decoder.decodeSingularStringField(value: &self.
|
|
1372
|
-
case 4: try { try decoder.
|
|
1373
|
-
case 5: try { try decoder.decodeSingularUInt32Field(value: &self._timeoutSec) }()
|
|
1282
|
+
case 1: try { try decoder.decodeRepeatedMessageField(value: &self.connectSchedules) }()
|
|
1283
|
+
case 2: try { try decoder.decodeSingularStringField(value: &self._wifiSsid) }()
|
|
1284
|
+
case 3: try { try decoder.decodeSingularStringField(value: &self._wifiPassword) }()
|
|
1285
|
+
case 4: try { try decoder.decodeSingularUInt32Field(value: &self._timeoutSec) }()
|
|
1374
1286
|
default: break
|
|
1375
1287
|
}
|
|
1376
1288
|
}
|
|
@@ -1381,26 +1293,22 @@ extension BlueOnlineConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImpleme
|
|
|
1381
1293
|
// allocates stack space for every if/case branch local when no optimizations
|
|
1382
1294
|
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
|
|
1383
1295
|
// https://github.com/apple/swift-protobuf/issues/1182
|
|
1384
|
-
try { if let v = self._mode {
|
|
1385
|
-
try visitor.visitSingularEnumField(value: v, fieldNumber: 1)
|
|
1386
|
-
} }()
|
|
1387
1296
|
if !self.connectSchedules.isEmpty {
|
|
1388
|
-
try visitor.visitRepeatedMessageField(value: self.connectSchedules, fieldNumber:
|
|
1297
|
+
try visitor.visitRepeatedMessageField(value: self.connectSchedules, fieldNumber: 1)
|
|
1389
1298
|
}
|
|
1390
1299
|
try { if let v = self._wifiSsid {
|
|
1391
|
-
try visitor.visitSingularStringField(value: v, fieldNumber:
|
|
1300
|
+
try visitor.visitSingularStringField(value: v, fieldNumber: 2)
|
|
1392
1301
|
} }()
|
|
1393
1302
|
try { if let v = self._wifiPassword {
|
|
1394
|
-
try visitor.visitSingularStringField(value: v, fieldNumber:
|
|
1303
|
+
try visitor.visitSingularStringField(value: v, fieldNumber: 3)
|
|
1395
1304
|
} }()
|
|
1396
1305
|
try { if let v = self._timeoutSec {
|
|
1397
|
-
try visitor.visitSingularUInt32Field(value: v, fieldNumber:
|
|
1306
|
+
try visitor.visitSingularUInt32Field(value: v, fieldNumber: 4)
|
|
1398
1307
|
} }()
|
|
1399
1308
|
try unknownFields.traverse(visitor: &visitor)
|
|
1400
1309
|
}
|
|
1401
1310
|
|
|
1402
1311
|
public static func ==(lhs: BlueOnlineConfig, rhs: BlueOnlineConfig) -> Bool {
|
|
1403
|
-
if lhs._mode != rhs._mode {return false}
|
|
1404
1312
|
if lhs.connectSchedules != rhs.connectSchedules {return false}
|
|
1405
1313
|
if lhs._wifiSsid != rhs._wifiSsid {return false}
|
|
1406
1314
|
if lhs._wifiPassword != rhs._wifiPassword {return false}
|
|
@@ -1410,17 +1318,66 @@ extension BlueOnlineConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImpleme
|
|
|
1410
1318
|
}
|
|
1411
1319
|
}
|
|
1412
1320
|
|
|
1321
|
+
extension BlueAccessConfigGroup: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
1322
|
+
public static let protoMessageName: String = "BlueAccessConfigGroup"
|
|
1323
|
+
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
|
|
1324
|
+
1: .same(proto: "groupId"),
|
|
1325
|
+
2: .same(proto: "schedules"),
|
|
1326
|
+
]
|
|
1327
|
+
|
|
1328
|
+
public var isInitialized: Bool {
|
|
1329
|
+
if self._groupID == nil {return false}
|
|
1330
|
+
if !SwiftProtobuf.Internal.areAllInitialized(self.schedules) {return false}
|
|
1331
|
+
return true
|
|
1332
|
+
}
|
|
1333
|
+
|
|
1334
|
+
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
|
|
1335
|
+
while let fieldNumber = try decoder.nextFieldNumber() {
|
|
1336
|
+
// The use of inline closures is to circumvent an issue where the compiler
|
|
1337
|
+
// allocates stack space for every case branch when no optimizations are
|
|
1338
|
+
// enabled. https://github.com/apple/swift-protobuf/issues/1034
|
|
1339
|
+
switch fieldNumber {
|
|
1340
|
+
case 1: try { try decoder.decodeSingularUInt32Field(value: &self._groupID) }()
|
|
1341
|
+
case 2: try { try decoder.decodeRepeatedMessageField(value: &self.schedules) }()
|
|
1342
|
+
default: break
|
|
1343
|
+
}
|
|
1344
|
+
}
|
|
1345
|
+
}
|
|
1346
|
+
|
|
1347
|
+
public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
|
|
1348
|
+
// The use of inline closures is to circumvent an issue where the compiler
|
|
1349
|
+
// allocates stack space for every if/case branch local when no optimizations
|
|
1350
|
+
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
|
|
1351
|
+
// https://github.com/apple/swift-protobuf/issues/1182
|
|
1352
|
+
try { if let v = self._groupID {
|
|
1353
|
+
try visitor.visitSingularUInt32Field(value: v, fieldNumber: 1)
|
|
1354
|
+
} }()
|
|
1355
|
+
if !self.schedules.isEmpty {
|
|
1356
|
+
try visitor.visitRepeatedMessageField(value: self.schedules, fieldNumber: 2)
|
|
1357
|
+
}
|
|
1358
|
+
try unknownFields.traverse(visitor: &visitor)
|
|
1359
|
+
}
|
|
1360
|
+
|
|
1361
|
+
public static func ==(lhs: BlueAccessConfigGroup, rhs: BlueAccessConfigGroup) -> Bool {
|
|
1362
|
+
if lhs._groupID != rhs._groupID {return false}
|
|
1363
|
+
if lhs.schedules != rhs.schedules {return false}
|
|
1364
|
+
if lhs.unknownFields != rhs.unknownFields {return false}
|
|
1365
|
+
return true
|
|
1366
|
+
}
|
|
1367
|
+
}
|
|
1368
|
+
|
|
1413
1369
|
extension BlueAccessConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
1414
1370
|
public static let protoMessageName: String = "BlueAccessConfig"
|
|
1415
1371
|
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
|
|
1416
1372
|
1: .same(proto: "id"),
|
|
1417
1373
|
2: .same(proto: "siteId"),
|
|
1418
|
-
3: .same(proto: "
|
|
1374
|
+
3: .same(proto: "groups"),
|
|
1419
1375
|
]
|
|
1420
1376
|
|
|
1421
1377
|
public var isInitialized: Bool {
|
|
1422
1378
|
if self._id == nil {return false}
|
|
1423
1379
|
if self._siteID == nil {return false}
|
|
1380
|
+
if !SwiftProtobuf.Internal.areAllInitialized(self.groups) {return false}
|
|
1424
1381
|
return true
|
|
1425
1382
|
}
|
|
1426
1383
|
|
|
@@ -1432,7 +1389,7 @@ extension BlueAccessConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImpleme
|
|
|
1432
1389
|
switch fieldNumber {
|
|
1433
1390
|
case 1: try { try decoder.decodeSingularUInt32Field(value: &self._id) }()
|
|
1434
1391
|
case 2: try { try decoder.decodeSingularUInt32Field(value: &self._siteID) }()
|
|
1435
|
-
case 3: try { try decoder.
|
|
1392
|
+
case 3: try { try decoder.decodeRepeatedMessageField(value: &self.groups) }()
|
|
1436
1393
|
default: break
|
|
1437
1394
|
}
|
|
1438
1395
|
}
|
|
@@ -1449,8 +1406,8 @@ extension BlueAccessConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImpleme
|
|
|
1449
1406
|
try { if let v = self._siteID {
|
|
1450
1407
|
try visitor.visitSingularUInt32Field(value: v, fieldNumber: 2)
|
|
1451
1408
|
} }()
|
|
1452
|
-
if !self.
|
|
1453
|
-
try visitor.
|
|
1409
|
+
if !self.groups.isEmpty {
|
|
1410
|
+
try visitor.visitRepeatedMessageField(value: self.groups, fieldNumber: 3)
|
|
1454
1411
|
}
|
|
1455
1412
|
try unknownFields.traverse(visitor: &visitor)
|
|
1456
1413
|
}
|
|
@@ -1458,7 +1415,7 @@ extension BlueAccessConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImpleme
|
|
|
1458
1415
|
public static func ==(lhs: BlueAccessConfig, rhs: BlueAccessConfig) -> Bool {
|
|
1459
1416
|
if lhs._id != rhs._id {return false}
|
|
1460
1417
|
if lhs._siteID != rhs._siteID {return false}
|
|
1461
|
-
if lhs.
|
|
1418
|
+
if lhs.groups != rhs.groups {return false}
|
|
1462
1419
|
if lhs.unknownFields != rhs.unknownFields {return false}
|
|
1463
1420
|
return true
|
|
1464
1421
|
}
|
|
@@ -1557,7 +1514,7 @@ extension BlueOssConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementa
|
|
|
1557
1514
|
extension BlueSystemConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
1558
1515
|
public static let protoMessageName: String = "BlueSystemConfig"
|
|
1559
1516
|
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
|
|
1560
|
-
1: .same(proto: "
|
|
1517
|
+
1: .same(proto: "configId"),
|
|
1561
1518
|
2: .same(proto: "base"),
|
|
1562
1519
|
3: .same(proto: "ble"),
|
|
1563
1520
|
4: .same(proto: "online"),
|
|
@@ -1567,7 +1524,7 @@ extension BlueSystemConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImpleme
|
|
|
1567
1524
|
]
|
|
1568
1525
|
|
|
1569
1526
|
fileprivate class _StorageClass {
|
|
1570
|
-
var
|
|
1527
|
+
var _configID: String? = nil
|
|
1571
1528
|
var _base: BlueBaseConfig? = nil
|
|
1572
1529
|
var _ble: BlueBleConfig? = nil
|
|
1573
1530
|
var _online: BlueOnlineConfig? = nil
|
|
@@ -1580,7 +1537,7 @@ extension BlueSystemConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImpleme
|
|
|
1580
1537
|
private init() {}
|
|
1581
1538
|
|
|
1582
1539
|
init(copying source: _StorageClass) {
|
|
1583
|
-
|
|
1540
|
+
_configID = source._configID
|
|
1584
1541
|
_base = source._base
|
|
1585
1542
|
_ble = source._ble
|
|
1586
1543
|
_online = source._online
|
|
@@ -1599,7 +1556,7 @@ extension BlueSystemConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImpleme
|
|
|
1599
1556
|
|
|
1600
1557
|
public var isInitialized: Bool {
|
|
1601
1558
|
return withExtendedLifetime(_storage) { (_storage: _StorageClass) in
|
|
1602
|
-
if _storage.
|
|
1559
|
+
if _storage._configID == nil {return false}
|
|
1603
1560
|
if _storage._base == nil {return false}
|
|
1604
1561
|
if _storage._ble == nil {return false}
|
|
1605
1562
|
if _storage._online == nil {return false}
|
|
@@ -1623,7 +1580,7 @@ extension BlueSystemConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImpleme
|
|
|
1623
1580
|
// allocates stack space for every case branch when no optimizations are
|
|
1624
1581
|
// enabled. https://github.com/apple/swift-protobuf/issues/1034
|
|
1625
1582
|
switch fieldNumber {
|
|
1626
|
-
case 1: try { try decoder.
|
|
1583
|
+
case 1: try { try decoder.decodeSingularStringField(value: &_storage._configID) }()
|
|
1627
1584
|
case 2: try { try decoder.decodeSingularMessageField(value: &_storage._base) }()
|
|
1628
1585
|
case 3: try { try decoder.decodeSingularMessageField(value: &_storage._ble) }()
|
|
1629
1586
|
case 4: try { try decoder.decodeSingularMessageField(value: &_storage._online) }()
|
|
@@ -1642,8 +1599,8 @@ extension BlueSystemConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImpleme
|
|
|
1642
1599
|
// allocates stack space for every if/case branch local when no optimizations
|
|
1643
1600
|
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
|
|
1644
1601
|
// https://github.com/apple/swift-protobuf/issues/1182
|
|
1645
|
-
try { if let v = _storage.
|
|
1646
|
-
try visitor.
|
|
1602
|
+
try { if let v = _storage._configID {
|
|
1603
|
+
try visitor.visitSingularStringField(value: v, fieldNumber: 1)
|
|
1647
1604
|
} }()
|
|
1648
1605
|
try { if let v = _storage._base {
|
|
1649
1606
|
try visitor.visitSingularMessageField(value: v, fieldNumber: 2)
|
|
@@ -1672,7 +1629,7 @@ extension BlueSystemConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImpleme
|
|
|
1672
1629
|
let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in
|
|
1673
1630
|
let _storage = _args.0
|
|
1674
1631
|
let rhs_storage = _args.1
|
|
1675
|
-
if _storage.
|
|
1632
|
+
if _storage._configID != rhs_storage._configID {return false}
|
|
1676
1633
|
if _storage._base != rhs_storage._base {return false}
|
|
1677
1634
|
if _storage._ble != rhs_storage._ble {return false}
|
|
1678
1635
|
if _storage._online != rhs_storage._online {return false}
|
|
@@ -1967,7 +1924,7 @@ extension BlueSystemProvisioning: SwiftProtobuf.Message, SwiftProtobuf._MessageI
|
|
|
1967
1924
|
extension BlueSystemStatus: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
1968
1925
|
public static let protoMessageName: String = "BlueSystemStatus"
|
|
1969
1926
|
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
|
|
1970
|
-
1: .same(proto: "
|
|
1927
|
+
1: .same(proto: "configId"),
|
|
1971
1928
|
2: .same(proto: "deviceId"),
|
|
1972
1929
|
3: .same(proto: "serialNumber"),
|
|
1973
1930
|
4: .same(proto: "hardwareType"),
|
|
@@ -1984,7 +1941,7 @@ extension BlueSystemStatus: SwiftProtobuf.Message, SwiftProtobuf._MessageImpleme
|
|
|
1984
1941
|
]
|
|
1985
1942
|
|
|
1986
1943
|
fileprivate class _StorageClass {
|
|
1987
|
-
var
|
|
1944
|
+
var _configID: String? = nil
|
|
1988
1945
|
var _deviceID: String? = nil
|
|
1989
1946
|
var _serialNumber: String? = nil
|
|
1990
1947
|
var _hardwareType: BlueHardwareType? = nil
|
|
@@ -2004,7 +1961,7 @@ extension BlueSystemStatus: SwiftProtobuf.Message, SwiftProtobuf._MessageImpleme
|
|
|
2004
1961
|
private init() {}
|
|
2005
1962
|
|
|
2006
1963
|
init(copying source: _StorageClass) {
|
|
2007
|
-
|
|
1964
|
+
_configID = source._configID
|
|
2008
1965
|
_deviceID = source._deviceID
|
|
2009
1966
|
_serialNumber = source._serialNumber
|
|
2010
1967
|
_hardwareType = source._hardwareType
|
|
@@ -2030,7 +1987,7 @@ extension BlueSystemStatus: SwiftProtobuf.Message, SwiftProtobuf._MessageImpleme
|
|
|
2030
1987
|
|
|
2031
1988
|
public var isInitialized: Bool {
|
|
2032
1989
|
return withExtendedLifetime(_storage) { (_storage: _StorageClass) in
|
|
2033
|
-
if _storage.
|
|
1990
|
+
if _storage._configID == nil {return false}
|
|
2034
1991
|
if _storage._deviceID == nil {return false}
|
|
2035
1992
|
if _storage._serialNumber == nil {return false}
|
|
2036
1993
|
if _storage._hardwareType == nil {return false}
|
|
@@ -2058,7 +2015,7 @@ extension BlueSystemStatus: SwiftProtobuf.Message, SwiftProtobuf._MessageImpleme
|
|
|
2058
2015
|
// allocates stack space for every case branch when no optimizations are
|
|
2059
2016
|
// enabled. https://github.com/apple/swift-protobuf/issues/1034
|
|
2060
2017
|
switch fieldNumber {
|
|
2061
|
-
case 1: try { try decoder.
|
|
2018
|
+
case 1: try { try decoder.decodeSingularStringField(value: &_storage._configID) }()
|
|
2062
2019
|
case 2: try { try decoder.decodeSingularStringField(value: &_storage._deviceID) }()
|
|
2063
2020
|
case 3: try { try decoder.decodeSingularStringField(value: &_storage._serialNumber) }()
|
|
2064
2021
|
case 4: try { try decoder.decodeSingularEnumField(value: &_storage._hardwareType) }()
|
|
@@ -2084,8 +2041,8 @@ extension BlueSystemStatus: SwiftProtobuf.Message, SwiftProtobuf._MessageImpleme
|
|
|
2084
2041
|
// allocates stack space for every if/case branch local when no optimizations
|
|
2085
2042
|
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
|
|
2086
2043
|
// https://github.com/apple/swift-protobuf/issues/1182
|
|
2087
|
-
try { if let v = _storage.
|
|
2088
|
-
try visitor.
|
|
2044
|
+
try { if let v = _storage._configID {
|
|
2045
|
+
try visitor.visitSingularStringField(value: v, fieldNumber: 1)
|
|
2089
2046
|
} }()
|
|
2090
2047
|
try { if let v = _storage._deviceID {
|
|
2091
2048
|
try visitor.visitSingularStringField(value: v, fieldNumber: 2)
|
|
@@ -2135,7 +2092,7 @@ extension BlueSystemStatus: SwiftProtobuf.Message, SwiftProtobuf._MessageImpleme
|
|
|
2135
2092
|
let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in
|
|
2136
2093
|
let _storage = _args.0
|
|
2137
2094
|
let rhs_storage = _args.1
|
|
2138
|
-
if _storage.
|
|
2095
|
+
if _storage._configID != rhs_storage._configID {return false}
|
|
2139
2096
|
if _storage._deviceID != rhs_storage._deviceID {return false}
|
|
2140
2097
|
if _storage._serialNumber != rhs_storage._serialNumber {return false}
|
|
2141
2098
|
if _storage._hardwareType != rhs_storage._hardwareType {return false}
|