forked from cii0/ShikishiOSS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProtobuf.pb.swift
4295 lines (3703 loc) · 150 KB
/
Protobuf.pb.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// DO NOT EDIT.
// swift-format-ignore-file
//
// Generated by the Swift generator plugin for the protocol buffer compiler.
// Source: Protobuf.proto
//
// For information on using the generated types, please see the documentation:
// https://github.com/apple/swift-protobuf/
// Copyright 2021 Cii
//
// This file is part of Shikishi.
//
// Shikishi is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Shikishi is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Shikishi. If not, see <http://www.gnu.org/licenses/>.
import Foundation
import SwiftProtobuf
// If the compiler emits an error on this type, it is because this file
// was generated by a version of the `protoc` Swift plug-in that is
// incompatible with the version of SwiftProtobuf to which you are linking.
// Please ensure that you are building against the same version of the API
// that was used to generate this file.
fileprivate struct _GeneratedWithProtocGenSwiftVersion: SwiftProtobuf.ProtobufAPIVersionCheck {
struct _2: SwiftProtobuf.ProtobufAPIVersion_2 {}
typealias Version = _2
}
enum PBRGBColorSpace: SwiftProtobuf.Enum {
typealias RawValue = Int
case sRgb // = 0
case UNRECOGNIZED(Int)
init() {
self = .sRgb
}
init?(rawValue: Int) {
switch rawValue {
case 0: self = .sRgb
default: self = .UNRECOGNIZED(rawValue)
}
}
var rawValue: Int {
switch self {
case .sRgb: return 0
case .UNRECOGNIZED(let i): return i
}
}
}
#if swift(>=4.2)
extension PBRGBColorSpace: CaseIterable {
// The compiler won't synthesize support with the UNRECOGNIZED case.
static var allCases: [PBRGBColorSpace] = [
.sRgb,
]
}
#endif // swift(>=4.2)
enum PBOrientation: SwiftProtobuf.Enum {
typealias RawValue = Int
case horizontal // = 0
case vertical // = 1
case UNRECOGNIZED(Int)
init() {
self = .horizontal
}
init?(rawValue: Int) {
switch rawValue {
case 0: self = .horizontal
case 1: self = .vertical
default: self = .UNRECOGNIZED(rawValue)
}
}
var rawValue: Int {
switch self {
case .horizontal: return 0
case .vertical: return 1
case .UNRECOGNIZED(let i): return i
}
}
}
#if swift(>=4.2)
extension PBOrientation: CaseIterable {
// The compiler won't synthesize support with the UNRECOGNIZED case.
static var allCases: [PBOrientation] = [
.horizontal,
.vertical,
]
}
#endif // swift(>=4.2)
enum PBRectCorner: SwiftProtobuf.Enum {
typealias RawValue = Int
case minXminY // = 0
case minXmaxY // = 1
case maxXminY // = 2
case maxXmaxY // = 3
case UNRECOGNIZED(Int)
init() {
self = .minXminY
}
init?(rawValue: Int) {
switch rawValue {
case 0: self = .minXminY
case 1: self = .minXmaxY
case 2: self = .maxXminY
case 3: self = .maxXmaxY
default: self = .UNRECOGNIZED(rawValue)
}
}
var rawValue: Int {
switch self {
case .minXminY: return 0
case .minXmaxY: return 1
case .maxXminY: return 2
case .maxXmaxY: return 3
case .UNRECOGNIZED(let i): return i
}
}
}
#if swift(>=4.2)
extension PBRectCorner: CaseIterable {
// The compiler won't synthesize support with the UNRECOGNIZED case.
static var allCases: [PBRectCorner] = [
.minXminY,
.minXmaxY,
.maxXminY,
.maxXmaxY,
]
}
#endif // swift(>=4.2)
struct PBPoint {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var x: Double = 0
var y: Double = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
}
struct PBIntPoint {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var x: Int64 = 0
var y: Int64 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
}
struct PBSize {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var width: Double = 0
var height: Double = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
}
struct PBRect {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var origin: PBPoint {
get {return _origin ?? PBPoint()}
set {_origin = newValue}
}
/// Returns true if `origin` has been explicitly set.
var hasOrigin: Bool {return self._origin != nil}
/// Clears the value of `origin`. Subsequent reads from it will return its default value.
mutating func clearOrigin() {self._origin = nil}
var size: PBSize {
get {return _size ?? PBSize()}
set {_size = newValue}
}
/// Returns true if `size` has been explicitly set.
var hasSize: Bool {return self._size != nil}
/// Clears the value of `size`. Subsequent reads from it will return its default value.
mutating func clearSize() {self._size = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _origin: PBPoint? = nil
fileprivate var _size: PBSize? = nil
}
struct PBAttitude {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var position: PBPoint {
get {return _position ?? PBPoint()}
set {_position = newValue}
}
/// Returns true if `position` has been explicitly set.
var hasPosition: Bool {return self._position != nil}
/// Clears the value of `position`. Subsequent reads from it will return its default value.
mutating func clearPosition() {self._position = nil}
var scale: PBSize {
get {return _scale ?? PBSize()}
set {_scale = newValue}
}
/// Returns true if `scale` has been explicitly set.
var hasScale: Bool {return self._scale != nil}
/// Clears the value of `scale`. Subsequent reads from it will return its default value.
mutating func clearScale() {self._scale = nil}
var rotation: Double = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _position: PBPoint? = nil
fileprivate var _scale: PBSize? = nil
}
struct PBLCHA {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var l: Double = 0
var c: Double = 0
var h: Double = 0
var a: Double = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
}
struct PBRGBA {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var r: Float = 0
var g: Float = 0
var b: Float = 0
var a: Float = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
}
struct PBColor {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var lcha: PBLCHA {
get {return _lcha ?? PBLCHA()}
set {_lcha = newValue}
}
/// Returns true if `lcha` has been explicitly set.
var hasLcha: Bool {return self._lcha != nil}
/// Clears the value of `lcha`. Subsequent reads from it will return its default value.
mutating func clearLcha() {self._lcha = nil}
var rgba: PBRGBA {
get {return _rgba ?? PBRGBA()}
set {_rgba = newValue}
}
/// Returns true if `rgba` has been explicitly set.
var hasRgba: Bool {return self._rgba != nil}
/// Clears the value of `rgba`. Subsequent reads from it will return its default value.
mutating func clearRgba() {self._rgba = nil}
var rgbColorSpace: PBRGBColorSpace = .sRgb
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _lcha: PBLCHA? = nil
fileprivate var _rgba: PBRGBA? = nil
}
struct PBUUID {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var value: String = String()
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
}
struct PBUUColor {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var value: PBColor {
get {return _value ?? PBColor()}
set {_value = newValue}
}
/// Returns true if `value` has been explicitly set.
var hasValue: Bool {return self._value != nil}
/// Clears the value of `value`. Subsequent reads from it will return its default value.
mutating func clearValue() {self._value = nil}
var id: PBUUID {
get {return _id ?? PBUUID()}
set {_id = newValue}
}
/// Returns true if `id` has been explicitly set.
var hasID: Bool {return self._id != nil}
/// Clears the value of `id`. Subsequent reads from it will return its default value.
mutating func clearID() {self._id = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _value: PBColor? = nil
fileprivate var _id: PBUUID? = nil
}
struct PBLine {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var controls: [PBLine.PBControl] = []
var size: Double = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
struct PBControl {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var point: PBPoint {
get {return _point ?? PBPoint()}
set {_point = newValue}
}
/// Returns true if `point` has been explicitly set.
var hasPoint: Bool {return self._point != nil}
/// Clears the value of `point`. Subsequent reads from it will return its default value.
mutating func clearPoint() {self._point = nil}
var weight: Double = 0
var pressure: Double = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _point: PBPoint? = nil
}
init() {}
}
struct PBPolygon {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var points: [PBPoint] = []
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
}
struct PBPlane {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var polygon: PBPolygon {
get {return _polygon ?? PBPolygon()}
set {_polygon = newValue}
}
/// Returns true if `polygon` has been explicitly set.
var hasPolygon: Bool {return self._polygon != nil}
/// Clears the value of `polygon`. Subsequent reads from it will return its default value.
mutating func clearPolygon() {self._polygon = nil}
var uuColor: PBUUColor {
get {return _uuColor ?? PBUUColor()}
set {_uuColor = newValue}
}
/// Returns true if `uuColor` has been explicitly set.
var hasUuColor: Bool {return self._uuColor != nil}
/// Clears the value of `uuColor`. Subsequent reads from it will return its default value.
mutating func clearUuColor() {self._uuColor = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _polygon: PBPolygon? = nil
fileprivate var _uuColor: PBUUColor? = nil
}
struct PBPicture {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var lines: [PBLine] = []
var planes: [PBPlane] = []
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
}
struct PBText {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var string: String = String()
var orientation: PBOrientation = .horizontal
var size: Double = 0
var widthCount: Double = 0
var origin: PBPoint {
get {return _origin ?? PBPoint()}
set {_origin = newValue}
}
/// Returns true if `origin` has been explicitly set.
var hasOrigin: Bool {return self._origin != nil}
/// Clears the value of `origin`. Subsequent reads from it will return its default value.
mutating func clearOrigin() {self._origin = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _origin: PBPoint? = nil
}
struct PBBorder {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var location: Double = 0
var orientation: PBOrientation = .horizontal
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
}
struct PBIntPointStringDic {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var value: Dictionary<String,PBIntPoint> = [:]
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
}
struct PBStringIntPointDicElement {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var key: PBIntPoint {
get {return _key ?? PBIntPoint()}
set {_key = newValue}
}
/// Returns true if `key` has been explicitly set.
var hasKey: Bool {return self._key != nil}
/// Clears the value of `key`. Subsequent reads from it will return its default value.
mutating func clearKey() {self._key = nil}
var value: String = String()
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _key: PBIntPoint? = nil
}
struct PBStringIntPointDic {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var value: [PBStringIntPointDicElement] = []
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
}
struct PBSheet {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var picture: PBPicture {
get {return _picture ?? PBPicture()}
set {_picture = newValue}
}
/// Returns true if `picture` has been explicitly set.
var hasPicture: Bool {return self._picture != nil}
/// Clears the value of `picture`. Subsequent reads from it will return its default value.
mutating func clearPicture() {self._picture = nil}
var draftPicture: PBPicture {
get {return _draftPicture ?? PBPicture()}
set {_draftPicture = newValue}
}
/// Returns true if `draftPicture` has been explicitly set.
var hasDraftPicture: Bool {return self._draftPicture != nil}
/// Clears the value of `draftPicture`. Subsequent reads from it will return its default value.
mutating func clearDraftPicture() {self._draftPicture = nil}
var texts: [PBText] = []
var borders: [PBBorder] = []
var backgroundUucolor: PBUUColor {
get {return _backgroundUucolor ?? PBUUColor()}
set {_backgroundUucolor = newValue}
}
/// Returns true if `backgroundUucolor` has been explicitly set.
var hasBackgroundUucolor: Bool {return self._backgroundUucolor != nil}
/// Clears the value of `backgroundUucolor`. Subsequent reads from it will return its default value.
mutating func clearBackgroundUucolor() {self._backgroundUucolor = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _picture: PBPicture? = nil
fileprivate var _draftPicture: PBPicture? = nil
fileprivate var _backgroundUucolor: PBUUColor? = nil
}
struct PBWorld {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var sheetPositions: PBIntPointStringDic {
get {return _sheetPositions ?? PBIntPointStringDic()}
set {_sheetPositions = newValue}
}
/// Returns true if `sheetPositions` has been explicitly set.
var hasSheetPositions: Bool {return self._sheetPositions != nil}
/// Clears the value of `sheetPositions`. Subsequent reads from it will return its default value.
mutating func clearSheetPositions() {self._sheetPositions = nil}
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _sheetPositions: PBIntPointStringDic? = nil
}
struct PBCornerRectValue {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var rect: PBRect {
get {return _rect ?? PBRect()}
set {_rect = newValue}
}
/// Returns true if `rect` has been explicitly set.
var hasRect: Bool {return self._rect != nil}
/// Clears the value of `rect`. Subsequent reads from it will return its default value.
mutating func clearRect() {self._rect = nil}
var rectCorner: PBRectCorner = .minXminY
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _rect: PBRect? = nil
}
struct PBCornerRectValueArray {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var value: [PBCornerRectValue] = []
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
}
struct PBFinding {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var worldPosition: PBPoint {
get {return _worldPosition ?? PBPoint()}
set {_worldPosition = newValue}
}
/// Returns true if `worldPosition` has been explicitly set.
var hasWorldPosition: Bool {return self._worldPosition != nil}
/// Clears the value of `worldPosition`. Subsequent reads from it will return its default value.
mutating func clearWorldPosition() {self._worldPosition = nil}
var string: String = String()
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _worldPosition: PBPoint? = nil
}
struct PBIntIndexValue {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var value: Int64 = 0
var index: Int64 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
}
struct PBLineIndexValue {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var value: PBLine {
get {return _value ?? PBLine()}
set {_value = newValue}
}
/// Returns true if `value` has been explicitly set.
var hasValue: Bool {return self._value != nil}
/// Clears the value of `value`. Subsequent reads from it will return its default value.
mutating func clearValue() {self._value = nil}
var index: Int64 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _value: PBLine? = nil
}
struct PBPlaneIndexValue {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var value: PBPlane {
get {return _value ?? PBPlane()}
set {_value = newValue}
}
/// Returns true if `value` has been explicitly set.
var hasValue: Bool {return self._value != nil}
/// Clears the value of `value`. Subsequent reads from it will return its default value.
mutating func clearValue() {self._value = nil}
var index: Int64 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _value: PBPlane? = nil
}
struct PBTextIndexValue {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var value: PBText {
get {return _value ?? PBText()}
set {_value = newValue}
}
/// Returns true if `value` has been explicitly set.
var hasValue: Bool {return self._value != nil}
/// Clears the value of `value`. Subsequent reads from it will return its default value.
mutating func clearValue() {self._value = nil}
var index: Int64 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _value: PBText? = nil
}
struct PBBorderIndexValue {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var value: PBBorder {
get {return _value ?? PBBorder()}
set {_value = newValue}
}
/// Returns true if `value` has been explicitly set.
var hasValue: Bool {return self._value != nil}
/// Clears the value of `value`. Subsequent reads from it will return its default value.
mutating func clearValue() {self._value = nil}
var index: Int64 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _value: PBBorder? = nil
}
struct PBColorValue {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var uuColor: PBUUColor {
get {return _uuColor ?? PBUUColor()}
set {_uuColor = newValue}
}
/// Returns true if `uuColor` has been explicitly set.
var hasUuColor: Bool {return self._uuColor != nil}
/// Clears the value of `uuColor`. Subsequent reads from it will return its default value.
mutating func clearUuColor() {self._uuColor = nil}
var planeIndexes: [Int64] = []
var isBackground: Bool = false
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _uuColor: PBUUColor? = nil
}
struct PBIntClosedRange {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var lowerBound: Int64 = 0
var upperBound: Int64 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
}
struct PBPlaneValue {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var planes: [PBPlane] = []
var moveIndexValues: [PBIntIndexValue] = []
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
}
struct PBTextValue {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var string: String = String()
var replacedRange: PBIntClosedRange {
get {return _replacedRange ?? PBIntClosedRange()}
set {_replacedRange = newValue}
}
/// Returns true if `replacedRange` has been explicitly set.
var hasReplacedRange: Bool {return self._replacedRange != nil}
/// Clears the value of `replacedRange`. Subsequent reads from it will return its default value.
mutating func clearReplacedRange() {self._replacedRange = nil}
var originOptional: PBTextValue.OneOf_OriginOptional? = nil
var origin: PBPoint {
get {
if case .origin(let v)? = originOptional {return v}
return PBPoint()
}
set {originOptional = .origin(newValue)}
}
var sizeOptional: PBTextValue.OneOf_SizeOptional? = nil
var size: Double {
get {
if case .size(let v)? = sizeOptional {return v}
return 0
}
set {sizeOptional = .size(newValue)}
}
var unknownFields = SwiftProtobuf.UnknownStorage()
enum OneOf_OriginOptional: Equatable {
case origin(PBPoint)
#if !swift(>=4.1)
static func ==(lhs: PBTextValue.OneOf_OriginOptional, rhs: PBTextValue.OneOf_OriginOptional) -> Bool {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch (lhs, rhs) {
case (.origin, .origin): return {
guard case .origin(let l) = lhs, case .origin(let r) = rhs else { preconditionFailure() }
return l == r
}()
}
}
#endif
}
enum OneOf_SizeOptional: Equatable {
case size(Double)
#if !swift(>=4.1)
static func ==(lhs: PBTextValue.OneOf_SizeOptional, rhs: PBTextValue.OneOf_SizeOptional) -> Bool {
// The use of inline closures is to circumvent an issue where the compiler
// allocates stack space for every case branch when no optimizations are
// enabled. https://github.com/apple/swift-protobuf/issues/1034
switch (lhs, rhs) {
case (.size, .size): return {
guard case .size(let l) = lhs, case .size(let r) = rhs else { preconditionFailure() }
return l == r
}()
}
}
#endif
}
init() {}
fileprivate var _replacedRange: PBIntClosedRange? = nil
}
struct PBTextValueIndexValue {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var value: PBTextValue {
get {return _value ?? PBTextValue()}
set {_value = newValue}
}
/// Returns true if `value` has been explicitly set.
var hasValue: Bool {return self._value != nil}
/// Clears the value of `value`. Subsequent reads from it will return its default value.
mutating func clearValue() {self._value = nil}
var index: Int64 = 0
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
fileprivate var _value: PBTextValue? = nil
}
struct PBSheetValue {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var lines: [PBLine] = []
var planes: [PBPlane] = []
var texts: [PBText] = []
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
}
struct PBInt64Array {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var value: [Int64] = []
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
}
struct PBLineArray {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var value: [PBLine] = []
var unknownFields = SwiftProtobuf.UnknownStorage()
init() {}
}
struct PBPlaneArray {
// SwiftProtobuf.Message conformance is added in an extension below. See the
// `Message` and `Message+*Additions` files in the SwiftProtobuf library for
// methods supported on all messages.
var value: [PBPlane] = []
var unknownFields = SwiftProtobuf.UnknownStorage()