You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/data/comments.js
+21-3Lines changed: 21 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -39,30 +39,31 @@ $root.Test1 = (function() {
39
39
40
40
/**
41
41
* Field with a comment.
42
+
* @member {string}field1
42
43
* @memberof Test1
43
44
* @instance
44
-
* @type {string}
45
45
*/
46
46
Test1.prototype.field1="";
47
47
48
48
/**
49
49
* Test1 field2.
50
+
* @member {number}field2
50
51
* @memberof Test1
51
52
* @instance
52
-
* @type {number}
53
53
*/
54
54
Test1.prototype.field2=0;
55
55
56
56
/**
57
57
* Field with a comment and a <a href="http://example.com/foo/">link</a>
58
+
* @member {boolean}field3
58
59
* @memberof Test1
59
60
* @instance
60
-
* @type {boolean}
61
61
*/
62
62
Test1.prototype.field3=false;
63
63
64
64
/**
65
65
* Creates a new Test1 instance using the specified properties.
66
+
* @function create
66
67
* @memberof Test1
67
68
* @static
68
69
* @param {ITest1=} [properties] Properties to set
@@ -74,6 +75,7 @@ $root.Test1 = (function() {
74
75
75
76
/**
76
77
* Encodes the specified Test1 message. Does not implicitly {@link Test1.verify|verify} messages.
78
+
* @function encode
77
79
* @memberof Test1
78
80
* @static
79
81
* @param {ITest1} message Test1 message or plain object to encode
@@ -94,6 +96,7 @@ $root.Test1 = (function() {
94
96
95
97
/**
96
98
* Encodes the specified Test1 message, length delimited. Does not implicitly {@link Test1.verify|verify} messages.
99
+
* @function encodeDelimited
97
100
* @memberof Test1
98
101
* @static
99
102
* @param {ITest1} message Test1 message or plain object to encode
@@ -106,6 +109,7 @@ $root.Test1 = (function() {
106
109
107
110
/**
108
111
* Decodes a Test1 message from the specified reader or buffer.
112
+
* @function decode
109
113
* @memberof Test1
110
114
* @static
111
115
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
@@ -140,6 +144,7 @@ $root.Test1 = (function() {
140
144
141
145
/**
142
146
* Decodes a Test1 message from the specified reader or buffer, length delimited.
147
+
* @function decodeDelimited
143
148
* @memberof Test1
144
149
* @static
145
150
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
@@ -155,6 +160,7 @@ $root.Test1 = (function() {
155
160
156
161
/**
157
162
* Verifies a Test1 message.
163
+
* @function verify
158
164
* @memberof Test1
159
165
* @static
160
166
* @param {Object.<string,*>} message Plain object to verify
@@ -177,6 +183,7 @@ $root.Test1 = (function() {
177
183
178
184
/**
179
185
* Creates a Test1 message from a plain object. Also converts values to their respective internal types.
186
+
* @function fromObject
180
187
* @memberof Test1
181
188
* @static
182
189
* @param {Object.<string,*>} object Plain object
@@ -197,6 +204,7 @@ $root.Test1 = (function() {
197
204
198
205
/**
199
206
* Creates a plain object from a Test1 message. Also converts values to other types if specified.
207
+
* @function toObject
200
208
* @memberof Test1
201
209
* @static
202
210
* @param {Test1} message Test1
@@ -223,6 +231,7 @@ $root.Test1 = (function() {
223
231
224
232
/**
225
233
* Converts this Test1 to JSON.
234
+
* @function toJSON
226
235
* @memberof Test1
227
236
* @instance
228
237
* @returns {Object.<string,*>} JSON object
@@ -258,6 +267,7 @@ $root.Test2 = (function() {
258
267
259
268
/**
260
269
* Creates a new Test2 instance using the specified properties.
270
+
* @function create
261
271
* @memberof Test2
262
272
* @static
263
273
* @param {ITest2=} [properties] Properties to set
@@ -269,6 +279,7 @@ $root.Test2 = (function() {
269
279
270
280
/**
271
281
* Encodes the specified Test2 message. Does not implicitly {@link Test2.verify|verify} messages.
282
+
* @function encode
272
283
* @memberof Test2
273
284
* @static
274
285
* @param {ITest2} message Test2 message or plain object to encode
@@ -283,6 +294,7 @@ $root.Test2 = (function() {
283
294
284
295
/**
285
296
* Encodes the specified Test2 message, length delimited. Does not implicitly {@link Test2.verify|verify} messages.
297
+
* @function encodeDelimited
286
298
* @memberof Test2
287
299
* @static
288
300
* @param {ITest2} message Test2 message or plain object to encode
@@ -295,6 +307,7 @@ $root.Test2 = (function() {
295
307
296
308
/**
297
309
* Decodes a Test2 message from the specified reader or buffer.
310
+
* @function decode
298
311
* @memberof Test2
299
312
* @static
300
313
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
@@ -320,6 +333,7 @@ $root.Test2 = (function() {
320
333
321
334
/**
322
335
* Decodes a Test2 message from the specified reader or buffer, length delimited.
336
+
* @function decodeDelimited
323
337
* @memberof Test2
324
338
* @static
325
339
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
@@ -335,6 +349,7 @@ $root.Test2 = (function() {
335
349
336
350
/**
337
351
* Verifies a Test2 message.
352
+
* @function verify
338
353
* @memberof Test2
339
354
* @static
340
355
* @param {Object.<string,*>} message Plain object to verify
@@ -348,6 +363,7 @@ $root.Test2 = (function() {
348
363
349
364
/**
350
365
* Creates a Test2 message from a plain object. Also converts values to their respective internal types.
366
+
* @function fromObject
351
367
* @memberof Test2
352
368
* @static
353
369
* @param {Object.<string,*>} object Plain object
@@ -361,6 +377,7 @@ $root.Test2 = (function() {
361
377
362
378
/**
363
379
* Creates a plain object from a Test2 message. Also converts values to other types if specified.
0 commit comments