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
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
|
/*
* Copyright (c) Contributors, http://opensimulator.org/
* See CONTRIBUTORS.TXT for a full list of copyright holders.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* * Neither the name of the OpenSimulator Project nor the
* names of its contributors may be used to endorse or promote products
* derived from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
* DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
using pbd = global::Google.ProtocolBuffers.Descriptors;
using pb = global::Google.ProtocolBuffers;
namespace Sirikata.PB {
public class ExternalMessage : PBJ.IMessage {
protected _PBJ_Internal.ExternalMessage super;
public _PBJ_Internal.ExternalMessage _PBJSuper{ get { return super;} }
public ExternalMessage() {
super=new _PBJ_Internal.ExternalMessage();
}
public ExternalMessage(_PBJ_Internal.ExternalMessage reference) {
super=reference;
}
public static ExternalMessage defaultInstance= new ExternalMessage (_PBJ_Internal.ExternalMessage.DefaultInstance);
public static ExternalMessage DefaultInstance{
get {return defaultInstance;}
}
public static pbd.MessageDescriptor Descriptor {
get { return _PBJ_Internal.ExternalMessage.Descriptor; } }
public static class Types {
public class SubMessage : PBJ.IMessage {
protected _PBJ_Internal.ExternalMessage.Types.SubMessage super;
public _PBJ_Internal.ExternalMessage.Types.SubMessage _PBJSuper{ get { return super;} }
public SubMessage() {
super=new _PBJ_Internal.ExternalMessage.Types.SubMessage();
}
public SubMessage(_PBJ_Internal.ExternalMessage.Types.SubMessage reference) {
super=reference;
}
public static SubMessage defaultInstance= new SubMessage (_PBJ_Internal.ExternalMessage.Types.SubMessage.DefaultInstance);
public static SubMessage DefaultInstance{
get {return defaultInstance;}
}
public static pbd.MessageDescriptor Descriptor {
get { return _PBJ_Internal.ExternalMessage.Types.SubMessage.Descriptor; } }
public static class Types {
}
public static bool WithinReservedFieldTagRange(int field_tag) {
return false;
}
public static bool WithinExtensionFieldTagRange(int field_tag) {
return false;
}
public const int SubuuidFieldTag=1;
public bool HasSubuuid{ get {return super.HasSubuuid&&PBJ._PBJ.ValidateUuid(super.Subuuid);} }
public PBJ.UUID Subuuid{ get {
if (HasSubuuid) {
return PBJ._PBJ.CastUuid(super.Subuuid);
} else {
return PBJ._PBJ.CastUuid();
}
}
}
public const int SubvectorFieldTag=2;
public bool HasSubvector{ get {return super.SubvectorCount>=3;} }
public PBJ.Vector3d Subvector{ get {
int index=0;
if (HasSubvector) {
return PBJ._PBJ.CastVector3d(super.GetSubvector(index*3+0),super.GetSubvector(index*3+1),super.GetSubvector(index*3+2));
} else {
return PBJ._PBJ.CastVector3d();
}
}
}
public const int SubdurationFieldTag=3;
public bool HasSubduration{ get {return super.HasSubduration&&PBJ._PBJ.ValidateDuration(super.Subduration);} }
public PBJ.Duration Subduration{ get {
if (HasSubduration) {
return PBJ._PBJ.CastDuration(super.Subduration);
} else {
return PBJ._PBJ.CastDuration();
}
}
}
public const int SubnormalFieldTag=4;
public bool HasSubnormal{ get {return super.SubnormalCount>=2;} }
public PBJ.Vector3f Subnormal{ get {
int index=0;
if (HasSubnormal) {
return PBJ._PBJ.CastNormal(super.GetSubnormal(index*2+0),super.GetSubnormal(index*2+1));
} else {
return PBJ._PBJ.CastNormal();
}
}
}
public override Google.ProtocolBuffers.IMessage _PBJISuper { get { return super; } }
public override PBJ.IMessage.IBuilder WeakCreateBuilderForType() { return new Builder(); }
public static Builder CreateBuilder() { return new Builder(); }
public static Builder CreateBuilder(SubMessage prototype) {
return (Builder)new Builder().MergeFrom(prototype);
}
public static SubMessage ParseFrom(pb::ByteString data) {
return new SubMessage(_PBJ_Internal.ExternalMessage.Types.SubMessage.ParseFrom(data));
}
public static SubMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry er) {
return new SubMessage(_PBJ_Internal.ExternalMessage.Types.SubMessage.ParseFrom(data,er));
}
public static SubMessage ParseFrom(byte[] data) {
return new SubMessage(_PBJ_Internal.ExternalMessage.Types.SubMessage.ParseFrom(data));
}
public static SubMessage ParseFrom(byte[] data, pb::ExtensionRegistry er) {
return new SubMessage(_PBJ_Internal.ExternalMessage.Types.SubMessage.ParseFrom(data,er));
}
public static SubMessage ParseFrom(global::System.IO.Stream data) {
return new SubMessage(_PBJ_Internal.ExternalMessage.Types.SubMessage.ParseFrom(data));
}
public static SubMessage ParseFrom(global::System.IO.Stream data, pb::ExtensionRegistry er) {
return new SubMessage(_PBJ_Internal.ExternalMessage.Types.SubMessage.ParseFrom(data,er));
}
public static SubMessage ParseFrom(pb::CodedInputStream data) {
return new SubMessage(_PBJ_Internal.ExternalMessage.Types.SubMessage.ParseFrom(data));
}
public static SubMessage ParseFrom(pb::CodedInputStream data, pb::ExtensionRegistry er) {
return new SubMessage(_PBJ_Internal.ExternalMessage.Types.SubMessage.ParseFrom(data,er));
}
protected override bool _HasAllPBJFields{ get {
return true
;
} }
public bool IsInitialized { get {
return super.IsInitialized&&_HasAllPBJFields;
} }
public class Builder : global::PBJ.IMessage.IBuilder{
protected override bool _HasAllPBJFields{ get {
return true
;
} }
public bool IsInitialized { get {
return super.IsInitialized&&_HasAllPBJFields;
} }
protected _PBJ_Internal.ExternalMessage.Types.SubMessage.Builder super;
public override Google.ProtocolBuffers.IBuilder _PBJISuper { get { return super; } }
public _PBJ_Internal.ExternalMessage.Types.SubMessage.Builder _PBJSuper{ get { return super;} }
public Builder() {super = new _PBJ_Internal.ExternalMessage.Types.SubMessage.Builder();}
public Builder(_PBJ_Internal.ExternalMessage.Types.SubMessage.Builder other) {
super=other;
}
public Builder Clone() {return new Builder(super.Clone());}
public Builder MergeFrom(SubMessage prototype) { super.MergeFrom(prototype._PBJSuper);return this;}
public Builder Clear() {super.Clear();return this;}
public SubMessage BuildPartial() {return new SubMessage(super.BuildPartial());}
public SubMessage Build() {if (_HasAllPBJFields) return new SubMessage(super.Build());return null;}
public pbd::MessageDescriptor DescriptorForType {
get { return SubMessage.Descriptor; } }
public Builder ClearSubuuid() { super.ClearSubuuid();return this;}
public const int SubuuidFieldTag=1;
public bool HasSubuuid{ get {return super.HasSubuuid&&PBJ._PBJ.ValidateUuid(super.Subuuid);} }
public PBJ.UUID Subuuid{ get {
if (HasSubuuid) {
return PBJ._PBJ.CastUuid(super.Subuuid);
} else {
return PBJ._PBJ.CastUuid();
}
}
set {
super.Subuuid=(PBJ._PBJ.Construct(value));
}
}
public Builder ClearSubvector() { super.ClearSubvector();return this;}
public const int SubvectorFieldTag=2;
public bool HasSubvector{ get {return super.SubvectorCount>=3;} }
public PBJ.Vector3d Subvector{ get {
int index=0;
if (HasSubvector) {
return PBJ._PBJ.CastVector3d(super.GetSubvector(index*3+0),super.GetSubvector(index*3+1),super.GetSubvector(index*3+2));
} else {
return PBJ._PBJ.CastVector3d();
}
}
set {
super.ClearSubvector();
double[] _PBJtempArray=PBJ._PBJ.ConstructVector3d(value);
super.AddSubvector(_PBJtempArray[0]);
super.AddSubvector(_PBJtempArray[1]);
super.AddSubvector(_PBJtempArray[2]);
}
}
public Builder ClearSubduration() { super.ClearSubduration();return this;}
public const int SubdurationFieldTag=3;
public bool HasSubduration{ get {return super.HasSubduration&&PBJ._PBJ.ValidateDuration(super.Subduration);} }
public PBJ.Duration Subduration{ get {
if (HasSubduration) {
return PBJ._PBJ.CastDuration(super.Subduration);
} else {
return PBJ._PBJ.CastDuration();
}
}
set {
super.Subduration=(PBJ._PBJ.Construct(value));
}
}
public Builder ClearSubnormal() { super.ClearSubnormal();return this;}
public const int SubnormalFieldTag=4;
public bool HasSubnormal{ get {return super.SubnormalCount>=2;} }
public PBJ.Vector3f Subnormal{ get {
int index=0;
if (HasSubnormal) {
return PBJ._PBJ.CastNormal(super.GetSubnormal(index*2+0),super.GetSubnormal(index*2+1));
} else {
return PBJ._PBJ.CastNormal();
}
}
set {
super.ClearSubnormal();
float[] _PBJtempArray=PBJ._PBJ.ConstructNormal(value);
super.AddSubnormal(_PBJtempArray[0]);
super.AddSubnormal(_PBJtempArray[1]);
}
}
}
}
}
public static bool WithinReservedFieldTagRange(int field_tag) {
return false;
}
public static bool WithinExtensionFieldTagRange(int field_tag) {
return false;
}
public const int IsTrueFieldTag=40;
public bool HasIsTrue{ get {return super.HasIsTrue&&PBJ._PBJ.ValidateBool(super.IsTrue);} }
public bool IsTrue{ get {
if (HasIsTrue) {
return PBJ._PBJ.CastBool(super.IsTrue);
} else {
return true;
}
}
}
public const int V2FFieldTag=2;
public bool HasV2F{ get {return super.V2FCount>=2;} }
public PBJ.Vector2f V2F{ get {
int index=0;
if (HasV2F) {
return PBJ._PBJ.CastVector2f(super.GetV2F(index*2+0),super.GetV2F(index*2+1));
} else {
return PBJ._PBJ.CastVector2f();
}
}
}
public const int SubMesFieldTag=30;
public bool HasSubMes{ get {return super.HasSubMes;} }
public Types.SubMessage SubMes{ get {
if (HasSubMes) {
return new Types.SubMessage(super.SubMes);
} else {
return new Types.SubMessage();
}
}
}
public const int SubmessersFieldTag=31;
public int SubmessersCount { get { return super.SubmessersCount;} }
public bool HasSubmessers(int index) {return true;}
public Types.SubMessage Submessers(int index) {
return new Types.SubMessage(super.GetSubmessers(index));
}
public const int ShaFieldTag=32;
public bool HasSha{ get {return super.HasSha&&PBJ._PBJ.ValidateSha256(super.Sha);} }
public PBJ.SHA256 Sha{ get {
if (HasSha) {
return PBJ._PBJ.CastSha256(super.Sha);
} else {
return PBJ._PBJ.CastSha256();
}
}
}
public const int ShasFieldTag=33;
public int ShasCount { get { return super.ShasCount;} }
public bool HasShas(int index) {return PBJ._PBJ.ValidateSha256(super.GetShas(index));}
public PBJ.SHA256 Shas(int index) {
return (PBJ.SHA256)PBJ._PBJ.CastSha256(super.GetShas(index));
}
public const int V3FFieldTag=4;
public bool HasV3F{ get {return super.V3FCount>=3;} }
public PBJ.Vector3f V3F{ get {
int index=0;
if (HasV3F) {
return PBJ._PBJ.CastVector3f(super.GetV3F(index*3+0),super.GetV3F(index*3+1),super.GetV3F(index*3+2));
} else {
return PBJ._PBJ.CastVector3f();
}
}
}
public const int V3FfFieldTag=5;
public int V3FfCount { get { return super.V3FfCount/3;} }
public bool HasV3Ff(int index) { return true; }
public PBJ.Vector3f GetV3Ff(int index) {
if (HasV3Ff(index)) {
return PBJ._PBJ.CastVector3f(super.GetV3Ff(index*3+0),super.GetV3Ff(index*3+1),super.GetV3Ff(index*3+2));
} else {
return PBJ._PBJ.CastVector3f();
}
}
public override Google.ProtocolBuffers.IMessage _PBJISuper { get { return super; } }
public override PBJ.IMessage.IBuilder WeakCreateBuilderForType() { return new Builder(); }
public static Builder CreateBuilder() { return new Builder(); }
public static Builder CreateBuilder(ExternalMessage prototype) {
return (Builder)new Builder().MergeFrom(prototype);
}
public static ExternalMessage ParseFrom(pb::ByteString data) {
return new ExternalMessage(_PBJ_Internal.ExternalMessage.ParseFrom(data));
}
public static ExternalMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry er) {
return new ExternalMessage(_PBJ_Internal.ExternalMessage.ParseFrom(data,er));
}
public static ExternalMessage ParseFrom(byte[] data) {
return new ExternalMessage(_PBJ_Internal.ExternalMessage.ParseFrom(data));
}
public static ExternalMessage ParseFrom(byte[] data, pb::ExtensionRegistry er) {
return new ExternalMessage(_PBJ_Internal.ExternalMessage.ParseFrom(data,er));
}
public static ExternalMessage ParseFrom(global::System.IO.Stream data) {
return new ExternalMessage(_PBJ_Internal.ExternalMessage.ParseFrom(data));
}
public static ExternalMessage ParseFrom(global::System.IO.Stream data, pb::ExtensionRegistry er) {
return new ExternalMessage(_PBJ_Internal.ExternalMessage.ParseFrom(data,er));
}
public static ExternalMessage ParseFrom(pb::CodedInputStream data) {
return new ExternalMessage(_PBJ_Internal.ExternalMessage.ParseFrom(data));
}
public static ExternalMessage ParseFrom(pb::CodedInputStream data, pb::ExtensionRegistry er) {
return new ExternalMessage(_PBJ_Internal.ExternalMessage.ParseFrom(data,er));
}
protected override bool _HasAllPBJFields{ get {
return true
&&HasV3F
;
} }
public bool IsInitialized { get {
return super.IsInitialized&&_HasAllPBJFields;
} }
public class Builder : global::PBJ.IMessage.IBuilder{
protected override bool _HasAllPBJFields{ get {
return true
&&HasV3F
;
} }
public bool IsInitialized { get {
return super.IsInitialized&&_HasAllPBJFields;
} }
protected _PBJ_Internal.ExternalMessage.Builder super;
public override Google.ProtocolBuffers.IBuilder _PBJISuper { get { return super; } }
public _PBJ_Internal.ExternalMessage.Builder _PBJSuper{ get { return super;} }
public Builder() {super = new _PBJ_Internal.ExternalMessage.Builder();}
public Builder(_PBJ_Internal.ExternalMessage.Builder other) {
super=other;
}
public Builder Clone() {return new Builder(super.Clone());}
public Builder MergeFrom(ExternalMessage prototype) { super.MergeFrom(prototype._PBJSuper);return this;}
public Builder Clear() {super.Clear();return this;}
public ExternalMessage BuildPartial() {return new ExternalMessage(super.BuildPartial());}
public ExternalMessage Build() {if (_HasAllPBJFields) return new ExternalMessage(super.Build());return null;}
public pbd::MessageDescriptor DescriptorForType {
get { return ExternalMessage.Descriptor; } }
public Builder ClearIsTrue() { super.ClearIsTrue();return this;}
public const int IsTrueFieldTag=40;
public bool HasIsTrue{ get {return super.HasIsTrue&&PBJ._PBJ.ValidateBool(super.IsTrue);} }
public bool IsTrue{ get {
if (HasIsTrue) {
return PBJ._PBJ.CastBool(super.IsTrue);
} else {
return true;
}
}
set {
super.IsTrue=(PBJ._PBJ.Construct(value));
}
}
public Builder ClearV2F() { super.ClearV2F();return this;}
public const int V2FFieldTag=2;
public bool HasV2F{ get {return super.V2FCount>=2;} }
public PBJ.Vector2f V2F{ get {
int index=0;
if (HasV2F) {
return PBJ._PBJ.CastVector2f(super.GetV2F(index*2+0),super.GetV2F(index*2+1));
} else {
return PBJ._PBJ.CastVector2f();
}
}
set {
super.ClearV2F();
float[] _PBJtempArray=PBJ._PBJ.ConstructVector2f(value);
super.AddV2F(_PBJtempArray[0]);
super.AddV2F(_PBJtempArray[1]);
}
}
public Builder ClearSubMes() { super.ClearSubMes();return this;}
public const int SubMesFieldTag=30;
public bool HasSubMes{ get {return super.HasSubMes;} }
public Types.SubMessage SubMes{ get {
if (HasSubMes) {
return new Types.SubMessage(super.SubMes);
} else {
return new Types.SubMessage();
}
}
set {
super.SubMes=value._PBJSuper;
}
}
public Builder ClearSubmessers() { super.ClearSubmessers();return this;}
public Builder SetSubmessers(int index,Types.SubMessage value) {
super.SetSubmessers(index,value._PBJSuper);
return this;
}
public const int SubmessersFieldTag=31;
public int SubmessersCount { get { return super.SubmessersCount;} }
public bool HasSubmessers(int index) {return true;}
public Types.SubMessage Submessers(int index) {
return new Types.SubMessage(super.GetSubmessers(index));
}
public Builder AddSubmessers(Types.SubMessage value) {
super.AddSubmessers(value._PBJSuper);
return this;
}
public Builder ClearSha() { super.ClearSha();return this;}
public const int ShaFieldTag=32;
public bool HasSha{ get {return super.HasSha&&PBJ._PBJ.ValidateSha256(super.Sha);} }
public PBJ.SHA256 Sha{ get {
if (HasSha) {
return PBJ._PBJ.CastSha256(super.Sha);
} else {
return PBJ._PBJ.CastSha256();
}
}
set {
super.Sha=(PBJ._PBJ.Construct(value));
}
}
public Builder ClearShas() { super.ClearShas();return this;}
public Builder SetShas(int index, PBJ.SHA256 value) {
super.SetShas(index,PBJ._PBJ.Construct(value));
return this;
}
public const int ShasFieldTag=33;
public int ShasCount { get { return super.ShasCount;} }
public bool HasShas(int index) {return PBJ._PBJ.ValidateSha256(super.GetShas(index));}
public PBJ.SHA256 Shas(int index) {
return (PBJ.SHA256)PBJ._PBJ.CastSha256(super.GetShas(index));
}
public Builder AddShas(PBJ.SHA256 value) {
super.AddShas(PBJ._PBJ.Construct(value));
return this;
}
public Builder ClearV3F() { super.ClearV3F();return this;}
public const int V3FFieldTag=4;
public bool HasV3F{ get {return super.V3FCount>=3;} }
public PBJ.Vector3f V3F{ get {
int index=0;
if (HasV3F) {
return PBJ._PBJ.CastVector3f(super.GetV3F(index*3+0),super.GetV3F(index*3+1),super.GetV3F(index*3+2));
} else {
return PBJ._PBJ.CastVector3f();
}
}
set {
super.ClearV3F();
float[] _PBJtempArray=PBJ._PBJ.ConstructVector3f(value);
super.AddV3F(_PBJtempArray[0]);
super.AddV3F(_PBJtempArray[1]);
super.AddV3F(_PBJtempArray[2]);
}
}
public Builder ClearV3Ff() { super.ClearV3Ff();return this;}
public const int V3FfFieldTag=5;
public int V3FfCount { get { return super.V3FfCount/3;} }
public bool HasV3Ff(int index) { return true; }
public PBJ.Vector3f GetV3Ff(int index) {
if (HasV3Ff(index)) {
return PBJ._PBJ.CastVector3f(super.GetV3Ff(index*3+0),super.GetV3Ff(index*3+1),super.GetV3Ff(index*3+2));
} else {
return PBJ._PBJ.CastVector3f();
}
}
public Builder AddV3Ff(PBJ.Vector3f value) {
float[] _PBJtempArray=PBJ._PBJ.ConstructVector3f(value);
super.AddV3Ff(_PBJtempArray[0]);
super.AddV3Ff(_PBJtempArray[1]);
super.AddV3Ff(_PBJtempArray[2]);
return this;
}
public Builder SetV3Ff(int index,PBJ.Vector3f value) {
float[] _PBJtempArray=PBJ._PBJ.ConstructVector3f(value);
super.SetV3Ff(index*3+0,_PBJtempArray[0]);
super.SetV3Ff(index*3+1,_PBJtempArray[1]);
super.SetV3Ff(index*3+2,_PBJtempArray[2]);
return this;
}
}
}
}
namespace Sirikata.PB {
public class TestMessage : PBJ.IMessage {
protected _PBJ_Internal.TestMessage super;
public _PBJ_Internal.TestMessage _PBJSuper{ get { return super;} }
public TestMessage() {
super=new _PBJ_Internal.TestMessage();
}
public TestMessage(_PBJ_Internal.TestMessage reference) {
super=reference;
}
public static TestMessage defaultInstance= new TestMessage (_PBJ_Internal.TestMessage.DefaultInstance);
public static TestMessage DefaultInstance{
get {return defaultInstance;}
}
public static pbd.MessageDescriptor Descriptor {
get { return _PBJ_Internal.TestMessage.Descriptor; } }
public static class Types {
public enum Flagsf32 {
UNIVERSA=_PBJ_Internal.TestMessage.Types.Flagsf32.UNIVERSA,
WE=_PBJ_Internal.TestMessage.Types.Flagsf32.WE,
IMAGE=_PBJ_Internal.TestMessage.Types.Flagsf32.IMAGE,
LOCA=_PBJ_Internal.TestMessage.Types.Flagsf32.LOCA
};
public enum Flagsf64 {
UNIVERSAL=_PBJ_Internal.TestMessage.Types.Flagsf64.UNIVERSAL,
WEB=_PBJ_Internal.TestMessage.Types.Flagsf64.WEB,
IMAGES=_PBJ_Internal.TestMessage.Types.Flagsf64.IMAGES,
LOCAL=_PBJ_Internal.TestMessage.Types.Flagsf64.LOCAL
};
public enum Enum32 {
UNIVERSAL1=_PBJ_Internal.TestMessage.Types.Enum32.UNIVERSAL1,
WEB1=_PBJ_Internal.TestMessage.Types.Enum32.WEB1,
IMAGES1=_PBJ_Internal.TestMessage.Types.Enum32.IMAGES1,
LOCAL1=_PBJ_Internal.TestMessage.Types.Enum32.LOCAL1
};
public class SubMessage : PBJ.IMessage {
protected _PBJ_Internal.TestMessage.Types.SubMessage super;
public _PBJ_Internal.TestMessage.Types.SubMessage _PBJSuper{ get { return super;} }
public SubMessage() {
super=new _PBJ_Internal.TestMessage.Types.SubMessage();
}
public SubMessage(_PBJ_Internal.TestMessage.Types.SubMessage reference) {
super=reference;
}
public static SubMessage defaultInstance= new SubMessage (_PBJ_Internal.TestMessage.Types.SubMessage.DefaultInstance);
public static SubMessage DefaultInstance{
get {return defaultInstance;}
}
public static pbd.MessageDescriptor Descriptor {
get { return _PBJ_Internal.TestMessage.Types.SubMessage.Descriptor; } }
public static class Types {
}
public static bool WithinReservedFieldTagRange(int field_tag) {
return false;
}
public static bool WithinExtensionFieldTagRange(int field_tag) {
return false;
}
public const int SubuuidFieldTag=1;
public bool HasSubuuid{ get {return super.HasSubuuid&&PBJ._PBJ.ValidateUuid(super.Subuuid);} }
public PBJ.UUID Subuuid{ get {
if (HasSubuuid) {
return PBJ._PBJ.CastUuid(super.Subuuid);
} else {
return PBJ._PBJ.CastUuid();
}
}
}
public const int SubvectorFieldTag=2;
public bool HasSubvector{ get {return super.SubvectorCount>=3;} }
public PBJ.Vector3d Subvector{ get {
int index=0;
if (HasSubvector) {
return PBJ._PBJ.CastVector3d(super.GetSubvector(index*3+0),super.GetSubvector(index*3+1),super.GetSubvector(index*3+2));
} else {
return PBJ._PBJ.CastVector3d();
}
}
}
public const int SubdurationFieldTag=3;
public bool HasSubduration{ get {return super.HasSubduration&&PBJ._PBJ.ValidateDuration(super.Subduration);} }
public PBJ.Duration Subduration{ get {
if (HasSubduration) {
return PBJ._PBJ.CastDuration(super.Subduration);
} else {
return PBJ._PBJ.CastDuration();
}
}
}
public const int SubnormalFieldTag=4;
public bool HasSubnormal{ get {return super.SubnormalCount>=2;} }
public PBJ.Vector3f Subnormal{ get {
int index=0;
if (HasSubnormal) {
return PBJ._PBJ.CastNormal(super.GetSubnormal(index*2+0),super.GetSubnormal(index*2+1));
} else {
return PBJ._PBJ.CastNormal();
}
}
}
public override Google.ProtocolBuffers.IMessage _PBJISuper { get { return super; } }
public override PBJ.IMessage.IBuilder WeakCreateBuilderForType() { return new Builder(); }
public static Builder CreateBuilder() { return new Builder(); }
public static Builder CreateBuilder(SubMessage prototype) {
return (Builder)new Builder().MergeFrom(prototype);
}
public static SubMessage ParseFrom(pb::ByteString data) {
return new SubMessage(_PBJ_Internal.TestMessage.Types.SubMessage.ParseFrom(data));
}
public static SubMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry er) {
return new SubMessage(_PBJ_Internal.TestMessage.Types.SubMessage.ParseFrom(data,er));
}
public static SubMessage ParseFrom(byte[] data) {
return new SubMessage(_PBJ_Internal.TestMessage.Types.SubMessage.ParseFrom(data));
}
public static SubMessage ParseFrom(byte[] data, pb::ExtensionRegistry er) {
return new SubMessage(_PBJ_Internal.TestMessage.Types.SubMessage.ParseFrom(data,er));
}
public static SubMessage ParseFrom(global::System.IO.Stream data) {
return new SubMessage(_PBJ_Internal.TestMessage.Types.SubMessage.ParseFrom(data));
}
public static SubMessage ParseFrom(global::System.IO.Stream data, pb::ExtensionRegistry er) {
return new SubMessage(_PBJ_Internal.TestMessage.Types.SubMessage.ParseFrom(data,er));
}
public static SubMessage ParseFrom(pb::CodedInputStream data) {
return new SubMessage(_PBJ_Internal.TestMessage.Types.SubMessage.ParseFrom(data));
}
public static SubMessage ParseFrom(pb::CodedInputStream data, pb::ExtensionRegistry er) {
return new SubMessage(_PBJ_Internal.TestMessage.Types.SubMessage.ParseFrom(data,er));
}
protected override bool _HasAllPBJFields{ get {
return true
;
} }
public bool IsInitialized { get {
return super.IsInitialized&&_HasAllPBJFields;
} }
public class Builder : global::PBJ.IMessage.IBuilder{
protected override bool _HasAllPBJFields{ get {
return true
;
} }
public bool IsInitialized { get {
return super.IsInitialized&&_HasAllPBJFields;
} }
protected _PBJ_Internal.TestMessage.Types.SubMessage.Builder super;
public override Google.ProtocolBuffers.IBuilder _PBJISuper { get { return super; } }
public _PBJ_Internal.TestMessage.Types.SubMessage.Builder _PBJSuper{ get { return super;} }
public Builder() {super = new _PBJ_Internal.TestMessage.Types.SubMessage.Builder();}
public Builder(_PBJ_Internal.TestMessage.Types.SubMessage.Builder other) {
super=other;
}
public Builder Clone() {return new Builder(super.Clone());}
public Builder MergeFrom(SubMessage prototype) { super.MergeFrom(prototype._PBJSuper);return this;}
public Builder Clear() {super.Clear();return this;}
public SubMessage BuildPartial() {return new SubMessage(super.BuildPartial());}
public SubMessage Build() {if (_HasAllPBJFields) return new SubMessage(super.Build());return null;}
public pbd::MessageDescriptor DescriptorForType {
get { return SubMessage.Descriptor; } }
public Builder ClearSubuuid() { super.ClearSubuuid();return this;}
public const int SubuuidFieldTag=1;
public bool HasSubuuid{ get {return super.HasSubuuid&&PBJ._PBJ.ValidateUuid(super.Subuuid);} }
public PBJ.UUID Subuuid{ get {
if (HasSubuuid) {
return PBJ._PBJ.CastUuid(super.Subuuid);
} else {
return PBJ._PBJ.CastUuid();
}
}
set {
super.Subuuid=(PBJ._PBJ.Construct(value));
}
}
public Builder ClearSubvector() { super.ClearSubvector();return this;}
public const int SubvectorFieldTag=2;
public bool HasSubvector{ get {return super.SubvectorCount>=3;} }
public PBJ.Vector3d Subvector{ get {
int index=0;
if (HasSubvector) {
return PBJ._PBJ.CastVector3d(super.GetSubvector(index*3+0),super.GetSubvector(index*3+1),super.GetSubvector(index*3+2));
} else {
return PBJ._PBJ.CastVector3d();
}
}
set {
super.ClearSubvector();
double[] _PBJtempArray=PBJ._PBJ.ConstructVector3d(value);
super.AddSubvector(_PBJtempArray[0]);
super.AddSubvector(_PBJtempArray[1]);
super.AddSubvector(_PBJtempArray[2]);
}
}
public Builder ClearSubduration() { super.ClearSubduration();return this;}
public const int SubdurationFieldTag=3;
public bool HasSubduration{ get {return super.HasSubduration&&PBJ._PBJ.ValidateDuration(super.Subduration);} }
public PBJ.Duration Subduration{ get {
if (HasSubduration) {
return PBJ._PBJ.CastDuration(super.Subduration);
} else {
return PBJ._PBJ.CastDuration();
}
}
set {
super.Subduration=(PBJ._PBJ.Construct(value));
}
}
public Builder ClearSubnormal() { super.ClearSubnormal();return this;}
public const int SubnormalFieldTag=4;
public bool HasSubnormal{ get {return super.SubnormalCount>=2;} }
public PBJ.Vector3f Subnormal{ get {
int index=0;
if (HasSubnormal) {
return PBJ._PBJ.CastNormal(super.GetSubnormal(index*2+0),super.GetSubnormal(index*2+1));
} else {
return PBJ._PBJ.CastNormal();
}
}
set {
super.ClearSubnormal();
float[] _PBJtempArray=PBJ._PBJ.ConstructNormal(value);
super.AddSubnormal(_PBJtempArray[0]);
super.AddSubnormal(_PBJtempArray[1]);
}
}
}
}
}
public static bool WithinReservedFieldTagRange(int field_tag) {
return false;
}
public static bool WithinExtensionFieldTagRange(int field_tag) {
return false||(field_tag>=100&&field_tag<=199);
}
public const int XxdFieldTag=20;
public bool HasXxd{ get {return super.HasXxd&&PBJ._PBJ.ValidateDouble(super.Xxd);} }
public double Xxd{ get {
if (HasXxd) {
return PBJ._PBJ.CastDouble(super.Xxd);
} else {
return 10.3;
}
}
}
public const int XxfFieldTag=21;
public bool HasXxf{ get {return super.HasXxf&&PBJ._PBJ.ValidateFloat(super.Xxf);} }
public float Xxf{ get {
if (HasXxf) {
return PBJ._PBJ.CastFloat(super.Xxf);
} else {
return PBJ._PBJ.CastFloat();
}
}
}
public const int Xxu32FieldTag=22;
public bool HasXxu32{ get {return super.HasXxu32&&PBJ._PBJ.ValidateUint32(super.Xxu32);} }
public uint Xxu32{ get {
if (HasXxu32) {
return PBJ._PBJ.CastUint32(super.Xxu32);
} else {
return PBJ._PBJ.CastUint32();
}
}
}
public const int XxsFieldTag=23;
public bool HasXxs{ get {return super.HasXxs&&PBJ._PBJ.ValidateString(super.Xxs);} }
public string Xxs{ get {
if (HasXxs) {
return PBJ._PBJ.CastString(super.Xxs);
} else {
return PBJ._PBJ.CastString();
}
}
}
public const int XxbFieldTag=24;
public bool HasXxb{ get {return super.HasXxb&&PBJ._PBJ.ValidateBytes(super.Xxb);} }
public pb::ByteString Xxb{ get {
if (HasXxb) {
return PBJ._PBJ.CastBytes(super.Xxb);
} else {
return PBJ._PBJ.CastBytes();
}
}
}
public const int XxssFieldTag=25;
public int XxssCount { get { return super.XxssCount;} }
public bool HasXxss(int index) {return PBJ._PBJ.ValidateString(super.GetXxss(index));}
public string Xxss(int index) {
return (string)PBJ._PBJ.CastString(super.GetXxss(index));
}
public const int XxbbFieldTag=26;
public int XxbbCount { get { return super.XxbbCount;} }
public bool HasXxbb(int index) {return PBJ._PBJ.ValidateBytes(super.GetXxbb(index));}
public pb::ByteString Xxbb(int index) {
return (pb::ByteString)PBJ._PBJ.CastBytes(super.GetXxbb(index));
}
public const int XxffFieldTag=27;
public int XxffCount { get { return super.XxffCount;} }
public bool HasXxff(int index) {return PBJ._PBJ.ValidateFloat(super.GetXxff(index));}
public float Xxff(int index) {
return (float)PBJ._PBJ.CastFloat(super.GetXxff(index));
}
public const int XxnnFieldTag=29;
public int XxnnCount { get { return super.XxnnCount/2;} }
public bool HasXxnn(int index) { return true; }
public PBJ.Vector3f GetXxnn(int index) {
if (HasXxnn(index)) {
return PBJ._PBJ.CastNormal(super.GetXxnn(index*2+0),super.GetXxnn(index*2+1));
} else {
return PBJ._PBJ.CastNormal();
}
}
public const int XxfrFieldTag=28;
public bool HasXxfr{ get {return super.HasXxfr&&PBJ._PBJ.ValidateFloat(super.Xxfr);} }
public float Xxfr{ get {
if (HasXxfr) {
return PBJ._PBJ.CastFloat(super.Xxfr);
} else {
return PBJ._PBJ.CastFloat();
}
}
}
public const int NFieldTag=1;
public bool HasN{ get {return super.NCount>=2;} }
public PBJ.Vector3f N{ get {
int index=0;
if (HasN) {
return PBJ._PBJ.CastNormal(super.GetN(index*2+0),super.GetN(index*2+1));
} else {
return PBJ._PBJ.CastNormal();
}
}
}
public const int V2FFieldTag=2;
public bool HasV2F{ get {return super.V2FCount>=2;} }
public PBJ.Vector2f V2F{ get {
int index=0;
if (HasV2F) {
return PBJ._PBJ.CastVector2f(super.GetV2F(index*2+0),super.GetV2F(index*2+1));
} else {
return PBJ._PBJ.CastVector2f();
}
}
}
public const int V2DFieldTag=3;
public bool HasV2D{ get {return super.V2DCount>=2;} }
public PBJ.Vector2d V2D{ get {
int index=0;
if (HasV2D) {
return PBJ._PBJ.CastVector2d(super.GetV2D(index*2+0),super.GetV2D(index*2+1));
} else {
return PBJ._PBJ.CastVector2d();
}
}
}
public const int V3FFieldTag=4;
public bool HasV3F{ get {return super.V3FCount>=3;} }
public PBJ.Vector3f V3F{ get {
int index=0;
if (HasV3F) {
return PBJ._PBJ.CastVector3f(super.GetV3F(index*3+0),super.GetV3F(index*3+1),super.GetV3F(index*3+2));
} else {
return PBJ._PBJ.CastVector3f();
}
}
}
public const int V3DFieldTag=5;
public bool HasV3D{ get {return super.V3DCount>=3;} }
public PBJ.Vector3d V3D{ get {
int index=0;
if (HasV3D) {
return PBJ._PBJ.CastVector3d(super.GetV3D(index*3+0),super.GetV3D(index*3+1),super.GetV3D(index*3+2));
} else {
return PBJ._PBJ.CastVector3d();
}
}
}
public const int V4FFieldTag=6;
public bool HasV4F{ get {return super.V4FCount>=4;} }
public PBJ.Vector4f V4F{ get {
int index=0;
if (HasV4F) {
return PBJ._PBJ.CastVector4f(super.GetV4F(index*4+0),super.GetV4F(index*4+1),super.GetV4F(index*4+2),super.GetV4F(index*4+3));
} else {
return PBJ._PBJ.CastVector4f();
}
}
}
public const int V4DFieldTag=7;
public bool HasV4D{ get {return super.V4DCount>=4;} }
public PBJ.Vector4d V4D{ get {
int index=0;
if (HasV4D) {
return PBJ._PBJ.CastVector4d(super.GetV4D(index*4+0),super.GetV4D(index*4+1),super.GetV4D(index*4+2),super.GetV4D(index*4+3));
} else {
return PBJ._PBJ.CastVector4d();
}
}
}
public const int QFieldTag=8;
public bool HasQ{ get {return super.QCount>=3;} }
public PBJ.Quaternion Q{ get {
int index=0;
if (HasQ) {
return PBJ._PBJ.CastQuaternion(super.GetQ(index*3+0),super.GetQ(index*3+1),super.GetQ(index*3+2));
} else {
return PBJ._PBJ.CastQuaternion();
}
}
}
public const int UFieldTag=9;
public bool HasU{ get {return super.HasU&&PBJ._PBJ.ValidateUuid(super.U);} }
public PBJ.UUID U{ get {
if (HasU) {
return PBJ._PBJ.CastUuid(super.U);
} else {
return PBJ._PBJ.CastUuid();
}
}
}
public const int AFieldTag=10;
public bool HasA{ get {return super.HasA&&PBJ._PBJ.ValidateAngle(super.A);} }
public float A{ get {
if (HasA) {
return PBJ._PBJ.CastAngle(super.A);
} else {
return PBJ._PBJ.CastAngle();
}
}
}
public const int TFieldTag=11;
public bool HasT{ get {return super.HasT&&PBJ._PBJ.ValidateTime(super.T);} }
public PBJ.Time T{ get {
if (HasT) {
return PBJ._PBJ.CastTime(super.T);
} else {
return PBJ._PBJ.CastTime();
}
}
}
public const int DFieldTag=12;
public bool HasD{ get {return super.HasD&&PBJ._PBJ.ValidateDuration(super.D);} }
public PBJ.Duration D{ get {
if (HasD) {
return PBJ._PBJ.CastDuration(super.D);
} else {
return PBJ._PBJ.CastDuration();
}
}
}
public const int F32FieldTag=13;
public bool HasF32 { get {
if (!super.HasF32) return false;
return PBJ._PBJ.ValidateFlags(super.F32,(ulong)Types.Flagsf32.UNIVERSA|(ulong)Types.Flagsf32.WE|(ulong)Types.Flagsf32.IMAGE|(ulong)Types.Flagsf32.LOCA);
} }
public uint F32{ get {
if (HasF32) {
return (uint)PBJ._PBJ.CastFlags(super.F32,(ulong)Types.Flagsf32.UNIVERSA|(ulong)Types.Flagsf32.WE|(ulong)Types.Flagsf32.IMAGE|(ulong)Types.Flagsf32.LOCA);
} else {
return (uint)PBJ._PBJ.CastFlags((ulong)Types.Flagsf32.UNIVERSA|(ulong)Types.Flagsf32.WE|(ulong)Types.Flagsf32.IMAGE|(ulong)Types.Flagsf32.LOCA);
}
}
}
public const int F64FieldTag=14;
public bool HasF64 { get {
if (!super.HasF64) return false;
return PBJ._PBJ.ValidateFlags(super.F64,(ulong)Types.Flagsf64.UNIVERSAL|(ulong)Types.Flagsf64.WEB|(ulong)Types.Flagsf64.IMAGES|(ulong)Types.Flagsf64.LOCAL);
} }
public ulong F64{ get {
if (HasF64) {
return (ulong)PBJ._PBJ.CastFlags(super.F64,(ulong)Types.Flagsf64.UNIVERSAL|(ulong)Types.Flagsf64.WEB|(ulong)Types.Flagsf64.IMAGES|(ulong)Types.Flagsf64.LOCAL);
} else {
return (ulong)PBJ._PBJ.CastFlags((ulong)Types.Flagsf64.UNIVERSAL|(ulong)Types.Flagsf64.WEB|(ulong)Types.Flagsf64.IMAGES|(ulong)Types.Flagsf64.LOCAL);
}
}
}
public const int BsfFieldTag=15;
public bool HasBsf{ get {return super.BsfCount>=4;} }
public PBJ.BoundingSphere3f Bsf{ get {
int index=0;
if (HasBsf) {
return PBJ._PBJ.CastBoundingsphere3f(super.GetBsf(index*4+0),super.GetBsf(index*4+1),super.GetBsf(index*4+2),super.GetBsf(index*4+3));
} else {
return PBJ._PBJ.CastBoundingsphere3f();
}
}
}
public const int BsdFieldTag=16;
public bool HasBsd{ get {return super.BsdCount>=4;} }
public PBJ.BoundingSphere3d Bsd{ get {
int index=0;
if (HasBsd) {
return PBJ._PBJ.CastBoundingsphere3d(super.GetBsd(index*4+0),super.GetBsd(index*4+1),super.GetBsd(index*4+2),super.GetBsd(index*4+3));
} else {
return PBJ._PBJ.CastBoundingsphere3d();
}
}
}
public const int BbfFieldTag=17;
public bool HasBbf{ get {return super.BbfCount>=6;} }
public PBJ.BoundingBox3f3f Bbf{ get {
int index=0;
if (HasBbf) {
return PBJ._PBJ.CastBoundingbox3f3f(super.GetBbf(index*6+0),super.GetBbf(index*6+1),super.GetBbf(index*6+2),super.GetBbf(index*6+3),super.GetBbf(index*6+4),super.GetBbf(index*6+5));
} else {
return PBJ._PBJ.CastBoundingbox3f3f();
}
}
}
public const int BbdFieldTag=18;
public bool HasBbd{ get {return super.BbdCount>=6;} }
public PBJ.BoundingBox3d3f Bbd{ get {
int index=0;
if (HasBbd) {
return PBJ._PBJ.CastBoundingbox3d3f(super.GetBbd(index*6+0),super.GetBbd(index*6+1),super.GetBbd(index*6+2),super.GetBbd(index*6+3),super.GetBbd(index*6+4),super.GetBbd(index*6+5));
} else {
return PBJ._PBJ.CastBoundingbox3d3f();
}
}
}
public const int E32FieldTag=19;
public bool HasE32{ get {return super.HasE32;} }
public Types.Enum32 E32{ get {
if (HasE32) {
return (Types.Enum32)super.E32;
} else {
return new Types.Enum32();
}
}
}
public const int SubmesFieldTag=30;
public bool HasSubmes{ get {return super.HasSubmes;} }
public Types.SubMessage Submes{ get {
if (HasSubmes) {
return new Types.SubMessage(super.Submes);
} else {
return new Types.SubMessage();
}
}
}
public const int SubmessersFieldTag=31;
public int SubmessersCount { get { return super.SubmessersCount;} }
public bool HasSubmessers(int index) {return true;}
public Types.SubMessage Submessers(int index) {
return new Types.SubMessage(super.GetSubmessers(index));
}
public const int ShaFieldTag=32;
public bool HasSha{ get {return super.HasSha&&PBJ._PBJ.ValidateSha256(super.Sha);} }
public PBJ.SHA256 Sha{ get {
if (HasSha) {
return PBJ._PBJ.CastSha256(super.Sha);
} else {
return PBJ._PBJ.CastSha256();
}
}
}
public const int ShasFieldTag=33;
public int ShasCount { get { return super.ShasCount;} }
public bool HasShas(int index) {return PBJ._PBJ.ValidateSha256(super.GetShas(index));}
public PBJ.SHA256 Shas(int index) {
return (PBJ.SHA256)PBJ._PBJ.CastSha256(super.GetShas(index));
}
public const int ExtmesFieldTag=34;
public bool HasExtmes{ get {return super.HasExtmes;} }
public ExternalMessage Extmes{ get {
if (HasExtmes) {
return new ExternalMessage(super.Extmes);
} else {
return new ExternalMessage();
}
}
}
public const int ExtmessersFieldTag=35;
public int ExtmessersCount { get { return super.ExtmessersCount;} }
public bool HasExtmessers(int index) {return true;}
public ExternalMessage Extmessers(int index) {
return new ExternalMessage(super.GetExtmessers(index));
}
public const int ExtmesserFieldTag=36;
public bool HasExtmesser{ get {return super.HasExtmesser;} }
public ExternalMessage Extmesser{ get {
if (HasExtmesser) {
return new ExternalMessage(super.Extmesser);
} else {
return new ExternalMessage();
}
}
}
public override Google.ProtocolBuffers.IMessage _PBJISuper { get { return super; } }
public override PBJ.IMessage.IBuilder WeakCreateBuilderForType() { return new Builder(); }
public static Builder CreateBuilder() { return new Builder(); }
public static Builder CreateBuilder(TestMessage prototype) {
return (Builder)new Builder().MergeFrom(prototype);
}
public static TestMessage ParseFrom(pb::ByteString data) {
return new TestMessage(_PBJ_Internal.TestMessage.ParseFrom(data));
}
public static TestMessage ParseFrom(pb::ByteString data, pb::ExtensionRegistry er) {
return new TestMessage(_PBJ_Internal.TestMessage.ParseFrom(data,er));
}
public static TestMessage ParseFrom(byte[] data) {
return new TestMessage(_PBJ_Internal.TestMessage.ParseFrom(data));
}
public static TestMessage ParseFrom(byte[] data, pb::ExtensionRegistry er) {
return new TestMessage(_PBJ_Internal.TestMessage.ParseFrom(data,er));
}
public static TestMessage ParseFrom(global::System.IO.Stream data) {
return new TestMessage(_PBJ_Internal.TestMessage.ParseFrom(data));
}
public static TestMessage ParseFrom(global::System.IO.Stream data, pb::ExtensionRegistry er) {
return new TestMessage(_PBJ_Internal.TestMessage.ParseFrom(data,er));
}
public static TestMessage ParseFrom(pb::CodedInputStream data) {
return new TestMessage(_PBJ_Internal.TestMessage.ParseFrom(data));
}
public static TestMessage ParseFrom(pb::CodedInputStream data, pb::ExtensionRegistry er) {
return new TestMessage(_PBJ_Internal.TestMessage.ParseFrom(data,er));
}
protected override bool _HasAllPBJFields{ get {
return true
&&HasV3F
;
} }
public bool IsInitialized { get {
return super.IsInitialized&&_HasAllPBJFields;
} }
public class Builder : global::PBJ.IMessage.IBuilder{
protected override bool _HasAllPBJFields{ get {
return true
&&HasV3F
;
} }
public bool IsInitialized { get {
return super.IsInitialized&&_HasAllPBJFields;
} }
protected _PBJ_Internal.TestMessage.Builder super;
public override Google.ProtocolBuffers.IBuilder _PBJISuper { get { return super; } }
public _PBJ_Internal.TestMessage.Builder _PBJSuper{ get { return super;} }
public Builder() {super = new _PBJ_Internal.TestMessage.Builder();}
public Builder(_PBJ_Internal.TestMessage.Builder other) {
super=other;
}
public Builder Clone() {return new Builder(super.Clone());}
public Builder MergeFrom(TestMessage prototype) { super.MergeFrom(prototype._PBJSuper);return this;}
public Builder Clear() {super.Clear();return this;}
public TestMessage BuildPartial() {return new TestMessage(super.BuildPartial());}
public TestMessage Build() {if (_HasAllPBJFields) return new TestMessage(super.Build());return null;}
public pbd::MessageDescriptor DescriptorForType {
get { return TestMessage.Descriptor; } }
public Builder ClearXxd() { super.ClearXxd();return this;}
public const int XxdFieldTag=20;
public bool HasXxd{ get {return super.HasXxd&&PBJ._PBJ.ValidateDouble(super.Xxd);} }
public double Xxd{ get {
if (HasXxd) {
return PBJ._PBJ.CastDouble(super.Xxd);
} else {
return 10.3;
}
}
set {
super.Xxd=(PBJ._PBJ.Construct(value));
}
}
public Builder ClearXxf() { super.ClearXxf();return this;}
public const int XxfFieldTag=21;
public bool HasXxf{ get {return super.HasXxf&&PBJ._PBJ.ValidateFloat(super.Xxf);} }
public float Xxf{ get {
if (HasXxf) {
return PBJ._PBJ.CastFloat(super.Xxf);
} else {
return PBJ._PBJ.CastFloat();
}
}
set {
super.Xxf=(PBJ._PBJ.Construct(value));
}
}
public Builder ClearXxu32() { super.ClearXxu32();return this;}
public const int Xxu32FieldTag=22;
public bool HasXxu32{ get {return super.HasXxu32&&PBJ._PBJ.ValidateUint32(super.Xxu32);} }
public uint Xxu32{ get {
if (HasXxu32) {
return PBJ._PBJ.CastUint32(super.Xxu32);
} else {
return PBJ._PBJ.CastUint32();
}
}
set {
super.Xxu32=(PBJ._PBJ.Construct(value));
}
}
public Builder ClearXxs() { super.ClearXxs();return this;}
public const int XxsFieldTag=23;
public bool HasXxs{ get {return super.HasXxs&&PBJ._PBJ.ValidateString(super.Xxs);} }
public string Xxs{ get {
if (HasXxs) {
return PBJ._PBJ.CastString(super.Xxs);
} else {
return PBJ._PBJ.CastString();
}
}
set {
super.Xxs=(PBJ._PBJ.Construct(value));
}
}
public Builder ClearXxb() { super.ClearXxb();return this;}
public const int XxbFieldTag=24;
public bool HasXxb{ get {return super.HasXxb&&PBJ._PBJ.ValidateBytes(super.Xxb);} }
public pb::ByteString Xxb{ get {
if (HasXxb) {
return PBJ._PBJ.CastBytes(super.Xxb);
} else {
return PBJ._PBJ.CastBytes();
}
}
set {
super.Xxb=(PBJ._PBJ.Construct(value));
}
}
public Builder ClearXxss() { super.ClearXxss();return this;}
public Builder SetXxss(int index, string value) {
super.SetXxss(index,PBJ._PBJ.Construct(value));
return this;
}
public const int XxssFieldTag=25;
public int XxssCount { get { return super.XxssCount;} }
public bool HasXxss(int index) {return PBJ._PBJ.ValidateString(super.GetXxss(index));}
public string Xxss(int index) {
return (string)PBJ._PBJ.CastString(super.GetXxss(index));
}
public Builder AddXxss(string value) {
super.AddXxss(PBJ._PBJ.Construct(value));
return this;
}
public Builder ClearXxbb() { super.ClearXxbb();return this;}
public Builder SetXxbb(int index, pb::ByteString value) {
super.SetXxbb(index,PBJ._PBJ.Construct(value));
return this;
}
public const int XxbbFieldTag=26;
public int XxbbCount { get { return super.XxbbCount;} }
public bool HasXxbb(int index) {return PBJ._PBJ.ValidateBytes(super.GetXxbb(index));}
public pb::ByteString Xxbb(int index) {
return (pb::ByteString)PBJ._PBJ.CastBytes(super.GetXxbb(index));
}
public Builder AddXxbb(pb::ByteString value) {
super.AddXxbb(PBJ._PBJ.Construct(value));
return this;
}
public Builder ClearXxff() { super.ClearXxff();return this;}
public Builder SetXxff(int index, float value) {
super.SetXxff(index,PBJ._PBJ.Construct(value));
return this;
}
public const int XxffFieldTag=27;
public int XxffCount { get { return super.XxffCount;} }
public bool HasXxff(int index) {return PBJ._PBJ.ValidateFloat(super.GetXxff(index));}
public float Xxff(int index) {
return (float)PBJ._PBJ.CastFloat(super.GetXxff(index));
}
public Builder AddXxff(float value) {
super.AddXxff(PBJ._PBJ.Construct(value));
return this;
}
public Builder ClearXxnn() { super.ClearXxnn();return this;}
public const int XxnnFieldTag=29;
public int XxnnCount { get { return super.XxnnCount/2;} }
public bool HasXxnn(int index) { return true; }
public PBJ.Vector3f GetXxnn(int index) {
if (HasXxnn(index)) {
return PBJ._PBJ.CastNormal(super.GetXxnn(index*2+0),super.GetXxnn(index*2+1));
} else {
return PBJ._PBJ.CastNormal();
}
}
public Builder AddXxnn(PBJ.Vector3f value) {
float[] _PBJtempArray=PBJ._PBJ.ConstructNormal(value);
super.AddXxnn(_PBJtempArray[0]);
super.AddXxnn(_PBJtempArray[1]);
return this;
}
public Builder SetXxnn(int index,PBJ.Vector3f value) {
float[] _PBJtempArray=PBJ._PBJ.ConstructNormal(value);
super.SetXxnn(index*2+0,_PBJtempArray[0]);
super.SetXxnn(index*2+1,_PBJtempArray[1]);
return this;
}
public Builder ClearXxfr() { super.ClearXxfr();return this;}
public const int XxfrFieldTag=28;
public bool HasXxfr{ get {return super.HasXxfr&&PBJ._PBJ.ValidateFloat(super.Xxfr);} }
public float Xxfr{ get {
if (HasXxfr) {
return PBJ._PBJ.CastFloat(super.Xxfr);
} else {
return PBJ._PBJ.CastFloat();
}
}
set {
super.Xxfr=(PBJ._PBJ.Construct(value));
}
}
public Builder ClearN() { super.ClearN();return this;}
public const int NFieldTag=1;
public bool HasN{ get {return super.NCount>=2;} }
public PBJ.Vector3f N{ get {
int index=0;
if (HasN) {
return PBJ._PBJ.CastNormal(super.GetN(index*2+0),super.GetN(index*2+1));
} else {
return PBJ._PBJ.CastNormal();
}
}
set {
super.ClearN();
float[] _PBJtempArray=PBJ._PBJ.ConstructNormal(value);
super.AddN(_PBJtempArray[0]);
super.AddN(_PBJtempArray[1]);
}
}
public Builder ClearV2F() { super.ClearV2F();return this;}
public const int V2FFieldTag=2;
public bool HasV2F{ get {return super.V2FCount>=2;} }
public PBJ.Vector2f V2F{ get {
int index=0;
if (HasV2F) {
return PBJ._PBJ.CastVector2f(super.GetV2F(index*2+0),super.GetV2F(index*2+1));
} else {
return PBJ._PBJ.CastVector2f();
}
}
set {
super.ClearV2F();
float[] _PBJtempArray=PBJ._PBJ.ConstructVector2f(value);
super.AddV2F(_PBJtempArray[0]);
super.AddV2F(_PBJtempArray[1]);
}
}
public Builder ClearV2D() { super.ClearV2D();return this;}
public const int V2DFieldTag=3;
public bool HasV2D{ get {return super.V2DCount>=2;} }
public PBJ.Vector2d V2D{ get {
int index=0;
if (HasV2D) {
return PBJ._PBJ.CastVector2d(super.GetV2D(index*2+0),super.GetV2D(index*2+1));
} else {
return PBJ._PBJ.CastVector2d();
}
}
set {
super.ClearV2D();
double[] _PBJtempArray=PBJ._PBJ.ConstructVector2d(value);
super.AddV2D(_PBJtempArray[0]);
super.AddV2D(_PBJtempArray[1]);
}
}
public Builder ClearV3F() { super.ClearV3F();return this;}
public const int V3FFieldTag=4;
public bool HasV3F{ get {return super.V3FCount>=3;} }
public PBJ.Vector3f V3F{ get {
int index=0;
if (HasV3F) {
return PBJ._PBJ.CastVector3f(super.GetV3F(index*3+0),super.GetV3F(index*3+1),super.GetV3F(index*3+2));
} else {
return PBJ._PBJ.CastVector3f();
}
}
set {
super.ClearV3F();
float[] _PBJtempArray=PBJ._PBJ.ConstructVector3f(value);
super.AddV3F(_PBJtempArray[0]);
super.AddV3F(_PBJtempArray[1]);
super.AddV3F(_PBJtempArray[2]);
}
}
public Builder ClearV3D() { super.ClearV3D();return this;}
public const int V3DFieldTag=5;
public bool HasV3D{ get {return super.V3DCount>=3;} }
public PBJ.Vector3d V3D{ get {
int index=0;
if (HasV3D) {
return PBJ._PBJ.CastVector3d(super.GetV3D(index*3+0),super.GetV3D(index*3+1),super.GetV3D(index*3+2));
} else {
return PBJ._PBJ.CastVector3d();
}
}
set {
super.ClearV3D();
double[] _PBJtempArray=PBJ._PBJ.ConstructVector3d(value);
super.AddV3D(_PBJtempArray[0]);
super.AddV3D(_PBJtempArray[1]);
super.AddV3D(_PBJtempArray[2]);
}
}
public Builder ClearV4F() { super.ClearV4F();return this;}
public const int V4FFieldTag=6;
public bool HasV4F{ get {return super.V4FCount>=4;} }
public PBJ.Vector4f V4F{ get {
int index=0;
if (HasV4F) {
return PBJ._PBJ.CastVector4f(super.GetV4F(index*4+0),super.GetV4F(index*4+1),super.GetV4F(index*4+2),super.GetV4F(index*4+3));
} else {
return PBJ._PBJ.CastVector4f();
}
}
set {
super.ClearV4F();
float[] _PBJtempArray=PBJ._PBJ.ConstructVector4f(value);
super.AddV4F(_PBJtempArray[0]);
super.AddV4F(_PBJtempArray[1]);
super.AddV4F(_PBJtempArray[2]);
super.AddV4F(_PBJtempArray[3]);
}
}
public Builder ClearV4D() { super.ClearV4D();return this;}
public const int V4DFieldTag=7;
public bool HasV4D{ get {return super.V4DCount>=4;} }
public PBJ.Vector4d V4D{ get {
int index=0;
if (HasV4D) {
return PBJ._PBJ.CastVector4d(super.GetV4D(index*4+0),super.GetV4D(index*4+1),super.GetV4D(index*4+2),super.GetV4D(index*4+3));
} else {
return PBJ._PBJ.CastVector4d();
}
}
set {
super.ClearV4D();
double[] _PBJtempArray=PBJ._PBJ.ConstructVector4d(value);
super.AddV4D(_PBJtempArray[0]);
super.AddV4D(_PBJtempArray[1]);
super.AddV4D(_PBJtempArray[2]);
super.AddV4D(_PBJtempArray[3]);
}
}
public Builder ClearQ() { super.ClearQ();return this;}
public const int QFieldTag=8;
public bool HasQ{ get {return super.QCount>=3;} }
public PBJ.Quaternion Q{ get {
int index=0;
if (HasQ) {
return PBJ._PBJ.CastQuaternion(super.GetQ(index*3+0),super.GetQ(index*3+1),super.GetQ(index*3+2));
} else {
return PBJ._PBJ.CastQuaternion();
}
}
set {
super.ClearQ();
float[] _PBJtempArray=PBJ._PBJ.ConstructQuaternion(value);
super.AddQ(_PBJtempArray[0]);
super.AddQ(_PBJtempArray[1]);
super.AddQ(_PBJtempArray[2]);
}
}
public Builder ClearU() { super.ClearU();return this;}
public const int UFieldTag=9;
public bool HasU{ get {return super.HasU&&PBJ._PBJ.ValidateUuid(super.U);} }
public PBJ.UUID U{ get {
if (HasU) {
return PBJ._PBJ.CastUuid(super.U);
} else {
return PBJ._PBJ.CastUuid();
}
}
set {
super.U=(PBJ._PBJ.Construct(value));
}
}
public Builder ClearA() { super.ClearA();return this;}
public const int AFieldTag=10;
public bool HasA{ get {return super.HasA&&PBJ._PBJ.ValidateAngle(super.A);} }
public float A{ get {
if (HasA) {
return PBJ._PBJ.CastAngle(super.A);
} else {
return PBJ._PBJ.CastAngle();
}
}
set {
super.A=(PBJ._PBJ.Construct(value));
}
}
public Builder ClearT() { super.ClearT();return this;}
public const int TFieldTag=11;
public bool HasT{ get {return super.HasT&&PBJ._PBJ.ValidateTime(super.T);} }
public PBJ.Time T{ get {
if (HasT) {
return PBJ._PBJ.CastTime(super.T);
} else {
return PBJ._PBJ.CastTime();
}
}
set {
super.T=(PBJ._PBJ.Construct(value));
}
}
public Builder ClearD() { super.ClearD();return this;}
public const int DFieldTag=12;
public bool HasD{ get {return super.HasD&&PBJ._PBJ.ValidateDuration(super.D);} }
public PBJ.Duration D{ get {
if (HasD) {
return PBJ._PBJ.CastDuration(super.D);
} else {
return PBJ._PBJ.CastDuration();
}
}
set {
super.D=(PBJ._PBJ.Construct(value));
}
}
public Builder ClearF32() { super.ClearF32();return this;}
public const int F32FieldTag=13;
public bool HasF32 { get {
if (!super.HasF32) return false;
return PBJ._PBJ.ValidateFlags(super.F32,(ulong)Types.Flagsf32.UNIVERSA|(ulong)Types.Flagsf32.WE|(ulong)Types.Flagsf32.IMAGE|(ulong)Types.Flagsf32.LOCA);
} }
public uint F32{ get {
if (HasF32) {
return (uint)PBJ._PBJ.CastFlags(super.F32,(ulong)Types.Flagsf32.UNIVERSA|(ulong)Types.Flagsf32.WE|(ulong)Types.Flagsf32.IMAGE|(ulong)Types.Flagsf32.LOCA);
} else {
return (uint)PBJ._PBJ.CastFlags((ulong)Types.Flagsf32.UNIVERSA|(ulong)Types.Flagsf32.WE|(ulong)Types.Flagsf32.IMAGE|(ulong)Types.Flagsf32.LOCA);
}
}
set {
super.F32=((value));
}
}
public Builder ClearF64() { super.ClearF64();return this;}
public const int F64FieldTag=14;
public bool HasF64 { get {
if (!super.HasF64) return false;
return PBJ._PBJ.ValidateFlags(super.F64,(ulong)Types.Flagsf64.UNIVERSAL|(ulong)Types.Flagsf64.WEB|(ulong)Types.Flagsf64.IMAGES|(ulong)Types.Flagsf64.LOCAL);
} }
public ulong F64{ get {
if (HasF64) {
return (ulong)PBJ._PBJ.CastFlags(super.F64,(ulong)Types.Flagsf64.UNIVERSAL|(ulong)Types.Flagsf64.WEB|(ulong)Types.Flagsf64.IMAGES|(ulong)Types.Flagsf64.LOCAL);
} else {
return (ulong)PBJ._PBJ.CastFlags((ulong)Types.Flagsf64.UNIVERSAL|(ulong)Types.Flagsf64.WEB|(ulong)Types.Flagsf64.IMAGES|(ulong)Types.Flagsf64.LOCAL);
}
}
set {
super.F64=((value));
}
}
public Builder ClearBsf() { super.ClearBsf();return this;}
public const int BsfFieldTag=15;
public bool HasBsf{ get {return super.BsfCount>=4;} }
public PBJ.BoundingSphere3f Bsf{ get {
int index=0;
if (HasBsf) {
return PBJ._PBJ.CastBoundingsphere3f(super.GetBsf(index*4+0),super.GetBsf(index*4+1),super.GetBsf(index*4+2),super.GetBsf(index*4+3));
} else {
return PBJ._PBJ.CastBoundingsphere3f();
}
}
set {
super.ClearBsf();
float[] _PBJtempArray=PBJ._PBJ.ConstructBoundingsphere3f(value);
super.AddBsf(_PBJtempArray[0]);
super.AddBsf(_PBJtempArray[1]);
super.AddBsf(_PBJtempArray[2]);
super.AddBsf(_PBJtempArray[3]);
}
}
public Builder ClearBsd() { super.ClearBsd();return this;}
public const int BsdFieldTag=16;
public bool HasBsd{ get {return super.BsdCount>=4;} }
public PBJ.BoundingSphere3d Bsd{ get {
int index=0;
if (HasBsd) {
return PBJ._PBJ.CastBoundingsphere3d(super.GetBsd(index*4+0),super.GetBsd(index*4+1),super.GetBsd(index*4+2),super.GetBsd(index*4+3));
} else {
return PBJ._PBJ.CastBoundingsphere3d();
}
}
set {
super.ClearBsd();
double[] _PBJtempArray=PBJ._PBJ.ConstructBoundingsphere3d(value);
super.AddBsd(_PBJtempArray[0]);
super.AddBsd(_PBJtempArray[1]);
super.AddBsd(_PBJtempArray[2]);
super.AddBsd(_PBJtempArray[3]);
}
}
public Builder ClearBbf() { super.ClearBbf();return this;}
public const int BbfFieldTag=17;
public bool HasBbf{ get {return super.BbfCount>=6;} }
public PBJ.BoundingBox3f3f Bbf{ get {
int index=0;
if (HasBbf) {
return PBJ._PBJ.CastBoundingbox3f3f(super.GetBbf(index*6+0),super.GetBbf(index*6+1),super.GetBbf(index*6+2),super.GetBbf(index*6+3),super.GetBbf(index*6+4),super.GetBbf(index*6+5));
} else {
return PBJ._PBJ.CastBoundingbox3f3f();
}
}
set {
super.ClearBbf();
float[] _PBJtempArray=PBJ._PBJ.ConstructBoundingbox3f3f(value);
super.AddBbf(_PBJtempArray[0]);
super.AddBbf(_PBJtempArray[1]);
super.AddBbf(_PBJtempArray[2]);
super.AddBbf(_PBJtempArray[3]);
super.AddBbf(_PBJtempArray[4]);
super.AddBbf(_PBJtempArray[5]);
}
}
public Builder ClearBbd() { super.ClearBbd();return this;}
public const int BbdFieldTag=18;
public bool HasBbd{ get {return super.BbdCount>=6;} }
public PBJ.BoundingBox3d3f Bbd{ get {
int index=0;
if (HasBbd) {
return PBJ._PBJ.CastBoundingbox3d3f(super.GetBbd(index*6+0),super.GetBbd(index*6+1),super.GetBbd(index*6+2),super.GetBbd(index*6+3),super.GetBbd(index*6+4),super.GetBbd(index*6+5));
} else {
return PBJ._PBJ.CastBoundingbox3d3f();
}
}
set {
super.ClearBbd();
double[] _PBJtempArray=PBJ._PBJ.ConstructBoundingbox3d3f(value);
super.AddBbd(_PBJtempArray[0]);
super.AddBbd(_PBJtempArray[1]);
super.AddBbd(_PBJtempArray[2]);
super.AddBbd(_PBJtempArray[3]);
super.AddBbd(_PBJtempArray[4]);
super.AddBbd(_PBJtempArray[5]);
}
}
public Builder ClearE32() { super.ClearE32();return this;}
public const int E32FieldTag=19;
public bool HasE32{ get {return super.HasE32;} }
public Types.Enum32 E32{ get {
if (HasE32) {
return (Types.Enum32)super.E32;
} else {
return new Types.Enum32();
}
}
set {
super.E32=((_PBJ_Internal.TestMessage.Types.Enum32)value);
}
}
public Builder ClearSubmes() { super.ClearSubmes();return this;}
public const int SubmesFieldTag=30;
public bool HasSubmes{ get {return super.HasSubmes;} }
public Types.SubMessage Submes{ get {
if (HasSubmes) {
return new Types.SubMessage(super.Submes);
} else {
return new Types.SubMessage();
}
}
set {
super.Submes=value._PBJSuper;
}
}
public Builder ClearSubmessers() { super.ClearSubmessers();return this;}
public Builder SetSubmessers(int index,Types.SubMessage value) {
super.SetSubmessers(index,value._PBJSuper);
return this;
}
public const int SubmessersFieldTag=31;
public int SubmessersCount { get { return super.SubmessersCount;} }
public bool HasSubmessers(int index) {return true;}
public Types.SubMessage Submessers(int index) {
return new Types.SubMessage(super.GetSubmessers(index));
}
public Builder AddSubmessers(Types.SubMessage value) {
super.AddSubmessers(value._PBJSuper);
return this;
}
public Builder ClearSha() { super.ClearSha();return this;}
public const int ShaFieldTag=32;
public bool HasSha{ get {return super.HasSha&&PBJ._PBJ.ValidateSha256(super.Sha);} }
public PBJ.SHA256 Sha{ get {
if (HasSha) {
return PBJ._PBJ.CastSha256(super.Sha);
} else {
return PBJ._PBJ.CastSha256();
}
}
set {
super.Sha=(PBJ._PBJ.Construct(value));
}
}
public Builder ClearShas() { super.ClearShas();return this;}
public Builder SetShas(int index, PBJ.SHA256 value) {
super.SetShas(index,PBJ._PBJ.Construct(value));
return this;
}
public const int ShasFieldTag=33;
public int ShasCount { get { return super.ShasCount;} }
public bool HasShas(int index) {return PBJ._PBJ.ValidateSha256(super.GetShas(index));}
public PBJ.SHA256 Shas(int index) {
return (PBJ.SHA256)PBJ._PBJ.CastSha256(super.GetShas(index));
}
public Builder AddShas(PBJ.SHA256 value) {
super.AddShas(PBJ._PBJ.Construct(value));
return this;
}
public Builder ClearExtmes() { super.ClearExtmes();return this;}
public const int ExtmesFieldTag=34;
public bool HasExtmes{ get {return super.HasExtmes;} }
public ExternalMessage Extmes{ get {
if (HasExtmes) {
return new ExternalMessage(super.Extmes);
} else {
return new ExternalMessage();
}
}
set {
super.Extmes=value._PBJSuper;
}
}
public Builder ClearExtmessers() { super.ClearExtmessers();return this;}
public Builder SetExtmessers(int index,ExternalMessage value) {
super.SetExtmessers(index,value._PBJSuper);
return this;
}
public const int ExtmessersFieldTag=35;
public int ExtmessersCount { get { return super.ExtmessersCount;} }
public bool HasExtmessers(int index) {return true;}
public ExternalMessage Extmessers(int index) {
return new ExternalMessage(super.GetExtmessers(index));
}
public Builder AddExtmessers(ExternalMessage value) {
super.AddExtmessers(value._PBJSuper);
return this;
}
public Builder ClearExtmesser() { super.ClearExtmesser();return this;}
public const int ExtmesserFieldTag=36;
public bool HasExtmesser{ get {return super.HasExtmesser;} }
public ExternalMessage Extmesser{ get {
if (HasExtmesser) {
return new ExternalMessage(super.Extmesser);
} else {
return new ExternalMessage();
}
}
set {
super.Extmesser=value._PBJSuper;
}
}
}
}
}
namespace Sirikata.PB {
}
|