Built motion from commit 6a09e18b.|2.6.11
[motion2.git] / legacy-libs / grpc / node_modules / protobufjs / docs / ProtoBuf.Builder.Message.html
1 <!DOCTYPE html>
2 <html lang="en">
3 <head>
4     <meta charset="utf-8">
5     <title>JSDoc: Class: Message</title>
6
7     <script src="scripts/prettify/prettify.js"> </script>
8     <script src="scripts/prettify/lang-css.js"> </script>
9     <!--[if lt IE 9]>
10       <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
11     <![endif]-->
12     <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
13     <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
14 </head>
15
16 <body>
17
18 <div id="main">
19
20     <h1 class="page-title">Class: Message</h1>
21
22     
23
24
25
26
27 <section>
28
29 <header>
30     
31         <h2>
32             <span class="ancestors"><a href="ProtoBuf.html">ProtoBuf</a><a href="ProtoBuf.Builder.html">.Builder</a>.</span>
33         
34         Message
35         </h2>
36         
37             <div class="class-description"><p>Barebone of all runtime messages.</p></div>
38         
39     
40 </header>
41
42 <article>
43     <div class="container-overview">
44     
45         
46
47     
48     <h2>Constructor</h2>
49     
50
51     <h4 class="name" id="Message"><span class="type-signature"></span>new Message<span class="signature">(values, &hellip;var_args)</span><span class="type-signature"></span></h4>
52
53     
54
55
56
57 <div class="description">
58     <p>Constructs a new runtime Message.</p>
59 </div>
60
61
62
63
64
65
66
67
68
69     <h5>Parameters:</h5>
70     
71
72 <table class="params">
73     <thead>
74     <tr>
75         
76         <th>Name</th>
77         
78
79         <th>Type</th>
80
81         
82         <th>Attributes</th>
83         
84
85         
86
87         <th class="last">Description</th>
88     </tr>
89     </thead>
90
91     <tbody>
92     
93
94         <tr>
95             
96                 <td class="name"><code>values</code></td>
97             
98
99             <td class="type">
100             
101                 
102 <span class="param-type">!Object.&lt;string, *></span>
103 |
104
105 <span class="param-type">string</span>
106
107
108             
109             </td>
110
111             
112                 <td class="attributes">
113                 
114
115                 
116
117                 
118                 </td>
119             
120
121             
122
123             <td class="description last"><p>Preset values</p></td>
124         </tr>
125
126     
127
128         <tr>
129             
130                 <td class="name"><code>var_args</code></td>
131             
132
133             <td class="type">
134             
135                 
136 <span class="param-type">string</span>
137
138
139             
140             </td>
141
142             
143                 <td class="attributes">
144                 
145
146                 
147
148                 
149                     &lt;repeatable><br>
150                 
151                 </td>
152             
153
154             
155
156             <td class="description last"></td>
157         </tr>
158
159     
160     </tbody>
161 </table>
162
163
164
165
166
167
168 <dl class="details">
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     <dt class="tag-source">Source:</dt>
196     <dd class="tag-source"><ul class="dummy"><li>
197         <a href="protobuf.js.html">protobuf.js</a>, <a href="protobuf.js.html#line2375">line 2375</a>
198     </li></ul></dd>
199     
200
201     
202
203     
204
205     
206 </dl>
207
208
209
210
211
212
213
214
215
216
217
218 <h5>Throws:</h5>
219
220         
221
222 <dl>
223     <dt>
224         <div class="param-desc">
225         <p>If the message cannot be created</p>
226         </div>
227     </dt>
228     <dd></dd>
229     <dt>
230         <dl>
231             <dt>
232                 Type
233             </dt>
234             <dd>
235                 
236 <span class="param-type">Error</span>
237
238
239             </dd>
240         </dl>
241     </dt>
242     <dd></dd>
243 </dl>
244
245
246     
247
248
249
250
251
252     
253     </div>
254
255     
256
257     
258
259     
260
261      
262
263     
264
265     
266         <h3 class="subsection-title">Members</h3>
267
268         
269             
270 <h4 class="name" id=".$options"><span class="type-signature">(static) </span>$options<span class="type-signature"> :Object.&lt;string, *></span></h4>
271
272
273
274
275 <div class="description">
276     <p>Message options.</p>
277 </div>
278
279
280
281     <h5>Type:</h5>
282     <ul>
283         <li>
284             
285 <span class="param-type">Object.&lt;string, *></span>
286
287
288         </li>
289     </ul>
290
291
292
293
294
295 <dl class="details">
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     <dt class="tag-source">Source:</dt>
323     <dd class="tag-source"><ul class="dummy"><li>
324         <a href="protobuf.js.html">protobuf.js</a>, <a href="protobuf.js.html#line3052">line 3052</a>
325     </li></ul></dd>
326     
327
328     
329
330     
331
332     
333 </dl>
334
335
336
337
338
339
340         
341             
342 <h4 class="name" id=".$type"><span class="type-signature">(static, non-null) </span>$type<span class="type-signature"> :<a href="ProtoBuf.Reflect.Message.html">ProtoBuf.Reflect.Message</a></span></h4>
343
344
345
346
347 <div class="description">
348     <p>Reflection type.</p>
349 </div>
350
351
352
353     <h5>Type:</h5>
354     <ul>
355         <li>
356             
357 <span class="param-type"><a href="ProtoBuf.Reflect.Message.html">ProtoBuf.Reflect.Message</a></span>
358
359
360         </li>
361     </ul>
362
363
364
365
366
367 <dl class="details">
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     <dt class="tag-source">Source:</dt>
395     <dd class="tag-source"><ul class="dummy"><li>
396         <a href="protobuf.js.html">protobuf.js</a>, <a href="protobuf.js.html#line3068">line 3068</a>
397     </li></ul></dd>
398     
399
400     
401
402     
403
404     
405 </dl>
406
407
408
409
410
411
412         
413             
414 <h4 class="name" id="$options"><span class="type-signature"></span>$options<span class="type-signature"> :Object.&lt;string, *></span></h4>
415
416
417
418
419 <div class="description">
420     <p>Message options.</p>
421 </div>
422
423
424
425     <h5>Type:</h5>
426     <ul>
427         <li>
428             
429 <span class="param-type">Object.&lt;string, *></span>
430
431
432         </li>
433     </ul>
434
435
436
437
438
439 <dl class="details">
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     <dt class="tag-source">Source:</dt>
467     <dd class="tag-source"><ul class="dummy"><li>
468         <a href="protobuf.js.html">protobuf.js</a>, <a href="protobuf.js.html#line3060">line 3060</a>
469     </li></ul></dd>
470     
471
472     
473
474     
475
476     
477 </dl>
478
479
480
481
482
483
484         
485             
486 <h4 class="name" id="$type"><span class="type-signature">(non-null) </span>$type<span class="type-signature"> :<a href="ProtoBuf.Reflect.Message.html">ProtoBuf.Reflect.Message</a></span></h4>
487
488
489
490
491 <div class="description">
492     <p>Reflection type.</p>
493 </div>
494
495
496
497     <h5>Type:</h5>
498     <ul>
499         <li>
500             
501 <span class="param-type"><a href="ProtoBuf.Reflect.Message.html">ProtoBuf.Reflect.Message</a></span>
502
503
504         </li>
505     </ul>
506
507
508
509
510
511 <dl class="details">
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     <dt class="tag-source">Source:</dt>
539     <dd class="tag-source"><ul class="dummy"><li>
540         <a href="protobuf.js.html">protobuf.js</a>, <a href="protobuf.js.html#line3076">line 3076</a>
541     </li></ul></dd>
542     
543
544     
545
546     
547
548     
549 </dl>
550
551
552
553
554
555
556         
557     
558
559     
560         <h3 class="subsection-title">Methods</h3>
561
562         
563             
564
565     
566
567     <h4 class="name" id=".decode"><span class="type-signature">(static) </span>decode<span class="signature">(buffer, length<span class="signature-attributes">opt</span>, enc<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; (non-null) {<a href="ProtoBuf.Builder.Message.html">ProtoBuf.Builder.Message</a>}</span></h4>
568
569     
570
571
572
573 <div class="description">
574     <p>Decodes a message from the specified buffer or string.</p>
575 </div>
576
577
578
579
580
581
582
583
584
585     <h5>Parameters:</h5>
586     
587
588 <table class="params">
589     <thead>
590     <tr>
591         
592         <th>Name</th>
593         
594
595         <th>Type</th>
596
597         
598         <th>Attributes</th>
599         
600
601         
602
603         <th class="last">Description</th>
604     </tr>
605     </thead>
606
607     <tbody>
608     
609
610         <tr>
611             
612                 <td class="name"><code>buffer</code></td>
613             
614
615             <td class="type">
616             
617                 
618 <span class="param-type">ByteBuffer</span>
619 |
620
621 <span class="param-type">ArrayBuffer</span>
622 |
623
624 <span class="param-type">Buffer</span>
625 |
626
627 <span class="param-type">string</span>
628
629
630             
631             </td>
632
633             
634                 <td class="attributes">
635                 
636
637                 
638
639                 
640                 </td>
641             
642
643             
644
645             <td class="description last"><p>Buffer to decode from</p></td>
646         </tr>
647
648     
649
650         <tr>
651             
652                 <td class="name"><code>length</code></td>
653             
654
655             <td class="type">
656             
657                 
658 <span class="param-type">number</span>
659 |
660
661 <span class="param-type">string</span>
662
663
664             
665             </td>
666
667             
668                 <td class="attributes">
669                 
670                     &lt;optional><br>
671                 
672
673                 
674
675                 
676                 </td>
677             
678
679             
680
681             <td class="description last"><p>Message length. Defaults to decode all the remainig data.</p></td>
682         </tr>
683
684     
685
686         <tr>
687             
688                 <td class="name"><code>enc</code></td>
689             
690
691             <td class="type">
692             
693                 
694 <span class="param-type">string</span>
695
696
697             
698             </td>
699
700             
701                 <td class="attributes">
702                 
703                     &lt;optional><br>
704                 
705
706                 
707
708                 
709                 </td>
710             
711
712             
713
714             <td class="description last"><p>Encoding if buffer is a string: hex, utf8 (not recommended), defaults to base64</p></td>
715         </tr>
716
717     
718     </tbody>
719 </table>
720
721
722
723
724
725
726 <dl class="details">
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     <dt class="tag-source">Source:</dt>
754     <dd class="tag-source"><ul class="dummy"><li>
755         <a href="protobuf.js.html">protobuf.js</a>, <a href="protobuf.js.html#line2928">line 2928</a>
756     </li></ul></dd>
757     
758
759     
760
761     
762     <dt class="tag-see">See:</dt>
763     <dd class="tag-see">
764         <ul>
765             <li><a href="ProtoBuf.Builder.Message.html#.decode64">ProtoBuf.Builder.Message.decode64</a></li>
766         
767             <li><a href="ProtoBuf.Builder.Message.html#.decodeHex">ProtoBuf.Builder.Message.decodeHex</a></li>
768         </ul>
769     </dd>
770     
771
772     
773 </dl>
774
775
776
777
778
779
780
781
782
783
784
785 <h5>Throws:</h5>
786
787         
788
789 <dl>
790     <dt>
791         <div class="param-desc">
792         <p>If the message cannot be decoded or if required fields are missing. The later still
793  returns the decoded message with missing fields in the <code>decoded</code> property on the error.</p>
794         </div>
795     </dt>
796     <dd></dd>
797     <dt>
798         <dl>
799             <dt>
800                 Type
801             </dt>
802             <dd>
803                 
804 <span class="param-type">Error</span>
805
806
807             </dd>
808         </dl>
809     </dt>
810     <dd></dd>
811 </dl>
812
813
814     
815
816
817 <h5>Returns:</h5>
818
819         
820 <div class="param-desc">
821     <p>Decoded message</p>
822 </div>
823
824
825
826 <dl>
827     <dt>
828         Type
829     </dt>
830     <dd>
831         
832 <span class="param-type"><a href="ProtoBuf.Builder.Message.html">ProtoBuf.Builder.Message</a></span>
833
834
835     </dd>
836 </dl>
837
838     
839
840
841
842         
843             
844
845     
846
847     <h4 class="name" id=".decode64"><span class="type-signature">(static) </span>decode64<span class="signature">(str)</span><span class="type-signature"> &rarr; (non-null) {<a href="ProtoBuf.Builder.Message.html">ProtoBuf.Builder.Message</a>}</span></h4>
848
849     
850
851
852
853 <div class="description">
854     <p>Decodes the message from the specified base64 encoded string.</p>
855 </div>
856
857
858
859
860
861
862
863
864
865     <h5>Parameters:</h5>
866     
867
868 <table class="params">
869     <thead>
870     <tr>
871         
872         <th>Name</th>
873         
874
875         <th>Type</th>
876
877         
878
879         
880
881         <th class="last">Description</th>
882     </tr>
883     </thead>
884
885     <tbody>
886     
887
888         <tr>
889             
890                 <td class="name"><code>str</code></td>
891             
892
893             <td class="type">
894             
895                 
896 <span class="param-type">string</span>
897
898
899             
900             </td>
901
902             
903
904             
905
906             <td class="description last"><p>String to decode from</p></td>
907         </tr>
908
909     
910     </tbody>
911 </table>
912
913
914
915
916
917
918 <dl class="details">
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     <dt class="tag-source">Source:</dt>
946     <dd class="tag-source"><ul class="dummy"><li>
947         <a href="protobuf.js.html">protobuf.js</a>, <a href="protobuf.js.html#line2995">line 2995</a>
948     </li></ul></dd>
949     
950
951     
952
953     
954
955     
956 </dl>
957
958
959
960
961
962
963
964
965
966
967
968 <h5>Throws:</h5>
969
970         
971
972 <dl>
973     <dt>
974         <div class="param-desc">
975         <p>If the message cannot be decoded or if required fields are missing. The later still
976  returns the decoded message with missing fields in the <code>decoded</code> property on the error.</p>
977         </div>
978     </dt>
979     <dd></dd>
980     <dt>
981         <dl>
982             <dt>
983                 Type
984             </dt>
985             <dd>
986                 
987 <span class="param-type">Error</span>
988
989
990             </dd>
991         </dl>
992     </dt>
993     <dd></dd>
994 </dl>
995
996
997     
998
999
1000 <h5>Returns:</h5>
1001
1002         
1003 <div class="param-desc">
1004     <p>Decoded message</p>
1005 </div>
1006
1007
1008
1009 <dl>
1010     <dt>
1011         Type
1012     </dt>
1013     <dd>
1014         
1015 <span class="param-type"><a href="ProtoBuf.Builder.Message.html">ProtoBuf.Builder.Message</a></span>
1016
1017
1018     </dd>
1019 </dl>
1020
1021     
1022
1023
1024
1025         
1026             
1027
1028     
1029
1030     <h4 class="name" id=".decodeDelimited"><span class="type-signature">(static) </span>decodeDelimited<span class="signature">(buffer, enc<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {<a href="ProtoBuf.Builder.Message.html">ProtoBuf.Builder.Message</a>}</span></h4>
1031
1032     
1033
1034
1035
1036 <div class="description">
1037     <p>Decodes a varint32 length-delimited message from the specified buffer or string.</p>
1038 </div>
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048     <h5>Parameters:</h5>
1049     
1050
1051 <table class="params">
1052     <thead>
1053     <tr>
1054         
1055         <th>Name</th>
1056         
1057
1058         <th>Type</th>
1059
1060         
1061         <th>Attributes</th>
1062         
1063
1064         
1065
1066         <th class="last">Description</th>
1067     </tr>
1068     </thead>
1069
1070     <tbody>
1071     
1072
1073         <tr>
1074             
1075                 <td class="name"><code>buffer</code></td>
1076             
1077
1078             <td class="type">
1079             
1080                 
1081 <span class="param-type">ByteBuffer</span>
1082 |
1083
1084 <span class="param-type">ArrayBuffer</span>
1085 |
1086
1087 <span class="param-type">Buffer</span>
1088 |
1089
1090 <span class="param-type">string</span>
1091
1092
1093             
1094             </td>
1095
1096             
1097                 <td class="attributes">
1098                 
1099
1100                 
1101
1102                 
1103                 </td>
1104             
1105
1106             
1107
1108             <td class="description last"><p>Buffer to decode from</p></td>
1109         </tr>
1110
1111     
1112
1113         <tr>
1114             
1115                 <td class="name"><code>enc</code></td>
1116             
1117
1118             <td class="type">
1119             
1120                 
1121 <span class="param-type">string</span>
1122
1123
1124             
1125             </td>
1126
1127             
1128                 <td class="attributes">
1129                 
1130                     &lt;optional><br>
1131                 
1132
1133                 
1134
1135                 
1136                 </td>
1137             
1138
1139             
1140
1141             <td class="description last"><p>Encoding if buffer is a string: hex, utf8 (not recommended), defaults to base64</p></td>
1142         </tr>
1143
1144     
1145     </tbody>
1146 </table>
1147
1148
1149
1150
1151
1152
1153 <dl class="details">
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     <dt class="tag-source">Source:</dt>
1181     <dd class="tag-source"><ul class="dummy"><li>
1182         <a href="protobuf.js.html">protobuf.js</a>, <a href="protobuf.js.html#line2961">line 2961</a>
1183     </li></ul></dd>
1184     
1185
1186     
1187
1188     
1189
1190     
1191 </dl>
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203 <h5>Throws:</h5>
1204
1205         
1206
1207 <dl>
1208     <dt>
1209         <div class="param-desc">
1210         <p>If the message cannot be decoded or if required fields are missing. The later still
1211  returns the decoded message with missing fields in the <code>decoded</code> property on the error.</p>
1212         </div>
1213     </dt>
1214     <dd></dd>
1215     <dt>
1216         <dl>
1217             <dt>
1218                 Type
1219             </dt>
1220             <dd>
1221                 
1222 <span class="param-type">Error</span>
1223
1224
1225             </dd>
1226         </dl>
1227     </dt>
1228     <dd></dd>
1229 </dl>
1230
1231
1232     
1233
1234
1235 <h5>Returns:</h5>
1236
1237         
1238 <div class="param-desc">
1239     <p>Decoded message or <code>null</code> if not enough bytes are available yet</p>
1240 </div>
1241
1242
1243
1244 <dl>
1245     <dt>
1246         Type
1247     </dt>
1248     <dd>
1249         
1250 <span class="param-type"><a href="ProtoBuf.Builder.Message.html">ProtoBuf.Builder.Message</a></span>
1251
1252
1253     </dd>
1254 </dl>
1255
1256     
1257
1258
1259
1260         
1261             
1262
1263     
1264
1265     <h4 class="name" id=".decodeHex"><span class="type-signature">(static) </span>decodeHex<span class="signature">(str)</span><span class="type-signature"> &rarr; (non-null) {<a href="ProtoBuf.Builder.Message.html">ProtoBuf.Builder.Message</a>}</span></h4>
1266
1267     
1268
1269
1270
1271 <div class="description">
1272     <p>Decodes the message from the specified hex encoded string.</p>
1273 </div>
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283     <h5>Parameters:</h5>
1284     
1285
1286 <table class="params">
1287     <thead>
1288     <tr>
1289         
1290         <th>Name</th>
1291         
1292
1293         <th>Type</th>
1294
1295         
1296
1297         
1298
1299         <th class="last">Description</th>
1300     </tr>
1301     </thead>
1302
1303     <tbody>
1304     
1305
1306         <tr>
1307             
1308                 <td class="name"><code>str</code></td>
1309             
1310
1311             <td class="type">
1312             
1313                 
1314 <span class="param-type">string</span>
1315
1316
1317             
1318             </td>
1319
1320             
1321
1322             
1323
1324             <td class="description last"><p>String to decode from</p></td>
1325         </tr>
1326
1327     
1328     </tbody>
1329 </table>
1330
1331
1332
1333
1334
1335
1336 <dl class="details">
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     <dt class="tag-source">Source:</dt>
1364     <dd class="tag-source"><ul class="dummy"><li>
1365         <a href="protobuf.js.html">protobuf.js</a>, <a href="protobuf.js.html#line3009">line 3009</a>
1366     </li></ul></dd>
1367     
1368
1369     
1370
1371     
1372
1373     
1374 </dl>
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386 <h5>Throws:</h5>
1387
1388         
1389
1390 <dl>
1391     <dt>
1392         <div class="param-desc">
1393         <p>If the message cannot be decoded or if required fields are missing. The later still
1394  returns the decoded message with missing fields in the <code>decoded</code> property on the error.</p>
1395         </div>
1396     </dt>
1397     <dd></dd>
1398     <dt>
1399         <dl>
1400             <dt>
1401                 Type
1402             </dt>
1403             <dd>
1404                 
1405 <span class="param-type">Error</span>
1406
1407
1408             </dd>
1409         </dl>
1410     </dt>
1411     <dd></dd>
1412 </dl>
1413
1414
1415     
1416
1417
1418 <h5>Returns:</h5>
1419
1420         
1421 <div class="param-desc">
1422     <p>Decoded message</p>
1423 </div>
1424
1425
1426
1427 <dl>
1428     <dt>
1429         Type
1430     </dt>
1431     <dd>
1432         
1433 <span class="param-type"><a href="ProtoBuf.Builder.Message.html">ProtoBuf.Builder.Message</a></span>
1434
1435
1436     </dd>
1437 </dl>
1438
1439     
1440
1441
1442
1443         
1444             
1445
1446     
1447
1448     <h4 class="name" id=".decodeJSON"><span class="type-signature">(static) </span>decodeJSON<span class="signature">(str)</span><span class="type-signature"> &rarr; (non-null) {<a href="ProtoBuf.Builder.Message.html">ProtoBuf.Builder.Message</a>}</span></h4>
1449
1450     
1451
1452
1453
1454 <div class="description">
1455     <p>Decodes the message from a JSON string.</p>
1456 </div>
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466     <h5>Parameters:</h5>
1467     
1468
1469 <table class="params">
1470     <thead>
1471     <tr>
1472         
1473         <th>Name</th>
1474         
1475
1476         <th>Type</th>
1477
1478         
1479
1480         
1481
1482         <th class="last">Description</th>
1483     </tr>
1484     </thead>
1485
1486     <tbody>
1487     
1488
1489         <tr>
1490             
1491                 <td class="name"><code>str</code></td>
1492             
1493
1494             <td class="type">
1495             
1496                 
1497 <span class="param-type">string</span>
1498
1499
1500             
1501             </td>
1502
1503             
1504
1505             
1506
1507             <td class="description last"><p>String to decode from</p></td>
1508         </tr>
1509
1510     
1511     </tbody>
1512 </table>
1513
1514
1515
1516
1517
1518
1519 <dl class="details">
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     <dt class="tag-source">Source:</dt>
1547     <dd class="tag-source"><ul class="dummy"><li>
1548         <a href="protobuf.js.html">protobuf.js</a>, <a href="protobuf.js.html#line3023">line 3023</a>
1549     </li></ul></dd>
1550     
1551
1552     
1553
1554     
1555
1556     
1557 </dl>
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569 <h5>Throws:</h5>
1570
1571         
1572
1573 <dl>
1574     <dt>
1575         <div class="param-desc">
1576         <p>If the message cannot be decoded or if required fields are
1577 missing.</p>
1578         </div>
1579     </dt>
1580     <dd></dd>
1581     <dt>
1582         <dl>
1583             <dt>
1584                 Type
1585             </dt>
1586             <dd>
1587                 
1588 <span class="param-type">Error</span>
1589
1590
1591             </dd>
1592         </dl>
1593     </dt>
1594     <dd></dd>
1595 </dl>
1596
1597
1598     
1599
1600
1601 <h5>Returns:</h5>
1602
1603         
1604 <div class="param-desc">
1605     <p>Decoded message</p>
1606 </div>
1607
1608
1609
1610 <dl>
1611     <dt>
1612         Type
1613     </dt>
1614     <dd>
1615         
1616 <span class="param-type"><a href="ProtoBuf.Builder.Message.html">ProtoBuf.Builder.Message</a></span>
1617
1618
1619     </dd>
1620 </dl>
1621
1622     
1623
1624
1625
1626         
1627             
1628
1629     
1630
1631     <h4 class="name" id="$add"><span class="type-signature"></span>$add<span class="signature">(key, value, noAssert<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; (non-null) {<a href="ProtoBuf.Builder.Message.html">ProtoBuf.Builder.Message</a>}</span></h4>
1632
1633     
1634
1635
1636
1637 <div class="description">
1638     <p>Adds a value to a repeated field. This is an alias for <a href="ProtoBuf.Builder.Message.html#add">ProtoBuf.Builder.Message#add</a>.</p>
1639 </div>
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649     <h5>Parameters:</h5>
1650     
1651
1652 <table class="params">
1653     <thead>
1654     <tr>
1655         
1656         <th>Name</th>
1657         
1658
1659         <th>Type</th>
1660
1661         
1662         <th>Attributes</th>
1663         
1664
1665         
1666
1667         <th class="last">Description</th>
1668     </tr>
1669     </thead>
1670
1671     <tbody>
1672     
1673
1674         <tr>
1675             
1676                 <td class="name"><code>key</code></td>
1677             
1678
1679             <td class="type">
1680             
1681                 
1682 <span class="param-type">string</span>
1683
1684
1685             
1686             </td>
1687
1688             
1689                 <td class="attributes">
1690                 
1691
1692                 
1693
1694                 
1695                 </td>
1696             
1697
1698             
1699
1700             <td class="description last"><p>Field name</p></td>
1701         </tr>
1702
1703     
1704
1705         <tr>
1706             
1707                 <td class="name"><code>value</code></td>
1708             
1709
1710             <td class="type">
1711             
1712                 
1713 <span class="param-type">*</span>
1714
1715
1716             
1717             </td>
1718
1719             
1720                 <td class="attributes">
1721                 
1722
1723                 
1724
1725                 
1726                 </td>
1727             
1728
1729             
1730
1731             <td class="description last"><p>Value to add</p></td>
1732         </tr>
1733
1734     
1735
1736         <tr>
1737             
1738                 <td class="name"><code>noAssert</code></td>
1739             
1740
1741             <td class="type">
1742             
1743                 
1744 <span class="param-type">boolean</span>
1745
1746
1747             
1748             </td>
1749
1750             
1751                 <td class="attributes">
1752                 
1753                     &lt;optional><br>
1754                 
1755
1756                 
1757
1758                 
1759                 </td>
1760             
1761
1762             
1763
1764             <td class="description last"><p>Whether to assert the value or not (asserts by default)</p></td>
1765         </tr>
1766
1767     
1768     </tbody>
1769 </table>
1770
1771
1772
1773
1774
1775
1776 <dl class="details">
1777
1778     
1779
1780     
1781
1782     
1783
1784     
1785
1786     
1787
1788     
1789
1790     
1791
1792     
1793
1794     
1795
1796     
1797
1798     
1799
1800     
1801
1802     
1803     <dt class="tag-source">Source:</dt>
1804     <dd class="tag-source"><ul class="dummy"><li>
1805         <a href="protobuf.js.html">protobuf.js</a>, <a href="protobuf.js.html#line2453">line 2453</a>
1806     </li></ul></dd>
1807     
1808
1809     
1810
1811     
1812
1813     
1814 </dl>
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826 <h5>Throws:</h5>
1827
1828         
1829
1830 <dl>
1831     <dt>
1832         <div class="param-desc">
1833         <p>If the value cannot be added</p>
1834         </div>
1835     </dt>
1836     <dd></dd>
1837     <dt>
1838         <dl>
1839             <dt>
1840                 Type
1841             </dt>
1842             <dd>
1843                 
1844 <span class="param-type">Error</span>
1845
1846
1847             </dd>
1848         </dl>
1849     </dt>
1850     <dd></dd>
1851 </dl>
1852
1853
1854     
1855
1856
1857 <h5>Returns:</h5>
1858
1859         
1860 <div class="param-desc">
1861     <p>this</p>
1862 </div>
1863
1864
1865
1866 <dl>
1867     <dt>
1868         Type
1869     </dt>
1870     <dd>
1871         
1872 <span class="param-type"><a href="ProtoBuf.Builder.Message.html">ProtoBuf.Builder.Message</a></span>
1873
1874
1875     </dd>
1876 </dl>
1877
1878     
1879
1880
1881
1882         
1883             
1884
1885     
1886
1887     <h4 class="name" id="$encode"><span class="type-signature"></span>$encode<span class="signature">(buffer<span class="signature-attributes">opt</span>, noVerify<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; (non-null) {ByteBuffer}</span></h4>
1888
1889     
1890
1891
1892
1893 <div class="description">
1894     <p>Encodes the message.</p>
1895 </div>
1896
1897
1898
1899
1900
1901
1902
1903
1904
1905     <h5>Parameters:</h5>
1906     
1907
1908 <table class="params">
1909     <thead>
1910     <tr>
1911         
1912         <th>Name</th>
1913         
1914
1915         <th>Type</th>
1916
1917         
1918         <th>Attributes</th>
1919         
1920
1921         
1922
1923         <th class="last">Description</th>
1924     </tr>
1925     </thead>
1926
1927     <tbody>
1928     
1929
1930         <tr>
1931             
1932                 <td class="name"><code>buffer</code></td>
1933             
1934
1935             <td class="type">
1936             
1937                 
1938 <span class="param-type">ByteBuffer</span>
1939 |
1940
1941 <span class="param-type">boolean</span>
1942
1943
1944             
1945             </td>
1946
1947             
1948                 <td class="attributes">
1949                 
1950                     &lt;optional><br>
1951                 
1952
1953                 
1954
1955                 
1956                 </td>
1957             
1958
1959             
1960
1961             <td class="description last"><p>ByteBuffer to encode to. Will create a new one and flip it if omitted.</p></td>
1962         </tr>
1963
1964     
1965
1966         <tr>
1967             
1968                 <td class="name"><code>noVerify</code></td>
1969             
1970
1971             <td class="type">
1972             
1973                 
1974 <span class="param-type">boolean</span>
1975
1976
1977             
1978             </td>
1979
1980             
1981                 <td class="attributes">
1982                 
1983                     &lt;optional><br>
1984                 
1985
1986                 
1987
1988                 
1989                 </td>
1990             
1991
1992             
1993
1994             <td class="description last"><p>Whether to not verify field values, defaults to <code>false</code></p></td>
1995         </tr>
1996
1997     
1998     </tbody>
1999 </table>
2000
2001
2002
2003
2004
2005
2006 <dl class="details">
2007
2008     
2009
2010     
2011
2012     
2013
2014     
2015
2016     
2017
2018     
2019
2020     
2021
2022     
2023
2024     
2025
2026     
2027
2028     
2029
2030     
2031
2032     
2033     <dt class="tag-source">Source:</dt>
2034     <dd class="tag-source"><ul class="dummy"><li>
2035         <a href="protobuf.js.html">protobuf.js</a>, <a href="protobuf.js.html#line2651">line 2651</a>
2036     </li></ul></dd>
2037     
2038
2039     
2040
2041     
2042     <dt class="tag-see">See:</dt>
2043     <dd class="tag-see">
2044         <ul>
2045             <li><a href="ProtoBuf.Builder.Message.html#encode64">ProtoBuf.Builder.Message#encode64</a></li>
2046         
2047             <li><a href="ProtoBuf.Builder.Message.html#encodeHex">ProtoBuf.Builder.Message#encodeHex</a></li>
2048         
2049             <li><a href="ProtoBuf.Builder.Message.html#encodeAB">ProtoBuf.Builder.Message#encodeAB</a></li>
2050         </ul>
2051     </dd>
2052     
2053
2054     
2055 </dl>
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067 <h5>Throws:</h5>
2068
2069         
2070
2071 <dl>
2072     <dt>
2073         <div class="param-desc">
2074         <p>If the message cannot be encoded or if required fields are missing. The later still
2075  returns the encoded ByteBuffer in the <code>encoded</code> property on the error.</p>
2076         </div>
2077     </dt>
2078     <dd></dd>
2079     <dt>
2080         <dl>
2081             <dt>
2082                 Type
2083             </dt>
2084             <dd>
2085                 
2086 <span class="param-type">Error</span>
2087
2088
2089             </dd>
2090         </dl>
2091     </dt>
2092     <dd></dd>
2093 </dl>
2094
2095
2096     
2097
2098
2099 <h5>Returns:</h5>
2100
2101         
2102 <div class="param-desc">
2103     <p>Encoded message as a ByteBuffer</p>
2104 </div>
2105
2106
2107
2108 <dl>
2109     <dt>
2110         Type
2111     </dt>
2112     <dd>
2113         
2114 <span class="param-type">ByteBuffer</span>
2115
2116
2117     </dd>
2118 </dl>
2119
2120     
2121
2122
2123
2124         
2125             
2126
2127     
2128
2129     <h4 class="name" id="$get"><span class="type-signature"></span>$get<span class="signature">(key)</span><span class="type-signature"> &rarr; {*}</span></h4>
2130
2131     
2132
2133
2134
2135 <div class="description">
2136     <p>Gets a field's value. This is an alias for <a href="ProtoBuf.Builder.Message.html#$get">ProtoBuf.Builder.Message#$get</a>.</p>
2137 </div>
2138
2139
2140
2141
2142
2143
2144
2145
2146
2147     <h5>Parameters:</h5>
2148     
2149
2150 <table class="params">
2151     <thead>
2152     <tr>
2153         
2154         <th>Name</th>
2155         
2156
2157         <th>Type</th>
2158
2159         
2160
2161         
2162
2163         <th class="last">Description</th>
2164     </tr>
2165     </thead>
2166
2167     <tbody>
2168     
2169
2170         <tr>
2171             
2172                 <td class="name"><code>key</code></td>
2173             
2174
2175             <td class="type">
2176             
2177                 
2178 <span class="param-type">string</span>
2179
2180
2181             
2182             </td>
2183
2184             
2185
2186             
2187
2188             <td class="description last"><p>Key</p></td>
2189         </tr>
2190
2191     
2192     </tbody>
2193 </table>
2194
2195
2196
2197
2198
2199
2200 <dl class="details">
2201
2202     
2203
2204     
2205
2206     
2207
2208     
2209
2210     
2211
2212     
2213
2214     
2215
2216     
2217
2218     
2219
2220     
2221
2222     
2223
2224     
2225
2226     
2227     <dt class="tag-source">Source:</dt>
2228     <dd class="tag-source"><ul class="dummy"><li>
2229         <a href="protobuf.js.html">protobuf.js</a>, <a href="protobuf.js.html#line2541">line 2541</a>
2230     </li></ul></dd>
2231     
2232
2233     
2234
2235     
2236
2237     
2238 </dl>
2239
2240
2241
2242
2243
2244
2245
2246
2247
2248
2249
2250 <h5>Throws:</h5>
2251
2252         
2253
2254 <dl>
2255     <dt>
2256         <div class="param-desc">
2257         <p>If there is no such field</p>
2258         </div>
2259     </dt>
2260     <dd></dd>
2261     <dt>
2262         <dl>
2263             <dt>
2264                 Type
2265             </dt>
2266             <dd>
2267                 
2268 <span class="param-type">Error</span>
2269
2270
2271             </dd>
2272         </dl>
2273     </dt>
2274     <dd></dd>
2275 </dl>
2276
2277
2278     
2279
2280
2281 <h5>Returns:</h5>
2282
2283         
2284 <div class="param-desc">
2285     <p>Value</p>
2286 </div>
2287
2288
2289
2290 <dl>
2291     <dt>
2292         Type
2293     </dt>
2294     <dd>
2295         
2296 <span class="param-type">*</span>
2297
2298
2299     </dd>
2300 </dl>
2301
2302     
2303
2304
2305
2306         
2307             
2308
2309     
2310
2311     <h4 class="name" id="$set"><span class="type-signature"></span>$set<span class="signature">(keyOrObj, value<span class="signature-attributes">opt</span>, noAssert<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4>
2312
2313     
2314
2315
2316
2317 <div class="description">
2318     <p>Sets a field's value. This is an alias for [@link ProtoBuf.Builder.Message#set}.</p>
2319 </div>
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329     <h5>Parameters:</h5>
2330     
2331
2332 <table class="params">
2333     <thead>
2334     <tr>
2335         
2336         <th>Name</th>
2337         
2338
2339         <th>Type</th>
2340
2341         
2342         <th>Attributes</th>
2343         
2344
2345         
2346
2347         <th class="last">Description</th>
2348     </tr>
2349     </thead>
2350
2351     <tbody>
2352     
2353
2354         <tr>
2355             
2356                 <td class="name"><code>keyOrObj</code></td>
2357             
2358
2359             <td class="type">
2360             
2361                 
2362 <span class="param-type">string</span>
2363 |
2364
2365 <span class="param-type">!Object.&lt;string, *></span>
2366
2367
2368             
2369             </td>
2370
2371             
2372                 <td class="attributes">
2373                 
2374
2375                 
2376
2377                 
2378                 </td>
2379             
2380
2381             
2382
2383             <td class="description last"><p>String key or plain object holding multiple values</p></td>
2384         </tr>
2385
2386     
2387
2388         <tr>
2389             
2390                 <td class="name"><code>value</code></td>
2391             
2392
2393             <td class="type">
2394             
2395                 
2396 <span class="param-type">*</span>
2397 |
2398
2399 <span class="param-type">boolean</span>
2400
2401
2402             
2403             </td>
2404
2405             
2406                 <td class="attributes">
2407                 
2408                     &lt;optional><br>
2409                 
2410
2411                 
2412
2413                 
2414                 </td>
2415             
2416
2417             
2418
2419             <td class="description last"><p>Value to set if key is a string, otherwise omitted</p></td>
2420         </tr>
2421
2422     
2423
2424         <tr>
2425             
2426                 <td class="name"><code>noAssert</code></td>
2427             
2428
2429             <td class="type">
2430             
2431                 
2432 <span class="param-type">boolean</span>
2433
2434
2435             
2436             </td>
2437
2438             
2439                 <td class="attributes">
2440                 
2441                     &lt;optional><br>
2442                 
2443
2444                 
2445
2446                 
2447                 </td>
2448             
2449
2450             
2451
2452             <td class="description last"><p>Whether to not assert the value, defaults to <code>false</code></p></td>
2453         </tr>
2454
2455     
2456     </tbody>
2457 </table>
2458
2459
2460
2461
2462
2463
2464 <dl class="details">
2465
2466     
2467
2468     
2469
2470     
2471
2472     
2473
2474     
2475
2476     
2477
2478     
2479
2480     
2481
2482     
2483
2484     
2485
2486     
2487
2488     
2489
2490     
2491     <dt class="tag-source">Source:</dt>
2492     <dd class="tag-source"><ul class="dummy"><li>
2493         <a href="protobuf.js.html">protobuf.js</a>, <a href="protobuf.js.html#line2508">line 2508</a>
2494     </li></ul></dd>
2495     
2496
2497     
2498
2499     
2500
2501     
2502 </dl>
2503
2504
2505
2506
2507
2508
2509
2510
2511
2512
2513
2514 <h5>Throws:</h5>
2515
2516         
2517
2518 <dl>
2519     <dt>
2520         <div class="param-desc">
2521         <p>If the value cannot be set</p>
2522         </div>
2523     </dt>
2524     <dd></dd>
2525     <dt>
2526         <dl>
2527             <dt>
2528                 Type
2529             </dt>
2530             <dd>
2531                 
2532 <span class="param-type">Error</span>
2533
2534
2535             </dd>
2536         </dl>
2537     </dt>
2538     <dd></dd>
2539 </dl>
2540
2541
2542     
2543
2544
2545
2546
2547
2548         
2549             
2550
2551     
2552
2553     <h4 class="name" id="add"><span class="type-signature"></span>add<span class="signature">(key, value, noAssert<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; (non-null) {<a href="ProtoBuf.Builder.Message.html">ProtoBuf.Builder.Message</a>}</span></h4>
2554
2555     
2556
2557
2558
2559 <div class="description">
2560     <p>Adds a value to a repeated field.</p>
2561 </div>
2562
2563
2564
2565
2566
2567
2568
2569
2570
2571     <h5>Parameters:</h5>
2572     
2573
2574 <table class="params">
2575     <thead>
2576     <tr>
2577         
2578         <th>Name</th>
2579         
2580
2581         <th>Type</th>
2582
2583         
2584         <th>Attributes</th>
2585         
2586
2587         
2588
2589         <th class="last">Description</th>
2590     </tr>
2591     </thead>
2592
2593     <tbody>
2594     
2595
2596         <tr>
2597             
2598                 <td class="name"><code>key</code></td>
2599             
2600
2601             <td class="type">
2602             
2603                 
2604 <span class="param-type">string</span>
2605
2606
2607             
2608             </td>
2609
2610             
2611                 <td class="attributes">
2612                 
2613
2614                 
2615
2616                 
2617                 </td>
2618             
2619
2620             
2621
2622             <td class="description last"><p>Field name</p></td>
2623         </tr>
2624
2625     
2626
2627         <tr>
2628             
2629                 <td class="name"><code>value</code></td>
2630             
2631
2632             <td class="type">
2633             
2634                 
2635 <span class="param-type">*</span>
2636
2637
2638             
2639             </td>
2640
2641             
2642                 <td class="attributes">
2643                 
2644
2645                 
2646
2647                 
2648                 </td>
2649             
2650
2651             
2652
2653             <td class="description last"><p>Value to add</p></td>
2654         </tr>
2655
2656     
2657
2658         <tr>
2659             
2660                 <td class="name"><code>noAssert</code></td>
2661             
2662
2663             <td class="type">
2664             
2665                 
2666 <span class="param-type">boolean</span>
2667
2668
2669             
2670             </td>
2671
2672             
2673                 <td class="attributes">
2674                 
2675                     &lt;optional><br>
2676                 
2677
2678                 
2679
2680                 
2681                 </td>
2682             
2683
2684             
2685
2686             <td class="description last"><p>Whether to assert the value or not (asserts by default)</p></td>
2687         </tr>
2688
2689     
2690     </tbody>
2691 </table>
2692
2693
2694
2695
2696
2697
2698 <dl class="details">
2699
2700     
2701
2702     
2703
2704     
2705
2706     
2707
2708     
2709
2710     
2711
2712     
2713
2714     
2715
2716     
2717
2718     
2719
2720     
2721
2722     
2723
2724     
2725     <dt class="tag-source">Source:</dt>
2726     <dd class="tag-source"><ul class="dummy"><li>
2727         <a href="protobuf.js.html">protobuf.js</a>, <a href="protobuf.js.html#line2425">line 2425</a>
2728     </li></ul></dd>
2729     
2730
2731     
2732
2733     
2734
2735     
2736 </dl>
2737
2738
2739
2740
2741
2742
2743
2744
2745
2746
2747
2748 <h5>Throws:</h5>
2749
2750         
2751
2752 <dl>
2753     <dt>
2754         <div class="param-desc">
2755         <p>If the value cannot be added</p>
2756         </div>
2757     </dt>
2758     <dd></dd>
2759     <dt>
2760         <dl>
2761             <dt>
2762                 Type
2763             </dt>
2764             <dd>
2765                 
2766 <span class="param-type">Error</span>
2767
2768
2769             </dd>
2770         </dl>
2771     </dt>
2772     <dd></dd>
2773 </dl>
2774
2775
2776     
2777
2778
2779 <h5>Returns:</h5>
2780
2781         
2782 <div class="param-desc">
2783     <p>this</p>
2784 </div>
2785
2786
2787
2788 <dl>
2789     <dt>
2790         Type
2791     </dt>
2792     <dd>
2793         
2794 <span class="param-type"><a href="ProtoBuf.Builder.Message.html">ProtoBuf.Builder.Message</a></span>
2795
2796
2797     </dd>
2798 </dl>
2799
2800     
2801
2802
2803
2804         
2805             
2806
2807     
2808
2809     <h4 class="name" id="calculate"><span class="type-signature"></span>calculate<span class="signature">()</span><span class="type-signature"> &rarr; {number}</span></h4>
2810
2811     
2812
2813
2814
2815 <div class="description">
2816     <p>Calculates the byte length of the message.</p>
2817 </div>
2818
2819
2820
2821
2822
2823
2824
2825
2826
2827
2828
2829
2830
2831 <dl class="details">
2832
2833     
2834
2835     
2836
2837     
2838
2839     
2840
2841     
2842
2843     
2844
2845     
2846
2847     
2848
2849     
2850
2851     
2852
2853     
2854
2855     
2856
2857     
2858     <dt class="tag-source">Source:</dt>
2859     <dd class="tag-source"><ul class="dummy"><li>
2860         <a href="protobuf.js.html">protobuf.js</a>, <a href="protobuf.js.html#line2695">line 2695</a>
2861     </li></ul></dd>
2862     
2863
2864     
2865
2866     
2867
2868     
2869 </dl>
2870
2871
2872
2873
2874
2875
2876
2877
2878
2879
2880
2881 <h5>Throws:</h5>
2882
2883         
2884
2885 <dl>
2886     <dt>
2887         <div class="param-desc">
2888         <p>If the message cannot be calculated or if required fields are missing.</p>
2889         </div>
2890     </dt>
2891     <dd></dd>
2892     <dt>
2893         <dl>
2894             <dt>
2895                 Type
2896             </dt>
2897             <dd>
2898                 
2899 <span class="param-type">Error</span>
2900
2901
2902             </dd>
2903         </dl>
2904     </dt>
2905     <dd></dd>
2906 </dl>
2907
2908
2909     
2910
2911
2912 <h5>Returns:</h5>
2913
2914         
2915 <div class="param-desc">
2916     <p>Byte length</p>
2917 </div>
2918
2919
2920
2921 <dl>
2922     <dt>
2923         Type
2924     </dt>
2925     <dd>
2926         
2927 <span class="param-type">number</span>
2928
2929
2930     </dd>
2931 </dl>
2932
2933     
2934
2935
2936
2937         
2938             
2939
2940     
2941
2942     <h4 class="name" id="encode64"><span class="type-signature"></span>encode64<span class="signature">()</span><span class="type-signature"> &rarr; {string}</span></h4>
2943
2944     
2945
2946
2947
2948 <div class="description">
2949     <p>Directly encodes the message to a base64 encoded string.</p>
2950 </div>
2951
2952
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964 <dl class="details">
2965
2966     
2967
2968     
2969
2970     
2971
2972     
2973
2974     
2975
2976     
2977
2978     
2979
2980     
2981
2982     
2983
2984     
2985
2986     
2987
2988     
2989
2990     
2991     <dt class="tag-source">Source:</dt>
2992     <dd class="tag-source"><ul class="dummy"><li>
2993         <a href="protobuf.js.html">protobuf.js</a>, <a href="protobuf.js.html#line2788">line 2788</a>
2994     </li></ul></dd>
2995     
2996
2997     
2998
2999     
3000
3001     
3002 </dl>
3003
3004
3005
3006
3007
3008
3009
3010
3011
3012
3013
3014 <h5>Throws:</h5>
3015
3016         
3017
3018 <dl>
3019     <dt>
3020         <div class="param-desc">
3021         <p>If the underlying buffer cannot be encoded or if required fields are missing. The later
3022  still returns the encoded base64 string in the <code>encoded</code> property on the error.</p>
3023         </div>
3024     </dt>
3025     <dd></dd>
3026     <dt>
3027         <dl>
3028             <dt>
3029                 Type
3030             </dt>
3031             <dd>
3032                 
3033 <span class="param-type">Error</span>
3034
3035
3036             </dd>
3037         </dl>
3038     </dt>
3039     <dd></dd>
3040 </dl>
3041
3042
3043     
3044
3045
3046 <h5>Returns:</h5>
3047
3048         
3049 <div class="param-desc">
3050     <p>Base64 encoded string</p>
3051 </div>
3052
3053
3054
3055 <dl>
3056     <dt>
3057         Type
3058     </dt>
3059     <dd>
3060         
3061 <span class="param-type">string</span>
3062
3063
3064     </dd>
3065 </dl>
3066
3067     
3068
3069
3070
3071         
3072             
3073
3074     
3075
3076     <h4 class="name" id="encodeAB"><span class="type-signature"></span>encodeAB<span class="signature">()</span><span class="type-signature"> &rarr; {ArrayBuffer}</span></h4>
3077
3078     
3079
3080
3081
3082 <div class="description">
3083     <p>Directly encodes the message to an ArrayBuffer.</p>
3084 </div>
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098 <dl class="details">
3099
3100     
3101
3102     
3103
3104     
3105
3106     
3107
3108     
3109
3110     
3111
3112     
3113
3114     
3115
3116     
3117
3118     
3119
3120     
3121
3122     
3123
3124     
3125     <dt class="tag-source">Source:</dt>
3126     <dd class="tag-source"><ul class="dummy"><li>
3127         <a href="protobuf.js.html">protobuf.js</a>, <a href="protobuf.js.html#line2730">line 2730</a>
3128     </li></ul></dd>
3129     
3130
3131     
3132
3133     
3134
3135     
3136 </dl>
3137
3138
3139
3140
3141
3142
3143
3144
3145
3146
3147
3148 <h5>Throws:</h5>
3149
3150         
3151
3152 <dl>
3153     <dt>
3154         <div class="param-desc">
3155         <p>If the message cannot be encoded or if required fields are missing. The later still
3156  returns the encoded ArrayBuffer in the <code>encoded</code> property on the error.</p>
3157         </div>
3158     </dt>
3159     <dd></dd>
3160     <dt>
3161         <dl>
3162             <dt>
3163                 Type
3164             </dt>
3165             <dd>
3166                 
3167 <span class="param-type">Error</span>
3168
3169
3170             </dd>
3171         </dl>
3172     </dt>
3173     <dd></dd>
3174 </dl>
3175
3176
3177     
3178
3179
3180 <h5>Returns:</h5>
3181
3182         
3183 <div class="param-desc">
3184     <p>Encoded message as ArrayBuffer</p>
3185 </div>
3186
3187
3188
3189 <dl>
3190     <dt>
3191         Type
3192     </dt>
3193     <dd>
3194         
3195 <span class="param-type">ArrayBuffer</span>
3196
3197
3198     </dd>
3199 </dl>
3200
3201     
3202
3203
3204
3205         
3206             
3207
3208     
3209
3210     <h4 class="name" id="encodeDelimited"><span class="type-signature"></span>encodeDelimited<span class="signature">(buffer<span class="signature-attributes">opt</span>, noVerify<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; (non-null) {ByteBuffer}</span></h4>
3211
3212     
3213
3214
3215
3216 <div class="description">
3217     <p>Encodes the varint32 length-delimited message.</p>
3218 </div>
3219
3220
3221
3222
3223
3224
3225
3226
3227
3228     <h5>Parameters:</h5>
3229     
3230
3231 <table class="params">
3232     <thead>
3233     <tr>
3234         
3235         <th>Name</th>
3236         
3237
3238         <th>Type</th>
3239
3240         
3241         <th>Attributes</th>
3242         
3243
3244         
3245
3246         <th class="last">Description</th>
3247     </tr>
3248     </thead>
3249
3250     <tbody>
3251     
3252
3253         <tr>
3254             
3255                 <td class="name"><code>buffer</code></td>
3256             
3257
3258             <td class="type">
3259             
3260                 
3261 <span class="param-type">ByteBuffer</span>
3262 |
3263
3264 <span class="param-type">boolean</span>
3265
3266
3267             
3268             </td>
3269
3270             
3271                 <td class="attributes">
3272                 
3273                     &lt;optional><br>
3274                 
3275
3276                 
3277
3278                 
3279                 </td>
3280             
3281
3282             
3283
3284             <td class="description last"><p>ByteBuffer to encode to. Will create a new one and flip it if omitted.</p></td>
3285         </tr>
3286
3287     
3288
3289         <tr>
3290             
3291                 <td class="name"><code>noVerify</code></td>
3292             
3293
3294             <td class="type">
3295             
3296                 
3297 <span class="param-type">boolean</span>
3298
3299
3300             
3301             </td>
3302
3303             
3304                 <td class="attributes">
3305                 
3306                     &lt;optional><br>
3307                 
3308
3309                 
3310
3311                 
3312                 </td>
3313             
3314
3315             
3316
3317             <td class="description last"><p>Whether to not verify field values, defaults to <code>false</code></p></td>
3318         </tr>
3319
3320     
3321     </tbody>
3322 </table>
3323
3324
3325
3326
3327
3328
3329 <dl class="details">
3330
3331     
3332
3333     
3334
3335     
3336
3337     
3338
3339     
3340
3341     
3342
3343     
3344
3345     
3346
3347     
3348
3349     
3350
3351     
3352
3353     
3354
3355     
3356     <dt class="tag-source">Source:</dt>
3357     <dd class="tag-source"><ul class="dummy"><li>
3358         <a href="protobuf.js.html">protobuf.js</a>, <a href="protobuf.js.html#line2707">line 2707</a>
3359     </li></ul></dd>
3360     
3361
3362     
3363
3364     
3365
3366     
3367 </dl>
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379 <h5>Throws:</h5>
3380
3381         
3382
3383 <dl>
3384     <dt>
3385         <div class="param-desc">
3386         <p>If the message cannot be encoded or if required fields are missing. The later still
3387  returns the encoded ByteBuffer in the <code>encoded</code> property on the error.</p>
3388         </div>
3389     </dt>
3390     <dd></dd>
3391     <dt>
3392         <dl>
3393             <dt>
3394                 Type
3395             </dt>
3396             <dd>
3397                 
3398 <span class="param-type">Error</span>
3399
3400
3401             </dd>
3402         </dl>
3403     </dt>
3404     <dd></dd>
3405 </dl>
3406
3407
3408     
3409
3410
3411 <h5>Returns:</h5>
3412
3413         
3414 <div class="param-desc">
3415     <p>Encoded message as a ByteBuffer</p>
3416 </div>
3417
3418
3419
3420 <dl>
3421     <dt>
3422         Type
3423     </dt>
3424     <dd>
3425         
3426 <span class="param-type">ByteBuffer</span>
3427
3428
3429     </dd>
3430 </dl>
3431
3432     
3433
3434
3435
3436         
3437             
3438
3439     
3440
3441     <h4 class="name" id="encodeHex"><span class="type-signature"></span>encodeHex<span class="signature">()</span><span class="type-signature"> &rarr; {string}</span></h4>
3442
3443     
3444
3445
3446
3447 <div class="description">
3448     <p>Directly encodes the message to a hex encoded string.</p>
3449 </div>
3450
3451
3452
3453
3454
3455
3456
3457
3458
3459
3460
3461
3462
3463 <dl class="details">
3464
3465     
3466
3467     
3468
3469     
3470
3471     
3472
3473     
3474
3475     
3476
3477     
3478
3479     
3480
3481     
3482
3483     
3484
3485     
3486
3487     
3488
3489     
3490     <dt class="tag-source">Source:</dt>
3491     <dd class="tag-source"><ul class="dummy"><li>
3492         <a href="protobuf.js.html">protobuf.js</a>, <a href="protobuf.js.html#line2817">line 2817</a>
3493     </li></ul></dd>
3494     
3495
3496     
3497
3498     
3499
3500     
3501 </dl>
3502
3503
3504
3505
3506
3507
3508
3509
3510
3511
3512
3513 <h5>Throws:</h5>
3514
3515         
3516
3517 <dl>
3518     <dt>
3519         <div class="param-desc">
3520         <p>If the underlying buffer cannot be encoded or if required fields are missing. The later
3521  still returns the encoded hex string in the <code>encoded</code> property on the error.</p>
3522         </div>
3523     </dt>
3524     <dd></dd>
3525     <dt>
3526         <dl>
3527             <dt>
3528                 Type
3529             </dt>
3530             <dd>
3531                 
3532 <span class="param-type">Error</span>
3533
3534
3535             </dd>
3536         </dl>
3537     </dt>
3538     <dd></dd>
3539 </dl>
3540
3541
3542     
3543
3544
3545 <h5>Returns:</h5>
3546
3547         
3548 <div class="param-desc">
3549     <p>Hex encoded string</p>
3550 </div>
3551
3552
3553
3554 <dl>
3555     <dt>
3556         Type
3557     </dt>
3558     <dd>
3559         
3560 <span class="param-type">string</span>
3561
3562
3563     </dd>
3564 </dl>
3565
3566     
3567
3568
3569
3570         
3571             
3572
3573     
3574
3575     <h4 class="name" id="encodeJSON"><span class="type-signature"></span>encodeJSON<span class="signature">()</span><span class="type-signature"> &rarr; {string}</span></h4>
3576
3577     
3578
3579
3580
3581 <div class="description">
3582     <p>Encodes a message to JSON.</p>
3583 </div>
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593
3594
3595
3596
3597 <dl class="details">
3598
3599     
3600
3601     
3602
3603     
3604
3605     
3606
3607     
3608
3609     
3610
3611     
3612
3613     
3614
3615     
3616
3617     
3618
3619     
3620
3621     
3622
3623     
3624     <dt class="tag-source">Source:</dt>
3625     <dd class="tag-source"><ul class="dummy"><li>
3626         <a href="protobuf.js.html">protobuf.js</a>, <a href="protobuf.js.html#line2918">line 2918</a>
3627     </li></ul></dd>
3628     
3629
3630     
3631
3632     
3633
3634     
3635 </dl>
3636
3637
3638
3639
3640
3641
3642
3643
3644
3645
3646
3647
3648
3649 <h5>Returns:</h5>
3650
3651         
3652 <div class="param-desc">
3653     <p>JSON string</p>
3654 </div>
3655
3656
3657
3658 <dl>
3659     <dt>
3660         Type
3661     </dt>
3662     <dd>
3663         
3664 <span class="param-type">string</span>
3665
3666
3667     </dd>
3668 </dl>
3669
3670     
3671
3672
3673
3674         
3675             
3676
3677     
3678
3679     <h4 class="name" id="encodeNB"><span class="type-signature"></span>encodeNB<span class="signature">()</span><span class="type-signature"> &rarr; (non-null) {Buffer}</span></h4>
3680
3681     
3682
3683
3684
3685 <div class="description">
3686     <p>Directly encodes the message to a node Buffer.</p>
3687 </div>
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698
3699
3700
3701 <dl class="details">
3702
3703     
3704
3705     
3706
3707     
3708
3709     
3710
3711     
3712
3713     
3714
3715     
3716
3717     
3718
3719     
3720
3721     
3722
3723     
3724
3725     
3726
3727     
3728     <dt class="tag-source">Source:</dt>
3729     <dd class="tag-source"><ul class="dummy"><li>
3730         <a href="protobuf.js.html">protobuf.js</a>, <a href="protobuf.js.html#line2759">line 2759</a>
3731     </li></ul></dd>
3732     
3733
3734     
3735
3736     
3737
3738     
3739 </dl>
3740
3741
3742
3743
3744
3745
3746
3747
3748
3749
3750
3751 <h5>Throws:</h5>
3752
3753         
3754
3755 <dl>
3756     <dt>
3757         <div class="param-desc">
3758         <p>If the message cannot be encoded, not running under node.js or if required fields are
3759  missing. The later still returns the encoded node Buffer in the <code>encoded</code> property on the error.</p>
3760         </div>
3761     </dt>
3762     <dd></dd>
3763     <dt>
3764         <dl>
3765             <dt>
3766                 Type
3767             </dt>
3768             <dd>
3769                 
3770 <span class="param-type">Error</span>
3771
3772
3773             </dd>
3774         </dl>
3775     </dt>
3776     <dd></dd>
3777 </dl>
3778
3779
3780     
3781
3782
3783 <h5>Returns:</h5>
3784
3785         
3786
3787
3788 <dl>
3789     <dt>
3790         Type
3791     </dt>
3792     <dd>
3793         
3794 <span class="param-type">Buffer</span>
3795
3796
3797     </dd>
3798 </dl>
3799
3800     
3801
3802
3803
3804         
3805             
3806
3807     
3808
3809     <h4 class="name" id="get"><span class="type-signature"></span>get<span class="signature">(key, noAssert<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {*}</span></h4>
3810
3811     
3812
3813
3814
3815 <div class="description">
3816     <p>Gets a field's value.</p>
3817 </div>
3818
3819
3820
3821
3822
3823
3824
3825
3826
3827     <h5>Parameters:</h5>
3828     
3829
3830 <table class="params">
3831     <thead>
3832     <tr>
3833         
3834         <th>Name</th>
3835         
3836
3837         <th>Type</th>
3838
3839         
3840         <th>Attributes</th>
3841         
3842
3843         
3844
3845         <th class="last">Description</th>
3846     </tr>
3847     </thead>
3848
3849     <tbody>
3850     
3851
3852         <tr>
3853             
3854                 <td class="name"><code>key</code></td>
3855             
3856
3857             <td class="type">
3858             
3859                 
3860 <span class="param-type">string</span>
3861
3862
3863             
3864             </td>
3865
3866             
3867                 <td class="attributes">
3868                 
3869
3870                 
3871
3872                 
3873                 </td>
3874             
3875
3876             
3877
3878             <td class="description last"><p>Key</p></td>
3879         </tr>
3880
3881     
3882
3883         <tr>
3884             
3885                 <td class="name"><code>noAssert</code></td>
3886             
3887
3888             <td class="type">
3889             
3890                 
3891 <span class="param-type">boolean</span>
3892
3893
3894             
3895             </td>
3896
3897             
3898                 <td class="attributes">
3899                 
3900                     &lt;optional><br>
3901                 
3902
3903                 
3904
3905                 
3906                 </td>
3907             
3908
3909             
3910
3911             <td class="description last"><p>Whether to not assert for an actual field, defaults to <code>false</code></p></td>
3912         </tr>
3913
3914     
3915     </tbody>
3916 </table>
3917
3918
3919
3920
3921
3922
3923 <dl class="details">
3924
3925     
3926
3927     
3928
3929     
3930
3931     
3932
3933     
3934
3935     
3936
3937     
3938
3939     
3940
3941     
3942
3943     
3944
3945     
3946
3947     
3948
3949     
3950     <dt class="tag-source">Source:</dt>
3951     <dd class="tag-source"><ul class="dummy"><li>
3952         <a href="protobuf.js.html">protobuf.js</a>, <a href="protobuf.js.html#line2520">line 2520</a>
3953     </li></ul></dd>
3954     
3955
3956     
3957
3958     
3959
3960     
3961 </dl>
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973 <h5>Throws:</h5>
3974
3975         
3976
3977 <dl>
3978     <dt>
3979         <div class="param-desc">
3980         <p>If there is no such field</p>
3981         </div>
3982     </dt>
3983     <dd></dd>
3984     <dt>
3985         <dl>
3986             <dt>
3987                 Type
3988             </dt>
3989             <dd>
3990                 
3991 <span class="param-type">Error</span>
3992
3993
3994             </dd>
3995         </dl>
3996     </dt>
3997     <dd></dd>
3998 </dl>
3999
4000
4001     
4002
4003
4004 <h5>Returns:</h5>
4005
4006         
4007 <div class="param-desc">
4008     <p>Value</p>
4009 </div>
4010
4011
4012
4013 <dl>
4014     <dt>
4015         Type
4016     </dt>
4017     <dd>
4018         
4019 <span class="param-type">*</span>
4020
4021
4022     </dd>
4023 </dl>
4024
4025     
4026
4027
4028
4029         
4030             
4031
4032     
4033
4034     <h4 class="name" id="get%5BSomeField%5D"><span class="type-signature">(abstract) </span>get[SomeField]<span class="signature">()</span><span class="type-signature"> &rarr; {*}</span></h4>
4035
4036     
4037
4038
4039
4040 <div class="description">
4041     <p>Gets a value. This method is present for each field, but only if there is no name conflict with
4042  another field.</p>
4043 </div>
4044
4045
4046
4047
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057 <dl class="details">
4058
4059     
4060
4061     
4062
4063     
4064
4065     
4066
4067     
4068
4069     
4070
4071     
4072
4073     
4074
4075     
4076
4077     
4078
4079     
4080
4081     
4082
4083     
4084     <dt class="tag-source">Source:</dt>
4085     <dd class="tag-source"><ul class="dummy"><li>
4086         <a href="protobuf.js.html">protobuf.js</a>, <a href="protobuf.js.html#line2625">line 2625</a>
4087     </li></ul></dd>
4088     
4089
4090     
4091
4092     
4093
4094     
4095 </dl>
4096
4097
4098
4099
4100
4101
4102
4103
4104
4105
4106
4107
4108
4109 <h5>Returns:</h5>
4110
4111         
4112 <div class="param-desc">
4113     <p>The value</p>
4114 </div>
4115
4116
4117
4118 <dl>
4119     <dt>
4120         Type
4121     </dt>
4122     <dd>
4123         
4124 <span class="param-type">*</span>
4125
4126
4127     </dd>
4128 </dl>
4129
4130     
4131
4132
4133
4134         
4135             
4136
4137     
4138
4139     <h4 class="name" id="get_%5Bsome_field%5D"><span class="type-signature">(abstract) </span>get_[some_field]<span class="signature">()</span><span class="type-signature"> &rarr; {*}</span></h4>
4140
4141     
4142
4143
4144
4145 <div class="description">
4146     <p>Gets a value. This method is present for each field, but only if there is no name conflict with
4147  another field.</p>
4148 </div>
4149
4150
4151
4152
4153
4154
4155
4156
4157
4158
4159
4160
4161
4162 <dl class="details">
4163
4164     
4165
4166     
4167
4168     
4169
4170     
4171
4172     
4173
4174     
4175
4176     
4177
4178     
4179
4180     
4181
4182     
4183
4184     
4185
4186     
4187
4188     
4189     <dt class="tag-source">Source:</dt>
4190     <dd class="tag-source"><ul class="dummy"><li>
4191         <a href="protobuf.js.html">protobuf.js</a>, <a href="protobuf.js.html#line2636">line 2636</a>
4192     </li></ul></dd>
4193     
4194
4195     
4196
4197     
4198
4199     
4200 </dl>
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212
4213
4214 <h5>Returns:</h5>
4215
4216         
4217 <div class="param-desc">
4218     <p>The value</p>
4219 </div>
4220
4221
4222
4223 <dl>
4224     <dt>
4225         Type
4226     </dt>
4227     <dd>
4228         
4229 <span class="param-type">*</span>
4230
4231
4232     </dd>
4233 </dl>
4234
4235     
4236
4237
4238
4239         
4240             
4241
4242     
4243
4244     <h4 class="name" id="set"><span class="type-signature"></span>set<span class="signature">(keyOrObj, value<span class="signature-attributes">opt</span>, noAssert<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; (non-null) {<a href="ProtoBuf.Builder.Message.html">ProtoBuf.Builder.Message</a>}</span></h4>
4245
4246     
4247
4248
4249
4250 <div class="description">
4251     <p>Sets a field's value.</p>
4252 </div>
4253
4254
4255
4256
4257
4258
4259
4260
4261
4262     <h5>Parameters:</h5>
4263     
4264
4265 <table class="params">
4266     <thead>
4267     <tr>
4268         
4269         <th>Name</th>
4270         
4271
4272         <th>Type</th>
4273
4274         
4275         <th>Attributes</th>
4276         
4277
4278         
4279
4280         <th class="last">Description</th>
4281     </tr>
4282     </thead>
4283
4284     <tbody>
4285     
4286
4287         <tr>
4288             
4289                 <td class="name"><code>keyOrObj</code></td>
4290             
4291
4292             <td class="type">
4293             
4294                 
4295 <span class="param-type">string</span>
4296 |
4297
4298 <span class="param-type">!Object.&lt;string, *></span>
4299
4300
4301             
4302             </td>
4303
4304             
4305                 <td class="attributes">
4306                 
4307
4308                 
4309
4310                 
4311                 </td>
4312             
4313
4314             
4315
4316             <td class="description last"><p>String key or plain object holding multiple values</p></td>
4317         </tr>
4318
4319     
4320
4321         <tr>
4322             
4323                 <td class="name"><code>value</code></td>
4324             
4325
4326             <td class="type">
4327             
4328                 
4329 <span class="param-type">*</span>
4330 |
4331
4332 <span class="param-type">boolean</span>
4333
4334
4335             
4336             </td>
4337
4338             
4339                 <td class="attributes">
4340                 
4341                     &lt;optional><br>
4342                 
4343
4344                 
4345
4346                 
4347                 </td>
4348             
4349
4350             
4351
4352             <td class="description last"><p>Value to set if key is a string, otherwise omitted</p></td>
4353         </tr>
4354
4355     
4356
4357         <tr>
4358             
4359                 <td class="name"><code>noAssert</code></td>
4360             
4361
4362             <td class="type">
4363             
4364                 
4365 <span class="param-type">boolean</span>
4366
4367
4368             
4369             </td>
4370
4371             
4372                 <td class="attributes">
4373                 
4374                     &lt;optional><br>
4375                 
4376
4377                 
4378
4379                 
4380                 </td>
4381             
4382
4383             
4384
4385             <td class="description last"><p>Whether to not assert for an actual field / proper value type, defaults to <code>false</code></p></td>
4386         </tr>
4387
4388     
4389     </tbody>
4390 </table>
4391
4392
4393
4394
4395
4396
4397 <dl class="details">
4398
4399     
4400
4401     
4402
4403     
4404
4405     
4406
4407     
4408
4409     
4410
4411     
4412
4413     
4414
4415     
4416
4417     
4418
4419     
4420
4421     
4422
4423     
4424     <dt class="tag-source">Source:</dt>
4425     <dd class="tag-source"><ul class="dummy"><li>
4426         <a href="protobuf.js.html">protobuf.js</a>, <a href="protobuf.js.html#line2466">line 2466</a>
4427     </li></ul></dd>
4428     
4429
4430     
4431
4432     
4433
4434     
4435 </dl>
4436
4437
4438
4439
4440
4441
4442
4443
4444
4445
4446
4447 <h5>Throws:</h5>
4448
4449         
4450
4451 <dl>
4452     <dt>
4453         <div class="param-desc">
4454         <p>If the value cannot be set</p>
4455         </div>
4456     </dt>
4457     <dd></dd>
4458     <dt>
4459         <dl>
4460             <dt>
4461                 Type
4462             </dt>
4463             <dd>
4464                 
4465 <span class="param-type">Error</span>
4466
4467
4468             </dd>
4469         </dl>
4470     </dt>
4471     <dd></dd>
4472 </dl>
4473
4474
4475     
4476
4477
4478 <h5>Returns:</h5>
4479
4480         
4481 <div class="param-desc">
4482     <p>this</p>
4483 </div>
4484
4485
4486
4487 <dl>
4488     <dt>
4489         Type
4490     </dt>
4491     <dd>
4492         
4493 <span class="param-type"><a href="ProtoBuf.Builder.Message.html">ProtoBuf.Builder.Message</a></span>
4494
4495
4496     </dd>
4497 </dl>
4498
4499     
4500
4501
4502
4503         
4504             
4505
4506     
4507
4508     <h4 class="name" id="set%5BSomeField%5D"><span class="type-signature">(abstract) </span>set[SomeField]<span class="signature">(value, noAssert<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; (non-null) {<a href="ProtoBuf.Builder.Message.html">ProtoBuf.Builder.Message</a>}</span></h4>
4509
4510     
4511
4512
4513
4514 <div class="description">
4515     <p>Sets a value. This method is present for each field, but only if there is no name conflict with
4516  another field.</p>
4517 </div>
4518
4519
4520
4521
4522
4523
4524
4525
4526
4527     <h5>Parameters:</h5>
4528     
4529
4530 <table class="params">
4531     <thead>
4532     <tr>
4533         
4534         <th>Name</th>
4535         
4536
4537         <th>Type</th>
4538
4539         
4540         <th>Attributes</th>
4541         
4542
4543         
4544
4545         <th class="last">Description</th>
4546     </tr>
4547     </thead>
4548
4549     <tbody>
4550     
4551
4552         <tr>
4553             
4554                 <td class="name"><code>value</code></td>
4555             
4556
4557             <td class="type">
4558             
4559                 
4560 <span class="param-type">*</span>
4561
4562
4563             
4564             </td>
4565
4566             
4567                 <td class="attributes">
4568                 
4569
4570                 
4571
4572                 
4573                 </td>
4574             
4575
4576             
4577
4578             <td class="description last"><p>Value to set</p></td>
4579         </tr>
4580
4581     
4582
4583         <tr>
4584             
4585                 <td class="name"><code>noAssert</code></td>
4586             
4587
4588             <td class="type">
4589             
4590                 
4591 <span class="param-type">boolean</span>
4592
4593
4594             
4595             </td>
4596
4597             
4598                 <td class="attributes">
4599                 
4600                     &lt;optional><br>
4601                 
4602
4603                 
4604
4605                 
4606                 </td>
4607             
4608
4609             
4610
4611             <td class="description last"><p>Whether to not assert the value, defaults to <code>false</code></p></td>
4612         </tr>
4613
4614     
4615     </tbody>
4616 </table>
4617
4618
4619
4620
4621
4622
4623 <dl class="details">
4624
4625     
4626
4627     
4628
4629     
4630
4631     
4632
4633     
4634
4635     
4636
4637     
4638
4639     
4640
4641     
4642
4643     
4644
4645     
4646
4647     
4648
4649     
4650     <dt class="tag-source">Source:</dt>
4651     <dd class="tag-source"><ul class="dummy"><li>
4652         <a href="protobuf.js.html">protobuf.js</a>, <a href="protobuf.js.html#line2597">line 2597</a>
4653     </li></ul></dd>
4654     
4655
4656     
4657
4658     
4659
4660     
4661 </dl>
4662
4663
4664
4665
4666
4667
4668
4669
4670
4671
4672
4673 <h5>Throws:</h5>
4674
4675         
4676
4677 <dl>
4678     <dt>
4679         <div class="param-desc">
4680         <p>If the value cannot be set</p>
4681         </div>
4682     </dt>
4683     <dd></dd>
4684     <dt>
4685         <dl>
4686             <dt>
4687                 Type
4688             </dt>
4689             <dd>
4690                 
4691 <span class="param-type">Error</span>
4692
4693
4694             </dd>
4695         </dl>
4696     </dt>
4697     <dd></dd>
4698 </dl>
4699
4700
4701     
4702
4703
4704 <h5>Returns:</h5>
4705
4706         
4707 <div class="param-desc">
4708     <p>this</p>
4709 </div>
4710
4711
4712
4713 <dl>
4714     <dt>
4715         Type
4716     </dt>
4717     <dd>
4718         
4719 <span class="param-type"><a href="ProtoBuf.Builder.Message.html">ProtoBuf.Builder.Message</a></span>
4720
4721
4722     </dd>
4723 </dl>
4724
4725     
4726
4727
4728
4729         
4730             
4731
4732     
4733
4734     <h4 class="name" id="set_%5Bsome_field%5D"><span class="type-signature">(abstract) </span>set_[some_field]<span class="signature">(value, noAssert<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; (non-null) {<a href="ProtoBuf.Builder.Message.html">ProtoBuf.Builder.Message</a>}</span></h4>
4735
4736     
4737
4738
4739
4740 <div class="description">
4741     <p>Sets a value. This method is present for each field, but only if there is no name conflict with
4742  another field.</p>
4743 </div>
4744
4745
4746
4747
4748
4749
4750
4751
4752
4753     <h5>Parameters:</h5>
4754     
4755
4756 <table class="params">
4757     <thead>
4758     <tr>
4759         
4760         <th>Name</th>
4761         
4762
4763         <th>Type</th>
4764
4765         
4766         <th>Attributes</th>
4767         
4768
4769         
4770
4771         <th class="last">Description</th>
4772     </tr>
4773     </thead>
4774
4775     <tbody>
4776     
4777
4778         <tr>
4779             
4780                 <td class="name"><code>value</code></td>
4781             
4782
4783             <td class="type">
4784             
4785                 
4786 <span class="param-type">*</span>
4787
4788
4789             
4790             </td>
4791
4792             
4793                 <td class="attributes">
4794                 
4795
4796                 
4797
4798                 
4799                 </td>
4800             
4801
4802             
4803
4804             <td class="description last"><p>Value to set</p></td>
4805         </tr>
4806
4807     
4808
4809         <tr>
4810             
4811                 <td class="name"><code>noAssert</code></td>
4812             
4813
4814             <td class="type">
4815             
4816                 
4817 <span class="param-type">boolean</span>
4818
4819
4820             
4821             </td>
4822
4823             
4824                 <td class="attributes">
4825                 
4826                     &lt;optional><br>
4827                 
4828
4829                 
4830
4831                 
4832                 </td>
4833             
4834
4835             
4836
4837             <td class="description last"><p>Whether to not assert the value, defaults to <code>false</code></p></td>
4838         </tr>
4839
4840     
4841     </tbody>
4842 </table>
4843
4844
4845
4846
4847
4848
4849 <dl class="details">
4850
4851     
4852
4853     
4854
4855     
4856
4857     
4858
4859     
4860
4861     
4862
4863     
4864
4865     
4866
4867     
4868
4869     
4870
4871     
4872
4873     
4874
4875     
4876     <dt class="tag-source">Source:</dt>
4877     <dd class="tag-source"><ul class="dummy"><li>
4878         <a href="protobuf.js.html">protobuf.js</a>, <a href="protobuf.js.html#line2611">line 2611</a>
4879     </li></ul></dd>
4880     
4881
4882     
4883
4884     
4885
4886     
4887 </dl>
4888
4889
4890
4891
4892
4893
4894
4895
4896
4897
4898
4899 <h5>Throws:</h5>
4900
4901         
4902
4903 <dl>
4904     <dt>
4905         <div class="param-desc">
4906         <p>If the value cannot be set</p>
4907         </div>
4908     </dt>
4909     <dd></dd>
4910     <dt>
4911         <dl>
4912             <dt>
4913                 Type
4914             </dt>
4915             <dd>
4916                 
4917 <span class="param-type">Error</span>
4918
4919
4920             </dd>
4921         </dl>
4922     </dt>
4923     <dd></dd>
4924 </dl>
4925
4926
4927     
4928
4929
4930 <h5>Returns:</h5>
4931
4932         
4933 <div class="param-desc">
4934     <p>this</p>
4935 </div>
4936
4937
4938
4939 <dl>
4940     <dt>
4941         Type
4942     </dt>
4943     <dd>
4944         
4945 <span class="param-type"><a href="ProtoBuf.Builder.Message.html">ProtoBuf.Builder.Message</a></span>
4946
4947
4948     </dd>
4949 </dl>
4950
4951     
4952
4953
4954
4955         
4956             
4957
4958     
4959
4960     <h4 class="name" id="toArrayBuffer"><span class="type-signature"></span>toArrayBuffer<span class="signature">()</span><span class="type-signature"> &rarr; {ArrayBuffer}</span></h4>
4961
4962     
4963
4964
4965
4966 <div class="description">
4967     <p>Returns the message as an ArrayBuffer. This is an alias for <a href="ProtoBuf.Builder.Message.html#encodeAB">ProtoBuf.Builder.Message#encodeAB</a>.</p>
4968 </div>
4969
4970
4971
4972
4973
4974
4975
4976
4977
4978
4979
4980
4981
4982 <dl class="details">
4983
4984     
4985
4986     
4987
4988     
4989
4990     
4991
4992     
4993
4994     
4995
4996     
4997
4998     
4999
5000     
5001
5002     
5003
5004     
5005
5006     
5007
5008     
5009     <dt class="tag-source">Source:</dt>
5010     <dd class="tag-source"><ul class="dummy"><li>
5011         <a href="protobuf.js.html">protobuf.js</a>, <a href="protobuf.js.html#line2748">line 2748</a>
5012     </li></ul></dd>
5013     
5014
5015     
5016
5017     
5018
5019     
5020 </dl>
5021
5022
5023
5024
5025
5026
5027
5028
5029
5030
5031
5032 <h5>Throws:</h5>
5033
5034         
5035
5036 <dl>
5037     <dt>
5038         <div class="param-desc">
5039         <p>If the message cannot be encoded or if required fields are missing. The later still
5040  returns the encoded ArrayBuffer in the <code>encoded</code> property on the error.</p>
5041         </div>
5042     </dt>
5043     <dd></dd>
5044     <dt>
5045         <dl>
5046             <dt>
5047                 Type
5048             </dt>
5049             <dd>
5050                 
5051 <span class="param-type">Error</span>
5052
5053
5054             </dd>
5055         </dl>
5056     </dt>
5057     <dd></dd>
5058 </dl>
5059
5060
5061     
5062
5063
5064 <h5>Returns:</h5>
5065
5066         
5067 <div class="param-desc">
5068     <p>Encoded message as ArrayBuffer</p>
5069 </div>
5070
5071
5072
5073 <dl>
5074     <dt>
5075         Type
5076     </dt>
5077     <dd>
5078         
5079 <span class="param-type">ArrayBuffer</span>
5080
5081
5082     </dd>
5083 </dl>
5084
5085     
5086
5087
5088
5089         
5090             
5091
5092     
5093
5094     <h4 class="name" id="toBase64"><span class="type-signature"></span>toBase64<span class="signature">()</span><span class="type-signature"> &rarr; {string}</span></h4>
5095
5096     
5097
5098
5099
5100 <div class="description">
5101     <p>Returns the message as a base64 encoded string. This is an alias for <a href="ProtoBuf.Builder.Message.html#encode64">ProtoBuf.Builder.Message#encode64</a>.</p>
5102 </div>
5103
5104
5105
5106
5107
5108
5109
5110
5111
5112
5113
5114
5115
5116 <dl class="details">
5117
5118     
5119
5120     
5121
5122     
5123
5124     
5125
5126     
5127
5128     
5129
5130     
5131
5132     
5133
5134     
5135
5136     
5137
5138     
5139
5140     
5141
5142     
5143     <dt class="tag-source">Source:</dt>
5144     <dd class="tag-source"><ul class="dummy"><li>
5145         <a href="protobuf.js.html">protobuf.js</a>, <a href="protobuf.js.html#line2806">line 2806</a>
5146     </li></ul></dd>
5147     
5148
5149     
5150
5151     
5152
5153     
5154 </dl>
5155
5156
5157
5158
5159
5160
5161
5162
5163
5164
5165
5166 <h5>Throws:</h5>
5167
5168         
5169
5170 <dl>
5171     <dt>
5172         <div class="param-desc">
5173         <p>If the message cannot be encoded or if required fields are missing. The later still
5174  returns the encoded base64 string in the <code>encoded</code> property on the error.</p>
5175         </div>
5176     </dt>
5177     <dd></dd>
5178     <dt>
5179         <dl>
5180             <dt>
5181                 Type
5182             </dt>
5183             <dd>
5184                 
5185 <span class="param-type">Error</span>
5186
5187
5188             </dd>
5189         </dl>
5190     </dt>
5191     <dd></dd>
5192 </dl>
5193
5194
5195     
5196
5197
5198 <h5>Returns:</h5>
5199
5200         
5201 <div class="param-desc">
5202     <p>Base64 encoded string</p>
5203 </div>
5204
5205
5206
5207 <dl>
5208     <dt>
5209         Type
5210     </dt>
5211     <dd>
5212         
5213 <span class="param-type">string</span>
5214
5215
5216     </dd>
5217 </dl>
5218
5219     
5220
5221
5222
5223         
5224             
5225
5226     
5227
5228     <h4 class="name" id="toBuffer"><span class="type-signature"></span>toBuffer<span class="signature">()</span><span class="type-signature"> &rarr; (non-null) {Buffer}</span></h4>
5229
5230     
5231
5232
5233
5234 <div class="description">
5235     <p>Returns the message as a node Buffer. This is an alias for <a href="ProtoBuf.Builder.Message.html#encodeNB">ProtoBuf.Builder.Message#encodeNB</a>.</p>
5236 </div>
5237
5238
5239
5240
5241
5242
5243
5244
5245
5246
5247
5248
5249
5250 <dl class="details">
5251
5252     
5253
5254     
5255
5256     
5257
5258     
5259
5260     
5261
5262     
5263
5264     
5265
5266     
5267
5268     
5269
5270     
5271
5272     
5273
5274     
5275
5276     
5277     <dt class="tag-source">Source:</dt>
5278     <dd class="tag-source"><ul class="dummy"><li>
5279         <a href="protobuf.js.html">protobuf.js</a>, <a href="protobuf.js.html#line2777">line 2777</a>
5280     </li></ul></dd>
5281     
5282
5283     
5284
5285     
5286
5287     
5288 </dl>
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300 <h5>Throws:</h5>
5301
5302         
5303
5304 <dl>
5305     <dt>
5306         <div class="param-desc">
5307         <p>If the message cannot be encoded or if required fields are missing. The later still
5308  returns the encoded node Buffer in the <code>encoded</code> property on the error.</p>
5309         </div>
5310     </dt>
5311     <dd></dd>
5312     <dt>
5313         <dl>
5314             <dt>
5315                 Type
5316             </dt>
5317             <dd>
5318                 
5319 <span class="param-type">Error</span>
5320
5321
5322             </dd>
5323         </dl>
5324     </dt>
5325     <dd></dd>
5326 </dl>
5327
5328
5329     
5330
5331
5332 <h5>Returns:</h5>
5333
5334         
5335
5336
5337 <dl>
5338     <dt>
5339         Type
5340     </dt>
5341     <dd>
5342         
5343 <span class="param-type">Buffer</span>
5344
5345
5346     </dd>
5347 </dl>
5348
5349     
5350
5351
5352
5353         
5354             
5355
5356     
5357
5358     <h4 class="name" id="toHex"><span class="type-signature"></span>toHex<span class="signature">()</span><span class="type-signature"> &rarr; {string}</span></h4>
5359
5360     
5361
5362
5363
5364 <div class="description">
5365     <p>Returns the message as a hex encoded string. This is an alias for <a href="ProtoBuf.Builder.Message.html#encodeHex">ProtoBuf.Builder.Message#encodeHex</a>.</p>
5366 </div>
5367
5368
5369
5370
5371
5372
5373
5374
5375
5376
5377
5378
5379
5380 <dl class="details">
5381
5382     
5383
5384     
5385
5386     
5387
5388     
5389
5390     
5391
5392     
5393
5394     
5395
5396     
5397
5398     
5399
5400     
5401
5402     
5403
5404     
5405
5406     
5407     <dt class="tag-source">Source:</dt>
5408     <dd class="tag-source"><ul class="dummy"><li>
5409         <a href="protobuf.js.html">protobuf.js</a>, <a href="protobuf.js.html#line2835">line 2835</a>
5410     </li></ul></dd>
5411     
5412
5413     
5414
5415     
5416
5417     
5418 </dl>
5419
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430 <h5>Throws:</h5>
5431
5432         
5433
5434 <dl>
5435     <dt>
5436         <div class="param-desc">
5437         <p>If the message cannot be encoded or if required fields are missing. The later still
5438  returns the encoded hex string in the <code>encoded</code> property on the error.</p>
5439         </div>
5440     </dt>
5441     <dd></dd>
5442     <dt>
5443         <dl>
5444             <dt>
5445                 Type
5446             </dt>
5447             <dd>
5448                 
5449 <span class="param-type">Error</span>
5450
5451
5452             </dd>
5453         </dl>
5454     </dt>
5455     <dd></dd>
5456 </dl>
5457
5458
5459     
5460
5461
5462 <h5>Returns:</h5>
5463
5464         
5465 <div class="param-desc">
5466     <p>Hex encoded string</p>
5467 </div>
5468
5469
5470
5471 <dl>
5472     <dt>
5473         Type
5474     </dt>
5475     <dd>
5476         
5477 <span class="param-type">string</span>
5478
5479
5480     </dd>
5481 </dl>
5482
5483     
5484
5485
5486
5487         
5488             
5489
5490     
5491
5492     <h4 class="name" id="toRaw"><span class="type-signature"></span>toRaw<span class="signature">(binaryAsBase64<span class="signature-attributes">opt</span>, longsAsStrings)</span><span class="type-signature"> &rarr; {Object.&lt;string, *>}</span></h4>
5493
5494     
5495
5496
5497
5498 <div class="description">
5499     <p>Returns the message's raw payload.</p>
5500 </div>
5501
5502
5503
5504
5505
5506
5507
5508
5509
5510     <h5>Parameters:</h5>
5511     
5512
5513 <table class="params">
5514     <thead>
5515     <tr>
5516         
5517         <th>Name</th>
5518         
5519
5520         <th>Type</th>
5521
5522         
5523         <th>Attributes</th>
5524         
5525
5526         
5527
5528         <th class="last">Description</th>
5529     </tr>
5530     </thead>
5531
5532     <tbody>
5533     
5534
5535         <tr>
5536             
5537                 <td class="name"><code>binaryAsBase64</code></td>
5538             
5539
5540             <td class="type">
5541             
5542                 
5543 <span class="param-type">boolean</span>
5544
5545
5546             
5547             </td>
5548
5549             
5550                 <td class="attributes">
5551                 
5552                     &lt;optional><br>
5553                 
5554
5555                 
5556
5557                 
5558                 </td>
5559             
5560
5561             
5562
5563             <td class="description last"><p>Whether to include binary data as base64 strings instead of Buffers, defaults to <code>false</code></p></td>
5564         </tr>
5565
5566     
5567
5568         <tr>
5569             
5570                 <td class="name"><code>longsAsStrings</code></td>
5571             
5572
5573             <td class="type">
5574             
5575                 
5576 <span class="param-type">boolean</span>
5577
5578
5579             
5580             </td>
5581
5582             
5583                 <td class="attributes">
5584                 
5585
5586                 
5587
5588                 
5589                 </td>
5590             
5591
5592             
5593
5594             <td class="description last"><p>Whether to encode longs as strings</p></td>
5595         </tr>
5596
5597     
5598     </tbody>
5599 </table>
5600
5601
5602
5603
5604
5605
5606 <dl class="details">
5607
5608     
5609
5610     
5611
5612     
5613
5614     
5615
5616     
5617
5618     
5619
5620     
5621
5622     
5623
5624     
5625
5626     
5627
5628     
5629
5630     
5631
5632     
5633     <dt class="tag-source">Source:</dt>
5634     <dd class="tag-source"><ul class="dummy"><li>
5635         <a href="protobuf.js.html">protobuf.js</a>, <a href="protobuf.js.html#line2909">line 2909</a>
5636     </li></ul></dd>
5637     
5638
5639     
5640
5641     
5642
5643     
5644 </dl>
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658 <h5>Returns:</h5>
5659
5660         
5661 <div class="param-desc">
5662     <p>Raw payload</p>
5663 </div>
5664
5665
5666
5667 <dl>
5668     <dt>
5669         Type
5670     </dt>
5671     <dd>
5672         
5673 <span class="param-type">Object.&lt;string, *></span>
5674
5675
5676     </dd>
5677 </dl>
5678
5679     
5680
5681
5682
5683         
5684             
5685
5686     
5687
5688     <h4 class="name" id="toString"><span class="type-signature"></span>toString<span class="signature">()</span><span class="type-signature"> &rarr; {string}</span></h4>
5689
5690     
5691
5692
5693
5694 <div class="description">
5695     <p>Returns a string representation of this Message.</p>
5696 </div>
5697
5698
5699
5700
5701
5702
5703
5704
5705
5706
5707
5708
5709
5710 <dl class="details">
5711
5712     
5713
5714     
5715
5716     
5717
5718     
5719
5720     
5721
5722     
5723
5724     
5725
5726     
5727
5728     
5729
5730     
5731
5732     
5733
5734     
5735
5736     
5737     <dt class="tag-source">Source:</dt>
5738     <dd class="tag-source"><ul class="dummy"><li>
5739         <a href="protobuf.js.html">protobuf.js</a>, <a href="protobuf.js.html#line3039">line 3039</a>
5740     </li></ul></dd>
5741     
5742
5743     
5744
5745     
5746
5747     
5748 </dl>
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761
5762 <h5>Returns:</h5>
5763
5764         
5765 <div class="param-desc">
5766     <p>String representation as of &quot;.Fully.Qualified.MessageName&quot;</p>
5767 </div>
5768
5769
5770
5771 <dl>
5772     <dt>
5773         Type
5774     </dt>
5775     <dd>
5776         
5777 <span class="param-type">string</span>
5778
5779
5780     </dd>
5781 </dl>
5782
5783     
5784
5785
5786
5787         
5788     
5789
5790     
5791
5792     
5793 </article>
5794
5795 </section>
5796
5797
5798
5799
5800 </div>
5801
5802 <nav>
5803     <h2><a href="index.html">Home</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.Map.html">Map</a></li><li><a href="ProtoBuf.Reflect.Element.html">Element</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>
5804 </nav>
5805
5806 <br class="clear">
5807
5808 <footer>
5809     Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.3</a> on Fri Jan 27 2017 17:03:55 GMT+0100 (Mitteleuropäische Zeit)
5810 </footer>
5811
5812 <script> prettyPrint(); </script>
5813 <script src="scripts/linenumber.js"> </script>
5814 </body>
5815 </html>