protobufjs 3.6.0 → 3.8.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/proto2js +16 -4
- package/bower.json +1 -1
- package/dist/ProtoBuf.js +645 -441
- package/dist/ProtoBuf.min.js +96 -96
- package/dist/ProtoBuf.min.js.gz +0 -0
- package/dist/ProtoBuf.min.map +2 -2
- package/dist/ProtoBuf.noparse.js +520 -357
- package/dist/ProtoBuf.noparse.min.js +68 -66
- package/dist/ProtoBuf.noparse.min.js.gz +0 -0
- package/dist/ProtoBuf.noparse.min.map +3 -3
- package/docs/ProtoBuf.Builder.Message.html +673 -135
- package/docs/ProtoBuf.Builder.Service.html +58 -19
- package/docs/ProtoBuf.Builder.html +374 -46
- package/docs/ProtoBuf.DotProto.Parser.html +58 -19
- package/docs/ProtoBuf.DotProto.Tokenizer.html +104 -19
- package/docs/ProtoBuf.DotProto.html +16 -10
- package/docs/ProtoBuf.Reflect.Enum.Value.html +207 -33
- package/docs/ProtoBuf.Reflect.Enum.html +318 -56
- package/docs/ProtoBuf.Reflect.Extension.html +53 -13
- package/docs/ProtoBuf.Reflect.Message.ExtensionField.html +450 -68
- package/docs/ProtoBuf.Reflect.Message.Field.html +454 -51
- package/docs/ProtoBuf.Reflect.Message.OneOf.html +1044 -0
- package/docs/ProtoBuf.Reflect.Message.html +378 -64
- package/docs/ProtoBuf.Reflect.Namespace.html +333 -51
- package/docs/ProtoBuf.Reflect.Service.Method.html +228 -35
- package/docs/ProtoBuf.Reflect.Service.RPCMethod.html +262 -41
- package/docs/ProtoBuf.Reflect.Service.html +318 -56
- package/docs/ProtoBuf.Reflect.T.html +210 -25
- package/docs/ProtoBuf.Reflect.html +17 -11
- package/docs/ProtoBuf.Util.html +59 -13
- package/docs/ProtoBuf.html +235 -67
- package/docs/ProtoBuf.js.html +648 -443
- package/docs/index.html +4 -2
- package/docs/styles/jsdoc-default.css +2 -2
- package/examples/protoify/.npmignore +2 -0
- package/examples/protoify/README.md +28 -0
- package/examples/protoify/index.js +147 -0
- package/examples/protoify/json.js +123 -0
- package/examples/protoify/json.json +123 -0
- package/examples/protoify/json.proto +30 -0
- package/examples/protoify/package.json +15 -0
- package/examples/protoify/test.js +56 -0
- package/examples/websocket/README.md +1 -0
- package/examples/websocket/package.json +1 -1
- package/externs/ProtoBuf.js +922 -922
- package/package.json +3 -3
- package/scripts/build.js +58 -58
- package/src/ProtoBuf/Builder/Message.js +107 -77
- package/src/ProtoBuf/Builder/Service.js +8 -5
- package/src/ProtoBuf/Builder.js +71 -37
- package/src/ProtoBuf/DotProto/Parser.js +108 -72
- package/src/ProtoBuf/DotProto/Tokenizer.js +17 -11
- package/src/ProtoBuf/Lang.js +1 -1
- package/src/ProtoBuf/Reflect/Enum/Value.js +3 -2
- package/src/ProtoBuf/Reflect/Enum.js +9 -5
- package/src/ProtoBuf/Reflect/Extension.js +4 -3
- package/src/ProtoBuf/Reflect/Message/ExtensionField.js +4 -3
- package/src/ProtoBuf/Reflect/Message/Field.js +45 -26
- package/src/ProtoBuf/Reflect/Message/OneOf.js +19 -0
- package/src/ProtoBuf/Reflect/Message.js +36 -19
- package/src/ProtoBuf/Reflect/Namespace.js +19 -15
- package/src/ProtoBuf/Reflect/Service/Method.js +9 -5
- package/src/ProtoBuf/Reflect/Service/RPCMethod.js +3 -2
- package/src/ProtoBuf/Reflect/Service.js +9 -5
- package/src/ProtoBuf/Reflect/T.js +20 -6
- package/src/ProtoBuf/Reflect.js +9 -0
- package/src/ProtoBuf/Util.js +132 -132
- package/src/ProtoBuf.js +15 -17
- package/src/google/protobuf/descriptor.json +33 -13
- package/tests/bench.txt +373 -373
- package/tests/complex.json +8 -4
- package/tests/custom-options.json +169 -169
- package/tests/extend.json +71 -71
- package/tests/nodeunit-browser/nodeunit.css +70 -70
- package/tests/nodeunit-browser/nodeunit.js +2108 -2108
- package/tests/oneof.proto +6 -0
- package/tests/options.json +32 -32
- package/tests/options.proto +2 -0
- package/tests/proto2js/Bar.json +46 -46
- package/tests/suite.js +83 -12
- package/.idea/.name +0 -1
- package/.idea/ProtoBuf.iml +0 -9
- package/.idea/dictionaries/Daniel.xml +0 -7
- package/.idea/encodings.xml +0 -5
- package/.idea/misc.xml +0 -5
- package/.idea/modules.xml +0 -9
- package/.idea/scopes/scope_settings.xml +0 -5
- package/.idea/vcs.xml +0 -7
- package/.idea/workspace.xml +0 -551
- package/NOTICE +0 -2
- package/sandbox/issue146/MyOptions.proto +0 -28
- package/sandbox/issue146/Sample.proto +0 -21
- package/sandbox/issue146/main.js +0 -3
- package/sandbox/issue147/enum.proto +0 -8
- package/sandbox/issue147/main.js +0 -3
- package/sandbox/issue42/innerextend.proto +0 -18
- package/sandbox/issue42/main.js +0 -8
- package/sandbox/issue42/outerextend.proto +0 -17
- package/v8.log +0 -3828
package/docs/ProtoBuf.html
CHANGED
|
@@ -23,26 +23,34 @@
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
|
+
|
|
26
27
|
<section>
|
|
27
28
|
|
|
28
29
|
<header>
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
30
|
+
|
|
31
|
+
<h2>
|
|
32
|
+
ProtoBuf
|
|
33
|
+
</h2>
|
|
34
|
+
|
|
32
35
|
|
|
33
36
|
</header>
|
|
34
37
|
|
|
35
38
|
<article>
|
|
36
39
|
<div class="container-overview">
|
|
37
40
|
|
|
38
|
-
|
|
39
|
-
|
|
40
41
|
|
|
41
42
|
<div class="description"><p>The ProtoBuf namespace.</p></div>
|
|
42
43
|
|
|
43
44
|
|
|
44
45
|
|
|
46
|
+
|
|
47
|
+
|
|
45
48
|
<dl class="details">
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
46
54
|
|
|
47
55
|
|
|
48
56
|
|
|
@@ -85,8 +93,6 @@
|
|
|
85
93
|
|
|
86
94
|
|
|
87
95
|
|
|
88
|
-
|
|
89
|
-
|
|
90
96
|
<h3 class="subsection-title">Classes</h3>
|
|
91
97
|
|
|
92
98
|
<dl>
|
|
@@ -101,13 +107,13 @@
|
|
|
101
107
|
<h3 class="subsection-title">Namespaces</h3>
|
|
102
108
|
|
|
103
109
|
<dl>
|
|
104
|
-
<dt><a href="
|
|
110
|
+
<dt><a href="ProtoBuf.DotProto.html">DotProto</a></dt>
|
|
105
111
|
<dd></dd>
|
|
106
112
|
|
|
107
|
-
<dt><a href="
|
|
113
|
+
<dt><a href="ProtoBuf.Reflect.html">Reflect</a></dt>
|
|
108
114
|
<dd></dd>
|
|
109
115
|
|
|
110
|
-
<dt><a href="
|
|
116
|
+
<dt><a href="ProtoBuf.Util.html">Util</a></dt>
|
|
111
117
|
<dd></dd>
|
|
112
118
|
</dl>
|
|
113
119
|
|
|
@@ -138,7 +144,14 @@
|
|
|
138
144
|
|
|
139
145
|
|
|
140
146
|
|
|
147
|
+
|
|
148
|
+
|
|
141
149
|
<dl class="details">
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
|
|
142
155
|
|
|
143
156
|
|
|
144
157
|
|
|
@@ -205,7 +218,14 @@
|
|
|
205
218
|
|
|
206
219
|
|
|
207
220
|
|
|
221
|
+
|
|
222
|
+
|
|
208
223
|
<dl class="details">
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
|
|
209
229
|
|
|
210
230
|
|
|
211
231
|
|
|
@@ -271,7 +291,14 @@
|
|
|
271
291
|
|
|
272
292
|
|
|
273
293
|
|
|
294
|
+
|
|
295
|
+
|
|
274
296
|
<dl class="details">
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
|
|
275
302
|
|
|
276
303
|
|
|
277
304
|
|
|
@@ -337,7 +364,14 @@
|
|
|
337
364
|
|
|
338
365
|
|
|
339
366
|
|
|
367
|
+
|
|
368
|
+
|
|
340
369
|
<dl class="details">
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
|
|
373
|
+
|
|
374
|
+
|
|
341
375
|
|
|
342
376
|
|
|
343
377
|
|
|
@@ -379,7 +413,7 @@
|
|
|
379
413
|
|
|
380
414
|
|
|
381
415
|
<dt>
|
|
382
|
-
<h4 class="name" id="Lang"><span class="type-signature">(static, non-null) </span>Lang<span class="type-signature"> :<a href="Object.html">Object</a>.<string, string
|
|
416
|
+
<h4 class="name" id="Lang"><span class="type-signature">(static, non-null) </span>Lang<span class="type-signature"> :<a href="Object.html">Object</a>.<string, (string|!RegExp)></span></h4>
|
|
383
417
|
|
|
384
418
|
|
|
385
419
|
</dt>
|
|
@@ -395,7 +429,7 @@
|
|
|
395
429
|
<ul>
|
|
396
430
|
<li>
|
|
397
431
|
|
|
398
|
-
<span class="param-type"><a href="Object.html">Object</a>.<string, string
|
|
432
|
+
<span class="param-type"><a href="Object.html">Object</a>.<string, (string|!RegExp)></span>
|
|
399
433
|
|
|
400
434
|
|
|
401
435
|
</li>
|
|
@@ -403,7 +437,14 @@
|
|
|
403
437
|
|
|
404
438
|
|
|
405
439
|
|
|
440
|
+
|
|
441
|
+
|
|
406
442
|
<dl class="details">
|
|
443
|
+
|
|
444
|
+
|
|
445
|
+
|
|
446
|
+
|
|
447
|
+
|
|
407
448
|
|
|
408
449
|
|
|
409
450
|
|
|
@@ -465,7 +506,14 @@
|
|
|
465
506
|
|
|
466
507
|
|
|
467
508
|
|
|
509
|
+
|
|
510
|
+
|
|
468
511
|
<dl class="details">
|
|
512
|
+
|
|
513
|
+
|
|
514
|
+
|
|
515
|
+
|
|
516
|
+
|
|
469
517
|
|
|
470
518
|
|
|
471
519
|
|
|
@@ -531,7 +579,14 @@
|
|
|
531
579
|
|
|
532
580
|
|
|
533
581
|
|
|
582
|
+
|
|
583
|
+
|
|
534
584
|
<dl class="details">
|
|
585
|
+
|
|
586
|
+
|
|
587
|
+
|
|
588
|
+
|
|
589
|
+
|
|
535
590
|
|
|
536
591
|
|
|
537
592
|
|
|
@@ -598,7 +653,14 @@
|
|
|
598
653
|
|
|
599
654
|
|
|
600
655
|
|
|
656
|
+
|
|
657
|
+
|
|
601
658
|
<dl class="details">
|
|
659
|
+
|
|
660
|
+
|
|
661
|
+
|
|
662
|
+
|
|
663
|
+
|
|
602
664
|
|
|
603
665
|
|
|
604
666
|
|
|
@@ -640,7 +702,7 @@
|
|
|
640
702
|
|
|
641
703
|
|
|
642
704
|
<dt>
|
|
643
|
-
<h4 class="name" id="TYPES"><span class="type-signature">(static, constant) </span>TYPES<span class="type-signature"> :<a href="Object.html">Object</a>.<string,
|
|
705
|
+
<h4 class="name" id="TYPES"><span class="type-signature">(static, constant) </span>TYPES<span class="type-signature"> :<a href="Object.html">Object</a>.<string, {name: string, wireType: number}></span></h4>
|
|
644
706
|
|
|
645
707
|
|
|
646
708
|
</dt>
|
|
@@ -656,7 +718,7 @@
|
|
|
656
718
|
<ul>
|
|
657
719
|
<li>
|
|
658
720
|
|
|
659
|
-
<span class="param-type"><a href="Object.html">Object</a>.<string,
|
|
721
|
+
<span class="param-type"><a href="Object.html">Object</a>.<string, {name: string, wireType: number}></span>
|
|
660
722
|
|
|
661
723
|
|
|
662
724
|
</li>
|
|
@@ -664,7 +726,14 @@
|
|
|
664
726
|
|
|
665
727
|
|
|
666
728
|
|
|
729
|
+
|
|
730
|
+
|
|
667
731
|
<dl class="details">
|
|
732
|
+
|
|
733
|
+
|
|
734
|
+
|
|
735
|
+
|
|
736
|
+
|
|
668
737
|
|
|
669
738
|
|
|
670
739
|
|
|
@@ -730,7 +799,14 @@
|
|
|
730
799
|
|
|
731
800
|
|
|
732
801
|
|
|
802
|
+
|
|
803
|
+
|
|
733
804
|
<dl class="details">
|
|
805
|
+
|
|
806
|
+
|
|
807
|
+
|
|
808
|
+
|
|
809
|
+
|
|
734
810
|
|
|
735
811
|
|
|
736
812
|
|
|
@@ -796,7 +872,14 @@
|
|
|
796
872
|
|
|
797
873
|
|
|
798
874
|
|
|
875
|
+
|
|
876
|
+
|
|
799
877
|
<dl class="details">
|
|
878
|
+
|
|
879
|
+
|
|
880
|
+
|
|
881
|
+
|
|
882
|
+
|
|
800
883
|
|
|
801
884
|
|
|
802
885
|
|
|
@@ -862,7 +945,14 @@
|
|
|
862
945
|
|
|
863
946
|
|
|
864
947
|
|
|
948
|
+
|
|
949
|
+
|
|
865
950
|
<dl class="details">
|
|
951
|
+
|
|
952
|
+
|
|
953
|
+
|
|
954
|
+
|
|
955
|
+
|
|
866
956
|
|
|
867
957
|
|
|
868
958
|
|
|
@@ -928,7 +1018,14 @@
|
|
|
928
1018
|
|
|
929
1019
|
|
|
930
1020
|
|
|
1021
|
+
|
|
1022
|
+
|
|
931
1023
|
<dl class="details">
|
|
1024
|
+
|
|
1025
|
+
|
|
1026
|
+
|
|
1027
|
+
|
|
1028
|
+
|
|
932
1029
|
|
|
933
1030
|
|
|
934
1031
|
|
|
@@ -994,7 +1091,14 @@
|
|
|
994
1091
|
|
|
995
1092
|
|
|
996
1093
|
|
|
1094
|
+
|
|
1095
|
+
|
|
997
1096
|
<dl class="details">
|
|
1097
|
+
|
|
1098
|
+
|
|
1099
|
+
|
|
1100
|
+
|
|
1101
|
+
|
|
998
1102
|
|
|
999
1103
|
|
|
1000
1104
|
|
|
@@ -1060,7 +1164,14 @@
|
|
|
1060
1164
|
|
|
1061
1165
|
|
|
1062
1166
|
|
|
1167
|
+
|
|
1168
|
+
|
|
1063
1169
|
<dl class="details">
|
|
1170
|
+
|
|
1171
|
+
|
|
1172
|
+
|
|
1173
|
+
|
|
1174
|
+
|
|
1064
1175
|
|
|
1065
1176
|
|
|
1066
1177
|
|
|
@@ -1126,7 +1237,14 @@
|
|
|
1126
1237
|
|
|
1127
1238
|
|
|
1128
1239
|
|
|
1240
|
+
|
|
1241
|
+
|
|
1129
1242
|
<dl class="details">
|
|
1243
|
+
|
|
1244
|
+
|
|
1245
|
+
|
|
1246
|
+
|
|
1247
|
+
|
|
1130
1248
|
|
|
1131
1249
|
|
|
1132
1250
|
|
|
@@ -1192,7 +1310,14 @@
|
|
|
1192
1310
|
|
|
1193
1311
|
|
|
1194
1312
|
|
|
1313
|
+
|
|
1314
|
+
|
|
1195
1315
|
<dl class="details">
|
|
1316
|
+
|
|
1317
|
+
|
|
1318
|
+
|
|
1319
|
+
|
|
1320
|
+
|
|
1196
1321
|
|
|
1197
1322
|
|
|
1198
1323
|
|
|
@@ -1240,8 +1365,10 @@
|
|
|
1240
1365
|
<dl>
|
|
1241
1366
|
|
|
1242
1367
|
<dt>
|
|
1243
|
-
|
|
1368
|
+
|
|
1369
|
+
<h4 class="name" id="loadJson"><span class="type-signature">(static) </span>loadJson<span class="signature">(json, builder<span class="signature-attributes">opt</span>, filename<span class="signature-attributes">opt</span>)</span><span class="type-signature"> → {<a href="ProtoBuf.Builder.html">ProtoBuf.Builder</a>}</span></h4>
|
|
1244
1370
|
|
|
1371
|
+
|
|
1245
1372
|
|
|
1246
1373
|
</dt>
|
|
1247
1374
|
<dd>
|
|
@@ -1257,6 +1384,8 @@
|
|
|
1257
1384
|
|
|
1258
1385
|
|
|
1259
1386
|
|
|
1387
|
+
|
|
1388
|
+
|
|
1260
1389
|
<h5>Parameters:</h5>
|
|
1261
1390
|
|
|
1262
1391
|
|
|
@@ -1395,7 +1524,14 @@
|
|
|
1395
1524
|
|
|
1396
1525
|
|
|
1397
1526
|
|
|
1527
|
+
|
|
1528
|
+
|
|
1398
1529
|
<dl class="details">
|
|
1530
|
+
|
|
1531
|
+
|
|
1532
|
+
|
|
1533
|
+
|
|
1534
|
+
|
|
1399
1535
|
|
|
1400
1536
|
|
|
1401
1537
|
|
|
@@ -1417,7 +1553,7 @@
|
|
|
1417
1553
|
|
|
1418
1554
|
<dt class="tag-source">Source:</dt>
|
|
1419
1555
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
1420
|
-
<a href="ProtoBuf.js.html">ProtoBuf.js</a>, <a href="ProtoBuf.js.html#
|
|
1556
|
+
<a href="ProtoBuf.js.html">ProtoBuf.js</a>, <a href="ProtoBuf.js.html#line4278">line 4278</a>
|
|
1421
1557
|
</li></ul></dd>
|
|
1422
1558
|
|
|
1423
1559
|
|
|
@@ -1496,8 +1632,10 @@
|
|
|
1496
1632
|
|
|
1497
1633
|
|
|
1498
1634
|
<dt>
|
|
1499
|
-
|
|
1635
|
+
|
|
1636
|
+
<h4 class="name" id="loadJsonFile"><span class="type-signature">(static) </span>loadJsonFile<span class="signature">(filename, callback<span class="signature-attributes">opt</span>, builder<span class="signature-attributes">opt</span>)</span><span class="type-signature"> → {<a href="ProtoBuf.Builder.html">ProtoBuf.Builder</a>|undefined}</span></h4>
|
|
1500
1637
|
|
|
1638
|
+
|
|
1501
1639
|
|
|
1502
1640
|
</dt>
|
|
1503
1641
|
<dd>
|
|
@@ -1513,6 +1651,8 @@
|
|
|
1513
1651
|
|
|
1514
1652
|
|
|
1515
1653
|
|
|
1654
|
+
|
|
1655
|
+
|
|
1516
1656
|
<h5>Parameters:</h5>
|
|
1517
1657
|
|
|
1518
1658
|
|
|
@@ -1645,7 +1785,14 @@
|
|
|
1645
1785
|
|
|
1646
1786
|
|
|
1647
1787
|
|
|
1788
|
+
|
|
1789
|
+
|
|
1648
1790
|
<dl class="details">
|
|
1791
|
+
|
|
1792
|
+
|
|
1793
|
+
|
|
1794
|
+
|
|
1795
|
+
|
|
1649
1796
|
|
|
1650
1797
|
|
|
1651
1798
|
|
|
@@ -1667,7 +1814,7 @@
|
|
|
1667
1814
|
|
|
1668
1815
|
<dt class="tag-source">Source:</dt>
|
|
1669
1816
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
1670
|
-
<a href="ProtoBuf.js.html">ProtoBuf.js</a>, <a href="ProtoBuf.js.html#
|
|
1817
|
+
<a href="ProtoBuf.js.html">ProtoBuf.js</a>, <a href="ProtoBuf.js.html#line4303">line 4303</a>
|
|
1671
1818
|
</li></ul></dd>
|
|
1672
1819
|
|
|
1673
1820
|
|
|
@@ -1723,8 +1870,10 @@
|
|
|
1723
1870
|
|
|
1724
1871
|
|
|
1725
1872
|
<dt>
|
|
1726
|
-
|
|
1873
|
+
|
|
1874
|
+
<h4 class="name" id="loadProto"><span class="type-signature">(static) </span>loadProto<span class="signature">(proto, builder<span class="signature-attributes">opt</span>, filename<span class="signature-attributes">opt</span>)</span><span class="type-signature"> → {<a href="ProtoBuf.Builder.html">ProtoBuf.Builder</a>}</span></h4>
|
|
1727
1875
|
|
|
1876
|
+
|
|
1728
1877
|
|
|
1729
1878
|
</dt>
|
|
1730
1879
|
<dd>
|
|
@@ -1740,6 +1889,8 @@
|
|
|
1740
1889
|
|
|
1741
1890
|
|
|
1742
1891
|
|
|
1892
|
+
|
|
1893
|
+
|
|
1743
1894
|
<h5>Parameters:</h5>
|
|
1744
1895
|
|
|
1745
1896
|
|
|
@@ -1875,7 +2026,14 @@
|
|
|
1875
2026
|
|
|
1876
2027
|
|
|
1877
2028
|
|
|
2029
|
+
|
|
2030
|
+
|
|
1878
2031
|
<dl class="details">
|
|
2032
|
+
|
|
2033
|
+
|
|
2034
|
+
|
|
2035
|
+
|
|
2036
|
+
|
|
1879
2037
|
|
|
1880
2038
|
|
|
1881
2039
|
|
|
@@ -1897,7 +2055,7 @@
|
|
|
1897
2055
|
|
|
1898
2056
|
<dt class="tag-source">Source:</dt>
|
|
1899
2057
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
1900
|
-
<a href="ProtoBuf.js.html">ProtoBuf.js</a>, <a href="ProtoBuf.js.html#
|
|
2058
|
+
<a href="ProtoBuf.js.html">ProtoBuf.js</a>, <a href="ProtoBuf.js.html#line4185">line 4185</a>
|
|
1901
2059
|
</li></ul></dd>
|
|
1902
2060
|
|
|
1903
2061
|
|
|
@@ -1976,8 +2134,10 @@
|
|
|
1976
2134
|
|
|
1977
2135
|
|
|
1978
2136
|
<dt>
|
|
1979
|
-
|
|
2137
|
+
|
|
2138
|
+
<h4 class="name" id="loadProtoFile"><span class="type-signature">(static) </span>loadProtoFile<span class="signature">(filename, callback<span class="signature-attributes">opt</span>, builder<span class="signature-attributes">opt</span>)</span><span class="type-signature"> → {<a href="ProtoBuf.Builder.html">ProtoBuf.Builder</a>|undefined}</span></h4>
|
|
1980
2139
|
|
|
2140
|
+
|
|
1981
2141
|
|
|
1982
2142
|
</dt>
|
|
1983
2143
|
<dd>
|
|
@@ -1993,6 +2153,8 @@
|
|
|
1993
2153
|
|
|
1994
2154
|
|
|
1995
2155
|
|
|
2156
|
+
|
|
2157
|
+
|
|
1996
2158
|
<h5>Parameters:</h5>
|
|
1997
2159
|
|
|
1998
2160
|
|
|
@@ -2125,7 +2287,14 @@
|
|
|
2125
2287
|
|
|
2126
2288
|
|
|
2127
2289
|
|
|
2290
|
+
|
|
2291
|
+
|
|
2128
2292
|
<dl class="details">
|
|
2293
|
+
|
|
2294
|
+
|
|
2295
|
+
|
|
2296
|
+
|
|
2297
|
+
|
|
2129
2298
|
|
|
2130
2299
|
|
|
2131
2300
|
|
|
@@ -2147,7 +2316,7 @@
|
|
|
2147
2316
|
|
|
2148
2317
|
<dt class="tag-source">Source:</dt>
|
|
2149
2318
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
2150
|
-
<a href="ProtoBuf.js.html">ProtoBuf.js</a>, <a href="ProtoBuf.js.html#
|
|
2319
|
+
<a href="ProtoBuf.js.html">ProtoBuf.js</a>, <a href="ProtoBuf.js.html#line4216">line 4216</a>
|
|
2151
2320
|
</li></ul></dd>
|
|
2152
2321
|
|
|
2153
2322
|
|
|
@@ -2203,15 +2372,17 @@
|
|
|
2203
2372
|
|
|
2204
2373
|
|
|
2205
2374
|
<dt>
|
|
2206
|
-
|
|
2375
|
+
|
|
2376
|
+
<h4 class="name" id="newBuilder"><span class="type-signature">(static) </span>newBuilder<span class="signature">(options<span class="signature-attributes">opt</span>)</span><span class="type-signature"> → (non-null) {<a href="ProtoBuf.Builder.html">ProtoBuf.Builder</a>}</span></h4>
|
|
2207
2377
|
|
|
2378
|
+
|
|
2208
2379
|
|
|
2209
2380
|
</dt>
|
|
2210
2381
|
<dd>
|
|
2211
2382
|
|
|
2212
2383
|
|
|
2213
2384
|
<div class="description">
|
|
2214
|
-
<p>Constructs a new Builder
|
|
2385
|
+
<p>Constructs a new empty Builder.</p>
|
|
2215
2386
|
</div>
|
|
2216
2387
|
|
|
2217
2388
|
|
|
@@ -2220,6 +2391,8 @@
|
|
|
2220
2391
|
|
|
2221
2392
|
|
|
2222
2393
|
|
|
2394
|
+
|
|
2395
|
+
|
|
2223
2396
|
<h5>Parameters:</h5>
|
|
2224
2397
|
|
|
2225
2398
|
|
|
@@ -2245,40 +2418,6 @@
|
|
|
2245
2418
|
<tbody>
|
|
2246
2419
|
|
|
2247
2420
|
|
|
2248
|
-
<tr>
|
|
2249
|
-
|
|
2250
|
-
<td class="name"><code>pkg</code></td>
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
<td class="type">
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
<span class="param-type">string</span>
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
</td>
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
<td class="attributes">
|
|
2264
|
-
|
|
2265
|
-
<optional><br>
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
</td>
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
<td class="description last"><p>Package name as fully qualified name, e.g. "My.Game". If no package is specified, the
|
|
2277
|
-
builder will only contain a global namespace.</p></td>
|
|
2278
|
-
</tr>
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
2421
|
<tr>
|
|
2283
2422
|
|
|
2284
2423
|
<td class="name"><code>options</code></td>
|
|
@@ -2307,7 +2446,7 @@ builder will only contain a global namespace.</p></td>
|
|
|
2307
2446
|
|
|
2308
2447
|
|
|
2309
2448
|
|
|
2310
|
-
<td class="description last"><p>
|
|
2449
|
+
<td class="description last"><p>Builder options, defaults to global options set on ProtoBuf</p></td>
|
|
2311
2450
|
</tr>
|
|
2312
2451
|
|
|
2313
2452
|
|
|
@@ -2316,7 +2455,14 @@ builder will only contain a global namespace.</p></td>
|
|
|
2316
2455
|
|
|
2317
2456
|
|
|
2318
2457
|
|
|
2458
|
+
|
|
2459
|
+
|
|
2319
2460
|
<dl class="details">
|
|
2461
|
+
|
|
2462
|
+
|
|
2463
|
+
|
|
2464
|
+
|
|
2465
|
+
|
|
2320
2466
|
|
|
2321
2467
|
|
|
2322
2468
|
|
|
@@ -2338,7 +2484,7 @@ builder will only contain a global namespace.</p></td>
|
|
|
2338
2484
|
|
|
2339
2485
|
<dt class="tag-source">Source:</dt>
|
|
2340
2486
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
2341
|
-
<a href="ProtoBuf.js.html">ProtoBuf.js</a>, <a href="ProtoBuf.js.html#
|
|
2487
|
+
<a href="ProtoBuf.js.html">ProtoBuf.js</a>, <a href="ProtoBuf.js.html#line4260">line 4260</a>
|
|
2342
2488
|
</li></ul></dd>
|
|
2343
2489
|
|
|
2344
2490
|
|
|
@@ -2365,7 +2511,7 @@ builder will only contain a global namespace.</p></td>
|
|
|
2365
2511
|
|
|
2366
2512
|
|
|
2367
2513
|
<div class="param-desc">
|
|
2368
|
-
<p>
|
|
2514
|
+
<p>Builder</p>
|
|
2369
2515
|
</div>
|
|
2370
2516
|
|
|
2371
2517
|
|
|
@@ -2390,8 +2536,10 @@ builder will only contain a global namespace.</p></td>
|
|
|
2390
2536
|
|
|
2391
2537
|
|
|
2392
2538
|
<dt>
|
|
2393
|
-
|
|
2539
|
+
|
|
2540
|
+
<h4 class="name" id="protoFromFile"><span class="type-signature">(static) </span>protoFromFile<span class="signature">(filename, callback<span class="signature-attributes">opt</span>, builder<span class="signature-attributes">opt</span>)</span><span class="type-signature"> → {<a href="ProtoBuf.Builder.html">ProtoBuf.Builder</a>|undefined}</span></h4>
|
|
2394
2541
|
|
|
2542
|
+
|
|
2395
2543
|
|
|
2396
2544
|
</dt>
|
|
2397
2545
|
<dd>
|
|
@@ -2407,6 +2555,8 @@ builder will only contain a global namespace.</p></td>
|
|
|
2407
2555
|
|
|
2408
2556
|
|
|
2409
2557
|
|
|
2558
|
+
|
|
2559
|
+
|
|
2410
2560
|
<h5>Parameters:</h5>
|
|
2411
2561
|
|
|
2412
2562
|
|
|
@@ -2539,7 +2689,14 @@ builder will only contain a global namespace.</p></td>
|
|
|
2539
2689
|
|
|
2540
2690
|
|
|
2541
2691
|
|
|
2692
|
+
|
|
2693
|
+
|
|
2542
2694
|
<dl class="details">
|
|
2695
|
+
|
|
2696
|
+
|
|
2697
|
+
|
|
2698
|
+
|
|
2699
|
+
|
|
2543
2700
|
|
|
2544
2701
|
|
|
2545
2702
|
|
|
@@ -2561,7 +2718,7 @@ builder will only contain a global namespace.</p></td>
|
|
|
2561
2718
|
|
|
2562
2719
|
<dt class="tag-source">Source:</dt>
|
|
2563
2720
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
2564
|
-
<a href="ProtoBuf.js.html">ProtoBuf.js</a>, <a href="ProtoBuf.js.html#
|
|
2721
|
+
<a href="ProtoBuf.js.html">ProtoBuf.js</a>, <a href="ProtoBuf.js.html#line4251">line 4251</a>
|
|
2565
2722
|
</li></ul></dd>
|
|
2566
2723
|
|
|
2567
2724
|
|
|
@@ -2617,8 +2774,10 @@ builder will only contain a global namespace.</p></td>
|
|
|
2617
2774
|
|
|
2618
2775
|
|
|
2619
2776
|
<dt>
|
|
2620
|
-
|
|
2777
|
+
|
|
2778
|
+
<h4 class="name" id="protoFromString"><span class="type-signature">(static) </span>protoFromString<span class="signature">(proto, builder<span class="signature-attributes">opt</span>, filename<span class="signature-attributes">opt</span>)</span><span class="type-signature"> → {<a href="ProtoBuf.Builder.html">ProtoBuf.Builder</a>}</span></h4>
|
|
2621
2779
|
|
|
2780
|
+
|
|
2622
2781
|
|
|
2623
2782
|
</dt>
|
|
2624
2783
|
<dd>
|
|
@@ -2634,6 +2793,8 @@ builder will only contain a global namespace.</p></td>
|
|
|
2634
2793
|
|
|
2635
2794
|
|
|
2636
2795
|
|
|
2796
|
+
|
|
2797
|
+
|
|
2637
2798
|
<h5>Parameters:</h5>
|
|
2638
2799
|
|
|
2639
2800
|
|
|
@@ -2766,7 +2927,14 @@ builder will only contain a global namespace.</p></td>
|
|
|
2766
2927
|
|
|
2767
2928
|
|
|
2768
2929
|
|
|
2930
|
+
|
|
2931
|
+
|
|
2769
2932
|
<dl class="details">
|
|
2933
|
+
|
|
2934
|
+
|
|
2935
|
+
|
|
2936
|
+
|
|
2937
|
+
|
|
2770
2938
|
|
|
2771
2939
|
|
|
2772
2940
|
|
|
@@ -2788,7 +2956,7 @@ builder will only contain a global namespace.</p></td>
|
|
|
2788
2956
|
|
|
2789
2957
|
<dt class="tag-source">Source:</dt>
|
|
2790
2958
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
2791
|
-
<a href="ProtoBuf.js.html">ProtoBuf.js</a>, <a href="ProtoBuf.js.html#
|
|
2959
|
+
<a href="ProtoBuf.js.html">ProtoBuf.js</a>, <a href="ProtoBuf.js.html#line4202">line 4202</a>
|
|
2792
2960
|
</li></ul></dd>
|
|
2793
2961
|
|
|
2794
2962
|
|
|
@@ -2880,13 +3048,13 @@ builder will only contain a global namespace.</p></td>
|
|
|
2880
3048
|
</div>
|
|
2881
3049
|
|
|
2882
3050
|
<nav>
|
|
2883
|
-
<h2><a href="index.html">Index</a></h2><h3>Classes</h3><ul><li><a href="ProtoBuf.Builder.html">Builder</a></li><li><a href="ProtoBuf.Builder.Message.html">Message</a></li><li><a href="ProtoBuf.Builder.Service.html">Service</a></li><li><a href="ProtoBuf.DotProto.Parser.html">Parser</a></li><li><a href="ProtoBuf.DotProto.Tokenizer.html">Tokenizer</a></li><li><a href="ProtoBuf.Reflect.Enum.html">Enum</a></li><li><a href="ProtoBuf.Reflect.Enum.Value.html">Value</a></li><li><a href="ProtoBuf.Reflect.Extension.html">Extension</a></li><li><a href="ProtoBuf.Reflect.Message.html">Message</a></li><li><a href="ProtoBuf.Reflect.Message.ExtensionField.html">ExtensionField</a></li><li><a href="ProtoBuf.Reflect.Message.Field.html">Field</a></li><li><a href="ProtoBuf.Reflect.Namespace.html">Namespace</a></li><li><a href="ProtoBuf.Reflect.Service.html">Service</a></li><li><a href="ProtoBuf.Reflect.Service.Method.html">Method</a></li><li><a href="ProtoBuf.Reflect.Service.RPCMethod.html">RPCMethod</a></li><li><a href="ProtoBuf.Reflect.T.html">T</a></li></ul><h3>Namespaces</h3><ul><li><a href="ProtoBuf.html">ProtoBuf</a></li><li><a href="ProtoBuf.DotProto.html">DotProto</a></li><li><a href="ProtoBuf.Reflect.html">Reflect</a></li><li><a href="ProtoBuf.Util.html">Util</a></li></ul>
|
|
3051
|
+
<h2><a href="index.html">Index</a></h2><h3>Classes</h3><ul><li><a href="ProtoBuf.Builder.html">Builder</a></li><li><a href="ProtoBuf.Builder.Message.html">Message</a></li><li><a href="ProtoBuf.Builder.Service.html">Service</a></li><li><a href="ProtoBuf.DotProto.Parser.html">Parser</a></li><li><a href="ProtoBuf.DotProto.Tokenizer.html">Tokenizer</a></li><li><a href="ProtoBuf.Reflect.Enum.html">Enum</a></li><li><a href="ProtoBuf.Reflect.Enum.Value.html">Value</a></li><li><a href="ProtoBuf.Reflect.Extension.html">Extension</a></li><li><a href="ProtoBuf.Reflect.Message.html">Message</a></li><li><a href="ProtoBuf.Reflect.Message.ExtensionField.html">ExtensionField</a></li><li><a href="ProtoBuf.Reflect.Message.Field.html">Field</a></li><li><a href="ProtoBuf.Reflect.Message.OneOf.html">OneOf</a></li><li><a href="ProtoBuf.Reflect.Namespace.html">Namespace</a></li><li><a href="ProtoBuf.Reflect.Service.html">Service</a></li><li><a href="ProtoBuf.Reflect.Service.Method.html">Method</a></li><li><a href="ProtoBuf.Reflect.Service.RPCMethod.html">RPCMethod</a></li><li><a href="ProtoBuf.Reflect.T.html">T</a></li></ul><h3>Namespaces</h3><ul><li><a href="ProtoBuf.html">ProtoBuf</a></li><li><a href="ProtoBuf.DotProto.html">DotProto</a></li><li><a href="ProtoBuf.Reflect.html">Reflect</a></li><li><a href="ProtoBuf.Util.html">Util</a></li></ul>
|
|
2884
3052
|
</nav>
|
|
2885
3053
|
|
|
2886
3054
|
<br clear="both">
|
|
2887
3055
|
|
|
2888
3056
|
<footer>
|
|
2889
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-
|
|
3057
|
+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.0-alpha10</a> on Mon Nov 24 2014 18:08:27 GMT+0100 (Mitteleuropäische Zeit)
|
|
2890
3058
|
</footer>
|
|
2891
3059
|
|
|
2892
3060
|
<script> prettyPrint(); </script>
|