protobufjs 4.1.2 → 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 +3 -1
- package/README.md +147 -25
- package/bin/pbjs +2 -2
- package/bower.json +3 -3
- package/cli/pbjs/targets/amd.js +1 -1
- package/cli/pbjs/targets/json.js +9 -1
- package/cli/pbjs/targets/proto.js +48 -24
- package/cli/pbjs/util.js +1 -1
- package/cli/pbjs.js +9 -2
- package/dist/README.md +10 -10
- package/dist/{ProtoBuf-light.js → protobuf-light.js} +207 -152
- package/dist/protobuf-light.min.js +94 -0
- package/dist/protobuf-light.min.js.gz +0 -0
- package/dist/protobuf-light.min.map +8 -0
- package/dist/{ProtoBuf.js → protobuf.js} +265 -175
- package/dist/protobuf.min.js +116 -0
- package/dist/protobuf.min.js.gz +0 -0
- package/dist/protobuf.min.map +8 -0
- package/docs/ProtoBuf.Builder.Message.html +1473 -967
- 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 +919 -652
- 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 +271 -180
- 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/donate.png +0 -0
- 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 → protobuf.js} +933 -922
- package/index.js +1 -18
- package/jsdoc.json +1 -1
- package/package.json +11 -11
- package/protobuf.png +0 -0
- package/scripts/build.js +53 -58
- package/src/ProtoBuf/Builder/Message.js +18 -9
- package/src/ProtoBuf/Builder/Service.js +3 -0
- package/src/ProtoBuf/Builder.js +34 -10
- package/src/ProtoBuf/DotProto/Parser.js +58 -23
- package/src/ProtoBuf/Reflect/Element.js +17 -4
- package/src/ProtoBuf/Reflect/Message/Field.js +6 -5
- package/src/ProtoBuf/Reflect/Message.js +9 -4
- package/src/ProtoBuf/Util.js +116 -116
- package/src/bower.json +2 -2
- package/src/google/protobuf/descriptor.json +55 -15
- package/src/{ProtoBuf.js → protobuf.js} +0 -0
- package/src/wrap.js +4 -4
- 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-weak.proto +7 -0
- 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 +107 -82
- package/ProtoBuf.png +0 -0
- package/dist/ProtoBuf-light.min.js +0 -87
- package/dist/ProtoBuf-light.min.js.gz +0 -0
- package/dist/ProtoBuf-light.min.map +0 -8
- package/dist/ProtoBuf.min.js +0 -108
- package/dist/ProtoBuf.min.js.gz +0 -0
- package/dist/ProtoBuf.min.map +0 -8
- package/externs/ByteBuffer.js +0 -767
- package/externs/Long.js +0 -328
- 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/issue42/innerextend.proto +0 -18
- package/sandbox/issue42/main.js +0 -8
- package/sandbox/issue42/outerextend.proto +0 -17
- package/tests/gtfs-realtime.proto +0 -552
- package/webpack.config.js +0 -9
package/docs/ProtoBuf.Map.html
CHANGED
|
@@ -23,46 +23,50 @@
|
|
|
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>.</span>
|
|
31
30
|
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
<h2>
|
|
32
|
+
<span class="ancestors"><a href="ProtoBuf.html">ProtoBuf</a>.</span>
|
|
33
|
+
|
|
34
|
+
Map
|
|
35
|
+
</h2>
|
|
36
|
+
|
|
34
37
|
|
|
35
38
|
</header>
|
|
36
39
|
|
|
37
40
|
<article>
|
|
38
41
|
<div class="container-overview">
|
|
39
42
|
|
|
43
|
+
|
|
40
44
|
|
|
41
45
|
|
|
42
|
-
|
|
43
|
-
<dt>
|
|
46
|
+
|
|
44
47
|
<h4 class="name" id="Map"><span class="type-signature"></span>new Map<span class="signature">(field<span class="signature-attributes">non-null</span>, contents<span class="signature-attributes">opt</span>)</span><span class="type-signature"></span></h4>
|
|
45
48
|
|
|
46
49
|
|
|
47
|
-
</dt>
|
|
48
|
-
<dd>
|
|
49
50
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
<div class="description">
|
|
54
|
+
<p>Constructs a new Map. A Map is a container that is used to implement map
|
|
53
55
|
fields on message objects. It closely follows the ES6 Map API; however,
|
|
54
56
|
it is distinct because we do not want to depend on external polyfills or
|
|
55
57
|
on ES6 itself.</p>
|
|
56
|
-
|
|
57
|
-
|
|
58
|
+
</div>
|
|
59
|
+
|
|
60
|
+
|
|
58
61
|
|
|
59
|
-
|
|
60
62
|
|
|
61
|
-
|
|
62
63
|
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
<h5>Parameters:</h5>
|
|
63
69
|
|
|
64
|
-
<h5>Parameters:</h5>
|
|
65
|
-
|
|
66
70
|
|
|
67
71
|
<table class="params">
|
|
68
72
|
<thead>
|
|
@@ -151,10 +155,20 @@ on ES6 itself.</p>
|
|
|
151
155
|
|
|
152
156
|
</tbody>
|
|
153
157
|
</table>
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
<dl class="details">
|
|
165
|
+
|
|
154
166
|
|
|
155
167
|
|
|
156
168
|
|
|
157
|
-
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
|
|
158
172
|
|
|
159
173
|
|
|
160
174
|
|
|
@@ -176,7 +190,7 @@ on ES6 itself.</p>
|
|
|
176
190
|
|
|
177
191
|
<dt class="tag-source">Source:</dt>
|
|
178
192
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
179
|
-
<a href="
|
|
193
|
+
<a href="protobuf.js.html">protobuf.js</a>, <a href="protobuf.js.html#line4934">line 4934</a>
|
|
180
194
|
</li></ul></dd>
|
|
181
195
|
|
|
182
196
|
|
|
@@ -188,25 +202,22 @@ on ES6 itself.</p>
|
|
|
188
202
|
</dl>
|
|
189
203
|
|
|
190
204
|
|
|
191
|
-
|
|
192
205
|
|
|
193
|
-
|
|
194
206
|
|
|
195
|
-
|
|
196
207
|
|
|
197
|
-
|
|
198
208
|
|
|
199
|
-
|
|
200
209
|
|
|
201
|
-
|
|
202
210
|
|
|
203
|
-
|
|
204
|
-
</dd>
|
|
205
211
|
|
|
206
|
-
|
|
207
|
-
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
|
|
208
218
|
|
|
209
219
|
|
|
220
|
+
</div>
|
|
210
221
|
|
|
211
222
|
|
|
212
223
|
|
|
@@ -221,34 +232,41 @@ on ES6 itself.</p>
|
|
|
221
232
|
|
|
222
233
|
<h3 class="subsection-title">Members</h3>
|
|
223
234
|
|
|
224
|
-
|
|
235
|
+
|
|
225
236
|
|
|
226
|
-
<
|
|
227
|
-
<h4 class="name" id="field"><span class="type-signature">(non-null) </span>field<span class="type-signature"> :ProtoBuf.Reflect.Field</span></h4>
|
|
237
|
+
<h4 class="name" id="field"><span class="type-signature">(non-null) </span>field<span class="type-signature"> :ProtoBuf.Reflect.Field</span></h4>
|
|
228
238
|
|
|
229
|
-
|
|
230
|
-
</dt>
|
|
231
|
-
<dd>
|
|
232
|
-
|
|
233
|
-
<div class="description">
|
|
234
|
-
<p>The field corresponding to this map.</p>
|
|
235
|
-
</div>
|
|
236
|
-
|
|
237
239
|
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
<div class="description">
|
|
243
|
+
<p>The field corresponding to this map.</p>
|
|
244
|
+
</div>
|
|
245
|
+
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
<h5>Type:</h5>
|
|
249
|
+
<ul>
|
|
250
|
+
<li>
|
|
251
|
+
|
|
243
252
|
<span class="param-type">ProtoBuf.Reflect.Field</span>
|
|
244
253
|
|
|
245
254
|
|
|
246
|
-
|
|
247
|
-
|
|
255
|
+
</li>
|
|
256
|
+
</ul>
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
<dl class="details">
|
|
263
|
+
|
|
248
264
|
|
|
249
265
|
|
|
250
266
|
|
|
251
|
-
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
|
|
252
270
|
|
|
253
271
|
|
|
254
272
|
|
|
@@ -270,7 +288,7 @@ on ES6 itself.</p>
|
|
|
270
288
|
|
|
271
289
|
<dt class="tag-source">Source:</dt>
|
|
272
290
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
273
|
-
<a href="
|
|
291
|
+
<a href="protobuf.js.html">protobuf.js</a>, <a href="protobuf.js.html#line4942">line 4942</a>
|
|
274
292
|
</li></ul></dd>
|
|
275
293
|
|
|
276
294
|
|
|
@@ -282,39 +300,45 @@ on ES6 itself.</p>
|
|
|
282
300
|
</dl>
|
|
283
301
|
|
|
284
302
|
|
|
285
|
-
|
|
286
303
|
|
|
287
|
-
|
|
288
|
-
|
|
304
|
+
|
|
305
|
+
|
|
289
306
|
|
|
290
307
|
|
|
291
308
|
|
|
292
|
-
<
|
|
293
|
-
<h4 class="name" id="keyElem"><span class="type-signature">(non-null) </span>keyElem<span class="type-signature"> :<a href="ProtoBuf.Reflect.Element.html">ProtoBuf.Reflect.Element</a></span></h4>
|
|
309
|
+
<h4 class="name" id="keyElem"><span class="type-signature">(non-null) </span>keyElem<span class="type-signature"> :<a href="ProtoBuf.Reflect.Element.html">ProtoBuf.Reflect.Element</a></span></h4>
|
|
294
310
|
|
|
295
|
-
|
|
296
|
-
</dt>
|
|
297
|
-
<dd>
|
|
298
|
-
|
|
299
|
-
<div class="description">
|
|
300
|
-
<p>Element instance corresponding to key type.</p>
|
|
301
|
-
</div>
|
|
302
|
-
|
|
303
311
|
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
<div class="description">
|
|
315
|
+
<p>Element instance corresponding to key type.</p>
|
|
316
|
+
</div>
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
|
|
320
|
+
<h5>Type:</h5>
|
|
321
|
+
<ul>
|
|
322
|
+
<li>
|
|
323
|
+
|
|
309
324
|
<span class="param-type"><a href="ProtoBuf.Reflect.Element.html">ProtoBuf.Reflect.Element</a></span>
|
|
310
325
|
|
|
311
326
|
|
|
312
|
-
|
|
313
|
-
|
|
327
|
+
</li>
|
|
328
|
+
</ul>
|
|
329
|
+
|
|
330
|
+
|
|
331
|
+
|
|
332
|
+
|
|
333
|
+
|
|
334
|
+
<dl class="details">
|
|
335
|
+
|
|
314
336
|
|
|
315
337
|
|
|
316
338
|
|
|
317
|
-
|
|
339
|
+
|
|
340
|
+
|
|
341
|
+
|
|
318
342
|
|
|
319
343
|
|
|
320
344
|
|
|
@@ -336,7 +360,7 @@ on ES6 itself.</p>
|
|
|
336
360
|
|
|
337
361
|
<dt class="tag-source">Source:</dt>
|
|
338
362
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
339
|
-
<a href="
|
|
363
|
+
<a href="protobuf.js.html">protobuf.js</a>, <a href="protobuf.js.html#line4948">line 4948</a>
|
|
340
364
|
</li></ul></dd>
|
|
341
365
|
|
|
342
366
|
|
|
@@ -348,22 +372,19 @@ on ES6 itself.</p>
|
|
|
348
372
|
</dl>
|
|
349
373
|
|
|
350
374
|
|
|
351
|
-
|
|
352
375
|
|
|
353
|
-
|
|
354
|
-
|
|
376
|
+
|
|
377
|
+
|
|
355
378
|
|
|
356
379
|
|
|
357
380
|
|
|
358
|
-
<
|
|
359
|
-
<h4 class="name" id="map"><span class="type-signature">(non-null) </span>map<span class="type-signature"> :Object.<string, Object></span></h4>
|
|
381
|
+
<h4 class="name" id="map"><span class="type-signature">(non-null) </span>map<span class="type-signature"> :Object.<string, {key: *, value: *}></span></h4>
|
|
360
382
|
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
<
|
|
366
|
-
<p>Internal map: stores mapping of (string form of key) -> (key, value)
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
<div class="description">
|
|
387
|
+
<p>Internal map: stores mapping of (string form of key) -> (key, value)
|
|
367
388
|
pair.</p>
|
|
368
389
|
<p>We provide map semantics for arbitrary key types, but we build on top
|
|
369
390
|
of an Object, which has only string keys. In order to avoid the need
|
|
@@ -372,23 +393,32 @@ we store the native key value alongside the value. Thus, we only need
|
|
|
372
393
|
a one-way mapping from a key type to its string form that guarantees
|
|
373
394
|
uniqueness and equality (i.e., str(K1) === str(K2) if and only if K1
|
|
374
395
|
=== K2).</p>
|
|
375
|
-
|
|
376
|
-
|
|
396
|
+
</div>
|
|
397
|
+
|
|
398
|
+
|
|
399
|
+
|
|
400
|
+
<h5>Type:</h5>
|
|
401
|
+
<ul>
|
|
402
|
+
<li>
|
|
403
|
+
|
|
404
|
+
<span class="param-type">Object.<string, {key: *, value: *}></span>
|
|
405
|
+
|
|
406
|
+
|
|
407
|
+
</li>
|
|
408
|
+
</ul>
|
|
409
|
+
|
|
377
410
|
|
|
378
|
-
|
|
379
|
-
<h5>Type:</h5>
|
|
380
|
-
<ul>
|
|
381
|
-
<li>
|
|
382
|
-
|
|
383
|
-
<span class="param-type">Object.<string, Object></span>
|
|
384
411
|
|
|
385
412
|
|
|
386
|
-
|
|
387
|
-
|
|
413
|
+
|
|
414
|
+
<dl class="details">
|
|
415
|
+
|
|
388
416
|
|
|
389
417
|
|
|
390
418
|
|
|
391
|
-
|
|
419
|
+
|
|
420
|
+
|
|
421
|
+
|
|
392
422
|
|
|
393
423
|
|
|
394
424
|
|
|
@@ -410,7 +440,7 @@ uniqueness and equality (i.e., str(K1) === str(K2) if and only if K1
|
|
|
410
440
|
|
|
411
441
|
<dt class="tag-source">Source:</dt>
|
|
412
442
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
413
|
-
<a href="
|
|
443
|
+
<a href="protobuf.js.html">protobuf.js</a>, <a href="protobuf.js.html#line4970">line 4970</a>
|
|
414
444
|
</li></ul></dd>
|
|
415
445
|
|
|
416
446
|
|
|
@@ -422,39 +452,45 @@ uniqueness and equality (i.e., str(K1) === str(K2) if and only if K1
|
|
|
422
452
|
</dl>
|
|
423
453
|
|
|
424
454
|
|
|
425
|
-
|
|
426
455
|
|
|
427
|
-
|
|
428
|
-
|
|
456
|
+
|
|
457
|
+
|
|
429
458
|
|
|
430
459
|
|
|
431
460
|
|
|
432
|
-
<
|
|
433
|
-
<h4 class="name" id="valueElem"><span class="type-signature">(non-null) </span>valueElem<span class="type-signature"> :<a href="ProtoBuf.Reflect.Element.html">ProtoBuf.Reflect.Element</a></span></h4>
|
|
461
|
+
<h4 class="name" id="valueElem"><span class="type-signature">(non-null) </span>valueElem<span class="type-signature"> :<a href="ProtoBuf.Reflect.Element.html">ProtoBuf.Reflect.Element</a></span></h4>
|
|
434
462
|
|
|
435
|
-
|
|
436
|
-
</dt>
|
|
437
|
-
<dd>
|
|
438
|
-
|
|
439
|
-
<div class="description">
|
|
440
|
-
<p>Element instance corresponding to value type.</p>
|
|
441
|
-
</div>
|
|
442
|
-
|
|
443
463
|
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
<div class="description">
|
|
467
|
+
<p>Element instance corresponding to value type.</p>
|
|
468
|
+
</div>
|
|
469
|
+
|
|
470
|
+
|
|
471
|
+
|
|
472
|
+
<h5>Type:</h5>
|
|
473
|
+
<ul>
|
|
474
|
+
<li>
|
|
475
|
+
|
|
449
476
|
<span class="param-type"><a href="ProtoBuf.Reflect.Element.html">ProtoBuf.Reflect.Element</a></span>
|
|
450
477
|
|
|
451
478
|
|
|
452
|
-
|
|
453
|
-
|
|
479
|
+
</li>
|
|
480
|
+
</ul>
|
|
481
|
+
|
|
482
|
+
|
|
483
|
+
|
|
484
|
+
|
|
485
|
+
|
|
486
|
+
<dl class="details">
|
|
487
|
+
|
|
454
488
|
|
|
455
489
|
|
|
456
490
|
|
|
457
|
-
|
|
491
|
+
|
|
492
|
+
|
|
493
|
+
|
|
458
494
|
|
|
459
495
|
|
|
460
496
|
|
|
@@ -476,7 +512,7 @@ uniqueness and equality (i.e., str(K1) === str(K2) if and only if K1
|
|
|
476
512
|
|
|
477
513
|
<dt class="tag-source">Source:</dt>
|
|
478
514
|
<dd class="tag-source"><ul class="dummy"><li>
|
|
479
|
-
<a href="
|
|
515
|
+
<a href="protobuf.js.html">protobuf.js</a>, <a href="protobuf.js.html#line4954">line 4954</a>
|
|
480
516
|
</li></ul></dd>
|
|
481
517
|
|
|
482
518
|
|
|
@@ -488,12 +524,11 @@ uniqueness and equality (i.e., str(K1) === str(K2) if and only if K1
|
|
|
488
524
|
</dl>
|
|
489
525
|
|
|
490
526
|
|
|
491
|
-
|
|
492
527
|
|
|
493
|
-
|
|
494
|
-
</dd>
|
|
495
528
|
|
|
496
|
-
|
|
529
|
+
|
|
530
|
+
|
|
531
|
+
|
|
497
532
|
|
|
498
533
|
|
|
499
534
|
|
|
@@ -511,13 +546,13 @@ uniqueness and equality (i.e., str(K1) === str(K2) if and only if K1
|
|
|
511
546
|
</div>
|
|
512
547
|
|
|
513
548
|
<nav>
|
|
514
|
-
<h2><a href="index.html">
|
|
549
|
+
<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>
|
|
515
550
|
</nav>
|
|
516
551
|
|
|
517
|
-
<br
|
|
552
|
+
<br class="clear">
|
|
518
553
|
|
|
519
554
|
<footer>
|
|
520
|
-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.3.
|
|
555
|
+
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)
|
|
521
556
|
</footer>
|
|
522
557
|
|
|
523
558
|
<script> prettyPrint(); </script>
|