@mentra/bluetooth-sdk 0.1.17 → 0.1.19
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/README.md +1 -1
- package/android/src/main/java/com/mentra/bluetoothsdk/Bridge.kt +52 -4
- package/android/src/main/java/com/mentra/bluetoothsdk/DeviceManager.kt +119 -16
- package/android/src/main/java/com/mentra/bluetoothsdk/DeviceStore.kt +0 -6
- package/android/src/main/java/com/mentra/bluetoothsdk/MentraBluetoothSdk.kt +22 -21
- package/android/src/main/java/com/mentra/bluetoothsdk/OtaManifest.kt +1 -1
- package/android/src/main/java/com/mentra/bluetoothsdk/sgcs/G2.kt +488 -15
- package/android/src/main/java/com/mentra/bluetoothsdk/sgcs/MentraLive.kt +457 -31
- package/android/src/main/java/com/mentra/bluetoothsdk/sgcs/MentraLiveL2capChannel.kt +274 -0
- package/android/src/main/java/com/mentra/bluetoothsdk/sgcs/MentraNex.kt +361 -67
- package/android/src/main/java/com/mentra/bluetoothsdk/sgcs/MentraosBle.java +7501 -3704
- package/android/src/main/java/com/mentra/bluetoothsdk/sgcs/SGCManager.kt +134 -0
- package/android/src/main/java/com/mentra/bluetoothsdk/status/DeviceStatus.kt +0 -6
- package/android/src/main/java/com/mentra/bluetoothsdk/utils/BleJsonCompact.java +493 -0
- package/android/src/main/java/com/mentra/bluetoothsdk/utils/BlePhotoUploadService.java +4 -1
- package/android/src/main/java/com/mentra/bluetoothsdk/utils/BleWireProtocol.java +108 -0
- package/android/src/main/java/com/mentra/bluetoothsdk/utils/IncidentLogBleUploadService.java +4 -3
- package/android/src/main/java/com/mentra/bluetoothsdk/utils/K900LengthCodec.java +115 -0
- package/android/src/main/java/com/mentra/bluetoothsdk/utils/K900ProtocolUtils.java +103 -68
- package/android/src/main/java/com/mentra/bluetoothsdk/utils/MessageChunkReassembler.java +106 -0
- package/android/src/main/java/com/mentra/bluetoothsdk/utils/MessageChunker.java +93 -0
- package/android/src/main/java/com/mentra/bluetoothsdk/utils/NexSGCUtils.kt +111 -11
- package/android/src/test/java/com/mentra/bluetoothsdk/camera/PhotoRequestTest.kt +7 -9
- package/android/src/test/java/com/mentra/bluetoothsdk/utils/AvifExifStripperTest.java +17 -1
- package/android/src/test/java/com/mentra/bluetoothsdk/utils/BinaryMessageChunkerTest.java +84 -0
- package/android/src/test/java/com/mentra/bluetoothsdk/utils/BleJsonCompactTest.java +158 -0
- package/android/src/test/java/com/mentra/bluetoothsdk/utils/K900ProtocolUtilsEndiannessTest.java +172 -0
- package/android/src/test/java/com/mentra/bluetoothsdk/utils/K900ProtocolUtilsTest.java +24 -0
- package/build/BluetoothSdk.types.d.ts +12 -1
- package/build/BluetoothSdk.types.d.ts.map +1 -1
- package/build/BluetoothSdk.types.js.map +1 -1
- package/build/types/index.d.ts +3 -0
- package/build/types/index.d.ts.map +1 -0
- package/build/types/index.js +2 -0
- package/build/types/index.js.map +1 -0
- package/ios/LocalPhotoUploadServer.swift +78 -0
- package/ios/MentraPhotoReceiverModule.swift +10 -0
- package/ios/Source/BluetoothSdkDefaults.swift +1 -1
- package/ios/Source/Bridge.swift +63 -0
- package/ios/Source/DeviceManager.swift +134 -29
- package/ios/Source/DeviceStore.swift +0 -5
- package/ios/Source/MentraBluetoothSDK.swift +26 -23
- package/ios/Source/OtaManifest.swift +1 -1
- package/ios/Source/internal/BleTraceLogger.swift +192 -0
- package/ios/Source/sgcs/G2.swift +518 -11
- package/ios/Source/sgcs/MentraLive.swift +607 -39
- package/ios/Source/sgcs/MentraNex.swift +416 -32
- package/ios/Source/sgcs/SGCManager.swift +155 -0
- package/ios/Source/sgcs/mentraos_ble.pb.swift +726 -122
- package/ios/Source/status/DeviceStatus.swift +0 -8
- package/ios/Source/utils/BleJsonCompact.swift +395 -0
- package/ios/Source/utils/BleWireProtocol.swift +92 -0
- package/ios/Source/utils/MessageChunkReassembler.swift +82 -0
- package/ios/Source/utils/MessageChunker.swift +73 -0
- package/package.json +14 -7
- package/src/BluetoothSdk.types.ts +13 -1
- package/src/types/index.ts +7 -0
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
// Regenerated from Mentra-Zephyr-Glasses-Client proto/mentraos_ble.proto
|
|
2
|
+
// branch ya/add-bitmap-rendering-support @ b2ffae8 (canvas system; NOT yet on fw main).
|
|
3
|
+
// Toolchain: protoc 35.1 + protoc-gen-swift 1.38.1 (SwiftProtobuf 1.x, matches podspec ~> 1.0).
|
|
4
|
+
// Android counterpart: sgcs/MentraosBle.java (protoc 4.29.6, same proto revision).
|
|
1
5
|
// DO NOT EDIT.
|
|
2
6
|
// swift-format-ignore-file
|
|
3
7
|
// swiftlint:disable all
|
|
@@ -15,13 +19,57 @@ import SwiftProtobuf
|
|
|
15
19
|
// incompatible with the version of SwiftProtobuf to which you are linking.
|
|
16
20
|
// Please ensure that you are building against the same version of the API
|
|
17
21
|
// that was used to generate this file.
|
|
18
|
-
fileprivate struct _GeneratedWithProtocGenSwiftVersion: SwiftProtobuf.ProtobufAPIVersionCheck {
|
|
22
|
+
fileprivate nonisolated struct _GeneratedWithProtocGenSwiftVersion: SwiftProtobuf.ProtobufAPIVersionCheck {
|
|
19
23
|
struct _2: SwiftProtobuf.ProtobufAPIVersion_2 {}
|
|
20
24
|
typealias Version = _2
|
|
21
25
|
}
|
|
22
26
|
|
|
27
|
+
nonisolated enum Mentraos_Ble_CanvasComponentType: SwiftProtobuf.Enum, Swift.CaseIterable {
|
|
28
|
+
typealias RawValue = Int
|
|
29
|
+
|
|
30
|
+
/// 1-bit bitmap; pixels streamed via CanvasUpdateImage
|
|
31
|
+
case canvasBitmap // = 0
|
|
32
|
+
|
|
33
|
+
/// single wrapped text box
|
|
34
|
+
case canvasTextbox // = 1
|
|
35
|
+
|
|
36
|
+
/// text box with a phone-driven vertical scroll offset
|
|
37
|
+
case canvasScrollTextbox // = 2
|
|
38
|
+
case UNRECOGNIZED(Int)
|
|
39
|
+
|
|
40
|
+
init() {
|
|
41
|
+
self = .canvasBitmap
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
init?(rawValue: Int) {
|
|
45
|
+
switch rawValue {
|
|
46
|
+
case 0: self = .canvasBitmap
|
|
47
|
+
case 1: self = .canvasTextbox
|
|
48
|
+
case 2: self = .canvasScrollTextbox
|
|
49
|
+
default: self = .UNRECOGNIZED(rawValue)
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
var rawValue: Int {
|
|
54
|
+
switch self {
|
|
55
|
+
case .canvasBitmap: return 0
|
|
56
|
+
case .canvasTextbox: return 1
|
|
57
|
+
case .canvasScrollTextbox: return 2
|
|
58
|
+
case .UNRECOGNIZED(let i): return i
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
// The compiler won't synthesize support with the UNRECOGNIZED case.
|
|
63
|
+
static let allCases: [Mentraos_Ble_CanvasComponentType] = [
|
|
64
|
+
.canvasBitmap,
|
|
65
|
+
.canvasTextbox,
|
|
66
|
+
.canvasScrollTextbox,
|
|
67
|
+
]
|
|
68
|
+
|
|
69
|
+
}
|
|
70
|
+
|
|
23
71
|
/// All messages from phone to glasses
|
|
24
|
-
struct Mentraos_Ble_PhoneToGlasses: Sendable {
|
|
72
|
+
nonisolated struct Mentraos_Ble_PhoneToGlasses: Sendable {
|
|
25
73
|
// SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
26
74
|
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
27
75
|
// methods supported on all messages.
|
|
@@ -292,9 +340,50 @@ struct Mentraos_Ble_PhoneToGlasses: Sendable {
|
|
|
292
340
|
set {payload = .factoryReset(newValue)}
|
|
293
341
|
}
|
|
294
342
|
|
|
343
|
+
/// Canvas System — retained components addressed by phone-assigned id
|
|
344
|
+
var canvasCreateComponent: Mentraos_Ble_CanvasCreateComponent {
|
|
345
|
+
get {
|
|
346
|
+
if case .canvasCreateComponent(let v)? = payload {return v}
|
|
347
|
+
return Mentraos_Ble_CanvasCreateComponent()
|
|
348
|
+
}
|
|
349
|
+
set {payload = .canvasCreateComponent(newValue)}
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
var canvasUpdateText: Mentraos_Ble_CanvasUpdateText {
|
|
353
|
+
get {
|
|
354
|
+
if case .canvasUpdateText(let v)? = payload {return v}
|
|
355
|
+
return Mentraos_Ble_CanvasUpdateText()
|
|
356
|
+
}
|
|
357
|
+
set {payload = .canvasUpdateText(newValue)}
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
var canvasUpdateImage: Mentraos_Ble_CanvasUpdateImage {
|
|
361
|
+
get {
|
|
362
|
+
if case .canvasUpdateImage(let v)? = payload {return v}
|
|
363
|
+
return Mentraos_Ble_CanvasUpdateImage()
|
|
364
|
+
}
|
|
365
|
+
set {payload = .canvasUpdateImage(newValue)}
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
var canvasDeleteComponent: Mentraos_Ble_CanvasDeleteComponent {
|
|
369
|
+
get {
|
|
370
|
+
if case .canvasDeleteComponent(let v)? = payload {return v}
|
|
371
|
+
return Mentraos_Ble_CanvasDeleteComponent()
|
|
372
|
+
}
|
|
373
|
+
set {payload = .canvasDeleteComponent(newValue)}
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
var canvasClear: Mentraos_Ble_CanvasClear {
|
|
377
|
+
get {
|
|
378
|
+
if case .canvasClear(let v)? = payload {return v}
|
|
379
|
+
return Mentraos_Ble_CanvasClear()
|
|
380
|
+
}
|
|
381
|
+
set {payload = .canvasClear(newValue)}
|
|
382
|
+
}
|
|
383
|
+
|
|
295
384
|
var unknownFields = SwiftProtobuf.UnknownStorage()
|
|
296
385
|
|
|
297
|
-
enum OneOf_Payload: Equatable, Sendable {
|
|
386
|
+
nonisolated enum OneOf_Payload: Equatable, Sendable {
|
|
298
387
|
/// Connection Management
|
|
299
388
|
case disconnect(Mentraos_Ble_DisconnectRequest)
|
|
300
389
|
case batteryState(Mentraos_Ble_BatteryStateRequest)
|
|
@@ -332,6 +421,12 @@ struct Mentraos_Ble_PhoneToGlasses: Sendable {
|
|
|
332
421
|
/// System Control
|
|
333
422
|
case restart(Mentraos_Ble_RestartRequest)
|
|
334
423
|
case factoryReset(Mentraos_Ble_FactoryResetRequest)
|
|
424
|
+
/// Canvas System — retained components addressed by phone-assigned id
|
|
425
|
+
case canvasCreateComponent(Mentraos_Ble_CanvasCreateComponent)
|
|
426
|
+
case canvasUpdateText(Mentraos_Ble_CanvasUpdateText)
|
|
427
|
+
case canvasUpdateImage(Mentraos_Ble_CanvasUpdateImage)
|
|
428
|
+
case canvasDeleteComponent(Mentraos_Ble_CanvasDeleteComponent)
|
|
429
|
+
case canvasClear(Mentraos_Ble_CanvasClear)
|
|
335
430
|
|
|
336
431
|
}
|
|
337
432
|
|
|
@@ -339,7 +434,7 @@ struct Mentraos_Ble_PhoneToGlasses: Sendable {
|
|
|
339
434
|
}
|
|
340
435
|
|
|
341
436
|
/// All messages from glasses to phone
|
|
342
|
-
struct Mentraos_Ble_GlassesToPhone: Sendable {
|
|
437
|
+
nonisolated struct Mentraos_Ble_GlassesToPhone: Sendable {
|
|
343
438
|
// SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
344
439
|
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
345
440
|
// methods supported on all messages.
|
|
@@ -396,7 +491,7 @@ struct Mentraos_Ble_GlassesToPhone: Sendable {
|
|
|
396
491
|
set {payload = .vadEvent(newValue)}
|
|
397
492
|
}
|
|
398
493
|
|
|
399
|
-
/// Display System
|
|
494
|
+
/// Display System
|
|
400
495
|
var imageTransferComplete: Mentraos_Ble_ImageTransferComplete {
|
|
401
496
|
get {
|
|
402
497
|
if case .imageTransferComplete(let v)? = payload {return v}
|
|
@@ -405,6 +500,14 @@ struct Mentraos_Ble_GlassesToPhone: Sendable {
|
|
|
405
500
|
set {payload = .imageTransferComplete(newValue)}
|
|
406
501
|
}
|
|
407
502
|
|
|
503
|
+
var canvasResult: Mentraos_Ble_CanvasResult {
|
|
504
|
+
get {
|
|
505
|
+
if case .canvasResult(let v)? = payload {return v}
|
|
506
|
+
return Mentraos_Ble_CanvasResult()
|
|
507
|
+
}
|
|
508
|
+
set {payload = .canvasResult(newValue)}
|
|
509
|
+
}
|
|
510
|
+
|
|
408
511
|
/// User Input
|
|
409
512
|
var imuData: Mentraos_Ble_ImuData {
|
|
410
513
|
get {
|
|
@@ -432,7 +535,7 @@ struct Mentraos_Ble_GlassesToPhone: Sendable {
|
|
|
432
535
|
|
|
433
536
|
var unknownFields = SwiftProtobuf.UnknownStorage()
|
|
434
537
|
|
|
435
|
-
enum OneOf_Payload: Equatable, Sendable {
|
|
538
|
+
nonisolated enum OneOf_Payload: Equatable, Sendable {
|
|
436
539
|
/// Connection Management
|
|
437
540
|
case batteryStatus(Mentraos_Ble_BatteryStatus)
|
|
438
541
|
case chargingState(Mentraos_Ble_ChargingState)
|
|
@@ -441,8 +544,9 @@ struct Mentraos_Ble_GlassesToPhone: Sendable {
|
|
|
441
544
|
case headUpAngleSet(Mentraos_Ble_HeadUpAngleResponse)
|
|
442
545
|
/// Audio System
|
|
443
546
|
case vadEvent(Mentraos_Ble_VadEvent)
|
|
444
|
-
/// Display System
|
|
547
|
+
/// Display System
|
|
445
548
|
case imageTransferComplete(Mentraos_Ble_ImageTransferComplete)
|
|
549
|
+
case canvasResult(Mentraos_Ble_CanvasResult)
|
|
446
550
|
/// User Input
|
|
447
551
|
case imuData(Mentraos_Ble_ImuData)
|
|
448
552
|
case buttonEvent(Mentraos_Ble_ButtonEvent)
|
|
@@ -453,7 +557,7 @@ struct Mentraos_Ble_GlassesToPhone: Sendable {
|
|
|
453
557
|
init() {}
|
|
454
558
|
}
|
|
455
559
|
|
|
456
|
-
struct Mentraos_Ble_DisconnectRequest: Sendable {
|
|
560
|
+
nonisolated struct Mentraos_Ble_DisconnectRequest: Sendable {
|
|
457
561
|
// SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
458
562
|
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
459
563
|
// methods supported on all messages.
|
|
@@ -463,7 +567,7 @@ struct Mentraos_Ble_DisconnectRequest: Sendable {
|
|
|
463
567
|
init() {}
|
|
464
568
|
}
|
|
465
569
|
|
|
466
|
-
struct Mentraos_Ble_BatteryStateRequest: Sendable {
|
|
570
|
+
nonisolated struct Mentraos_Ble_BatteryStateRequest: Sendable {
|
|
467
571
|
// SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
468
572
|
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
469
573
|
// methods supported on all messages.
|
|
@@ -473,7 +577,7 @@ struct Mentraos_Ble_BatteryStateRequest: Sendable {
|
|
|
473
577
|
init() {}
|
|
474
578
|
}
|
|
475
579
|
|
|
476
|
-
struct Mentraos_Ble_BatteryStatus: Sendable {
|
|
580
|
+
nonisolated struct Mentraos_Ble_BatteryStatus: Sendable {
|
|
477
581
|
// SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
478
582
|
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
479
583
|
// methods supported on all messages.
|
|
@@ -488,7 +592,7 @@ struct Mentraos_Ble_BatteryStatus: Sendable {
|
|
|
488
592
|
init() {}
|
|
489
593
|
}
|
|
490
594
|
|
|
491
|
-
struct Mentraos_Ble_ChargingState: Sendable {
|
|
595
|
+
nonisolated struct Mentraos_Ble_ChargingState: Sendable {
|
|
492
596
|
// SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
493
597
|
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
494
598
|
// methods supported on all messages.
|
|
@@ -497,7 +601,7 @@ struct Mentraos_Ble_ChargingState: Sendable {
|
|
|
497
601
|
|
|
498
602
|
var unknownFields = SwiftProtobuf.UnknownStorage()
|
|
499
603
|
|
|
500
|
-
enum State: SwiftProtobuf.Enum, Swift.CaseIterable {
|
|
604
|
+
nonisolated enum State: SwiftProtobuf.Enum, Swift.CaseIterable {
|
|
501
605
|
typealias RawValue = Int
|
|
502
606
|
case notCharging // = 0
|
|
503
607
|
case charging // = 1
|
|
@@ -534,7 +638,7 @@ struct Mentraos_Ble_ChargingState: Sendable {
|
|
|
534
638
|
init() {}
|
|
535
639
|
}
|
|
536
640
|
|
|
537
|
-
struct Mentraos_Ble_GlassesInfoRequest: Sendable {
|
|
641
|
+
nonisolated struct Mentraos_Ble_GlassesInfoRequest: Sendable {
|
|
538
642
|
// SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
539
643
|
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
540
644
|
// methods supported on all messages.
|
|
@@ -544,7 +648,7 @@ struct Mentraos_Ble_GlassesInfoRequest: Sendable {
|
|
|
544
648
|
init() {}
|
|
545
649
|
}
|
|
546
650
|
|
|
547
|
-
struct Mentraos_Ble_DeviceInfo: Sendable {
|
|
651
|
+
nonisolated struct Mentraos_Ble_DeviceInfo: Sendable {
|
|
548
652
|
// SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
549
653
|
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
550
654
|
// methods supported on all messages.
|
|
@@ -554,11 +658,11 @@ struct Mentraos_Ble_DeviceInfo: Sendable {
|
|
|
554
658
|
var hwModel: String = String()
|
|
555
659
|
|
|
556
660
|
var features: Mentraos_Ble_DeviceFeatures {
|
|
557
|
-
get {
|
|
661
|
+
get {_features ?? Mentraos_Ble_DeviceFeatures()}
|
|
558
662
|
set {_features = newValue}
|
|
559
663
|
}
|
|
560
664
|
/// Returns true if `features` has been explicitly set.
|
|
561
|
-
var hasFeatures: Bool {
|
|
665
|
+
var hasFeatures: Bool {self._features != nil}
|
|
562
666
|
/// Clears the value of `features`. Subsequent reads from it will return its default value.
|
|
563
667
|
mutating func clearFeatures() {self._features = nil}
|
|
564
668
|
|
|
@@ -569,7 +673,7 @@ struct Mentraos_Ble_DeviceInfo: Sendable {
|
|
|
569
673
|
fileprivate var _features: Mentraos_Ble_DeviceFeatures? = nil
|
|
570
674
|
}
|
|
571
675
|
|
|
572
|
-
struct Mentraos_Ble_DeviceFeatures: Sendable {
|
|
676
|
+
nonisolated struct Mentraos_Ble_DeviceFeatures: Sendable {
|
|
573
677
|
// SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
574
678
|
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
575
679
|
// methods supported on all messages.
|
|
@@ -596,7 +700,7 @@ struct Mentraos_Ble_DeviceFeatures: Sendable {
|
|
|
596
700
|
init() {}
|
|
597
701
|
}
|
|
598
702
|
|
|
599
|
-
struct Mentraos_Ble_PairingModeRequest: Sendable {
|
|
703
|
+
nonisolated struct Mentraos_Ble_PairingModeRequest: Sendable {
|
|
600
704
|
// SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
601
705
|
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
602
706
|
// methods supported on all messages.
|
|
@@ -606,7 +710,7 @@ struct Mentraos_Ble_PairingModeRequest: Sendable {
|
|
|
606
710
|
init() {}
|
|
607
711
|
}
|
|
608
712
|
|
|
609
|
-
struct Mentraos_Ble_HeadPositionRequest: Sendable {
|
|
713
|
+
nonisolated struct Mentraos_Ble_HeadPositionRequest: Sendable {
|
|
610
714
|
// SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
611
715
|
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
612
716
|
// methods supported on all messages.
|
|
@@ -616,7 +720,7 @@ struct Mentraos_Ble_HeadPositionRequest: Sendable {
|
|
|
616
720
|
init() {}
|
|
617
721
|
}
|
|
618
722
|
|
|
619
|
-
struct Mentraos_Ble_HeadPosition: Sendable {
|
|
723
|
+
nonisolated struct Mentraos_Ble_HeadPosition: Sendable {
|
|
620
724
|
// SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
621
725
|
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
622
726
|
// methods supported on all messages.
|
|
@@ -629,7 +733,7 @@ struct Mentraos_Ble_HeadPosition: Sendable {
|
|
|
629
733
|
init() {}
|
|
630
734
|
}
|
|
631
735
|
|
|
632
|
-
struct Mentraos_Ble_HeadUpAngleConfig: Sendable {
|
|
736
|
+
nonisolated struct Mentraos_Ble_HeadUpAngleConfig: Sendable {
|
|
633
737
|
// SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
634
738
|
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
635
739
|
// methods supported on all messages.
|
|
@@ -642,7 +746,7 @@ struct Mentraos_Ble_HeadUpAngleConfig: Sendable {
|
|
|
642
746
|
init() {}
|
|
643
747
|
}
|
|
644
748
|
|
|
645
|
-
struct Mentraos_Ble_HeadUpAngleResponse: Sendable {
|
|
749
|
+
nonisolated struct Mentraos_Ble_HeadUpAngleResponse: Sendable {
|
|
646
750
|
// SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
647
751
|
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
648
752
|
// methods supported on all messages.
|
|
@@ -654,7 +758,7 @@ struct Mentraos_Ble_HeadUpAngleResponse: Sendable {
|
|
|
654
758
|
init() {}
|
|
655
759
|
}
|
|
656
760
|
|
|
657
|
-
struct Mentraos_Ble_MicStateConfig: Sendable {
|
|
761
|
+
nonisolated struct Mentraos_Ble_MicStateConfig: Sendable {
|
|
658
762
|
// SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
659
763
|
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
660
764
|
// methods supported on all messages.
|
|
@@ -666,7 +770,7 @@ struct Mentraos_Ble_MicStateConfig: Sendable {
|
|
|
666
770
|
init() {}
|
|
667
771
|
}
|
|
668
772
|
|
|
669
|
-
struct Mentraos_Ble_VadEnabledConfig: Sendable {
|
|
773
|
+
nonisolated struct Mentraos_Ble_VadEnabledConfig: Sendable {
|
|
670
774
|
// SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
671
775
|
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
672
776
|
// methods supported on all messages.
|
|
@@ -678,7 +782,7 @@ struct Mentraos_Ble_VadEnabledConfig: Sendable {
|
|
|
678
782
|
init() {}
|
|
679
783
|
}
|
|
680
784
|
|
|
681
|
-
struct Mentraos_Ble_VadConfig: Sendable {
|
|
785
|
+
nonisolated struct Mentraos_Ble_VadConfig: Sendable {
|
|
682
786
|
// SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
683
787
|
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
684
788
|
// methods supported on all messages.
|
|
@@ -691,7 +795,7 @@ struct Mentraos_Ble_VadConfig: Sendable {
|
|
|
691
795
|
init() {}
|
|
692
796
|
}
|
|
693
797
|
|
|
694
|
-
struct Mentraos_Ble_VadEvent: Sendable {
|
|
798
|
+
nonisolated struct Mentraos_Ble_VadEvent: Sendable {
|
|
695
799
|
// SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
696
800
|
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
697
801
|
// methods supported on all messages.
|
|
@@ -700,7 +804,7 @@ struct Mentraos_Ble_VadEvent: Sendable {
|
|
|
700
804
|
|
|
701
805
|
var unknownFields = SwiftProtobuf.UnknownStorage()
|
|
702
806
|
|
|
703
|
-
enum State: SwiftProtobuf.Enum, Swift.CaseIterable {
|
|
807
|
+
nonisolated enum State: SwiftProtobuf.Enum, Swift.CaseIterable {
|
|
704
808
|
typealias RawValue = Int
|
|
705
809
|
case inactive // = 0
|
|
706
810
|
case active // = 1
|
|
@@ -737,7 +841,7 @@ struct Mentraos_Ble_VadEvent: Sendable {
|
|
|
737
841
|
init() {}
|
|
738
842
|
}
|
|
739
843
|
|
|
740
|
-
struct Mentraos_Ble_DisplayText: Sendable {
|
|
844
|
+
nonisolated struct Mentraos_Ble_DisplayText: Sendable {
|
|
741
845
|
// SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
742
846
|
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
743
847
|
// methods supported on all messages.
|
|
@@ -763,7 +867,7 @@ struct Mentraos_Ble_DisplayText: Sendable {
|
|
|
763
867
|
}
|
|
764
868
|
|
|
765
869
|
/// Initiates bitmap transfer - actual data comes via binary protocol
|
|
766
|
-
struct Mentraos_Ble_DisplayImage: Sendable {
|
|
870
|
+
nonisolated struct Mentraos_Ble_DisplayImage: Sendable {
|
|
767
871
|
// SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
768
872
|
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
769
873
|
// methods supported on all messages.
|
|
@@ -789,7 +893,7 @@ struct Mentraos_Ble_DisplayImage: Sendable {
|
|
|
789
893
|
init() {}
|
|
790
894
|
}
|
|
791
895
|
|
|
792
|
-
struct Mentraos_Ble_PreloadImage: Sendable {
|
|
896
|
+
nonisolated struct Mentraos_Ble_PreloadImage: Sendable {
|
|
793
897
|
// SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
794
898
|
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
795
899
|
// methods supported on all messages.
|
|
@@ -812,7 +916,7 @@ struct Mentraos_Ble_PreloadImage: Sendable {
|
|
|
812
916
|
init() {}
|
|
813
917
|
}
|
|
814
918
|
|
|
815
|
-
struct Mentraos_Ble_DisplayCachedImage: Sendable {
|
|
919
|
+
nonisolated struct Mentraos_Ble_DisplayCachedImage: Sendable {
|
|
816
920
|
// SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
817
921
|
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
818
922
|
// methods supported on all messages.
|
|
@@ -832,7 +936,7 @@ struct Mentraos_Ble_DisplayCachedImage: Sendable {
|
|
|
832
936
|
init() {}
|
|
833
937
|
}
|
|
834
938
|
|
|
835
|
-
struct Mentraos_Ble_ClearCachedImage: Sendable {
|
|
939
|
+
nonisolated struct Mentraos_Ble_ClearCachedImage: Sendable {
|
|
836
940
|
// SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
837
941
|
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
838
942
|
// methods supported on all messages.
|
|
@@ -844,7 +948,7 @@ struct Mentraos_Ble_ClearCachedImage: Sendable {
|
|
|
844
948
|
init() {}
|
|
845
949
|
}
|
|
846
950
|
|
|
847
|
-
struct Mentraos_Ble_DisplayScrollingText: Sendable {
|
|
951
|
+
nonisolated struct Mentraos_Ble_DisplayScrollingText: Sendable {
|
|
848
952
|
// SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
849
953
|
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
850
954
|
// methods supported on all messages.
|
|
@@ -882,7 +986,7 @@ struct Mentraos_Ble_DisplayScrollingText: Sendable {
|
|
|
882
986
|
|
|
883
987
|
var unknownFields = SwiftProtobuf.UnknownStorage()
|
|
884
988
|
|
|
885
|
-
enum Alignment: SwiftProtobuf.Enum, Swift.CaseIterable {
|
|
989
|
+
nonisolated enum Alignment: SwiftProtobuf.Enum, Swift.CaseIterable {
|
|
886
990
|
typealias RawValue = Int
|
|
887
991
|
case left // = 0
|
|
888
992
|
case center // = 1
|
|
@@ -923,7 +1027,7 @@ struct Mentraos_Ble_DisplayScrollingText: Sendable {
|
|
|
923
1027
|
init() {}
|
|
924
1028
|
}
|
|
925
1029
|
|
|
926
|
-
struct Mentraos_Ble_ClearDisplay: Sendable {
|
|
1030
|
+
nonisolated struct Mentraos_Ble_ClearDisplay: Sendable {
|
|
927
1031
|
// SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
928
1032
|
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
929
1033
|
// methods supported on all messages.
|
|
@@ -933,7 +1037,7 @@ struct Mentraos_Ble_ClearDisplay: Sendable {
|
|
|
933
1037
|
init() {}
|
|
934
1038
|
}
|
|
935
1039
|
|
|
936
|
-
struct Mentraos_Ble_DisplayPowerConfig: Sendable {
|
|
1040
|
+
nonisolated struct Mentraos_Ble_DisplayPowerConfig: Sendable {
|
|
937
1041
|
// SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
938
1042
|
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
939
1043
|
// methods supported on all messages.
|
|
@@ -946,7 +1050,7 @@ struct Mentraos_Ble_DisplayPowerConfig: Sendable {
|
|
|
946
1050
|
init() {}
|
|
947
1051
|
}
|
|
948
1052
|
|
|
949
|
-
struct Mentraos_Ble_BrightnessConfig: Sendable {
|
|
1053
|
+
nonisolated struct Mentraos_Ble_BrightnessConfig: Sendable {
|
|
950
1054
|
// SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
951
1055
|
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
952
1056
|
// methods supported on all messages.
|
|
@@ -959,7 +1063,7 @@ struct Mentraos_Ble_BrightnessConfig: Sendable {
|
|
|
959
1063
|
init() {}
|
|
960
1064
|
}
|
|
961
1065
|
|
|
962
|
-
struct Mentraos_Ble_AutoBrightnessConfig: Sendable {
|
|
1066
|
+
nonisolated struct Mentraos_Ble_AutoBrightnessConfig: Sendable {
|
|
963
1067
|
// SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
964
1068
|
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
965
1069
|
// methods supported on all messages.
|
|
@@ -971,7 +1075,7 @@ struct Mentraos_Ble_AutoBrightnessConfig: Sendable {
|
|
|
971
1075
|
init() {}
|
|
972
1076
|
}
|
|
973
1077
|
|
|
974
|
-
struct Mentraos_Ble_AutoBrightnessMultiplier: Sendable {
|
|
1078
|
+
nonisolated struct Mentraos_Ble_AutoBrightnessMultiplier: Sendable {
|
|
975
1079
|
// SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
976
1080
|
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
977
1081
|
// methods supported on all messages.
|
|
@@ -984,7 +1088,7 @@ struct Mentraos_Ble_AutoBrightnessMultiplier: Sendable {
|
|
|
984
1088
|
init() {}
|
|
985
1089
|
}
|
|
986
1090
|
|
|
987
|
-
struct Mentraos_Ble_DrawLine: Sendable {
|
|
1091
|
+
nonisolated struct Mentraos_Ble_DrawLine: Sendable {
|
|
988
1092
|
// SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
989
1093
|
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
990
1094
|
// methods supported on all messages.
|
|
@@ -1006,7 +1110,7 @@ struct Mentraos_Ble_DrawLine: Sendable {
|
|
|
1006
1110
|
init() {}
|
|
1007
1111
|
}
|
|
1008
1112
|
|
|
1009
|
-
struct Mentraos_Ble_DrawRect: Sendable {
|
|
1113
|
+
nonisolated struct Mentraos_Ble_DrawRect: Sendable {
|
|
1010
1114
|
// SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
1011
1115
|
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
1012
1116
|
// methods supported on all messages.
|
|
@@ -1028,7 +1132,7 @@ struct Mentraos_Ble_DrawRect: Sendable {
|
|
|
1028
1132
|
init() {}
|
|
1029
1133
|
}
|
|
1030
1134
|
|
|
1031
|
-
struct Mentraos_Ble_DrawCircle: Sendable {
|
|
1135
|
+
nonisolated struct Mentraos_Ble_DrawCircle: Sendable {
|
|
1032
1136
|
// SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
1033
1137
|
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
1034
1138
|
// methods supported on all messages.
|
|
@@ -1048,7 +1152,7 @@ struct Mentraos_Ble_DrawCircle: Sendable {
|
|
|
1048
1152
|
init() {}
|
|
1049
1153
|
}
|
|
1050
1154
|
|
|
1051
|
-
struct Mentraos_Ble_CommitDisplay: Sendable {
|
|
1155
|
+
nonisolated struct Mentraos_Ble_CommitDisplay: Sendable {
|
|
1052
1156
|
// SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
1053
1157
|
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
1054
1158
|
// methods supported on all messages.
|
|
@@ -1058,7 +1162,7 @@ struct Mentraos_Ble_CommitDisplay: Sendable {
|
|
|
1058
1162
|
init() {}
|
|
1059
1163
|
}
|
|
1060
1164
|
|
|
1061
|
-
struct Mentraos_Ble_DisplayDistanceConfig: Sendable {
|
|
1165
|
+
nonisolated struct Mentraos_Ble_DisplayDistanceConfig: Sendable {
|
|
1062
1166
|
// SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
1063
1167
|
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
1064
1168
|
// methods supported on all messages.
|
|
@@ -1070,7 +1174,7 @@ struct Mentraos_Ble_DisplayDistanceConfig: Sendable {
|
|
|
1070
1174
|
init() {}
|
|
1071
1175
|
}
|
|
1072
1176
|
|
|
1073
|
-
struct Mentraos_Ble_DisplayHeightConfig: Sendable {
|
|
1177
|
+
nonisolated struct Mentraos_Ble_DisplayHeightConfig: Sendable {
|
|
1074
1178
|
// SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
1075
1179
|
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
1076
1180
|
// methods supported on all messages.
|
|
@@ -1082,7 +1186,7 @@ struct Mentraos_Ble_DisplayHeightConfig: Sendable {
|
|
|
1082
1186
|
init() {}
|
|
1083
1187
|
}
|
|
1084
1188
|
|
|
1085
|
-
struct Mentraos_Ble_ImageTransferComplete: Sendable {
|
|
1189
|
+
nonisolated struct Mentraos_Ble_ImageTransferComplete: Sendable {
|
|
1086
1190
|
// SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
1087
1191
|
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
1088
1192
|
// methods supported on all messages.
|
|
@@ -1096,7 +1200,7 @@ struct Mentraos_Ble_ImageTransferComplete: Sendable {
|
|
|
1096
1200
|
|
|
1097
1201
|
var unknownFields = SwiftProtobuf.UnknownStorage()
|
|
1098
1202
|
|
|
1099
|
-
enum Status: SwiftProtobuf.Enum, Swift.CaseIterable {
|
|
1203
|
+
nonisolated enum Status: SwiftProtobuf.Enum, Swift.CaseIterable {
|
|
1100
1204
|
typealias RawValue = Int
|
|
1101
1205
|
case ok // = 0
|
|
1102
1206
|
case incomplete // = 1
|
|
@@ -1133,7 +1237,163 @@ struct Mentraos_Ble_ImageTransferComplete: Sendable {
|
|
|
1133
1237
|
init() {}
|
|
1134
1238
|
}
|
|
1135
1239
|
|
|
1136
|
-
|
|
1240
|
+
/// Create (or replace, if the id already exists) a component on the canvas.
|
|
1241
|
+
nonisolated struct Mentraos_Ble_CanvasCreateComponent: Sendable {
|
|
1242
|
+
// SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
1243
|
+
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
1244
|
+
// methods supported on all messages.
|
|
1245
|
+
|
|
1246
|
+
/// phone-assigned; must fall in the pool for `type`
|
|
1247
|
+
var id: UInt32 = 0
|
|
1248
|
+
|
|
1249
|
+
var type: Mentraos_Ble_CanvasComponentType = .canvasBitmap
|
|
1250
|
+
|
|
1251
|
+
var x: UInt32 = 0
|
|
1252
|
+
|
|
1253
|
+
var y: UInt32 = 0
|
|
1254
|
+
|
|
1255
|
+
var width: UInt32 = 0
|
|
1256
|
+
|
|
1257
|
+
var height: UInt32 = 0
|
|
1258
|
+
|
|
1259
|
+
/// 0 = no border
|
|
1260
|
+
var borderWidth: UInt32 = 0
|
|
1261
|
+
|
|
1262
|
+
/// corner radius in px
|
|
1263
|
+
var borderRadius: UInt32 = 0
|
|
1264
|
+
|
|
1265
|
+
/// inner padding in px
|
|
1266
|
+
var padding: UInt32 = 0
|
|
1267
|
+
|
|
1268
|
+
var unknownFields = SwiftProtobuf.UnknownStorage()
|
|
1269
|
+
|
|
1270
|
+
init() {}
|
|
1271
|
+
}
|
|
1272
|
+
|
|
1273
|
+
/// Set the text of a TEXTBOX / SCROLL_TEXTBOX component.
|
|
1274
|
+
nonisolated struct Mentraos_Ble_CanvasUpdateText: Sendable {
|
|
1275
|
+
// SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
1276
|
+
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
1277
|
+
// methods supported on all messages.
|
|
1278
|
+
|
|
1279
|
+
var id: UInt32 = 0
|
|
1280
|
+
|
|
1281
|
+
var text: String = String()
|
|
1282
|
+
|
|
1283
|
+
/// SCROLL_TEXTBOX only: vertical scroll in px
|
|
1284
|
+
var scrollOffset: UInt32 = 0
|
|
1285
|
+
|
|
1286
|
+
var unknownFields = SwiftProtobuf.UnknownStorage()
|
|
1287
|
+
|
|
1288
|
+
init() {}
|
|
1289
|
+
}
|
|
1290
|
+
|
|
1291
|
+
/// Begin streaming a 1-bit BMP into a BITMAP component. Pixels arrive as
|
|
1292
|
+
/// [0xB0][streamId_hi][streamId_lo][chunkIndex][data...] packets, same as DisplayImage.
|
|
1293
|
+
nonisolated struct Mentraos_Ble_CanvasUpdateImage: Sendable {
|
|
1294
|
+
// SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
1295
|
+
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
1296
|
+
// methods supported on all messages.
|
|
1297
|
+
|
|
1298
|
+
var id: UInt32 = 0
|
|
1299
|
+
|
|
1300
|
+
/// 2-byte hex string like "002A"
|
|
1301
|
+
var streamID: String = String()
|
|
1302
|
+
|
|
1303
|
+
var totalChunks: UInt32 = 0
|
|
1304
|
+
|
|
1305
|
+
var unknownFields = SwiftProtobuf.UnknownStorage()
|
|
1306
|
+
|
|
1307
|
+
init() {}
|
|
1308
|
+
}
|
|
1309
|
+
|
|
1310
|
+
nonisolated struct Mentraos_Ble_CanvasDeleteComponent: Sendable {
|
|
1311
|
+
// SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
1312
|
+
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
1313
|
+
// methods supported on all messages.
|
|
1314
|
+
|
|
1315
|
+
var id: UInt32 = 0
|
|
1316
|
+
|
|
1317
|
+
var unknownFields = SwiftProtobuf.UnknownStorage()
|
|
1318
|
+
|
|
1319
|
+
init() {}
|
|
1320
|
+
}
|
|
1321
|
+
|
|
1322
|
+
/// Delete all components and exit the canvas view.
|
|
1323
|
+
nonisolated struct Mentraos_Ble_CanvasClear: Sendable {
|
|
1324
|
+
// SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
1325
|
+
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
1326
|
+
// methods supported on all messages.
|
|
1327
|
+
|
|
1328
|
+
var unknownFields = SwiftProtobuf.UnknownStorage()
|
|
1329
|
+
|
|
1330
|
+
init() {}
|
|
1331
|
+
}
|
|
1332
|
+
|
|
1333
|
+
/// Ack for CanvasCreateComponent (and CanvasClear). id echoes the component id (0 for clear).
|
|
1334
|
+
nonisolated struct Mentraos_Ble_CanvasResult: Sendable {
|
|
1335
|
+
// SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
1336
|
+
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
1337
|
+
// methods supported on all messages.
|
|
1338
|
+
|
|
1339
|
+
var id: UInt32 = 0
|
|
1340
|
+
|
|
1341
|
+
var code: Mentraos_Ble_CanvasResult.ResultCode = .ok
|
|
1342
|
+
|
|
1343
|
+
var unknownFields = SwiftProtobuf.UnknownStorage()
|
|
1344
|
+
|
|
1345
|
+
nonisolated enum ResultCode: SwiftProtobuf.Enum, Swift.CaseIterable {
|
|
1346
|
+
typealias RawValue = Int
|
|
1347
|
+
case ok // = 0
|
|
1348
|
+
|
|
1349
|
+
/// bad id for the type, or unknown component
|
|
1350
|
+
case invalid // = 1
|
|
1351
|
+
|
|
1352
|
+
/// bitmap exceeds the max supported dimensions
|
|
1353
|
+
case oversize // = 2
|
|
1354
|
+
|
|
1355
|
+
/// no backing storage available
|
|
1356
|
+
case oom // = 3
|
|
1357
|
+
case UNRECOGNIZED(Int)
|
|
1358
|
+
|
|
1359
|
+
init() {
|
|
1360
|
+
self = .ok
|
|
1361
|
+
}
|
|
1362
|
+
|
|
1363
|
+
init?(rawValue: Int) {
|
|
1364
|
+
switch rawValue {
|
|
1365
|
+
case 0: self = .ok
|
|
1366
|
+
case 1: self = .invalid
|
|
1367
|
+
case 2: self = .oversize
|
|
1368
|
+
case 3: self = .oom
|
|
1369
|
+
default: self = .UNRECOGNIZED(rawValue)
|
|
1370
|
+
}
|
|
1371
|
+
}
|
|
1372
|
+
|
|
1373
|
+
var rawValue: Int {
|
|
1374
|
+
switch self {
|
|
1375
|
+
case .ok: return 0
|
|
1376
|
+
case .invalid: return 1
|
|
1377
|
+
case .oversize: return 2
|
|
1378
|
+
case .oom: return 3
|
|
1379
|
+
case .UNRECOGNIZED(let i): return i
|
|
1380
|
+
}
|
|
1381
|
+
}
|
|
1382
|
+
|
|
1383
|
+
// The compiler won't synthesize support with the UNRECOGNIZED case.
|
|
1384
|
+
static let allCases: [Mentraos_Ble_CanvasResult.ResultCode] = [
|
|
1385
|
+
.ok,
|
|
1386
|
+
.invalid,
|
|
1387
|
+
.oversize,
|
|
1388
|
+
.oom,
|
|
1389
|
+
]
|
|
1390
|
+
|
|
1391
|
+
}
|
|
1392
|
+
|
|
1393
|
+
init() {}
|
|
1394
|
+
}
|
|
1395
|
+
|
|
1396
|
+
nonisolated struct Mentraos_Ble_ImuEnabledConfig: Sendable {
|
|
1137
1397
|
// SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
1138
1398
|
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
1139
1399
|
// methods supported on all messages.
|
|
@@ -1145,7 +1405,7 @@ struct Mentraos_Ble_ImuEnabledConfig: Sendable {
|
|
|
1145
1405
|
init() {}
|
|
1146
1406
|
}
|
|
1147
1407
|
|
|
1148
|
-
struct Mentraos_Ble_ImuSingleRequest: Sendable {
|
|
1408
|
+
nonisolated struct Mentraos_Ble_ImuSingleRequest: Sendable {
|
|
1149
1409
|
// SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
1150
1410
|
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
1151
1411
|
// methods supported on all messages.
|
|
@@ -1155,7 +1415,7 @@ struct Mentraos_Ble_ImuSingleRequest: Sendable {
|
|
|
1155
1415
|
init() {}
|
|
1156
1416
|
}
|
|
1157
1417
|
|
|
1158
|
-
struct Mentraos_Ble_ImuStreamConfig: Sendable {
|
|
1418
|
+
nonisolated struct Mentraos_Ble_ImuStreamConfig: Sendable {
|
|
1159
1419
|
// SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
1160
1420
|
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
1161
1421
|
// methods supported on all messages.
|
|
@@ -1167,35 +1427,35 @@ struct Mentraos_Ble_ImuStreamConfig: Sendable {
|
|
|
1167
1427
|
init() {}
|
|
1168
1428
|
}
|
|
1169
1429
|
|
|
1170
|
-
struct Mentraos_Ble_ImuData: Sendable {
|
|
1430
|
+
nonisolated struct Mentraos_Ble_ImuData: Sendable {
|
|
1171
1431
|
// SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
1172
1432
|
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
1173
1433
|
// methods supported on all messages.
|
|
1174
1434
|
|
|
1175
1435
|
var accel: Mentraos_Ble_Vector3 {
|
|
1176
|
-
get {
|
|
1436
|
+
get {_accel ?? Mentraos_Ble_Vector3()}
|
|
1177
1437
|
set {_accel = newValue}
|
|
1178
1438
|
}
|
|
1179
1439
|
/// Returns true if `accel` has been explicitly set.
|
|
1180
|
-
var hasAccel: Bool {
|
|
1440
|
+
var hasAccel: Bool {self._accel != nil}
|
|
1181
1441
|
/// Clears the value of `accel`. Subsequent reads from it will return its default value.
|
|
1182
1442
|
mutating func clearAccel() {self._accel = nil}
|
|
1183
1443
|
|
|
1184
1444
|
var gyro: Mentraos_Ble_Vector3 {
|
|
1185
|
-
get {
|
|
1445
|
+
get {_gyro ?? Mentraos_Ble_Vector3()}
|
|
1186
1446
|
set {_gyro = newValue}
|
|
1187
1447
|
}
|
|
1188
1448
|
/// Returns true if `gyro` has been explicitly set.
|
|
1189
|
-
var hasGyro: Bool {
|
|
1449
|
+
var hasGyro: Bool {self._gyro != nil}
|
|
1190
1450
|
/// Clears the value of `gyro`. Subsequent reads from it will return its default value.
|
|
1191
1451
|
mutating func clearGyro() {self._gyro = nil}
|
|
1192
1452
|
|
|
1193
1453
|
var mag: Mentraos_Ble_Vector3 {
|
|
1194
|
-
get {
|
|
1454
|
+
get {_mag ?? Mentraos_Ble_Vector3()}
|
|
1195
1455
|
set {_mag = newValue}
|
|
1196
1456
|
}
|
|
1197
1457
|
/// Returns true if `mag` has been explicitly set.
|
|
1198
|
-
var hasMag: Bool {
|
|
1458
|
+
var hasMag: Bool {self._mag != nil}
|
|
1199
1459
|
/// Clears the value of `mag`. Subsequent reads from it will return its default value.
|
|
1200
1460
|
mutating func clearMag() {self._mag = nil}
|
|
1201
1461
|
|
|
@@ -1208,7 +1468,7 @@ struct Mentraos_Ble_ImuData: Sendable {
|
|
|
1208
1468
|
fileprivate var _mag: Mentraos_Ble_Vector3? = nil
|
|
1209
1469
|
}
|
|
1210
1470
|
|
|
1211
|
-
struct Mentraos_Ble_Vector3: Sendable {
|
|
1471
|
+
nonisolated struct Mentraos_Ble_Vector3: Sendable {
|
|
1212
1472
|
// SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
1213
1473
|
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
1214
1474
|
// methods supported on all messages.
|
|
@@ -1224,7 +1484,7 @@ struct Mentraos_Ble_Vector3: Sendable {
|
|
|
1224
1484
|
init() {}
|
|
1225
1485
|
}
|
|
1226
1486
|
|
|
1227
|
-
struct Mentraos_Ble_ButtonEvent: Sendable {
|
|
1487
|
+
nonisolated struct Mentraos_Ble_ButtonEvent: Sendable {
|
|
1228
1488
|
// SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
1229
1489
|
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
1230
1490
|
// methods supported on all messages.
|
|
@@ -1235,7 +1495,7 @@ struct Mentraos_Ble_ButtonEvent: Sendable {
|
|
|
1235
1495
|
|
|
1236
1496
|
var unknownFields = SwiftProtobuf.UnknownStorage()
|
|
1237
1497
|
|
|
1238
|
-
enum Button: SwiftProtobuf.Enum, Swift.CaseIterable {
|
|
1498
|
+
nonisolated enum Button: SwiftProtobuf.Enum, Swift.CaseIterable {
|
|
1239
1499
|
typealias RawValue = Int
|
|
1240
1500
|
case center // = 0
|
|
1241
1501
|
case left // = 1
|
|
@@ -1273,7 +1533,7 @@ struct Mentraos_Ble_ButtonEvent: Sendable {
|
|
|
1273
1533
|
|
|
1274
1534
|
}
|
|
1275
1535
|
|
|
1276
|
-
enum State: SwiftProtobuf.Enum, Swift.CaseIterable {
|
|
1536
|
+
nonisolated enum State: SwiftProtobuf.Enum, Swift.CaseIterable {
|
|
1277
1537
|
typealias RawValue = Int
|
|
1278
1538
|
case up // = 0
|
|
1279
1539
|
case down // = 1
|
|
@@ -1310,7 +1570,7 @@ struct Mentraos_Ble_ButtonEvent: Sendable {
|
|
|
1310
1570
|
init() {}
|
|
1311
1571
|
}
|
|
1312
1572
|
|
|
1313
|
-
struct Mentraos_Ble_HeadGesture: Sendable {
|
|
1573
|
+
nonisolated struct Mentraos_Ble_HeadGesture: Sendable {
|
|
1314
1574
|
// SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
1315
1575
|
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
1316
1576
|
// methods supported on all messages.
|
|
@@ -1319,7 +1579,7 @@ struct Mentraos_Ble_HeadGesture: Sendable {
|
|
|
1319
1579
|
|
|
1320
1580
|
var unknownFields = SwiftProtobuf.UnknownStorage()
|
|
1321
1581
|
|
|
1322
|
-
enum Gesture: SwiftProtobuf.Enum, Swift.CaseIterable {
|
|
1582
|
+
nonisolated enum Gesture: SwiftProtobuf.Enum, Swift.CaseIterable {
|
|
1323
1583
|
typealias RawValue = Int
|
|
1324
1584
|
case nod // = 0
|
|
1325
1585
|
case shake // = 1
|
|
@@ -1360,7 +1620,7 @@ struct Mentraos_Ble_HeadGesture: Sendable {
|
|
|
1360
1620
|
init() {}
|
|
1361
1621
|
}
|
|
1362
1622
|
|
|
1363
|
-
struct Mentraos_Ble_HeadGestureConfig: Sendable {
|
|
1623
|
+
nonisolated struct Mentraos_Ble_HeadGestureConfig: Sendable {
|
|
1364
1624
|
// SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
1365
1625
|
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
1366
1626
|
// methods supported on all messages.
|
|
@@ -1374,7 +1634,7 @@ struct Mentraos_Ble_HeadGestureConfig: Sendable {
|
|
|
1374
1634
|
init() {}
|
|
1375
1635
|
}
|
|
1376
1636
|
|
|
1377
|
-
struct Mentraos_Ble_RestartRequest: Sendable {
|
|
1637
|
+
nonisolated struct Mentraos_Ble_RestartRequest: Sendable {
|
|
1378
1638
|
// SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
1379
1639
|
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
1380
1640
|
// methods supported on all messages.
|
|
@@ -1384,7 +1644,7 @@ struct Mentraos_Ble_RestartRequest: Sendable {
|
|
|
1384
1644
|
init() {}
|
|
1385
1645
|
}
|
|
1386
1646
|
|
|
1387
|
-
struct Mentraos_Ble_FactoryResetRequest: Sendable {
|
|
1647
|
+
nonisolated struct Mentraos_Ble_FactoryResetRequest: Sendable {
|
|
1388
1648
|
// SwiftProtobuf.Message conformance is added in an extension below. See the
|
|
1389
1649
|
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
|
|
1390
1650
|
// methods supported on all messages.
|
|
@@ -1396,11 +1656,15 @@ struct Mentraos_Ble_FactoryResetRequest: Sendable {
|
|
|
1396
1656
|
|
|
1397
1657
|
// MARK: - Code below here is support for the SwiftProtobuf runtime.
|
|
1398
1658
|
|
|
1399
|
-
fileprivate let _protobuf_package = "mentraos.ble"
|
|
1659
|
+
fileprivate nonisolated let _protobuf_package = "mentraos.ble"
|
|
1400
1660
|
|
|
1401
|
-
extension
|
|
1661
|
+
nonisolated extension Mentraos_Ble_CanvasComponentType: SwiftProtobuf._ProtoNameProviding {
|
|
1662
|
+
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{2}\0CANVAS_BITMAP\0\u{1}CANVAS_TEXTBOX\0\u{1}CANVAS_SCROLL_TEXTBOX\0")
|
|
1663
|
+
}
|
|
1664
|
+
|
|
1665
|
+
nonisolated extension Mentraos_Ble_PhoneToGlasses: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
1402
1666
|
static let protoMessageName: String = _protobuf_package + ".PhoneToGlasses"
|
|
1403
|
-
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{3}msg_id\0\u{2}\u{9}disconnect\0\u{3}battery_state\0\u{3}glasses_info\0\u{3}pairing_mode\0\u{3}head_position\0\u{3}head_up_angle\0\u{4}\u{5}mic_state\0\u{3}vad_enabled\0\u{3}vad_config\0\u{4}\u{8}display_text\0\u{3}display_image\0\u{3}preload_image\0\u{3}display_cached_image\0\u{3}clear_cached_image\0\u{3}display_scrolling_text\0\u{3}display_power\0\u{1}brightness\0\u{3}auto_brightness\0\u{3}auto_brightness_mult\0\u{3}draw_line\0\u{3}draw_rect\0\u{3}draw_circle\0\u{1}commit\0\u{3}display_distance\0\u{3}display_height\0\u{3}clear_display\0\u{4}\u{4}imu_enabled\0\u{3}imu_single\0\u{3}imu_stream\0\u{3}head_gesture\0\u{2}\u{7}restart\0\u{3}factory_reset\0")
|
|
1667
|
+
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{3}msg_id\0\u{2}\u{9}disconnect\0\u{3}battery_state\0\u{3}glasses_info\0\u{3}pairing_mode\0\u{3}head_position\0\u{3}head_up_angle\0\u{4}\u{5}mic_state\0\u{3}vad_enabled\0\u{3}vad_config\0\u{4}\u{8}display_text\0\u{3}display_image\0\u{3}preload_image\0\u{3}display_cached_image\0\u{3}clear_cached_image\0\u{3}display_scrolling_text\0\u{3}display_power\0\u{1}brightness\0\u{3}auto_brightness\0\u{3}auto_brightness_mult\0\u{3}draw_line\0\u{3}draw_rect\0\u{3}draw_circle\0\u{1}commit\0\u{3}display_distance\0\u{3}display_height\0\u{3}clear_display\0\u{4}\u{4}imu_enabled\0\u{3}imu_single\0\u{3}imu_stream\0\u{3}head_gesture\0\u{2}\u{7}restart\0\u{3}factory_reset\0\u{3}canvas_create_component\0\u{3}canvas_update_text\0\u{3}canvas_update_image\0\u{3}canvas_delete_component\0\u{3}canvas_clear\0")
|
|
1404
1668
|
|
|
1405
1669
|
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
|
|
1406
1670
|
while let fieldNumber = try decoder.nextFieldNumber() {
|
|
@@ -1825,6 +2089,71 @@ extension Mentraos_Ble_PhoneToGlasses: SwiftProtobuf.Message, SwiftProtobuf._Mes
|
|
|
1825
2089
|
self.payload = .factoryReset(v)
|
|
1826
2090
|
}
|
|
1827
2091
|
}()
|
|
2092
|
+
case 62: try {
|
|
2093
|
+
var v: Mentraos_Ble_CanvasCreateComponent?
|
|
2094
|
+
var hadOneofValue = false
|
|
2095
|
+
if let current = self.payload {
|
|
2096
|
+
hadOneofValue = true
|
|
2097
|
+
if case .canvasCreateComponent(let m) = current {v = m}
|
|
2098
|
+
}
|
|
2099
|
+
try decoder.decodeSingularMessageField(value: &v)
|
|
2100
|
+
if let v = v {
|
|
2101
|
+
if hadOneofValue {try decoder.handleConflictingOneOf()}
|
|
2102
|
+
self.payload = .canvasCreateComponent(v)
|
|
2103
|
+
}
|
|
2104
|
+
}()
|
|
2105
|
+
case 63: try {
|
|
2106
|
+
var v: Mentraos_Ble_CanvasUpdateText?
|
|
2107
|
+
var hadOneofValue = false
|
|
2108
|
+
if let current = self.payload {
|
|
2109
|
+
hadOneofValue = true
|
|
2110
|
+
if case .canvasUpdateText(let m) = current {v = m}
|
|
2111
|
+
}
|
|
2112
|
+
try decoder.decodeSingularMessageField(value: &v)
|
|
2113
|
+
if let v = v {
|
|
2114
|
+
if hadOneofValue {try decoder.handleConflictingOneOf()}
|
|
2115
|
+
self.payload = .canvasUpdateText(v)
|
|
2116
|
+
}
|
|
2117
|
+
}()
|
|
2118
|
+
case 64: try {
|
|
2119
|
+
var v: Mentraos_Ble_CanvasUpdateImage?
|
|
2120
|
+
var hadOneofValue = false
|
|
2121
|
+
if let current = self.payload {
|
|
2122
|
+
hadOneofValue = true
|
|
2123
|
+
if case .canvasUpdateImage(let m) = current {v = m}
|
|
2124
|
+
}
|
|
2125
|
+
try decoder.decodeSingularMessageField(value: &v)
|
|
2126
|
+
if let v = v {
|
|
2127
|
+
if hadOneofValue {try decoder.handleConflictingOneOf()}
|
|
2128
|
+
self.payload = .canvasUpdateImage(v)
|
|
2129
|
+
}
|
|
2130
|
+
}()
|
|
2131
|
+
case 65: try {
|
|
2132
|
+
var v: Mentraos_Ble_CanvasDeleteComponent?
|
|
2133
|
+
var hadOneofValue = false
|
|
2134
|
+
if let current = self.payload {
|
|
2135
|
+
hadOneofValue = true
|
|
2136
|
+
if case .canvasDeleteComponent(let m) = current {v = m}
|
|
2137
|
+
}
|
|
2138
|
+
try decoder.decodeSingularMessageField(value: &v)
|
|
2139
|
+
if let v = v {
|
|
2140
|
+
if hadOneofValue {try decoder.handleConflictingOneOf()}
|
|
2141
|
+
self.payload = .canvasDeleteComponent(v)
|
|
2142
|
+
}
|
|
2143
|
+
}()
|
|
2144
|
+
case 66: try {
|
|
2145
|
+
var v: Mentraos_Ble_CanvasClear?
|
|
2146
|
+
var hadOneofValue = false
|
|
2147
|
+
if let current = self.payload {
|
|
2148
|
+
hadOneofValue = true
|
|
2149
|
+
if case .canvasClear(let m) = current {v = m}
|
|
2150
|
+
}
|
|
2151
|
+
try decoder.decodeSingularMessageField(value: &v)
|
|
2152
|
+
if let v = v {
|
|
2153
|
+
if hadOneofValue {try decoder.handleConflictingOneOf()}
|
|
2154
|
+
self.payload = .canvasClear(v)
|
|
2155
|
+
}
|
|
2156
|
+
}()
|
|
1828
2157
|
default: break
|
|
1829
2158
|
}
|
|
1830
2159
|
}
|
|
@@ -1967,6 +2296,26 @@ extension Mentraos_Ble_PhoneToGlasses: SwiftProtobuf.Message, SwiftProtobuf._Mes
|
|
|
1967
2296
|
guard case .factoryReset(let v)? = self.payload else { preconditionFailure() }
|
|
1968
2297
|
try visitor.visitSingularMessageField(value: v, fieldNumber: 61)
|
|
1969
2298
|
}()
|
|
2299
|
+
case .canvasCreateComponent?: try {
|
|
2300
|
+
guard case .canvasCreateComponent(let v)? = self.payload else { preconditionFailure() }
|
|
2301
|
+
try visitor.visitSingularMessageField(value: v, fieldNumber: 62)
|
|
2302
|
+
}()
|
|
2303
|
+
case .canvasUpdateText?: try {
|
|
2304
|
+
guard case .canvasUpdateText(let v)? = self.payload else { preconditionFailure() }
|
|
2305
|
+
try visitor.visitSingularMessageField(value: v, fieldNumber: 63)
|
|
2306
|
+
}()
|
|
2307
|
+
case .canvasUpdateImage?: try {
|
|
2308
|
+
guard case .canvasUpdateImage(let v)? = self.payload else { preconditionFailure() }
|
|
2309
|
+
try visitor.visitSingularMessageField(value: v, fieldNumber: 64)
|
|
2310
|
+
}()
|
|
2311
|
+
case .canvasDeleteComponent?: try {
|
|
2312
|
+
guard case .canvasDeleteComponent(let v)? = self.payload else { preconditionFailure() }
|
|
2313
|
+
try visitor.visitSingularMessageField(value: v, fieldNumber: 65)
|
|
2314
|
+
}()
|
|
2315
|
+
case .canvasClear?: try {
|
|
2316
|
+
guard case .canvasClear(let v)? = self.payload else { preconditionFailure() }
|
|
2317
|
+
try visitor.visitSingularMessageField(value: v, fieldNumber: 66)
|
|
2318
|
+
}()
|
|
1970
2319
|
case nil: break
|
|
1971
2320
|
}
|
|
1972
2321
|
try unknownFields.traverse(visitor: &visitor)
|
|
@@ -1980,9 +2329,9 @@ extension Mentraos_Ble_PhoneToGlasses: SwiftProtobuf.Message, SwiftProtobuf._Mes
|
|
|
1980
2329
|
}
|
|
1981
2330
|
}
|
|
1982
2331
|
|
|
1983
|
-
extension Mentraos_Ble_GlassesToPhone: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
2332
|
+
nonisolated extension Mentraos_Ble_GlassesToPhone: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
1984
2333
|
static let protoMessageName: String = _protobuf_package + ".GlassesToPhone"
|
|
1985
|
-
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{4}\u{a}battery_status\0\u{3}charging_state\0\u{3}device_info\0\u{3}head_position\0\u{3}head_up_angle_set\0\u{4}\u{6}vad_event\0\u{4}\u{a}image_transfer_complete\0\u{4}\u{
|
|
2334
|
+
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{4}\u{a}battery_status\0\u{3}charging_state\0\u{3}device_info\0\u{3}head_position\0\u{3}head_up_angle_set\0\u{4}\u{6}vad_event\0\u{4}\u{a}image_transfer_complete\0\u{3}canvas_result\0\u{4}\u{9}imu_data\0\u{3}button_event\0\u{3}head_gesture\0")
|
|
1986
2335
|
|
|
1987
2336
|
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
|
|
1988
2337
|
while let fieldNumber = try decoder.nextFieldNumber() {
|
|
@@ -2081,6 +2430,19 @@ extension Mentraos_Ble_GlassesToPhone: SwiftProtobuf.Message, SwiftProtobuf._Mes
|
|
|
2081
2430
|
self.payload = .imageTransferComplete(v)
|
|
2082
2431
|
}
|
|
2083
2432
|
}()
|
|
2433
|
+
case 31: try {
|
|
2434
|
+
var v: Mentraos_Ble_CanvasResult?
|
|
2435
|
+
var hadOneofValue = false
|
|
2436
|
+
if let current = self.payload {
|
|
2437
|
+
hadOneofValue = true
|
|
2438
|
+
if case .canvasResult(let m) = current {v = m}
|
|
2439
|
+
}
|
|
2440
|
+
try decoder.decodeSingularMessageField(value: &v)
|
|
2441
|
+
if let v = v {
|
|
2442
|
+
if hadOneofValue {try decoder.handleConflictingOneOf()}
|
|
2443
|
+
self.payload = .canvasResult(v)
|
|
2444
|
+
}
|
|
2445
|
+
}()
|
|
2084
2446
|
case 40: try {
|
|
2085
2447
|
var v: Mentraos_Ble_ImuData?
|
|
2086
2448
|
var hadOneofValue = false
|
|
@@ -2159,6 +2521,10 @@ extension Mentraos_Ble_GlassesToPhone: SwiftProtobuf.Message, SwiftProtobuf._Mes
|
|
|
2159
2521
|
guard case .imageTransferComplete(let v)? = self.payload else { preconditionFailure() }
|
|
2160
2522
|
try visitor.visitSingularMessageField(value: v, fieldNumber: 30)
|
|
2161
2523
|
}()
|
|
2524
|
+
case .canvasResult?: try {
|
|
2525
|
+
guard case .canvasResult(let v)? = self.payload else { preconditionFailure() }
|
|
2526
|
+
try visitor.visitSingularMessageField(value: v, fieldNumber: 31)
|
|
2527
|
+
}()
|
|
2162
2528
|
case .imuData?: try {
|
|
2163
2529
|
guard case .imuData(let v)? = self.payload else { preconditionFailure() }
|
|
2164
2530
|
try visitor.visitSingularMessageField(value: v, fieldNumber: 40)
|
|
@@ -2183,7 +2549,7 @@ extension Mentraos_Ble_GlassesToPhone: SwiftProtobuf.Message, SwiftProtobuf._Mes
|
|
|
2183
2549
|
}
|
|
2184
2550
|
}
|
|
2185
2551
|
|
|
2186
|
-
extension Mentraos_Ble_DisconnectRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
2552
|
+
nonisolated extension Mentraos_Ble_DisconnectRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
2187
2553
|
static let protoMessageName: String = _protobuf_package + ".DisconnectRequest"
|
|
2188
2554
|
static let _protobuf_nameMap = SwiftProtobuf._NameMap()
|
|
2189
2555
|
|
|
@@ -2202,7 +2568,7 @@ extension Mentraos_Ble_DisconnectRequest: SwiftProtobuf.Message, SwiftProtobuf._
|
|
|
2202
2568
|
}
|
|
2203
2569
|
}
|
|
2204
2570
|
|
|
2205
|
-
extension Mentraos_Ble_BatteryStateRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
2571
|
+
nonisolated extension Mentraos_Ble_BatteryStateRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
2206
2572
|
static let protoMessageName: String = _protobuf_package + ".BatteryStateRequest"
|
|
2207
2573
|
static let _protobuf_nameMap = SwiftProtobuf._NameMap()
|
|
2208
2574
|
|
|
@@ -2221,7 +2587,7 @@ extension Mentraos_Ble_BatteryStateRequest: SwiftProtobuf.Message, SwiftProtobuf
|
|
|
2221
2587
|
}
|
|
2222
2588
|
}
|
|
2223
2589
|
|
|
2224
|
-
extension Mentraos_Ble_BatteryStatus: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
2590
|
+
nonisolated extension Mentraos_Ble_BatteryStatus: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
2225
2591
|
static let protoMessageName: String = _protobuf_package + ".BatteryStatus"
|
|
2226
2592
|
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}level\0\u{1}charging\0")
|
|
2227
2593
|
|
|
@@ -2256,7 +2622,7 @@ extension Mentraos_Ble_BatteryStatus: SwiftProtobuf.Message, SwiftProtobuf._Mess
|
|
|
2256
2622
|
}
|
|
2257
2623
|
}
|
|
2258
2624
|
|
|
2259
|
-
extension Mentraos_Ble_ChargingState: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
2625
|
+
nonisolated extension Mentraos_Ble_ChargingState: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
2260
2626
|
static let protoMessageName: String = _protobuf_package + ".ChargingState"
|
|
2261
2627
|
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}state\0")
|
|
2262
2628
|
|
|
@@ -2286,11 +2652,11 @@ extension Mentraos_Ble_ChargingState: SwiftProtobuf.Message, SwiftProtobuf._Mess
|
|
|
2286
2652
|
}
|
|
2287
2653
|
}
|
|
2288
2654
|
|
|
2289
|
-
extension Mentraos_Ble_ChargingState.State: SwiftProtobuf._ProtoNameProviding {
|
|
2655
|
+
nonisolated extension Mentraos_Ble_ChargingState.State: SwiftProtobuf._ProtoNameProviding {
|
|
2290
2656
|
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{2}\0NOT_CHARGING\0\u{1}CHARGING\0")
|
|
2291
2657
|
}
|
|
2292
2658
|
|
|
2293
|
-
extension Mentraos_Ble_GlassesInfoRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
2659
|
+
nonisolated extension Mentraos_Ble_GlassesInfoRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
2294
2660
|
static let protoMessageName: String = _protobuf_package + ".GlassesInfoRequest"
|
|
2295
2661
|
static let _protobuf_nameMap = SwiftProtobuf._NameMap()
|
|
2296
2662
|
|
|
@@ -2309,7 +2675,7 @@ extension Mentraos_Ble_GlassesInfoRequest: SwiftProtobuf.Message, SwiftProtobuf.
|
|
|
2309
2675
|
}
|
|
2310
2676
|
}
|
|
2311
2677
|
|
|
2312
|
-
extension Mentraos_Ble_DeviceInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
2678
|
+
nonisolated extension Mentraos_Ble_DeviceInfo: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
2313
2679
|
static let protoMessageName: String = _protobuf_package + ".DeviceInfo"
|
|
2314
2680
|
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{3}fw_version\0\u{3}hw_model\0\u{1}features\0")
|
|
2315
2681
|
|
|
@@ -2353,7 +2719,7 @@ extension Mentraos_Ble_DeviceInfo: SwiftProtobuf.Message, SwiftProtobuf._Message
|
|
|
2353
2719
|
}
|
|
2354
2720
|
}
|
|
2355
2721
|
|
|
2356
|
-
extension Mentraos_Ble_DeviceFeatures: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
2722
|
+
nonisolated extension Mentraos_Ble_DeviceFeatures: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
2357
2723
|
static let protoMessageName: String = _protobuf_package + ".DeviceFeatures"
|
|
2358
2724
|
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}camera\0\u{1}display\0\u{3}audio_tx\0\u{3}audio_rx\0\u{1}imu\0\u{1}vad\0\u{3}mic_switching\0\u{3}image_chunk_buffer\0")
|
|
2359
2725
|
|
|
@@ -2418,7 +2784,7 @@ extension Mentraos_Ble_DeviceFeatures: SwiftProtobuf.Message, SwiftProtobuf._Mes
|
|
|
2418
2784
|
}
|
|
2419
2785
|
}
|
|
2420
2786
|
|
|
2421
|
-
extension Mentraos_Ble_PairingModeRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
2787
|
+
nonisolated extension Mentraos_Ble_PairingModeRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
2422
2788
|
static let protoMessageName: String = _protobuf_package + ".PairingModeRequest"
|
|
2423
2789
|
static let _protobuf_nameMap = SwiftProtobuf._NameMap()
|
|
2424
2790
|
|
|
@@ -2437,7 +2803,7 @@ extension Mentraos_Ble_PairingModeRequest: SwiftProtobuf.Message, SwiftProtobuf.
|
|
|
2437
2803
|
}
|
|
2438
2804
|
}
|
|
2439
2805
|
|
|
2440
|
-
extension Mentraos_Ble_HeadPositionRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
2806
|
+
nonisolated extension Mentraos_Ble_HeadPositionRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
2441
2807
|
static let protoMessageName: String = _protobuf_package + ".HeadPositionRequest"
|
|
2442
2808
|
static let _protobuf_nameMap = SwiftProtobuf._NameMap()
|
|
2443
2809
|
|
|
@@ -2456,7 +2822,7 @@ extension Mentraos_Ble_HeadPositionRequest: SwiftProtobuf.Message, SwiftProtobuf
|
|
|
2456
2822
|
}
|
|
2457
2823
|
}
|
|
2458
2824
|
|
|
2459
|
-
extension Mentraos_Ble_HeadPosition: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
2825
|
+
nonisolated extension Mentraos_Ble_HeadPosition: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
2460
2826
|
static let protoMessageName: String = _protobuf_package + ".HeadPosition"
|
|
2461
2827
|
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}angle\0")
|
|
2462
2828
|
|
|
@@ -2486,7 +2852,7 @@ extension Mentraos_Ble_HeadPosition: SwiftProtobuf.Message, SwiftProtobuf._Messa
|
|
|
2486
2852
|
}
|
|
2487
2853
|
}
|
|
2488
2854
|
|
|
2489
|
-
extension Mentraos_Ble_HeadUpAngleConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
2855
|
+
nonisolated extension Mentraos_Ble_HeadUpAngleConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
2490
2856
|
static let protoMessageName: String = _protobuf_package + ".HeadUpAngleConfig"
|
|
2491
2857
|
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}angle\0")
|
|
2492
2858
|
|
|
@@ -2516,7 +2882,7 @@ extension Mentraos_Ble_HeadUpAngleConfig: SwiftProtobuf.Message, SwiftProtobuf._
|
|
|
2516
2882
|
}
|
|
2517
2883
|
}
|
|
2518
2884
|
|
|
2519
|
-
extension Mentraos_Ble_HeadUpAngleResponse: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
2885
|
+
nonisolated extension Mentraos_Ble_HeadUpAngleResponse: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
2520
2886
|
static let protoMessageName: String = _protobuf_package + ".HeadUpAngleResponse"
|
|
2521
2887
|
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}success\0")
|
|
2522
2888
|
|
|
@@ -2546,7 +2912,7 @@ extension Mentraos_Ble_HeadUpAngleResponse: SwiftProtobuf.Message, SwiftProtobuf
|
|
|
2546
2912
|
}
|
|
2547
2913
|
}
|
|
2548
2914
|
|
|
2549
|
-
extension Mentraos_Ble_MicStateConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
2915
|
+
nonisolated extension Mentraos_Ble_MicStateConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
2550
2916
|
static let protoMessageName: String = _protobuf_package + ".MicStateConfig"
|
|
2551
2917
|
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}enabled\0")
|
|
2552
2918
|
|
|
@@ -2576,7 +2942,7 @@ extension Mentraos_Ble_MicStateConfig: SwiftProtobuf.Message, SwiftProtobuf._Mes
|
|
|
2576
2942
|
}
|
|
2577
2943
|
}
|
|
2578
2944
|
|
|
2579
|
-
extension Mentraos_Ble_VadEnabledConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
2945
|
+
nonisolated extension Mentraos_Ble_VadEnabledConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
2580
2946
|
static let protoMessageName: String = _protobuf_package + ".VadEnabledConfig"
|
|
2581
2947
|
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}enabled\0")
|
|
2582
2948
|
|
|
@@ -2606,7 +2972,7 @@ extension Mentraos_Ble_VadEnabledConfig: SwiftProtobuf.Message, SwiftProtobuf._M
|
|
|
2606
2972
|
}
|
|
2607
2973
|
}
|
|
2608
2974
|
|
|
2609
|
-
extension Mentraos_Ble_VadConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
2975
|
+
nonisolated extension Mentraos_Ble_VadConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
2610
2976
|
static let protoMessageName: String = _protobuf_package + ".VadConfig"
|
|
2611
2977
|
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}sensitivity\0")
|
|
2612
2978
|
|
|
@@ -2636,7 +3002,7 @@ extension Mentraos_Ble_VadConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageI
|
|
|
2636
3002
|
}
|
|
2637
3003
|
}
|
|
2638
3004
|
|
|
2639
|
-
extension Mentraos_Ble_VadEvent: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
3005
|
+
nonisolated extension Mentraos_Ble_VadEvent: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
2640
3006
|
static let protoMessageName: String = _protobuf_package + ".VadEvent"
|
|
2641
3007
|
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}state\0")
|
|
2642
3008
|
|
|
@@ -2666,11 +3032,11 @@ extension Mentraos_Ble_VadEvent: SwiftProtobuf.Message, SwiftProtobuf._MessageIm
|
|
|
2666
3032
|
}
|
|
2667
3033
|
}
|
|
2668
3034
|
|
|
2669
|
-
extension Mentraos_Ble_VadEvent.State: SwiftProtobuf._ProtoNameProviding {
|
|
3035
|
+
nonisolated extension Mentraos_Ble_VadEvent.State: SwiftProtobuf._ProtoNameProviding {
|
|
2670
3036
|
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{2}\0INACTIVE\0\u{1}ACTIVE\0")
|
|
2671
3037
|
}
|
|
2672
3038
|
|
|
2673
|
-
extension Mentraos_Ble_DisplayText: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
3039
|
+
nonisolated extension Mentraos_Ble_DisplayText: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
2674
3040
|
static let protoMessageName: String = _protobuf_package + ".DisplayText"
|
|
2675
3041
|
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}text\0\u{1}color\0\u{3}font_code\0\u{1}x\0\u{1}y\0\u{1}size\0")
|
|
2676
3042
|
|
|
@@ -2725,7 +3091,7 @@ extension Mentraos_Ble_DisplayText: SwiftProtobuf.Message, SwiftProtobuf._Messag
|
|
|
2725
3091
|
}
|
|
2726
3092
|
}
|
|
2727
3093
|
|
|
2728
|
-
extension Mentraos_Ble_DisplayImage: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
3094
|
+
nonisolated extension Mentraos_Ble_DisplayImage: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
2729
3095
|
static let protoMessageName: String = _protobuf_package + ".DisplayImage"
|
|
2730
3096
|
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{3}stream_id\0\u{1}x\0\u{1}y\0\u{1}width\0\u{1}height\0\u{1}encoding\0\u{3}total_chunks\0")
|
|
2731
3097
|
|
|
@@ -2785,7 +3151,7 @@ extension Mentraos_Ble_DisplayImage: SwiftProtobuf.Message, SwiftProtobuf._Messa
|
|
|
2785
3151
|
}
|
|
2786
3152
|
}
|
|
2787
3153
|
|
|
2788
|
-
extension Mentraos_Ble_PreloadImage: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
3154
|
+
nonisolated extension Mentraos_Ble_PreloadImage: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
2789
3155
|
static let protoMessageName: String = _protobuf_package + ".PreloadImage"
|
|
2790
3156
|
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{3}stream_id\0\u{3}image_id\0\u{1}width\0\u{1}height\0\u{1}encoding\0\u{3}total_chunks\0")
|
|
2791
3157
|
|
|
@@ -2840,7 +3206,7 @@ extension Mentraos_Ble_PreloadImage: SwiftProtobuf.Message, SwiftProtobuf._Messa
|
|
|
2840
3206
|
}
|
|
2841
3207
|
}
|
|
2842
3208
|
|
|
2843
|
-
extension Mentraos_Ble_DisplayCachedImage: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
3209
|
+
nonisolated extension Mentraos_Ble_DisplayCachedImage: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
2844
3210
|
static let protoMessageName: String = _protobuf_package + ".DisplayCachedImage"
|
|
2845
3211
|
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{3}image_id\0\u{1}x\0\u{1}y\0\u{1}width\0\u{1}height\0")
|
|
2846
3212
|
|
|
@@ -2890,7 +3256,7 @@ extension Mentraos_Ble_DisplayCachedImage: SwiftProtobuf.Message, SwiftProtobuf.
|
|
|
2890
3256
|
}
|
|
2891
3257
|
}
|
|
2892
3258
|
|
|
2893
|
-
extension Mentraos_Ble_ClearCachedImage: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
3259
|
+
nonisolated extension Mentraos_Ble_ClearCachedImage: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
2894
3260
|
static let protoMessageName: String = _protobuf_package + ".ClearCachedImage"
|
|
2895
3261
|
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{3}image_id\0")
|
|
2896
3262
|
|
|
@@ -2920,7 +3286,7 @@ extension Mentraos_Ble_ClearCachedImage: SwiftProtobuf.Message, SwiftProtobuf._M
|
|
|
2920
3286
|
}
|
|
2921
3287
|
}
|
|
2922
3288
|
|
|
2923
|
-
extension Mentraos_Ble_DisplayScrollingText: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
3289
|
+
nonisolated extension Mentraos_Ble_DisplayScrollingText: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
2924
3290
|
static let protoMessageName: String = _protobuf_package + ".DisplayScrollingText"
|
|
2925
3291
|
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}text\0\u{1}color\0\u{3}font_code\0\u{1}x\0\u{1}y\0\u{1}width\0\u{1}height\0\u{1}align\0\u{3}line_spacing\0\u{1}speed\0\u{1}size\0\u{1}loop\0\u{3}pause_ms\0")
|
|
2926
3292
|
|
|
@@ -3010,11 +3376,11 @@ extension Mentraos_Ble_DisplayScrollingText: SwiftProtobuf.Message, SwiftProtobu
|
|
|
3010
3376
|
}
|
|
3011
3377
|
}
|
|
3012
3378
|
|
|
3013
|
-
extension Mentraos_Ble_DisplayScrollingText.Alignment: SwiftProtobuf._ProtoNameProviding {
|
|
3379
|
+
nonisolated extension Mentraos_Ble_DisplayScrollingText.Alignment: SwiftProtobuf._ProtoNameProviding {
|
|
3014
3380
|
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{2}\0LEFT\0\u{1}CENTER\0\u{1}RIGHT\0")
|
|
3015
3381
|
}
|
|
3016
3382
|
|
|
3017
|
-
extension Mentraos_Ble_ClearDisplay: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
3383
|
+
nonisolated extension Mentraos_Ble_ClearDisplay: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
3018
3384
|
static let protoMessageName: String = _protobuf_package + ".ClearDisplay"
|
|
3019
3385
|
static let _protobuf_nameMap = SwiftProtobuf._NameMap()
|
|
3020
3386
|
|
|
@@ -3033,7 +3399,7 @@ extension Mentraos_Ble_ClearDisplay: SwiftProtobuf.Message, SwiftProtobuf._Messa
|
|
|
3033
3399
|
}
|
|
3034
3400
|
}
|
|
3035
3401
|
|
|
3036
|
-
extension Mentraos_Ble_DisplayPowerConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
3402
|
+
nonisolated extension Mentraos_Ble_DisplayPowerConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
3037
3403
|
static let protoMessageName: String = _protobuf_package + ".DisplayPowerConfig"
|
|
3038
3404
|
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}on\0")
|
|
3039
3405
|
|
|
@@ -3063,7 +3429,7 @@ extension Mentraos_Ble_DisplayPowerConfig: SwiftProtobuf.Message, SwiftProtobuf.
|
|
|
3063
3429
|
}
|
|
3064
3430
|
}
|
|
3065
3431
|
|
|
3066
|
-
extension Mentraos_Ble_BrightnessConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
3432
|
+
nonisolated extension Mentraos_Ble_BrightnessConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
3067
3433
|
static let protoMessageName: String = _protobuf_package + ".BrightnessConfig"
|
|
3068
3434
|
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}value\0")
|
|
3069
3435
|
|
|
@@ -3093,7 +3459,7 @@ extension Mentraos_Ble_BrightnessConfig: SwiftProtobuf.Message, SwiftProtobuf._M
|
|
|
3093
3459
|
}
|
|
3094
3460
|
}
|
|
3095
3461
|
|
|
3096
|
-
extension Mentraos_Ble_AutoBrightnessConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
3462
|
+
nonisolated extension Mentraos_Ble_AutoBrightnessConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
3097
3463
|
static let protoMessageName: String = _protobuf_package + ".AutoBrightnessConfig"
|
|
3098
3464
|
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}enabled\0")
|
|
3099
3465
|
|
|
@@ -3123,7 +3489,7 @@ extension Mentraos_Ble_AutoBrightnessConfig: SwiftProtobuf.Message, SwiftProtobu
|
|
|
3123
3489
|
}
|
|
3124
3490
|
}
|
|
3125
3491
|
|
|
3126
|
-
extension Mentraos_Ble_AutoBrightnessMultiplier: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
3492
|
+
nonisolated extension Mentraos_Ble_AutoBrightnessMultiplier: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
3127
3493
|
static let protoMessageName: String = _protobuf_package + ".AutoBrightnessMultiplier"
|
|
3128
3494
|
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}multiplier\0")
|
|
3129
3495
|
|
|
@@ -3153,7 +3519,7 @@ extension Mentraos_Ble_AutoBrightnessMultiplier: SwiftProtobuf.Message, SwiftPro
|
|
|
3153
3519
|
}
|
|
3154
3520
|
}
|
|
3155
3521
|
|
|
3156
|
-
extension Mentraos_Ble_DrawLine: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
3522
|
+
nonisolated extension Mentraos_Ble_DrawLine: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
3157
3523
|
static let protoMessageName: String = _protobuf_package + ".DrawLine"
|
|
3158
3524
|
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}color\0\u{1}stroke\0\u{1}x1\0\u{1}y1\0\u{1}x2\0\u{1}y2\0")
|
|
3159
3525
|
|
|
@@ -3208,7 +3574,7 @@ extension Mentraos_Ble_DrawLine: SwiftProtobuf.Message, SwiftProtobuf._MessageIm
|
|
|
3208
3574
|
}
|
|
3209
3575
|
}
|
|
3210
3576
|
|
|
3211
|
-
extension Mentraos_Ble_DrawRect: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
3577
|
+
nonisolated extension Mentraos_Ble_DrawRect: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
3212
3578
|
static let protoMessageName: String = _protobuf_package + ".DrawRect"
|
|
3213
3579
|
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}color\0\u{1}stroke\0\u{1}x\0\u{1}y\0\u{1}width\0\u{1}height\0")
|
|
3214
3580
|
|
|
@@ -3263,7 +3629,7 @@ extension Mentraos_Ble_DrawRect: SwiftProtobuf.Message, SwiftProtobuf._MessageIm
|
|
|
3263
3629
|
}
|
|
3264
3630
|
}
|
|
3265
3631
|
|
|
3266
|
-
extension Mentraos_Ble_DrawCircle: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
3632
|
+
nonisolated extension Mentraos_Ble_DrawCircle: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
3267
3633
|
static let protoMessageName: String = _protobuf_package + ".DrawCircle"
|
|
3268
3634
|
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}color\0\u{1}stroke\0\u{1}x\0\u{1}y\0\u{1}radius\0")
|
|
3269
3635
|
|
|
@@ -3313,7 +3679,7 @@ extension Mentraos_Ble_DrawCircle: SwiftProtobuf.Message, SwiftProtobuf._Message
|
|
|
3313
3679
|
}
|
|
3314
3680
|
}
|
|
3315
3681
|
|
|
3316
|
-
extension Mentraos_Ble_CommitDisplay: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
3682
|
+
nonisolated extension Mentraos_Ble_CommitDisplay: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
3317
3683
|
static let protoMessageName: String = _protobuf_package + ".CommitDisplay"
|
|
3318
3684
|
static let _protobuf_nameMap = SwiftProtobuf._NameMap()
|
|
3319
3685
|
|
|
@@ -3332,7 +3698,7 @@ extension Mentraos_Ble_CommitDisplay: SwiftProtobuf.Message, SwiftProtobuf._Mess
|
|
|
3332
3698
|
}
|
|
3333
3699
|
}
|
|
3334
3700
|
|
|
3335
|
-
extension Mentraos_Ble_DisplayDistanceConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
3701
|
+
nonisolated extension Mentraos_Ble_DisplayDistanceConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
3336
3702
|
static let protoMessageName: String = _protobuf_package + ".DisplayDistanceConfig"
|
|
3337
3703
|
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{3}distance_cm\0")
|
|
3338
3704
|
|
|
@@ -3362,7 +3728,7 @@ extension Mentraos_Ble_DisplayDistanceConfig: SwiftProtobuf.Message, SwiftProtob
|
|
|
3362
3728
|
}
|
|
3363
3729
|
}
|
|
3364
3730
|
|
|
3365
|
-
extension Mentraos_Ble_DisplayHeightConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
3731
|
+
nonisolated extension Mentraos_Ble_DisplayHeightConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
3366
3732
|
static let protoMessageName: String = _protobuf_package + ".DisplayHeightConfig"
|
|
3367
3733
|
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}height\0")
|
|
3368
3734
|
|
|
@@ -3392,7 +3758,7 @@ extension Mentraos_Ble_DisplayHeightConfig: SwiftProtobuf.Message, SwiftProtobuf
|
|
|
3392
3758
|
}
|
|
3393
3759
|
}
|
|
3394
3760
|
|
|
3395
|
-
extension Mentraos_Ble_ImageTransferComplete: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
3761
|
+
nonisolated extension Mentraos_Ble_ImageTransferComplete: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
3396
3762
|
static let protoMessageName: String = _protobuf_package + ".ImageTransferComplete"
|
|
3397
3763
|
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{3}stream_id\0\u{1}status\0\u{3}missing_chunks\0")
|
|
3398
3764
|
|
|
@@ -3432,11 +3798,249 @@ extension Mentraos_Ble_ImageTransferComplete: SwiftProtobuf.Message, SwiftProtob
|
|
|
3432
3798
|
}
|
|
3433
3799
|
}
|
|
3434
3800
|
|
|
3435
|
-
extension Mentraos_Ble_ImageTransferComplete.Status: SwiftProtobuf._ProtoNameProviding {
|
|
3801
|
+
nonisolated extension Mentraos_Ble_ImageTransferComplete.Status: SwiftProtobuf._ProtoNameProviding {
|
|
3436
3802
|
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{2}\0OK\0\u{1}INCOMPLETE\0")
|
|
3437
3803
|
}
|
|
3438
3804
|
|
|
3439
|
-
extension
|
|
3805
|
+
nonisolated extension Mentraos_Ble_CanvasCreateComponent: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
3806
|
+
static let protoMessageName: String = _protobuf_package + ".CanvasCreateComponent"
|
|
3807
|
+
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}id\0\u{1}type\0\u{1}x\0\u{1}y\0\u{1}width\0\u{1}height\0\u{3}border_width\0\u{3}border_radius\0\u{1}padding\0")
|
|
3808
|
+
|
|
3809
|
+
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
|
|
3810
|
+
while let fieldNumber = try decoder.nextFieldNumber() {
|
|
3811
|
+
// The use of inline closures is to circumvent an issue where the compiler
|
|
3812
|
+
// allocates stack space for every case branch when no optimizations are
|
|
3813
|
+
// enabled. https://github.com/apple/swift-protobuf/issues/1034
|
|
3814
|
+
switch fieldNumber {
|
|
3815
|
+
case 1: try { try decoder.decodeSingularUInt32Field(value: &self.id) }()
|
|
3816
|
+
case 2: try { try decoder.decodeSingularEnumField(value: &self.type) }()
|
|
3817
|
+
case 3: try { try decoder.decodeSingularUInt32Field(value: &self.x) }()
|
|
3818
|
+
case 4: try { try decoder.decodeSingularUInt32Field(value: &self.y) }()
|
|
3819
|
+
case 5: try { try decoder.decodeSingularUInt32Field(value: &self.width) }()
|
|
3820
|
+
case 6: try { try decoder.decodeSingularUInt32Field(value: &self.height) }()
|
|
3821
|
+
case 7: try { try decoder.decodeSingularUInt32Field(value: &self.borderWidth) }()
|
|
3822
|
+
case 8: try { try decoder.decodeSingularUInt32Field(value: &self.borderRadius) }()
|
|
3823
|
+
case 9: try { try decoder.decodeSingularUInt32Field(value: &self.padding) }()
|
|
3824
|
+
default: break
|
|
3825
|
+
}
|
|
3826
|
+
}
|
|
3827
|
+
}
|
|
3828
|
+
|
|
3829
|
+
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
|
|
3830
|
+
if self.id != 0 {
|
|
3831
|
+
try visitor.visitSingularUInt32Field(value: self.id, fieldNumber: 1)
|
|
3832
|
+
}
|
|
3833
|
+
if self.type != .canvasBitmap {
|
|
3834
|
+
try visitor.visitSingularEnumField(value: self.type, fieldNumber: 2)
|
|
3835
|
+
}
|
|
3836
|
+
if self.x != 0 {
|
|
3837
|
+
try visitor.visitSingularUInt32Field(value: self.x, fieldNumber: 3)
|
|
3838
|
+
}
|
|
3839
|
+
if self.y != 0 {
|
|
3840
|
+
try visitor.visitSingularUInt32Field(value: self.y, fieldNumber: 4)
|
|
3841
|
+
}
|
|
3842
|
+
if self.width != 0 {
|
|
3843
|
+
try visitor.visitSingularUInt32Field(value: self.width, fieldNumber: 5)
|
|
3844
|
+
}
|
|
3845
|
+
if self.height != 0 {
|
|
3846
|
+
try visitor.visitSingularUInt32Field(value: self.height, fieldNumber: 6)
|
|
3847
|
+
}
|
|
3848
|
+
if self.borderWidth != 0 {
|
|
3849
|
+
try visitor.visitSingularUInt32Field(value: self.borderWidth, fieldNumber: 7)
|
|
3850
|
+
}
|
|
3851
|
+
if self.borderRadius != 0 {
|
|
3852
|
+
try visitor.visitSingularUInt32Field(value: self.borderRadius, fieldNumber: 8)
|
|
3853
|
+
}
|
|
3854
|
+
if self.padding != 0 {
|
|
3855
|
+
try visitor.visitSingularUInt32Field(value: self.padding, fieldNumber: 9)
|
|
3856
|
+
}
|
|
3857
|
+
try unknownFields.traverse(visitor: &visitor)
|
|
3858
|
+
}
|
|
3859
|
+
|
|
3860
|
+
static func ==(lhs: Mentraos_Ble_CanvasCreateComponent, rhs: Mentraos_Ble_CanvasCreateComponent) -> Bool {
|
|
3861
|
+
if lhs.id != rhs.id {return false}
|
|
3862
|
+
if lhs.type != rhs.type {return false}
|
|
3863
|
+
if lhs.x != rhs.x {return false}
|
|
3864
|
+
if lhs.y != rhs.y {return false}
|
|
3865
|
+
if lhs.width != rhs.width {return false}
|
|
3866
|
+
if lhs.height != rhs.height {return false}
|
|
3867
|
+
if lhs.borderWidth != rhs.borderWidth {return false}
|
|
3868
|
+
if lhs.borderRadius != rhs.borderRadius {return false}
|
|
3869
|
+
if lhs.padding != rhs.padding {return false}
|
|
3870
|
+
if lhs.unknownFields != rhs.unknownFields {return false}
|
|
3871
|
+
return true
|
|
3872
|
+
}
|
|
3873
|
+
}
|
|
3874
|
+
|
|
3875
|
+
nonisolated extension Mentraos_Ble_CanvasUpdateText: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
3876
|
+
static let protoMessageName: String = _protobuf_package + ".CanvasUpdateText"
|
|
3877
|
+
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}id\0\u{1}text\0\u{3}scroll_offset\0")
|
|
3878
|
+
|
|
3879
|
+
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
|
|
3880
|
+
while let fieldNumber = try decoder.nextFieldNumber() {
|
|
3881
|
+
// The use of inline closures is to circumvent an issue where the compiler
|
|
3882
|
+
// allocates stack space for every case branch when no optimizations are
|
|
3883
|
+
// enabled. https://github.com/apple/swift-protobuf/issues/1034
|
|
3884
|
+
switch fieldNumber {
|
|
3885
|
+
case 1: try { try decoder.decodeSingularUInt32Field(value: &self.id) }()
|
|
3886
|
+
case 2: try { try decoder.decodeSingularStringField(value: &self.text) }()
|
|
3887
|
+
case 3: try { try decoder.decodeSingularUInt32Field(value: &self.scrollOffset) }()
|
|
3888
|
+
default: break
|
|
3889
|
+
}
|
|
3890
|
+
}
|
|
3891
|
+
}
|
|
3892
|
+
|
|
3893
|
+
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
|
|
3894
|
+
if self.id != 0 {
|
|
3895
|
+
try visitor.visitSingularUInt32Field(value: self.id, fieldNumber: 1)
|
|
3896
|
+
}
|
|
3897
|
+
if !self.text.isEmpty {
|
|
3898
|
+
try visitor.visitSingularStringField(value: self.text, fieldNumber: 2)
|
|
3899
|
+
}
|
|
3900
|
+
if self.scrollOffset != 0 {
|
|
3901
|
+
try visitor.visitSingularUInt32Field(value: self.scrollOffset, fieldNumber: 3)
|
|
3902
|
+
}
|
|
3903
|
+
try unknownFields.traverse(visitor: &visitor)
|
|
3904
|
+
}
|
|
3905
|
+
|
|
3906
|
+
static func ==(lhs: Mentraos_Ble_CanvasUpdateText, rhs: Mentraos_Ble_CanvasUpdateText) -> Bool {
|
|
3907
|
+
if lhs.id != rhs.id {return false}
|
|
3908
|
+
if lhs.text != rhs.text {return false}
|
|
3909
|
+
if lhs.scrollOffset != rhs.scrollOffset {return false}
|
|
3910
|
+
if lhs.unknownFields != rhs.unknownFields {return false}
|
|
3911
|
+
return true
|
|
3912
|
+
}
|
|
3913
|
+
}
|
|
3914
|
+
|
|
3915
|
+
nonisolated extension Mentraos_Ble_CanvasUpdateImage: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
3916
|
+
static let protoMessageName: String = _protobuf_package + ".CanvasUpdateImage"
|
|
3917
|
+
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}id\0\u{3}stream_id\0\u{3}total_chunks\0")
|
|
3918
|
+
|
|
3919
|
+
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
|
|
3920
|
+
while let fieldNumber = try decoder.nextFieldNumber() {
|
|
3921
|
+
// The use of inline closures is to circumvent an issue where the compiler
|
|
3922
|
+
// allocates stack space for every case branch when no optimizations are
|
|
3923
|
+
// enabled. https://github.com/apple/swift-protobuf/issues/1034
|
|
3924
|
+
switch fieldNumber {
|
|
3925
|
+
case 1: try { try decoder.decodeSingularUInt32Field(value: &self.id) }()
|
|
3926
|
+
case 2: try { try decoder.decodeSingularStringField(value: &self.streamID) }()
|
|
3927
|
+
case 3: try { try decoder.decodeSingularUInt32Field(value: &self.totalChunks) }()
|
|
3928
|
+
default: break
|
|
3929
|
+
}
|
|
3930
|
+
}
|
|
3931
|
+
}
|
|
3932
|
+
|
|
3933
|
+
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
|
|
3934
|
+
if self.id != 0 {
|
|
3935
|
+
try visitor.visitSingularUInt32Field(value: self.id, fieldNumber: 1)
|
|
3936
|
+
}
|
|
3937
|
+
if !self.streamID.isEmpty {
|
|
3938
|
+
try visitor.visitSingularStringField(value: self.streamID, fieldNumber: 2)
|
|
3939
|
+
}
|
|
3940
|
+
if self.totalChunks != 0 {
|
|
3941
|
+
try visitor.visitSingularUInt32Field(value: self.totalChunks, fieldNumber: 3)
|
|
3942
|
+
}
|
|
3943
|
+
try unknownFields.traverse(visitor: &visitor)
|
|
3944
|
+
}
|
|
3945
|
+
|
|
3946
|
+
static func ==(lhs: Mentraos_Ble_CanvasUpdateImage, rhs: Mentraos_Ble_CanvasUpdateImage) -> Bool {
|
|
3947
|
+
if lhs.id != rhs.id {return false}
|
|
3948
|
+
if lhs.streamID != rhs.streamID {return false}
|
|
3949
|
+
if lhs.totalChunks != rhs.totalChunks {return false}
|
|
3950
|
+
if lhs.unknownFields != rhs.unknownFields {return false}
|
|
3951
|
+
return true
|
|
3952
|
+
}
|
|
3953
|
+
}
|
|
3954
|
+
|
|
3955
|
+
nonisolated extension Mentraos_Ble_CanvasDeleteComponent: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
3956
|
+
static let protoMessageName: String = _protobuf_package + ".CanvasDeleteComponent"
|
|
3957
|
+
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}id\0")
|
|
3958
|
+
|
|
3959
|
+
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
|
|
3960
|
+
while let fieldNumber = try decoder.nextFieldNumber() {
|
|
3961
|
+
// The use of inline closures is to circumvent an issue where the compiler
|
|
3962
|
+
// allocates stack space for every case branch when no optimizations are
|
|
3963
|
+
// enabled. https://github.com/apple/swift-protobuf/issues/1034
|
|
3964
|
+
switch fieldNumber {
|
|
3965
|
+
case 1: try { try decoder.decodeSingularUInt32Field(value: &self.id) }()
|
|
3966
|
+
default: break
|
|
3967
|
+
}
|
|
3968
|
+
}
|
|
3969
|
+
}
|
|
3970
|
+
|
|
3971
|
+
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
|
|
3972
|
+
if self.id != 0 {
|
|
3973
|
+
try visitor.visitSingularUInt32Field(value: self.id, fieldNumber: 1)
|
|
3974
|
+
}
|
|
3975
|
+
try unknownFields.traverse(visitor: &visitor)
|
|
3976
|
+
}
|
|
3977
|
+
|
|
3978
|
+
static func ==(lhs: Mentraos_Ble_CanvasDeleteComponent, rhs: Mentraos_Ble_CanvasDeleteComponent) -> Bool {
|
|
3979
|
+
if lhs.id != rhs.id {return false}
|
|
3980
|
+
if lhs.unknownFields != rhs.unknownFields {return false}
|
|
3981
|
+
return true
|
|
3982
|
+
}
|
|
3983
|
+
}
|
|
3984
|
+
|
|
3985
|
+
nonisolated extension Mentraos_Ble_CanvasClear: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
3986
|
+
static let protoMessageName: String = _protobuf_package + ".CanvasClear"
|
|
3987
|
+
static let _protobuf_nameMap = SwiftProtobuf._NameMap()
|
|
3988
|
+
|
|
3989
|
+
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
|
|
3990
|
+
// Load everything into unknown fields
|
|
3991
|
+
while try decoder.nextFieldNumber() != nil {}
|
|
3992
|
+
}
|
|
3993
|
+
|
|
3994
|
+
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
|
|
3995
|
+
try unknownFields.traverse(visitor: &visitor)
|
|
3996
|
+
}
|
|
3997
|
+
|
|
3998
|
+
static func ==(lhs: Mentraos_Ble_CanvasClear, rhs: Mentraos_Ble_CanvasClear) -> Bool {
|
|
3999
|
+
if lhs.unknownFields != rhs.unknownFields {return false}
|
|
4000
|
+
return true
|
|
4001
|
+
}
|
|
4002
|
+
}
|
|
4003
|
+
|
|
4004
|
+
nonisolated extension Mentraos_Ble_CanvasResult: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
4005
|
+
static let protoMessageName: String = _protobuf_package + ".CanvasResult"
|
|
4006
|
+
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}id\0\u{1}code\0")
|
|
4007
|
+
|
|
4008
|
+
mutating func decodeMessage<D: SwiftProtobuf.Decoder>(decoder: inout D) throws {
|
|
4009
|
+
while let fieldNumber = try decoder.nextFieldNumber() {
|
|
4010
|
+
// The use of inline closures is to circumvent an issue where the compiler
|
|
4011
|
+
// allocates stack space for every case branch when no optimizations are
|
|
4012
|
+
// enabled. https://github.com/apple/swift-protobuf/issues/1034
|
|
4013
|
+
switch fieldNumber {
|
|
4014
|
+
case 1: try { try decoder.decodeSingularUInt32Field(value: &self.id) }()
|
|
4015
|
+
case 2: try { try decoder.decodeSingularEnumField(value: &self.code) }()
|
|
4016
|
+
default: break
|
|
4017
|
+
}
|
|
4018
|
+
}
|
|
4019
|
+
}
|
|
4020
|
+
|
|
4021
|
+
func traverse<V: SwiftProtobuf.Visitor>(visitor: inout V) throws {
|
|
4022
|
+
if self.id != 0 {
|
|
4023
|
+
try visitor.visitSingularUInt32Field(value: self.id, fieldNumber: 1)
|
|
4024
|
+
}
|
|
4025
|
+
if self.code != .ok {
|
|
4026
|
+
try visitor.visitSingularEnumField(value: self.code, fieldNumber: 2)
|
|
4027
|
+
}
|
|
4028
|
+
try unknownFields.traverse(visitor: &visitor)
|
|
4029
|
+
}
|
|
4030
|
+
|
|
4031
|
+
static func ==(lhs: Mentraos_Ble_CanvasResult, rhs: Mentraos_Ble_CanvasResult) -> Bool {
|
|
4032
|
+
if lhs.id != rhs.id {return false}
|
|
4033
|
+
if lhs.code != rhs.code {return false}
|
|
4034
|
+
if lhs.unknownFields != rhs.unknownFields {return false}
|
|
4035
|
+
return true
|
|
4036
|
+
}
|
|
4037
|
+
}
|
|
4038
|
+
|
|
4039
|
+
nonisolated extension Mentraos_Ble_CanvasResult.ResultCode: SwiftProtobuf._ProtoNameProviding {
|
|
4040
|
+
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{2}\0OK\0\u{1}INVALID\0\u{1}OVERSIZE\0\u{1}OOM\0")
|
|
4041
|
+
}
|
|
4042
|
+
|
|
4043
|
+
nonisolated extension Mentraos_Ble_ImuEnabledConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
3440
4044
|
static let protoMessageName: String = _protobuf_package + ".ImuEnabledConfig"
|
|
3441
4045
|
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}enabled\0")
|
|
3442
4046
|
|
|
@@ -3466,7 +4070,7 @@ extension Mentraos_Ble_ImuEnabledConfig: SwiftProtobuf.Message, SwiftProtobuf._M
|
|
|
3466
4070
|
}
|
|
3467
4071
|
}
|
|
3468
4072
|
|
|
3469
|
-
extension Mentraos_Ble_ImuSingleRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
4073
|
+
nonisolated extension Mentraos_Ble_ImuSingleRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
3470
4074
|
static let protoMessageName: String = _protobuf_package + ".ImuSingleRequest"
|
|
3471
4075
|
static let _protobuf_nameMap = SwiftProtobuf._NameMap()
|
|
3472
4076
|
|
|
@@ -3485,7 +4089,7 @@ extension Mentraos_Ble_ImuSingleRequest: SwiftProtobuf.Message, SwiftProtobuf._M
|
|
|
3485
4089
|
}
|
|
3486
4090
|
}
|
|
3487
4091
|
|
|
3488
|
-
extension Mentraos_Ble_ImuStreamConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
4092
|
+
nonisolated extension Mentraos_Ble_ImuStreamConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
3489
4093
|
static let protoMessageName: String = _protobuf_package + ".ImuStreamConfig"
|
|
3490
4094
|
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}enabled\0")
|
|
3491
4095
|
|
|
@@ -3515,7 +4119,7 @@ extension Mentraos_Ble_ImuStreamConfig: SwiftProtobuf.Message, SwiftProtobuf._Me
|
|
|
3515
4119
|
}
|
|
3516
4120
|
}
|
|
3517
4121
|
|
|
3518
|
-
extension Mentraos_Ble_ImuData: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
4122
|
+
nonisolated extension Mentraos_Ble_ImuData: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
3519
4123
|
static let protoMessageName: String = _protobuf_package + ".ImuData"
|
|
3520
4124
|
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}accel\0\u{1}gyro\0\u{1}mag\0")
|
|
3521
4125
|
|
|
@@ -3559,7 +4163,7 @@ extension Mentraos_Ble_ImuData: SwiftProtobuf.Message, SwiftProtobuf._MessageImp
|
|
|
3559
4163
|
}
|
|
3560
4164
|
}
|
|
3561
4165
|
|
|
3562
|
-
extension Mentraos_Ble_Vector3: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
4166
|
+
nonisolated extension Mentraos_Ble_Vector3: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
3563
4167
|
static let protoMessageName: String = _protobuf_package + ".Vector3"
|
|
3564
4168
|
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}x\0\u{1}y\0\u{1}z\0")
|
|
3565
4169
|
|
|
@@ -3599,7 +4203,7 @@ extension Mentraos_Ble_Vector3: SwiftProtobuf.Message, SwiftProtobuf._MessageImp
|
|
|
3599
4203
|
}
|
|
3600
4204
|
}
|
|
3601
4205
|
|
|
3602
|
-
extension Mentraos_Ble_ButtonEvent: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
4206
|
+
nonisolated extension Mentraos_Ble_ButtonEvent: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
3603
4207
|
static let protoMessageName: String = _protobuf_package + ".ButtonEvent"
|
|
3604
4208
|
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}button\0\u{1}state\0")
|
|
3605
4209
|
|
|
@@ -3634,15 +4238,15 @@ extension Mentraos_Ble_ButtonEvent: SwiftProtobuf.Message, SwiftProtobuf._Messag
|
|
|
3634
4238
|
}
|
|
3635
4239
|
}
|
|
3636
4240
|
|
|
3637
|
-
extension Mentraos_Ble_ButtonEvent.Button: SwiftProtobuf._ProtoNameProviding {
|
|
4241
|
+
nonisolated extension Mentraos_Ble_ButtonEvent.Button: SwiftProtobuf._ProtoNameProviding {
|
|
3638
4242
|
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{2}\0CENTER\0\u{1}LEFT\0\u{1}RIGHT\0")
|
|
3639
4243
|
}
|
|
3640
4244
|
|
|
3641
|
-
extension Mentraos_Ble_ButtonEvent.State: SwiftProtobuf._ProtoNameProviding {
|
|
4245
|
+
nonisolated extension Mentraos_Ble_ButtonEvent.State: SwiftProtobuf._ProtoNameProviding {
|
|
3642
4246
|
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{2}\0UP\0\u{1}DOWN\0")
|
|
3643
4247
|
}
|
|
3644
4248
|
|
|
3645
|
-
extension Mentraos_Ble_HeadGesture: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
4249
|
+
nonisolated extension Mentraos_Ble_HeadGesture: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
3646
4250
|
static let protoMessageName: String = _protobuf_package + ".HeadGesture"
|
|
3647
4251
|
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}gesture\0")
|
|
3648
4252
|
|
|
@@ -3672,11 +4276,11 @@ extension Mentraos_Ble_HeadGesture: SwiftProtobuf.Message, SwiftProtobuf._Messag
|
|
|
3672
4276
|
}
|
|
3673
4277
|
}
|
|
3674
4278
|
|
|
3675
|
-
extension Mentraos_Ble_HeadGesture.Gesture: SwiftProtobuf._ProtoNameProviding {
|
|
4279
|
+
nonisolated extension Mentraos_Ble_HeadGesture.Gesture: SwiftProtobuf._ProtoNameProviding {
|
|
3676
4280
|
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{2}\0NOD\0\u{1}SHAKE\0\u{1}HEAD_UP\0")
|
|
3677
4281
|
}
|
|
3678
4282
|
|
|
3679
|
-
extension Mentraos_Ble_HeadGestureConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
4283
|
+
nonisolated extension Mentraos_Ble_HeadGestureConfig: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
3680
4284
|
static let protoMessageName: String = _protobuf_package + ".HeadGestureConfig"
|
|
3681
4285
|
static let _protobuf_nameMap = SwiftProtobuf._NameMap(bytecode: "\0\u{1}gesture\0\u{1}enabled\0")
|
|
3682
4286
|
|
|
@@ -3711,7 +4315,7 @@ extension Mentraos_Ble_HeadGestureConfig: SwiftProtobuf.Message, SwiftProtobuf._
|
|
|
3711
4315
|
}
|
|
3712
4316
|
}
|
|
3713
4317
|
|
|
3714
|
-
extension Mentraos_Ble_RestartRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
4318
|
+
nonisolated extension Mentraos_Ble_RestartRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
3715
4319
|
static let protoMessageName: String = _protobuf_package + ".RestartRequest"
|
|
3716
4320
|
static let _protobuf_nameMap = SwiftProtobuf._NameMap()
|
|
3717
4321
|
|
|
@@ -3730,7 +4334,7 @@ extension Mentraos_Ble_RestartRequest: SwiftProtobuf.Message, SwiftProtobuf._Mes
|
|
|
3730
4334
|
}
|
|
3731
4335
|
}
|
|
3732
4336
|
|
|
3733
|
-
extension Mentraos_Ble_FactoryResetRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
4337
|
+
nonisolated extension Mentraos_Ble_FactoryResetRequest: SwiftProtobuf.Message, SwiftProtobuf._MessageImplementationBase, SwiftProtobuf._ProtoNameProviding {
|
|
3734
4338
|
static let protoMessageName: String = _protobuf_package + ".FactoryResetRequest"
|
|
3735
4339
|
static let _protobuf_nameMap = SwiftProtobuf._NameMap()
|
|
3736
4340
|
|