@blueid/access-proto 0.19.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.
@@ -0,0 +1,2446 @@
1
+ // DO NOT EDIT.
2
+ // swift-format-ignore-file
3
+ //
4
+ // Generated by the Swift generator plugin for the protocol buffer compiler.
5
+ // Source: BlueSystem.proto
6
+ //
7
+ // For information on using the generated types, please see the documentation:
8
+ // https://github.com/apple/swift-protobuf/
9
+
10
+ import Foundation
11
+ import SwiftProtobuf
12
+
13
+ // If the compiler emits an error on this type, it is because this file
14
+ // was generated by a version of the `protoc` Swift plug-in that is
15
+ // incompatible with the version of SwiftProtobuf to which you are linking.
16
+ // Please ensure that you are building against the same version of the API
17
+ // that was used to generate this file.
18
+ fileprivate struct _GeneratedWithProtocGenSwiftVersion: SwiftProtobuf.ProtobufAPIVersionCheck {
19
+ struct _2: SwiftProtobuf.ProtobufAPIVersion_2 {}
20
+ typealias Version = _2
21
+ }
22
+
23
+ public struct BlueBaseConfig {
24
+ // SwiftProtobuf.Message conformance is added in an extension below. See the
25
+ // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
26
+ // methods supported on all messages.
27
+
28
+ public var isoCountry: String {
29
+ get {return _isoCountry ?? String()}
30
+ set {_isoCountry = newValue}
31
+ }
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}
36
+
37
+ public var isoState: String {
38
+ get {return _isoState ?? String()}
39
+ set {_isoState = newValue}
40
+ }
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}
45
+
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}
54
+
55
+ /// If enabled this will check the system-status every 24-hours and
56
+ /// react accordingly ie like when battery is running low opening the lock
57
+ /// and logging accordingly etc
58
+ public var autoCheckSystemStatus: Bool {
59
+ get {return _autoCheckSystemStatus ?? false}
60
+ set {_autoCheckSystemStatus = newValue}
61
+ }
62
+ /// Returns true if `autoCheckSystemStatus` has been explicitly set.
63
+ public var hasAutoCheckSystemStatus: Bool {return self._autoCheckSystemStatus != nil}
64
+ /// Clears the value of `autoCheckSystemStatus`. Subsequent reads from it will return its default value.
65
+ public mutating func clearAutoCheckSystemStatus() {self._autoCheckSystemStatus = nil}
66
+
67
+ public var unknownFields = SwiftProtobuf.UnknownStorage()
68
+
69
+ public init() {}
70
+
71
+ fileprivate var _isoCountry: String? = nil
72
+ fileprivate var _isoState: String? = nil
73
+ fileprivate var _utcOffsetMinutes: Int32? = nil
74
+ fileprivate var _autoCheckSystemStatus: Bool? = nil
75
+ }
76
+
77
+ public struct BlueBleConfig {
78
+ // SwiftProtobuf.Message conformance is added in an extension below. See the
79
+ // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
80
+ // methods supported on all messages.
81
+
82
+ /// Whether ble is enabled or not
83
+ public var isAdvertising: Bool {
84
+ get {return _isAdvertising ?? true}
85
+ set {_isAdvertising = newValue}
86
+ }
87
+ /// Returns true if `isAdvertising` has been explicitly set.
88
+ public var hasIsAdvertising: Bool {return self._isAdvertising != nil}
89
+ /// Clears the value of `isAdvertising`. Subsequent reads from it will return its default value.
90
+ public mutating func clearIsAdvertising() {self._isAdvertising = nil}
91
+
92
+ /// Optional schedule on when ble advertising is enabled, if none
93
+ /// set then ble is always on when enabled
94
+ public var advertisingSchedules: [BlueLocalTimeSchedule] = []
95
+
96
+ /// Index of advertising schedules (starting at zero) where it should
97
+ /// use the max power level available for broader reach
98
+ public var maxPowerAdvertisingSchedulesIndices: [UInt32] = []
99
+
100
+ /// The desired advertising interval in ms
101
+ public var advertisingIntervalMs: UInt32 {
102
+ get {return _advertisingIntervalMs ?? 500}
103
+ set {_advertisingIntervalMs = newValue}
104
+ }
105
+ /// Returns true if `advertisingIntervalMs` has been explicitly set.
106
+ public var hasAdvertisingIntervalMs: Bool {return self._advertisingIntervalMs != nil}
107
+ /// Clears the value of `advertisingIntervalMs`. Subsequent reads from it will return its default value.
108
+ public mutating func clearAdvertisingIntervalMs() {self._advertisingIntervalMs = nil}
109
+
110
+ /// The maximal connection timeout per connection in milliseconds
111
+ public var maxConnectionTimeoutMs: UInt32 {
112
+ get {return _maxConnectionTimeoutMs ?? 3000}
113
+ set {_maxConnectionTimeoutMs = newValue}
114
+ }
115
+ /// Returns true if `maxConnectionTimeoutMs` has been explicitly set.
116
+ public var hasMaxConnectionTimeoutMs: Bool {return self._maxConnectionTimeoutMs != nil}
117
+ /// Clears the value of `maxConnectionTimeoutMs`. Subsequent reads from it will return its default value.
118
+ public mutating func clearMaxConnectionTimeoutMs() {self._maxConnectionTimeoutMs = nil}
119
+
120
+ /// The actual tx power level used for bluetooth from (0 - lowest) to 7
121
+ /// (highest)
122
+ public var txPowerLevel: UInt32 {
123
+ get {return _txPowerLevel ?? 3}
124
+ set {_txPowerLevel = newValue}
125
+ }
126
+ /// Returns true if `txPowerLevel` has been explicitly set.
127
+ public var hasTxPowerLevel: Bool {return self._txPowerLevel != nil}
128
+ /// Clears the value of `txPowerLevel`. Subsequent reads from it will return its default value.
129
+ public mutating func clearTxPowerLevel() {self._txPowerLevel = nil}
130
+
131
+ /// The advertised tx power level at 1 meter in decibel (-XX - +XX)
132
+ public var advertisedTxPower1Meter: Int32 {
133
+ get {return _advertisedTxPower1Meter ?? -77}
134
+ set {_advertisedTxPower1Meter = newValue}
135
+ }
136
+ /// Returns true if `advertisedTxPower1Meter` has been explicitly set.
137
+ public var hasAdvertisedTxPower1Meter: Bool {return self._advertisedTxPower1Meter != nil}
138
+ /// Clears the value of `advertisedTxPower1Meter`. Subsequent reads from it will return its default value.
139
+ public mutating func clearAdvertisedTxPower1Meter() {self._advertisedTxPower1Meter = nil}
140
+
141
+ /// If set then advertises as IBeacon otherwise uses regular advertising
142
+ public var isIbeaconAdvertisement: Bool {
143
+ get {return _isIbeaconAdvertisement ?? false}
144
+ set {_isIbeaconAdvertisement = newValue}
145
+ }
146
+ /// Returns true if `isIbeaconAdvertisement` has been explicitly set.
147
+ public var hasIsIbeaconAdvertisement: Bool {return self._isIbeaconAdvertisement != nil}
148
+ /// Clears the value of `isIbeaconAdvertisement`. Subsequent reads from it will return its default value.
149
+ public mutating func clearIsIbeaconAdvertisement() {self._isIbeaconAdvertisement = nil}
150
+
151
+ public var unknownFields = SwiftProtobuf.UnknownStorage()
152
+
153
+ public init() {}
154
+
155
+ fileprivate var _isAdvertising: Bool? = nil
156
+ fileprivate var _advertisingIntervalMs: UInt32? = nil
157
+ fileprivate var _maxConnectionTimeoutMs: UInt32? = nil
158
+ fileprivate var _txPowerLevel: UInt32? = nil
159
+ fileprivate var _advertisedTxPower1Meter: Int32? = nil
160
+ fileprivate var _isIbeaconAdvertisement: Bool? = nil
161
+ }
162
+
163
+ public struct BlueOnlineConfig {
164
+ // SwiftProtobuf.Message conformance is added in an extension below. See the
165
+ // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
166
+ // methods supported on all messages.
167
+
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.
171
+ public var connectSchedules: [BlueLocalTimeSchedule] = []
172
+
173
+ /// The SSID of the wifi network
174
+ public var wifiSsid: String {
175
+ get {return _wifiSsid ?? String()}
176
+ set {_wifiSsid = newValue}
177
+ }
178
+ /// Returns true if `wifiSsid` has been explicitly set.
179
+ public var hasWifiSsid: Bool {return self._wifiSsid != nil}
180
+ /// Clears the value of `wifiSsid`. Subsequent reads from it will return its default value.
181
+ public mutating func clearWifiSsid() {self._wifiSsid = nil}
182
+
183
+ /// The wifi password
184
+ public var wifiPassword: String {
185
+ get {return _wifiPassword ?? String()}
186
+ set {_wifiPassword = newValue}
187
+ }
188
+ /// Returns true if `wifiPassword` has been explicitly set.
189
+ public var hasWifiPassword: Bool {return self._wifiPassword != nil}
190
+ /// Clears the value of `wifiPassword`. Subsequent reads from it will return its default value.
191
+ public mutating func clearWifiPassword() {self._wifiPassword = nil}
192
+
193
+ /// Default timeout for online connections
194
+ public var timeoutSec: UInt32 {
195
+ get {return _timeoutSec ?? 30}
196
+ set {_timeoutSec = newValue}
197
+ }
198
+ /// Returns true if `timeoutSec` has been explicitly set.
199
+ public var hasTimeoutSec: Bool {return self._timeoutSec != nil}
200
+ /// Clears the value of `timeoutSec`. Subsequent reads from it will return its default value.
201
+ public mutating func clearTimeoutSec() {self._timeoutSec = nil}
202
+
203
+ public var unknownFields = SwiftProtobuf.UnknownStorage()
204
+
205
+ public init() {}
206
+
207
+ fileprivate var _wifiSsid: String? = nil
208
+ fileprivate var _wifiPassword: String? = nil
209
+ fileprivate var _timeoutSec: UInt32? = nil
210
+ }
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
+
235
+ public struct BlueAccessConfig {
236
+ // SwiftProtobuf.Message conformance is added in an extension below. See the
237
+ // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
238
+ // methods supported on all messages.
239
+
240
+ /// The device's unique access id
241
+ public var id: UInt32 {
242
+ get {return _id ?? 1}
243
+ set {_id = newValue}
244
+ }
245
+ /// Returns true if `id` has been explicitly set.
246
+ public var hasID: Bool {return self._id != nil}
247
+ /// Clears the value of `id`. Subsequent reads from it will return its default value.
248
+ public mutating func clearID() {self._id = nil}
249
+
250
+ /// The site id bound to this device
251
+ public var siteID: UInt32 {
252
+ get {return _siteID ?? 1}
253
+ set {_siteID = newValue}
254
+ }
255
+ /// Returns true if `siteID` has been explicitly set.
256
+ public var hasSiteID: Bool {return self._siteID != nil}
257
+ /// Clears the value of `siteID`. Subsequent reads from it will return its default value.
258
+ public mutating func clearSiteID() {self._siteID = nil}
259
+
260
+ /// The access groups this device is part of
261
+ public var groups: [BlueAccessConfigGroup] = []
262
+
263
+ public var unknownFields = SwiftProtobuf.UnknownStorage()
264
+
265
+ public init() {}
266
+
267
+ fileprivate var _id: UInt32? = nil
268
+ fileprivate var _siteID: UInt32? = nil
269
+ }
270
+
271
+ ///
272
+ /// -- Oss SecureId --
273
+ public struct BlueOssConfig {
274
+ // SwiftProtobuf.Message conformance is added in an extension below. See the
275
+ // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
276
+ // methods supported on all messages.
277
+
278
+ /// The mifare aes-key for reading the oss secure id application, default is
279
+ /// the oss sid demo key
280
+ public var sidMifareAesKey: Data {
281
+ get {return _sidMifareAesKey ?? Data([255, 238, 221, 204, 187, 170, 153, 136, 119, 102, 85, 68, 51, 34, 17, 0])}
282
+ set {_sidMifareAesKey = newValue}
283
+ }
284
+ /// Returns true if `sidMifareAesKey` has been explicitly set.
285
+ public var hasSidMifareAesKey: Bool {return self._sidMifareAesKey != nil}
286
+ /// Clears the value of `sidMifareAesKey`. Subsequent reads from it will return its default value.
287
+ public mutating func clearSidMifareAesKey() {self._sidMifareAesKey = nil}
288
+
289
+ /// The mifare application id for the oss secure id application, default is the
290
+ /// oss sid default aid. A value of 0 disables Oss Sid Mifare support.
291
+ public var sidMifareAid: UInt32 {
292
+ get {return _sidMifareAid ?? 16076801}
293
+ set {_sidMifareAid = newValue}
294
+ }
295
+ /// Returns true if `sidMifareAid` has been explicitly set.
296
+ public var hasSidMifareAid: Bool {return self._sidMifareAid != nil}
297
+ /// Clears the value of `sidMifareAid`. Subsequent reads from it will return its default value.
298
+ public mutating func clearSidMifareAid() {self._sidMifareAid = nil}
299
+
300
+ /// If set the system will try to connect online to refresh the presented oss
301
+ /// offline card if required as well as it will try to get and put the latest
302
+ /// blacklist on the card
303
+ public var soUpdater: Bool {
304
+ get {return _soUpdater ?? false}
305
+ set {_soUpdater = newValue}
306
+ }
307
+ /// Returns true if `soUpdater` has been explicitly set.
308
+ public var hasSoUpdater: Bool {return self._soUpdater != nil}
309
+ /// Clears the value of `soUpdater`. Subsequent reads from it will return its default value.
310
+ public mutating func clearSoUpdater() {self._soUpdater = nil}
311
+
312
+ /// If set the system will try to connect online if there are any events on a
313
+ /// presented card and transfer all events online
314
+ public var soPushEvents: Bool {
315
+ get {return _soPushEvents ?? false}
316
+ set {_soPushEvents = newValue}
317
+ }
318
+ /// Returns true if `soPushEvents` has been explicitly set.
319
+ public var hasSoPushEvents: Bool {return self._soPushEvents != nil}
320
+ /// Clears the value of `soPushEvents`. Subsequent reads from it will return its default value.
321
+ public mutating func clearSoPushEvents() {self._soPushEvents = nil}
322
+
323
+ /// If set the system will transfer pending events to an offline card
324
+ public var soWritePendingEvents: Bool {
325
+ get {return _soWritePendingEvents ?? true}
326
+ set {_soWritePendingEvents = newValue}
327
+ }
328
+ /// Returns true if `soWritePendingEvents` has been explicitly set.
329
+ public var hasSoWritePendingEvents: Bool {return self._soWritePendingEvents != nil}
330
+ /// Clears the value of `soWritePendingEvents`. Subsequent reads from it will return its default value.
331
+ public mutating func clearSoWritePendingEvents() {self._soWritePendingEvents = nil}
332
+
333
+ /// If set the system will update from the blacklist of an offline card
334
+ public var soUpdateFromBlacklist: Bool {
335
+ get {return _soUpdateFromBlacklist ?? true}
336
+ set {_soUpdateFromBlacklist = newValue}
337
+ }
338
+ /// Returns true if `soUpdateFromBlacklist` has been explicitly set.
339
+ public var hasSoUpdateFromBlacklist: Bool {return self._soUpdateFromBlacklist != nil}
340
+ /// Clears the value of `soUpdateFromBlacklist`. Subsequent reads from it will return its default value.
341
+ public mutating func clearSoUpdateFromBlacklist() {self._soUpdateFromBlacklist = nil}
342
+
343
+ /// The mifare aes-key for reading/writing the oss offline application, default
344
+ /// is the oss so demo key
345
+ public var soMifareAesKey: Data {
346
+ get {return _soMifareAesKey ?? Data([16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31])}
347
+ set {_soMifareAesKey = newValue}
348
+ }
349
+ /// Returns true if `soMifareAesKey` has been explicitly set.
350
+ public var hasSoMifareAesKey: Bool {return self._soMifareAesKey != nil}
351
+ /// Clears the value of `soMifareAesKey`. Subsequent reads from it will return its default value.
352
+ public mutating func clearSoMifareAesKey() {self._soMifareAesKey = nil}
353
+
354
+ /// The mifare application id for the oss offline application, default is the
355
+ /// oss so default aid. A value of 0 disables Oss So Mifare support.
356
+ public var soMifareAid: UInt32 {
357
+ get {return _soMifareAid ?? 16076800}
358
+ set {_soMifareAid = newValue}
359
+ }
360
+ /// Returns true if `soMifareAid` has been explicitly set.
361
+ public var hasSoMifareAid: Bool {return self._soMifareAid != nil}
362
+ /// Clears the value of `soMifareAid`. Subsequent reads from it will return its default value.
363
+ public mutating func clearSoMifareAid() {self._soMifareAid = nil}
364
+
365
+ public var unknownFields = SwiftProtobuf.UnknownStorage()
366
+
367
+ public init() {}
368
+
369
+ fileprivate var _sidMifareAesKey: Data? = nil
370
+ fileprivate var _sidMifareAid: UInt32? = nil
371
+ fileprivate var _soUpdater: Bool? = nil
372
+ fileprivate var _soPushEvents: Bool? = nil
373
+ fileprivate var _soWritePendingEvents: Bool? = nil
374
+ fileprivate var _soUpdateFromBlacklist: Bool? = nil
375
+ fileprivate var _soMifareAesKey: Data? = nil
376
+ fileprivate var _soMifareAid: UInt32? = nil
377
+ }
378
+
379
+ public struct BlueSystemConfig {
380
+ // SwiftProtobuf.Message conformance is added in an extension below. See the
381
+ // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
382
+ // methods supported on all messages.
383
+
384
+ public var configID: String {
385
+ get {return _storage._configID ?? String()}
386
+ set {_uniqueStorage()._configID = newValue}
387
+ }
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}
392
+
393
+ /// -- Base
394
+ public var base: BlueBaseConfig {
395
+ get {return _storage._base ?? BlueBaseConfig()}
396
+ set {_uniqueStorage()._base = newValue}
397
+ }
398
+ /// Returns true if `base` has been explicitly set.
399
+ public var hasBase: Bool {return _storage._base != nil}
400
+ /// Clears the value of `base`. Subsequent reads from it will return its default value.
401
+ public mutating func clearBase() {_uniqueStorage()._base = nil}
402
+
403
+ public var ble: BlueBleConfig {
404
+ get {return _storage._ble ?? BlueBleConfig()}
405
+ set {_uniqueStorage()._ble = newValue}
406
+ }
407
+ /// Returns true if `ble` has been explicitly set.
408
+ public var hasBle: Bool {return _storage._ble != nil}
409
+ /// Clears the value of `ble`. Subsequent reads from it will return its default value.
410
+ public mutating func clearBle() {_uniqueStorage()._ble = nil}
411
+
412
+ public var online: BlueOnlineConfig {
413
+ get {return _storage._online ?? BlueOnlineConfig()}
414
+ set {_uniqueStorage()._online = newValue}
415
+ }
416
+ /// Returns true if `online` has been explicitly set.
417
+ public var hasOnline: Bool {return _storage._online != nil}
418
+ /// Clears the value of `online`. Subsequent reads from it will return its default value.
419
+ public mutating func clearOnline() {_uniqueStorage()._online = nil}
420
+
421
+ public var access: BlueAccessConfig {
422
+ get {return _storage._access ?? BlueAccessConfig()}
423
+ set {_uniqueStorage()._access = newValue}
424
+ }
425
+ /// Returns true if `access` has been explicitly set.
426
+ public var hasAccess: Bool {return _storage._access != nil}
427
+ /// Clears the value of `access`. Subsequent reads from it will return its default value.
428
+ public mutating func clearAccess() {_uniqueStorage()._access = nil}
429
+
430
+ public var oss: BlueOssConfig {
431
+ get {return _storage._oss ?? BlueOssConfig()}
432
+ set {_uniqueStorage()._oss = newValue}
433
+ }
434
+ /// Returns true if `oss` has been explicitly set.
435
+ public var hasOss: Bool {return _storage._oss != nil}
436
+ /// Clears the value of `oss`. Subsequent reads from it will return its default value.
437
+ public mutating func clearOss() {_uniqueStorage()._oss = nil}
438
+
439
+ /// -- Custom
440
+ public var lock: BlueLockConfig {
441
+ get {return _storage._lock ?? BlueLockConfig()}
442
+ set {_uniqueStorage()._lock = newValue}
443
+ }
444
+ /// Returns true if `lock` has been explicitly set.
445
+ public var hasLock: Bool {return _storage._lock != nil}
446
+ /// Clears the value of `lock`. Subsequent reads from it will return its default value.
447
+ public mutating func clearLock() {_uniqueStorage()._lock = nil}
448
+
449
+ public var unknownFields = SwiftProtobuf.UnknownStorage()
450
+
451
+ public init() {}
452
+
453
+ fileprivate var _storage = _StorageClass.defaultInstance
454
+ }
455
+
456
+ public struct BlueSystemTimeUnix {
457
+ // SwiftProtobuf.Message conformance is added in an extension below. See the
458
+ // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
459
+ // methods supported on all messages.
460
+
461
+ public var epoch: UInt32 {
462
+ get {return _epoch ?? 0}
463
+ set {_epoch = newValue}
464
+ }
465
+ /// Returns true if `epoch` has been explicitly set.
466
+ public var hasEpoch: Bool {return self._epoch != nil}
467
+ /// Clears the value of `epoch`. Subsequent reads from it will return its default value.
468
+ public mutating func clearEpoch() {self._epoch = nil}
469
+
470
+ public var unknownFields = SwiftProtobuf.UnknownStorage()
471
+
472
+ public init() {}
473
+
474
+ fileprivate var _epoch: UInt32? = nil
475
+ }
476
+
477
+ public struct BlueSystemUpdate {
478
+ // SwiftProtobuf.Message conformance is added in an extension below. See the
479
+ // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
480
+ // methods supported on all messages.
481
+
482
+ public var config: BlueSystemConfig {
483
+ get {return _config ?? BlueSystemConfig()}
484
+ set {_config = newValue}
485
+ }
486
+ /// Returns true if `config` has been explicitly set.
487
+ public var hasConfig: Bool {return self._config != nil}
488
+ /// Clears the value of `config`. Subsequent reads from it will return its default value.
489
+ public mutating func clearConfig() {self._config = nil}
490
+
491
+ public var timeUnix: BlueSystemTimeUnix {
492
+ get {return _timeUnix ?? BlueSystemTimeUnix()}
493
+ set {_timeUnix = newValue}
494
+ }
495
+ /// Returns true if `timeUnix` has been explicitly set.
496
+ public var hasTimeUnix: Bool {return self._timeUnix != nil}
497
+ /// Clears the value of `timeUnix`. Subsequent reads from it will return its default value.
498
+ public mutating func clearTimeUnix() {self._timeUnix = nil}
499
+
500
+ public var unknownFields = SwiftProtobuf.UnknownStorage()
501
+
502
+ public init() {}
503
+
504
+ fileprivate var _config: BlueSystemConfig? = nil
505
+ fileprivate var _timeUnix: BlueSystemTimeUnix? = nil
506
+ }
507
+
508
+ public struct BlueSystemSettings {
509
+ // SwiftProtobuf.Message conformance is added in an extension below. See the
510
+ // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
511
+ // methods supported on all messages.
512
+
513
+ public var blacklistMaxEntriesCount: UInt32 {
514
+ get {return _blacklistMaxEntriesCount ?? 0}
515
+ set {_blacklistMaxEntriesCount = newValue}
516
+ }
517
+ /// Returns true if `blacklistMaxEntriesCount` has been explicitly set.
518
+ public var hasBlacklistMaxEntriesCount: Bool {return self._blacklistMaxEntriesCount != nil}
519
+ /// Clears the value of `blacklistMaxEntriesCount`. Subsequent reads from it will return its default value.
520
+ public mutating func clearBlacklistMaxEntriesCount() {self._blacklistMaxEntriesCount = nil}
521
+
522
+ public var blacklistEntriesCount: UInt32 {
523
+ get {return _blacklistEntriesCount ?? 0}
524
+ set {_blacklistEntriesCount = newValue}
525
+ }
526
+ /// Returns true if `blacklistEntriesCount` has been explicitly set.
527
+ public var hasBlacklistEntriesCount: Bool {return self._blacklistEntriesCount != nil}
528
+ /// Clears the value of `blacklistEntriesCount`. Subsequent reads from it will return its default value.
529
+ public mutating func clearBlacklistEntriesCount() {self._blacklistEntriesCount = nil}
530
+
531
+ public var eventLogMaxEntriesCount: UInt32 {
532
+ get {return _eventLogMaxEntriesCount ?? 0}
533
+ set {_eventLogMaxEntriesCount = newValue}
534
+ }
535
+ /// Returns true if `eventLogMaxEntriesCount` has been explicitly set.
536
+ public var hasEventLogMaxEntriesCount: Bool {return self._eventLogMaxEntriesCount != nil}
537
+ /// Clears the value of `eventLogMaxEntriesCount`. Subsequent reads from it will return its default value.
538
+ public mutating func clearEventLogMaxEntriesCount() {self._eventLogMaxEntriesCount = nil}
539
+
540
+ public var eventLogEntriesCount: UInt32 {
541
+ get {return _eventLogEntriesCount ?? 0}
542
+ set {_eventLogEntriesCount = newValue}
543
+ }
544
+ /// Returns true if `eventLogEntriesCount` has been explicitly set.
545
+ public var hasEventLogEntriesCount: Bool {return self._eventLogEntriesCount != nil}
546
+ /// Clears the value of `eventLogEntriesCount`. Subsequent reads from it will return its default value.
547
+ public mutating func clearEventLogEntriesCount() {self._eventLogEntriesCount = nil}
548
+
549
+ public var eventLogSequenceID: UInt32 {
550
+ get {return _eventLogSequenceID ?? 0}
551
+ set {_eventLogSequenceID = newValue}
552
+ }
553
+ /// Returns true if `eventLogSequenceID` has been explicitly set.
554
+ public var hasEventLogSequenceID: Bool {return self._eventLogSequenceID != nil}
555
+ /// Clears the value of `eventLogSequenceID`. Subsequent reads from it will return its default value.
556
+ public mutating func clearEventLogSequenceID() {self._eventLogSequenceID = nil}
557
+
558
+ public var eventLogIndex: UInt32 {
559
+ get {return _eventLogIndex ?? 0}
560
+ set {_eventLogIndex = newValue}
561
+ }
562
+ /// Returns true if `eventLogIndex` has been explicitly set.
563
+ public var hasEventLogIndex: Bool {return self._eventLogIndex != nil}
564
+ /// Clears the value of `eventLogIndex`. Subsequent reads from it will return its default value.
565
+ public mutating func clearEventLogIndex() {self._eventLogIndex = nil}
566
+
567
+ public var systemLogMaxEntriesCount: UInt32 {
568
+ get {return _systemLogMaxEntriesCount ?? 0}
569
+ set {_systemLogMaxEntriesCount = newValue}
570
+ }
571
+ /// Returns true if `systemLogMaxEntriesCount` has been explicitly set.
572
+ public var hasSystemLogMaxEntriesCount: Bool {return self._systemLogMaxEntriesCount != nil}
573
+ /// Clears the value of `systemLogMaxEntriesCount`. Subsequent reads from it will return its default value.
574
+ public mutating func clearSystemLogMaxEntriesCount() {self._systemLogMaxEntriesCount = nil}
575
+
576
+ public var systemLogEntriesCount: UInt32 {
577
+ get {return _systemLogEntriesCount ?? 0}
578
+ set {_systemLogEntriesCount = newValue}
579
+ }
580
+ /// Returns true if `systemLogEntriesCount` has been explicitly set.
581
+ public var hasSystemLogEntriesCount: Bool {return self._systemLogEntriesCount != nil}
582
+ /// Clears the value of `systemLogEntriesCount`. Subsequent reads from it will return its default value.
583
+ public mutating func clearSystemLogEntriesCount() {self._systemLogEntriesCount = nil}
584
+
585
+ public var systemLogSequenceID: UInt32 {
586
+ get {return _systemLogSequenceID ?? 0}
587
+ set {_systemLogSequenceID = newValue}
588
+ }
589
+ /// Returns true if `systemLogSequenceID` has been explicitly set.
590
+ public var hasSystemLogSequenceID: Bool {return self._systemLogSequenceID != nil}
591
+ /// Clears the value of `systemLogSequenceID`. Subsequent reads from it will return its default value.
592
+ public mutating func clearSystemLogSequenceID() {self._systemLogSequenceID = nil}
593
+
594
+ public var systemLogIndex: UInt32 {
595
+ get {return _systemLogIndex ?? 0}
596
+ set {_systemLogIndex = newValue}
597
+ }
598
+ /// Returns true if `systemLogIndex` has been explicitly set.
599
+ public var hasSystemLogIndex: Bool {return self._systemLogIndex != nil}
600
+ /// Clears the value of `systemLogIndex`. Subsequent reads from it will return its default value.
601
+ public mutating func clearSystemLogIndex() {self._systemLogIndex = nil}
602
+
603
+ public var timeWasSet: Bool {
604
+ get {return _timeWasSet ?? false}
605
+ set {_timeWasSet = newValue}
606
+ }
607
+ /// Returns true if `timeWasSet` has been explicitly set.
608
+ public var hasTimeWasSet: Bool {return self._timeWasSet != nil}
609
+ /// Clears the value of `timeWasSet`. Subsequent reads from it will return its default value.
610
+ public mutating func clearTimeWasSet() {self._timeWasSet = nil}
611
+
612
+ public var isBatteryLow: Bool {
613
+ get {return _isBatteryLow ?? false}
614
+ set {_isBatteryLow = newValue}
615
+ }
616
+ /// Returns true if `isBatteryLow` has been explicitly set.
617
+ public var hasIsBatteryLow: Bool {return self._isBatteryLow != nil}
618
+ /// Clears the value of `isBatteryLow`. Subsequent reads from it will return its default value.
619
+ public mutating func clearIsBatteryLow() {self._isBatteryLow = nil}
620
+
621
+ public var unknownFields = SwiftProtobuf.UnknownStorage()
622
+
623
+ public init() {}
624
+
625
+ fileprivate var _blacklistMaxEntriesCount: UInt32? = nil
626
+ fileprivate var _blacklistEntriesCount: UInt32? = nil
627
+ fileprivate var _eventLogMaxEntriesCount: UInt32? = nil
628
+ fileprivate var _eventLogEntriesCount: UInt32? = nil
629
+ fileprivate var _eventLogSequenceID: UInt32? = nil
630
+ fileprivate var _eventLogIndex: UInt32? = nil
631
+ fileprivate var _systemLogMaxEntriesCount: UInt32? = nil
632
+ fileprivate var _systemLogEntriesCount: UInt32? = nil
633
+ fileprivate var _systemLogSequenceID: UInt32? = nil
634
+ fileprivate var _systemLogIndex: UInt32? = nil
635
+ fileprivate var _timeWasSet: Bool? = nil
636
+ fileprivate var _isBatteryLow: Bool? = nil
637
+ }
638
+
639
+ public struct BlueSystemProvisioning {
640
+ // SwiftProtobuf.Message conformance is added in an extension below. See the
641
+ // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
642
+ // methods supported on all messages.
643
+
644
+ public var hardwareType: BlueHardwareType {
645
+ get {return _hardwareType ?? .testHardware}
646
+ set {_hardwareType = newValue}
647
+ }
648
+ /// Returns true if `hardwareType` has been explicitly set.
649
+ public var hasHardwareType: Bool {return self._hardwareType != nil}
650
+ /// Clears the value of `hardwareType`. Subsequent reads from it will return its default value.
651
+ public mutating func clearHardwareType() {self._hardwareType = nil}
652
+
653
+ /// Unique id generated by blueid which identitifies this device (default set
654
+ /// from BlueSharedDemoKeys)
655
+ public var deviceID: String {
656
+ get {return _deviceID ?? String()}
657
+ set {_deviceID = newValue}
658
+ }
659
+ /// Returns true if `deviceID` has been explicitly set.
660
+ public var hasDeviceID: Bool {return self._deviceID != nil}
661
+ /// Clears the value of `deviceID`. Subsequent reads from it will return its default value.
662
+ public mutating func clearDeviceID() {self._deviceID = nil}
663
+
664
+ /// Serial-number which is vendor specific stored as hex
665
+ public var serialNumber: String {
666
+ get {return _serialNumber ?? "00000000000000000000"}
667
+ set {_serialNumber = newValue}
668
+ }
669
+ /// Returns true if `serialNumber` has been explicitly set.
670
+ public var hasSerialNumber: Bool {return self._serialNumber != nil}
671
+ /// Clears the value of `serialNumber`. Subsequent reads from it will return its default value.
672
+ public mutating func clearSerialNumber() {self._serialNumber = nil}
673
+
674
+ /// Private key used for signing to proof authenticity of this device (default
675
+ /// set from BlueSharedDemoKeys)
676
+ public var terminalPrivateKey: Data {
677
+ get {return _terminalPrivateKey ?? Data()}
678
+ set {_terminalPrivateKey = newValue}
679
+ }
680
+ /// Returns true if `terminalPrivateKey` has been explicitly set.
681
+ public var hasTerminalPrivateKey: Bool {return self._terminalPrivateKey != nil}
682
+ /// Clears the value of `terminalPrivateKey`. Subsequent reads from it will return its default value.
683
+ public mutating func clearTerminalPrivateKey() {self._terminalPrivateKey = nil}
684
+
685
+ /// Public key used for verifying signatures being valid on this device
686
+ /// (default set from BlueSharedDemoKeys)
687
+ public var signaturePublicKey: Data {
688
+ get {return _signaturePublicKey ?? Data()}
689
+ set {_signaturePublicKey = newValue}
690
+ }
691
+ /// Returns true if `signaturePublicKey` has been explicitly set.
692
+ public var hasSignaturePublicKey: Bool {return self._signaturePublicKey != nil}
693
+ /// Clears the value of `signaturePublicKey`. Subsequent reads from it will return its default value.
694
+ public mutating func clearSignaturePublicKey() {self._signaturePublicKey = nil}
695
+
696
+ public var unknownFields = SwiftProtobuf.UnknownStorage()
697
+
698
+ public init() {}
699
+
700
+ fileprivate var _hardwareType: BlueHardwareType? = nil
701
+ fileprivate var _deviceID: String? = nil
702
+ fileprivate var _serialNumber: String? = nil
703
+ fileprivate var _terminalPrivateKey: Data? = nil
704
+ fileprivate var _signaturePublicKey: Data? = nil
705
+ }
706
+
707
+ public struct BlueSystemStatus {
708
+ // SwiftProtobuf.Message conformance is added in an extension below. See the
709
+ // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
710
+ // methods supported on all messages.
711
+
712
+ public var configID: String {
713
+ get {return _storage._configID ?? String()}
714
+ set {_uniqueStorage()._configID = newValue}
715
+ }
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}
720
+
721
+ public var deviceID: String {
722
+ get {return _storage._deviceID ?? String()}
723
+ set {_uniqueStorage()._deviceID = newValue}
724
+ }
725
+ /// Returns true if `deviceID` has been explicitly set.
726
+ public var hasDeviceID: Bool {return _storage._deviceID != nil}
727
+ /// Clears the value of `deviceID`. Subsequent reads from it will return its default value.
728
+ public mutating func clearDeviceID() {_uniqueStorage()._deviceID = nil}
729
+
730
+ public var serialNumber: String {
731
+ get {return _storage._serialNumber ?? String()}
732
+ set {_uniqueStorage()._serialNumber = newValue}
733
+ }
734
+ /// Returns true if `serialNumber` has been explicitly set.
735
+ public var hasSerialNumber: Bool {return _storage._serialNumber != nil}
736
+ /// Clears the value of `serialNumber`. Subsequent reads from it will return its default value.
737
+ public mutating func clearSerialNumber() {_uniqueStorage()._serialNumber = nil}
738
+
739
+ public var hardwareType: BlueHardwareType {
740
+ get {return _storage._hardwareType ?? .unknownHardware}
741
+ set {_uniqueStorage()._hardwareType = newValue}
742
+ }
743
+ /// Returns true if `hardwareType` has been explicitly set.
744
+ public var hasHardwareType: Bool {return _storage._hardwareType != nil}
745
+ /// Clears the value of `hardwareType`. Subsequent reads from it will return its default value.
746
+ public mutating func clearHardwareType() {_uniqueStorage()._hardwareType = nil}
747
+
748
+ public var batteryLevel: BlueBatteryLevel {
749
+ get {return _storage._batteryLevel ?? .unknownBattery}
750
+ set {_uniqueStorage()._batteryLevel = newValue}
751
+ }
752
+ /// Returns true if `batteryLevel` has been explicitly set.
753
+ public var hasBatteryLevel: Bool {return _storage._batteryLevel != nil}
754
+ /// Clears the value of `batteryLevel`. Subsequent reads from it will return its default value.
755
+ public mutating func clearBatteryLevel() {_uniqueStorage()._batteryLevel = nil}
756
+
757
+ public var applicationVersion: UInt32 {
758
+ get {return _storage._applicationVersion ?? 0}
759
+ set {_uniqueStorage()._applicationVersion = newValue}
760
+ }
761
+ /// Returns true if `applicationVersion` has been explicitly set.
762
+ public var hasApplicationVersion: Bool {return _storage._applicationVersion != nil}
763
+ /// Clears the value of `applicationVersion`. Subsequent reads from it will return its default value.
764
+ public mutating func clearApplicationVersion() {_uniqueStorage()._applicationVersion = nil}
765
+
766
+ public var localTime: BlueLocalTimestamp {
767
+ get {return _storage._localTime ?? BlueLocalTimestamp()}
768
+ set {_uniqueStorage()._localTime = newValue}
769
+ }
770
+ /// Returns true if `localTime` has been explicitly set.
771
+ public var hasLocalTime: Bool {return _storage._localTime != nil}
772
+ /// Clears the value of `localTime`. Subsequent reads from it will return its default value.
773
+ public mutating func clearLocalTime() {_uniqueStorage()._localTime = nil}
774
+
775
+ public var settings: BlueSystemSettings {
776
+ get {return _storage._settings ?? BlueSystemSettings()}
777
+ set {_uniqueStorage()._settings = newValue}
778
+ }
779
+ /// Returns true if `settings` has been explicitly set.
780
+ public var hasSettings: Bool {return _storage._settings != nil}
781
+ /// Clears the value of `settings`. Subsequent reads from it will return its default value.
782
+ public mutating func clearSettings() {_uniqueStorage()._settings = nil}
783
+
784
+ public var blacklistEntriesCount: UInt32 {
785
+ get {return _storage._blacklistEntriesCount ?? 0}
786
+ set {_uniqueStorage()._blacklistEntriesCount = newValue}
787
+ }
788
+ /// Returns true if `blacklistEntriesCount` has been explicitly set.
789
+ public var hasBlacklistEntriesCount: Bool {return _storage._blacklistEntriesCount != nil}
790
+ /// Clears the value of `blacklistEntriesCount`. Subsequent reads from it will return its default value.
791
+ public mutating func clearBlacklistEntriesCount() {_uniqueStorage()._blacklistEntriesCount = nil}
792
+
793
+ public var eventLogEntriesCount: UInt32 {
794
+ get {return _storage._eventLogEntriesCount ?? 0}
795
+ set {_uniqueStorage()._eventLogEntriesCount = newValue}
796
+ }
797
+ /// Returns true if `eventLogEntriesCount` has been explicitly set.
798
+ public var hasEventLogEntriesCount: Bool {return _storage._eventLogEntriesCount != nil}
799
+ /// Clears the value of `eventLogEntriesCount`. Subsequent reads from it will return its default value.
800
+ public mutating func clearEventLogEntriesCount() {_uniqueStorage()._eventLogEntriesCount = nil}
801
+
802
+ public var eventLogSequenceID: UInt32 {
803
+ get {return _storage._eventLogSequenceID ?? 0}
804
+ set {_uniqueStorage()._eventLogSequenceID = newValue}
805
+ }
806
+ /// Returns true if `eventLogSequenceID` has been explicitly set.
807
+ public var hasEventLogSequenceID: Bool {return _storage._eventLogSequenceID != nil}
808
+ /// Clears the value of `eventLogSequenceID`. Subsequent reads from it will return its default value.
809
+ public mutating func clearEventLogSequenceID() {_uniqueStorage()._eventLogSequenceID = nil}
810
+
811
+ public var systemLogEntriesCount: UInt32 {
812
+ get {return _storage._systemLogEntriesCount ?? 0}
813
+ set {_uniqueStorage()._systemLogEntriesCount = newValue}
814
+ }
815
+ /// Returns true if `systemLogEntriesCount` has been explicitly set.
816
+ public var hasSystemLogEntriesCount: Bool {return _storage._systemLogEntriesCount != nil}
817
+ /// Clears the value of `systemLogEntriesCount`. Subsequent reads from it will return its default value.
818
+ public mutating func clearSystemLogEntriesCount() {_uniqueStorage()._systemLogEntriesCount = nil}
819
+
820
+ public var systemLogSequenceID: UInt32 {
821
+ get {return _storage._systemLogSequenceID ?? 0}
822
+ set {_uniqueStorage()._systemLogSequenceID = newValue}
823
+ }
824
+ /// Returns true if `systemLogSequenceID` has been explicitly set.
825
+ public var hasSystemLogSequenceID: Bool {return _storage._systemLogSequenceID != nil}
826
+ /// Clears the value of `systemLogSequenceID`. Subsequent reads from it will return its default value.
827
+ public mutating func clearSystemLogSequenceID() {_uniqueStorage()._systemLogSequenceID = nil}
828
+
829
+ /// -- Custom
830
+ public var lock: BlueLockStatus {
831
+ get {return _storage._lock ?? BlueLockStatus()}
832
+ set {_uniqueStorage()._lock = newValue}
833
+ }
834
+ /// Returns true if `lock` has been explicitly set.
835
+ public var hasLock: Bool {return _storage._lock != nil}
836
+ /// Clears the value of `lock`. Subsequent reads from it will return its default value.
837
+ public mutating func clearLock() {_uniqueStorage()._lock = nil}
838
+
839
+ public var unknownFields = SwiftProtobuf.UnknownStorage()
840
+
841
+ public init() {}
842
+
843
+ fileprivate var _storage = _StorageClass.defaultInstance
844
+ }
845
+
846
+ public struct BlueSystemLogQuery {
847
+ // SwiftProtobuf.Message conformance is added in an extension below. See the
848
+ // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
849
+ // methods supported on all messages.
850
+
851
+ public var maxCount: UInt32 {
852
+ get {return _maxCount ?? 0}
853
+ set {_maxCount = newValue}
854
+ }
855
+ /// Returns true if `maxCount` has been explicitly set.
856
+ public var hasMaxCount: Bool {return self._maxCount != nil}
857
+ /// Clears the value of `maxCount`. Subsequent reads from it will return its default value.
858
+ public mutating func clearMaxCount() {self._maxCount = nil}
859
+
860
+ public var start: BlueSystemLogQuery.OneOf_Start? = nil
861
+
862
+ public var sequenceID: UInt32 {
863
+ get {
864
+ if case .sequenceID(let v)? = start {return v}
865
+ return 0
866
+ }
867
+ set {start = .sequenceID(newValue)}
868
+ }
869
+
870
+ /// false = starts from tail
871
+ public var fromHead: Bool {
872
+ get {
873
+ if case .fromHead(let v)? = start {return v}
874
+ return false
875
+ }
876
+ set {start = .fromHead(newValue)}
877
+ }
878
+
879
+ public var unknownFields = SwiftProtobuf.UnknownStorage()
880
+
881
+ public enum OneOf_Start: Equatable {
882
+ case sequenceID(UInt32)
883
+ /// false = starts from tail
884
+ case fromHead(Bool)
885
+
886
+ #if !swift(>=4.1)
887
+ public static func ==(lhs: BlueSystemLogQuery.OneOf_Start, rhs: BlueSystemLogQuery.OneOf_Start) -> Bool {
888
+ // The use of inline closures is to circumvent an issue where the compiler
889
+ // allocates stack space for every case branch when no optimizations are
890
+ // enabled. https://github.com/apple/swift-protobuf/issues/1034
891
+ switch (lhs, rhs) {
892
+ case (.sequenceID, .sequenceID): return {
893
+ guard case .sequenceID(let l) = lhs, case .sequenceID(let r) = rhs else { preconditionFailure() }
894
+ return l == r
895
+ }()
896
+ case (.fromHead, .fromHead): return {
897
+ guard case .fromHead(let l) = lhs, case .fromHead(let r) = rhs else { preconditionFailure() }
898
+ return l == r
899
+ }()
900
+ default: return false
901
+ }
902
+ }
903
+ #endif
904
+ }
905
+
906
+ public init() {}
907
+
908
+ fileprivate var _maxCount: UInt32? = nil
909
+ }
910
+
911
+ public struct BlueSystemLogEntry {
912
+ // SwiftProtobuf.Message conformance is added in an extension below. See the
913
+ // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
914
+ // methods supported on all messages.
915
+
916
+ public var sequenceID: UInt32 {
917
+ get {return _sequenceID ?? 0}
918
+ set {_sequenceID = newValue}
919
+ }
920
+ /// Returns true if `sequenceID` has been explicitly set.
921
+ public var hasSequenceID: Bool {return self._sequenceID != nil}
922
+ /// Clears the value of `sequenceID`. Subsequent reads from it will return its default value.
923
+ public mutating func clearSequenceID() {self._sequenceID = nil}
924
+
925
+ public var time: BlueLocalTimestamp {
926
+ get {return _time ?? BlueLocalTimestamp()}
927
+ set {_time = newValue}
928
+ }
929
+ /// Returns true if `time` has been explicitly set.
930
+ public var hasTime: Bool {return self._time != nil}
931
+ /// Clears the value of `time`. Subsequent reads from it will return its default value.
932
+ public mutating func clearTime() {self._time = nil}
933
+
934
+ public var severity: UInt32 {
935
+ get {return _severity ?? 0}
936
+ set {_severity = newValue}
937
+ }
938
+ /// Returns true if `severity` has been explicitly set.
939
+ public var hasSeverity: Bool {return self._severity != nil}
940
+ /// Clears the value of `severity`. Subsequent reads from it will return its default value.
941
+ public mutating func clearSeverity() {self._severity = nil}
942
+
943
+ public var line: UInt32 {
944
+ get {return _line ?? 0}
945
+ set {_line = newValue}
946
+ }
947
+ /// Returns true if `line` has been explicitly set.
948
+ public var hasLine: Bool {return self._line != nil}
949
+ /// Clears the value of `line`. Subsequent reads from it will return its default value.
950
+ public mutating func clearLine() {self._line = nil}
951
+
952
+ public var file: String {
953
+ get {return _file ?? String()}
954
+ set {_file = newValue}
955
+ }
956
+ /// Returns true if `file` has been explicitly set.
957
+ public var hasFile: Bool {return self._file != nil}
958
+ /// Clears the value of `file`. Subsequent reads from it will return its default value.
959
+ public mutating func clearFile() {self._file = nil}
960
+
961
+ public var message: String {
962
+ get {return _message ?? String()}
963
+ set {_message = newValue}
964
+ }
965
+ /// Returns true if `message` has been explicitly set.
966
+ public var hasMessage: Bool {return self._message != nil}
967
+ /// Clears the value of `message`. Subsequent reads from it will return its default value.
968
+ public mutating func clearMessage() {self._message = nil}
969
+
970
+ public var unknownFields = SwiftProtobuf.UnknownStorage()
971
+
972
+ public init() {}
973
+
974
+ fileprivate var _sequenceID: UInt32? = nil
975
+ fileprivate var _time: BlueLocalTimestamp? = nil
976
+ fileprivate var _severity: UInt32? = nil
977
+ fileprivate var _line: UInt32? = nil
978
+ fileprivate var _file: String? = nil
979
+ fileprivate var _message: String? = nil
980
+ }
981
+
982
+ public struct BlueSystemLogResult {
983
+ // SwiftProtobuf.Message conformance is added in an extension below. See the
984
+ // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
985
+ // methods supported on all messages.
986
+
987
+ public var entries: [BlueSystemLogEntry] = []
988
+
989
+ public var unknownFields = SwiftProtobuf.UnknownStorage()
990
+
991
+ public init() {}
992
+ }
993
+
994
+ public struct BlueEventLogQuery {
995
+ // SwiftProtobuf.Message conformance is added in an extension below. See the
996
+ // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
997
+ // methods supported on all messages.
998
+
999
+ public var maxCount: UInt32 {
1000
+ get {return _maxCount ?? 0}
1001
+ set {_maxCount = newValue}
1002
+ }
1003
+ /// Returns true if `maxCount` has been explicitly set.
1004
+ public var hasMaxCount: Bool {return self._maxCount != nil}
1005
+ /// Clears the value of `maxCount`. Subsequent reads from it will return its default value.
1006
+ public mutating func clearMaxCount() {self._maxCount = nil}
1007
+
1008
+ public var start: BlueEventLogQuery.OneOf_Start? = nil
1009
+
1010
+ public var sequenceID: UInt32 {
1011
+ get {
1012
+ if case .sequenceID(let v)? = start {return v}
1013
+ return 0
1014
+ }
1015
+ set {start = .sequenceID(newValue)}
1016
+ }
1017
+
1018
+ /// false = starts from tail
1019
+ public var fromHead: Bool {
1020
+ get {
1021
+ if case .fromHead(let v)? = start {return v}
1022
+ return false
1023
+ }
1024
+ set {start = .fromHead(newValue)}
1025
+ }
1026
+
1027
+ public var unknownFields = SwiftProtobuf.UnknownStorage()
1028
+
1029
+ public enum OneOf_Start: Equatable {
1030
+ case sequenceID(UInt32)
1031
+ /// false = starts from tail
1032
+ case fromHead(Bool)
1033
+
1034
+ #if !swift(>=4.1)
1035
+ public static func ==(lhs: BlueEventLogQuery.OneOf_Start, rhs: BlueEventLogQuery.OneOf_Start) -> Bool {
1036
+ // The use of inline closures is to circumvent an issue where the compiler
1037
+ // allocates stack space for every case branch when no optimizations are
1038
+ // enabled. https://github.com/apple/swift-protobuf/issues/1034
1039
+ switch (lhs, rhs) {
1040
+ case (.sequenceID, .sequenceID): return {
1041
+ guard case .sequenceID(let l) = lhs, case .sequenceID(let r) = rhs else { preconditionFailure() }
1042
+ return l == r
1043
+ }()
1044
+ case (.fromHead, .fromHead): return {
1045
+ guard case .fromHead(let l) = lhs, case .fromHead(let r) = rhs else { preconditionFailure() }
1046
+ return l == r
1047
+ }()
1048
+ default: return false
1049
+ }
1050
+ }
1051
+ #endif
1052
+ }
1053
+
1054
+ public init() {}
1055
+
1056
+ fileprivate var _maxCount: UInt32? = nil
1057
+ }
1058
+
1059
+ public struct BlueEventLogResult {
1060
+ // SwiftProtobuf.Message conformance is added in an extension below. See the
1061
+ // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
1062
+ // methods supported on all messages.
1063
+
1064
+ public var events: [BlueEvent] = []
1065
+
1066
+ public var unknownFields = SwiftProtobuf.UnknownStorage()
1067
+
1068
+ public init() {}
1069
+ }
1070
+
1071
+ public struct BlueBlacklistEntries {
1072
+ // SwiftProtobuf.Message conformance is added in an extension below. See the
1073
+ // `Message` and `Message+*Additions` files in the SwiftProtobuf library for
1074
+ // methods supported on all messages.
1075
+
1076
+ public var entries: [BlueBlacklistEntry] = []
1077
+
1078
+ public var unknownFields = SwiftProtobuf.UnknownStorage()
1079
+
1080
+ public init() {}
1081
+ }
1082
+
1083
+ #if swift(>=5.5) && canImport(_Concurrency)
1084
+ extension BlueBaseConfig: @unchecked Sendable {}
1085
+ extension BlueBleConfig: @unchecked Sendable {}
1086
+ extension BlueOnlineConfig: @unchecked Sendable {}
1087
+ extension BlueAccessConfigGroup: @unchecked Sendable {}
1088
+ extension BlueAccessConfig: @unchecked Sendable {}
1089
+ extension BlueOssConfig: @unchecked Sendable {}
1090
+ extension BlueSystemConfig: @unchecked Sendable {}
1091
+ extension BlueSystemTimeUnix: @unchecked Sendable {}
1092
+ extension BlueSystemUpdate: @unchecked Sendable {}
1093
+ extension BlueSystemSettings: @unchecked Sendable {}
1094
+ extension BlueSystemProvisioning: @unchecked Sendable {}
1095
+ extension BlueSystemStatus: @unchecked Sendable {}
1096
+ extension BlueSystemLogQuery: @unchecked Sendable {}
1097
+ extension BlueSystemLogQuery.OneOf_Start: @unchecked Sendable {}
1098
+ extension BlueSystemLogEntry: @unchecked Sendable {}
1099
+ extension BlueSystemLogResult: @unchecked Sendable {}
1100
+ extension BlueEventLogQuery: @unchecked Sendable {}
1101
+ extension BlueEventLogQuery.OneOf_Start: @unchecked Sendable {}
1102
+ extension BlueEventLogResult: @unchecked Sendable {}
1103
+ extension BlueBlacklistEntries: @unchecked Sendable {}
1104
+ #endif // swift(>=5.5) && canImport(_Concurrency)
1105
+
1106
+ // MARK: - Code below here is support for the SwiftProtobuf runtime.
1107
+
1108
+ extension BlueBaseConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
1109
+ public static let protoMessageName: String = "BlueBaseConfig"
1110
+ public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1111
+ 1: .same(proto: "isoCountry"),
1112
+ 2: .same(proto: "isoState"),
1113
+ 3: .same(proto: "utcOffsetMinutes"),
1114
+ 4: .same(proto: "autoCheckSystemStatus"),
1115
+ ]
1116
+
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}
1121
+ if self._autoCheckSystemStatus == nil {return false}
1122
+ return true
1123
+ }
1124
+
1125
+ public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
1126
+ while let fieldNumber = try decoder.nextFieldNumber() {
1127
+ // The use of inline closures is to circumvent an issue where the compiler
1128
+ // allocates stack space for every case branch when no optimizations are
1129
+ // enabled. https://github.com/apple/swift-protobuf/issues/1034
1130
+ switch fieldNumber {
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) }()
1135
+ default: break
1136
+ }
1137
+ }
1138
+ }
1139
+
1140
+ public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
1141
+ // The use of inline closures is to circumvent an issue where the compiler
1142
+ // allocates stack space for every if/case branch local when no optimizations
1143
+ // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
1144
+ // https://github.com/apple/swift-protobuf/issues/1182
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
+ } }()
1154
+ try { if let v = self._autoCheckSystemStatus {
1155
+ try visitor.visitSingularBoolField(value: v, fieldNumber: 4)
1156
+ } }()
1157
+ try unknownFields.traverse(visitor: &visitor)
1158
+ }
1159
+
1160
+ public static func ==(lhs: BlueBaseConfig, rhs: BlueBaseConfig) -> Bool {
1161
+ if lhs._isoCountry != rhs._isoCountry {return false}
1162
+ if lhs._isoState != rhs._isoState {return false}
1163
+ if lhs._utcOffsetMinutes != rhs._utcOffsetMinutes {return false}
1164
+ if lhs._autoCheckSystemStatus != rhs._autoCheckSystemStatus {return false}
1165
+ if lhs.unknownFields != rhs.unknownFields {return false}
1166
+ return true
1167
+ }
1168
+ }
1169
+
1170
+ extension BlueBleConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
1171
+ public static let protoMessageName: String = "BlueBleConfig"
1172
+ public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1173
+ 1: .same(proto: "isAdvertising"),
1174
+ 2: .same(proto: "advertisingSchedules"),
1175
+ 3: .same(proto: "maxPowerAdvertisingSchedulesIndices"),
1176
+ 4: .same(proto: "advertisingIntervalMs"),
1177
+ 5: .same(proto: "maxConnectionTimeoutMs"),
1178
+ 6: .same(proto: "txPowerLevel"),
1179
+ 7: .same(proto: "advertisedTxPower1Meter"),
1180
+ 8: .same(proto: "isIBeaconAdvertisement"),
1181
+ ]
1182
+
1183
+ public var isInitialized: Bool {
1184
+ if self._isAdvertising == nil {return false}
1185
+ if self._advertisingIntervalMs == nil {return false}
1186
+ if self._maxConnectionTimeoutMs == nil {return false}
1187
+ if self._txPowerLevel == nil {return false}
1188
+ if self._advertisedTxPower1Meter == nil {return false}
1189
+ if self._isIbeaconAdvertisement == nil {return false}
1190
+ if !SwiftProtobuf.Internal.areAllInitialized(self.advertisingSchedules) {return false}
1191
+ return true
1192
+ }
1193
+
1194
+ public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
1195
+ while let fieldNumber = try decoder.nextFieldNumber() {
1196
+ // The use of inline closures is to circumvent an issue where the compiler
1197
+ // allocates stack space for every case branch when no optimizations are
1198
+ // enabled. https://github.com/apple/swift-protobuf/issues/1034
1199
+ switch fieldNumber {
1200
+ case 1: try { try decoder.decodeSingularBoolField(value: &self._isAdvertising) }()
1201
+ case 2: try { try decoder.decodeRepeatedMessageField(value: &self.advertisingSchedules) }()
1202
+ case 3: try { try decoder.decodeRepeatedUInt32Field(value: &self.maxPowerAdvertisingSchedulesIndices) }()
1203
+ case 4: try { try decoder.decodeSingularUInt32Field(value: &self._advertisingIntervalMs) }()
1204
+ case 5: try { try decoder.decodeSingularUInt32Field(value: &self._maxConnectionTimeoutMs) }()
1205
+ case 6: try { try decoder.decodeSingularUInt32Field(value: &self._txPowerLevel) }()
1206
+ case 7: try { try decoder.decodeSingularInt32Field(value: &self._advertisedTxPower1Meter) }()
1207
+ case 8: try { try decoder.decodeSingularBoolField(value: &self._isIbeaconAdvertisement) }()
1208
+ default: break
1209
+ }
1210
+ }
1211
+ }
1212
+
1213
+ public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
1214
+ // The use of inline closures is to circumvent an issue where the compiler
1215
+ // allocates stack space for every if/case branch local when no optimizations
1216
+ // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
1217
+ // https://github.com/apple/swift-protobuf/issues/1182
1218
+ try { if let v = self._isAdvertising {
1219
+ try visitor.visitSingularBoolField(value: v, fieldNumber: 1)
1220
+ } }()
1221
+ if !self.advertisingSchedules.isEmpty {
1222
+ try visitor.visitRepeatedMessageField(value: self.advertisingSchedules, fieldNumber: 2)
1223
+ }
1224
+ if !self.maxPowerAdvertisingSchedulesIndices.isEmpty {
1225
+ try visitor.visitRepeatedUInt32Field(value: self.maxPowerAdvertisingSchedulesIndices, fieldNumber: 3)
1226
+ }
1227
+ try { if let v = self._advertisingIntervalMs {
1228
+ try visitor.visitSingularUInt32Field(value: v, fieldNumber: 4)
1229
+ } }()
1230
+ try { if let v = self._maxConnectionTimeoutMs {
1231
+ try visitor.visitSingularUInt32Field(value: v, fieldNumber: 5)
1232
+ } }()
1233
+ try { if let v = self._txPowerLevel {
1234
+ try visitor.visitSingularUInt32Field(value: v, fieldNumber: 6)
1235
+ } }()
1236
+ try { if let v = self._advertisedTxPower1Meter {
1237
+ try visitor.visitSingularInt32Field(value: v, fieldNumber: 7)
1238
+ } }()
1239
+ try { if let v = self._isIbeaconAdvertisement {
1240
+ try visitor.visitSingularBoolField(value: v, fieldNumber: 8)
1241
+ } }()
1242
+ try unknownFields.traverse(visitor: &visitor)
1243
+ }
1244
+
1245
+ public static func ==(lhs: BlueBleConfig, rhs: BlueBleConfig) -> Bool {
1246
+ if lhs._isAdvertising != rhs._isAdvertising {return false}
1247
+ if lhs.advertisingSchedules != rhs.advertisingSchedules {return false}
1248
+ if lhs.maxPowerAdvertisingSchedulesIndices != rhs.maxPowerAdvertisingSchedulesIndices {return false}
1249
+ if lhs._advertisingIntervalMs != rhs._advertisingIntervalMs {return false}
1250
+ if lhs._maxConnectionTimeoutMs != rhs._maxConnectionTimeoutMs {return false}
1251
+ if lhs._txPowerLevel != rhs._txPowerLevel {return false}
1252
+ if lhs._advertisedTxPower1Meter != rhs._advertisedTxPower1Meter {return false}
1253
+ if lhs._isIbeaconAdvertisement != rhs._isIbeaconAdvertisement {return false}
1254
+ if lhs.unknownFields != rhs.unknownFields {return false}
1255
+ return true
1256
+ }
1257
+ }
1258
+
1259
+ extension BlueOnlineConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
1260
+ public static let protoMessageName: String = "BlueOnlineConfig"
1261
+ public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1262
+ 1: .same(proto: "connectSchedules"),
1263
+ 2: .same(proto: "wifiSSID"),
1264
+ 3: .same(proto: "wifiPassword"),
1265
+ 4: .same(proto: "timeoutSec"),
1266
+ ]
1267
+
1268
+ public var isInitialized: Bool {
1269
+ if self._wifiSsid == nil {return false}
1270
+ if self._wifiPassword == nil {return false}
1271
+ if self._timeoutSec == nil {return false}
1272
+ if !SwiftProtobuf.Internal.areAllInitialized(self.connectSchedules) {return false}
1273
+ return true
1274
+ }
1275
+
1276
+ public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
1277
+ while let fieldNumber = try decoder.nextFieldNumber() {
1278
+ // The use of inline closures is to circumvent an issue where the compiler
1279
+ // allocates stack space for every case branch when no optimizations are
1280
+ // enabled. https://github.com/apple/swift-protobuf/issues/1034
1281
+ switch fieldNumber {
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) }()
1286
+ default: break
1287
+ }
1288
+ }
1289
+ }
1290
+
1291
+ public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
1292
+ // The use of inline closures is to circumvent an issue where the compiler
1293
+ // allocates stack space for every if/case branch local when no optimizations
1294
+ // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
1295
+ // https://github.com/apple/swift-protobuf/issues/1182
1296
+ if !self.connectSchedules.isEmpty {
1297
+ try visitor.visitRepeatedMessageField(value: self.connectSchedules, fieldNumber: 1)
1298
+ }
1299
+ try { if let v = self._wifiSsid {
1300
+ try visitor.visitSingularStringField(value: v, fieldNumber: 2)
1301
+ } }()
1302
+ try { if let v = self._wifiPassword {
1303
+ try visitor.visitSingularStringField(value: v, fieldNumber: 3)
1304
+ } }()
1305
+ try { if let v = self._timeoutSec {
1306
+ try visitor.visitSingularUInt32Field(value: v, fieldNumber: 4)
1307
+ } }()
1308
+ try unknownFields.traverse(visitor: &visitor)
1309
+ }
1310
+
1311
+ public static func ==(lhs: BlueOnlineConfig, rhs: BlueOnlineConfig) -> Bool {
1312
+ if lhs.connectSchedules != rhs.connectSchedules {return false}
1313
+ if lhs._wifiSsid != rhs._wifiSsid {return false}
1314
+ if lhs._wifiPassword != rhs._wifiPassword {return false}
1315
+ if lhs._timeoutSec != rhs._timeoutSec {return false}
1316
+ if lhs.unknownFields != rhs.unknownFields {return false}
1317
+ return true
1318
+ }
1319
+ }
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
+
1369
+ extension BlueAccessConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
1370
+ public static let protoMessageName: String = "BlueAccessConfig"
1371
+ public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1372
+ 1: .same(proto: "id"),
1373
+ 2: .same(proto: "siteId"),
1374
+ 3: .same(proto: "groups"),
1375
+ ]
1376
+
1377
+ public var isInitialized: Bool {
1378
+ if self._id == nil {return false}
1379
+ if self._siteID == nil {return false}
1380
+ if !SwiftProtobuf.Internal.areAllInitialized(self.groups) {return false}
1381
+ return true
1382
+ }
1383
+
1384
+ public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
1385
+ while let fieldNumber = try decoder.nextFieldNumber() {
1386
+ // The use of inline closures is to circumvent an issue where the compiler
1387
+ // allocates stack space for every case branch when no optimizations are
1388
+ // enabled. https://github.com/apple/swift-protobuf/issues/1034
1389
+ switch fieldNumber {
1390
+ case 1: try { try decoder.decodeSingularUInt32Field(value: &self._id) }()
1391
+ case 2: try { try decoder.decodeSingularUInt32Field(value: &self._siteID) }()
1392
+ case 3: try { try decoder.decodeRepeatedMessageField(value: &self.groups) }()
1393
+ default: break
1394
+ }
1395
+ }
1396
+ }
1397
+
1398
+ public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
1399
+ // The use of inline closures is to circumvent an issue where the compiler
1400
+ // allocates stack space for every if/case branch local when no optimizations
1401
+ // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
1402
+ // https://github.com/apple/swift-protobuf/issues/1182
1403
+ try { if let v = self._id {
1404
+ try visitor.visitSingularUInt32Field(value: v, fieldNumber: 1)
1405
+ } }()
1406
+ try { if let v = self._siteID {
1407
+ try visitor.visitSingularUInt32Field(value: v, fieldNumber: 2)
1408
+ } }()
1409
+ if !self.groups.isEmpty {
1410
+ try visitor.visitRepeatedMessageField(value: self.groups, fieldNumber: 3)
1411
+ }
1412
+ try unknownFields.traverse(visitor: &visitor)
1413
+ }
1414
+
1415
+ public static func ==(lhs: BlueAccessConfig, rhs: BlueAccessConfig) -> Bool {
1416
+ if lhs._id != rhs._id {return false}
1417
+ if lhs._siteID != rhs._siteID {return false}
1418
+ if lhs.groups != rhs.groups {return false}
1419
+ if lhs.unknownFields != rhs.unknownFields {return false}
1420
+ return true
1421
+ }
1422
+ }
1423
+
1424
+ extension BlueOssConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
1425
+ public static let protoMessageName: String = "BlueOssConfig"
1426
+ public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1427
+ 1: .same(proto: "sidMifareAesKey"),
1428
+ 2: .same(proto: "sidMifareAid"),
1429
+ 3: .same(proto: "soUpdater"),
1430
+ 4: .same(proto: "soPushEvents"),
1431
+ 5: .same(proto: "soWritePendingEvents"),
1432
+ 6: .same(proto: "soUpdateFromBlacklist"),
1433
+ 7: .same(proto: "soMifareAesKey"),
1434
+ 8: .same(proto: "soMifareAid"),
1435
+ ]
1436
+
1437
+ public var isInitialized: Bool {
1438
+ if self._sidMifareAesKey == nil {return false}
1439
+ if self._sidMifareAid == nil {return false}
1440
+ if self._soUpdater == nil {return false}
1441
+ if self._soPushEvents == nil {return false}
1442
+ if self._soWritePendingEvents == nil {return false}
1443
+ if self._soUpdateFromBlacklist == nil {return false}
1444
+ if self._soMifareAesKey == nil {return false}
1445
+ if self._soMifareAid == nil {return false}
1446
+ return true
1447
+ }
1448
+
1449
+ public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
1450
+ while let fieldNumber = try decoder.nextFieldNumber() {
1451
+ // The use of inline closures is to circumvent an issue where the compiler
1452
+ // allocates stack space for every case branch when no optimizations are
1453
+ // enabled. https://github.com/apple/swift-protobuf/issues/1034
1454
+ switch fieldNumber {
1455
+ case 1: try { try decoder.decodeSingularBytesField(value: &self._sidMifareAesKey) }()
1456
+ case 2: try { try decoder.decodeSingularUInt32Field(value: &self._sidMifareAid) }()
1457
+ case 3: try { try decoder.decodeSingularBoolField(value: &self._soUpdater) }()
1458
+ case 4: try { try decoder.decodeSingularBoolField(value: &self._soPushEvents) }()
1459
+ case 5: try { try decoder.decodeSingularBoolField(value: &self._soWritePendingEvents) }()
1460
+ case 6: try { try decoder.decodeSingularBoolField(value: &self._soUpdateFromBlacklist) }()
1461
+ case 7: try { try decoder.decodeSingularBytesField(value: &self._soMifareAesKey) }()
1462
+ case 8: try { try decoder.decodeSingularUInt32Field(value: &self._soMifareAid) }()
1463
+ default: break
1464
+ }
1465
+ }
1466
+ }
1467
+
1468
+ public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
1469
+ // The use of inline closures is to circumvent an issue where the compiler
1470
+ // allocates stack space for every if/case branch local when no optimizations
1471
+ // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
1472
+ // https://github.com/apple/swift-protobuf/issues/1182
1473
+ try { if let v = self._sidMifareAesKey {
1474
+ try visitor.visitSingularBytesField(value: v, fieldNumber: 1)
1475
+ } }()
1476
+ try { if let v = self._sidMifareAid {
1477
+ try visitor.visitSingularUInt32Field(value: v, fieldNumber: 2)
1478
+ } }()
1479
+ try { if let v = self._soUpdater {
1480
+ try visitor.visitSingularBoolField(value: v, fieldNumber: 3)
1481
+ } }()
1482
+ try { if let v = self._soPushEvents {
1483
+ try visitor.visitSingularBoolField(value: v, fieldNumber: 4)
1484
+ } }()
1485
+ try { if let v = self._soWritePendingEvents {
1486
+ try visitor.visitSingularBoolField(value: v, fieldNumber: 5)
1487
+ } }()
1488
+ try { if let v = self._soUpdateFromBlacklist {
1489
+ try visitor.visitSingularBoolField(value: v, fieldNumber: 6)
1490
+ } }()
1491
+ try { if let v = self._soMifareAesKey {
1492
+ try visitor.visitSingularBytesField(value: v, fieldNumber: 7)
1493
+ } }()
1494
+ try { if let v = self._soMifareAid {
1495
+ try visitor.visitSingularUInt32Field(value: v, fieldNumber: 8)
1496
+ } }()
1497
+ try unknownFields.traverse(visitor: &visitor)
1498
+ }
1499
+
1500
+ public static func ==(lhs: BlueOssConfig, rhs: BlueOssConfig) -> Bool {
1501
+ if lhs._sidMifareAesKey != rhs._sidMifareAesKey {return false}
1502
+ if lhs._sidMifareAid != rhs._sidMifareAid {return false}
1503
+ if lhs._soUpdater != rhs._soUpdater {return false}
1504
+ if lhs._soPushEvents != rhs._soPushEvents {return false}
1505
+ if lhs._soWritePendingEvents != rhs._soWritePendingEvents {return false}
1506
+ if lhs._soUpdateFromBlacklist != rhs._soUpdateFromBlacklist {return false}
1507
+ if lhs._soMifareAesKey != rhs._soMifareAesKey {return false}
1508
+ if lhs._soMifareAid != rhs._soMifareAid {return false}
1509
+ if lhs.unknownFields != rhs.unknownFields {return false}
1510
+ return true
1511
+ }
1512
+ }
1513
+
1514
+ extension BlueSystemConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
1515
+ public static let protoMessageName: String = "BlueSystemConfig"
1516
+ public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1517
+ 1: .same(proto: "configId"),
1518
+ 2: .same(proto: "base"),
1519
+ 3: .same(proto: "ble"),
1520
+ 4: .same(proto: "online"),
1521
+ 5: .same(proto: "access"),
1522
+ 6: .same(proto: "oss"),
1523
+ 7: .same(proto: "lock"),
1524
+ ]
1525
+
1526
+ fileprivate class _StorageClass {
1527
+ var _configID: String? = nil
1528
+ var _base: BlueBaseConfig? = nil
1529
+ var _ble: BlueBleConfig? = nil
1530
+ var _online: BlueOnlineConfig? = nil
1531
+ var _access: BlueAccessConfig? = nil
1532
+ var _oss: BlueOssConfig? = nil
1533
+ var _lock: BlueLockConfig? = nil
1534
+
1535
+ static let defaultInstance = _StorageClass()
1536
+
1537
+ private init() {}
1538
+
1539
+ init(copying source: _StorageClass) {
1540
+ _configID = source._configID
1541
+ _base = source._base
1542
+ _ble = source._ble
1543
+ _online = source._online
1544
+ _access = source._access
1545
+ _oss = source._oss
1546
+ _lock = source._lock
1547
+ }
1548
+ }
1549
+
1550
+ fileprivate mutating func _uniqueStorage() -> _StorageClass {
1551
+ if !isKnownUniquelyReferenced(&_storage) {
1552
+ _storage = _StorageClass(copying: _storage)
1553
+ }
1554
+ return _storage
1555
+ }
1556
+
1557
+ public var isInitialized: Bool {
1558
+ return withExtendedLifetime(_storage) { (_storage: _StorageClass) in
1559
+ if _storage._configID == nil {return false}
1560
+ if _storage._base == nil {return false}
1561
+ if _storage._ble == nil {return false}
1562
+ if _storage._online == nil {return false}
1563
+ if _storage._access == nil {return false}
1564
+ if _storage._oss == nil {return false}
1565
+ if let v = _storage._base, !v.isInitialized {return false}
1566
+ if let v = _storage._ble, !v.isInitialized {return false}
1567
+ if let v = _storage._online, !v.isInitialized {return false}
1568
+ if let v = _storage._access, !v.isInitialized {return false}
1569
+ if let v = _storage._oss, !v.isInitialized {return false}
1570
+ if let v = _storage._lock, !v.isInitialized {return false}
1571
+ return true
1572
+ }
1573
+ }
1574
+
1575
+ public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
1576
+ _ = _uniqueStorage()
1577
+ try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
1578
+ while let fieldNumber = try decoder.nextFieldNumber() {
1579
+ // The use of inline closures is to circumvent an issue where the compiler
1580
+ // allocates stack space for every case branch when no optimizations are
1581
+ // enabled. https://github.com/apple/swift-protobuf/issues/1034
1582
+ switch fieldNumber {
1583
+ case 1: try { try decoder.decodeSingularStringField(value: &_storage._configID) }()
1584
+ case 2: try { try decoder.decodeSingularMessageField(value: &_storage._base) }()
1585
+ case 3: try { try decoder.decodeSingularMessageField(value: &_storage._ble) }()
1586
+ case 4: try { try decoder.decodeSingularMessageField(value: &_storage._online) }()
1587
+ case 5: try { try decoder.decodeSingularMessageField(value: &_storage._access) }()
1588
+ case 6: try { try decoder.decodeSingularMessageField(value: &_storage._oss) }()
1589
+ case 7: try { try decoder.decodeSingularMessageField(value: &_storage._lock) }()
1590
+ default: break
1591
+ }
1592
+ }
1593
+ }
1594
+ }
1595
+
1596
+ public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
1597
+ try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
1598
+ // The use of inline closures is to circumvent an issue where the compiler
1599
+ // allocates stack space for every if/case branch local when no optimizations
1600
+ // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
1601
+ // https://github.com/apple/swift-protobuf/issues/1182
1602
+ try { if let v = _storage._configID {
1603
+ try visitor.visitSingularStringField(value: v, fieldNumber: 1)
1604
+ } }()
1605
+ try { if let v = _storage._base {
1606
+ try visitor.visitSingularMessageField(value: v, fieldNumber: 2)
1607
+ } }()
1608
+ try { if let v = _storage._ble {
1609
+ try visitor.visitSingularMessageField(value: v, fieldNumber: 3)
1610
+ } }()
1611
+ try { if let v = _storage._online {
1612
+ try visitor.visitSingularMessageField(value: v, fieldNumber: 4)
1613
+ } }()
1614
+ try { if let v = _storage._access {
1615
+ try visitor.visitSingularMessageField(value: v, fieldNumber: 5)
1616
+ } }()
1617
+ try { if let v = _storage._oss {
1618
+ try visitor.visitSingularMessageField(value: v, fieldNumber: 6)
1619
+ } }()
1620
+ try { if let v = _storage._lock {
1621
+ try visitor.visitSingularMessageField(value: v, fieldNumber: 7)
1622
+ } }()
1623
+ }
1624
+ try unknownFields.traverse(visitor: &visitor)
1625
+ }
1626
+
1627
+ public static func ==(lhs: BlueSystemConfig, rhs: BlueSystemConfig) -> Bool {
1628
+ if lhs._storage !== rhs._storage {
1629
+ let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in
1630
+ let _storage = _args.0
1631
+ let rhs_storage = _args.1
1632
+ if _storage._configID != rhs_storage._configID {return false}
1633
+ if _storage._base != rhs_storage._base {return false}
1634
+ if _storage._ble != rhs_storage._ble {return false}
1635
+ if _storage._online != rhs_storage._online {return false}
1636
+ if _storage._access != rhs_storage._access {return false}
1637
+ if _storage._oss != rhs_storage._oss {return false}
1638
+ if _storage._lock != rhs_storage._lock {return false}
1639
+ return true
1640
+ }
1641
+ if !storagesAreEqual {return false}
1642
+ }
1643
+ if lhs.unknownFields != rhs.unknownFields {return false}
1644
+ return true
1645
+ }
1646
+ }
1647
+
1648
+ extension BlueSystemTimeUnix: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
1649
+ public static let protoMessageName: String = "BlueSystemTimeUnix"
1650
+ public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1651
+ 1: .same(proto: "epoch"),
1652
+ ]
1653
+
1654
+ public var isInitialized: Bool {
1655
+ if self._epoch == nil {return false}
1656
+ return true
1657
+ }
1658
+
1659
+ public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
1660
+ while let fieldNumber = try decoder.nextFieldNumber() {
1661
+ // The use of inline closures is to circumvent an issue where the compiler
1662
+ // allocates stack space for every case branch when no optimizations are
1663
+ // enabled. https://github.com/apple/swift-protobuf/issues/1034
1664
+ switch fieldNumber {
1665
+ case 1: try { try decoder.decodeSingularUInt32Field(value: &self._epoch) }()
1666
+ default: break
1667
+ }
1668
+ }
1669
+ }
1670
+
1671
+ public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
1672
+ // The use of inline closures is to circumvent an issue where the compiler
1673
+ // allocates stack space for every if/case branch local when no optimizations
1674
+ // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
1675
+ // https://github.com/apple/swift-protobuf/issues/1182
1676
+ try { if let v = self._epoch {
1677
+ try visitor.visitSingularUInt32Field(value: v, fieldNumber: 1)
1678
+ } }()
1679
+ try unknownFields.traverse(visitor: &visitor)
1680
+ }
1681
+
1682
+ public static func ==(lhs: BlueSystemTimeUnix, rhs: BlueSystemTimeUnix) -> Bool {
1683
+ if lhs._epoch != rhs._epoch {return false}
1684
+ if lhs.unknownFields != rhs.unknownFields {return false}
1685
+ return true
1686
+ }
1687
+ }
1688
+
1689
+ extension BlueSystemUpdate: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
1690
+ public static let protoMessageName: String = "BlueSystemUpdate"
1691
+ public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1692
+ 1: .same(proto: "config"),
1693
+ 2: .same(proto: "timeUnix"),
1694
+ ]
1695
+
1696
+ public var isInitialized: Bool {
1697
+ if let v = self._config, !v.isInitialized {return false}
1698
+ if let v = self._timeUnix, !v.isInitialized {return false}
1699
+ return true
1700
+ }
1701
+
1702
+ public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
1703
+ while let fieldNumber = try decoder.nextFieldNumber() {
1704
+ // The use of inline closures is to circumvent an issue where the compiler
1705
+ // allocates stack space for every case branch when no optimizations are
1706
+ // enabled. https://github.com/apple/swift-protobuf/issues/1034
1707
+ switch fieldNumber {
1708
+ case 1: try { try decoder.decodeSingularMessageField(value: &self._config) }()
1709
+ case 2: try { try decoder.decodeSingularMessageField(value: &self._timeUnix) }()
1710
+ default: break
1711
+ }
1712
+ }
1713
+ }
1714
+
1715
+ public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
1716
+ // The use of inline closures is to circumvent an issue where the compiler
1717
+ // allocates stack space for every if/case branch local when no optimizations
1718
+ // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
1719
+ // https://github.com/apple/swift-protobuf/issues/1182
1720
+ try { if let v = self._config {
1721
+ try visitor.visitSingularMessageField(value: v, fieldNumber: 1)
1722
+ } }()
1723
+ try { if let v = self._timeUnix {
1724
+ try visitor.visitSingularMessageField(value: v, fieldNumber: 2)
1725
+ } }()
1726
+ try unknownFields.traverse(visitor: &visitor)
1727
+ }
1728
+
1729
+ public static func ==(lhs: BlueSystemUpdate, rhs: BlueSystemUpdate) -> Bool {
1730
+ if lhs._config != rhs._config {return false}
1731
+ if lhs._timeUnix != rhs._timeUnix {return false}
1732
+ if lhs.unknownFields != rhs.unknownFields {return false}
1733
+ return true
1734
+ }
1735
+ }
1736
+
1737
+ extension BlueSystemSettings: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
1738
+ public static let protoMessageName: String = "BlueSystemSettings"
1739
+ public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1740
+ 1: .same(proto: "blacklistMaxEntriesCount"),
1741
+ 2: .same(proto: "blacklistEntriesCount"),
1742
+ 3: .same(proto: "eventLogMaxEntriesCount"),
1743
+ 4: .same(proto: "eventLogEntriesCount"),
1744
+ 5: .same(proto: "eventLogSequenceId"),
1745
+ 6: .same(proto: "eventLogIndex"),
1746
+ 7: .same(proto: "systemLogMaxEntriesCount"),
1747
+ 8: .same(proto: "systemLogEntriesCount"),
1748
+ 9: .same(proto: "systemLogSequenceId"),
1749
+ 10: .same(proto: "systemLogIndex"),
1750
+ 11: .same(proto: "timeWasSet"),
1751
+ 12: .same(proto: "isBatteryLow"),
1752
+ ]
1753
+
1754
+ public var isInitialized: Bool {
1755
+ if self._blacklistMaxEntriesCount == nil {return false}
1756
+ if self._blacklistEntriesCount == nil {return false}
1757
+ if self._eventLogMaxEntriesCount == nil {return false}
1758
+ if self._eventLogEntriesCount == nil {return false}
1759
+ if self._eventLogSequenceID == nil {return false}
1760
+ if self._eventLogIndex == nil {return false}
1761
+ if self._systemLogMaxEntriesCount == nil {return false}
1762
+ if self._systemLogEntriesCount == nil {return false}
1763
+ if self._systemLogSequenceID == nil {return false}
1764
+ if self._systemLogIndex == nil {return false}
1765
+ if self._timeWasSet == nil {return false}
1766
+ if self._isBatteryLow == nil {return false}
1767
+ return true
1768
+ }
1769
+
1770
+ public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
1771
+ while let fieldNumber = try decoder.nextFieldNumber() {
1772
+ // The use of inline closures is to circumvent an issue where the compiler
1773
+ // allocates stack space for every case branch when no optimizations are
1774
+ // enabled. https://github.com/apple/swift-protobuf/issues/1034
1775
+ switch fieldNumber {
1776
+ case 1: try { try decoder.decodeSingularUInt32Field(value: &self._blacklistMaxEntriesCount) }()
1777
+ case 2: try { try decoder.decodeSingularUInt32Field(value: &self._blacklistEntriesCount) }()
1778
+ case 3: try { try decoder.decodeSingularUInt32Field(value: &self._eventLogMaxEntriesCount) }()
1779
+ case 4: try { try decoder.decodeSingularUInt32Field(value: &self._eventLogEntriesCount) }()
1780
+ case 5: try { try decoder.decodeSingularUInt32Field(value: &self._eventLogSequenceID) }()
1781
+ case 6: try { try decoder.decodeSingularUInt32Field(value: &self._eventLogIndex) }()
1782
+ case 7: try { try decoder.decodeSingularUInt32Field(value: &self._systemLogMaxEntriesCount) }()
1783
+ case 8: try { try decoder.decodeSingularUInt32Field(value: &self._systemLogEntriesCount) }()
1784
+ case 9: try { try decoder.decodeSingularUInt32Field(value: &self._systemLogSequenceID) }()
1785
+ case 10: try { try decoder.decodeSingularUInt32Field(value: &self._systemLogIndex) }()
1786
+ case 11: try { try decoder.decodeSingularBoolField(value: &self._timeWasSet) }()
1787
+ case 12: try { try decoder.decodeSingularBoolField(value: &self._isBatteryLow) }()
1788
+ default: break
1789
+ }
1790
+ }
1791
+ }
1792
+
1793
+ public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
1794
+ // The use of inline closures is to circumvent an issue where the compiler
1795
+ // allocates stack space for every if/case branch local when no optimizations
1796
+ // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
1797
+ // https://github.com/apple/swift-protobuf/issues/1182
1798
+ try { if let v = self._blacklistMaxEntriesCount {
1799
+ try visitor.visitSingularUInt32Field(value: v, fieldNumber: 1)
1800
+ } }()
1801
+ try { if let v = self._blacklistEntriesCount {
1802
+ try visitor.visitSingularUInt32Field(value: v, fieldNumber: 2)
1803
+ } }()
1804
+ try { if let v = self._eventLogMaxEntriesCount {
1805
+ try visitor.visitSingularUInt32Field(value: v, fieldNumber: 3)
1806
+ } }()
1807
+ try { if let v = self._eventLogEntriesCount {
1808
+ try visitor.visitSingularUInt32Field(value: v, fieldNumber: 4)
1809
+ } }()
1810
+ try { if let v = self._eventLogSequenceID {
1811
+ try visitor.visitSingularUInt32Field(value: v, fieldNumber: 5)
1812
+ } }()
1813
+ try { if let v = self._eventLogIndex {
1814
+ try visitor.visitSingularUInt32Field(value: v, fieldNumber: 6)
1815
+ } }()
1816
+ try { if let v = self._systemLogMaxEntriesCount {
1817
+ try visitor.visitSingularUInt32Field(value: v, fieldNumber: 7)
1818
+ } }()
1819
+ try { if let v = self._systemLogEntriesCount {
1820
+ try visitor.visitSingularUInt32Field(value: v, fieldNumber: 8)
1821
+ } }()
1822
+ try { if let v = self._systemLogSequenceID {
1823
+ try visitor.visitSingularUInt32Field(value: v, fieldNumber: 9)
1824
+ } }()
1825
+ try { if let v = self._systemLogIndex {
1826
+ try visitor.visitSingularUInt32Field(value: v, fieldNumber: 10)
1827
+ } }()
1828
+ try { if let v = self._timeWasSet {
1829
+ try visitor.visitSingularBoolField(value: v, fieldNumber: 11)
1830
+ } }()
1831
+ try { if let v = self._isBatteryLow {
1832
+ try visitor.visitSingularBoolField(value: v, fieldNumber: 12)
1833
+ } }()
1834
+ try unknownFields.traverse(visitor: &visitor)
1835
+ }
1836
+
1837
+ public static func ==(lhs: BlueSystemSettings, rhs: BlueSystemSettings) -> Bool {
1838
+ if lhs._blacklistMaxEntriesCount != rhs._blacklistMaxEntriesCount {return false}
1839
+ if lhs._blacklistEntriesCount != rhs._blacklistEntriesCount {return false}
1840
+ if lhs._eventLogMaxEntriesCount != rhs._eventLogMaxEntriesCount {return false}
1841
+ if lhs._eventLogEntriesCount != rhs._eventLogEntriesCount {return false}
1842
+ if lhs._eventLogSequenceID != rhs._eventLogSequenceID {return false}
1843
+ if lhs._eventLogIndex != rhs._eventLogIndex {return false}
1844
+ if lhs._systemLogMaxEntriesCount != rhs._systemLogMaxEntriesCount {return false}
1845
+ if lhs._systemLogEntriesCount != rhs._systemLogEntriesCount {return false}
1846
+ if lhs._systemLogSequenceID != rhs._systemLogSequenceID {return false}
1847
+ if lhs._systemLogIndex != rhs._systemLogIndex {return false}
1848
+ if lhs._timeWasSet != rhs._timeWasSet {return false}
1849
+ if lhs._isBatteryLow != rhs._isBatteryLow {return false}
1850
+ if lhs.unknownFields != rhs.unknownFields {return false}
1851
+ return true
1852
+ }
1853
+ }
1854
+
1855
+ extension BlueSystemProvisioning: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
1856
+ public static let protoMessageName: String = "BlueSystemProvisioning"
1857
+ public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1858
+ 1: .same(proto: "hardwareType"),
1859
+ 2: .same(proto: "deviceId"),
1860
+ 3: .same(proto: "serialNumber"),
1861
+ 4: .same(proto: "terminalPrivateKey"),
1862
+ 5: .same(proto: "signaturePublicKey"),
1863
+ ]
1864
+
1865
+ public var isInitialized: Bool {
1866
+ if self._hardwareType == nil {return false}
1867
+ if self._deviceID == nil {return false}
1868
+ if self._serialNumber == nil {return false}
1869
+ if self._terminalPrivateKey == nil {return false}
1870
+ if self._signaturePublicKey == nil {return false}
1871
+ return true
1872
+ }
1873
+
1874
+ public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
1875
+ while let fieldNumber = try decoder.nextFieldNumber() {
1876
+ // The use of inline closures is to circumvent an issue where the compiler
1877
+ // allocates stack space for every case branch when no optimizations are
1878
+ // enabled. https://github.com/apple/swift-protobuf/issues/1034
1879
+ switch fieldNumber {
1880
+ case 1: try { try decoder.decodeSingularEnumField(value: &self._hardwareType) }()
1881
+ case 2: try { try decoder.decodeSingularStringField(value: &self._deviceID) }()
1882
+ case 3: try { try decoder.decodeSingularStringField(value: &self._serialNumber) }()
1883
+ case 4: try { try decoder.decodeSingularBytesField(value: &self._terminalPrivateKey) }()
1884
+ case 5: try { try decoder.decodeSingularBytesField(value: &self._signaturePublicKey) }()
1885
+ default: break
1886
+ }
1887
+ }
1888
+ }
1889
+
1890
+ public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
1891
+ // The use of inline closures is to circumvent an issue where the compiler
1892
+ // allocates stack space for every if/case branch local when no optimizations
1893
+ // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
1894
+ // https://github.com/apple/swift-protobuf/issues/1182
1895
+ try { if let v = self._hardwareType {
1896
+ try visitor.visitSingularEnumField(value: v, fieldNumber: 1)
1897
+ } }()
1898
+ try { if let v = self._deviceID {
1899
+ try visitor.visitSingularStringField(value: v, fieldNumber: 2)
1900
+ } }()
1901
+ try { if let v = self._serialNumber {
1902
+ try visitor.visitSingularStringField(value: v, fieldNumber: 3)
1903
+ } }()
1904
+ try { if let v = self._terminalPrivateKey {
1905
+ try visitor.visitSingularBytesField(value: v, fieldNumber: 4)
1906
+ } }()
1907
+ try { if let v = self._signaturePublicKey {
1908
+ try visitor.visitSingularBytesField(value: v, fieldNumber: 5)
1909
+ } }()
1910
+ try unknownFields.traverse(visitor: &visitor)
1911
+ }
1912
+
1913
+ public static func ==(lhs: BlueSystemProvisioning, rhs: BlueSystemProvisioning) -> Bool {
1914
+ if lhs._hardwareType != rhs._hardwareType {return false}
1915
+ if lhs._deviceID != rhs._deviceID {return false}
1916
+ if lhs._serialNumber != rhs._serialNumber {return false}
1917
+ if lhs._terminalPrivateKey != rhs._terminalPrivateKey {return false}
1918
+ if lhs._signaturePublicKey != rhs._signaturePublicKey {return false}
1919
+ if lhs.unknownFields != rhs.unknownFields {return false}
1920
+ return true
1921
+ }
1922
+ }
1923
+
1924
+ extension BlueSystemStatus: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
1925
+ public static let protoMessageName: String = "BlueSystemStatus"
1926
+ public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
1927
+ 1: .same(proto: "configId"),
1928
+ 2: .same(proto: "deviceId"),
1929
+ 3: .same(proto: "serialNumber"),
1930
+ 4: .same(proto: "hardwareType"),
1931
+ 5: .same(proto: "batteryLevel"),
1932
+ 6: .same(proto: "applicationVersion"),
1933
+ 7: .same(proto: "localTime"),
1934
+ 8: .same(proto: "settings"),
1935
+ 9: .same(proto: "blacklistEntriesCount"),
1936
+ 10: .same(proto: "eventLogEntriesCount"),
1937
+ 11: .same(proto: "eventLogSequenceId"),
1938
+ 12: .same(proto: "systemLogEntriesCount"),
1939
+ 13: .same(proto: "systemLogSequenceId"),
1940
+ 14: .same(proto: "lock"),
1941
+ ]
1942
+
1943
+ fileprivate class _StorageClass {
1944
+ var _configID: String? = nil
1945
+ var _deviceID: String? = nil
1946
+ var _serialNumber: String? = nil
1947
+ var _hardwareType: BlueHardwareType? = nil
1948
+ var _batteryLevel: BlueBatteryLevel? = nil
1949
+ var _applicationVersion: UInt32? = nil
1950
+ var _localTime: BlueLocalTimestamp? = nil
1951
+ var _settings: BlueSystemSettings? = nil
1952
+ var _blacklistEntriesCount: UInt32? = nil
1953
+ var _eventLogEntriesCount: UInt32? = nil
1954
+ var _eventLogSequenceID: UInt32? = nil
1955
+ var _systemLogEntriesCount: UInt32? = nil
1956
+ var _systemLogSequenceID: UInt32? = nil
1957
+ var _lock: BlueLockStatus? = nil
1958
+
1959
+ static let defaultInstance = _StorageClass()
1960
+
1961
+ private init() {}
1962
+
1963
+ init(copying source: _StorageClass) {
1964
+ _configID = source._configID
1965
+ _deviceID = source._deviceID
1966
+ _serialNumber = source._serialNumber
1967
+ _hardwareType = source._hardwareType
1968
+ _batteryLevel = source._batteryLevel
1969
+ _applicationVersion = source._applicationVersion
1970
+ _localTime = source._localTime
1971
+ _settings = source._settings
1972
+ _blacklistEntriesCount = source._blacklistEntriesCount
1973
+ _eventLogEntriesCount = source._eventLogEntriesCount
1974
+ _eventLogSequenceID = source._eventLogSequenceID
1975
+ _systemLogEntriesCount = source._systemLogEntriesCount
1976
+ _systemLogSequenceID = source._systemLogSequenceID
1977
+ _lock = source._lock
1978
+ }
1979
+ }
1980
+
1981
+ fileprivate mutating func _uniqueStorage() -> _StorageClass {
1982
+ if !isKnownUniquelyReferenced(&_storage) {
1983
+ _storage = _StorageClass(copying: _storage)
1984
+ }
1985
+ return _storage
1986
+ }
1987
+
1988
+ public var isInitialized: Bool {
1989
+ return withExtendedLifetime(_storage) { (_storage: _StorageClass) in
1990
+ if _storage._configID == nil {return false}
1991
+ if _storage._deviceID == nil {return false}
1992
+ if _storage._serialNumber == nil {return false}
1993
+ if _storage._hardwareType == nil {return false}
1994
+ if _storage._batteryLevel == nil {return false}
1995
+ if _storage._applicationVersion == nil {return false}
1996
+ if _storage._localTime == nil {return false}
1997
+ if _storage._settings == nil {return false}
1998
+ if _storage._blacklistEntriesCount == nil {return false}
1999
+ if _storage._eventLogEntriesCount == nil {return false}
2000
+ if _storage._eventLogSequenceID == nil {return false}
2001
+ if _storage._systemLogEntriesCount == nil {return false}
2002
+ if _storage._systemLogSequenceID == nil {return false}
2003
+ if let v = _storage._localTime, !v.isInitialized {return false}
2004
+ if let v = _storage._settings, !v.isInitialized {return false}
2005
+ if let v = _storage._lock, !v.isInitialized {return false}
2006
+ return true
2007
+ }
2008
+ }
2009
+
2010
+ public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
2011
+ _ = _uniqueStorage()
2012
+ try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
2013
+ while let fieldNumber = try decoder.nextFieldNumber() {
2014
+ // The use of inline closures is to circumvent an issue where the compiler
2015
+ // allocates stack space for every case branch when no optimizations are
2016
+ // enabled. https://github.com/apple/swift-protobuf/issues/1034
2017
+ switch fieldNumber {
2018
+ case 1: try { try decoder.decodeSingularStringField(value: &_storage._configID) }()
2019
+ case 2: try { try decoder.decodeSingularStringField(value: &_storage._deviceID) }()
2020
+ case 3: try { try decoder.decodeSingularStringField(value: &_storage._serialNumber) }()
2021
+ case 4: try { try decoder.decodeSingularEnumField(value: &_storage._hardwareType) }()
2022
+ case 5: try { try decoder.decodeSingularEnumField(value: &_storage._batteryLevel) }()
2023
+ case 6: try { try decoder.decodeSingularUInt32Field(value: &_storage._applicationVersion) }()
2024
+ case 7: try { try decoder.decodeSingularMessageField(value: &_storage._localTime) }()
2025
+ case 8: try { try decoder.decodeSingularMessageField(value: &_storage._settings) }()
2026
+ case 9: try { try decoder.decodeSingularUInt32Field(value: &_storage._blacklistEntriesCount) }()
2027
+ case 10: try { try decoder.decodeSingularUInt32Field(value: &_storage._eventLogEntriesCount) }()
2028
+ case 11: try { try decoder.decodeSingularUInt32Field(value: &_storage._eventLogSequenceID) }()
2029
+ case 12: try { try decoder.decodeSingularUInt32Field(value: &_storage._systemLogEntriesCount) }()
2030
+ case 13: try { try decoder.decodeSingularUInt32Field(value: &_storage._systemLogSequenceID) }()
2031
+ case 14: try { try decoder.decodeSingularMessageField(value: &_storage._lock) }()
2032
+ default: break
2033
+ }
2034
+ }
2035
+ }
2036
+ }
2037
+
2038
+ public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
2039
+ try withExtendedLifetime(_storage) { (_storage: _StorageClass) in
2040
+ // The use of inline closures is to circumvent an issue where the compiler
2041
+ // allocates stack space for every if/case branch local when no optimizations
2042
+ // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
2043
+ // https://github.com/apple/swift-protobuf/issues/1182
2044
+ try { if let v = _storage._configID {
2045
+ try visitor.visitSingularStringField(value: v, fieldNumber: 1)
2046
+ } }()
2047
+ try { if let v = _storage._deviceID {
2048
+ try visitor.visitSingularStringField(value: v, fieldNumber: 2)
2049
+ } }()
2050
+ try { if let v = _storage._serialNumber {
2051
+ try visitor.visitSingularStringField(value: v, fieldNumber: 3)
2052
+ } }()
2053
+ try { if let v = _storage._hardwareType {
2054
+ try visitor.visitSingularEnumField(value: v, fieldNumber: 4)
2055
+ } }()
2056
+ try { if let v = _storage._batteryLevel {
2057
+ try visitor.visitSingularEnumField(value: v, fieldNumber: 5)
2058
+ } }()
2059
+ try { if let v = _storage._applicationVersion {
2060
+ try visitor.visitSingularUInt32Field(value: v, fieldNumber: 6)
2061
+ } }()
2062
+ try { if let v = _storage._localTime {
2063
+ try visitor.visitSingularMessageField(value: v, fieldNumber: 7)
2064
+ } }()
2065
+ try { if let v = _storage._settings {
2066
+ try visitor.visitSingularMessageField(value: v, fieldNumber: 8)
2067
+ } }()
2068
+ try { if let v = _storage._blacklistEntriesCount {
2069
+ try visitor.visitSingularUInt32Field(value: v, fieldNumber: 9)
2070
+ } }()
2071
+ try { if let v = _storage._eventLogEntriesCount {
2072
+ try visitor.visitSingularUInt32Field(value: v, fieldNumber: 10)
2073
+ } }()
2074
+ try { if let v = _storage._eventLogSequenceID {
2075
+ try visitor.visitSingularUInt32Field(value: v, fieldNumber: 11)
2076
+ } }()
2077
+ try { if let v = _storage._systemLogEntriesCount {
2078
+ try visitor.visitSingularUInt32Field(value: v, fieldNumber: 12)
2079
+ } }()
2080
+ try { if let v = _storage._systemLogSequenceID {
2081
+ try visitor.visitSingularUInt32Field(value: v, fieldNumber: 13)
2082
+ } }()
2083
+ try { if let v = _storage._lock {
2084
+ try visitor.visitSingularMessageField(value: v, fieldNumber: 14)
2085
+ } }()
2086
+ }
2087
+ try unknownFields.traverse(visitor: &visitor)
2088
+ }
2089
+
2090
+ public static func ==(lhs: BlueSystemStatus, rhs: BlueSystemStatus) -> Bool {
2091
+ if lhs._storage !== rhs._storage {
2092
+ let storagesAreEqual: Bool = withExtendedLifetime((lhs._storage, rhs._storage)) { (_args: (_StorageClass, _StorageClass)) in
2093
+ let _storage = _args.0
2094
+ let rhs_storage = _args.1
2095
+ if _storage._configID != rhs_storage._configID {return false}
2096
+ if _storage._deviceID != rhs_storage._deviceID {return false}
2097
+ if _storage._serialNumber != rhs_storage._serialNumber {return false}
2098
+ if _storage._hardwareType != rhs_storage._hardwareType {return false}
2099
+ if _storage._batteryLevel != rhs_storage._batteryLevel {return false}
2100
+ if _storage._applicationVersion != rhs_storage._applicationVersion {return false}
2101
+ if _storage._localTime != rhs_storage._localTime {return false}
2102
+ if _storage._settings != rhs_storage._settings {return false}
2103
+ if _storage._blacklistEntriesCount != rhs_storage._blacklistEntriesCount {return false}
2104
+ if _storage._eventLogEntriesCount != rhs_storage._eventLogEntriesCount {return false}
2105
+ if _storage._eventLogSequenceID != rhs_storage._eventLogSequenceID {return false}
2106
+ if _storage._systemLogEntriesCount != rhs_storage._systemLogEntriesCount {return false}
2107
+ if _storage._systemLogSequenceID != rhs_storage._systemLogSequenceID {return false}
2108
+ if _storage._lock != rhs_storage._lock {return false}
2109
+ return true
2110
+ }
2111
+ if !storagesAreEqual {return false}
2112
+ }
2113
+ if lhs.unknownFields != rhs.unknownFields {return false}
2114
+ return true
2115
+ }
2116
+ }
2117
+
2118
+ extension BlueSystemLogQuery: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
2119
+ public static let protoMessageName: String = "BlueSystemLogQuery"
2120
+ public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
2121
+ 1: .same(proto: "maxCount"),
2122
+ 2: .same(proto: "sequenceId"),
2123
+ 3: .same(proto: "fromHead"),
2124
+ ]
2125
+
2126
+ public var isInitialized: Bool {
2127
+ if self._maxCount == nil {return false}
2128
+ return true
2129
+ }
2130
+
2131
+ public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
2132
+ while let fieldNumber = try decoder.nextFieldNumber() {
2133
+ // The use of inline closures is to circumvent an issue where the compiler
2134
+ // allocates stack space for every case branch when no optimizations are
2135
+ // enabled. https://github.com/apple/swift-protobuf/issues/1034
2136
+ switch fieldNumber {
2137
+ case 1: try { try decoder.decodeSingularUInt32Field(value: &self._maxCount) }()
2138
+ case 2: try {
2139
+ var v: UInt32?
2140
+ try decoder.decodeSingularUInt32Field(value: &v)
2141
+ if let v = v {
2142
+ if self.start != nil {try decoder.handleConflictingOneOf()}
2143
+ self.start = .sequenceID(v)
2144
+ }
2145
+ }()
2146
+ case 3: try {
2147
+ var v: Bool?
2148
+ try decoder.decodeSingularBoolField(value: &v)
2149
+ if let v = v {
2150
+ if self.start != nil {try decoder.handleConflictingOneOf()}
2151
+ self.start = .fromHead(v)
2152
+ }
2153
+ }()
2154
+ default: break
2155
+ }
2156
+ }
2157
+ }
2158
+
2159
+ public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
2160
+ // The use of inline closures is to circumvent an issue where the compiler
2161
+ // allocates stack space for every if/case branch local when no optimizations
2162
+ // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
2163
+ // https://github.com/apple/swift-protobuf/issues/1182
2164
+ try { if let v = self._maxCount {
2165
+ try visitor.visitSingularUInt32Field(value: v, fieldNumber: 1)
2166
+ } }()
2167
+ switch self.start {
2168
+ case .sequenceID?: try {
2169
+ guard case .sequenceID(let v)? = self.start else { preconditionFailure() }
2170
+ try visitor.visitSingularUInt32Field(value: v, fieldNumber: 2)
2171
+ }()
2172
+ case .fromHead?: try {
2173
+ guard case .fromHead(let v)? = self.start else { preconditionFailure() }
2174
+ try visitor.visitSingularBoolField(value: v, fieldNumber: 3)
2175
+ }()
2176
+ case nil: break
2177
+ }
2178
+ try unknownFields.traverse(visitor: &visitor)
2179
+ }
2180
+
2181
+ public static func ==(lhs: BlueSystemLogQuery, rhs: BlueSystemLogQuery) -> Bool {
2182
+ if lhs._maxCount != rhs._maxCount {return false}
2183
+ if lhs.start != rhs.start {return false}
2184
+ if lhs.unknownFields != rhs.unknownFields {return false}
2185
+ return true
2186
+ }
2187
+ }
2188
+
2189
+ extension BlueSystemLogEntry: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
2190
+ public static let protoMessageName: String = "BlueSystemLogEntry"
2191
+ public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
2192
+ 1: .same(proto: "sequenceId"),
2193
+ 2: .same(proto: "time"),
2194
+ 3: .same(proto: "severity"),
2195
+ 4: .same(proto: "line"),
2196
+ 5: .same(proto: "file"),
2197
+ 6: .same(proto: "message"),
2198
+ ]
2199
+
2200
+ public var isInitialized: Bool {
2201
+ if self._sequenceID == nil {return false}
2202
+ if self._time == nil {return false}
2203
+ if self._severity == nil {return false}
2204
+ if self._line == nil {return false}
2205
+ if self._file == nil {return false}
2206
+ if self._message == nil {return false}
2207
+ if let v = self._time, !v.isInitialized {return false}
2208
+ return true
2209
+ }
2210
+
2211
+ public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
2212
+ while let fieldNumber = try decoder.nextFieldNumber() {
2213
+ // The use of inline closures is to circumvent an issue where the compiler
2214
+ // allocates stack space for every case branch when no optimizations are
2215
+ // enabled. https://github.com/apple/swift-protobuf/issues/1034
2216
+ switch fieldNumber {
2217
+ case 1: try { try decoder.decodeSingularUInt32Field(value: &self._sequenceID) }()
2218
+ case 2: try { try decoder.decodeSingularMessageField(value: &self._time) }()
2219
+ case 3: try { try decoder.decodeSingularUInt32Field(value: &self._severity) }()
2220
+ case 4: try { try decoder.decodeSingularUInt32Field(value: &self._line) }()
2221
+ case 5: try { try decoder.decodeSingularStringField(value: &self._file) }()
2222
+ case 6: try { try decoder.decodeSingularStringField(value: &self._message) }()
2223
+ default: break
2224
+ }
2225
+ }
2226
+ }
2227
+
2228
+ public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
2229
+ // The use of inline closures is to circumvent an issue where the compiler
2230
+ // allocates stack space for every if/case branch local when no optimizations
2231
+ // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
2232
+ // https://github.com/apple/swift-protobuf/issues/1182
2233
+ try { if let v = self._sequenceID {
2234
+ try visitor.visitSingularUInt32Field(value: v, fieldNumber: 1)
2235
+ } }()
2236
+ try { if let v = self._time {
2237
+ try visitor.visitSingularMessageField(value: v, fieldNumber: 2)
2238
+ } }()
2239
+ try { if let v = self._severity {
2240
+ try visitor.visitSingularUInt32Field(value: v, fieldNumber: 3)
2241
+ } }()
2242
+ try { if let v = self._line {
2243
+ try visitor.visitSingularUInt32Field(value: v, fieldNumber: 4)
2244
+ } }()
2245
+ try { if let v = self._file {
2246
+ try visitor.visitSingularStringField(value: v, fieldNumber: 5)
2247
+ } }()
2248
+ try { if let v = self._message {
2249
+ try visitor.visitSingularStringField(value: v, fieldNumber: 6)
2250
+ } }()
2251
+ try unknownFields.traverse(visitor: &visitor)
2252
+ }
2253
+
2254
+ public static func ==(lhs: BlueSystemLogEntry, rhs: BlueSystemLogEntry) -> Bool {
2255
+ if lhs._sequenceID != rhs._sequenceID {return false}
2256
+ if lhs._time != rhs._time {return false}
2257
+ if lhs._severity != rhs._severity {return false}
2258
+ if lhs._line != rhs._line {return false}
2259
+ if lhs._file != rhs._file {return false}
2260
+ if lhs._message != rhs._message {return false}
2261
+ if lhs.unknownFields != rhs.unknownFields {return false}
2262
+ return true
2263
+ }
2264
+ }
2265
+
2266
+ extension BlueSystemLogResult: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
2267
+ public static let protoMessageName: String = "BlueSystemLogResult"
2268
+ public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
2269
+ 1: .same(proto: "entries"),
2270
+ ]
2271
+
2272
+ public var isInitialized: Bool {
2273
+ if !SwiftProtobuf.Internal.areAllInitialized(self.entries) {return false}
2274
+ return true
2275
+ }
2276
+
2277
+ public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
2278
+ while let fieldNumber = try decoder.nextFieldNumber() {
2279
+ // The use of inline closures is to circumvent an issue where the compiler
2280
+ // allocates stack space for every case branch when no optimizations are
2281
+ // enabled. https://github.com/apple/swift-protobuf/issues/1034
2282
+ switch fieldNumber {
2283
+ case 1: try { try decoder.decodeRepeatedMessageField(value: &self.entries) }()
2284
+ default: break
2285
+ }
2286
+ }
2287
+ }
2288
+
2289
+ public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
2290
+ if !self.entries.isEmpty {
2291
+ try visitor.visitRepeatedMessageField(value: self.entries, fieldNumber: 1)
2292
+ }
2293
+ try unknownFields.traverse(visitor: &visitor)
2294
+ }
2295
+
2296
+ public static func ==(lhs: BlueSystemLogResult, rhs: BlueSystemLogResult) -> Bool {
2297
+ if lhs.entries != rhs.entries {return false}
2298
+ if lhs.unknownFields != rhs.unknownFields {return false}
2299
+ return true
2300
+ }
2301
+ }
2302
+
2303
+ extension BlueEventLogQuery: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
2304
+ public static let protoMessageName: String = "BlueEventLogQuery"
2305
+ public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
2306
+ 1: .same(proto: "maxCount"),
2307
+ 2: .same(proto: "sequenceId"),
2308
+ 3: .same(proto: "fromHead"),
2309
+ ]
2310
+
2311
+ public var isInitialized: Bool {
2312
+ if self._maxCount == nil {return false}
2313
+ return true
2314
+ }
2315
+
2316
+ public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
2317
+ while let fieldNumber = try decoder.nextFieldNumber() {
2318
+ // The use of inline closures is to circumvent an issue where the compiler
2319
+ // allocates stack space for every case branch when no optimizations are
2320
+ // enabled. https://github.com/apple/swift-protobuf/issues/1034
2321
+ switch fieldNumber {
2322
+ case 1: try { try decoder.decodeSingularUInt32Field(value: &self._maxCount) }()
2323
+ case 2: try {
2324
+ var v: UInt32?
2325
+ try decoder.decodeSingularUInt32Field(value: &v)
2326
+ if let v = v {
2327
+ if self.start != nil {try decoder.handleConflictingOneOf()}
2328
+ self.start = .sequenceID(v)
2329
+ }
2330
+ }()
2331
+ case 3: try {
2332
+ var v: Bool?
2333
+ try decoder.decodeSingularBoolField(value: &v)
2334
+ if let v = v {
2335
+ if self.start != nil {try decoder.handleConflictingOneOf()}
2336
+ self.start = .fromHead(v)
2337
+ }
2338
+ }()
2339
+ default: break
2340
+ }
2341
+ }
2342
+ }
2343
+
2344
+ public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
2345
+ // The use of inline closures is to circumvent an issue where the compiler
2346
+ // allocates stack space for every if/case branch local when no optimizations
2347
+ // are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
2348
+ // https://github.com/apple/swift-protobuf/issues/1182
2349
+ try { if let v = self._maxCount {
2350
+ try visitor.visitSingularUInt32Field(value: v, fieldNumber: 1)
2351
+ } }()
2352
+ switch self.start {
2353
+ case .sequenceID?: try {
2354
+ guard case .sequenceID(let v)? = self.start else { preconditionFailure() }
2355
+ try visitor.visitSingularUInt32Field(value: v, fieldNumber: 2)
2356
+ }()
2357
+ case .fromHead?: try {
2358
+ guard case .fromHead(let v)? = self.start else { preconditionFailure() }
2359
+ try visitor.visitSingularBoolField(value: v, fieldNumber: 3)
2360
+ }()
2361
+ case nil: break
2362
+ }
2363
+ try unknownFields.traverse(visitor: &visitor)
2364
+ }
2365
+
2366
+ public static func ==(lhs: BlueEventLogQuery, rhs: BlueEventLogQuery) -> Bool {
2367
+ if lhs._maxCount != rhs._maxCount {return false}
2368
+ if lhs.start != rhs.start {return false}
2369
+ if lhs.unknownFields != rhs.unknownFields {return false}
2370
+ return true
2371
+ }
2372
+ }
2373
+
2374
+ extension BlueEventLogResult: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
2375
+ public static let protoMessageName: String = "BlueEventLogResult"
2376
+ public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
2377
+ 1: .same(proto: "events"),
2378
+ ]
2379
+
2380
+ public var isInitialized: Bool {
2381
+ if !SwiftProtobuf.Internal.areAllInitialized(self.events) {return false}
2382
+ return true
2383
+ }
2384
+
2385
+ public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
2386
+ while let fieldNumber = try decoder.nextFieldNumber() {
2387
+ // The use of inline closures is to circumvent an issue where the compiler
2388
+ // allocates stack space for every case branch when no optimizations are
2389
+ // enabled. https://github.com/apple/swift-protobuf/issues/1034
2390
+ switch fieldNumber {
2391
+ case 1: try { try decoder.decodeRepeatedMessageField(value: &self.events) }()
2392
+ default: break
2393
+ }
2394
+ }
2395
+ }
2396
+
2397
+ public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
2398
+ if !self.events.isEmpty {
2399
+ try visitor.visitRepeatedMessageField(value: self.events, fieldNumber: 1)
2400
+ }
2401
+ try unknownFields.traverse(visitor: &visitor)
2402
+ }
2403
+
2404
+ public static func ==(lhs: BlueEventLogResult, rhs: BlueEventLogResult) -> Bool {
2405
+ if lhs.events != rhs.events {return false}
2406
+ if lhs.unknownFields != rhs.unknownFields {return false}
2407
+ return true
2408
+ }
2409
+ }
2410
+
2411
+ extension BlueBlacklistEntries: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
2412
+ public static let protoMessageName: String = "BlueBlacklistEntries"
2413
+ public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
2414
+ 1: .same(proto: "entries"),
2415
+ ]
2416
+
2417
+ public var isInitialized: Bool {
2418
+ if !SwiftProtobuf.Internal.areAllInitialized(self.entries) {return false}
2419
+ return true
2420
+ }
2421
+
2422
+ public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
2423
+ while let fieldNumber = try decoder.nextFieldNumber() {
2424
+ // The use of inline closures is to circumvent an issue where the compiler
2425
+ // allocates stack space for every case branch when no optimizations are
2426
+ // enabled. https://github.com/apple/swift-protobuf/issues/1034
2427
+ switch fieldNumber {
2428
+ case 1: try { try decoder.decodeRepeatedMessageField(value: &self.entries) }()
2429
+ default: break
2430
+ }
2431
+ }
2432
+ }
2433
+
2434
+ public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
2435
+ if !self.entries.isEmpty {
2436
+ try visitor.visitRepeatedMessageField(value: self.entries, fieldNumber: 1)
2437
+ }
2438
+ try unknownFields.traverse(visitor: &visitor)
2439
+ }
2440
+
2441
+ public static func ==(lhs: BlueBlacklistEntries, rhs: BlueBlacklistEntries) -> Bool {
2442
+ if lhs.entries != rhs.entries {return false}
2443
+ if lhs.unknownFields != rhs.unknownFields {return false}
2444
+ return true
2445
+ }
2446
+ }