@blueid/access-proto 12.27.0 → 12.30.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/swift/BlueCore.pb.swift +376 -372
- package/swift/BlueLock.pb.swift +12 -12
- package/swift/BlueSDK.pb.swift +300 -296
- package/swift/BlueSystem.pb.swift +152 -148
package/swift/BlueCore.pb.swift
CHANGED
|
@@ -8,7 +8,11 @@
|
|
|
8
8
|
// For information on using the generated types, please see the documentation:
|
|
9
9
|
// https://github.com/apple/swift-protobuf/
|
|
10
10
|
|
|
11
|
+
#if canImport(FoundationEssentials)
|
|
12
|
+
import FoundationEssentials
|
|
13
|
+
#else
|
|
11
14
|
import Foundation
|
|
15
|
+
#endif
|
|
12
16
|
import SwiftProtobuf
|
|
13
17
|
|
|
14
18
|
// If the compiler emits an error on this type, it is because this file
|
|
@@ -437,48 +441,48 @@ public struct BlueSharedDemoData: Sendable {
|
|
|
437
441
|
// methods supported on all messages.
|
|
438
442
|
|
|
439
443
|
public var deviceID: String {
|
|
440
|
-
get {
|
|
444
|
+
get {_deviceID ?? "wa0y1YwS"}
|
|
441
445
|
set {_deviceID = newValue}
|
|
442
446
|
}
|
|
443
447
|
/// Returns true if `deviceID` has been explicitly set.
|
|
444
|
-
public var hasDeviceID: Bool {
|
|
448
|
+
public var hasDeviceID: Bool {self._deviceID != nil}
|
|
445
449
|
/// Clears the value of `deviceID`. Subsequent reads from it will return its default value.
|
|
446
450
|
public mutating func clearDeviceID() {self._deviceID = nil}
|
|
447
451
|
|
|
448
452
|
public var terminalPrivateKey: Data {
|
|
449
|
-
get {
|
|
453
|
+
get {_terminalPrivateKey ?? Data([48, 129, 135, 2, 1, 0, 48, 19, 6, 7, 42, 134, 72, 206, 61, 2, 1, 6, 8, 42, 134, 72, 206, 61, 3, 1, 7, 4, 109, 48, 107, 2, 1, 1, 4, 32, 165, 171, 109, 20, 17, 48, 71, 167, 173, 108, 16, 228, 77, 230, 60, 5, 185, 107, 132, 181, 31, 227, 20, 214, 135, 92, 70, 158, 185, 205, 105, 43, 161, 68, 3, 66, 0, 4, 58, 102, 134, 117, 201, 41, 41, 7, 195, 99, 24, 151, 77, 217, 68, 28, 113, 249, 228, 69, 232, 116, 26, 63, 175, 107, 197, 140, 156, 105, 19, 190, 68, 20, 11, 96, 69, 79, 118, 47, 194, 241, 152, 65, 152, 236, 110, 57, 27, 83, 54, 139, 144, 115, 234, 29, 231, 32, 207, 161, 190, 45, 212, 241])}
|
|
450
454
|
set {_terminalPrivateKey = newValue}
|
|
451
455
|
}
|
|
452
456
|
/// Returns true if `terminalPrivateKey` has been explicitly set.
|
|
453
|
-
public var hasTerminalPrivateKey: Bool {
|
|
457
|
+
public var hasTerminalPrivateKey: Bool {self._terminalPrivateKey != nil}
|
|
454
458
|
/// Clears the value of `terminalPrivateKey`. Subsequent reads from it will return its default value.
|
|
455
459
|
public mutating func clearTerminalPrivateKey() {self._terminalPrivateKey = nil}
|
|
456
460
|
|
|
457
461
|
public var terminalPublicKey: Data {
|
|
458
|
-
get {
|
|
462
|
+
get {_terminalPublicKey ?? Data([48, 89, 48, 19, 6, 7, 42, 134, 72, 206, 61, 2, 1, 6, 8, 42, 134, 72, 206, 61, 3, 1, 7, 3, 66, 0, 4, 58, 102, 134, 117, 201, 41, 41, 7, 195, 99, 24, 151, 77, 217, 68, 28, 113, 249, 228, 69, 232, 116, 26, 63, 175, 107, 197, 140, 156, 105, 19, 190, 68, 20, 11, 96, 69, 79, 118, 47, 194, 241, 152, 65, 152, 236, 110, 57, 27, 83, 54, 139, 144, 115, 234, 29, 231, 32, 207, 161, 190, 45, 212, 241])}
|
|
459
463
|
set {_terminalPublicKey = newValue}
|
|
460
464
|
}
|
|
461
465
|
/// Returns true if `terminalPublicKey` has been explicitly set.
|
|
462
|
-
public var hasTerminalPublicKey: Bool {
|
|
466
|
+
public var hasTerminalPublicKey: Bool {self._terminalPublicKey != nil}
|
|
463
467
|
/// Clears the value of `terminalPublicKey`. Subsequent reads from it will return its default value.
|
|
464
468
|
public mutating func clearTerminalPublicKey() {self._terminalPublicKey = nil}
|
|
465
469
|
|
|
466
470
|
/// --
|
|
467
471
|
public var signaturePrivateKey: Data {
|
|
468
|
-
get {
|
|
472
|
+
get {_signaturePrivateKey ?? Data([48, 129, 135, 2, 1, 0, 48, 19, 6, 7, 42, 134, 72, 206, 61, 2, 1, 6, 8, 42, 134, 72, 206, 61, 3, 1, 7, 4, 109, 48, 107, 2, 1, 1, 4, 32, 239, 54, 85, 201, 77, 128, 30, 244, 146, 86, 117, 14, 112, 225, 81, 14, 204, 232, 180, 108, 84, 94, 85, 29, 222, 187, 252, 111, 34, 168, 73, 80, 161, 68, 3, 66, 0, 4, 90, 13, 110, 103, 69, 204, 213, 193, 140, 235, 216, 175, 246, 234, 134, 216, 195, 175, 67, 63, 183, 162, 210, 95, 33, 52, 66, 212, 205, 150, 131, 180, 230, 125, 45, 220, 37, 235, 83, 249, 18, 118, 30, 64, 230, 201, 153, 131, 221, 144, 144, 254, 240, 180, 37, 153, 205, 22, 174, 57, 47, 207, 150, 67])}
|
|
469
473
|
set {_signaturePrivateKey = newValue}
|
|
470
474
|
}
|
|
471
475
|
/// Returns true if `signaturePrivateKey` has been explicitly set.
|
|
472
|
-
public var hasSignaturePrivateKey: Bool {
|
|
476
|
+
public var hasSignaturePrivateKey: Bool {self._signaturePrivateKey != nil}
|
|
473
477
|
/// Clears the value of `signaturePrivateKey`. Subsequent reads from it will return its default value.
|
|
474
478
|
public mutating func clearSignaturePrivateKey() {self._signaturePrivateKey = nil}
|
|
475
479
|
|
|
476
480
|
public var signaturePublicKey: Data {
|
|
477
|
-
get {
|
|
481
|
+
get {_signaturePublicKey ?? Data([48, 89, 48, 19, 6, 7, 42, 134, 72, 206, 61, 2, 1, 6, 8, 42, 134, 72, 206, 61, 3, 1, 7, 3, 66, 0, 4, 90, 13, 110, 103, 69, 204, 213, 193, 140, 235, 216, 175, 246, 234, 134, 216, 195, 175, 67, 63, 183, 162, 210, 95, 33, 52, 66, 212, 205, 150, 131, 180, 230, 125, 45, 220, 37, 235, 83, 249, 18, 118, 30, 64, 230, 201, 153, 131, 221, 144, 144, 254, 240, 180, 37, 153, 205, 22, 174, 57, 47, 207, 150, 67])}
|
|
478
482
|
set {_signaturePublicKey = newValue}
|
|
479
483
|
}
|
|
480
484
|
/// Returns true if `signaturePublicKey` has been explicitly set.
|
|
481
|
-
public var hasSignaturePublicKey: Bool {
|
|
485
|
+
public var hasSignaturePublicKey: Bool {self._signaturePublicKey != nil}
|
|
482
486
|
/// Clears the value of `signaturePublicKey`. Subsequent reads from it will return its default value.
|
|
483
487
|
public mutating func clearSignaturePublicKey() {self._signaturePublicKey = nil}
|
|
484
488
|
|
|
@@ -499,29 +503,29 @@ public struct BlueVersionInfo: Sendable {
|
|
|
499
503
|
// methods supported on all messages.
|
|
500
504
|
|
|
501
505
|
public var buildTime: UInt32 {
|
|
502
|
-
get {
|
|
506
|
+
get {_buildTime ?? 0}
|
|
503
507
|
set {_buildTime = newValue}
|
|
504
508
|
}
|
|
505
509
|
/// Returns true if `buildTime` has been explicitly set.
|
|
506
|
-
public var hasBuildTime: Bool {
|
|
510
|
+
public var hasBuildTime: Bool {self._buildTime != nil}
|
|
507
511
|
/// Clears the value of `buildTime`. Subsequent reads from it will return its default value.
|
|
508
512
|
public mutating func clearBuildTime() {self._buildTime = nil}
|
|
509
513
|
|
|
510
514
|
public var version: UInt32 {
|
|
511
|
-
get {
|
|
515
|
+
get {_version ?? 0}
|
|
512
516
|
set {_version = newValue}
|
|
513
517
|
}
|
|
514
518
|
/// Returns true if `version` has been explicitly set.
|
|
515
|
-
public var hasVersion: Bool {
|
|
519
|
+
public var hasVersion: Bool {self._version != nil}
|
|
516
520
|
/// Clears the value of `version`. Subsequent reads from it will return its default value.
|
|
517
521
|
public mutating func clearVersion() {self._version = nil}
|
|
518
522
|
|
|
519
523
|
public var testVersion: UInt32 {
|
|
520
|
-
get {
|
|
524
|
+
get {_testVersion ?? 0}
|
|
521
525
|
set {_testVersion = newValue}
|
|
522
526
|
}
|
|
523
527
|
/// Returns true if `testVersion` has been explicitly set.
|
|
524
|
-
public var hasTestVersion: Bool {
|
|
528
|
+
public var hasTestVersion: Bool {self._testVersion != nil}
|
|
525
529
|
/// Clears the value of `testVersion`. Subsequent reads from it will return its default value.
|
|
526
530
|
public mutating func clearTestVersion() {self._testVersion = nil}
|
|
527
531
|
|
|
@@ -540,56 +544,56 @@ public struct BlueLocalTimestamp: Sendable {
|
|
|
540
544
|
// methods supported on all messages.
|
|
541
545
|
|
|
542
546
|
public var year: UInt32 {
|
|
543
|
-
get {
|
|
547
|
+
get {_year ?? 0}
|
|
544
548
|
set {_year = newValue}
|
|
545
549
|
}
|
|
546
550
|
/// Returns true if `year` has been explicitly set.
|
|
547
|
-
public var hasYear: Bool {
|
|
551
|
+
public var hasYear: Bool {self._year != nil}
|
|
548
552
|
/// Clears the value of `year`. Subsequent reads from it will return its default value.
|
|
549
553
|
public mutating func clearYear() {self._year = nil}
|
|
550
554
|
|
|
551
555
|
public var month: UInt32 {
|
|
552
|
-
get {
|
|
556
|
+
get {_month ?? 0}
|
|
553
557
|
set {_month = newValue}
|
|
554
558
|
}
|
|
555
559
|
/// Returns true if `month` has been explicitly set.
|
|
556
|
-
public var hasMonth: Bool {
|
|
560
|
+
public var hasMonth: Bool {self._month != nil}
|
|
557
561
|
/// Clears the value of `month`. Subsequent reads from it will return its default value.
|
|
558
562
|
public mutating func clearMonth() {self._month = nil}
|
|
559
563
|
|
|
560
564
|
public var date: UInt32 {
|
|
561
|
-
get {
|
|
565
|
+
get {_date ?? 0}
|
|
562
566
|
set {_date = newValue}
|
|
563
567
|
}
|
|
564
568
|
/// Returns true if `date` has been explicitly set.
|
|
565
|
-
public var hasDate: Bool {
|
|
569
|
+
public var hasDate: Bool {self._date != nil}
|
|
566
570
|
/// Clears the value of `date`. Subsequent reads from it will return its default value.
|
|
567
571
|
public mutating func clearDate() {self._date = nil}
|
|
568
572
|
|
|
569
573
|
public var hours: UInt32 {
|
|
570
|
-
get {
|
|
574
|
+
get {_hours ?? 0}
|
|
571
575
|
set {_hours = newValue}
|
|
572
576
|
}
|
|
573
577
|
/// Returns true if `hours` has been explicitly set.
|
|
574
|
-
public var hasHours: Bool {
|
|
578
|
+
public var hasHours: Bool {self._hours != nil}
|
|
575
579
|
/// Clears the value of `hours`. Subsequent reads from it will return its default value.
|
|
576
580
|
public mutating func clearHours() {self._hours = nil}
|
|
577
581
|
|
|
578
582
|
public var minutes: UInt32 {
|
|
579
|
-
get {
|
|
583
|
+
get {_minutes ?? 0}
|
|
580
584
|
set {_minutes = newValue}
|
|
581
585
|
}
|
|
582
586
|
/// Returns true if `minutes` has been explicitly set.
|
|
583
|
-
public var hasMinutes: Bool {
|
|
587
|
+
public var hasMinutes: Bool {self._minutes != nil}
|
|
584
588
|
/// Clears the value of `minutes`. Subsequent reads from it will return its default value.
|
|
585
589
|
public mutating func clearMinutes() {self._minutes = nil}
|
|
586
590
|
|
|
587
591
|
public var seconds: UInt32 {
|
|
588
|
-
get {
|
|
592
|
+
get {_seconds ?? 0}
|
|
589
593
|
set {_seconds = newValue}
|
|
590
594
|
}
|
|
591
595
|
/// Returns true if `seconds` has been explicitly set.
|
|
592
|
-
public var hasSeconds: Bool {
|
|
596
|
+
public var hasSeconds: Bool {self._seconds != nil}
|
|
593
597
|
/// Clears the value of `seconds`. Subsequent reads from it will return its default value.
|
|
594
598
|
public mutating func clearSeconds() {self._seconds = nil}
|
|
595
599
|
|
|
@@ -611,38 +615,38 @@ public struct BlueLocalTimeperiod: Sendable {
|
|
|
611
615
|
// methods supported on all messages.
|
|
612
616
|
|
|
613
617
|
public var hoursFrom: UInt32 {
|
|
614
|
-
get {
|
|
618
|
+
get {_hoursFrom ?? 0}
|
|
615
619
|
set {_hoursFrom = newValue}
|
|
616
620
|
}
|
|
617
621
|
/// Returns true if `hoursFrom` has been explicitly set.
|
|
618
|
-
public var hasHoursFrom: Bool {
|
|
622
|
+
public var hasHoursFrom: Bool {self._hoursFrom != nil}
|
|
619
623
|
/// Clears the value of `hoursFrom`. Subsequent reads from it will return its default value.
|
|
620
624
|
public mutating func clearHoursFrom() {self._hoursFrom = nil}
|
|
621
625
|
|
|
622
626
|
public var minutesFrom: UInt32 {
|
|
623
|
-
get {
|
|
627
|
+
get {_minutesFrom ?? 0}
|
|
624
628
|
set {_minutesFrom = newValue}
|
|
625
629
|
}
|
|
626
630
|
/// Returns true if `minutesFrom` has been explicitly set.
|
|
627
|
-
public var hasMinutesFrom: Bool {
|
|
631
|
+
public var hasMinutesFrom: Bool {self._minutesFrom != nil}
|
|
628
632
|
/// Clears the value of `minutesFrom`. Subsequent reads from it will return its default value.
|
|
629
633
|
public mutating func clearMinutesFrom() {self._minutesFrom = nil}
|
|
630
634
|
|
|
631
635
|
public var hoursTo: UInt32 {
|
|
632
|
-
get {
|
|
636
|
+
get {_hoursTo ?? 0}
|
|
633
637
|
set {_hoursTo = newValue}
|
|
634
638
|
}
|
|
635
639
|
/// Returns true if `hoursTo` has been explicitly set.
|
|
636
|
-
public var hasHoursTo: Bool {
|
|
640
|
+
public var hasHoursTo: Bool {self._hoursTo != nil}
|
|
637
641
|
/// Clears the value of `hoursTo`. Subsequent reads from it will return its default value.
|
|
638
642
|
public mutating func clearHoursTo() {self._hoursTo = nil}
|
|
639
643
|
|
|
640
644
|
public var minutesTo: UInt32 {
|
|
641
|
-
get {
|
|
645
|
+
get {_minutesTo ?? 0}
|
|
642
646
|
set {_minutesTo = newValue}
|
|
643
647
|
}
|
|
644
648
|
/// Returns true if `minutesTo` has been explicitly set.
|
|
645
|
-
public var hasMinutesTo: Bool {
|
|
649
|
+
public var hasMinutesTo: Bool {self._minutesTo != nil}
|
|
646
650
|
/// Clears the value of `minutesTo`. Subsequent reads from it will return its default value.
|
|
647
651
|
public mutating func clearMinutesTo() {self._minutesTo = nil}
|
|
648
652
|
|
|
@@ -663,20 +667,20 @@ public struct BlueLocalTimeSchedule: Sendable {
|
|
|
663
667
|
|
|
664
668
|
/// Day of year is always 1-366, to spawn whole year make 1->366
|
|
665
669
|
public var dayOfYearStart: UInt32 {
|
|
666
|
-
get {
|
|
670
|
+
get {_dayOfYearStart ?? 0}
|
|
667
671
|
set {_dayOfYearStart = newValue}
|
|
668
672
|
}
|
|
669
673
|
/// Returns true if `dayOfYearStart` has been explicitly set.
|
|
670
|
-
public var hasDayOfYearStart: Bool {
|
|
674
|
+
public var hasDayOfYearStart: Bool {self._dayOfYearStart != nil}
|
|
671
675
|
/// Clears the value of `dayOfYearStart`. Subsequent reads from it will return its default value.
|
|
672
676
|
public mutating func clearDayOfYearStart() {self._dayOfYearStart = nil}
|
|
673
677
|
|
|
674
678
|
public var dayOfYearEnd: UInt32 {
|
|
675
|
-
get {
|
|
679
|
+
get {_dayOfYearEnd ?? 0}
|
|
676
680
|
set {_dayOfYearEnd = newValue}
|
|
677
681
|
}
|
|
678
682
|
/// Returns true if `dayOfYearEnd` has been explicitly set.
|
|
679
|
-
public var hasDayOfYearEnd: Bool {
|
|
683
|
+
public var hasDayOfYearEnd: Bool {self._dayOfYearEnd != nil}
|
|
680
684
|
/// Clears the value of `dayOfYearEnd`. Subsequent reads from it will return its default value.
|
|
681
685
|
public mutating func clearDayOfYearEnd() {self._dayOfYearEnd = nil}
|
|
682
686
|
|
|
@@ -684,11 +688,11 @@ public struct BlueLocalTimeSchedule: Sendable {
|
|
|
684
688
|
public var weekdays: [Bool] = []
|
|
685
689
|
|
|
686
690
|
public var timePeriod: BlueLocalTimeperiod {
|
|
687
|
-
get {
|
|
691
|
+
get {_timePeriod ?? BlueLocalTimeperiod()}
|
|
688
692
|
set {_timePeriod = newValue}
|
|
689
693
|
}
|
|
690
694
|
/// Returns true if `timePeriod` has been explicitly set.
|
|
691
|
-
public var hasTimePeriod: Bool {
|
|
695
|
+
public var hasTimePeriod: Bool {self._timePeriod != nil}
|
|
692
696
|
/// Clears the value of `timePeriod`. Subsequent reads from it will return its default value.
|
|
693
697
|
public mutating func clearTimePeriod() {self._timePeriod = nil}
|
|
694
698
|
|
|
@@ -707,11 +711,11 @@ public struct BlueCredentialId: Sendable {
|
|
|
707
711
|
// methods supported on all messages.
|
|
708
712
|
|
|
709
713
|
public var id: String {
|
|
710
|
-
get {
|
|
714
|
+
get {_id ?? String()}
|
|
711
715
|
set {_id = newValue}
|
|
712
716
|
}
|
|
713
717
|
/// Returns true if `id` has been explicitly set.
|
|
714
|
-
public var hasID: Bool {
|
|
718
|
+
public var hasID: Bool {self._id != nil}
|
|
715
719
|
/// Clears the value of `id`. Subsequent reads from it will return its default value.
|
|
716
720
|
public mutating func clearID() {self._id = nil}
|
|
717
721
|
|
|
@@ -728,20 +732,20 @@ public struct BlueBlacklistEntry: Sendable {
|
|
|
728
732
|
// methods supported on all messages.
|
|
729
733
|
|
|
730
734
|
public var credentialID: BlueCredentialId {
|
|
731
|
-
get {
|
|
735
|
+
get {_credentialID ?? BlueCredentialId()}
|
|
732
736
|
set {_credentialID = newValue}
|
|
733
737
|
}
|
|
734
738
|
/// Returns true if `credentialID` has been explicitly set.
|
|
735
|
-
public var hasCredentialID: Bool {
|
|
739
|
+
public var hasCredentialID: Bool {self._credentialID != nil}
|
|
736
740
|
/// Clears the value of `credentialID`. Subsequent reads from it will return its default value.
|
|
737
741
|
public mutating func clearCredentialID() {self._credentialID = nil}
|
|
738
742
|
|
|
739
743
|
public var expiresAt: BlueLocalTimestamp {
|
|
740
|
-
get {
|
|
744
|
+
get {_expiresAt ?? BlueLocalTimestamp()}
|
|
741
745
|
set {_expiresAt = newValue}
|
|
742
746
|
}
|
|
743
747
|
/// Returns true if `expiresAt` has been explicitly set.
|
|
744
|
-
public var hasExpiresAt: Bool {
|
|
748
|
+
public var hasExpiresAt: Bool {self._expiresAt != nil}
|
|
745
749
|
/// Clears the value of `expiresAt`. Subsequent reads from it will return its default value.
|
|
746
750
|
public mutating func clearExpiresAt() {self._expiresAt = nil}
|
|
747
751
|
|
|
@@ -759,58 +763,58 @@ public struct BlueBleManufacturerInfo: Sendable {
|
|
|
759
763
|
// methods supported on all messages.
|
|
760
764
|
|
|
761
765
|
public var hardwareType: BlueHardwareType {
|
|
762
|
-
get {
|
|
766
|
+
get {_hardwareType ?? .unknownHardware}
|
|
763
767
|
set {_hardwareType = newValue}
|
|
764
768
|
}
|
|
765
769
|
/// Returns true if `hardwareType` has been explicitly set.
|
|
766
|
-
public var hasHardwareType: Bool {
|
|
770
|
+
public var hasHardwareType: Bool {self._hardwareType != nil}
|
|
767
771
|
/// Clears the value of `hardwareType`. Subsequent reads from it will return its default value.
|
|
768
772
|
public mutating func clearHardwareType() {self._hardwareType = nil}
|
|
769
773
|
|
|
770
774
|
public var batteryLevel: BlueBatteryLevel {
|
|
771
|
-
get {
|
|
775
|
+
get {_batteryLevel ?? .unknownBattery}
|
|
772
776
|
set {_batteryLevel = newValue}
|
|
773
777
|
}
|
|
774
778
|
/// Returns true if `batteryLevel` has been explicitly set.
|
|
775
|
-
public var hasBatteryLevel: Bool {
|
|
779
|
+
public var hasBatteryLevel: Bool {self._batteryLevel != nil}
|
|
776
780
|
/// Clears the value of `batteryLevel`. Subsequent reads from it will return its default value.
|
|
777
781
|
public mutating func clearBatteryLevel() {self._batteryLevel = nil}
|
|
778
782
|
|
|
779
783
|
public var applicationVersion: UInt32 {
|
|
780
|
-
get {
|
|
784
|
+
get {_applicationVersion ?? 0}
|
|
781
785
|
set {_applicationVersion = newValue}
|
|
782
786
|
}
|
|
783
787
|
/// Returns true if `applicationVersion` has been explicitly set.
|
|
784
|
-
public var hasApplicationVersion: Bool {
|
|
788
|
+
public var hasApplicationVersion: Bool {self._applicationVersion != nil}
|
|
785
789
|
/// Clears the value of `applicationVersion`. Subsequent reads from it will return its default value.
|
|
786
790
|
public mutating func clearApplicationVersion() {self._applicationVersion = nil}
|
|
787
791
|
|
|
788
792
|
public var localMidnightTimeEpoch: UInt32 {
|
|
789
|
-
get {
|
|
793
|
+
get {_localMidnightTimeEpoch ?? 0}
|
|
790
794
|
set {_localMidnightTimeEpoch = newValue}
|
|
791
795
|
}
|
|
792
796
|
/// Returns true if `localMidnightTimeEpoch` has been explicitly set.
|
|
793
|
-
public var hasLocalMidnightTimeEpoch: Bool {
|
|
797
|
+
public var hasLocalMidnightTimeEpoch: Bool {self._localMidnightTimeEpoch != nil}
|
|
794
798
|
/// Clears the value of `localMidnightTimeEpoch`. Subsequent reads from it will return its default value.
|
|
795
799
|
public mutating func clearLocalMidnightTimeEpoch() {self._localMidnightTimeEpoch = nil}
|
|
796
800
|
|
|
797
801
|
public var isFactory: Bool {
|
|
798
|
-
get {
|
|
802
|
+
get {_isFactory ?? false}
|
|
799
803
|
set {_isFactory = newValue}
|
|
800
804
|
}
|
|
801
805
|
/// Returns true if `isFactory` has been explicitly set.
|
|
802
|
-
public var hasIsFactory: Bool {
|
|
806
|
+
public var hasIsFactory: Bool {self._isFactory != nil}
|
|
803
807
|
/// Clears the value of `isFactory`. Subsequent reads from it will return its default value.
|
|
804
808
|
public mutating func clearIsFactory() {self._isFactory = nil}
|
|
805
809
|
|
|
806
810
|
/// Additional hardware state depends on device.
|
|
807
811
|
/// For locks for example this would contain the BlueLockState.
|
|
808
812
|
public var hardwareState: UInt32 {
|
|
809
|
-
get {
|
|
813
|
+
get {_hardwareState ?? 0}
|
|
810
814
|
set {_hardwareState = newValue}
|
|
811
815
|
}
|
|
812
816
|
/// Returns true if `hardwareState` has been explicitly set.
|
|
813
|
-
public var hasHardwareState: Bool {
|
|
817
|
+
public var hasHardwareState: Bool {self._hardwareState != nil}
|
|
814
818
|
/// Clears the value of `hardwareState`. Subsequent reads from it will return its default value.
|
|
815
819
|
public mutating func clearHardwareState() {self._hardwareState = nil}
|
|
816
820
|
|
|
@@ -833,41 +837,41 @@ public struct BlueBleAdvertisementInfo: Sendable {
|
|
|
833
837
|
|
|
834
838
|
/// Unique device id becomes the local name
|
|
835
839
|
public var deviceID: String {
|
|
836
|
-
get {
|
|
840
|
+
get {_deviceID ?? String()}
|
|
837
841
|
set {_deviceID = newValue}
|
|
838
842
|
}
|
|
839
843
|
/// Returns true if `deviceID` has been explicitly set.
|
|
840
|
-
public var hasDeviceID: Bool {
|
|
844
|
+
public var hasDeviceID: Bool {self._deviceID != nil}
|
|
841
845
|
/// Clears the value of `deviceID`. Subsequent reads from it will return its default value.
|
|
842
846
|
public mutating func clearDeviceID() {self._deviceID = nil}
|
|
843
847
|
|
|
844
848
|
/// The advertised tx power level at 1 meter in decibel (-XX - +XX)
|
|
845
849
|
public var txPower1Meter: Int32 {
|
|
846
|
-
get {
|
|
850
|
+
get {_txPower1Meter ?? 0}
|
|
847
851
|
set {_txPower1Meter = newValue}
|
|
848
852
|
}
|
|
849
853
|
/// Returns true if `txPower1Meter` has been explicitly set.
|
|
850
|
-
public var hasTxPower1Meter: Bool {
|
|
854
|
+
public var hasTxPower1Meter: Bool {self._txPower1Meter != nil}
|
|
851
855
|
/// Clears the value of `txPower1Meter`. Subsequent reads from it will return its default value.
|
|
852
856
|
public mutating func clearTxPower1Meter() {self._txPower1Meter = nil}
|
|
853
857
|
|
|
854
858
|
/// If set generates iBeacon format otherwise generates regular ble adv data
|
|
855
859
|
public var isIbeacon: Bool {
|
|
856
|
-
get {
|
|
860
|
+
get {_isIbeacon ?? false}
|
|
857
861
|
set {_isIbeacon = newValue}
|
|
858
862
|
}
|
|
859
863
|
/// Returns true if `isIbeacon` has been explicitly set.
|
|
860
|
-
public var hasIsIbeacon: Bool {
|
|
864
|
+
public var hasIsIbeacon: Bool {self._isIbeacon != nil}
|
|
861
865
|
/// Clears the value of `isIbeacon`. Subsequent reads from it will return its default value.
|
|
862
866
|
public mutating func clearIsIbeacon() {self._isIbeacon = nil}
|
|
863
867
|
|
|
864
868
|
/// The manufacturer information
|
|
865
869
|
public var mfInfo: BlueBleManufacturerInfo {
|
|
866
|
-
get {
|
|
870
|
+
get {_mfInfo ?? BlueBleManufacturerInfo()}
|
|
867
871
|
set {_mfInfo = newValue}
|
|
868
872
|
}
|
|
869
873
|
/// Returns true if `mfInfo` has been explicitly set.
|
|
870
|
-
public var hasMfInfo: Bool {
|
|
874
|
+
public var hasMfInfo: Bool {self._mfInfo != nil}
|
|
871
875
|
/// Clears the value of `mfInfo`. Subsequent reads from it will return its default value.
|
|
872
876
|
public mutating func clearMfInfo() {self._mfInfo = nil}
|
|
873
877
|
|
|
@@ -887,58 +891,58 @@ public struct BlueEvent: Sendable {
|
|
|
887
891
|
// methods supported on all messages.
|
|
888
892
|
|
|
889
893
|
public var sequenceID: UInt32 {
|
|
890
|
-
get {
|
|
894
|
+
get {_sequenceID ?? 0}
|
|
891
895
|
set {_sequenceID = newValue}
|
|
892
896
|
}
|
|
893
897
|
/// Returns true if `sequenceID` has been explicitly set.
|
|
894
|
-
public var hasSequenceID: Bool {
|
|
898
|
+
public var hasSequenceID: Bool {self._sequenceID != nil}
|
|
895
899
|
/// Clears the value of `sequenceID`. Subsequent reads from it will return its default value.
|
|
896
900
|
public mutating func clearSequenceID() {self._sequenceID = nil}
|
|
897
901
|
|
|
898
902
|
public var eventTime: BlueLocalTimestamp {
|
|
899
|
-
get {
|
|
903
|
+
get {_eventTime ?? BlueLocalTimestamp()}
|
|
900
904
|
set {_eventTime = newValue}
|
|
901
905
|
}
|
|
902
906
|
/// Returns true if `eventTime` has been explicitly set.
|
|
903
|
-
public var hasEventTime: Bool {
|
|
907
|
+
public var hasEventTime: Bool {self._eventTime != nil}
|
|
904
908
|
/// Clears the value of `eventTime`. Subsequent reads from it will return its default value.
|
|
905
909
|
public mutating func clearEventTime() {self._eventTime = nil}
|
|
906
910
|
|
|
907
911
|
public var eventID: BlueEventId {
|
|
908
|
-
get {
|
|
912
|
+
get {_eventID ?? .batteryLow}
|
|
909
913
|
set {_eventID = newValue}
|
|
910
914
|
}
|
|
911
915
|
/// Returns true if `eventID` has been explicitly set.
|
|
912
|
-
public var hasEventID: Bool {
|
|
916
|
+
public var hasEventID: Bool {self._eventID != nil}
|
|
913
917
|
/// Clears the value of `eventID`. Subsequent reads from it will return its default value.
|
|
914
918
|
public mutating func clearEventID() {self._eventID = nil}
|
|
915
919
|
|
|
916
920
|
public var eventInfo: Int32 {
|
|
917
|
-
get {
|
|
921
|
+
get {_eventInfo ?? 0}
|
|
918
922
|
set {_eventInfo = newValue}
|
|
919
923
|
}
|
|
920
924
|
/// Returns true if `eventInfo` has been explicitly set.
|
|
921
|
-
public var hasEventInfo: Bool {
|
|
925
|
+
public var hasEventInfo: Bool {self._eventInfo != nil}
|
|
922
926
|
/// Clears the value of `eventInfo`. Subsequent reads from it will return its default value.
|
|
923
927
|
public mutating func clearEventInfo() {self._eventInfo = nil}
|
|
924
928
|
|
|
925
929
|
/// Set if credential related
|
|
926
930
|
public var credentialID: BlueCredentialId {
|
|
927
|
-
get {
|
|
931
|
+
get {_credentialID ?? BlueCredentialId()}
|
|
928
932
|
set {_credentialID = newValue}
|
|
929
933
|
}
|
|
930
934
|
/// Returns true if `credentialID` has been explicitly set.
|
|
931
|
-
public var hasCredentialID: Bool {
|
|
935
|
+
public var hasCredentialID: Bool {self._credentialID != nil}
|
|
932
936
|
/// Clears the value of `credentialID`. Subsequent reads from it will return its default value.
|
|
933
937
|
public mutating func clearCredentialID() {self._credentialID = nil}
|
|
934
938
|
|
|
935
939
|
/// Set if eventId =
|
|
936
940
|
public var command: String {
|
|
937
|
-
get {
|
|
941
|
+
get {_command ?? String()}
|
|
938
942
|
set {_command = newValue}
|
|
939
943
|
}
|
|
940
944
|
/// Returns true if `command` has been explicitly set.
|
|
941
|
-
public var hasCommand: Bool {
|
|
945
|
+
public var hasCommand: Bool {self._command != nil}
|
|
942
946
|
/// Clears the value of `command`. Subsequent reads from it will return its default value.
|
|
943
947
|
public mutating func clearCommand() {self._command = nil}
|
|
944
948
|
|
|
@@ -960,11 +964,11 @@ public struct BlueSPHandshake: Sendable {
|
|
|
960
964
|
// methods supported on all messages.
|
|
961
965
|
|
|
962
966
|
public var transponderSalt: Data {
|
|
963
|
-
get {
|
|
967
|
+
get {_transponderSalt ?? Data()}
|
|
964
968
|
set {_transponderSalt = newValue}
|
|
965
969
|
}
|
|
966
970
|
/// Returns true if `transponderSalt` has been explicitly set.
|
|
967
|
-
public var hasTransponderSalt: Bool {
|
|
971
|
+
public var hasTransponderSalt: Bool {self._transponderSalt != nil}
|
|
968
972
|
/// Clears the value of `transponderSalt`. Subsequent reads from it will return its default value.
|
|
969
973
|
public mutating func clearTransponderSalt() {self._transponderSalt = nil}
|
|
970
974
|
|
|
@@ -981,20 +985,20 @@ public struct BlueSPHandshakeReply: Sendable {
|
|
|
981
985
|
// methods supported on all messages.
|
|
982
986
|
|
|
983
987
|
public var terminalSalt: Data {
|
|
984
|
-
get {
|
|
988
|
+
get {_terminalSalt ?? Data()}
|
|
985
989
|
set {_terminalSalt = newValue}
|
|
986
990
|
}
|
|
987
991
|
/// Returns true if `terminalSalt` has been explicitly set.
|
|
988
|
-
public var hasTerminalSalt: Bool {
|
|
992
|
+
public var hasTerminalSalt: Bool {self._terminalSalt != nil}
|
|
989
993
|
/// Clears the value of `terminalSalt`. Subsequent reads from it will return its default value.
|
|
990
994
|
public mutating func clearTerminalSalt() {self._terminalSalt = nil}
|
|
991
995
|
|
|
992
996
|
public var terminalSignature: Data {
|
|
993
|
-
get {
|
|
997
|
+
get {_terminalSignature ?? Data()}
|
|
994
998
|
set {_terminalSignature = newValue}
|
|
995
999
|
}
|
|
996
1000
|
/// Returns true if `terminalSignature` has been explicitly set.
|
|
997
|
-
public var hasTerminalSignature: Bool {
|
|
1001
|
+
public var hasTerminalSignature: Bool {self._terminalSignature != nil}
|
|
998
1002
|
/// Clears the value of `terminalSignature`. Subsequent reads from it will return its default value.
|
|
999
1003
|
public mutating func clearTerminalSignature() {self._terminalSignature = nil}
|
|
1000
1004
|
|
|
@@ -1012,48 +1016,48 @@ public struct BlueSPTokenCommand: Sendable {
|
|
|
1012
1016
|
// methods supported on all messages.
|
|
1013
1017
|
|
|
1014
1018
|
public var credentialID: BlueCredentialId {
|
|
1015
|
-
get {
|
|
1019
|
+
get {_credentialID ?? BlueCredentialId()}
|
|
1016
1020
|
set {_credentialID = newValue}
|
|
1017
1021
|
}
|
|
1018
1022
|
/// Returns true if `credentialID` has been explicitly set.
|
|
1019
|
-
public var hasCredentialID: Bool {
|
|
1023
|
+
public var hasCredentialID: Bool {self._credentialID != nil}
|
|
1020
1024
|
/// Clears the value of `credentialID`. Subsequent reads from it will return its default value.
|
|
1021
1025
|
public mutating func clearCredentialID() {self._credentialID = nil}
|
|
1022
1026
|
|
|
1023
1027
|
public var validityStart: BlueLocalTimestamp {
|
|
1024
|
-
get {
|
|
1028
|
+
get {_validityStart ?? BlueLocalTimestamp()}
|
|
1025
1029
|
set {_validityStart = newValue}
|
|
1026
1030
|
}
|
|
1027
1031
|
/// Returns true if `validityStart` has been explicitly set.
|
|
1028
|
-
public var hasValidityStart: Bool {
|
|
1032
|
+
public var hasValidityStart: Bool {self._validityStart != nil}
|
|
1029
1033
|
/// Clears the value of `validityStart`. Subsequent reads from it will return its default value.
|
|
1030
1034
|
public mutating func clearValidityStart() {self._validityStart = nil}
|
|
1031
1035
|
|
|
1032
1036
|
public var validityEnd: BlueLocalTimestamp {
|
|
1033
|
-
get {
|
|
1037
|
+
get {_validityEnd ?? BlueLocalTimestamp()}
|
|
1034
1038
|
set {_validityEnd = newValue}
|
|
1035
1039
|
}
|
|
1036
1040
|
/// Returns true if `validityEnd` has been explicitly set.
|
|
1037
|
-
public var hasValidityEnd: Bool {
|
|
1041
|
+
public var hasValidityEnd: Bool {self._validityEnd != nil}
|
|
1038
1042
|
/// Clears the value of `validityEnd`. Subsequent reads from it will return its default value.
|
|
1039
1043
|
public mutating func clearValidityEnd() {self._validityEnd = nil}
|
|
1040
1044
|
|
|
1041
1045
|
public var command: String {
|
|
1042
|
-
get {
|
|
1046
|
+
get {_command ?? String()}
|
|
1043
1047
|
set {_command = newValue}
|
|
1044
1048
|
}
|
|
1045
1049
|
/// Returns true if `command` has been explicitly set.
|
|
1046
|
-
public var hasCommand: Bool {
|
|
1050
|
+
public var hasCommand: Bool {self._command != nil}
|
|
1047
1051
|
/// Clears the value of `command`. Subsequent reads from it will return its default value.
|
|
1048
1052
|
public mutating func clearCommand() {self._command = nil}
|
|
1049
1053
|
|
|
1050
1054
|
/// we'll add 256b for add. data
|
|
1051
1055
|
public var data: Data {
|
|
1052
|
-
get {
|
|
1056
|
+
get {_data ?? Data()}
|
|
1053
1057
|
set {_data = newValue}
|
|
1054
1058
|
}
|
|
1055
1059
|
/// Returns true if `data` has been explicitly set.
|
|
1056
|
-
public var hasData: Bool {
|
|
1060
|
+
public var hasData: Bool {self._data != nil}
|
|
1057
1061
|
/// Clears the value of `data`. Subsequent reads from it will return its default value.
|
|
1058
1062
|
public mutating func clearData() {self._data = nil}
|
|
1059
1063
|
|
|
@@ -1074,11 +1078,11 @@ public struct BlueSPToken: Sendable {
|
|
|
1074
1078
|
// methods supported on all messages.
|
|
1075
1079
|
|
|
1076
1080
|
public var signature: Data {
|
|
1077
|
-
get {
|
|
1081
|
+
get {_signature ?? Data()}
|
|
1078
1082
|
set {_signature = newValue}
|
|
1079
1083
|
}
|
|
1080
1084
|
/// Returns true if `signature` has been explicitly set.
|
|
1081
|
-
public var hasSignature: Bool {
|
|
1085
|
+
public var hasSignature: Bool {self._signature != nil}
|
|
1082
1086
|
/// Clears the value of `signature`. Subsequent reads from it will return its default value.
|
|
1083
1087
|
public mutating func clearSignature() {self._signature = nil}
|
|
1084
1088
|
|
|
@@ -1149,11 +1153,11 @@ public struct BlueSPResult: Sendable {
|
|
|
1149
1153
|
|
|
1150
1154
|
/// we'll add 256b for add. data
|
|
1151
1155
|
public var data: Data {
|
|
1152
|
-
get {
|
|
1156
|
+
get {_data ?? Data()}
|
|
1153
1157
|
set {_data = newValue}
|
|
1154
1158
|
}
|
|
1155
1159
|
/// Returns true if `data` has been explicitly set.
|
|
1156
|
-
public var hasData: Bool {
|
|
1160
|
+
public var hasData: Bool {self._data != nil}
|
|
1157
1161
|
/// Clears the value of `data`. Subsequent reads from it will return its default value.
|
|
1158
1162
|
public mutating func clearData() {self._data = nil}
|
|
1159
1163
|
|
|
@@ -1170,11 +1174,11 @@ public struct BlueWebSPHandshake: Sendable {
|
|
|
1170
1174
|
// methods supported on all messages.
|
|
1171
1175
|
|
|
1172
1176
|
public var salt: Data {
|
|
1173
|
-
get {
|
|
1177
|
+
get {_salt ?? Data()}
|
|
1174
1178
|
set {_salt = newValue}
|
|
1175
1179
|
}
|
|
1176
1180
|
/// Returns true if `salt` has been explicitly set.
|
|
1177
|
-
public var hasSalt: Bool {
|
|
1181
|
+
public var hasSalt: Bool {self._salt != nil}
|
|
1178
1182
|
/// Clears the value of `salt`. Subsequent reads from it will return its default value.
|
|
1179
1183
|
public mutating func clearSalt() {self._salt = nil}
|
|
1180
1184
|
|
|
@@ -1191,20 +1195,20 @@ public struct BlueWebSPHandshakeReply: Sendable {
|
|
|
1191
1195
|
// methods supported on all messages.
|
|
1192
1196
|
|
|
1193
1197
|
public var deviceID: String {
|
|
1194
|
-
get {
|
|
1198
|
+
get {_deviceID ?? String()}
|
|
1195
1199
|
set {_deviceID = newValue}
|
|
1196
1200
|
}
|
|
1197
1201
|
/// Returns true if `deviceID` has been explicitly set.
|
|
1198
|
-
public var hasDeviceID: Bool {
|
|
1202
|
+
public var hasDeviceID: Bool {self._deviceID != nil}
|
|
1199
1203
|
/// Clears the value of `deviceID`. Subsequent reads from it will return its default value.
|
|
1200
1204
|
public mutating func clearDeviceID() {self._deviceID = nil}
|
|
1201
1205
|
|
|
1202
1206
|
public var signature: Data {
|
|
1203
|
-
get {
|
|
1207
|
+
get {_signature ?? Data()}
|
|
1204
1208
|
set {_signature = newValue}
|
|
1205
1209
|
}
|
|
1206
1210
|
/// Returns true if `signature` has been explicitly set.
|
|
1207
|
-
public var hasSignature: Bool {
|
|
1211
|
+
public var hasSignature: Bool {self._signature != nil}
|
|
1208
1212
|
/// Clears the value of `signature`. Subsequent reads from it will return its default value.
|
|
1209
1213
|
public mutating func clearSignature() {self._signature = nil}
|
|
1210
1214
|
|
|
@@ -1222,20 +1226,20 @@ public struct BlueWebSPMessage: Sendable {
|
|
|
1222
1226
|
// methods supported on all messages.
|
|
1223
1227
|
|
|
1224
1228
|
public var transactionID: UInt32 {
|
|
1225
|
-
get {
|
|
1229
|
+
get {_transactionID ?? 0}
|
|
1226
1230
|
set {_transactionID = newValue}
|
|
1227
1231
|
}
|
|
1228
1232
|
/// Returns true if `transactionID` has been explicitly set.
|
|
1229
|
-
public var hasTransactionID: Bool {
|
|
1233
|
+
public var hasTransactionID: Bool {self._transactionID != nil}
|
|
1230
1234
|
/// Clears the value of `transactionID`. Subsequent reads from it will return its default value.
|
|
1231
1235
|
public mutating func clearTransactionID() {self._transactionID = nil}
|
|
1232
1236
|
|
|
1233
1237
|
public var payload: BlueSPResult {
|
|
1234
|
-
get {
|
|
1238
|
+
get {_payload ?? BlueSPResult()}
|
|
1235
1239
|
set {_payload = newValue}
|
|
1236
1240
|
}
|
|
1237
1241
|
/// Returns true if `payload` has been explicitly set.
|
|
1238
|
-
public var hasPayload: Bool {
|
|
1242
|
+
public var hasPayload: Bool {self._payload != nil}
|
|
1239
1243
|
/// Clears the value of `payload`. Subsequent reads from it will return its default value.
|
|
1240
1244
|
public mutating func clearPayload() {self._payload = nil}
|
|
1241
1245
|
|
|
@@ -1341,11 +1345,11 @@ public struct BlueWebSPStatusMessage: Sendable {
|
|
|
1341
1345
|
// methods supported on all messages.
|
|
1342
1346
|
|
|
1343
1347
|
public var status: BlueReturnCode {
|
|
1344
|
-
get {
|
|
1348
|
+
get {_status ?? .ok}
|
|
1345
1349
|
set {_status = newValue}
|
|
1346
1350
|
}
|
|
1347
1351
|
/// Returns true if `status` has been explicitly set.
|
|
1348
|
-
public var hasStatus: Bool {
|
|
1352
|
+
public var hasStatus: Bool {self._status != nil}
|
|
1349
1353
|
/// Clears the value of `status`. Subsequent reads from it will return its default value.
|
|
1350
1354
|
public mutating func clearStatus() {self._status = nil}
|
|
1351
1355
|
|
|
@@ -1363,62 +1367,62 @@ public struct BlueOssAccessResult: Sendable {
|
|
|
1363
1367
|
|
|
1364
1368
|
/// If access is granted or not
|
|
1365
1369
|
public var accessGranted: Bool {
|
|
1366
|
-
get {
|
|
1370
|
+
get {_accessGranted ?? false}
|
|
1367
1371
|
set {_accessGranted = newValue}
|
|
1368
1372
|
}
|
|
1369
1373
|
/// Returns true if `accessGranted` has been explicitly set.
|
|
1370
|
-
public var hasAccessGranted: Bool {
|
|
1374
|
+
public var hasAccessGranted: Bool {self._accessGranted != nil}
|
|
1371
1375
|
/// Clears the value of `accessGranted`. Subsequent reads from it will return its default value.
|
|
1372
1376
|
public mutating func clearAccessGranted() {self._accessGranted = nil}
|
|
1373
1377
|
|
|
1374
1378
|
/// The final access type that was used if access was granted
|
|
1375
1379
|
public var accessType: BlueAccessType {
|
|
1376
|
-
get {
|
|
1380
|
+
get {_accessType ?? .defaultTime}
|
|
1377
1381
|
set {_accessType = newValue}
|
|
1378
1382
|
}
|
|
1379
1383
|
/// Returns true if `accessType` has been explicitly set.
|
|
1380
|
-
public var hasAccessType: Bool {
|
|
1384
|
+
public var hasAccessType: Bool {self._accessType != nil}
|
|
1381
1385
|
/// Clears the value of `accessType`. Subsequent reads from it will return its default value.
|
|
1382
1386
|
public mutating func clearAccessType() {self._accessType = nil}
|
|
1383
1387
|
|
|
1384
1388
|
/// Additional access info if was granted, depends on device
|
|
1385
1389
|
/// For locks for example this would contain the BlueLockState
|
|
1386
1390
|
public var accessInfo: UInt32 {
|
|
1387
|
-
get {
|
|
1391
|
+
get {_accessInfo ?? 0}
|
|
1388
1392
|
set {_accessInfo = newValue}
|
|
1389
1393
|
}
|
|
1390
1394
|
/// Returns true if `accessInfo` has been explicitly set.
|
|
1391
|
-
public var hasAccessInfo: Bool {
|
|
1395
|
+
public var hasAccessInfo: Bool {self._accessInfo != nil}
|
|
1392
1396
|
/// Clears the value of `accessInfo`. Subsequent reads from it will return its default value.
|
|
1393
1397
|
public mutating func clearAccessInfo() {self._accessInfo = nil}
|
|
1394
1398
|
|
|
1395
1399
|
/// Defines when the used schedule actually ends if any if access was granted
|
|
1396
1400
|
public var scheduleEndTime: BlueLocalTimestamp {
|
|
1397
|
-
get {
|
|
1401
|
+
get {_scheduleEndTime ?? BlueLocalTimestamp()}
|
|
1398
1402
|
set {_scheduleEndTime = newValue}
|
|
1399
1403
|
}
|
|
1400
1404
|
/// Returns true if `scheduleEndTime` has been explicitly set.
|
|
1401
|
-
public var hasScheduleEndTime: Bool {
|
|
1405
|
+
public var hasScheduleEndTime: Bool {self._scheduleEndTime != nil}
|
|
1402
1406
|
/// Clears the value of `scheduleEndTime`. Subsequent reads from it will return its default value.
|
|
1403
1407
|
public mutating func clearScheduleEndTime() {self._scheduleEndTime = nil}
|
|
1404
1408
|
|
|
1405
1409
|
/// If access denied this marks if it was denied due a schedule missmatch
|
|
1406
1410
|
public var scheduleMissmatch: Bool {
|
|
1407
|
-
get {
|
|
1411
|
+
get {_scheduleMissmatch ?? false}
|
|
1408
1412
|
set {_scheduleMissmatch = newValue}
|
|
1409
1413
|
}
|
|
1410
1414
|
/// Returns true if `scheduleMissmatch` has been explicitly set.
|
|
1411
|
-
public var hasScheduleMissmatch: Bool {
|
|
1415
|
+
public var hasScheduleMissmatch: Bool {self._scheduleMissmatch != nil}
|
|
1412
1416
|
/// Clears the value of `scheduleMissmatch`. Subsequent reads from it will return its default value.
|
|
1413
1417
|
public mutating func clearScheduleMissmatch() {self._scheduleMissmatch = nil}
|
|
1414
1418
|
|
|
1415
1419
|
/// Additional info about how long the device will remain open (in seconds) if access was granted
|
|
1416
1420
|
public var accessOpenTime: UInt32 {
|
|
1417
|
-
get {
|
|
1421
|
+
get {_accessOpenTime ?? 0}
|
|
1418
1422
|
set {_accessOpenTime = newValue}
|
|
1419
1423
|
}
|
|
1420
1424
|
/// Returns true if `accessOpenTime` has been explicitly set.
|
|
1421
|
-
public var hasAccessOpenTime: Bool {
|
|
1425
|
+
public var hasAccessOpenTime: Bool {self._accessOpenTime != nil}
|
|
1422
1426
|
/// Clears the value of `accessOpenTime`. Subsequent reads from it will return its default value.
|
|
1423
1427
|
public mutating func clearAccessOpenTime() {self._accessOpenTime = nil}
|
|
1424
1428
|
|
|
@@ -1440,11 +1444,11 @@ public struct BlueOssAccessEventsResult: Sendable {
|
|
|
1440
1444
|
// methods supported on all messages.
|
|
1441
1445
|
|
|
1442
1446
|
public var accessResult: BlueOssAccessResult {
|
|
1443
|
-
get {
|
|
1447
|
+
get {_accessResult ?? BlueOssAccessResult()}
|
|
1444
1448
|
set {_accessResult = newValue}
|
|
1445
1449
|
}
|
|
1446
1450
|
/// Returns true if `accessResult` has been explicitly set.
|
|
1447
|
-
public var hasAccessResult: Bool {
|
|
1451
|
+
public var hasAccessResult: Bool {self._accessResult != nil}
|
|
1448
1452
|
/// Clears the value of `accessResult`. Subsequent reads from it will return its default value.
|
|
1449
1453
|
public mutating func clearAccessResult() {self._accessResult = nil}
|
|
1450
1454
|
|
|
@@ -1463,20 +1467,20 @@ public struct BlueOssSidVersion: Sendable {
|
|
|
1463
1467
|
// methods supported on all messages.
|
|
1464
1468
|
|
|
1465
1469
|
public var versionMajor: UInt32 {
|
|
1466
|
-
get {
|
|
1470
|
+
get {_versionMajor ?? 1}
|
|
1467
1471
|
set {_versionMajor = newValue}
|
|
1468
1472
|
}
|
|
1469
1473
|
/// Returns true if `versionMajor` has been explicitly set.
|
|
1470
|
-
public var hasVersionMajor: Bool {
|
|
1474
|
+
public var hasVersionMajor: Bool {self._versionMajor != nil}
|
|
1471
1475
|
/// Clears the value of `versionMajor`. Subsequent reads from it will return its default value.
|
|
1472
1476
|
public mutating func clearVersionMajor() {self._versionMajor = nil}
|
|
1473
1477
|
|
|
1474
1478
|
public var versionMinor: UInt32 {
|
|
1475
|
-
get {
|
|
1479
|
+
get {_versionMinor ?? 0}
|
|
1476
1480
|
set {_versionMinor = newValue}
|
|
1477
1481
|
}
|
|
1478
1482
|
/// Returns true if `versionMinor` has been explicitly set.
|
|
1479
|
-
public var hasVersionMinor: Bool {
|
|
1483
|
+
public var hasVersionMinor: Bool {self._versionMinor != nil}
|
|
1480
1484
|
/// Clears the value of `versionMinor`. Subsequent reads from it will return its default value.
|
|
1481
1485
|
public mutating func clearVersionMinor() {self._versionMinor = nil}
|
|
1482
1486
|
|
|
@@ -1494,11 +1498,11 @@ public struct BlueOssSidCredentialTypeOss: Sendable {
|
|
|
1494
1498
|
// methods supported on all messages.
|
|
1495
1499
|
|
|
1496
1500
|
public var notUsed: Bool {
|
|
1497
|
-
get {
|
|
1501
|
+
get {_notUsed ?? false}
|
|
1498
1502
|
set {_notUsed = newValue}
|
|
1499
1503
|
}
|
|
1500
1504
|
/// Returns true if `notUsed` has been explicitly set.
|
|
1501
|
-
public var hasNotUsed: Bool {
|
|
1505
|
+
public var hasNotUsed: Bool {self._notUsed != nil}
|
|
1502
1506
|
/// Clears the value of `notUsed`. Subsequent reads from it will return its default value.
|
|
1503
1507
|
public mutating func clearNotUsed() {self._notUsed = nil}
|
|
1504
1508
|
|
|
@@ -1515,11 +1519,11 @@ public struct BlueOssSidCredentialTypeProprietary: Sendable {
|
|
|
1515
1519
|
// methods supported on all messages.
|
|
1516
1520
|
|
|
1517
1521
|
public var mfgCode: Data {
|
|
1518
|
-
get {
|
|
1522
|
+
get {_mfgCode ?? Data()}
|
|
1519
1523
|
set {_mfgCode = newValue}
|
|
1520
1524
|
}
|
|
1521
1525
|
/// Returns true if `mfgCode` has been explicitly set.
|
|
1522
|
-
public var hasMfgCode: Bool {
|
|
1526
|
+
public var hasMfgCode: Bool {self._mfgCode != nil}
|
|
1523
1527
|
/// Clears the value of `mfgCode`. Subsequent reads from it will return its default value.
|
|
1524
1528
|
public mutating func clearMfgCode() {self._mfgCode = nil}
|
|
1525
1529
|
|
|
@@ -1536,29 +1540,29 @@ public struct BlueOssSidCredentialType: Sendable {
|
|
|
1536
1540
|
// methods supported on all messages.
|
|
1537
1541
|
|
|
1538
1542
|
public var typeSource: BlueOssCredentialTypeSource {
|
|
1539
|
-
get {
|
|
1543
|
+
get {_typeSource ?? .oss}
|
|
1540
1544
|
set {_typeSource = newValue}
|
|
1541
1545
|
}
|
|
1542
1546
|
/// Returns true if `typeSource` has been explicitly set.
|
|
1543
|
-
public var hasTypeSource: Bool {
|
|
1547
|
+
public var hasTypeSource: Bool {self._typeSource != nil}
|
|
1544
1548
|
/// Clears the value of `typeSource`. Subsequent reads from it will return its default value.
|
|
1545
1549
|
public mutating func clearTypeSource() {self._typeSource = nil}
|
|
1546
1550
|
|
|
1547
1551
|
public var oss: BlueOssSidCredentialTypeOss {
|
|
1548
|
-
get {
|
|
1552
|
+
get {_oss ?? BlueOssSidCredentialTypeOss()}
|
|
1549
1553
|
set {_oss = newValue}
|
|
1550
1554
|
}
|
|
1551
1555
|
/// Returns true if `oss` has been explicitly set.
|
|
1552
|
-
public var hasOss: Bool {
|
|
1556
|
+
public var hasOss: Bool {self._oss != nil}
|
|
1553
1557
|
/// Clears the value of `oss`. Subsequent reads from it will return its default value.
|
|
1554
1558
|
public mutating func clearOss() {self._oss = nil}
|
|
1555
1559
|
|
|
1556
1560
|
public var proprietary: BlueOssSidCredentialTypeProprietary {
|
|
1557
|
-
get {
|
|
1561
|
+
get {_proprietary ?? BlueOssSidCredentialTypeProprietary()}
|
|
1558
1562
|
set {_proprietary = newValue}
|
|
1559
1563
|
}
|
|
1560
1564
|
/// Returns true if `proprietary` has been explicitly set.
|
|
1561
|
-
public var hasProprietary: Bool {
|
|
1565
|
+
public var hasProprietary: Bool {self._proprietary != nil}
|
|
1562
1566
|
/// Clears the value of `proprietary`. Subsequent reads from it will return its default value.
|
|
1563
1567
|
public mutating func clearProprietary() {self._proprietary = nil}
|
|
1564
1568
|
|
|
@@ -1577,38 +1581,38 @@ public struct BlueOssSidFileInfo: Sendable {
|
|
|
1577
1581
|
// methods supported on all messages.
|
|
1578
1582
|
|
|
1579
1583
|
public var versionMajor: UInt32 {
|
|
1580
|
-
get {
|
|
1584
|
+
get {_versionMajor ?? 0}
|
|
1581
1585
|
set {_versionMajor = newValue}
|
|
1582
1586
|
}
|
|
1583
1587
|
/// Returns true if `versionMajor` has been explicitly set.
|
|
1584
|
-
public var hasVersionMajor: Bool {
|
|
1588
|
+
public var hasVersionMajor: Bool {self._versionMajor != nil}
|
|
1585
1589
|
/// Clears the value of `versionMajor`. Subsequent reads from it will return its default value.
|
|
1586
1590
|
public mutating func clearVersionMajor() {self._versionMajor = nil}
|
|
1587
1591
|
|
|
1588
1592
|
public var versionMinor: UInt32 {
|
|
1589
|
-
get {
|
|
1593
|
+
get {_versionMinor ?? 0}
|
|
1590
1594
|
set {_versionMinor = newValue}
|
|
1591
1595
|
}
|
|
1592
1596
|
/// Returns true if `versionMinor` has been explicitly set.
|
|
1593
|
-
public var hasVersionMinor: Bool {
|
|
1597
|
+
public var hasVersionMinor: Bool {self._versionMinor != nil}
|
|
1594
1598
|
/// Clears the value of `versionMinor`. Subsequent reads from it will return its default value.
|
|
1595
1599
|
public mutating func clearVersionMinor() {self._versionMinor = nil}
|
|
1596
1600
|
|
|
1597
1601
|
public var credentialType: BlueOssSidCredentialType {
|
|
1598
|
-
get {
|
|
1602
|
+
get {_credentialType ?? BlueOssSidCredentialType()}
|
|
1599
1603
|
set {_credentialType = newValue}
|
|
1600
1604
|
}
|
|
1601
1605
|
/// Returns true if `credentialType` has been explicitly set.
|
|
1602
|
-
public var hasCredentialType: Bool {
|
|
1606
|
+
public var hasCredentialType: Bool {self._credentialType != nil}
|
|
1603
1607
|
/// Clears the value of `credentialType`. Subsequent reads from it will return its default value.
|
|
1604
1608
|
public mutating func clearCredentialType() {self._credentialType = nil}
|
|
1605
1609
|
|
|
1606
1610
|
public var credentialID: BlueCredentialId {
|
|
1607
|
-
get {
|
|
1611
|
+
get {_credentialID ?? BlueCredentialId()}
|
|
1608
1612
|
set {_credentialID = newValue}
|
|
1609
1613
|
}
|
|
1610
1614
|
/// Returns true if `credentialID` has been explicitly set.
|
|
1611
|
-
public var hasCredentialID: Bool {
|
|
1615
|
+
public var hasCredentialID: Bool {self._credentialID != nil}
|
|
1612
1616
|
/// Clears the value of `credentialID`. Subsequent reads from it will return its default value.
|
|
1613
1617
|
public mutating func clearCredentialID() {self._credentialID = nil}
|
|
1614
1618
|
|
|
@@ -1628,11 +1632,11 @@ public struct BlueOssSidConfiguration: Sendable {
|
|
|
1628
1632
|
// methods supported on all messages.
|
|
1629
1633
|
|
|
1630
1634
|
public var info: BlueOssSidFileInfo {
|
|
1631
|
-
get {
|
|
1635
|
+
get {_info ?? BlueOssSidFileInfo()}
|
|
1632
1636
|
set {_info = newValue}
|
|
1633
1637
|
}
|
|
1634
1638
|
/// Returns true if `info` has been explicitly set.
|
|
1635
|
-
public var hasInfo: Bool {
|
|
1639
|
+
public var hasInfo: Bool {self._info != nil}
|
|
1636
1640
|
/// Clears the value of `info`. Subsequent reads from it will return its default value.
|
|
1637
1641
|
public mutating func clearInfo() {self._info = nil}
|
|
1638
1642
|
|
|
@@ -1649,38 +1653,38 @@ public struct BlueOssSidStorageProfile: Sendable {
|
|
|
1649
1653
|
// methods supported on all messages.
|
|
1650
1654
|
|
|
1651
1655
|
public var dataLength: UInt32 {
|
|
1652
|
-
get {
|
|
1656
|
+
get {_dataLength ?? 0}
|
|
1653
1657
|
set {_dataLength = newValue}
|
|
1654
1658
|
}
|
|
1655
1659
|
/// Returns true if `dataLength` has been explicitly set.
|
|
1656
|
-
public var hasDataLength: Bool {
|
|
1660
|
+
public var hasDataLength: Bool {self._dataLength != nil}
|
|
1657
1661
|
/// Clears the value of `dataLength`. Subsequent reads from it will return its default value.
|
|
1658
1662
|
public mutating func clearDataLength() {self._dataLength = nil}
|
|
1659
1663
|
|
|
1660
1664
|
public var fileSize: UInt32 {
|
|
1661
|
-
get {
|
|
1665
|
+
get {_fileSize ?? 0}
|
|
1662
1666
|
set {_fileSize = newValue}
|
|
1663
1667
|
}
|
|
1664
1668
|
/// Returns true if `fileSize` has been explicitly set.
|
|
1665
|
-
public var hasFileSize: Bool {
|
|
1669
|
+
public var hasFileSize: Bool {self._fileSize != nil}
|
|
1666
1670
|
/// Clears the value of `fileSize`. Subsequent reads from it will return its default value.
|
|
1667
1671
|
public mutating func clearFileSize() {self._fileSize = nil}
|
|
1668
1672
|
|
|
1669
1673
|
public var infoDataLength: UInt32 {
|
|
1670
|
-
get {
|
|
1674
|
+
get {_infoDataLength ?? 0}
|
|
1671
1675
|
set {_infoDataLength = newValue}
|
|
1672
1676
|
}
|
|
1673
1677
|
/// Returns true if `infoDataLength` has been explicitly set.
|
|
1674
|
-
public var hasInfoDataLength: Bool {
|
|
1678
|
+
public var hasInfoDataLength: Bool {self._infoDataLength != nil}
|
|
1675
1679
|
/// Clears the value of `infoDataLength`. Subsequent reads from it will return its default value.
|
|
1676
1680
|
public mutating func clearInfoDataLength() {self._infoDataLength = nil}
|
|
1677
1681
|
|
|
1678
1682
|
public var infoFileSize: UInt32 {
|
|
1679
|
-
get {
|
|
1683
|
+
get {_infoFileSize ?? 0}
|
|
1680
1684
|
set {_infoFileSize = newValue}
|
|
1681
1685
|
}
|
|
1682
1686
|
/// Returns true if `infoFileSize` has been explicitly set.
|
|
1683
|
-
public var hasInfoFileSize: Bool {
|
|
1687
|
+
public var hasInfoFileSize: Bool {self._infoFileSize != nil}
|
|
1684
1688
|
/// Clears the value of `infoFileSize`. Subsequent reads from it will return its default value.
|
|
1685
1689
|
public mutating func clearInfoFileSize() {self._infoFileSize = nil}
|
|
1686
1690
|
|
|
@@ -1700,11 +1704,11 @@ public struct BlueOssSidProvisioningConfiguration: Sendable {
|
|
|
1700
1704
|
// methods supported on all messages.
|
|
1701
1705
|
|
|
1702
1706
|
public var notUsed: Bool {
|
|
1703
|
-
get {
|
|
1707
|
+
get {_notUsed ?? false}
|
|
1704
1708
|
set {_notUsed = newValue}
|
|
1705
1709
|
}
|
|
1706
1710
|
/// Returns true if `notUsed` has been explicitly set.
|
|
1707
|
-
public var hasNotUsed: Bool {
|
|
1711
|
+
public var hasNotUsed: Bool {self._notUsed != nil}
|
|
1708
1712
|
/// Clears the value of `notUsed`. Subsequent reads from it will return its default value.
|
|
1709
1713
|
public mutating func clearNotUsed() {self._notUsed = nil}
|
|
1710
1714
|
|
|
@@ -1722,29 +1726,29 @@ public struct BlueOssSidProvisioningData: Sendable {
|
|
|
1722
1726
|
|
|
1723
1727
|
/// If not set, uses default from storage
|
|
1724
1728
|
public var configuration: BlueOssSidProvisioningConfiguration {
|
|
1725
|
-
get {
|
|
1729
|
+
get {_configuration ?? BlueOssSidProvisioningConfiguration()}
|
|
1726
1730
|
set {_configuration = newValue}
|
|
1727
1731
|
}
|
|
1728
1732
|
/// Returns true if `configuration` has been explicitly set.
|
|
1729
|
-
public var hasConfiguration: Bool {
|
|
1733
|
+
public var hasConfiguration: Bool {self._configuration != nil}
|
|
1730
1734
|
/// Clears the value of `configuration`. Subsequent reads from it will return its default value.
|
|
1731
1735
|
public mutating func clearConfiguration() {self._configuration = nil}
|
|
1732
1736
|
|
|
1733
1737
|
public var credentialType: BlueOssSidCredentialType {
|
|
1734
|
-
get {
|
|
1738
|
+
get {_credentialType ?? BlueOssSidCredentialType()}
|
|
1735
1739
|
set {_credentialType = newValue}
|
|
1736
1740
|
}
|
|
1737
1741
|
/// Returns true if `credentialType` has been explicitly set.
|
|
1738
|
-
public var hasCredentialType: Bool {
|
|
1742
|
+
public var hasCredentialType: Bool {self._credentialType != nil}
|
|
1739
1743
|
/// Clears the value of `credentialType`. Subsequent reads from it will return its default value.
|
|
1740
1744
|
public mutating func clearCredentialType() {self._credentialType = nil}
|
|
1741
1745
|
|
|
1742
1746
|
public var credentialID: BlueCredentialId {
|
|
1743
|
-
get {
|
|
1747
|
+
get {_credentialID ?? BlueCredentialId()}
|
|
1744
1748
|
set {_credentialID = newValue}
|
|
1745
1749
|
}
|
|
1746
1750
|
/// Returns true if `credentialID` has been explicitly set.
|
|
1747
|
-
public var hasCredentialID: Bool {
|
|
1751
|
+
public var hasCredentialID: Bool {self._credentialID != nil}
|
|
1748
1752
|
/// Clears the value of `credentialID`. Subsequent reads from it will return its default value.
|
|
1749
1753
|
public mutating func clearCredentialID() {self._credentialID = nil}
|
|
1750
1754
|
|
|
@@ -1763,11 +1767,11 @@ public struct BlueOssSidMobile: Sendable {
|
|
|
1763
1767
|
// methods supported on all messages.
|
|
1764
1768
|
|
|
1765
1769
|
public var infoFile: Data {
|
|
1766
|
-
get {
|
|
1770
|
+
get {_infoFile ?? Data()}
|
|
1767
1771
|
set {_infoFile = newValue}
|
|
1768
1772
|
}
|
|
1769
1773
|
/// Returns true if `infoFile` has been explicitly set.
|
|
1770
|
-
public var hasInfoFile: Bool {
|
|
1774
|
+
public var hasInfoFile: Bool {self._infoFile != nil}
|
|
1771
1775
|
/// Clears the value of `infoFile`. Subsequent reads from it will return its default value.
|
|
1772
1776
|
public mutating func clearInfoFile() {self._infoFile = nil}
|
|
1773
1777
|
|
|
@@ -1784,11 +1788,11 @@ public struct BlueOssSidMobileProvisioningConfiguration: Sendable {
|
|
|
1784
1788
|
// methods supported on all messages.
|
|
1785
1789
|
|
|
1786
1790
|
public var notUsed: Bool {
|
|
1787
|
-
get {
|
|
1791
|
+
get {_notUsed ?? false}
|
|
1788
1792
|
set {_notUsed = newValue}
|
|
1789
1793
|
}
|
|
1790
1794
|
/// Returns true if `notUsed` has been explicitly set.
|
|
1791
|
-
public var hasNotUsed: Bool {
|
|
1795
|
+
public var hasNotUsed: Bool {self._notUsed != nil}
|
|
1792
1796
|
/// Clears the value of `notUsed`. Subsequent reads from it will return its default value.
|
|
1793
1797
|
public mutating func clearNotUsed() {self._notUsed = nil}
|
|
1794
1798
|
|
|
@@ -1806,11 +1810,11 @@ public struct BlueOssSidMifareDesfireProvisioningConfiguration: Sendable {
|
|
|
1806
1810
|
// methods supported on all messages.
|
|
1807
1811
|
|
|
1808
1812
|
public var notUsed: Bool {
|
|
1809
|
-
get {
|
|
1813
|
+
get {_notUsed ?? false}
|
|
1810
1814
|
set {_notUsed = newValue}
|
|
1811
1815
|
}
|
|
1812
1816
|
/// Returns true if `notUsed` has been explicitly set.
|
|
1813
|
-
public var hasNotUsed: Bool {
|
|
1817
|
+
public var hasNotUsed: Bool {self._notUsed != nil}
|
|
1814
1818
|
/// Clears the value of `notUsed`. Subsequent reads from it will return its default value.
|
|
1815
1819
|
public mutating func clearNotUsed() {self._notUsed = nil}
|
|
1816
1820
|
|
|
@@ -1829,41 +1833,41 @@ public struct BlueOssSidMifareDesfireConfiguration: Sendable {
|
|
|
1829
1833
|
|
|
1830
1834
|
/// The PICC master key, default is oss sid demo key
|
|
1831
1835
|
public var piccMasterKey: Data {
|
|
1832
|
-
get {
|
|
1836
|
+
get {_piccMasterKey ?? Data([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 170])}
|
|
1833
1837
|
set {_piccMasterKey = newValue}
|
|
1834
1838
|
}
|
|
1835
1839
|
/// Returns true if `piccMasterKey` has been explicitly set.
|
|
1836
|
-
public var hasPiccMasterKey: Bool {
|
|
1840
|
+
public var hasPiccMasterKey: Bool {self._piccMasterKey != nil}
|
|
1837
1841
|
/// Clears the value of `piccMasterKey`. Subsequent reads from it will return its default value.
|
|
1838
1842
|
public mutating func clearPiccMasterKey() {self._piccMasterKey = nil}
|
|
1839
1843
|
|
|
1840
1844
|
/// The oss application master key, default is oss sid demo key
|
|
1841
1845
|
public var appMasterKey: Data {
|
|
1842
|
-
get {
|
|
1846
|
+
get {_appMasterKey ?? Data([0, 17, 34, 51, 68, 85, 102, 119, 136, 153, 170, 187, 204, 221, 238, 255])}
|
|
1843
1847
|
set {_appMasterKey = newValue}
|
|
1844
1848
|
}
|
|
1845
1849
|
/// Returns true if `appMasterKey` has been explicitly set.
|
|
1846
|
-
public var hasAppMasterKey: Bool {
|
|
1850
|
+
public var hasAppMasterKey: Bool {self._appMasterKey != nil}
|
|
1847
1851
|
/// Clears the value of `appMasterKey`. Subsequent reads from it will return its default value.
|
|
1848
1852
|
public mutating func clearAppMasterKey() {self._appMasterKey = nil}
|
|
1849
1853
|
|
|
1850
1854
|
/// The oss project read key, default is oss sid demo key
|
|
1851
1855
|
public var projectKey: Data {
|
|
1852
|
-
get {
|
|
1856
|
+
get {_projectKey ?? Data([255, 238, 221, 204, 187, 170, 153, 136, 119, 102, 85, 68, 51, 34, 17, 0])}
|
|
1853
1857
|
set {_projectKey = newValue}
|
|
1854
1858
|
}
|
|
1855
1859
|
/// Returns true if `projectKey` has been explicitly set.
|
|
1856
|
-
public var hasProjectKey: Bool {
|
|
1860
|
+
public var hasProjectKey: Bool {self._projectKey != nil}
|
|
1857
1861
|
/// Clears the value of `projectKey`. Subsequent reads from it will return its default value.
|
|
1858
1862
|
public mutating func clearProjectKey() {self._projectKey = nil}
|
|
1859
1863
|
|
|
1860
1864
|
/// The oss application id, default is the oss sid default aid
|
|
1861
1865
|
public var aid: UInt32 {
|
|
1862
|
-
get {
|
|
1866
|
+
get {_aid ?? 16076801}
|
|
1863
1867
|
set {_aid = newValue}
|
|
1864
1868
|
}
|
|
1865
1869
|
/// Returns true if `aid` has been explicitly set.
|
|
1866
|
-
public var hasAid: Bool {
|
|
1870
|
+
public var hasAid: Bool {self._aid != nil}
|
|
1867
1871
|
/// Clears the value of `aid`. Subsequent reads from it will return its default value.
|
|
1868
1872
|
public mutating func clearAid() {self._aid = nil}
|
|
1869
1873
|
|
|
@@ -1883,11 +1887,11 @@ public struct BlueOssSidSettings: Sendable {
|
|
|
1883
1887
|
// methods supported on all messages.
|
|
1884
1888
|
|
|
1885
1889
|
public var mifareDesfireConfig: BlueOssSidMifareDesfireConfiguration {
|
|
1886
|
-
get {
|
|
1890
|
+
get {_mifareDesfireConfig ?? BlueOssSidMifareDesfireConfiguration()}
|
|
1887
1891
|
set {_mifareDesfireConfig = newValue}
|
|
1888
1892
|
}
|
|
1889
1893
|
/// Returns true if `mifareDesfireConfig` has been explicitly set.
|
|
1890
|
-
public var hasMifareDesfireConfig: Bool {
|
|
1894
|
+
public var hasMifareDesfireConfig: Bool {self._mifareDesfireConfig != nil}
|
|
1891
1895
|
/// Clears the value of `mifareDesfireConfig`. Subsequent reads from it will return its default value.
|
|
1892
1896
|
public mutating func clearMifareDesfireConfig() {self._mifareDesfireConfig = nil}
|
|
1893
1897
|
|
|
@@ -1904,20 +1908,20 @@ public struct BlueOssSoVersion: Sendable {
|
|
|
1904
1908
|
// methods supported on all messages.
|
|
1905
1909
|
|
|
1906
1910
|
public var versionMajor: UInt32 {
|
|
1907
|
-
get {
|
|
1911
|
+
get {_versionMajor ?? 1}
|
|
1908
1912
|
set {_versionMajor = newValue}
|
|
1909
1913
|
}
|
|
1910
1914
|
/// Returns true if `versionMajor` has been explicitly set.
|
|
1911
|
-
public var hasVersionMajor: Bool {
|
|
1915
|
+
public var hasVersionMajor: Bool {self._versionMajor != nil}
|
|
1912
1916
|
/// Clears the value of `versionMajor`. Subsequent reads from it will return its default value.
|
|
1913
1917
|
public mutating func clearVersionMajor() {self._versionMajor = nil}
|
|
1914
1918
|
|
|
1915
1919
|
public var versionMinor: UInt32 {
|
|
1916
|
-
get {
|
|
1920
|
+
get {_versionMinor ?? 1}
|
|
1917
1921
|
set {_versionMinor = newValue}
|
|
1918
1922
|
}
|
|
1919
1923
|
/// Returns true if `versionMinor` has been explicitly set.
|
|
1920
|
-
public var hasVersionMinor: Bool {
|
|
1924
|
+
public var hasVersionMinor: Bool {self._versionMinor != nil}
|
|
1921
1925
|
/// Clears the value of `versionMinor`. Subsequent reads from it will return its default value.
|
|
1922
1926
|
public mutating func clearVersionMinor() {self._versionMinor = nil}
|
|
1923
1927
|
|
|
@@ -1935,11 +1939,11 @@ public struct BlueOssSoCredentialTypeOss: Sendable {
|
|
|
1935
1939
|
// methods supported on all messages.
|
|
1936
1940
|
|
|
1937
1941
|
public var credential: BlueOssSoCredentialTypeOssCredential {
|
|
1938
|
-
get {
|
|
1942
|
+
get {_credential ?? .standard}
|
|
1939
1943
|
set {_credential = newValue}
|
|
1940
1944
|
}
|
|
1941
1945
|
/// Returns true if `credential` has been explicitly set.
|
|
1942
|
-
public var hasCredential: Bool {
|
|
1946
|
+
public var hasCredential: Bool {self._credential != nil}
|
|
1943
1947
|
/// Clears the value of `credential`. Subsequent reads from it will return its default value.
|
|
1944
1948
|
public mutating func clearCredential() {self._credential = nil}
|
|
1945
1949
|
|
|
@@ -1956,11 +1960,11 @@ public struct BlueOssSoCredentialTypeProprietary: Sendable {
|
|
|
1956
1960
|
// methods supported on all messages.
|
|
1957
1961
|
|
|
1958
1962
|
public var mfgCode: Data {
|
|
1959
|
-
get {
|
|
1963
|
+
get {_mfgCode ?? Data()}
|
|
1960
1964
|
set {_mfgCode = newValue}
|
|
1961
1965
|
}
|
|
1962
1966
|
/// Returns true if `mfgCode` has been explicitly set.
|
|
1963
|
-
public var hasMfgCode: Bool {
|
|
1967
|
+
public var hasMfgCode: Bool {self._mfgCode != nil}
|
|
1964
1968
|
/// Clears the value of `mfgCode`. Subsequent reads from it will return its default value.
|
|
1965
1969
|
public mutating func clearMfgCode() {self._mfgCode = nil}
|
|
1966
1970
|
|
|
@@ -1977,29 +1981,29 @@ public struct BlueOssSoCredentialType: Sendable {
|
|
|
1977
1981
|
// methods supported on all messages.
|
|
1978
1982
|
|
|
1979
1983
|
public var typeSource: BlueOssCredentialTypeSource {
|
|
1980
|
-
get {
|
|
1984
|
+
get {_typeSource ?? .oss}
|
|
1981
1985
|
set {_typeSource = newValue}
|
|
1982
1986
|
}
|
|
1983
1987
|
/// Returns true if `typeSource` has been explicitly set.
|
|
1984
|
-
public var hasTypeSource: Bool {
|
|
1988
|
+
public var hasTypeSource: Bool {self._typeSource != nil}
|
|
1985
1989
|
/// Clears the value of `typeSource`. Subsequent reads from it will return its default value.
|
|
1986
1990
|
public mutating func clearTypeSource() {self._typeSource = nil}
|
|
1987
1991
|
|
|
1988
1992
|
public var oss: BlueOssSoCredentialTypeOss {
|
|
1989
|
-
get {
|
|
1993
|
+
get {_oss ?? BlueOssSoCredentialTypeOss()}
|
|
1990
1994
|
set {_oss = newValue}
|
|
1991
1995
|
}
|
|
1992
1996
|
/// Returns true if `oss` has been explicitly set.
|
|
1993
|
-
public var hasOss: Bool {
|
|
1997
|
+
public var hasOss: Bool {self._oss != nil}
|
|
1994
1998
|
/// Clears the value of `oss`. Subsequent reads from it will return its default value.
|
|
1995
1999
|
public mutating func clearOss() {self._oss = nil}
|
|
1996
2000
|
|
|
1997
2001
|
public var proprietary: BlueOssSoCredentialTypeProprietary {
|
|
1998
|
-
get {
|
|
2002
|
+
get {_proprietary ?? BlueOssSoCredentialTypeProprietary()}
|
|
1999
2003
|
set {_proprietary = newValue}
|
|
2000
2004
|
}
|
|
2001
2005
|
/// Returns true if `proprietary` has been explicitly set.
|
|
2002
|
-
public var hasProprietary: Bool {
|
|
2006
|
+
public var hasProprietary: Bool {self._proprietary != nil}
|
|
2003
2007
|
/// Clears the value of `proprietary`. Subsequent reads from it will return its default value.
|
|
2004
2008
|
public mutating func clearProprietary() {self._proprietary = nil}
|
|
2005
2009
|
|
|
@@ -2045,38 +2049,38 @@ public struct BlueOssSoDoorInfo: Sendable {
|
|
|
2045
2049
|
// methods supported on all messages.
|
|
2046
2050
|
|
|
2047
2051
|
public var id: UInt32 {
|
|
2048
|
-
get {
|
|
2052
|
+
get {_id ?? 0}
|
|
2049
2053
|
set {_id = newValue}
|
|
2050
2054
|
}
|
|
2051
2055
|
/// Returns true if `id` has been explicitly set.
|
|
2052
|
-
public var hasID: Bool {
|
|
2056
|
+
public var hasID: Bool {self._id != nil}
|
|
2053
2057
|
/// Clears the value of `id`. Subsequent reads from it will return its default value.
|
|
2054
2058
|
public mutating func clearID() {self._id = nil}
|
|
2055
2059
|
|
|
2056
2060
|
public var accessBy: BlueOssSoDoorInfoAccessBy {
|
|
2057
|
-
get {
|
|
2061
|
+
get {_accessBy ?? .doorGroupID}
|
|
2058
2062
|
set {_accessBy = newValue}
|
|
2059
2063
|
}
|
|
2060
2064
|
/// Returns true if `accessBy` has been explicitly set.
|
|
2061
|
-
public var hasAccessBy: Bool {
|
|
2065
|
+
public var hasAccessBy: Bool {self._accessBy != nil}
|
|
2062
2066
|
/// Clears the value of `accessBy`. Subsequent reads from it will return its default value.
|
|
2063
2067
|
public mutating func clearAccessBy() {self._accessBy = nil}
|
|
2064
2068
|
|
|
2065
2069
|
public var dtScheduleNumber: UInt32 {
|
|
2066
|
-
get {
|
|
2070
|
+
get {_dtScheduleNumber ?? 0}
|
|
2067
2071
|
set {_dtScheduleNumber = newValue}
|
|
2068
2072
|
}
|
|
2069
2073
|
/// Returns true if `dtScheduleNumber` has been explicitly set.
|
|
2070
|
-
public var hasDtScheduleNumber: Bool {
|
|
2074
|
+
public var hasDtScheduleNumber: Bool {self._dtScheduleNumber != nil}
|
|
2071
2075
|
/// Clears the value of `dtScheduleNumber`. Subsequent reads from it will return its default value.
|
|
2072
2076
|
public mutating func clearDtScheduleNumber() {self._dtScheduleNumber = nil}
|
|
2073
2077
|
|
|
2074
2078
|
public var accessType: BlueAccessType {
|
|
2075
|
-
get {
|
|
2079
|
+
get {_accessType ?? .defaultTime}
|
|
2076
2080
|
set {_accessType = newValue}
|
|
2077
2081
|
}
|
|
2078
2082
|
/// Returns true if `accessType` has been explicitly set.
|
|
2079
|
-
public var hasAccessType: Bool {
|
|
2083
|
+
public var hasAccessType: Bool {self._accessType != nil}
|
|
2080
2084
|
/// Clears the value of `accessType`. Subsequent reads from it will return its default value.
|
|
2081
2085
|
public mutating func clearAccessType() {self._accessType = nil}
|
|
2082
2086
|
|
|
@@ -2096,29 +2100,29 @@ public struct BlueOssSoEvent: Sendable {
|
|
|
2096
2100
|
// methods supported on all messages.
|
|
2097
2101
|
|
|
2098
2102
|
public var eventTime: BlueLocalTimestamp {
|
|
2099
|
-
get {
|
|
2103
|
+
get {_eventTime ?? BlueLocalTimestamp()}
|
|
2100
2104
|
set {_eventTime = newValue}
|
|
2101
2105
|
}
|
|
2102
2106
|
/// Returns true if `eventTime` has been explicitly set.
|
|
2103
|
-
public var hasEventTime: Bool {
|
|
2107
|
+
public var hasEventTime: Bool {self._eventTime != nil}
|
|
2104
2108
|
/// Clears the value of `eventTime`. Subsequent reads from it will return its default value.
|
|
2105
2109
|
public mutating func clearEventTime() {self._eventTime = nil}
|
|
2106
2110
|
|
|
2107
2111
|
public var doorID: UInt32 {
|
|
2108
|
-
get {
|
|
2112
|
+
get {_doorID ?? 0}
|
|
2109
2113
|
set {_doorID = newValue}
|
|
2110
2114
|
}
|
|
2111
2115
|
/// Returns true if `doorID` has been explicitly set.
|
|
2112
|
-
public var hasDoorID: Bool {
|
|
2116
|
+
public var hasDoorID: Bool {self._doorID != nil}
|
|
2113
2117
|
/// Clears the value of `doorID`. Subsequent reads from it will return its default value.
|
|
2114
2118
|
public mutating func clearDoorID() {self._doorID = nil}
|
|
2115
2119
|
|
|
2116
2120
|
public var eventID: BlueEventId {
|
|
2117
|
-
get {
|
|
2121
|
+
get {_eventID ?? .batteryLow}
|
|
2118
2122
|
set {_eventID = newValue}
|
|
2119
2123
|
}
|
|
2120
2124
|
/// Returns true if `eventID` has been explicitly set.
|
|
2121
|
-
public var hasEventID: Bool {
|
|
2125
|
+
public var hasEventID: Bool {self._eventID != nil}
|
|
2122
2126
|
/// Clears the value of `eventID`. Subsequent reads from it will return its default value.
|
|
2123
2127
|
public mutating func clearEventID() {self._eventID = nil}
|
|
2124
2128
|
|
|
@@ -2126,11 +2130,11 @@ public struct BlueOssSoEvent: Sendable {
|
|
|
2126
2130
|
/// If eventId = SystemEvent -> BlueEventInfoSystem
|
|
2127
2131
|
/// Otherwise unused
|
|
2128
2132
|
public var eventInfo: UInt32 {
|
|
2129
|
-
get {
|
|
2133
|
+
get {_eventInfo ?? 0}
|
|
2130
2134
|
set {_eventInfo = newValue}
|
|
2131
2135
|
}
|
|
2132
2136
|
/// Returns true if `eventInfo` has been explicitly set.
|
|
2133
|
-
public var hasEventInfo: Bool {
|
|
2137
|
+
public var hasEventInfo: Bool {self._eventInfo != nil}
|
|
2134
2138
|
/// Clears the value of `eventInfo`. Subsequent reads from it will return its default value.
|
|
2135
2139
|
public mutating func clearEventInfo() {self._eventInfo = nil}
|
|
2136
2140
|
|
|
@@ -2150,20 +2154,20 @@ public struct BlueOssSoExtFeature: Sendable {
|
|
|
2150
2154
|
// methods supported on all messages.
|
|
2151
2155
|
|
|
2152
2156
|
public var tag: UInt32 {
|
|
2153
|
-
get {
|
|
2157
|
+
get {_tag ?? 0}
|
|
2154
2158
|
set {_tag = newValue}
|
|
2155
2159
|
}
|
|
2156
2160
|
/// Returns true if `tag` has been explicitly set.
|
|
2157
|
-
public var hasTag: Bool {
|
|
2161
|
+
public var hasTag: Bool {self._tag != nil}
|
|
2158
2162
|
/// Clears the value of `tag`. Subsequent reads from it will return its default value.
|
|
2159
2163
|
public mutating func clearTag() {self._tag = nil}
|
|
2160
2164
|
|
|
2161
2165
|
public var value: Data {
|
|
2162
|
-
get {
|
|
2166
|
+
get {_value ?? Data()}
|
|
2163
2167
|
set {_value = newValue}
|
|
2164
2168
|
}
|
|
2165
2169
|
/// Returns true if `value` has been explicitly set.
|
|
2166
|
-
public var hasValue: Bool {
|
|
2170
|
+
public var hasValue: Bool {self._value != nil}
|
|
2167
2171
|
/// Clears the value of `value`. Subsequent reads from it will return its default value.
|
|
2168
2172
|
public mutating func clearValue() {self._value = nil}
|
|
2169
2173
|
|
|
@@ -2181,20 +2185,20 @@ public struct BlueOssSoExtFeature_ValidityStart: Sendable {
|
|
|
2181
2185
|
// methods supported on all messages.
|
|
2182
2186
|
|
|
2183
2187
|
public var isValid: Bool {
|
|
2184
|
-
get {
|
|
2188
|
+
get {_isValid ?? false}
|
|
2185
2189
|
set {_isValid = newValue}
|
|
2186
2190
|
}
|
|
2187
2191
|
/// Returns true if `isValid` has been explicitly set.
|
|
2188
|
-
public var hasIsValid: Bool {
|
|
2192
|
+
public var hasIsValid: Bool {self._isValid != nil}
|
|
2189
2193
|
/// Clears the value of `isValid`. Subsequent reads from it will return its default value.
|
|
2190
2194
|
public mutating func clearIsValid() {self._isValid = nil}
|
|
2191
2195
|
|
|
2192
2196
|
public var validityStartTime: BlueLocalTimestamp {
|
|
2193
|
-
get {
|
|
2197
|
+
get {_validityStartTime ?? BlueLocalTimestamp()}
|
|
2194
2198
|
set {_validityStartTime = newValue}
|
|
2195
2199
|
}
|
|
2196
2200
|
/// Returns true if `validityStartTime` has been explicitly set.
|
|
2197
|
-
public var hasValidityStartTime: Bool {
|
|
2201
|
+
public var hasValidityStartTime: Bool {self._validityStartTime != nil}
|
|
2198
2202
|
/// Clears the value of `validityStartTime`. Subsequent reads from it will return its default value.
|
|
2199
2203
|
public mutating func clearValidityStartTime() {self._validityStartTime = nil}
|
|
2200
2204
|
|
|
@@ -2212,56 +2216,56 @@ public struct BlueOssSoFileInfo: Sendable {
|
|
|
2212
2216
|
// methods supported on all messages.
|
|
2213
2217
|
|
|
2214
2218
|
public var versionMajor: UInt32 {
|
|
2215
|
-
get {
|
|
2219
|
+
get {_versionMajor ?? 0}
|
|
2216
2220
|
set {_versionMajor = newValue}
|
|
2217
2221
|
}
|
|
2218
2222
|
/// Returns true if `versionMajor` has been explicitly set.
|
|
2219
|
-
public var hasVersionMajor: Bool {
|
|
2223
|
+
public var hasVersionMajor: Bool {self._versionMajor != nil}
|
|
2220
2224
|
/// Clears the value of `versionMajor`. Subsequent reads from it will return its default value.
|
|
2221
2225
|
public mutating func clearVersionMajor() {self._versionMajor = nil}
|
|
2222
2226
|
|
|
2223
2227
|
public var versionMinor: UInt32 {
|
|
2224
|
-
get {
|
|
2228
|
+
get {_versionMinor ?? 0}
|
|
2225
2229
|
set {_versionMinor = newValue}
|
|
2226
2230
|
}
|
|
2227
2231
|
/// Returns true if `versionMinor` has been explicitly set.
|
|
2228
|
-
public var hasVersionMinor: Bool {
|
|
2232
|
+
public var hasVersionMinor: Bool {self._versionMinor != nil}
|
|
2229
2233
|
/// Clears the value of `versionMinor`. Subsequent reads from it will return its default value.
|
|
2230
2234
|
public mutating func clearVersionMinor() {self._versionMinor = nil}
|
|
2231
2235
|
|
|
2232
2236
|
public var credentialType: BlueOssSoCredentialType {
|
|
2233
|
-
get {
|
|
2237
|
+
get {_credentialType ?? BlueOssSoCredentialType()}
|
|
2234
2238
|
set {_credentialType = newValue}
|
|
2235
2239
|
}
|
|
2236
2240
|
/// Returns true if `credentialType` has been explicitly set.
|
|
2237
|
-
public var hasCredentialType: Bool {
|
|
2241
|
+
public var hasCredentialType: Bool {self._credentialType != nil}
|
|
2238
2242
|
/// Clears the value of `credentialType`. Subsequent reads from it will return its default value.
|
|
2239
2243
|
public mutating func clearCredentialType() {self._credentialType = nil}
|
|
2240
2244
|
|
|
2241
2245
|
public var credentialID: BlueCredentialId {
|
|
2242
|
-
get {
|
|
2246
|
+
get {_credentialID ?? BlueCredentialId()}
|
|
2243
2247
|
set {_credentialID = newValue}
|
|
2244
2248
|
}
|
|
2245
2249
|
/// Returns true if `credentialID` has been explicitly set.
|
|
2246
|
-
public var hasCredentialID: Bool {
|
|
2250
|
+
public var hasCredentialID: Bool {self._credentialID != nil}
|
|
2247
2251
|
/// Clears the value of `credentialID`. Subsequent reads from it will return its default value.
|
|
2248
2252
|
public mutating func clearCredentialID() {self._credentialID = nil}
|
|
2249
2253
|
|
|
2250
2254
|
public var maxEventEntries: UInt32 {
|
|
2251
|
-
get {
|
|
2255
|
+
get {_maxEventEntries ?? 0}
|
|
2252
2256
|
set {_maxEventEntries = newValue}
|
|
2253
2257
|
}
|
|
2254
2258
|
/// Returns true if `maxEventEntries` has been explicitly set.
|
|
2255
|
-
public var hasMaxEventEntries: Bool {
|
|
2259
|
+
public var hasMaxEventEntries: Bool {self._maxEventEntries != nil}
|
|
2256
2260
|
/// Clears the value of `maxEventEntries`. Subsequent reads from it will return its default value.
|
|
2257
2261
|
public mutating func clearMaxEventEntries() {self._maxEventEntries = nil}
|
|
2258
2262
|
|
|
2259
2263
|
public var maxBlacklistEntries: UInt32 {
|
|
2260
|
-
get {
|
|
2264
|
+
get {_maxBlacklistEntries ?? 0}
|
|
2261
2265
|
set {_maxBlacklistEntries = newValue}
|
|
2262
2266
|
}
|
|
2263
2267
|
/// Returns true if `maxBlacklistEntries` has been explicitly set.
|
|
2264
|
-
public var hasMaxBlacklistEntries: Bool {
|
|
2268
|
+
public var hasMaxBlacklistEntries: Bool {self._maxBlacklistEntries != nil}
|
|
2265
2269
|
/// Clears the value of `maxBlacklistEntries`. Subsequent reads from it will return its default value.
|
|
2266
2270
|
public mutating func clearMaxBlacklistEntries() {self._maxBlacklistEntries = nil}
|
|
2267
2271
|
|
|
@@ -2283,47 +2287,47 @@ public struct BlueOssSoFileData: Sendable {
|
|
|
2283
2287
|
// methods supported on all messages.
|
|
2284
2288
|
|
|
2285
2289
|
public var validity: BlueLocalTimestamp {
|
|
2286
|
-
get {
|
|
2290
|
+
get {_validity ?? BlueLocalTimestamp()}
|
|
2287
2291
|
set {_validity = newValue}
|
|
2288
2292
|
}
|
|
2289
2293
|
/// Returns true if `validity` has been explicitly set.
|
|
2290
|
-
public var hasValidity: Bool {
|
|
2294
|
+
public var hasValidity: Bool {self._validity != nil}
|
|
2291
2295
|
/// Clears the value of `validity`. Subsequent reads from it will return its default value.
|
|
2292
2296
|
public mutating func clearValidity() {self._validity = nil}
|
|
2293
2297
|
|
|
2294
2298
|
public var siteID: UInt32 {
|
|
2295
|
-
get {
|
|
2299
|
+
get {_siteID ?? 0}
|
|
2296
2300
|
set {_siteID = newValue}
|
|
2297
2301
|
}
|
|
2298
2302
|
/// Returns true if `siteID` has been explicitly set.
|
|
2299
|
-
public var hasSiteID: Bool {
|
|
2303
|
+
public var hasSiteID: Bool {self._siteID != nil}
|
|
2300
2304
|
/// Clears the value of `siteID`. Subsequent reads from it will return its default value.
|
|
2301
2305
|
public mutating func clearSiteID() {self._siteID = nil}
|
|
2302
2306
|
|
|
2303
2307
|
public var numberOfDayIdsPerDtschedule: UInt32 {
|
|
2304
|
-
get {
|
|
2308
|
+
get {_numberOfDayIdsPerDtschedule ?? 0}
|
|
2305
2309
|
set {_numberOfDayIdsPerDtschedule = newValue}
|
|
2306
2310
|
}
|
|
2307
2311
|
/// Returns true if `numberOfDayIdsPerDtschedule` has been explicitly set.
|
|
2308
|
-
public var hasNumberOfDayIdsPerDtschedule: Bool {
|
|
2312
|
+
public var hasNumberOfDayIdsPerDtschedule: Bool {self._numberOfDayIdsPerDtschedule != nil}
|
|
2309
2313
|
/// Clears the value of `numberOfDayIdsPerDtschedule`. Subsequent reads from it will return its default value.
|
|
2310
2314
|
public mutating func clearNumberOfDayIdsPerDtschedule() {self._numberOfDayIdsPerDtschedule = nil}
|
|
2311
2315
|
|
|
2312
2316
|
public var numberOfTimePeriodsPerDayID: UInt32 {
|
|
2313
|
-
get {
|
|
2317
|
+
get {_numberOfTimePeriodsPerDayID ?? 0}
|
|
2314
2318
|
set {_numberOfTimePeriodsPerDayID = newValue}
|
|
2315
2319
|
}
|
|
2316
2320
|
/// Returns true if `numberOfTimePeriodsPerDayID` has been explicitly set.
|
|
2317
|
-
public var hasNumberOfTimePeriodsPerDayID: Bool {
|
|
2321
|
+
public var hasNumberOfTimePeriodsPerDayID: Bool {self._numberOfTimePeriodsPerDayID != nil}
|
|
2318
2322
|
/// Clears the value of `numberOfTimePeriodsPerDayID`. Subsequent reads from it will return its default value.
|
|
2319
2323
|
public mutating func clearNumberOfTimePeriodsPerDayID() {self._numberOfTimePeriodsPerDayID = nil}
|
|
2320
2324
|
|
|
2321
2325
|
public var hasExtensions_p: Bool {
|
|
2322
|
-
get {
|
|
2326
|
+
get {_hasExtensions_p ?? false}
|
|
2323
2327
|
set {_hasExtensions_p = newValue}
|
|
2324
2328
|
}
|
|
2325
2329
|
/// Returns true if `hasExtensions_p` has been explicitly set.
|
|
2326
|
-
public var hasHasExtensions_p: Bool {
|
|
2330
|
+
public var hasHasExtensions_p: Bool {self._hasExtensions_p != nil}
|
|
2327
2331
|
/// Clears the value of `hasExtensions_p`. Subsequent reads from it will return its default value.
|
|
2328
2332
|
public mutating func clearHasExtensions_p() {self._hasExtensions_p = nil}
|
|
2329
2333
|
|
|
@@ -2349,11 +2353,11 @@ public struct BlueOssSoFileEvent: Sendable {
|
|
|
2349
2353
|
|
|
2350
2354
|
/// TODO : max_count must always equal MaxOssSoEventId - 1
|
|
2351
2355
|
public var supportedEventIds: Data {
|
|
2352
|
-
get {
|
|
2356
|
+
get {_supportedEventIds ?? Data()}
|
|
2353
2357
|
set {_supportedEventIds = newValue}
|
|
2354
2358
|
}
|
|
2355
2359
|
/// Returns true if `supportedEventIds` has been explicitly set.
|
|
2356
|
-
public var hasSupportedEventIds: Bool {
|
|
2360
|
+
public var hasSupportedEventIds: Bool {self._supportedEventIds != nil}
|
|
2357
2361
|
/// Clears the value of `supportedEventIds`. Subsequent reads from it will return its default value.
|
|
2358
2362
|
public mutating func clearSupportedEventIds() {self._supportedEventIds = nil}
|
|
2359
2363
|
|
|
@@ -2388,11 +2392,11 @@ public struct BlueOssSoFileCustomerExtensions: Sendable {
|
|
|
2388
2392
|
///
|
|
2389
2393
|
/// -- Known features --
|
|
2390
2394
|
public var validityStart: BlueOssSoExtFeature_ValidityStart {
|
|
2391
|
-
get {
|
|
2395
|
+
get {_validityStart ?? BlueOssSoExtFeature_ValidityStart()}
|
|
2392
2396
|
set {_validityStart = newValue}
|
|
2393
2397
|
}
|
|
2394
2398
|
/// Returns true if `validityStart` has been explicitly set.
|
|
2395
|
-
public var hasValidityStart: Bool {
|
|
2399
|
+
public var hasValidityStart: Bool {self._validityStart != nil}
|
|
2396
2400
|
/// Clears the value of `validityStart`. Subsequent reads from it will return its default value.
|
|
2397
2401
|
public mutating func clearValidityStart() {self._validityStart = nil}
|
|
2398
2402
|
|
|
@@ -2409,47 +2413,47 @@ public struct BlueOssSoConfiguration: @unchecked Sendable {
|
|
|
2409
2413
|
// methods supported on all messages.
|
|
2410
2414
|
|
|
2411
2415
|
public var info: BlueOssSoFileInfo {
|
|
2412
|
-
get {
|
|
2416
|
+
get {_storage._info ?? BlueOssSoFileInfo()}
|
|
2413
2417
|
set {_uniqueStorage()._info = newValue}
|
|
2414
2418
|
}
|
|
2415
2419
|
/// Returns true if `info` has been explicitly set.
|
|
2416
|
-
public var hasInfo: Bool {
|
|
2420
|
+
public var hasInfo: Bool {_storage._info != nil}
|
|
2417
2421
|
/// Clears the value of `info`. Subsequent reads from it will return its default value.
|
|
2418
2422
|
public mutating func clearInfo() {_uniqueStorage()._info = nil}
|
|
2419
2423
|
|
|
2420
2424
|
public var data: BlueOssSoFileData {
|
|
2421
|
-
get {
|
|
2425
|
+
get {_storage._data ?? BlueOssSoFileData()}
|
|
2422
2426
|
set {_uniqueStorage()._data = newValue}
|
|
2423
2427
|
}
|
|
2424
2428
|
/// Returns true if `data` has been explicitly set.
|
|
2425
|
-
public var hasData: Bool {
|
|
2429
|
+
public var hasData: Bool {_storage._data != nil}
|
|
2426
2430
|
/// Clears the value of `data`. Subsequent reads from it will return its default value.
|
|
2427
2431
|
public mutating func clearData() {_uniqueStorage()._data = nil}
|
|
2428
2432
|
|
|
2429
2433
|
public var event: BlueOssSoFileEvent {
|
|
2430
|
-
get {
|
|
2434
|
+
get {_storage._event ?? BlueOssSoFileEvent()}
|
|
2431
2435
|
set {_uniqueStorage()._event = newValue}
|
|
2432
2436
|
}
|
|
2433
2437
|
/// Returns true if `event` has been explicitly set.
|
|
2434
|
-
public var hasEvent: Bool {
|
|
2438
|
+
public var hasEvent: Bool {_storage._event != nil}
|
|
2435
2439
|
/// Clears the value of `event`. Subsequent reads from it will return its default value.
|
|
2436
2440
|
public mutating func clearEvent() {_uniqueStorage()._event = nil}
|
|
2437
2441
|
|
|
2438
2442
|
public var blacklist: BlueOssSoFileBlacklist {
|
|
2439
|
-
get {
|
|
2443
|
+
get {_storage._blacklist ?? BlueOssSoFileBlacklist()}
|
|
2440
2444
|
set {_uniqueStorage()._blacklist = newValue}
|
|
2441
2445
|
}
|
|
2442
2446
|
/// Returns true if `blacklist` has been explicitly set.
|
|
2443
|
-
public var hasBlacklist: Bool {
|
|
2447
|
+
public var hasBlacklist: Bool {_storage._blacklist != nil}
|
|
2444
2448
|
/// Clears the value of `blacklist`. Subsequent reads from it will return its default value.
|
|
2445
2449
|
public mutating func clearBlacklist() {_uniqueStorage()._blacklist = nil}
|
|
2446
2450
|
|
|
2447
2451
|
public var customerExtensions: BlueOssSoFileCustomerExtensions {
|
|
2448
|
-
get {
|
|
2452
|
+
get {_storage._customerExtensions ?? BlueOssSoFileCustomerExtensions()}
|
|
2449
2453
|
set {_uniqueStorage()._customerExtensions = newValue}
|
|
2450
2454
|
}
|
|
2451
2455
|
/// Returns true if `customerExtensions` has been explicitly set.
|
|
2452
|
-
public var hasCustomerExtensions: Bool {
|
|
2456
|
+
public var hasCustomerExtensions: Bool {_storage._customerExtensions != nil}
|
|
2453
2457
|
/// Clears the value of `customerExtensions`. Subsequent reads from it will return its default value.
|
|
2454
2458
|
public mutating func clearCustomerExtensions() {_uniqueStorage()._customerExtensions = nil}
|
|
2455
2459
|
|
|
@@ -2466,110 +2470,110 @@ public struct BlueOssSoStorageProfile: Sendable {
|
|
|
2466
2470
|
// methods supported on all messages.
|
|
2467
2471
|
|
|
2468
2472
|
public var dataLength: UInt32 {
|
|
2469
|
-
get {
|
|
2473
|
+
get {_dataLength ?? 0}
|
|
2470
2474
|
set {_dataLength = newValue}
|
|
2471
2475
|
}
|
|
2472
2476
|
/// Returns true if `dataLength` has been explicitly set.
|
|
2473
|
-
public var hasDataLength: Bool {
|
|
2477
|
+
public var hasDataLength: Bool {self._dataLength != nil}
|
|
2474
2478
|
/// Clears the value of `dataLength`. Subsequent reads from it will return its default value.
|
|
2475
2479
|
public mutating func clearDataLength() {self._dataLength = nil}
|
|
2476
2480
|
|
|
2477
2481
|
public var fileSize: UInt32 {
|
|
2478
|
-
get {
|
|
2482
|
+
get {_fileSize ?? 0}
|
|
2479
2483
|
set {_fileSize = newValue}
|
|
2480
2484
|
}
|
|
2481
2485
|
/// Returns true if `fileSize` has been explicitly set.
|
|
2482
|
-
public var hasFileSize: Bool {
|
|
2486
|
+
public var hasFileSize: Bool {self._fileSize != nil}
|
|
2483
2487
|
/// Clears the value of `fileSize`. Subsequent reads from it will return its default value.
|
|
2484
2488
|
public mutating func clearFileSize() {self._fileSize = nil}
|
|
2485
2489
|
|
|
2486
2490
|
public var infoDataLength: UInt32 {
|
|
2487
|
-
get {
|
|
2491
|
+
get {_infoDataLength ?? 0}
|
|
2488
2492
|
set {_infoDataLength = newValue}
|
|
2489
2493
|
}
|
|
2490
2494
|
/// Returns true if `infoDataLength` has been explicitly set.
|
|
2491
|
-
public var hasInfoDataLength: Bool {
|
|
2495
|
+
public var hasInfoDataLength: Bool {self._infoDataLength != nil}
|
|
2492
2496
|
/// Clears the value of `infoDataLength`. Subsequent reads from it will return its default value.
|
|
2493
2497
|
public mutating func clearInfoDataLength() {self._infoDataLength = nil}
|
|
2494
2498
|
|
|
2495
2499
|
public var infoFileSize: UInt32 {
|
|
2496
|
-
get {
|
|
2500
|
+
get {_infoFileSize ?? 0}
|
|
2497
2501
|
set {_infoFileSize = newValue}
|
|
2498
2502
|
}
|
|
2499
2503
|
/// Returns true if `infoFileSize` has been explicitly set.
|
|
2500
|
-
public var hasInfoFileSize: Bool {
|
|
2504
|
+
public var hasInfoFileSize: Bool {self._infoFileSize != nil}
|
|
2501
2505
|
/// Clears the value of `infoFileSize`. Subsequent reads from it will return its default value.
|
|
2502
2506
|
public mutating func clearInfoFileSize() {self._infoFileSize = nil}
|
|
2503
2507
|
|
|
2504
2508
|
public var dataDataLength: UInt32 {
|
|
2505
|
-
get {
|
|
2509
|
+
get {_dataDataLength ?? 0}
|
|
2506
2510
|
set {_dataDataLength = newValue}
|
|
2507
2511
|
}
|
|
2508
2512
|
/// Returns true if `dataDataLength` has been explicitly set.
|
|
2509
|
-
public var hasDataDataLength: Bool {
|
|
2513
|
+
public var hasDataDataLength: Bool {self._dataDataLength != nil}
|
|
2510
2514
|
/// Clears the value of `dataDataLength`. Subsequent reads from it will return its default value.
|
|
2511
2515
|
public mutating func clearDataDataLength() {self._dataDataLength = nil}
|
|
2512
2516
|
|
|
2513
2517
|
public var dataFileSize: UInt32 {
|
|
2514
|
-
get {
|
|
2518
|
+
get {_dataFileSize ?? 0}
|
|
2515
2519
|
set {_dataFileSize = newValue}
|
|
2516
2520
|
}
|
|
2517
2521
|
/// Returns true if `dataFileSize` has been explicitly set.
|
|
2518
|
-
public var hasDataFileSize: Bool {
|
|
2522
|
+
public var hasDataFileSize: Bool {self._dataFileSize != nil}
|
|
2519
2523
|
/// Clears the value of `dataFileSize`. Subsequent reads from it will return its default value.
|
|
2520
2524
|
public mutating func clearDataFileSize() {self._dataFileSize = nil}
|
|
2521
2525
|
|
|
2522
2526
|
public var eventDataLength: UInt32 {
|
|
2523
|
-
get {
|
|
2527
|
+
get {_eventDataLength ?? 0}
|
|
2524
2528
|
set {_eventDataLength = newValue}
|
|
2525
2529
|
}
|
|
2526
2530
|
/// Returns true if `eventDataLength` has been explicitly set.
|
|
2527
|
-
public var hasEventDataLength: Bool {
|
|
2531
|
+
public var hasEventDataLength: Bool {self._eventDataLength != nil}
|
|
2528
2532
|
/// Clears the value of `eventDataLength`. Subsequent reads from it will return its default value.
|
|
2529
2533
|
public mutating func clearEventDataLength() {self._eventDataLength = nil}
|
|
2530
2534
|
|
|
2531
2535
|
public var eventFileSize: UInt32 {
|
|
2532
|
-
get {
|
|
2536
|
+
get {_eventFileSize ?? 0}
|
|
2533
2537
|
set {_eventFileSize = newValue}
|
|
2534
2538
|
}
|
|
2535
2539
|
/// Returns true if `eventFileSize` has been explicitly set.
|
|
2536
|
-
public var hasEventFileSize: Bool {
|
|
2540
|
+
public var hasEventFileSize: Bool {self._eventFileSize != nil}
|
|
2537
2541
|
/// Clears the value of `eventFileSize`. Subsequent reads from it will return its default value.
|
|
2538
2542
|
public mutating func clearEventFileSize() {self._eventFileSize = nil}
|
|
2539
2543
|
|
|
2540
2544
|
public var blacklistDataLength: UInt32 {
|
|
2541
|
-
get {
|
|
2545
|
+
get {_blacklistDataLength ?? 0}
|
|
2542
2546
|
set {_blacklistDataLength = newValue}
|
|
2543
2547
|
}
|
|
2544
2548
|
/// Returns true if `blacklistDataLength` has been explicitly set.
|
|
2545
|
-
public var hasBlacklistDataLength: Bool {
|
|
2549
|
+
public var hasBlacklistDataLength: Bool {self._blacklistDataLength != nil}
|
|
2546
2550
|
/// Clears the value of `blacklistDataLength`. Subsequent reads from it will return its default value.
|
|
2547
2551
|
public mutating func clearBlacklistDataLength() {self._blacklistDataLength = nil}
|
|
2548
2552
|
|
|
2549
2553
|
public var blacklistFileSize: UInt32 {
|
|
2550
|
-
get {
|
|
2554
|
+
get {_blacklistFileSize ?? 0}
|
|
2551
2555
|
set {_blacklistFileSize = newValue}
|
|
2552
2556
|
}
|
|
2553
2557
|
/// Returns true if `blacklistFileSize` has been explicitly set.
|
|
2554
|
-
public var hasBlacklistFileSize: Bool {
|
|
2558
|
+
public var hasBlacklistFileSize: Bool {self._blacklistFileSize != nil}
|
|
2555
2559
|
/// Clears the value of `blacklistFileSize`. Subsequent reads from it will return its default value.
|
|
2556
2560
|
public mutating func clearBlacklistFileSize() {self._blacklistFileSize = nil}
|
|
2557
2561
|
|
|
2558
2562
|
public var customerExtensionsDataLength: UInt32 {
|
|
2559
|
-
get {
|
|
2563
|
+
get {_customerExtensionsDataLength ?? 0}
|
|
2560
2564
|
set {_customerExtensionsDataLength = newValue}
|
|
2561
2565
|
}
|
|
2562
2566
|
/// Returns true if `customerExtensionsDataLength` has been explicitly set.
|
|
2563
|
-
public var hasCustomerExtensionsDataLength: Bool {
|
|
2567
|
+
public var hasCustomerExtensionsDataLength: Bool {self._customerExtensionsDataLength != nil}
|
|
2564
2568
|
/// Clears the value of `customerExtensionsDataLength`. Subsequent reads from it will return its default value.
|
|
2565
2569
|
public mutating func clearCustomerExtensionsDataLength() {self._customerExtensionsDataLength = nil}
|
|
2566
2570
|
|
|
2567
2571
|
public var customerExtensionsFileSize: UInt32 {
|
|
2568
|
-
get {
|
|
2572
|
+
get {_customerExtensionsFileSize ?? 0}
|
|
2569
2573
|
set {_customerExtensionsFileSize = newValue}
|
|
2570
2574
|
}
|
|
2571
2575
|
/// Returns true if `customerExtensionsFileSize` has been explicitly set.
|
|
2572
|
-
public var hasCustomerExtensionsFileSize: Bool {
|
|
2576
|
+
public var hasCustomerExtensionsFileSize: Bool {self._customerExtensionsFileSize != nil}
|
|
2573
2577
|
/// Clears the value of `customerExtensionsFileSize`. Subsequent reads from it will return its default value.
|
|
2574
2578
|
public mutating func clearCustomerExtensionsFileSize() {self._customerExtensionsFileSize = nil}
|
|
2575
2579
|
|
|
@@ -2597,85 +2601,85 @@ public struct BlueOssSoProvisioningConfiguration: Sendable {
|
|
|
2597
2601
|
// methods supported on all messages.
|
|
2598
2602
|
|
|
2599
2603
|
public var numberOfDoors: UInt32 {
|
|
2600
|
-
get {
|
|
2604
|
+
get {_numberOfDoors ?? 0}
|
|
2601
2605
|
set {_numberOfDoors = newValue}
|
|
2602
2606
|
}
|
|
2603
2607
|
/// Returns true if `numberOfDoors` has been explicitly set.
|
|
2604
|
-
public var hasNumberOfDoors: Bool {
|
|
2608
|
+
public var hasNumberOfDoors: Bool {self._numberOfDoors != nil}
|
|
2605
2609
|
/// Clears the value of `numberOfDoors`. Subsequent reads from it will return its default value.
|
|
2606
2610
|
public mutating func clearNumberOfDoors() {self._numberOfDoors = nil}
|
|
2607
2611
|
|
|
2608
2612
|
public var numberOfDtschedules: UInt32 {
|
|
2609
|
-
get {
|
|
2613
|
+
get {_numberOfDtschedules ?? 0}
|
|
2610
2614
|
set {_numberOfDtschedules = newValue}
|
|
2611
2615
|
}
|
|
2612
2616
|
/// Returns true if `numberOfDtschedules` has been explicitly set.
|
|
2613
|
-
public var hasNumberOfDtschedules: Bool {
|
|
2617
|
+
public var hasNumberOfDtschedules: Bool {self._numberOfDtschedules != nil}
|
|
2614
2618
|
/// Clears the value of `numberOfDtschedules`. Subsequent reads from it will return its default value.
|
|
2615
2619
|
public mutating func clearNumberOfDtschedules() {self._numberOfDtschedules = nil}
|
|
2616
2620
|
|
|
2617
2621
|
public var numberOfDayIdsPerDtschedule: UInt32 {
|
|
2618
|
-
get {
|
|
2622
|
+
get {_numberOfDayIdsPerDtschedule ?? 0}
|
|
2619
2623
|
set {_numberOfDayIdsPerDtschedule = newValue}
|
|
2620
2624
|
}
|
|
2621
2625
|
/// Returns true if `numberOfDayIdsPerDtschedule` has been explicitly set.
|
|
2622
|
-
public var hasNumberOfDayIdsPerDtschedule: Bool {
|
|
2626
|
+
public var hasNumberOfDayIdsPerDtschedule: Bool {self._numberOfDayIdsPerDtschedule != nil}
|
|
2623
2627
|
/// Clears the value of `numberOfDayIdsPerDtschedule`. Subsequent reads from it will return its default value.
|
|
2624
2628
|
public mutating func clearNumberOfDayIdsPerDtschedule() {self._numberOfDayIdsPerDtschedule = nil}
|
|
2625
2629
|
|
|
2626
2630
|
public var numberOfTimePeriodsPerDayID: UInt32 {
|
|
2627
|
-
get {
|
|
2631
|
+
get {_numberOfTimePeriodsPerDayID ?? 0}
|
|
2628
2632
|
set {_numberOfTimePeriodsPerDayID = newValue}
|
|
2629
2633
|
}
|
|
2630
2634
|
/// Returns true if `numberOfTimePeriodsPerDayID` has been explicitly set.
|
|
2631
|
-
public var hasNumberOfTimePeriodsPerDayID: Bool {
|
|
2635
|
+
public var hasNumberOfTimePeriodsPerDayID: Bool {self._numberOfTimePeriodsPerDayID != nil}
|
|
2632
2636
|
/// Clears the value of `numberOfTimePeriodsPerDayID`. Subsequent reads from it will return its default value.
|
|
2633
2637
|
public mutating func clearNumberOfTimePeriodsPerDayID() {self._numberOfTimePeriodsPerDayID = nil}
|
|
2634
2638
|
|
|
2635
2639
|
public var numberOfEvents: UInt32 {
|
|
2636
|
-
get {
|
|
2640
|
+
get {_numberOfEvents ?? 0}
|
|
2637
2641
|
set {_numberOfEvents = newValue}
|
|
2638
2642
|
}
|
|
2639
2643
|
/// Returns true if `numberOfEvents` has been explicitly set.
|
|
2640
|
-
public var hasNumberOfEvents: Bool {
|
|
2644
|
+
public var hasNumberOfEvents: Bool {self._numberOfEvents != nil}
|
|
2641
2645
|
/// Clears the value of `numberOfEvents`. Subsequent reads from it will return its default value.
|
|
2642
2646
|
public mutating func clearNumberOfEvents() {self._numberOfEvents = nil}
|
|
2643
2647
|
|
|
2644
2648
|
/// TODO : max_count must always equal MaxOssSoEventId - 1
|
|
2645
2649
|
public var supportedEventIds: Data {
|
|
2646
|
-
get {
|
|
2650
|
+
get {_supportedEventIds ?? Data()}
|
|
2647
2651
|
set {_supportedEventIds = newValue}
|
|
2648
2652
|
}
|
|
2649
2653
|
/// Returns true if `supportedEventIds` has been explicitly set.
|
|
2650
|
-
public var hasSupportedEventIds: Bool {
|
|
2654
|
+
public var hasSupportedEventIds: Bool {self._supportedEventIds != nil}
|
|
2651
2655
|
/// Clears the value of `supportedEventIds`. Subsequent reads from it will return its default value.
|
|
2652
2656
|
public mutating func clearSupportedEventIds() {self._supportedEventIds = nil}
|
|
2653
2657
|
|
|
2654
2658
|
public var numberOfBlacklistEntries: UInt32 {
|
|
2655
|
-
get {
|
|
2659
|
+
get {_numberOfBlacklistEntries ?? 0}
|
|
2656
2660
|
set {_numberOfBlacklistEntries = newValue}
|
|
2657
2661
|
}
|
|
2658
2662
|
/// Returns true if `numberOfBlacklistEntries` has been explicitly set.
|
|
2659
|
-
public var hasNumberOfBlacklistEntries: Bool {
|
|
2663
|
+
public var hasNumberOfBlacklistEntries: Bool {self._numberOfBlacklistEntries != nil}
|
|
2660
2664
|
/// Clears the value of `numberOfBlacklistEntries`. Subsequent reads from it will return its default value.
|
|
2661
2665
|
public mutating func clearNumberOfBlacklistEntries() {self._numberOfBlacklistEntries = nil}
|
|
2662
2666
|
|
|
2663
2667
|
public var customerExtensionsSize: UInt32 {
|
|
2664
|
-
get {
|
|
2668
|
+
get {_customerExtensionsSize ?? 0}
|
|
2665
2669
|
set {_customerExtensionsSize = newValue}
|
|
2666
2670
|
}
|
|
2667
2671
|
/// Returns true if `customerExtensionsSize` has been explicitly set.
|
|
2668
|
-
public var hasCustomerExtensionsSize: Bool {
|
|
2672
|
+
public var hasCustomerExtensionsSize: Bool {self._customerExtensionsSize != nil}
|
|
2669
2673
|
/// Clears the value of `customerExtensionsSize`. Subsequent reads from it will return its default value.
|
|
2670
2674
|
public mutating func clearCustomerExtensionsSize() {self._customerExtensionsSize = nil}
|
|
2671
2675
|
|
|
2672
2676
|
/// if it is true then create data file according to configuration. This will use to not create data file at all for emergency key
|
|
2673
2677
|
public var hasData_p: Bool {
|
|
2674
|
-
get {
|
|
2678
|
+
get {_hasData_p ?? true}
|
|
2675
2679
|
set {_hasData_p = newValue}
|
|
2676
2680
|
}
|
|
2677
2681
|
/// Returns true if `hasData_p` has been explicitly set.
|
|
2678
|
-
public var hasHasData_p: Bool {
|
|
2682
|
+
public var hasHasData_p: Bool {self._hasData_p != nil}
|
|
2679
2683
|
/// Clears the value of `hasData_p`. Subsequent reads from it will return its default value.
|
|
2680
2684
|
public mutating func clearHasData_p() {self._hasData_p = nil}
|
|
2681
2685
|
|
|
@@ -2701,38 +2705,38 @@ public struct BlueOssSoProvisioningData: Sendable {
|
|
|
2701
2705
|
|
|
2702
2706
|
/// If not set, uses default from storage
|
|
2703
2707
|
public var configuration: BlueOssSoProvisioningConfiguration {
|
|
2704
|
-
get {
|
|
2708
|
+
get {_configuration ?? BlueOssSoProvisioningConfiguration()}
|
|
2705
2709
|
set {_configuration = newValue}
|
|
2706
2710
|
}
|
|
2707
2711
|
/// Returns true if `configuration` has been explicitly set.
|
|
2708
|
-
public var hasConfiguration: Bool {
|
|
2712
|
+
public var hasConfiguration: Bool {self._configuration != nil}
|
|
2709
2713
|
/// Clears the value of `configuration`. Subsequent reads from it will return its default value.
|
|
2710
2714
|
public mutating func clearConfiguration() {self._configuration = nil}
|
|
2711
2715
|
|
|
2712
2716
|
public var credentialType: BlueOssSoCredentialType {
|
|
2713
|
-
get {
|
|
2717
|
+
get {_credentialType ?? BlueOssSoCredentialType()}
|
|
2714
2718
|
set {_credentialType = newValue}
|
|
2715
2719
|
}
|
|
2716
2720
|
/// Returns true if `credentialType` has been explicitly set.
|
|
2717
|
-
public var hasCredentialType: Bool {
|
|
2721
|
+
public var hasCredentialType: Bool {self._credentialType != nil}
|
|
2718
2722
|
/// Clears the value of `credentialType`. Subsequent reads from it will return its default value.
|
|
2719
2723
|
public mutating func clearCredentialType() {self._credentialType = nil}
|
|
2720
2724
|
|
|
2721
2725
|
public var credentialID: BlueCredentialId {
|
|
2722
|
-
get {
|
|
2726
|
+
get {_credentialID ?? BlueCredentialId()}
|
|
2723
2727
|
set {_credentialID = newValue}
|
|
2724
2728
|
}
|
|
2725
2729
|
/// Returns true if `credentialID` has been explicitly set.
|
|
2726
|
-
public var hasCredentialID: Bool {
|
|
2730
|
+
public var hasCredentialID: Bool {self._credentialID != nil}
|
|
2727
2731
|
/// Clears the value of `credentialID`. Subsequent reads from it will return its default value.
|
|
2728
2732
|
public mutating func clearCredentialID() {self._credentialID = nil}
|
|
2729
2733
|
|
|
2730
2734
|
public var siteID: UInt32 {
|
|
2731
|
-
get {
|
|
2735
|
+
get {_siteID ?? 0}
|
|
2732
2736
|
set {_siteID = newValue}
|
|
2733
2737
|
}
|
|
2734
2738
|
/// Returns true if `siteID` has been explicitly set.
|
|
2735
|
-
public var hasSiteID: Bool {
|
|
2739
|
+
public var hasSiteID: Bool {self._siteID != nil}
|
|
2736
2740
|
/// Clears the value of `siteID`. Subsequent reads from it will return its default value.
|
|
2737
2741
|
public mutating func clearSiteID() {self._siteID = nil}
|
|
2738
2742
|
|
|
@@ -2752,58 +2756,58 @@ public struct BlueOssSoMobile: Sendable {
|
|
|
2752
2756
|
// methods supported on all messages.
|
|
2753
2757
|
|
|
2754
2758
|
public var infoFile: Data {
|
|
2755
|
-
get {
|
|
2759
|
+
get {_infoFile ?? Data()}
|
|
2756
2760
|
set {_infoFile = newValue}
|
|
2757
2761
|
}
|
|
2758
2762
|
/// Returns true if `infoFile` has been explicitly set.
|
|
2759
|
-
public var hasInfoFile: Bool {
|
|
2763
|
+
public var hasInfoFile: Bool {self._infoFile != nil}
|
|
2760
2764
|
/// Clears the value of `infoFile`. Subsequent reads from it will return its default value.
|
|
2761
2765
|
public mutating func clearInfoFile() {self._infoFile = nil}
|
|
2762
2766
|
|
|
2763
2767
|
/// 1 door
|
|
2764
2768
|
public var dataFile: Data {
|
|
2765
|
-
get {
|
|
2769
|
+
get {_dataFile ?? Data()}
|
|
2766
2770
|
set {_dataFile = newValue}
|
|
2767
2771
|
}
|
|
2768
2772
|
/// Returns true if `dataFile` has been explicitly set.
|
|
2769
|
-
public var hasDataFile: Bool {
|
|
2773
|
+
public var hasDataFile: Bool {self._dataFile != nil}
|
|
2770
2774
|
/// Clears the value of `dataFile`. Subsequent reads from it will return its default value.
|
|
2771
2775
|
public mutating func clearDataFile() {self._dataFile = nil}
|
|
2772
2776
|
|
|
2773
2777
|
/// 16 items max
|
|
2774
2778
|
public var blacklistFile: Data {
|
|
2775
|
-
get {
|
|
2779
|
+
get {_blacklistFile ?? Data()}
|
|
2776
2780
|
set {_blacklistFile = newValue}
|
|
2777
2781
|
}
|
|
2778
2782
|
/// Returns true if `blacklistFile` has been explicitly set.
|
|
2779
|
-
public var hasBlacklistFile: Bool {
|
|
2783
|
+
public var hasBlacklistFile: Bool {self._blacklistFile != nil}
|
|
2780
2784
|
/// Clears the value of `blacklistFile`. Subsequent reads from it will return its default value.
|
|
2781
2785
|
public mutating func clearBlacklistFile() {self._blacklistFile = nil}
|
|
2782
2786
|
|
|
2783
2787
|
public var customerExtensionsFile: Data {
|
|
2784
|
-
get {
|
|
2788
|
+
get {_customerExtensionsFile ?? Data()}
|
|
2785
2789
|
set {_customerExtensionsFile = newValue}
|
|
2786
2790
|
}
|
|
2787
2791
|
/// Returns true if `customerExtensionsFile` has been explicitly set.
|
|
2788
|
-
public var hasCustomerExtensionsFile: Bool {
|
|
2792
|
+
public var hasCustomerExtensionsFile: Bool {self._customerExtensionsFile != nil}
|
|
2789
2793
|
/// Clears the value of `customerExtensionsFile`. Subsequent reads from it will return its default value.
|
|
2790
2794
|
public mutating func clearCustomerExtensionsFile() {self._customerExtensionsFile = nil}
|
|
2791
2795
|
|
|
2792
2796
|
public var requestedEventCount: UInt32 {
|
|
2793
|
-
get {
|
|
2797
|
+
get {_requestedEventCount ?? 0}
|
|
2794
2798
|
set {_requestedEventCount = newValue}
|
|
2795
2799
|
}
|
|
2796
2800
|
/// Returns true if `requestedEventCount` has been explicitly set.
|
|
2797
|
-
public var hasRequestedEventCount: Bool {
|
|
2801
|
+
public var hasRequestedEventCount: Bool {self._requestedEventCount != nil}
|
|
2798
2802
|
/// Clears the value of `requestedEventCount`. Subsequent reads from it will return its default value.
|
|
2799
2803
|
public mutating func clearRequestedEventCount() {self._requestedEventCount = nil}
|
|
2800
2804
|
|
|
2801
2805
|
public var supportedEventIds: Data {
|
|
2802
|
-
get {
|
|
2806
|
+
get {_supportedEventIds ?? Data()}
|
|
2803
2807
|
set {_supportedEventIds = newValue}
|
|
2804
2808
|
}
|
|
2805
2809
|
/// Returns true if `supportedEventIds` has been explicitly set.
|
|
2806
|
-
public var hasSupportedEventIds: Bool {
|
|
2810
|
+
public var hasSupportedEventIds: Bool {self._supportedEventIds != nil}
|
|
2807
2811
|
/// Clears the value of `supportedEventIds`. Subsequent reads from it will return its default value.
|
|
2808
2812
|
public mutating func clearSupportedEventIds() {self._supportedEventIds = nil}
|
|
2809
2813
|
|
|
@@ -2825,84 +2829,84 @@ public struct BlueOssSoMobileProvisioningConfiguration: Sendable {
|
|
|
2825
2829
|
// methods supported on all messages.
|
|
2826
2830
|
|
|
2827
2831
|
public var numberOfDoors: UInt32 {
|
|
2828
|
-
get {
|
|
2832
|
+
get {_numberOfDoors ?? 1}
|
|
2829
2833
|
set {_numberOfDoors = newValue}
|
|
2830
2834
|
}
|
|
2831
2835
|
/// Returns true if `numberOfDoors` has been explicitly set.
|
|
2832
|
-
public var hasNumberOfDoors: Bool {
|
|
2836
|
+
public var hasNumberOfDoors: Bool {self._numberOfDoors != nil}
|
|
2833
2837
|
/// Clears the value of `numberOfDoors`. Subsequent reads from it will return its default value.
|
|
2834
2838
|
public mutating func clearNumberOfDoors() {self._numberOfDoors = nil}
|
|
2835
2839
|
|
|
2836
2840
|
public var numberOfDtschedules: UInt32 {
|
|
2837
|
-
get {
|
|
2841
|
+
get {_numberOfDtschedules ?? 1}
|
|
2838
2842
|
set {_numberOfDtschedules = newValue}
|
|
2839
2843
|
}
|
|
2840
2844
|
/// Returns true if `numberOfDtschedules` has been explicitly set.
|
|
2841
|
-
public var hasNumberOfDtschedules: Bool {
|
|
2845
|
+
public var hasNumberOfDtschedules: Bool {self._numberOfDtschedules != nil}
|
|
2842
2846
|
/// Clears the value of `numberOfDtschedules`. Subsequent reads from it will return its default value.
|
|
2843
2847
|
public mutating func clearNumberOfDtschedules() {self._numberOfDtschedules = nil}
|
|
2844
2848
|
|
|
2845
2849
|
public var numberOfDayIdsPerDtschedule: UInt32 {
|
|
2846
|
-
get {
|
|
2850
|
+
get {_numberOfDayIdsPerDtschedule ?? 4}
|
|
2847
2851
|
set {_numberOfDayIdsPerDtschedule = newValue}
|
|
2848
2852
|
}
|
|
2849
2853
|
/// Returns true if `numberOfDayIdsPerDtschedule` has been explicitly set.
|
|
2850
|
-
public var hasNumberOfDayIdsPerDtschedule: Bool {
|
|
2854
|
+
public var hasNumberOfDayIdsPerDtschedule: Bool {self._numberOfDayIdsPerDtschedule != nil}
|
|
2851
2855
|
/// Clears the value of `numberOfDayIdsPerDtschedule`. Subsequent reads from it will return its default value.
|
|
2852
2856
|
public mutating func clearNumberOfDayIdsPerDtschedule() {self._numberOfDayIdsPerDtschedule = nil}
|
|
2853
2857
|
|
|
2854
2858
|
public var numberOfTimePeriodsPerDayID: UInt32 {
|
|
2855
|
-
get {
|
|
2859
|
+
get {_numberOfTimePeriodsPerDayID ?? 4}
|
|
2856
2860
|
set {_numberOfTimePeriodsPerDayID = newValue}
|
|
2857
2861
|
}
|
|
2858
2862
|
/// Returns true if `numberOfTimePeriodsPerDayID` has been explicitly set.
|
|
2859
|
-
public var hasNumberOfTimePeriodsPerDayID: Bool {
|
|
2863
|
+
public var hasNumberOfTimePeriodsPerDayID: Bool {self._numberOfTimePeriodsPerDayID != nil}
|
|
2860
2864
|
/// Clears the value of `numberOfTimePeriodsPerDayID`. Subsequent reads from it will return its default value.
|
|
2861
2865
|
public mutating func clearNumberOfTimePeriodsPerDayID() {self._numberOfTimePeriodsPerDayID = nil}
|
|
2862
2866
|
|
|
2863
2867
|
public var numberOfEvents: UInt32 {
|
|
2864
|
-
get {
|
|
2868
|
+
get {_numberOfEvents ?? 0}
|
|
2865
2869
|
set {_numberOfEvents = newValue}
|
|
2866
2870
|
}
|
|
2867
2871
|
/// Returns true if `numberOfEvents` has been explicitly set.
|
|
2868
|
-
public var hasNumberOfEvents: Bool {
|
|
2872
|
+
public var hasNumberOfEvents: Bool {self._numberOfEvents != nil}
|
|
2869
2873
|
/// Clears the value of `numberOfEvents`. Subsequent reads from it will return its default value.
|
|
2870
2874
|
public mutating func clearNumberOfEvents() {self._numberOfEvents = nil}
|
|
2871
2875
|
|
|
2872
2876
|
/// TODO : max_count must always equal MaxOssSoEventId - 1
|
|
2873
2877
|
public var supportedEventIds: Data {
|
|
2874
|
-
get {
|
|
2878
|
+
get {_supportedEventIds ?? Data()}
|
|
2875
2879
|
set {_supportedEventIds = newValue}
|
|
2876
2880
|
}
|
|
2877
2881
|
/// Returns true if `supportedEventIds` has been explicitly set.
|
|
2878
|
-
public var hasSupportedEventIds: Bool {
|
|
2882
|
+
public var hasSupportedEventIds: Bool {self._supportedEventIds != nil}
|
|
2879
2883
|
/// Clears the value of `supportedEventIds`. Subsequent reads from it will return its default value.
|
|
2880
2884
|
public mutating func clearSupportedEventIds() {self._supportedEventIds = nil}
|
|
2881
2885
|
|
|
2882
2886
|
public var numberOfBlacklistEntries: UInt32 {
|
|
2883
|
-
get {
|
|
2887
|
+
get {_numberOfBlacklistEntries ?? 16}
|
|
2884
2888
|
set {_numberOfBlacklistEntries = newValue}
|
|
2885
2889
|
}
|
|
2886
2890
|
/// Returns true if `numberOfBlacklistEntries` has been explicitly set.
|
|
2887
|
-
public var hasNumberOfBlacklistEntries: Bool {
|
|
2891
|
+
public var hasNumberOfBlacklistEntries: Bool {self._numberOfBlacklistEntries != nil}
|
|
2888
2892
|
/// Clears the value of `numberOfBlacklistEntries`. Subsequent reads from it will return its default value.
|
|
2889
2893
|
public mutating func clearNumberOfBlacklistEntries() {self._numberOfBlacklistEntries = nil}
|
|
2890
2894
|
|
|
2891
2895
|
public var customerExtensionsSize: UInt32 {
|
|
2892
|
-
get {
|
|
2896
|
+
get {_customerExtensionsSize ?? 32}
|
|
2893
2897
|
set {_customerExtensionsSize = newValue}
|
|
2894
2898
|
}
|
|
2895
2899
|
/// Returns true if `customerExtensionsSize` has been explicitly set.
|
|
2896
|
-
public var hasCustomerExtensionsSize: Bool {
|
|
2900
|
+
public var hasCustomerExtensionsSize: Bool {self._customerExtensionsSize != nil}
|
|
2897
2901
|
/// Clears the value of `customerExtensionsSize`. Subsequent reads from it will return its default value.
|
|
2898
2902
|
public mutating func clearCustomerExtensionsSize() {self._customerExtensionsSize = nil}
|
|
2899
2903
|
|
|
2900
2904
|
public var hasData_p: Bool {
|
|
2901
|
-
get {
|
|
2905
|
+
get {_hasData_p ?? true}
|
|
2902
2906
|
set {_hasData_p = newValue}
|
|
2903
2907
|
}
|
|
2904
2908
|
/// Returns true if `hasData_p` has been explicitly set.
|
|
2905
|
-
public var hasHasData_p: Bool {
|
|
2909
|
+
public var hasHasData_p: Bool {self._hasData_p != nil}
|
|
2906
2910
|
/// Clears the value of `hasData_p`. Subsequent reads from it will return its default value.
|
|
2907
2911
|
public mutating func clearHasData_p() {self._hasData_p = nil}
|
|
2908
2912
|
|
|
@@ -2928,85 +2932,85 @@ public struct BlueOssSoMifareDesfireProvisioningConfiguration: Sendable {
|
|
|
2928
2932
|
// methods supported on all messages.
|
|
2929
2933
|
|
|
2930
2934
|
public var numberOfDoors: UInt32 {
|
|
2931
|
-
get {
|
|
2935
|
+
get {_numberOfDoors ?? 70}
|
|
2932
2936
|
set {_numberOfDoors = newValue}
|
|
2933
2937
|
}
|
|
2934
2938
|
/// Returns true if `numberOfDoors` has been explicitly set.
|
|
2935
|
-
public var hasNumberOfDoors: Bool {
|
|
2939
|
+
public var hasNumberOfDoors: Bool {self._numberOfDoors != nil}
|
|
2936
2940
|
/// Clears the value of `numberOfDoors`. Subsequent reads from it will return its default value.
|
|
2937
2941
|
public mutating func clearNumberOfDoors() {self._numberOfDoors = nil}
|
|
2938
2942
|
|
|
2939
2943
|
public var numberOfDtschedules: UInt32 {
|
|
2940
|
-
get {
|
|
2944
|
+
get {_numberOfDtschedules ?? 1}
|
|
2941
2945
|
set {_numberOfDtschedules = newValue}
|
|
2942
2946
|
}
|
|
2943
2947
|
/// Returns true if `numberOfDtschedules` has been explicitly set.
|
|
2944
|
-
public var hasNumberOfDtschedules: Bool {
|
|
2948
|
+
public var hasNumberOfDtschedules: Bool {self._numberOfDtschedules != nil}
|
|
2945
2949
|
/// Clears the value of `numberOfDtschedules`. Subsequent reads from it will return its default value.
|
|
2946
2950
|
public mutating func clearNumberOfDtschedules() {self._numberOfDtschedules = nil}
|
|
2947
2951
|
|
|
2948
2952
|
public var numberOfDayIdsPerDtschedule: UInt32 {
|
|
2949
|
-
get {
|
|
2953
|
+
get {_numberOfDayIdsPerDtschedule ?? 4}
|
|
2950
2954
|
set {_numberOfDayIdsPerDtschedule = newValue}
|
|
2951
2955
|
}
|
|
2952
2956
|
/// Returns true if `numberOfDayIdsPerDtschedule` has been explicitly set.
|
|
2953
|
-
public var hasNumberOfDayIdsPerDtschedule: Bool {
|
|
2957
|
+
public var hasNumberOfDayIdsPerDtschedule: Bool {self._numberOfDayIdsPerDtschedule != nil}
|
|
2954
2958
|
/// Clears the value of `numberOfDayIdsPerDtschedule`. Subsequent reads from it will return its default value.
|
|
2955
2959
|
public mutating func clearNumberOfDayIdsPerDtschedule() {self._numberOfDayIdsPerDtschedule = nil}
|
|
2956
2960
|
|
|
2957
2961
|
public var numberOfTimePeriodsPerDayID: UInt32 {
|
|
2958
|
-
get {
|
|
2962
|
+
get {_numberOfTimePeriodsPerDayID ?? 2}
|
|
2959
2963
|
set {_numberOfTimePeriodsPerDayID = newValue}
|
|
2960
2964
|
}
|
|
2961
2965
|
/// Returns true if `numberOfTimePeriodsPerDayID` has been explicitly set.
|
|
2962
|
-
public var hasNumberOfTimePeriodsPerDayID: Bool {
|
|
2966
|
+
public var hasNumberOfTimePeriodsPerDayID: Bool {self._numberOfTimePeriodsPerDayID != nil}
|
|
2963
2967
|
/// Clears the value of `numberOfTimePeriodsPerDayID`. Subsequent reads from it will return its default value.
|
|
2964
2968
|
public mutating func clearNumberOfTimePeriodsPerDayID() {self._numberOfTimePeriodsPerDayID = nil}
|
|
2965
2969
|
|
|
2966
2970
|
public var numberOfEvents: UInt32 {
|
|
2967
|
-
get {
|
|
2971
|
+
get {_numberOfEvents ?? 16}
|
|
2968
2972
|
set {_numberOfEvents = newValue}
|
|
2969
2973
|
}
|
|
2970
2974
|
/// Returns true if `numberOfEvents` has been explicitly set.
|
|
2971
|
-
public var hasNumberOfEvents: Bool {
|
|
2975
|
+
public var hasNumberOfEvents: Bool {self._numberOfEvents != nil}
|
|
2972
2976
|
/// Clears the value of `numberOfEvents`. Subsequent reads from it will return its default value.
|
|
2973
2977
|
public mutating func clearNumberOfEvents() {self._numberOfEvents = nil}
|
|
2974
2978
|
|
|
2975
2979
|
/// TODO : max_count must always equal MaxOssSoEventId - 1
|
|
2976
2980
|
public var supportedEventIds: Data {
|
|
2977
|
-
get {
|
|
2981
|
+
get {_supportedEventIds ?? Data([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1])}
|
|
2978
2982
|
set {_supportedEventIds = newValue}
|
|
2979
2983
|
}
|
|
2980
2984
|
/// Returns true if `supportedEventIds` has been explicitly set.
|
|
2981
|
-
public var hasSupportedEventIds: Bool {
|
|
2985
|
+
public var hasSupportedEventIds: Bool {self._supportedEventIds != nil}
|
|
2982
2986
|
/// Clears the value of `supportedEventIds`. Subsequent reads from it will return its default value.
|
|
2983
2987
|
public mutating func clearSupportedEventIds() {self._supportedEventIds = nil}
|
|
2984
2988
|
|
|
2985
2989
|
public var numberOfBlacklistEntries: UInt32 {
|
|
2986
|
-
get {
|
|
2990
|
+
get {_numberOfBlacklistEntries ?? 3}
|
|
2987
2991
|
set {_numberOfBlacklistEntries = newValue}
|
|
2988
2992
|
}
|
|
2989
2993
|
/// Returns true if `numberOfBlacklistEntries` has been explicitly set.
|
|
2990
|
-
public var hasNumberOfBlacklistEntries: Bool {
|
|
2994
|
+
public var hasNumberOfBlacklistEntries: Bool {self._numberOfBlacklistEntries != nil}
|
|
2991
2995
|
/// Clears the value of `numberOfBlacklistEntries`. Subsequent reads from it will return its default value.
|
|
2992
2996
|
public mutating func clearNumberOfBlacklistEntries() {self._numberOfBlacklistEntries = nil}
|
|
2993
2997
|
|
|
2994
2998
|
public var customerExtensionsSize: UInt32 {
|
|
2995
|
-
get {
|
|
2999
|
+
get {_customerExtensionsSize ?? 16}
|
|
2996
3000
|
set {_customerExtensionsSize = newValue}
|
|
2997
3001
|
}
|
|
2998
3002
|
/// Returns true if `customerExtensionsSize` has been explicitly set.
|
|
2999
|
-
public var hasCustomerExtensionsSize: Bool {
|
|
3003
|
+
public var hasCustomerExtensionsSize: Bool {self._customerExtensionsSize != nil}
|
|
3000
3004
|
/// Clears the value of `customerExtensionsSize`. Subsequent reads from it will return its default value.
|
|
3001
3005
|
public mutating func clearCustomerExtensionsSize() {self._customerExtensionsSize = nil}
|
|
3002
3006
|
|
|
3003
3007
|
/// if it is true then create data file according to configuration. This will use to not create data file at all for emergency key
|
|
3004
3008
|
public var hasData_p: Bool {
|
|
3005
|
-
get {
|
|
3009
|
+
get {_hasData_p ?? true}
|
|
3006
3010
|
set {_hasData_p = newValue}
|
|
3007
3011
|
}
|
|
3008
3012
|
/// Returns true if `hasData_p` has been explicitly set.
|
|
3009
|
-
public var hasHasData_p: Bool {
|
|
3013
|
+
public var hasHasData_p: Bool {self._hasData_p != nil}
|
|
3010
3014
|
/// Clears the value of `hasData_p`. Subsequent reads from it will return its default value.
|
|
3011
3015
|
public mutating func clearHasData_p() {self._hasData_p = nil}
|
|
3012
3016
|
|
|
@@ -3033,41 +3037,41 @@ public struct BlueOssSoMifareDesfireConfiguration: Sendable {
|
|
|
3033
3037
|
|
|
3034
3038
|
/// The PICC master key, default is oss so demo key
|
|
3035
3039
|
public var piccMasterKey: Data {
|
|
3036
|
-
get {
|
|
3040
|
+
get {_piccMasterKey ?? Data([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 170])}
|
|
3037
3041
|
set {_piccMasterKey = newValue}
|
|
3038
3042
|
}
|
|
3039
3043
|
/// Returns true if `piccMasterKey` has been explicitly set.
|
|
3040
|
-
public var hasPiccMasterKey: Bool {
|
|
3044
|
+
public var hasPiccMasterKey: Bool {self._piccMasterKey != nil}
|
|
3041
3045
|
/// Clears the value of `piccMasterKey`. Subsequent reads from it will return its default value.
|
|
3042
3046
|
public mutating func clearPiccMasterKey() {self._piccMasterKey = nil}
|
|
3043
3047
|
|
|
3044
3048
|
/// The oss application master key, default is oss so demo key
|
|
3045
3049
|
public var appMasterKey: Data {
|
|
3046
|
-
get {
|
|
3050
|
+
get {_appMasterKey ?? Data([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15])}
|
|
3047
3051
|
set {_appMasterKey = newValue}
|
|
3048
3052
|
}
|
|
3049
3053
|
/// Returns true if `appMasterKey` has been explicitly set.
|
|
3050
|
-
public var hasAppMasterKey: Bool {
|
|
3054
|
+
public var hasAppMasterKey: Bool {self._appMasterKey != nil}
|
|
3051
3055
|
/// Clears the value of `appMasterKey`. Subsequent reads from it will return its default value.
|
|
3052
3056
|
public mutating func clearAppMasterKey() {self._appMasterKey = nil}
|
|
3053
3057
|
|
|
3054
3058
|
/// The oss project read/write key, default is oss so demo key
|
|
3055
3059
|
public var projectKey: Data {
|
|
3056
|
-
get {
|
|
3060
|
+
get {_projectKey ?? Data([16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31])}
|
|
3057
3061
|
set {_projectKey = newValue}
|
|
3058
3062
|
}
|
|
3059
3063
|
/// Returns true if `projectKey` has been explicitly set.
|
|
3060
|
-
public var hasProjectKey: Bool {
|
|
3064
|
+
public var hasProjectKey: Bool {self._projectKey != nil}
|
|
3061
3065
|
/// Clears the value of `projectKey`. Subsequent reads from it will return its default value.
|
|
3062
3066
|
public mutating func clearProjectKey() {self._projectKey = nil}
|
|
3063
3067
|
|
|
3064
3068
|
/// The oss application id, default is the oss so default aid
|
|
3065
3069
|
public var aid: UInt32 {
|
|
3066
|
-
get {
|
|
3070
|
+
get {_aid ?? 16076800}
|
|
3067
3071
|
set {_aid = newValue}
|
|
3068
3072
|
}
|
|
3069
3073
|
/// Returns true if `aid` has been explicitly set.
|
|
3070
|
-
public var hasAid: Bool {
|
|
3074
|
+
public var hasAid: Bool {self._aid != nil}
|
|
3071
3075
|
/// Clears the value of `aid`. Subsequent reads from it will return its default value.
|
|
3072
3076
|
public mutating func clearAid() {self._aid = nil}
|
|
3073
3077
|
|
|
@@ -3087,11 +3091,11 @@ public struct BlueOssSoSettings: Sendable {
|
|
|
3087
3091
|
// methods supported on all messages.
|
|
3088
3092
|
|
|
3089
3093
|
public var mifareDesfireConfig: BlueOssSoMifareDesfireConfiguration {
|
|
3090
|
-
get {
|
|
3094
|
+
get {_mifareDesfireConfig ?? BlueOssSoMifareDesfireConfiguration()}
|
|
3091
3095
|
set {_mifareDesfireConfig = newValue}
|
|
3092
3096
|
}
|
|
3093
3097
|
/// Returns true if `mifareDesfireConfig` has been explicitly set.
|
|
3094
|
-
public var hasMifareDesfireConfig: Bool {
|
|
3098
|
+
public var hasMifareDesfireConfig: Bool {self._mifareDesfireConfig != nil}
|
|
3095
3099
|
/// Clears the value of `mifareDesfireConfig`. Subsequent reads from it will return its default value.
|
|
3096
3100
|
public mutating func clearMifareDesfireConfig() {self._mifareDesfireConfig = nil}
|
|
3097
3101
|
|
|
@@ -3108,38 +3112,38 @@ public struct _BlueTestEncodeDecode: Sendable {
|
|
|
3108
3112
|
// methods supported on all messages.
|
|
3109
3113
|
|
|
3110
3114
|
public var vendor: String {
|
|
3111
|
-
get {
|
|
3115
|
+
get {_vendor ?? String()}
|
|
3112
3116
|
set {_vendor = newValue}
|
|
3113
3117
|
}
|
|
3114
3118
|
/// Returns true if `vendor` has been explicitly set.
|
|
3115
|
-
public var hasVendor: Bool {
|
|
3119
|
+
public var hasVendor: Bool {self._vendor != nil}
|
|
3116
3120
|
/// Clears the value of `vendor`. Subsequent reads from it will return its default value.
|
|
3117
3121
|
public mutating func clearVendor() {self._vendor = nil}
|
|
3118
3122
|
|
|
3119
3123
|
public var hardwareName: String {
|
|
3120
|
-
get {
|
|
3124
|
+
get {_hardwareName ?? String()}
|
|
3121
3125
|
set {_hardwareName = newValue}
|
|
3122
3126
|
}
|
|
3123
3127
|
/// Returns true if `hardwareName` has been explicitly set.
|
|
3124
|
-
public var hasHardwareName: Bool {
|
|
3128
|
+
public var hasHardwareName: Bool {self._hardwareName != nil}
|
|
3125
3129
|
/// Clears the value of `hardwareName`. Subsequent reads from it will return its default value.
|
|
3126
3130
|
public mutating func clearHardwareName() {self._hardwareName = nil}
|
|
3127
3131
|
|
|
3128
3132
|
public var hardwareVersion: Int32 {
|
|
3129
|
-
get {
|
|
3133
|
+
get {_hardwareVersion ?? 0}
|
|
3130
3134
|
set {_hardwareVersion = newValue}
|
|
3131
3135
|
}
|
|
3132
3136
|
/// Returns true if `hardwareVersion` has been explicitly set.
|
|
3133
|
-
public var hasHardwareVersion: Bool {
|
|
3137
|
+
public var hasHardwareVersion: Bool {self._hardwareVersion != nil}
|
|
3134
3138
|
/// Clears the value of `hardwareVersion`. Subsequent reads from it will return its default value.
|
|
3135
3139
|
public mutating func clearHardwareVersion() {self._hardwareVersion = nil}
|
|
3136
3140
|
|
|
3137
3141
|
public var applicationVersion: Int32 {
|
|
3138
|
-
get {
|
|
3142
|
+
get {_applicationVersion ?? 0}
|
|
3139
3143
|
set {_applicationVersion = newValue}
|
|
3140
3144
|
}
|
|
3141
3145
|
/// Returns true if `applicationVersion` has been explicitly set.
|
|
3142
|
-
public var hasApplicationVersion: Bool {
|
|
3146
|
+
public var hasApplicationVersion: Bool {self._applicationVersion != nil}
|
|
3143
3147
|
/// Clears the value of `applicationVersion`. Subsequent reads from it will return its default value.
|
|
3144
3148
|
public mutating func clearApplicationVersion() {self._applicationVersion = nil}
|
|
3145
3149
|
|