protobufjs 5.0.1 → 5.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.travis.yml +2 -1
- package/README.md +144 -22
- package/bin/pbjs +2 -2
- package/bower.json +2 -2
- package/cli/pbjs/targets/amd.js +1 -1
- package/cli/pbjs/targets/json.js +8 -0
- package/cli/pbjs/util.js +1 -1
- package/cli/pbjs.js +1 -1
- package/dist/protobuf-light.js +166 -128
- package/dist/protobuf-light.min.js +88 -81
- package/dist/protobuf-light.min.js.gz +0 -0
- package/dist/protobuf-light.min.map +4 -4
- package/dist/protobuf.js +171 -129
- package/dist/protobuf.min.js +106 -98
- package/dist/protobuf.min.js.gz +0 -0
- package/dist/protobuf.min.map +4 -4
- package/docs/ProtoBuf.Builder.Message.html +1408 -971
- package/docs/ProtoBuf.Builder.Service.html +266 -197
- package/docs/ProtoBuf.Builder.html +758 -542
- package/docs/ProtoBuf.DotProto.Parser.html +223 -161
- package/docs/ProtoBuf.DotProto.Tokenizer.html +344 -248
- package/docs/ProtoBuf.DotProto.html +20 -12
- package/docs/ProtoBuf.Element.html +554 -554
- package/docs/ProtoBuf.Map.html +158 -123
- package/docs/ProtoBuf.Reflect.Element.html +286 -143
- package/docs/ProtoBuf.Reflect.Enum.Value.html +329 -228
- package/docs/ProtoBuf.Reflect.Enum.html +757 -537
- package/docs/ProtoBuf.Reflect.Extension.html +73 -56
- package/docs/ProtoBuf.Reflect.Message.ExtensionField.html +1013 -740
- package/docs/ProtoBuf.Reflect.Message.Field.html +926 -649
- package/docs/ProtoBuf.Reflect.Message.OneOf.html +327 -245
- package/docs/ProtoBuf.Reflect.Message.html +915 -651
- package/docs/ProtoBuf.Reflect.Namespace.html +648 -447
- package/docs/ProtoBuf.Reflect.Service.Method.html +363 -251
- package/docs/ProtoBuf.Reflect.Service.RPCMethod.html +545 -397
- package/docs/ProtoBuf.Reflect.Service.html +721 -511
- package/docs/ProtoBuf.Reflect.T.html +268 -197
- package/docs/ProtoBuf.Reflect.html +20 -12
- package/docs/ProtoBuf.Util.html +169 -118
- package/docs/ProtoBuf.html +840 -628
- package/docs/ProtoBuf.js.html +177 -134
- package/docs/fonts/OpenSans-Bold-webfont.eot +0 -0
- package/docs/fonts/OpenSans-Bold-webfont.svg +1830 -0
- package/docs/fonts/OpenSans-Bold-webfont.woff +0 -0
- package/docs/fonts/OpenSans-BoldItalic-webfont.eot +0 -0
- package/docs/fonts/OpenSans-BoldItalic-webfont.svg +1830 -0
- package/docs/fonts/OpenSans-BoldItalic-webfont.woff +0 -0
- package/docs/fonts/OpenSans-Italic-webfont.eot +0 -0
- package/docs/fonts/OpenSans-Italic-webfont.svg +1830 -0
- package/docs/fonts/OpenSans-Italic-webfont.woff +0 -0
- package/docs/fonts/OpenSans-Light-webfont.eot +0 -0
- package/docs/fonts/OpenSans-Light-webfont.svg +1831 -0
- package/docs/fonts/OpenSans-Light-webfont.woff +0 -0
- package/docs/fonts/OpenSans-LightItalic-webfont.eot +0 -0
- package/docs/fonts/OpenSans-LightItalic-webfont.svg +1835 -0
- package/docs/fonts/OpenSans-LightItalic-webfont.woff +0 -0
- package/docs/fonts/OpenSans-Regular-webfont.eot +0 -0
- package/docs/fonts/OpenSans-Regular-webfont.svg +1831 -0
- package/docs/fonts/OpenSans-Regular-webfont.woff +0 -0
- package/docs/index.html +7 -5
- package/docs/styles/jsdoc-default.css +95 -75
- package/docs/styles/prettify-tomorrow.css +1 -1
- package/examples/protoify/json.js +123 -123
- package/examples/protoify/json.json +123 -123
- package/examples/websocket/server.js +4 -4
- package/externs/protobuf.js +1 -1
- package/jsdoc.json +1 -1
- package/package.json +2 -2
- package/scripts/build.js +53 -53
- package/src/ProtoBuf/Builder/Message.js +9 -5
- package/src/ProtoBuf/Builder.js +19 -2
- package/src/ProtoBuf/DotProto/Parser.js +5 -1
- package/src/ProtoBuf/Reflect/Element.js +13 -1
- package/src/ProtoBuf/Reflect/Message/Field.js +2 -2
- package/src/ProtoBuf/Reflect/Message.js +6 -1
- package/src/ProtoBuf/Util.js +116 -116
- package/src/bower.json +1 -1
- package/src/google/protobuf/descriptor.json +27 -1
- package/tests/bench.txt +373 -373
- package/tests/complex.json +8 -1
- package/tests/custom-options.json +169 -169
- package/tests/extend.json +71 -71
- package/tests/imports.json +83 -83
- package/tests/nodeunit-browser/nodeunit.css +70 -70
- package/tests/nodeunit-browser/nodeunit.js +2108 -2108
- package/tests/options.json +32 -32
- package/tests/proto2js/Bar.json +46 -46
- package/tests/suite.js +43 -1
- package/sandbox/gapi/googleapis/google/api/annotations.proto +0 -29
- package/sandbox/gapi/googleapis/google/api/http.proto +0 -245
- package/sandbox/gapi/googleapis/google/datastore/v1beta3/datastore.proto +0 -281
- package/sandbox/gapi/googleapis/google/datastore/v1beta3/entity.proto +0 -189
- package/sandbox/gapi/googleapis/google/datastore/v1beta3/query.proto +0 -281
- package/sandbox/gapi/googleapis/google/longrunning/operations.proto +0 -144
- package/sandbox/gapi/googleapis/google/protobuf/any.proto +0 -98
- package/sandbox/gapi/googleapis/google/protobuf/any_test.proto +0 -41
- package/sandbox/gapi/googleapis/google/protobuf/api.proto +0 -201
- package/sandbox/gapi/googleapis/google/protobuf/descriptor.proto +0 -773
- package/sandbox/gapi/googleapis/google/protobuf/duration.proto +0 -95
- package/sandbox/gapi/googleapis/google/protobuf/empty.proto +0 -50
- package/sandbox/gapi/googleapis/google/protobuf/field_mask.proto +0 -167
- package/sandbox/gapi/googleapis/google/protobuf/map_lite_unittest.proto +0 -130
- package/sandbox/gapi/googleapis/google/protobuf/map_proto2_unittest.proto +0 -60
- package/sandbox/gapi/googleapis/google/protobuf/map_unittest.proto +0 -129
- package/sandbox/gapi/googleapis/google/protobuf/map_unittest_proto3.proto +0 -120
- package/sandbox/gapi/googleapis/google/protobuf/source_context.proto +0 -47
- package/sandbox/gapi/googleapis/google/protobuf/struct.proto +0 -94
- package/sandbox/gapi/googleapis/google/protobuf/timestamp.proto +0 -107
- package/sandbox/gapi/googleapis/google/protobuf/type.proto +0 -176
- package/sandbox/gapi/googleapis/google/protobuf/unittest.proto +0 -878
- package/sandbox/gapi/googleapis/google/protobuf/unittest_arena.proto +0 -46
- package/sandbox/gapi/googleapis/google/protobuf/unittest_custom_options.proto +0 -394
- package/sandbox/gapi/googleapis/google/protobuf/unittest_drop_unknown_fields.proto +0 -58
- package/sandbox/gapi/googleapis/google/protobuf/unittest_embed_optimize_for.proto +0 -51
- package/sandbox/gapi/googleapis/google/protobuf/unittest_empty.proto +0 -38
- package/sandbox/gapi/googleapis/google/protobuf/unittest_enormous_descriptor.proto +0 -1048
- package/sandbox/gapi/googleapis/google/protobuf/unittest_import.proto +0 -66
- package/sandbox/gapi/googleapis/google/protobuf/unittest_import_lite.proto +0 -52
- package/sandbox/gapi/googleapis/google/protobuf/unittest_import_proto3.proto +0 -68
- package/sandbox/gapi/googleapis/google/protobuf/unittest_import_public.proto +0 -41
- package/sandbox/gapi/googleapis/google/protobuf/unittest_import_public_lite.proto +0 -43
- package/sandbox/gapi/googleapis/google/protobuf/unittest_import_public_proto3.proto +0 -42
- package/sandbox/gapi/googleapis/google/protobuf/unittest_lite.proto +0 -385
- package/sandbox/gapi/googleapis/google/protobuf/unittest_lite_imports_nonlite.proto +0 -44
- package/sandbox/gapi/googleapis/google/protobuf/unittest_mset.proto +0 -82
- package/sandbox/gapi/googleapis/google/protobuf/unittest_mset_wire_format.proto +0 -52
- package/sandbox/gapi/googleapis/google/protobuf/unittest_no_arena.proto +0 -202
- package/sandbox/gapi/googleapis/google/protobuf/unittest_no_arena_import.proto +0 -37
- package/sandbox/gapi/googleapis/google/protobuf/unittest_no_arena_lite.proto +0 -42
- package/sandbox/gapi/googleapis/google/protobuf/unittest_no_field_presence.proto +0 -138
- package/sandbox/gapi/googleapis/google/protobuf/unittest_no_generic_services.proto +0 -54
- package/sandbox/gapi/googleapis/google/protobuf/unittest_optimize_for.proto +0 -67
- package/sandbox/gapi/googleapis/google/protobuf/unittest_preserve_unknown_enum.proto +0 -71
- package/sandbox/gapi/googleapis/google/protobuf/unittest_preserve_unknown_enum2.proto +0 -50
- package/sandbox/gapi/googleapis/google/protobuf/unittest_proto3.proto +0 -388
- package/sandbox/gapi/googleapis/google/protobuf/unittest_proto3_arena.proto +0 -206
- package/sandbox/gapi/googleapis/google/protobuf/unittest_well_known_types.proto +0 -112
- package/sandbox/gapi/googleapis/google/protobuf/unknown_enum_test.proto +0 -62
- package/sandbox/gapi/googleapis/google/protobuf/wrappers.proto +0 -117
- package/sandbox/gapi/googleapis/google/rpc/code.proto +0 -190
- package/sandbox/gapi/googleapis/google/rpc/error_details.proto +0 -157
- package/sandbox/gapi/googleapis/google/rpc/status.proto +0 -90
- package/sandbox/gapi/googleapis/google/type/color.proto +0 -163
- package/sandbox/gapi/googleapis/google/type/date.proto +0 -43
- package/sandbox/gapi/googleapis/google/type/dayofweek.proto +0 -50
- package/sandbox/gapi/googleapis/google/type/latlng.proto +0 -36
- package/sandbox/gapi/googleapis/google/type/money.proto +0 -40
- package/sandbox/gapi/googleapis/google/type/timeofday.proto +0 -42
- package/sandbox/gapi/test.js +0 -17
- package/sandbox/gapi/test.proto +0 -12
- package/sandbox/issue146/MyOptions.proto +0 -28
- package/sandbox/issue146/Sample.proto +0 -21
- package/sandbox/issue146/main.js +0 -3
- package/sandbox/issue147/enum.proto +0 -8
- package/sandbox/issue147/main.js +0 -3
- package/sandbox/issue182/commands.proto +0 -10
- package/sandbox/issue182/execute.js +0 -22
- package/sandbox/issue182/session_commands.proto +0 -14
- package/sandbox/issue289/A.proto +0 -8
- package/sandbox/issue289/B.proto +0 -8
- package/sandbox/issue289/common.proto +0 -5
- package/sandbox/issue289/main.js +0 -7
- package/sandbox/issue300/IAuth.proto +0 -14
- package/sandbox/issue300/Request.proto +0 -14
- package/sandbox/issue300/main.js +0 -26
- package/sandbox/issue347/index.js +0 -27
- package/sandbox/issue355/main.proto +0 -15
- package/sandbox/issue42/innerextend.proto +0 -18
- package/sandbox/issue42/main.js +0 -8
- package/sandbox/issue42/outerextend.proto +0 -17
|
@@ -23,48 +23,52 @@
|
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
|
+
|
|
26
27
|
<section>
|
|
27
28
|
|
|
28
29
|
<header>
|
|
29
|
-
<h2>
|
|
30
|
-
<span class="ancestors"><a href="ProtoBuf.html">ProtoBuf</a><a href="ProtoBuf.Reflect.html">.Reflect</a>.</span>
|
|
31
30
|
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
<h2>
|
|
32
|
+
<span class="ancestors"><a href="ProtoBuf.html">ProtoBuf</a><a href="ProtoBuf.Reflect.html">.Reflect</a>.</span>
|
|
33
|
+
|
|
34
|
+
Element
|
|
35
|
+
</h2>
|
|
36
|
+
|
|
34
37
|
|
|
35
38
|
</header>
|
|
36
39
|
|
|
37
40
|
<article>
|
|
38
41
|
<div class="container-overview">
|
|
39
42
|
|
|
40
|
-
|
|
41
|
-
|
|
42
43
|
|
|
43
|
-
<dt>
|
|
44
|
-
<h4 class="name" id="Element"><span class="type-signature"></span>new Element<span class="signature">(type, resolvedType, isMapKey, syntax)</span><span class="type-signature"></span></h4>
|
|
45
44
|
|
|
46
45
|
|
|
47
|
-
|
|
48
|
-
<
|
|
46
|
+
|
|
47
|
+
<h4 class="name" id="Element"><span class="type-signature"></span>new Element<span class="signature">(type, resolvedType, isMapKey, syntax, name)</span><span class="type-signature"></span></h4>
|
|
49
48
|
|
|
50
49
|
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
<div class="description">
|
|
54
|
+
<p>Constructs a new Element implementation that checks and converts values for a
|
|
53
55
|
particular field type, as appropriate.</p>
|
|
54
56
|
<p>An Element represents a single value: either the value of a singular field,
|
|
55
57
|
or a value contained in one entry of a repeated field or map field. This
|
|
56
58
|
class does not implement these higher-level concepts; it only encapsulates
|
|
57
59
|
the low-level typechecking and conversion.</p>
|
|
58
|
-
|
|
59
|
-
|
|
60
|
+
</div>
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
60
65
|
|
|
61
|
-
|
|
62
66
|
|
|
63
|
-
|
|
64
67
|
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
<h5>Parameters:</h5>
|
|
65
71
|
|
|
66
|
-
<h5>Parameters:</h5>
|
|
67
|
-
|
|
68
72
|
|
|
69
73
|
<table class="params">
|
|
70
74
|
<thead>
|
|
@@ -183,12 +187,46 @@ proto2 or proto3.</p></td>
|
|
|
183
187
|
</tr>
|
|
184
188
|
|
|
185
189
|
|
|
190
|
+
|
|
191
|
+
<tr>
|
|
192
|
+
|
|
193
|
+
<td class="name"><code>name</code></td>
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
<td class="type">
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
<span class="param-type">string</span>
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
</td>
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
|
|
208
|
+
|
|
209
|
+
<td class="description last"><p>Name of the field containing this element (for error
|
|
210
|
+
messages)</p></td>
|
|
211
|
+
</tr>
|
|
212
|
+
|
|
213
|
+
|
|
186
214
|
</tbody>
|
|
187
215
|
</table>
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
<dl class="details">
|
|
223
|
+
|
|
188
224
|
|
|
189
225
|
|
|
190
226
|
|
|
191
|
-
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
|
|
192
230
|
|
|
193
231
|
|
|
194
232
|
|
|
@@ -210,7 +248,7 @@ proto2 or proto3.</p></td>
|
|
|
210
248
|
|
|
211
249
|
<dt class="tag-source">Source:</dt>
|
|
212
250
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
213
|
-
<a href="
|
|
251
|
+
<a href="protobuf.js.html">protobuf.js</a>, <a href="protobuf.js.html#line1720">line 1720</a>
|
|
214
252
|
</li></ul></dd>
|
|
215
253
|
|
|
216
254
|
|
|
@@ -222,9 +260,22 @@ proto2 or proto3.</p></td>
|
|
|
222
260
|
</dl>
|
|
223
261
|
|
|
224
262
|
|
|
225
|
-
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
|
|
226
276
|
|
|
227
277
|
|
|
278
|
+
</div>
|
|
228
279
|
|
|
229
280
|
|
|
230
281
|
|
|
@@ -232,13 +283,43 @@ proto2 or proto3.</p></td>
|
|
|
232
283
|
|
|
233
284
|
|
|
234
285
|
|
|
286
|
+
|
|
287
|
+
|
|
235
288
|
|
|
236
289
|
|
|
237
290
|
|
|
238
|
-
</
|
|
291
|
+
<h3 class="subsection-title">Members</h3>
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
<h4 class="name" id="isMapKey"><span class="type-signature"></span>isMapKey<span class="type-signature"> :boolean</span></h4>
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
|
|
299
|
+
|
|
300
|
+
<div class="description">
|
|
301
|
+
<p>Element is a map key.</p>
|
|
302
|
+
</div>
|
|
303
|
+
|
|
304
|
+
|
|
305
|
+
|
|
306
|
+
<h5>Type:</h5>
|
|
307
|
+
<ul>
|
|
308
|
+
<li>
|
|
309
|
+
|
|
310
|
+
<span class="param-type">boolean</span>
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
</li>
|
|
314
|
+
</ul>
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
<dl class="details">
|
|
239
321
|
|
|
240
322
|
|
|
241
|
-
</div>
|
|
242
323
|
|
|
243
324
|
|
|
244
325
|
|
|
@@ -248,41 +329,74 @@ proto2 or proto3.</p></td>
|
|
|
248
329
|
|
|
249
330
|
|
|
250
331
|
|
|
251
|
-
|
|
332
|
+
|
|
252
333
|
|
|
253
334
|
|
|
254
335
|
|
|
255
336
|
|
|
256
|
-
<h3 class="subsection-title">Members</h3>
|
|
257
337
|
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
<dt>
|
|
261
|
-
<h4 class="name" id="isMapKey"><span class="type-signature"></span>isMapKey<span class="type-signature"> :boolean</span></h4>
|
|
338
|
+
|
|
262
339
|
|
|
263
340
|
|
|
264
|
-
|
|
265
|
-
<dd>
|
|
341
|
+
|
|
266
342
|
|
|
267
|
-
|
|
268
|
-
<p>Element is a map key.</p>
|
|
269
|
-
</div>
|
|
343
|
+
|
|
270
344
|
|
|
271
345
|
|
|
272
346
|
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
347
|
+
<dt class="tag-source">Source:</dt>
|
|
348
|
+
<dd class="tag-source"><ul class="dummy"><li>
|
|
349
|
+
<a href="protobuf.js.html">protobuf.js</a>, <a href="protobuf.js.html#line1738">line 1738</a>
|
|
350
|
+
</li></ul></dd>
|
|
351
|
+
|
|
278
352
|
|
|
353
|
+
|
|
279
354
|
|
|
280
|
-
</li>
|
|
281
|
-
</ul>
|
|
282
355
|
|
|
283
356
|
|
|
284
357
|
|
|
358
|
+
</dl>
|
|
359
|
+
|
|
360
|
+
|
|
361
|
+
|
|
362
|
+
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
<h4 class="name" id="name"><span class="type-signature"></span>name<span class="type-signature"> :string</span></h4>
|
|
368
|
+
|
|
369
|
+
|
|
370
|
+
|
|
371
|
+
|
|
372
|
+
<div class="description">
|
|
373
|
+
<p>Name of the field containing this element (for error messages)</p>
|
|
374
|
+
</div>
|
|
375
|
+
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+
<h5>Type:</h5>
|
|
379
|
+
<ul>
|
|
380
|
+
<li>
|
|
381
|
+
|
|
382
|
+
<span class="param-type">string</span>
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
</li>
|
|
386
|
+
</ul>
|
|
387
|
+
|
|
388
|
+
|
|
389
|
+
|
|
390
|
+
|
|
391
|
+
|
|
285
392
|
<dl class="details">
|
|
393
|
+
|
|
394
|
+
|
|
395
|
+
|
|
396
|
+
|
|
397
|
+
|
|
398
|
+
|
|
399
|
+
|
|
286
400
|
|
|
287
401
|
|
|
288
402
|
|
|
@@ -304,7 +418,7 @@ proto2 or proto3.</p></td>
|
|
|
304
418
|
|
|
305
419
|
<dt class="tag-source">Source:</dt>
|
|
306
420
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
307
|
-
<a href="
|
|
421
|
+
<a href="protobuf.js.html">protobuf.js</a>, <a href="protobuf.js.html#line1750">line 1750</a>
|
|
308
422
|
</li></ul></dd>
|
|
309
423
|
|
|
310
424
|
|
|
@@ -316,42 +430,48 @@ proto2 or proto3.</p></td>
|
|
|
316
430
|
</dl>
|
|
317
431
|
|
|
318
432
|
|
|
319
|
-
|
|
320
433
|
|
|
321
|
-
|
|
322
|
-
|
|
434
|
+
|
|
435
|
+
|
|
323
436
|
|
|
324
437
|
|
|
325
438
|
|
|
326
|
-
<
|
|
327
|
-
<h4 class="name" id="resolvedType"><span class="type-signature"></span>resolvedType<span class="type-signature"> :<a href="ProtoBuf.Reflect.T.html">ProtoBuf.Reflect.T</a>|null</span></h4>
|
|
439
|
+
<h4 class="name" id="resolvedType"><span class="type-signature"></span>resolvedType<span class="type-signature"> :<a href="ProtoBuf.Reflect.T.html">ProtoBuf.Reflect.T</a>|null</span></h4>
|
|
328
440
|
|
|
329
|
-
|
|
330
|
-
</dt>
|
|
331
|
-
<dd>
|
|
332
|
-
|
|
333
|
-
<div class="description">
|
|
334
|
-
<p>Element type reference to submessage or enum definition, if needed.</p>
|
|
335
|
-
</div>
|
|
336
|
-
|
|
337
441
|
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
442
|
+
|
|
443
|
+
|
|
444
|
+
<div class="description">
|
|
445
|
+
<p>Element type reference to submessage or enum definition, if needed.</p>
|
|
446
|
+
</div>
|
|
447
|
+
|
|
448
|
+
|
|
449
|
+
|
|
450
|
+
<h5>Type:</h5>
|
|
451
|
+
<ul>
|
|
452
|
+
<li>
|
|
453
|
+
|
|
343
454
|
<span class="param-type"><a href="ProtoBuf.Reflect.T.html">ProtoBuf.Reflect.T</a></span>
|
|
344
455
|
|
|
|
345
456
|
|
|
346
457
|
<span class="param-type">null</span>
|
|
347
458
|
|
|
348
459
|
|
|
349
|
-
|
|
350
|
-
|
|
460
|
+
</li>
|
|
461
|
+
</ul>
|
|
462
|
+
|
|
463
|
+
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
|
|
467
|
+
<dl class="details">
|
|
468
|
+
|
|
351
469
|
|
|
352
470
|
|
|
353
471
|
|
|
354
|
-
|
|
472
|
+
|
|
473
|
+
|
|
474
|
+
|
|
355
475
|
|
|
356
476
|
|
|
357
477
|
|
|
@@ -373,7 +493,7 @@ proto2 or proto3.</p></td>
|
|
|
373
493
|
|
|
374
494
|
<dt class="tag-source">Source:</dt>
|
|
375
495
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
376
|
-
<a href="
|
|
496
|
+
<a href="protobuf.js.html">protobuf.js</a>, <a href="protobuf.js.html#line1732">line 1732</a>
|
|
377
497
|
</li></ul></dd>
|
|
378
498
|
|
|
379
499
|
|
|
@@ -385,39 +505,45 @@ proto2 or proto3.</p></td>
|
|
|
385
505
|
</dl>
|
|
386
506
|
|
|
387
507
|
|
|
388
|
-
|
|
389
508
|
|
|
390
|
-
|
|
391
|
-
|
|
509
|
+
|
|
510
|
+
|
|
392
511
|
|
|
393
512
|
|
|
394
513
|
|
|
395
|
-
<
|
|
396
|
-
<h4 class="name" id="syntax"><span class="type-signature"></span>syntax<span class="type-signature"> :string</span></h4>
|
|
514
|
+
<h4 class="name" id="syntax"><span class="type-signature"></span>syntax<span class="type-signature"> :string</span></h4>
|
|
397
515
|
|
|
398
|
-
|
|
399
|
-
</dt>
|
|
400
|
-
<dd>
|
|
401
|
-
|
|
402
|
-
<div class="description">
|
|
403
|
-
<p>Syntax level of defining message type, e.g., proto2 or proto3.</p>
|
|
404
|
-
</div>
|
|
405
|
-
|
|
406
516
|
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
517
|
+
|
|
518
|
+
|
|
519
|
+
<div class="description">
|
|
520
|
+
<p>Syntax level of defining message type, e.g., proto2 or proto3.</p>
|
|
521
|
+
</div>
|
|
522
|
+
|
|
523
|
+
|
|
524
|
+
|
|
525
|
+
<h5>Type:</h5>
|
|
526
|
+
<ul>
|
|
527
|
+
<li>
|
|
528
|
+
|
|
412
529
|
<span class="param-type">string</span>
|
|
413
530
|
|
|
414
531
|
|
|
415
|
-
|
|
416
|
-
|
|
532
|
+
</li>
|
|
533
|
+
</ul>
|
|
534
|
+
|
|
535
|
+
|
|
536
|
+
|
|
537
|
+
|
|
538
|
+
|
|
539
|
+
<dl class="details">
|
|
540
|
+
|
|
417
541
|
|
|
418
542
|
|
|
419
543
|
|
|
420
|
-
|
|
544
|
+
|
|
545
|
+
|
|
546
|
+
|
|
421
547
|
|
|
422
548
|
|
|
423
549
|
|
|
@@ -439,7 +565,7 @@ proto2 or proto3.</p></td>
|
|
|
439
565
|
|
|
440
566
|
<dt class="tag-source">Source:</dt>
|
|
441
567
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
442
|
-
<a href="
|
|
568
|
+
<a href="protobuf.js.html">protobuf.js</a>, <a href="protobuf.js.html#line1744">line 1744</a>
|
|
443
569
|
</li></ul></dd>
|
|
444
570
|
|
|
445
571
|
|
|
@@ -451,39 +577,45 @@ proto2 or proto3.</p></td>
|
|
|
451
577
|
</dl>
|
|
452
578
|
|
|
453
579
|
|
|
454
|
-
|
|
455
580
|
|
|
456
|
-
|
|
457
|
-
|
|
581
|
+
|
|
582
|
+
|
|
458
583
|
|
|
459
584
|
|
|
460
585
|
|
|
461
|
-
<
|
|
462
|
-
<h4 class="name" id="type"><span class="type-signature"></span>type<span class="type-signature"> :Object</span></h4>
|
|
586
|
+
<h4 class="name" id="type"><span class="type-signature"></span>type<span class="type-signature"> :Object</span></h4>
|
|
463
587
|
|
|
464
|
-
|
|
465
|
-
</dt>
|
|
466
|
-
<dd>
|
|
467
|
-
|
|
468
|
-
<div class="description">
|
|
469
|
-
<p>Element type, as a string (e.g., int32).</p>
|
|
470
|
-
</div>
|
|
471
|
-
|
|
472
588
|
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
589
|
+
|
|
590
|
+
|
|
591
|
+
<div class="description">
|
|
592
|
+
<p>Element type, as a string (e.g., int32).</p>
|
|
593
|
+
</div>
|
|
594
|
+
|
|
595
|
+
|
|
596
|
+
|
|
597
|
+
<h5>Type:</h5>
|
|
598
|
+
<ul>
|
|
599
|
+
<li>
|
|
600
|
+
|
|
478
601
|
<span class="param-type">Object</span>
|
|
479
602
|
|
|
480
603
|
|
|
481
|
-
|
|
482
|
-
|
|
604
|
+
</li>
|
|
605
|
+
</ul>
|
|
606
|
+
|
|
607
|
+
|
|
608
|
+
|
|
609
|
+
|
|
610
|
+
|
|
611
|
+
<dl class="details">
|
|
612
|
+
|
|
483
613
|
|
|
484
614
|
|
|
485
615
|
|
|
486
|
-
|
|
616
|
+
|
|
617
|
+
|
|
618
|
+
|
|
487
619
|
|
|
488
620
|
|
|
489
621
|
|
|
@@ -505,7 +637,7 @@ proto2 or proto3.</p></td>
|
|
|
505
637
|
|
|
506
638
|
<dt class="tag-source">Source:</dt>
|
|
507
639
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
508
|
-
<a href="
|
|
640
|
+
<a href="protobuf.js.html">protobuf.js</a>, <a href="protobuf.js.html#line1726">line 1726</a>
|
|
509
641
|
</li></ul></dd>
|
|
510
642
|
|
|
511
643
|
|
|
@@ -517,39 +649,41 @@ proto2 or proto3.</p></td>
|
|
|
517
649
|
</dl>
|
|
518
650
|
|
|
519
651
|
|
|
520
|
-
|
|
521
652
|
|
|
522
|
-
|
|
523
|
-
</dd>
|
|
524
653
|
|
|
525
|
-
|
|
654
|
+
|
|
655
|
+
|
|
656
|
+
|
|
526
657
|
|
|
527
658
|
|
|
528
659
|
|
|
529
660
|
<h3 class="subsection-title">Methods</h3>
|
|
530
661
|
|
|
531
|
-
|
|
662
|
+
|
|
532
663
|
|
|
533
|
-
<dt>
|
|
534
|
-
<h4 class="name" id="defaultFieldValue"><span class="type-signature">(static) </span>defaultFieldValue<span class="signature">(type)</span><span class="type-signature"> → {*}</span></h4>
|
|
535
664
|
|
|
536
665
|
|
|
537
|
-
</dt>
|
|
538
|
-
<dd>
|
|
539
666
|
|
|
540
|
-
|
|
541
|
-
<div class="description">
|
|
542
|
-
<p>Returns the default value for this field in proto3.</p>
|
|
543
|
-
</div>
|
|
544
|
-
|
|
667
|
+
<h4 class="name" id=".defaultFieldValue"><span class="type-signature">(static) </span>defaultFieldValue<span class="signature">(type)</span><span class="type-signature"> → {*}</span></h4>
|
|
545
668
|
|
|
546
669
|
|
|
547
670
|
|
|
548
|
-
|
|
549
671
|
|
|
672
|
+
|
|
673
|
+
<div class="description">
|
|
674
|
+
<p>Returns the default value for this field in proto3.</p>
|
|
675
|
+
</div>
|
|
676
|
+
|
|
677
|
+
|
|
678
|
+
|
|
679
|
+
|
|
680
|
+
|
|
681
|
+
|
|
682
|
+
|
|
683
|
+
|
|
684
|
+
|
|
685
|
+
<h5>Parameters:</h5>
|
|
550
686
|
|
|
551
|
-
<h5>Parameters:</h5>
|
|
552
|
-
|
|
553
687
|
|
|
554
688
|
<table class="params">
|
|
555
689
|
<thead>
|
|
@@ -598,10 +732,20 @@ proto2 or proto3.</p></td>
|
|
|
598
732
|
|
|
599
733
|
</tbody>
|
|
600
734
|
</table>
|
|
735
|
+
|
|
736
|
+
|
|
737
|
+
|
|
738
|
+
|
|
739
|
+
|
|
740
|
+
|
|
741
|
+
<dl class="details">
|
|
742
|
+
|
|
601
743
|
|
|
602
744
|
|
|
603
745
|
|
|
604
|
-
|
|
746
|
+
|
|
747
|
+
|
|
748
|
+
|
|
605
749
|
|
|
606
750
|
|
|
607
751
|
|
|
@@ -623,7 +767,7 @@ proto2 or proto3.</p></td>
|
|
|
623
767
|
|
|
624
768
|
<dt class="tag-source">Source:</dt>
|
|
625
769
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
626
|
-
<a href="
|
|
770
|
+
<a href="protobuf.js.html">protobuf.js</a>, <a href="protobuf.js.html#line1780">line 1780</a>
|
|
627
771
|
</li></ul></dd>
|
|
628
772
|
|
|
629
773
|
|
|
@@ -635,20 +779,20 @@ proto2 or proto3.</p></td>
|
|
|
635
779
|
</dl>
|
|
636
780
|
|
|
637
781
|
|
|
638
|
-
|
|
639
782
|
|
|
640
|
-
|
|
641
783
|
|
|
642
|
-
|
|
643
784
|
|
|
644
|
-
|
|
645
785
|
|
|
646
|
-
|
|
647
786
|
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
787
|
+
|
|
788
|
+
|
|
789
|
+
|
|
790
|
+
|
|
791
|
+
|
|
792
|
+
|
|
793
|
+
<h5>Returns:</h5>
|
|
794
|
+
|
|
795
|
+
|
|
652
796
|
<div class="param-desc">
|
|
653
797
|
<p>Default value</p>
|
|
654
798
|
</div>
|
|
@@ -667,12 +811,11 @@ proto2 or proto3.</p></td>
|
|
|
667
811
|
</dd>
|
|
668
812
|
</dl>
|
|
669
813
|
|
|
670
|
-
|
|
671
|
-
|
|
672
814
|
|
|
673
|
-
</dd>
|
|
674
815
|
|
|
675
|
-
|
|
816
|
+
|
|
817
|
+
|
|
818
|
+
|
|
676
819
|
|
|
677
820
|
|
|
678
821
|
|
|
@@ -688,13 +831,13 @@ proto2 or proto3.</p></td>
|
|
|
688
831
|
</div>
|
|
689
832
|
|
|
690
833
|
<nav>
|
|
691
|
-
<h2><a href="index.html">
|
|
834
|
+
<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>
|
|
692
835
|
</nav>
|
|
693
836
|
|
|
694
|
-
<br
|
|
837
|
+
<br class="clear">
|
|
695
838
|
|
|
696
839
|
<footer>
|
|
697
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.
|
|
840
|
+
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)
|
|
698
841
|
</footer>
|
|
699
842
|
|
|
700
843
|
<script> prettyPrint(); </script>
|