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