@blueid/access-proto 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/BlueCore.proto +841 -0
- package/BlueLock.proto +35 -0
- package/BlueSDK.proto +56 -0
- package/BlueSystem.proto +278 -0
- package/es/BlueCore_pb.d.ts +2937 -0
- package/es/BlueCore_pb.js +975 -0
- package/es/BlueLock_pb.d.ts +118 -0
- package/es/BlueLock_pb.js +46 -0
- package/es/BlueSDK_pb.d.ts +197 -0
- package/es/BlueSDK_pb.js +73 -0
- package/es/BlueSystem_pb.d.ts +913 -0
- package/es/BlueSystem_pb.js +272 -0
- package/nanopb/BlueCore.pb.c +188 -0
- package/nanopb/BlueCore.pb.h +1715 -0
- package/nanopb/BlueLock.pb.c +16 -0
- package/nanopb/BlueLock.pb.h +104 -0
- package/nanopb/BlueSDK.pb.c +22 -0
- package/nanopb/BlueSDK.pb.h +159 -0
- package/nanopb/BlueSystem.pb.c +64 -0
- package/nanopb/BlueSystem.pb.h +631 -0
- package/package.json +18 -0
- package/swift/BlueCore.pb.swift +6840 -0
- package/swift/BlueLock.pb.swift +276 -0
- package/swift/BlueSDK.pb.swift +624 -0
- package/swift/BlueSystem.pb.swift +2489 -0
|
@@ -0,0 +1,624 @@
|
|
|
1
|
+
// DO NOT EDIT.
|
|
2
|
+
// swift-format-ignore-file
|
|
3
|
+
//
|
|
4
|
+
// Generated by the Swift generator plugin for the protocol buffer compiler.
|
|
5
|
+
// Source: BlueSDK.proto
|
|
6
|
+
//
|
|
7
|
+
// For information on using the generated types, please see the documentation:
|
|
8
|
+
// https://github.com/apple/swift-protobuf/
|
|
9
|
+
|
|
10
|
+
import Foundation
|
|
11
|
+
import SwiftProtobuf
|
|
12
|
+
|
|
13
|
+
// If the compiler emits an error on this type, it is because this file
|
|
14
|
+
// was generated by a version of the `protoc` Swift plug-in that is
|
|
15
|
+
// incompatible with the version of SwiftProtobuf to which you are linking.
|
|
16
|
+
// Please ensure that you are building against the same version of the API
|
|
17
|
+
// that was used to generate this file.
|
|
18
|
+
fileprivate struct _GeneratedWithProtocGenSwiftVersion: SwiftProtobuf.ProtobufAPIVersionCheck {
|
|
19
|
+
struct _2: SwiftProtobuf.ProtobufAPIVersion_2 {}
|
|
20
|
+
typealias Version = _2
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
public enum BlueDeviceType: SwiftProtobuf.Enum {
|
|
24
|
+
public typealias RawValue = Int
|
|
25
|
+
case bluetoothDevice // = 1
|
|
26
|
+
case uwbdevice // = 2
|
|
27
|
+
|
|
28
|
+
public init() {
|
|
29
|
+
self = .bluetoothDevice
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
public init?(rawValue: Int) {
|
|
33
|
+
switch rawValue {
|
|
34
|
+
case 1: self = .bluetoothDevice
|
|
35
|
+
case 2: self = .uwbdevice
|
|
36
|
+
default: return nil
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
public var rawValue: Int {
|
|
41
|
+
switch self {
|
|
42
|
+
case .bluetoothDevice: return 1
|
|
43
|
+
case .uwbdevice: return 2
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
#if swift(>=4.2)
|
|
50
|
+
|
|
51
|
+
extension BlueDeviceType: CaseIterable {
|
|
52
|
+
// Support synthesized by the compiler.
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
#endif // swift(>=4.2)
|
|
56
|
+
|
|
57
|
+
public struct BlueI18n {
|
|
58
|
+
// SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
59
|
+
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
60
|
+
// methods supported on all messages.
|
|
61
|
+
|
|
62
|
+
public var nfcWaitMessage: String {
|
|
63
|
+
get {return _nfcWaitMessage ?? "Waiting for transponder"}
|
|
64
|
+
set {_nfcWaitMessage = newValue}
|
|
65
|
+
}
|
|
66
|
+
/// Returns true if `nfcWaitMessage` has been explicitly set.
|
|
67
|
+
public var hasNfcWaitMessage: Bool {return self._nfcWaitMessage != nil}
|
|
68
|
+
/// Clears the value of `nfcWaitMessage`. Subsequent reads from it will return its default value.
|
|
69
|
+
public mutating func clearNfcWaitMessage() {self._nfcWaitMessage = nil}
|
|
70
|
+
|
|
71
|
+
public var nfcOssSuccessReadConfigurationMessage: String {
|
|
72
|
+
get {return _nfcOssSuccessReadConfigurationMessage ?? "Configuration read successfully"}
|
|
73
|
+
set {_nfcOssSuccessReadConfigurationMessage = newValue}
|
|
74
|
+
}
|
|
75
|
+
/// Returns true if `nfcOssSuccessReadConfigurationMessage` has been explicitly set.
|
|
76
|
+
public var hasNfcOssSuccessReadConfigurationMessage: Bool {return self._nfcOssSuccessReadConfigurationMessage != nil}
|
|
77
|
+
/// Clears the value of `nfcOssSuccessReadConfigurationMessage`. Subsequent reads from it will return its default value.
|
|
78
|
+
public mutating func clearNfcOssSuccessReadConfigurationMessage() {self._nfcOssSuccessReadConfigurationMessage = nil}
|
|
79
|
+
|
|
80
|
+
public var nfcOssSuccessUpdateConfigurationMessage: String {
|
|
81
|
+
get {return _nfcOssSuccessUpdateConfigurationMessage ?? "Configuration successfully updated"}
|
|
82
|
+
set {_nfcOssSuccessUpdateConfigurationMessage = newValue}
|
|
83
|
+
}
|
|
84
|
+
/// Returns true if `nfcOssSuccessUpdateConfigurationMessage` has been explicitly set.
|
|
85
|
+
public var hasNfcOssSuccessUpdateConfigurationMessage: Bool {return self._nfcOssSuccessUpdateConfigurationMessage != nil}
|
|
86
|
+
/// Clears the value of `nfcOssSuccessUpdateConfigurationMessage`. Subsequent reads from it will return its default value.
|
|
87
|
+
public mutating func clearNfcOssSuccessUpdateConfigurationMessage() {self._nfcOssSuccessUpdateConfigurationMessage = nil}
|
|
88
|
+
|
|
89
|
+
public var nfcOssSuccessClearEventsMessage: String {
|
|
90
|
+
get {return _nfcOssSuccessClearEventsMessage ?? "Events successfully cleared"}
|
|
91
|
+
set {_nfcOssSuccessClearEventsMessage = newValue}
|
|
92
|
+
}
|
|
93
|
+
/// Returns true if `nfcOssSuccessClearEventsMessage` has been explicitly set.
|
|
94
|
+
public var hasNfcOssSuccessClearEventsMessage: Bool {return self._nfcOssSuccessClearEventsMessage != nil}
|
|
95
|
+
/// Clears the value of `nfcOssSuccessClearEventsMessage`. Subsequent reads from it will return its default value.
|
|
96
|
+
public mutating func clearNfcOssSuccessClearEventsMessage() {self._nfcOssSuccessClearEventsMessage = nil}
|
|
97
|
+
|
|
98
|
+
public var nfcOssSuccessIsProvisionedMessage: String {
|
|
99
|
+
get {return _nfcOssSuccessIsProvisionedMessage ?? "Is already provisioned"}
|
|
100
|
+
set {_nfcOssSuccessIsProvisionedMessage = newValue}
|
|
101
|
+
}
|
|
102
|
+
/// Returns true if `nfcOssSuccessIsProvisionedMessage` has been explicitly set.
|
|
103
|
+
public var hasNfcOssSuccessIsProvisionedMessage: Bool {return self._nfcOssSuccessIsProvisionedMessage != nil}
|
|
104
|
+
/// Clears the value of `nfcOssSuccessIsProvisionedMessage`. Subsequent reads from it will return its default value.
|
|
105
|
+
public mutating func clearNfcOssSuccessIsProvisionedMessage() {self._nfcOssSuccessIsProvisionedMessage = nil}
|
|
106
|
+
|
|
107
|
+
public var nfcOssSuccessProvisionMessage: String {
|
|
108
|
+
get {return _nfcOssSuccessProvisionMessage ?? "Successfully provisioned"}
|
|
109
|
+
set {_nfcOssSuccessProvisionMessage = newValue}
|
|
110
|
+
}
|
|
111
|
+
/// Returns true if `nfcOssSuccessProvisionMessage` has been explicitly set.
|
|
112
|
+
public var hasNfcOssSuccessProvisionMessage: Bool {return self._nfcOssSuccessProvisionMessage != nil}
|
|
113
|
+
/// Clears the value of `nfcOssSuccessProvisionMessage`. Subsequent reads from it will return its default value.
|
|
114
|
+
public mutating func clearNfcOssSuccessProvisionMessage() {self._nfcOssSuccessProvisionMessage = nil}
|
|
115
|
+
|
|
116
|
+
public var nfcOssSuccessUnprovisionMessage: String {
|
|
117
|
+
get {return _nfcOssSuccessUnprovisionMessage ?? "Successfully unprovisioned"}
|
|
118
|
+
set {_nfcOssSuccessUnprovisionMessage = newValue}
|
|
119
|
+
}
|
|
120
|
+
/// Returns true if `nfcOssSuccessUnprovisionMessage` has been explicitly set.
|
|
121
|
+
public var hasNfcOssSuccessUnprovisionMessage: Bool {return self._nfcOssSuccessUnprovisionMessage != nil}
|
|
122
|
+
/// Clears the value of `nfcOssSuccessUnprovisionMessage`. Subsequent reads from it will return its default value.
|
|
123
|
+
public mutating func clearNfcOssSuccessUnprovisionMessage() {self._nfcOssSuccessUnprovisionMessage = nil}
|
|
124
|
+
|
|
125
|
+
public var nfcOssSuccessFormatMessage: String {
|
|
126
|
+
get {return _nfcOssSuccessFormatMessage ?? "Transponder was successfully formatted"}
|
|
127
|
+
set {_nfcOssSuccessFormatMessage = newValue}
|
|
128
|
+
}
|
|
129
|
+
/// Returns true if `nfcOssSuccessFormatMessage` has been explicitly set.
|
|
130
|
+
public var hasNfcOssSuccessFormatMessage: Bool {return self._nfcOssSuccessFormatMessage != nil}
|
|
131
|
+
/// Clears the value of `nfcOssSuccessFormatMessage`. Subsequent reads from it will return its default value.
|
|
132
|
+
public mutating func clearNfcOssSuccessFormatMessage() {self._nfcOssSuccessFormatMessage = nil}
|
|
133
|
+
|
|
134
|
+
public var unknownFields = SwiftProtobuf.UnknownStorage()
|
|
135
|
+
|
|
136
|
+
public init() {}
|
|
137
|
+
|
|
138
|
+
fileprivate var _nfcWaitMessage: String? = nil
|
|
139
|
+
fileprivate var _nfcOssSuccessReadConfigurationMessage: String? = nil
|
|
140
|
+
fileprivate var _nfcOssSuccessUpdateConfigurationMessage: String? = nil
|
|
141
|
+
fileprivate var _nfcOssSuccessClearEventsMessage: String? = nil
|
|
142
|
+
fileprivate var _nfcOssSuccessIsProvisionedMessage: String? = nil
|
|
143
|
+
fileprivate var _nfcOssSuccessProvisionMessage: String? = nil
|
|
144
|
+
fileprivate var _nfcOssSuccessUnprovisionMessage: String? = nil
|
|
145
|
+
fileprivate var _nfcOssSuccessFormatMessage: String? = nil
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
public struct BlueDeviceDetailsBluetooth {
|
|
149
|
+
// SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
150
|
+
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
151
|
+
// methods supported on all messages.
|
|
152
|
+
|
|
153
|
+
public var rssi: Int32 {
|
|
154
|
+
get {return _rssi ?? 0}
|
|
155
|
+
set {_rssi = newValue}
|
|
156
|
+
}
|
|
157
|
+
/// Returns true if `rssi` has been explicitly set.
|
|
158
|
+
public var hasRssi: Bool {return self._rssi != nil}
|
|
159
|
+
/// Clears the value of `rssi`. Subsequent reads from it will return its default value.
|
|
160
|
+
public mutating func clearRssi() {self._rssi = nil}
|
|
161
|
+
|
|
162
|
+
public var txPower: Int32 {
|
|
163
|
+
get {return _txPower ?? 0}
|
|
164
|
+
set {_txPower = newValue}
|
|
165
|
+
}
|
|
166
|
+
/// Returns true if `txPower` has been explicitly set.
|
|
167
|
+
public var hasTxPower: Bool {return self._txPower != nil}
|
|
168
|
+
/// Clears the value of `txPower`. Subsequent reads from it will return its default value.
|
|
169
|
+
public mutating func clearTxPower() {self._txPower = nil}
|
|
170
|
+
|
|
171
|
+
public var isIbeacon: Bool {
|
|
172
|
+
get {return _isIbeacon ?? false}
|
|
173
|
+
set {_isIbeacon = newValue}
|
|
174
|
+
}
|
|
175
|
+
/// Returns true if `isIbeacon` has been explicitly set.
|
|
176
|
+
public var hasIsIbeacon: Bool {return self._isIbeacon != nil}
|
|
177
|
+
/// Clears the value of `isIbeacon`. Subsequent reads from it will return its default value.
|
|
178
|
+
public mutating func clearIsIbeacon() {self._isIbeacon = nil}
|
|
179
|
+
|
|
180
|
+
public var unknownFields = SwiftProtobuf.UnknownStorage()
|
|
181
|
+
|
|
182
|
+
public init() {}
|
|
183
|
+
|
|
184
|
+
fileprivate var _rssi: Int32? = nil
|
|
185
|
+
fileprivate var _txPower: Int32? = nil
|
|
186
|
+
fileprivate var _isIbeacon: Bool? = nil
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
public struct BlueDeviceDetailsUWB {
|
|
190
|
+
// SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
191
|
+
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
192
|
+
// methods supported on all messages.
|
|
193
|
+
|
|
194
|
+
public var notUsed: Bool {
|
|
195
|
+
get {return _notUsed ?? false}
|
|
196
|
+
set {_notUsed = newValue}
|
|
197
|
+
}
|
|
198
|
+
/// Returns true if `notUsed` has been explicitly set.
|
|
199
|
+
public var hasNotUsed: Bool {return self._notUsed != nil}
|
|
200
|
+
/// Clears the value of `notUsed`. Subsequent reads from it will return its default value.
|
|
201
|
+
public mutating func clearNotUsed() {self._notUsed = nil}
|
|
202
|
+
|
|
203
|
+
public var unknownFields = SwiftProtobuf.UnknownStorage()
|
|
204
|
+
|
|
205
|
+
public init() {}
|
|
206
|
+
|
|
207
|
+
fileprivate var _notUsed: Bool? = nil
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
public struct BlueDeviceInfo {
|
|
211
|
+
// SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
212
|
+
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
213
|
+
// methods supported on all messages.
|
|
214
|
+
|
|
215
|
+
public var deviceType: BlueDeviceType {
|
|
216
|
+
get {return _deviceType ?? .bluetoothDevice}
|
|
217
|
+
set {_deviceType = newValue}
|
|
218
|
+
}
|
|
219
|
+
/// Returns true if `deviceType` has been explicitly set.
|
|
220
|
+
public var hasDeviceType: Bool {return self._deviceType != nil}
|
|
221
|
+
/// Clears the value of `deviceType`. Subsequent reads from it will return its default value.
|
|
222
|
+
public mutating func clearDeviceType() {self._deviceType = nil}
|
|
223
|
+
|
|
224
|
+
public var deviceID: String {
|
|
225
|
+
get {return _deviceID ?? String()}
|
|
226
|
+
set {_deviceID = newValue}
|
|
227
|
+
}
|
|
228
|
+
/// Returns true if `deviceID` has been explicitly set.
|
|
229
|
+
public var hasDeviceID: Bool {return self._deviceID != nil}
|
|
230
|
+
/// Clears the value of `deviceID`. Subsequent reads from it will return its default value.
|
|
231
|
+
public mutating func clearDeviceID() {self._deviceID = nil}
|
|
232
|
+
|
|
233
|
+
public var distanceMeters: Float {
|
|
234
|
+
get {return _distanceMeters ?? 0}
|
|
235
|
+
set {_distanceMeters = newValue}
|
|
236
|
+
}
|
|
237
|
+
/// Returns true if `distanceMeters` has been explicitly set.
|
|
238
|
+
public var hasDistanceMeters: Bool {return self._distanceMeters != nil}
|
|
239
|
+
/// Clears the value of `distanceMeters`. Subsequent reads from it will return its default value.
|
|
240
|
+
public mutating func clearDistanceMeters() {self._distanceMeters = nil}
|
|
241
|
+
|
|
242
|
+
public var manufacturerInfo: BlueBleManufacturerInfo {
|
|
243
|
+
get {return _manufacturerInfo ?? BlueBleManufacturerInfo()}
|
|
244
|
+
set {_manufacturerInfo = newValue}
|
|
245
|
+
}
|
|
246
|
+
/// Returns true if `manufacturerInfo` has been explicitly set.
|
|
247
|
+
public var hasManufacturerInfo: Bool {return self._manufacturerInfo != nil}
|
|
248
|
+
/// Clears the value of `manufacturerInfo`. Subsequent reads from it will return its default value.
|
|
249
|
+
public mutating func clearManufacturerInfo() {self._manufacturerInfo = nil}
|
|
250
|
+
|
|
251
|
+
public var details: BlueDeviceInfo.OneOf_Details? = nil
|
|
252
|
+
|
|
253
|
+
public var bluetooth: BlueDeviceDetailsBluetooth {
|
|
254
|
+
get {
|
|
255
|
+
if case .bluetooth(let v)? = details {return v}
|
|
256
|
+
return BlueDeviceDetailsBluetooth()
|
|
257
|
+
}
|
|
258
|
+
set {details = .bluetooth(newValue)}
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
public var uwb: BlueDeviceDetailsUWB {
|
|
262
|
+
get {
|
|
263
|
+
if case .uwb(let v)? = details {return v}
|
|
264
|
+
return BlueDeviceDetailsUWB()
|
|
265
|
+
}
|
|
266
|
+
set {details = .uwb(newValue)}
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
public var unknownFields = SwiftProtobuf.UnknownStorage()
|
|
270
|
+
|
|
271
|
+
public enum OneOf_Details: Equatable {
|
|
272
|
+
case bluetooth(BlueDeviceDetailsBluetooth)
|
|
273
|
+
case uwb(BlueDeviceDetailsUWB)
|
|
274
|
+
|
|
275
|
+
fileprivate var isInitialized: Bool {
|
|
276
|
+
// The use of inline closures is to circumvent an issue where the compiler
|
|
277
|
+
// allocates stack space for every case branch when no optimizations are
|
|
278
|
+
// enabled. https://github.com/apple/swift-protobuf/issues/1034
|
|
279
|
+
switch self {
|
|
280
|
+
case .bluetooth: return {
|
|
281
|
+
guard case .bluetooth(let v) = self else { preconditionFailure() }
|
|
282
|
+
return v.isInitialized
|
|
283
|
+
}()
|
|
284
|
+
case .uwb: return {
|
|
285
|
+
guard case .uwb(let v) = self else { preconditionFailure() }
|
|
286
|
+
return v.isInitialized
|
|
287
|
+
}()
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
#if !swift(>=4.1)
|
|
292
|
+
public static func ==(lhs: BlueDeviceInfo.OneOf_Details, rhs: BlueDeviceInfo.OneOf_Details) -> Bool {
|
|
293
|
+
// The use of inline closures is to circumvent an issue where the compiler
|
|
294
|
+
// allocates stack space for every case branch when no optimizations are
|
|
295
|
+
// enabled. https://github.com/apple/swift-protobuf/issues/1034
|
|
296
|
+
switch (lhs, rhs) {
|
|
297
|
+
case (.bluetooth, .bluetooth): return {
|
|
298
|
+
guard case .bluetooth(let l) = lhs, case .bluetooth(let r) = rhs else { preconditionFailure() }
|
|
299
|
+
return l == r
|
|
300
|
+
}()
|
|
301
|
+
case (.uwb, .uwb): return {
|
|
302
|
+
guard case .uwb(let l) = lhs, case .uwb(let r) = rhs else { preconditionFailure() }
|
|
303
|
+
return l == r
|
|
304
|
+
}()
|
|
305
|
+
default: return false
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
#endif
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
public init() {}
|
|
312
|
+
|
|
313
|
+
fileprivate var _deviceType: BlueDeviceType? = nil
|
|
314
|
+
fileprivate var _deviceID: String? = nil
|
|
315
|
+
fileprivate var _distanceMeters: Float? = nil
|
|
316
|
+
fileprivate var _manufacturerInfo: BlueBleManufacturerInfo? = nil
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
#if swift(>=5.5) && canImport(_Concurrency)
|
|
320
|
+
extension BlueDeviceType: @unchecked Sendable {}
|
|
321
|
+
extension BlueI18n: @unchecked Sendable {}
|
|
322
|
+
extension BlueDeviceDetailsBluetooth: @unchecked Sendable {}
|
|
323
|
+
extension BlueDeviceDetailsUWB: @unchecked Sendable {}
|
|
324
|
+
extension BlueDeviceInfo: @unchecked Sendable {}
|
|
325
|
+
extension BlueDeviceInfo.OneOf_Details: @unchecked Sendable {}
|
|
326
|
+
#endif // swift(>=5.5) && canImport(_Concurrency)
|
|
327
|
+
|
|
328
|
+
// MARK: - Code below here is support for the SwiftProtobuf runtime.
|
|
329
|
+
|
|
330
|
+
extension BlueDeviceType: SwiftProtobuf._ProtoNameProviding {
|
|
331
|
+
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
|
|
332
|
+
1: .same(proto: "BluetoothDevice"),
|
|
333
|
+
2: .same(proto: "UWBDevice"),
|
|
334
|
+
]
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
extension BlueI18n: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
338
|
+
public static let protoMessageName: String = "BlueI18n"
|
|
339
|
+
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
|
|
340
|
+
1: .same(proto: "nfcWaitMessage"),
|
|
341
|
+
2: .same(proto: "nfcOssSuccessReadConfigurationMessage"),
|
|
342
|
+
3: .same(proto: "nfcOssSuccessUpdateConfigurationMessage"),
|
|
343
|
+
4: .same(proto: "nfcOssSuccessClearEventsMessage"),
|
|
344
|
+
5: .same(proto: "nfcOssSuccessIsProvisionedMessage"),
|
|
345
|
+
6: .same(proto: "nfcOssSuccessProvisionMessage"),
|
|
346
|
+
7: .same(proto: "nfcOssSuccessUnprovisionMessage"),
|
|
347
|
+
8: .same(proto: "nfcOssSuccessFormatMessage"),
|
|
348
|
+
]
|
|
349
|
+
|
|
350
|
+
public var isInitialized: Bool {
|
|
351
|
+
if self._nfcWaitMessage == nil {return false}
|
|
352
|
+
if self._nfcOssSuccessReadConfigurationMessage == nil {return false}
|
|
353
|
+
if self._nfcOssSuccessUpdateConfigurationMessage == nil {return false}
|
|
354
|
+
if self._nfcOssSuccessClearEventsMessage == nil {return false}
|
|
355
|
+
if self._nfcOssSuccessIsProvisionedMessage == nil {return false}
|
|
356
|
+
if self._nfcOssSuccessProvisionMessage == nil {return false}
|
|
357
|
+
if self._nfcOssSuccessUnprovisionMessage == nil {return false}
|
|
358
|
+
if self._nfcOssSuccessFormatMessage == nil {return false}
|
|
359
|
+
return true
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
|
|
363
|
+
while let fieldNumber = try decoder.nextFieldNumber() {
|
|
364
|
+
// The use of inline closures is to circumvent an issue where the compiler
|
|
365
|
+
// allocates stack space for every case branch when no optimizations are
|
|
366
|
+
// enabled. https://github.com/apple/swift-protobuf/issues/1034
|
|
367
|
+
switch fieldNumber {
|
|
368
|
+
case 1: try { try decoder.decodeSingularStringField(value: &self._nfcWaitMessage) }()
|
|
369
|
+
case 2: try { try decoder.decodeSingularStringField(value: &self._nfcOssSuccessReadConfigurationMessage) }()
|
|
370
|
+
case 3: try { try decoder.decodeSingularStringField(value: &self._nfcOssSuccessUpdateConfigurationMessage) }()
|
|
371
|
+
case 4: try { try decoder.decodeSingularStringField(value: &self._nfcOssSuccessClearEventsMessage) }()
|
|
372
|
+
case 5: try { try decoder.decodeSingularStringField(value: &self._nfcOssSuccessIsProvisionedMessage) }()
|
|
373
|
+
case 6: try { try decoder.decodeSingularStringField(value: &self._nfcOssSuccessProvisionMessage) }()
|
|
374
|
+
case 7: try { try decoder.decodeSingularStringField(value: &self._nfcOssSuccessUnprovisionMessage) }()
|
|
375
|
+
case 8: try { try decoder.decodeSingularStringField(value: &self._nfcOssSuccessFormatMessage) }()
|
|
376
|
+
default: break
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
|
|
382
|
+
// The use of inline closures is to circumvent an issue where the compiler
|
|
383
|
+
// allocates stack space for every if/case branch local when no optimizations
|
|
384
|
+
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
|
|
385
|
+
// https://github.com/apple/swift-protobuf/issues/1182
|
|
386
|
+
try { if let v = self._nfcWaitMessage {
|
|
387
|
+
try visitor.visitSingularStringField(value: v, fieldNumber: 1)
|
|
388
|
+
} }()
|
|
389
|
+
try { if let v = self._nfcOssSuccessReadConfigurationMessage {
|
|
390
|
+
try visitor.visitSingularStringField(value: v, fieldNumber: 2)
|
|
391
|
+
} }()
|
|
392
|
+
try { if let v = self._nfcOssSuccessUpdateConfigurationMessage {
|
|
393
|
+
try visitor.visitSingularStringField(value: v, fieldNumber: 3)
|
|
394
|
+
} }()
|
|
395
|
+
try { if let v = self._nfcOssSuccessClearEventsMessage {
|
|
396
|
+
try visitor.visitSingularStringField(value: v, fieldNumber: 4)
|
|
397
|
+
} }()
|
|
398
|
+
try { if let v = self._nfcOssSuccessIsProvisionedMessage {
|
|
399
|
+
try visitor.visitSingularStringField(value: v, fieldNumber: 5)
|
|
400
|
+
} }()
|
|
401
|
+
try { if let v = self._nfcOssSuccessProvisionMessage {
|
|
402
|
+
try visitor.visitSingularStringField(value: v, fieldNumber: 6)
|
|
403
|
+
} }()
|
|
404
|
+
try { if let v = self._nfcOssSuccessUnprovisionMessage {
|
|
405
|
+
try visitor.visitSingularStringField(value: v, fieldNumber: 7)
|
|
406
|
+
} }()
|
|
407
|
+
try { if let v = self._nfcOssSuccessFormatMessage {
|
|
408
|
+
try visitor.visitSingularStringField(value: v, fieldNumber: 8)
|
|
409
|
+
} }()
|
|
410
|
+
try unknownFields.traverse(visitor: &visitor)
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
public static func ==(lhs: BlueI18n, rhs: BlueI18n) -> Bool {
|
|
414
|
+
if lhs._nfcWaitMessage != rhs._nfcWaitMessage {return false}
|
|
415
|
+
if lhs._nfcOssSuccessReadConfigurationMessage != rhs._nfcOssSuccessReadConfigurationMessage {return false}
|
|
416
|
+
if lhs._nfcOssSuccessUpdateConfigurationMessage != rhs._nfcOssSuccessUpdateConfigurationMessage {return false}
|
|
417
|
+
if lhs._nfcOssSuccessClearEventsMessage != rhs._nfcOssSuccessClearEventsMessage {return false}
|
|
418
|
+
if lhs._nfcOssSuccessIsProvisionedMessage != rhs._nfcOssSuccessIsProvisionedMessage {return false}
|
|
419
|
+
if lhs._nfcOssSuccessProvisionMessage != rhs._nfcOssSuccessProvisionMessage {return false}
|
|
420
|
+
if lhs._nfcOssSuccessUnprovisionMessage != rhs._nfcOssSuccessUnprovisionMessage {return false}
|
|
421
|
+
if lhs._nfcOssSuccessFormatMessage != rhs._nfcOssSuccessFormatMessage {return false}
|
|
422
|
+
if lhs.unknownFields != rhs.unknownFields {return false}
|
|
423
|
+
return true
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
extension BlueDeviceDetailsBluetooth: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
428
|
+
public static let protoMessageName: String = "BlueDeviceDetailsBluetooth"
|
|
429
|
+
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
|
|
430
|
+
1: .same(proto: "rssi"),
|
|
431
|
+
2: .same(proto: "txPower"),
|
|
432
|
+
3: .same(proto: "isIBeacon"),
|
|
433
|
+
]
|
|
434
|
+
|
|
435
|
+
public var isInitialized: Bool {
|
|
436
|
+
if self._rssi == nil {return false}
|
|
437
|
+
if self._txPower == nil {return false}
|
|
438
|
+
if self._isIbeacon == nil {return false}
|
|
439
|
+
return true
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
|
|
443
|
+
while let fieldNumber = try decoder.nextFieldNumber() {
|
|
444
|
+
// The use of inline closures is to circumvent an issue where the compiler
|
|
445
|
+
// allocates stack space for every case branch when no optimizations are
|
|
446
|
+
// enabled. https://github.com/apple/swift-protobuf/issues/1034
|
|
447
|
+
switch fieldNumber {
|
|
448
|
+
case 1: try { try decoder.decodeSingularInt32Field(value: &self._rssi) }()
|
|
449
|
+
case 2: try { try decoder.decodeSingularInt32Field(value: &self._txPower) }()
|
|
450
|
+
case 3: try { try decoder.decodeSingularBoolField(value: &self._isIbeacon) }()
|
|
451
|
+
default: break
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
|
|
456
|
+
public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
|
|
457
|
+
// The use of inline closures is to circumvent an issue where the compiler
|
|
458
|
+
// allocates stack space for every if/case branch local when no optimizations
|
|
459
|
+
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
|
|
460
|
+
// https://github.com/apple/swift-protobuf/issues/1182
|
|
461
|
+
try { if let v = self._rssi {
|
|
462
|
+
try visitor.visitSingularInt32Field(value: v, fieldNumber: 1)
|
|
463
|
+
} }()
|
|
464
|
+
try { if let v = self._txPower {
|
|
465
|
+
try visitor.visitSingularInt32Field(value: v, fieldNumber: 2)
|
|
466
|
+
} }()
|
|
467
|
+
try { if let v = self._isIbeacon {
|
|
468
|
+
try visitor.visitSingularBoolField(value: v, fieldNumber: 3)
|
|
469
|
+
} }()
|
|
470
|
+
try unknownFields.traverse(visitor: &visitor)
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
public static func ==(lhs: BlueDeviceDetailsBluetooth, rhs: BlueDeviceDetailsBluetooth) -> Bool {
|
|
474
|
+
if lhs._rssi != rhs._rssi {return false}
|
|
475
|
+
if lhs._txPower != rhs._txPower {return false}
|
|
476
|
+
if lhs._isIbeacon != rhs._isIbeacon {return false}
|
|
477
|
+
if lhs.unknownFields != rhs.unknownFields {return false}
|
|
478
|
+
return true
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
extension BlueDeviceDetailsUWB: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
483
|
+
public static let protoMessageName: String = "BlueDeviceDetailsUWB"
|
|
484
|
+
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
|
|
485
|
+
1: .same(proto: "notUsed"),
|
|
486
|
+
]
|
|
487
|
+
|
|
488
|
+
public var isInitialized: Bool {
|
|
489
|
+
if self._notUsed == nil {return false}
|
|
490
|
+
return true
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
|
|
494
|
+
while let fieldNumber = try decoder.nextFieldNumber() {
|
|
495
|
+
// The use of inline closures is to circumvent an issue where the compiler
|
|
496
|
+
// allocates stack space for every case branch when no optimizations are
|
|
497
|
+
// enabled. https://github.com/apple/swift-protobuf/issues/1034
|
|
498
|
+
switch fieldNumber {
|
|
499
|
+
case 1: try { try decoder.decodeSingularBoolField(value: &self._notUsed) }()
|
|
500
|
+
default: break
|
|
501
|
+
}
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
|
|
505
|
+
public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
|
|
506
|
+
// The use of inline closures is to circumvent an issue where the compiler
|
|
507
|
+
// allocates stack space for every if/case branch local when no optimizations
|
|
508
|
+
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
|
|
509
|
+
// https://github.com/apple/swift-protobuf/issues/1182
|
|
510
|
+
try { if let v = self._notUsed {
|
|
511
|
+
try visitor.visitSingularBoolField(value: v, fieldNumber: 1)
|
|
512
|
+
} }()
|
|
513
|
+
try unknownFields.traverse(visitor: &visitor)
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
public static func ==(lhs: BlueDeviceDetailsUWB, rhs: BlueDeviceDetailsUWB) -> Bool {
|
|
517
|
+
if lhs._notUsed != rhs._notUsed {return false}
|
|
518
|
+
if lhs.unknownFields != rhs.unknownFields {return false}
|
|
519
|
+
return true
|
|
520
|
+
}
|
|
521
|
+
}
|
|
522
|
+
|
|
523
|
+
extension BlueDeviceInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
524
|
+
public static let protoMessageName: String = "BlueDeviceInfo"
|
|
525
|
+
public static let _protobuf_nameMap: SwiftProtobuf._NameMap = [
|
|
526
|
+
1: .same(proto: "deviceType"),
|
|
527
|
+
2: .same(proto: "deviceId"),
|
|
528
|
+
3: .same(proto: "distanceMeters"),
|
|
529
|
+
4: .same(proto: "manufacturerInfo"),
|
|
530
|
+
5: .same(proto: "bluetooth"),
|
|
531
|
+
6: .same(proto: "uwb"),
|
|
532
|
+
]
|
|
533
|
+
|
|
534
|
+
public var isInitialized: Bool {
|
|
535
|
+
if self._deviceType == nil {return false}
|
|
536
|
+
if self._deviceID == nil {return false}
|
|
537
|
+
if self._distanceMeters == nil {return false}
|
|
538
|
+
if let v = self._manufacturerInfo, !v.isInitialized {return false}
|
|
539
|
+
if let v = self.details, !v.isInitialized {return false}
|
|
540
|
+
return true
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
|
|
544
|
+
while let fieldNumber = try decoder.nextFieldNumber() {
|
|
545
|
+
// The use of inline closures is to circumvent an issue where the compiler
|
|
546
|
+
// allocates stack space for every case branch when no optimizations are
|
|
547
|
+
// enabled. https://github.com/apple/swift-protobuf/issues/1034
|
|
548
|
+
switch fieldNumber {
|
|
549
|
+
case 1: try { try decoder.decodeSingularEnumField(value: &self._deviceType) }()
|
|
550
|
+
case 2: try { try decoder.decodeSingularStringField(value: &self._deviceID) }()
|
|
551
|
+
case 3: try { try decoder.decodeSingularFloatField(value: &self._distanceMeters) }()
|
|
552
|
+
case 4: try { try decoder.decodeSingularMessageField(value: &self._manufacturerInfo) }()
|
|
553
|
+
case 5: try {
|
|
554
|
+
var v: BlueDeviceDetailsBluetooth?
|
|
555
|
+
var hadOneofValue = false
|
|
556
|
+
if let current = self.details {
|
|
557
|
+
hadOneofValue = true
|
|
558
|
+
if case .bluetooth(let m) = current {v = m}
|
|
559
|
+
}
|
|
560
|
+
try decoder.decodeSingularMessageField(value: &v)
|
|
561
|
+
if let v = v {
|
|
562
|
+
if hadOneofValue {try decoder.handleConflictingOneOf()}
|
|
563
|
+
self.details = .bluetooth(v)
|
|
564
|
+
}
|
|
565
|
+
}()
|
|
566
|
+
case 6: try {
|
|
567
|
+
var v: BlueDeviceDetailsUWB?
|
|
568
|
+
var hadOneofValue = false
|
|
569
|
+
if let current = self.details {
|
|
570
|
+
hadOneofValue = true
|
|
571
|
+
if case .uwb(let m) = current {v = m}
|
|
572
|
+
}
|
|
573
|
+
try decoder.decodeSingularMessageField(value: &v)
|
|
574
|
+
if let v = v {
|
|
575
|
+
if hadOneofValue {try decoder.handleConflictingOneOf()}
|
|
576
|
+
self.details = .uwb(v)
|
|
577
|
+
}
|
|
578
|
+
}()
|
|
579
|
+
default: break
|
|
580
|
+
}
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
|
|
585
|
+
// The use of inline closures is to circumvent an issue where the compiler
|
|
586
|
+
// allocates stack space for every if/case branch local when no optimizations
|
|
587
|
+
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
|
|
588
|
+
// https://github.com/apple/swift-protobuf/issues/1182
|
|
589
|
+
try { if let v = self._deviceType {
|
|
590
|
+
try visitor.visitSingularEnumField(value: v, fieldNumber: 1)
|
|
591
|
+
} }()
|
|
592
|
+
try { if let v = self._deviceID {
|
|
593
|
+
try visitor.visitSingularStringField(value: v, fieldNumber: 2)
|
|
594
|
+
} }()
|
|
595
|
+
try { if let v = self._distanceMeters {
|
|
596
|
+
try visitor.visitSingularFloatField(value: v, fieldNumber: 3)
|
|
597
|
+
} }()
|
|
598
|
+
try { if let v = self._manufacturerInfo {
|
|
599
|
+
try visitor.visitSingularMessageField(value: v, fieldNumber: 4)
|
|
600
|
+
} }()
|
|
601
|
+
switch self.details {
|
|
602
|
+
case .bluetooth?: try {
|
|
603
|
+
guard case .bluetooth(let v)? = self.details else { preconditionFailure() }
|
|
604
|
+
try visitor.visitSingularMessageField(value: v, fieldNumber: 5)
|
|
605
|
+
}()
|
|
606
|
+
case .uwb?: try {
|
|
607
|
+
guard case .uwb(let v)? = self.details else { preconditionFailure() }
|
|
608
|
+
try visitor.visitSingularMessageField(value: v, fieldNumber: 6)
|
|
609
|
+
}()
|
|
610
|
+
case nil: break
|
|
611
|
+
}
|
|
612
|
+
try unknownFields.traverse(visitor: &visitor)
|
|
613
|
+
}
|
|
614
|
+
|
|
615
|
+
public static func ==(lhs: BlueDeviceInfo, rhs: BlueDeviceInfo) -> Bool {
|
|
616
|
+
if lhs._deviceType != rhs._deviceType {return false}
|
|
617
|
+
if lhs._deviceID != rhs._deviceID {return false}
|
|
618
|
+
if lhs._distanceMeters != rhs._distanceMeters {return false}
|
|
619
|
+
if lhs._manufacturerInfo != rhs._manufacturerInfo {return false}
|
|
620
|
+
if lhs.details != rhs.details {return false}
|
|
621
|
+
if lhs.unknownFields != rhs.unknownFields {return false}
|
|
622
|
+
return true
|
|
623
|
+
}
|
|
624
|
+
}
|