@blueid/access-proto 12.0.0 → 12.2.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 +10 -38
- package/BlueNexusCore.proto +122 -0
- package/cjs/BlueCore_pb.d.ts +5 -177
- package/cjs/BlueCore_pb.js +2 -70
- package/cjs/BlueNexusCore_pb.d.ts +591 -0
- package/cjs/BlueNexusCore_pb.js +234 -0
- package/cjs/index.d.ts +1 -0
- package/cjs/index.js +1 -0
- package/es/BlueCore_pb.d.ts +5 -177
- package/es/BlueCore_pb.js +1 -67
- package/es/BlueNexusCore_pb.d.ts +591 -0
- package/es/BlueNexusCore_pb.js +215 -0
- package/es/index.d.ts +1 -0
- package/es/index.js +1 -0
- package/nanopb/BlueCore.pb.c +0 -18
- package/nanopb/BlueCore.pb.h +4 -124
- package/nanopb/BlueNexusCore.pb.c +63 -0
- package/nanopb/BlueNexusCore.pb.h +409 -0
- package/package.json +1 -1
- package/swift/BlueCore.pb.swift +2 -487
- package/swift/BlueNexusCore.pb.swift +1700 -0
package/swift/BlueCore.pb.swift
CHANGED
|
@@ -335,6 +335,7 @@ public enum BlueEventId: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
|
|
|
335
335
|
public enum BlueEventInfoSystem: Int, SwiftProtobuf.Enum, Swift.CaseIterable {
|
|
336
336
|
case systemRestart = 1
|
|
337
337
|
case systemConfigured = 2
|
|
338
|
+
case unknownTransponderDetected = 3
|
|
338
339
|
|
|
339
340
|
public init() {
|
|
340
341
|
self = .systemRestart
|
|
@@ -1164,198 +1165,6 @@ public struct BlueSPResult: Sendable {
|
|
|
1164
1165
|
fileprivate var _data: Data? = nil
|
|
1165
1166
|
}
|
|
1166
1167
|
|
|
1167
|
-
public struct BlueWebSPHandshake: Sendable {
|
|
1168
|
-
// SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
1169
|
-
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
1170
|
-
// methods supported on all messages.
|
|
1171
|
-
|
|
1172
|
-
public var salt: Data {
|
|
1173
|
-
get {return _salt ?? Data()}
|
|
1174
|
-
set {_salt = newValue}
|
|
1175
|
-
}
|
|
1176
|
-
/// Returns true if `salt` has been explicitly set.
|
|
1177
|
-
public var hasSalt: Bool {return self._salt != nil}
|
|
1178
|
-
/// Clears the value of `salt`. Subsequent reads from it will return its default value.
|
|
1179
|
-
public mutating func clearSalt() {self._salt = nil}
|
|
1180
|
-
|
|
1181
|
-
public var unknownFields = SwiftProtobuf.UnknownStorage()
|
|
1182
|
-
|
|
1183
|
-
public init() {}
|
|
1184
|
-
|
|
1185
|
-
fileprivate var _salt: Data? = nil
|
|
1186
|
-
}
|
|
1187
|
-
|
|
1188
|
-
public struct BlueWebSPHandshakeReply: Sendable {
|
|
1189
|
-
// SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
1190
|
-
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
1191
|
-
// methods supported on all messages.
|
|
1192
|
-
|
|
1193
|
-
public var deviceID: String {
|
|
1194
|
-
get {return _deviceID ?? String()}
|
|
1195
|
-
set {_deviceID = newValue}
|
|
1196
|
-
}
|
|
1197
|
-
/// Returns true if `deviceID` has been explicitly set.
|
|
1198
|
-
public var hasDeviceID: Bool {return self._deviceID != nil}
|
|
1199
|
-
/// Clears the value of `deviceID`. Subsequent reads from it will return its default value.
|
|
1200
|
-
public mutating func clearDeviceID() {self._deviceID = nil}
|
|
1201
|
-
|
|
1202
|
-
public var signature: Data {
|
|
1203
|
-
get {return _signature ?? Data()}
|
|
1204
|
-
set {_signature = newValue}
|
|
1205
|
-
}
|
|
1206
|
-
/// Returns true if `signature` has been explicitly set.
|
|
1207
|
-
public var hasSignature: Bool {return self._signature != nil}
|
|
1208
|
-
/// Clears the value of `signature`. Subsequent reads from it will return its default value.
|
|
1209
|
-
public mutating func clearSignature() {self._signature = nil}
|
|
1210
|
-
|
|
1211
|
-
public var unknownFields = SwiftProtobuf.UnknownStorage()
|
|
1212
|
-
|
|
1213
|
-
public init() {}
|
|
1214
|
-
|
|
1215
|
-
fileprivate var _deviceID: String? = nil
|
|
1216
|
-
fileprivate var _signature: Data? = nil
|
|
1217
|
-
}
|
|
1218
|
-
|
|
1219
|
-
public struct BlueWebSPMessage: Sendable {
|
|
1220
|
-
// SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
1221
|
-
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
1222
|
-
// methods supported on all messages.
|
|
1223
|
-
|
|
1224
|
-
public var transactionID: UInt32 {
|
|
1225
|
-
get {return _transactionID ?? 0}
|
|
1226
|
-
set {_transactionID = newValue}
|
|
1227
|
-
}
|
|
1228
|
-
/// Returns true if `transactionID` has been explicitly set.
|
|
1229
|
-
public var hasTransactionID: Bool {return self._transactionID != nil}
|
|
1230
|
-
/// Clears the value of `transactionID`. Subsequent reads from it will return its default value.
|
|
1231
|
-
public mutating func clearTransactionID() {self._transactionID = nil}
|
|
1232
|
-
|
|
1233
|
-
public var payload: BlueSPResult {
|
|
1234
|
-
get {return _payload ?? BlueSPResult()}
|
|
1235
|
-
set {_payload = newValue}
|
|
1236
|
-
}
|
|
1237
|
-
/// Returns true if `payload` has been explicitly set.
|
|
1238
|
-
public var hasPayload: Bool {return self._payload != nil}
|
|
1239
|
-
/// Clears the value of `payload`. Subsequent reads from it will return its default value.
|
|
1240
|
-
public mutating func clearPayload() {self._payload = nil}
|
|
1241
|
-
|
|
1242
|
-
public var unknownFields = SwiftProtobuf.UnknownStorage()
|
|
1243
|
-
|
|
1244
|
-
public init() {}
|
|
1245
|
-
|
|
1246
|
-
fileprivate var _transactionID: UInt32? = nil
|
|
1247
|
-
fileprivate var _payload: BlueSPResult? = nil
|
|
1248
|
-
}
|
|
1249
|
-
|
|
1250
|
-
/// Message sent by the server to the device
|
|
1251
|
-
public struct BlueWebSPServerMessage: Sendable {
|
|
1252
|
-
// SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
1253
|
-
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
1254
|
-
// methods supported on all messages.
|
|
1255
|
-
|
|
1256
|
-
public var payload: BlueWebSPServerMessage.OneOf_Payload? = nil
|
|
1257
|
-
|
|
1258
|
-
public var handshake: BlueWebSPHandshake {
|
|
1259
|
-
get {
|
|
1260
|
-
if case .handshake(let v)? = payload {return v}
|
|
1261
|
-
return BlueWebSPHandshake()
|
|
1262
|
-
}
|
|
1263
|
-
set {payload = .handshake(newValue)}
|
|
1264
|
-
}
|
|
1265
|
-
|
|
1266
|
-
public var command: BlueSPTokenCommand {
|
|
1267
|
-
get {
|
|
1268
|
-
if case .command(let v)? = payload {return v}
|
|
1269
|
-
return BlueSPTokenCommand()
|
|
1270
|
-
}
|
|
1271
|
-
set {payload = .command(newValue)}
|
|
1272
|
-
}
|
|
1273
|
-
|
|
1274
|
-
public var ossSo: BlueOssSoMobile {
|
|
1275
|
-
get {
|
|
1276
|
-
if case .ossSo(let v)? = payload {return v}
|
|
1277
|
-
return BlueOssSoMobile()
|
|
1278
|
-
}
|
|
1279
|
-
set {payload = .ossSo(newValue)}
|
|
1280
|
-
}
|
|
1281
|
-
|
|
1282
|
-
public var ossSid: BlueOssSidMobile {
|
|
1283
|
-
get {
|
|
1284
|
-
if case .ossSid(let v)? = payload {return v}
|
|
1285
|
-
return BlueOssSidMobile()
|
|
1286
|
-
}
|
|
1287
|
-
set {payload = .ossSid(newValue)}
|
|
1288
|
-
}
|
|
1289
|
-
|
|
1290
|
-
public var unknownFields = SwiftProtobuf.UnknownStorage()
|
|
1291
|
-
|
|
1292
|
-
public enum OneOf_Payload: Equatable, Sendable {
|
|
1293
|
-
case handshake(BlueWebSPHandshake)
|
|
1294
|
-
case command(BlueSPTokenCommand)
|
|
1295
|
-
case ossSo(BlueOssSoMobile)
|
|
1296
|
-
case ossSid(BlueOssSidMobile)
|
|
1297
|
-
|
|
1298
|
-
fileprivate var isInitialized: Bool {
|
|
1299
|
-
// The use of inline closures is to circumvent an issue where the compiler
|
|
1300
|
-
// allocates stack space for every case branch when no optimizations are
|
|
1301
|
-
// enabled. https://github.com/apple/swift-protobuf/issues/1034
|
|
1302
|
-
switch self {
|
|
1303
|
-
case .handshake: return {
|
|
1304
|
-
guard case .handshake(let v) = self else { preconditionFailure() }
|
|
1305
|
-
return v.isInitialized
|
|
1306
|
-
}()
|
|
1307
|
-
case .command: return {
|
|
1308
|
-
guard case .command(let v) = self else { preconditionFailure() }
|
|
1309
|
-
return v.isInitialized
|
|
1310
|
-
}()
|
|
1311
|
-
case .ossSo: return {
|
|
1312
|
-
guard case .ossSo(let v) = self else { preconditionFailure() }
|
|
1313
|
-
return v.isInitialized
|
|
1314
|
-
}()
|
|
1315
|
-
case .ossSid: return {
|
|
1316
|
-
guard case .ossSid(let v) = self else { preconditionFailure() }
|
|
1317
|
-
return v.isInitialized
|
|
1318
|
-
}()
|
|
1319
|
-
}
|
|
1320
|
-
}
|
|
1321
|
-
|
|
1322
|
-
}
|
|
1323
|
-
|
|
1324
|
-
public init() {}
|
|
1325
|
-
}
|
|
1326
|
-
|
|
1327
|
-
/// TODO: payload
|
|
1328
|
-
public struct BlueWebSPClientMessage: Sendable {
|
|
1329
|
-
// SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
1330
|
-
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
1331
|
-
// methods supported on all messages.
|
|
1332
|
-
|
|
1333
|
-
public var unknownFields = SwiftProtobuf.UnknownStorage()
|
|
1334
|
-
|
|
1335
|
-
public init() {}
|
|
1336
|
-
}
|
|
1337
|
-
|
|
1338
|
-
public struct BlueWebSPStatusMessage: Sendable {
|
|
1339
|
-
// SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
1340
|
-
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
1341
|
-
// methods supported on all messages.
|
|
1342
|
-
|
|
1343
|
-
public var status: BlueReturnCode {
|
|
1344
|
-
get {return _status ?? .ok}
|
|
1345
|
-
set {_status = newValue}
|
|
1346
|
-
}
|
|
1347
|
-
/// Returns true if `status` has been explicitly set.
|
|
1348
|
-
public var hasStatus: Bool {return self._status != nil}
|
|
1349
|
-
/// Clears the value of `status`. Subsequent reads from it will return its default value.
|
|
1350
|
-
public mutating func clearStatus() {self._status = nil}
|
|
1351
|
-
|
|
1352
|
-
public var unknownFields = SwiftProtobuf.UnknownStorage()
|
|
1353
|
-
|
|
1354
|
-
public init() {}
|
|
1355
|
-
|
|
1356
|
-
fileprivate var _status: BlueReturnCode? = nil
|
|
1357
|
-
}
|
|
1358
|
-
|
|
1359
1168
|
public struct BlueOssAccessResult: Sendable {
|
|
1360
1169
|
// SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
1361
1170
|
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
@@ -3192,7 +3001,7 @@ extension BlueEventId: SwiftProtobuf._ProtoNameProviding {
|
|
|
3192
3001
|
}
|
|
3193
3002
|
|
|
3194
3003
|
extension BlueEventInfoSystem: SwiftProtobuf._ProtoNameProviding {
|
|
3195
|
-
public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}SystemRestart\0\u{1}SystemConfigured\0")
|
|
3004
|
+
public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}SystemRestart\0\u{1}SystemConfigured\0\u{1}UnknownTransponderDetected\0")
|
|
3196
3005
|
}
|
|
3197
3006
|
|
|
3198
3007
|
extension BlueEventInfoAccess: SwiftProtobuf._ProtoNameProviding {
|
|
@@ -4086,300 +3895,6 @@ extension BlueSPResult: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementat
|
|
|
4086
3895
|
}
|
|
4087
3896
|
}
|
|
4088
3897
|
|
|
4089
|
-
extension BlueWebSPHandshake: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
4090
|
-
public static let protoMessageName: String = "BlueWebSPHandshake"
|
|
4091
|
-
public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}salt\0")
|
|
4092
|
-
|
|
4093
|
-
public var isInitialized: Bool {
|
|
4094
|
-
if self._salt == nil {return false}
|
|
4095
|
-
return true
|
|
4096
|
-
}
|
|
4097
|
-
|
|
4098
|
-
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
|
|
4099
|
-
while let fieldNumber = try decoder.nextFieldNumber() {
|
|
4100
|
-
// The use of inline closures is to circumvent an issue where the compiler
|
|
4101
|
-
// allocates stack space for every case branch when no optimizations are
|
|
4102
|
-
// enabled. https://github.com/apple/swift-protobuf/issues/1034
|
|
4103
|
-
switch fieldNumber {
|
|
4104
|
-
case 1: try { try decoder.decodeSingularBytesField(value: &self._salt) }()
|
|
4105
|
-
default: break
|
|
4106
|
-
}
|
|
4107
|
-
}
|
|
4108
|
-
}
|
|
4109
|
-
|
|
4110
|
-
public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
|
|
4111
|
-
// The use of inline closures is to circumvent an issue where the compiler
|
|
4112
|
-
// allocates stack space for every if/case branch local when no optimizations
|
|
4113
|
-
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
|
|
4114
|
-
// https://github.com/apple/swift-protobuf/issues/1182
|
|
4115
|
-
try { if let v = self._salt {
|
|
4116
|
-
try visitor.visitSingularBytesField(value: v, fieldNumber: 1)
|
|
4117
|
-
} }()
|
|
4118
|
-
try unknownFields.traverse(visitor: &visitor)
|
|
4119
|
-
}
|
|
4120
|
-
|
|
4121
|
-
public static func ==(lhs: BlueWebSPHandshake, rhs: BlueWebSPHandshake) -> Bool {
|
|
4122
|
-
if lhs._salt != rhs._salt {return false}
|
|
4123
|
-
if lhs.unknownFields != rhs.unknownFields {return false}
|
|
4124
|
-
return true
|
|
4125
|
-
}
|
|
4126
|
-
}
|
|
4127
|
-
|
|
4128
|
-
extension BlueWebSPHandshakeReply: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
4129
|
-
public static let protoMessageName: String = "BlueWebSPHandshakeReply"
|
|
4130
|
-
public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}deviceId\0\u{1}signature\0")
|
|
4131
|
-
|
|
4132
|
-
public var isInitialized: Bool {
|
|
4133
|
-
if self._deviceID == nil {return false}
|
|
4134
|
-
if self._signature == nil {return false}
|
|
4135
|
-
return true
|
|
4136
|
-
}
|
|
4137
|
-
|
|
4138
|
-
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
|
|
4139
|
-
while let fieldNumber = try decoder.nextFieldNumber() {
|
|
4140
|
-
// The use of inline closures is to circumvent an issue where the compiler
|
|
4141
|
-
// allocates stack space for every case branch when no optimizations are
|
|
4142
|
-
// enabled. https://github.com/apple/swift-protobuf/issues/1034
|
|
4143
|
-
switch fieldNumber {
|
|
4144
|
-
case 1: try { try decoder.decodeSingularStringField(value: &self._deviceID) }()
|
|
4145
|
-
case 2: try { try decoder.decodeSingularBytesField(value: &self._signature) }()
|
|
4146
|
-
default: break
|
|
4147
|
-
}
|
|
4148
|
-
}
|
|
4149
|
-
}
|
|
4150
|
-
|
|
4151
|
-
public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
|
|
4152
|
-
// The use of inline closures is to circumvent an issue where the compiler
|
|
4153
|
-
// allocates stack space for every if/case branch local when no optimizations
|
|
4154
|
-
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
|
|
4155
|
-
// https://github.com/apple/swift-protobuf/issues/1182
|
|
4156
|
-
try { if let v = self._deviceID {
|
|
4157
|
-
try visitor.visitSingularStringField(value: v, fieldNumber: 1)
|
|
4158
|
-
} }()
|
|
4159
|
-
try { if let v = self._signature {
|
|
4160
|
-
try visitor.visitSingularBytesField(value: v, fieldNumber: 2)
|
|
4161
|
-
} }()
|
|
4162
|
-
try unknownFields.traverse(visitor: &visitor)
|
|
4163
|
-
}
|
|
4164
|
-
|
|
4165
|
-
public static func ==(lhs: BlueWebSPHandshakeReply, rhs: BlueWebSPHandshakeReply) -> Bool {
|
|
4166
|
-
if lhs._deviceID != rhs._deviceID {return false}
|
|
4167
|
-
if lhs._signature != rhs._signature {return false}
|
|
4168
|
-
if lhs.unknownFields != rhs.unknownFields {return false}
|
|
4169
|
-
return true
|
|
4170
|
-
}
|
|
4171
|
-
}
|
|
4172
|
-
|
|
4173
|
-
extension BlueWebSPMessage: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
4174
|
-
public static let protoMessageName: String = "BlueWebSPMessage"
|
|
4175
|
-
public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}transactionId\0\u{1}payload\0")
|
|
4176
|
-
|
|
4177
|
-
public var isInitialized: Bool {
|
|
4178
|
-
if self._transactionID == nil {return false}
|
|
4179
|
-
if self._payload == nil {return false}
|
|
4180
|
-
if let v = self._payload, !v.isInitialized {return false}
|
|
4181
|
-
return true
|
|
4182
|
-
}
|
|
4183
|
-
|
|
4184
|
-
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
|
|
4185
|
-
while let fieldNumber = try decoder.nextFieldNumber() {
|
|
4186
|
-
// The use of inline closures is to circumvent an issue where the compiler
|
|
4187
|
-
// allocates stack space for every case branch when no optimizations are
|
|
4188
|
-
// enabled. https://github.com/apple/swift-protobuf/issues/1034
|
|
4189
|
-
switch fieldNumber {
|
|
4190
|
-
case 1: try { try decoder.decodeSingularUInt32Field(value: &self._transactionID) }()
|
|
4191
|
-
case 2: try { try decoder.decodeSingularMessageField(value: &self._payload) }()
|
|
4192
|
-
default: break
|
|
4193
|
-
}
|
|
4194
|
-
}
|
|
4195
|
-
}
|
|
4196
|
-
|
|
4197
|
-
public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
|
|
4198
|
-
// The use of inline closures is to circumvent an issue where the compiler
|
|
4199
|
-
// allocates stack space for every if/case branch local when no optimizations
|
|
4200
|
-
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
|
|
4201
|
-
// https://github.com/apple/swift-protobuf/issues/1182
|
|
4202
|
-
try { if let v = self._transactionID {
|
|
4203
|
-
try visitor.visitSingularUInt32Field(value: v, fieldNumber: 1)
|
|
4204
|
-
} }()
|
|
4205
|
-
try { if let v = self._payload {
|
|
4206
|
-
try visitor.visitSingularMessageField(value: v, fieldNumber: 2)
|
|
4207
|
-
} }()
|
|
4208
|
-
try unknownFields.traverse(visitor: &visitor)
|
|
4209
|
-
}
|
|
4210
|
-
|
|
4211
|
-
public static func ==(lhs: BlueWebSPMessage, rhs: BlueWebSPMessage) -> Bool {
|
|
4212
|
-
if lhs._transactionID != rhs._transactionID {return false}
|
|
4213
|
-
if lhs._payload != rhs._payload {return false}
|
|
4214
|
-
if lhs.unknownFields != rhs.unknownFields {return false}
|
|
4215
|
-
return true
|
|
4216
|
-
}
|
|
4217
|
-
}
|
|
4218
|
-
|
|
4219
|
-
extension BlueWebSPServerMessage: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
4220
|
-
public static let protoMessageName: String = "BlueWebSPServerMessage"
|
|
4221
|
-
public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{2}\u{2}handshake\0\u{1}command\0\u{1}ossSo\0\u{1}ossSid\0")
|
|
4222
|
-
|
|
4223
|
-
public var isInitialized: Bool {
|
|
4224
|
-
if let v = self.payload, !v.isInitialized {return false}
|
|
4225
|
-
return true
|
|
4226
|
-
}
|
|
4227
|
-
|
|
4228
|
-
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
|
|
4229
|
-
while let fieldNumber = try decoder.nextFieldNumber() {
|
|
4230
|
-
// The use of inline closures is to circumvent an issue where the compiler
|
|
4231
|
-
// allocates stack space for every case branch when no optimizations are
|
|
4232
|
-
// enabled. https://github.com/apple/swift-protobuf/issues/1034
|
|
4233
|
-
switch fieldNumber {
|
|
4234
|
-
case 2: try {
|
|
4235
|
-
var v: BlueWebSPHandshake?
|
|
4236
|
-
var hadOneofValue = false
|
|
4237
|
-
if let current = self.payload {
|
|
4238
|
-
hadOneofValue = true
|
|
4239
|
-
if case .handshake(let m) = current {v = m}
|
|
4240
|
-
}
|
|
4241
|
-
try decoder.decodeSingularMessageField(value: &v)
|
|
4242
|
-
if let v = v {
|
|
4243
|
-
if hadOneofValue {try decoder.handleConflictingOneOf()}
|
|
4244
|
-
self.payload = .handshake(v)
|
|
4245
|
-
}
|
|
4246
|
-
}()
|
|
4247
|
-
case 3: try {
|
|
4248
|
-
var v: BlueSPTokenCommand?
|
|
4249
|
-
var hadOneofValue = false
|
|
4250
|
-
if let current = self.payload {
|
|
4251
|
-
hadOneofValue = true
|
|
4252
|
-
if case .command(let m) = current {v = m}
|
|
4253
|
-
}
|
|
4254
|
-
try decoder.decodeSingularMessageField(value: &v)
|
|
4255
|
-
if let v = v {
|
|
4256
|
-
if hadOneofValue {try decoder.handleConflictingOneOf()}
|
|
4257
|
-
self.payload = .command(v)
|
|
4258
|
-
}
|
|
4259
|
-
}()
|
|
4260
|
-
case 4: try {
|
|
4261
|
-
var v: BlueOssSoMobile?
|
|
4262
|
-
var hadOneofValue = false
|
|
4263
|
-
if let current = self.payload {
|
|
4264
|
-
hadOneofValue = true
|
|
4265
|
-
if case .ossSo(let m) = current {v = m}
|
|
4266
|
-
}
|
|
4267
|
-
try decoder.decodeSingularMessageField(value: &v)
|
|
4268
|
-
if let v = v {
|
|
4269
|
-
if hadOneofValue {try decoder.handleConflictingOneOf()}
|
|
4270
|
-
self.payload = .ossSo(v)
|
|
4271
|
-
}
|
|
4272
|
-
}()
|
|
4273
|
-
case 5: try {
|
|
4274
|
-
var v: BlueOssSidMobile?
|
|
4275
|
-
var hadOneofValue = false
|
|
4276
|
-
if let current = self.payload {
|
|
4277
|
-
hadOneofValue = true
|
|
4278
|
-
if case .ossSid(let m) = current {v = m}
|
|
4279
|
-
}
|
|
4280
|
-
try decoder.decodeSingularMessageField(value: &v)
|
|
4281
|
-
if let v = v {
|
|
4282
|
-
if hadOneofValue {try decoder.handleConflictingOneOf()}
|
|
4283
|
-
self.payload = .ossSid(v)
|
|
4284
|
-
}
|
|
4285
|
-
}()
|
|
4286
|
-
default: break
|
|
4287
|
-
}
|
|
4288
|
-
}
|
|
4289
|
-
}
|
|
4290
|
-
|
|
4291
|
-
public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
|
|
4292
|
-
// The use of inline closures is to circumvent an issue where the compiler
|
|
4293
|
-
// allocates stack space for every if/case branch local when no optimizations
|
|
4294
|
-
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
|
|
4295
|
-
// https://github.com/apple/swift-protobuf/issues/1182
|
|
4296
|
-
switch self.payload {
|
|
4297
|
-
case .handshake?: try {
|
|
4298
|
-
guard case .handshake(let v)? = self.payload else { preconditionFailure() }
|
|
4299
|
-
try visitor.visitSingularMessageField(value: v, fieldNumber: 2)
|
|
4300
|
-
}()
|
|
4301
|
-
case .command?: try {
|
|
4302
|
-
guard case .command(let v)? = self.payload else { preconditionFailure() }
|
|
4303
|
-
try visitor.visitSingularMessageField(value: v, fieldNumber: 3)
|
|
4304
|
-
}()
|
|
4305
|
-
case .ossSo?: try {
|
|
4306
|
-
guard case .ossSo(let v)? = self.payload else { preconditionFailure() }
|
|
4307
|
-
try visitor.visitSingularMessageField(value: v, fieldNumber: 4)
|
|
4308
|
-
}()
|
|
4309
|
-
case .ossSid?: try {
|
|
4310
|
-
guard case .ossSid(let v)? = self.payload else { preconditionFailure() }
|
|
4311
|
-
try visitor.visitSingularMessageField(value: v, fieldNumber: 5)
|
|
4312
|
-
}()
|
|
4313
|
-
case nil: break
|
|
4314
|
-
}
|
|
4315
|
-
try unknownFields.traverse(visitor: &visitor)
|
|
4316
|
-
}
|
|
4317
|
-
|
|
4318
|
-
public static func ==(lhs: BlueWebSPServerMessage, rhs: BlueWebSPServerMessage) -> Bool {
|
|
4319
|
-
if lhs.payload != rhs.payload {return false}
|
|
4320
|
-
if lhs.unknownFields != rhs.unknownFields {return false}
|
|
4321
|
-
return true
|
|
4322
|
-
}
|
|
4323
|
-
}
|
|
4324
|
-
|
|
4325
|
-
extension BlueWebSPClientMessage: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
4326
|
-
public static let protoMessageName: String = "BlueWebSPClientMessage"
|
|
4327
|
-
public static let _protobuf_nameMap = SwiftProtobuf._NameMap()
|
|
4328
|
-
|
|
4329
|
-
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
|
|
4330
|
-
// Load everything into unknown fields
|
|
4331
|
-
while try decoder.nextFieldNumber() != nil {}
|
|
4332
|
-
}
|
|
4333
|
-
|
|
4334
|
-
public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
|
|
4335
|
-
try unknownFields.traverse(visitor: &visitor)
|
|
4336
|
-
}
|
|
4337
|
-
|
|
4338
|
-
public static func ==(lhs: BlueWebSPClientMessage, rhs: BlueWebSPClientMessage) -> Bool {
|
|
4339
|
-
if lhs.unknownFields != rhs.unknownFields {return false}
|
|
4340
|
-
return true
|
|
4341
|
-
}
|
|
4342
|
-
}
|
|
4343
|
-
|
|
4344
|
-
extension BlueWebSPStatusMessage: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
4345
|
-
public static let protoMessageName: String = "BlueWebSPStatusMessage"
|
|
4346
|
-
public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}status\0")
|
|
4347
|
-
|
|
4348
|
-
public var isInitialized: Bool {
|
|
4349
|
-
if self._status == nil {return false}
|
|
4350
|
-
return true
|
|
4351
|
-
}
|
|
4352
|
-
|
|
4353
|
-
public mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
|
|
4354
|
-
while let fieldNumber = try decoder.nextFieldNumber() {
|
|
4355
|
-
// The use of inline closures is to circumvent an issue where the compiler
|
|
4356
|
-
// allocates stack space for every case branch when no optimizations are
|
|
4357
|
-
// enabled. https://github.com/apple/swift-protobuf/issues/1034
|
|
4358
|
-
switch fieldNumber {
|
|
4359
|
-
case 1: try { try decoder.decodeSingularEnumField(value: &self._status) }()
|
|
4360
|
-
default: break
|
|
4361
|
-
}
|
|
4362
|
-
}
|
|
4363
|
-
}
|
|
4364
|
-
|
|
4365
|
-
public func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
|
|
4366
|
-
// The use of inline closures is to circumvent an issue where the compiler
|
|
4367
|
-
// allocates stack space for every if/case branch local when no optimizations
|
|
4368
|
-
// are enabled. https://github.com/apple/swift-protobuf/issues/1034 and
|
|
4369
|
-
// https://github.com/apple/swift-protobuf/issues/1182
|
|
4370
|
-
try { if let v = self._status {
|
|
4371
|
-
try visitor.visitSingularEnumField(value: v, fieldNumber: 1)
|
|
4372
|
-
} }()
|
|
4373
|
-
try unknownFields.traverse(visitor: &visitor)
|
|
4374
|
-
}
|
|
4375
|
-
|
|
4376
|
-
public static func ==(lhs: BlueWebSPStatusMessage, rhs: BlueWebSPStatusMessage) -> Bool {
|
|
4377
|
-
if lhs._status != rhs._status {return false}
|
|
4378
|
-
if lhs.unknownFields != rhs.unknownFields {return false}
|
|
4379
|
-
return true
|
|
4380
|
-
}
|
|
4381
|
-
}
|
|
4382
|
-
|
|
4383
3898
|
extension BlueOssAccessResult: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
4384
3899
|
public static let protoMessageName: String = "BlueOssAccessResult"
|
|
4385
3900
|
public static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}accessGranted\0\u{1}accessType\0\u{1}accessInfo\0\u{1}scheduleEndTime\0\u{1}scheduleMissmatch\0\u{1}accessOpenTime\0")
|