@headspace/protos-events 0.1.0-alpha.0ae9639 → 1.2.0
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/lib/index.d.ts +737 -98
- package/lib/index.js +2070 -384
- package/package.json +10 -10
- package/community.proto +0 -13
- package/pingpong.proto +0 -15
- package/subscription.proto +0 -11
package/lib/index.js
CHANGED
|
@@ -18,6 +18,7 @@ $root.FamilyMemberAdded = (function() {
|
|
|
18
18
|
* @property {number|Long|null} [timestamp] FamilyMemberAdded timestamp
|
|
19
19
|
* @property {number|null} [userGroupEntryId] FamilyMemberAdded userGroupEntryId
|
|
20
20
|
* @property {string|null} [userId] FamilyMemberAdded userId
|
|
21
|
+
* @property {number|null} [userGroupId] FamilyMemberAdded userGroupId
|
|
21
22
|
*/
|
|
22
23
|
|
|
23
24
|
/**
|
|
@@ -59,6 +60,14 @@ $root.FamilyMemberAdded = (function() {
|
|
|
59
60
|
*/
|
|
60
61
|
FamilyMemberAdded.prototype.userId = "";
|
|
61
62
|
|
|
63
|
+
/**
|
|
64
|
+
* FamilyMemberAdded userGroupId.
|
|
65
|
+
* @member {number} userGroupId
|
|
66
|
+
* @memberof FamilyMemberAdded
|
|
67
|
+
* @instance
|
|
68
|
+
*/
|
|
69
|
+
FamilyMemberAdded.prototype.userGroupId = 0;
|
|
70
|
+
|
|
62
71
|
/**
|
|
63
72
|
* Creates a new FamilyMemberAdded instance using the specified properties.
|
|
64
73
|
* @function create
|
|
@@ -89,6 +98,8 @@ $root.FamilyMemberAdded = (function() {
|
|
|
89
98
|
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.userGroupEntryId);
|
|
90
99
|
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
91
100
|
writer.uint32(/* id 3, wireType 2 =*/26).string(message.userId);
|
|
101
|
+
if (message.userGroupId != null && message.hasOwnProperty("userGroupId"))
|
|
102
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.userGroupId);
|
|
92
103
|
return writer;
|
|
93
104
|
};
|
|
94
105
|
|
|
@@ -132,6 +143,9 @@ $root.FamilyMemberAdded = (function() {
|
|
|
132
143
|
case 3:
|
|
133
144
|
message.userId = reader.string();
|
|
134
145
|
break;
|
|
146
|
+
case 4:
|
|
147
|
+
message.userGroupId = reader.uint32();
|
|
148
|
+
break;
|
|
135
149
|
default:
|
|
136
150
|
reader.skipType(tag & 7);
|
|
137
151
|
break;
|
|
@@ -176,6 +190,9 @@ $root.FamilyMemberAdded = (function() {
|
|
|
176
190
|
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
177
191
|
if (!$util.isString(message.userId))
|
|
178
192
|
return "userId: string expected";
|
|
193
|
+
if (message.userGroupId != null && message.hasOwnProperty("userGroupId"))
|
|
194
|
+
if (!$util.isInteger(message.userGroupId))
|
|
195
|
+
return "userGroupId: integer expected";
|
|
179
196
|
return null;
|
|
180
197
|
};
|
|
181
198
|
|
|
@@ -204,6 +221,8 @@ $root.FamilyMemberAdded = (function() {
|
|
|
204
221
|
message.userGroupEntryId = object.userGroupEntryId >>> 0;
|
|
205
222
|
if (object.userId != null)
|
|
206
223
|
message.userId = String(object.userId);
|
|
224
|
+
if (object.userGroupId != null)
|
|
225
|
+
message.userGroupId = object.userGroupId >>> 0;
|
|
207
226
|
return message;
|
|
208
227
|
};
|
|
209
228
|
|
|
@@ -228,6 +247,7 @@ $root.FamilyMemberAdded = (function() {
|
|
|
228
247
|
object.timestamp = options.longs === String ? "0" : 0;
|
|
229
248
|
object.userGroupEntryId = 0;
|
|
230
249
|
object.userId = "";
|
|
250
|
+
object.userGroupId = 0;
|
|
231
251
|
}
|
|
232
252
|
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
233
253
|
if (typeof message.timestamp === "number")
|
|
@@ -238,6 +258,8 @@ $root.FamilyMemberAdded = (function() {
|
|
|
238
258
|
object.userGroupEntryId = message.userGroupEntryId;
|
|
239
259
|
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
240
260
|
object.userId = message.userId;
|
|
261
|
+
if (message.userGroupId != null && message.hasOwnProperty("userGroupId"))
|
|
262
|
+
object.userGroupId = message.userGroupId;
|
|
241
263
|
return object;
|
|
242
264
|
};
|
|
243
265
|
|
|
@@ -255,26 +277,29 @@ $root.FamilyMemberAdded = (function() {
|
|
|
255
277
|
return FamilyMemberAdded;
|
|
256
278
|
})();
|
|
257
279
|
|
|
258
|
-
$root.
|
|
280
|
+
$root.FamilyMemberInvited = (function() {
|
|
259
281
|
|
|
260
282
|
/**
|
|
261
|
-
* Properties of a
|
|
262
|
-
* @exports
|
|
263
|
-
* @interface
|
|
264
|
-
* @property {number|Long|null} [timestamp]
|
|
265
|
-
* @property {number|null} [userGroupEntryId]
|
|
266
|
-
* @property {
|
|
283
|
+
* Properties of a FamilyMemberInvited.
|
|
284
|
+
* @exports IFamilyMemberInvited
|
|
285
|
+
* @interface IFamilyMemberInvited
|
|
286
|
+
* @property {number|Long|null} [timestamp] FamilyMemberInvited timestamp
|
|
287
|
+
* @property {number|null} [userGroupEntryId] FamilyMemberInvited userGroupEntryId
|
|
288
|
+
* @property {number|null} [userGroupId] FamilyMemberInvited userGroupId
|
|
289
|
+
* @property {string|null} [email] FamilyMemberInvited email
|
|
290
|
+
* @property {string|null} [token] FamilyMemberInvited token
|
|
291
|
+
* @property {string|null} [userId] FamilyMemberInvited userId
|
|
267
292
|
*/
|
|
268
293
|
|
|
269
294
|
/**
|
|
270
|
-
* Constructs a new
|
|
271
|
-
* @exports
|
|
272
|
-
* @classdesc Represents a
|
|
273
|
-
* @implements
|
|
295
|
+
* Constructs a new FamilyMemberInvited.
|
|
296
|
+
* @exports FamilyMemberInvited
|
|
297
|
+
* @classdesc Represents a FamilyMemberInvited.
|
|
298
|
+
* @implements IFamilyMemberInvited
|
|
274
299
|
* @constructor
|
|
275
|
-
* @param {
|
|
300
|
+
* @param {IFamilyMemberInvited=} [properties] Properties to set
|
|
276
301
|
*/
|
|
277
|
-
function
|
|
302
|
+
function FamilyMemberInvited(properties) {
|
|
278
303
|
if (properties)
|
|
279
304
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
280
305
|
if (properties[keys[i]] != null)
|
|
@@ -282,90 +307,120 @@ $root.FamilyMemberRemoved = (function() {
|
|
|
282
307
|
}
|
|
283
308
|
|
|
284
309
|
/**
|
|
285
|
-
*
|
|
310
|
+
* FamilyMemberInvited timestamp.
|
|
286
311
|
* @member {number|Long} timestamp
|
|
287
|
-
* @memberof
|
|
312
|
+
* @memberof FamilyMemberInvited
|
|
288
313
|
* @instance
|
|
289
314
|
*/
|
|
290
|
-
|
|
315
|
+
FamilyMemberInvited.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
291
316
|
|
|
292
317
|
/**
|
|
293
|
-
*
|
|
318
|
+
* FamilyMemberInvited userGroupEntryId.
|
|
294
319
|
* @member {number} userGroupEntryId
|
|
295
|
-
* @memberof
|
|
320
|
+
* @memberof FamilyMemberInvited
|
|
296
321
|
* @instance
|
|
297
322
|
*/
|
|
298
|
-
|
|
323
|
+
FamilyMemberInvited.prototype.userGroupEntryId = 0;
|
|
299
324
|
|
|
300
325
|
/**
|
|
301
|
-
*
|
|
326
|
+
* FamilyMemberInvited userGroupId.
|
|
327
|
+
* @member {number} userGroupId
|
|
328
|
+
* @memberof FamilyMemberInvited
|
|
329
|
+
* @instance
|
|
330
|
+
*/
|
|
331
|
+
FamilyMemberInvited.prototype.userGroupId = 0;
|
|
332
|
+
|
|
333
|
+
/**
|
|
334
|
+
* FamilyMemberInvited email.
|
|
335
|
+
* @member {string} email
|
|
336
|
+
* @memberof FamilyMemberInvited
|
|
337
|
+
* @instance
|
|
338
|
+
*/
|
|
339
|
+
FamilyMemberInvited.prototype.email = "";
|
|
340
|
+
|
|
341
|
+
/**
|
|
342
|
+
* FamilyMemberInvited token.
|
|
343
|
+
* @member {string} token
|
|
344
|
+
* @memberof FamilyMemberInvited
|
|
345
|
+
* @instance
|
|
346
|
+
*/
|
|
347
|
+
FamilyMemberInvited.prototype.token = "";
|
|
348
|
+
|
|
349
|
+
/**
|
|
350
|
+
* FamilyMemberInvited userId.
|
|
302
351
|
* @member {string} userId
|
|
303
|
-
* @memberof
|
|
352
|
+
* @memberof FamilyMemberInvited
|
|
304
353
|
* @instance
|
|
305
354
|
*/
|
|
306
|
-
|
|
355
|
+
FamilyMemberInvited.prototype.userId = "";
|
|
307
356
|
|
|
308
357
|
/**
|
|
309
|
-
* Creates a new
|
|
358
|
+
* Creates a new FamilyMemberInvited instance using the specified properties.
|
|
310
359
|
* @function create
|
|
311
|
-
* @memberof
|
|
360
|
+
* @memberof FamilyMemberInvited
|
|
312
361
|
* @static
|
|
313
|
-
* @param {
|
|
314
|
-
* @returns {
|
|
362
|
+
* @param {IFamilyMemberInvited=} [properties] Properties to set
|
|
363
|
+
* @returns {FamilyMemberInvited} FamilyMemberInvited instance
|
|
315
364
|
*/
|
|
316
|
-
|
|
317
|
-
return new
|
|
365
|
+
FamilyMemberInvited.create = function create(properties) {
|
|
366
|
+
return new FamilyMemberInvited(properties);
|
|
318
367
|
};
|
|
319
368
|
|
|
320
369
|
/**
|
|
321
|
-
* Encodes the specified
|
|
370
|
+
* Encodes the specified FamilyMemberInvited message. Does not implicitly {@link FamilyMemberInvited.verify|verify} messages.
|
|
322
371
|
* @function encode
|
|
323
|
-
* @memberof
|
|
372
|
+
* @memberof FamilyMemberInvited
|
|
324
373
|
* @static
|
|
325
|
-
* @param {
|
|
374
|
+
* @param {IFamilyMemberInvited} message FamilyMemberInvited message or plain object to encode
|
|
326
375
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
327
376
|
* @returns {$protobuf.Writer} Writer
|
|
328
377
|
*/
|
|
329
|
-
|
|
378
|
+
FamilyMemberInvited.encode = function encode(message, writer) {
|
|
330
379
|
if (!writer)
|
|
331
380
|
writer = $Writer.create();
|
|
332
381
|
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
333
382
|
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.timestamp);
|
|
334
383
|
if (message.userGroupEntryId != null && message.hasOwnProperty("userGroupEntryId"))
|
|
335
384
|
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.userGroupEntryId);
|
|
385
|
+
if (message.userGroupId != null && message.hasOwnProperty("userGroupId"))
|
|
386
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.userGroupId);
|
|
387
|
+
if (message.email != null && message.hasOwnProperty("email"))
|
|
388
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.email);
|
|
389
|
+
if (message.token != null && message.hasOwnProperty("token"))
|
|
390
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.token);
|
|
336
391
|
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
337
|
-
writer.uint32(/* id
|
|
392
|
+
writer.uint32(/* id 6, wireType 2 =*/50).string(message.userId);
|
|
338
393
|
return writer;
|
|
339
394
|
};
|
|
340
395
|
|
|
341
396
|
/**
|
|
342
|
-
* Encodes the specified
|
|
397
|
+
* Encodes the specified FamilyMemberInvited message, length delimited. Does not implicitly {@link FamilyMemberInvited.verify|verify} messages.
|
|
343
398
|
* @function encodeDelimited
|
|
344
|
-
* @memberof
|
|
399
|
+
* @memberof FamilyMemberInvited
|
|
345
400
|
* @static
|
|
346
|
-
* @param {
|
|
401
|
+
* @param {IFamilyMemberInvited} message FamilyMemberInvited message or plain object to encode
|
|
347
402
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
348
403
|
* @returns {$protobuf.Writer} Writer
|
|
349
404
|
*/
|
|
350
|
-
|
|
405
|
+
FamilyMemberInvited.encodeDelimited = function encodeDelimited(message, writer) {
|
|
351
406
|
return this.encode(message, writer).ldelim();
|
|
352
407
|
};
|
|
353
408
|
|
|
354
409
|
/**
|
|
355
|
-
* Decodes a
|
|
410
|
+
* Decodes a FamilyMemberInvited message from the specified reader or buffer.
|
|
356
411
|
* @function decode
|
|
357
|
-
* @memberof
|
|
412
|
+
* @memberof FamilyMemberInvited
|
|
358
413
|
* @static
|
|
359
414
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
360
415
|
* @param {number} [length] Message length if known beforehand
|
|
361
|
-
* @returns {
|
|
416
|
+
* @returns {FamilyMemberInvited} FamilyMemberInvited
|
|
362
417
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
363
418
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
364
419
|
*/
|
|
365
|
-
|
|
420
|
+
FamilyMemberInvited.decode = function decode(reader, length) {
|
|
366
421
|
if (!(reader instanceof $Reader))
|
|
367
422
|
reader = $Reader.create(reader);
|
|
368
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.
|
|
423
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.FamilyMemberInvited();
|
|
369
424
|
while (reader.pos < end) {
|
|
370
425
|
var tag = reader.uint32();
|
|
371
426
|
switch (tag >>> 3) {
|
|
@@ -376,6 +431,15 @@ $root.FamilyMemberRemoved = (function() {
|
|
|
376
431
|
message.userGroupEntryId = reader.uint32();
|
|
377
432
|
break;
|
|
378
433
|
case 3:
|
|
434
|
+
message.userGroupId = reader.uint32();
|
|
435
|
+
break;
|
|
436
|
+
case 4:
|
|
437
|
+
message.email = reader.string();
|
|
438
|
+
break;
|
|
439
|
+
case 5:
|
|
440
|
+
message.token = reader.string();
|
|
441
|
+
break;
|
|
442
|
+
case 6:
|
|
379
443
|
message.userId = reader.string();
|
|
380
444
|
break;
|
|
381
445
|
default:
|
|
@@ -387,30 +451,30 @@ $root.FamilyMemberRemoved = (function() {
|
|
|
387
451
|
};
|
|
388
452
|
|
|
389
453
|
/**
|
|
390
|
-
* Decodes a
|
|
454
|
+
* Decodes a FamilyMemberInvited message from the specified reader or buffer, length delimited.
|
|
391
455
|
* @function decodeDelimited
|
|
392
|
-
* @memberof
|
|
456
|
+
* @memberof FamilyMemberInvited
|
|
393
457
|
* @static
|
|
394
458
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
395
|
-
* @returns {
|
|
459
|
+
* @returns {FamilyMemberInvited} FamilyMemberInvited
|
|
396
460
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
397
461
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
398
462
|
*/
|
|
399
|
-
|
|
463
|
+
FamilyMemberInvited.decodeDelimited = function decodeDelimited(reader) {
|
|
400
464
|
if (!(reader instanceof $Reader))
|
|
401
465
|
reader = new $Reader(reader);
|
|
402
466
|
return this.decode(reader, reader.uint32());
|
|
403
467
|
};
|
|
404
468
|
|
|
405
469
|
/**
|
|
406
|
-
* Verifies a
|
|
470
|
+
* Verifies a FamilyMemberInvited message.
|
|
407
471
|
* @function verify
|
|
408
|
-
* @memberof
|
|
472
|
+
* @memberof FamilyMemberInvited
|
|
409
473
|
* @static
|
|
410
474
|
* @param {Object.<string,*>} message Plain object to verify
|
|
411
475
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
412
476
|
*/
|
|
413
|
-
|
|
477
|
+
FamilyMemberInvited.verify = function verify(message) {
|
|
414
478
|
if (typeof message !== "object" || message === null)
|
|
415
479
|
return "object expected";
|
|
416
480
|
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
@@ -419,6 +483,15 @@ $root.FamilyMemberRemoved = (function() {
|
|
|
419
483
|
if (message.userGroupEntryId != null && message.hasOwnProperty("userGroupEntryId"))
|
|
420
484
|
if (!$util.isInteger(message.userGroupEntryId))
|
|
421
485
|
return "userGroupEntryId: integer expected";
|
|
486
|
+
if (message.userGroupId != null && message.hasOwnProperty("userGroupId"))
|
|
487
|
+
if (!$util.isInteger(message.userGroupId))
|
|
488
|
+
return "userGroupId: integer expected";
|
|
489
|
+
if (message.email != null && message.hasOwnProperty("email"))
|
|
490
|
+
if (!$util.isString(message.email))
|
|
491
|
+
return "email: string expected";
|
|
492
|
+
if (message.token != null && message.hasOwnProperty("token"))
|
|
493
|
+
if (!$util.isString(message.token))
|
|
494
|
+
return "token: string expected";
|
|
422
495
|
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
423
496
|
if (!$util.isString(message.userId))
|
|
424
497
|
return "userId: string expected";
|
|
@@ -426,17 +499,17 @@ $root.FamilyMemberRemoved = (function() {
|
|
|
426
499
|
};
|
|
427
500
|
|
|
428
501
|
/**
|
|
429
|
-
* Creates a
|
|
502
|
+
* Creates a FamilyMemberInvited message from a plain object. Also converts values to their respective internal types.
|
|
430
503
|
* @function fromObject
|
|
431
|
-
* @memberof
|
|
504
|
+
* @memberof FamilyMemberInvited
|
|
432
505
|
* @static
|
|
433
506
|
* @param {Object.<string,*>} object Plain object
|
|
434
|
-
* @returns {
|
|
507
|
+
* @returns {FamilyMemberInvited} FamilyMemberInvited
|
|
435
508
|
*/
|
|
436
|
-
|
|
437
|
-
if (object instanceof $root.
|
|
509
|
+
FamilyMemberInvited.fromObject = function fromObject(object) {
|
|
510
|
+
if (object instanceof $root.FamilyMemberInvited)
|
|
438
511
|
return object;
|
|
439
|
-
var message = new $root.
|
|
512
|
+
var message = new $root.FamilyMemberInvited();
|
|
440
513
|
if (object.timestamp != null)
|
|
441
514
|
if ($util.Long)
|
|
442
515
|
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
@@ -448,21 +521,27 @@ $root.FamilyMemberRemoved = (function() {
|
|
|
448
521
|
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
449
522
|
if (object.userGroupEntryId != null)
|
|
450
523
|
message.userGroupEntryId = object.userGroupEntryId >>> 0;
|
|
524
|
+
if (object.userGroupId != null)
|
|
525
|
+
message.userGroupId = object.userGroupId >>> 0;
|
|
526
|
+
if (object.email != null)
|
|
527
|
+
message.email = String(object.email);
|
|
528
|
+
if (object.token != null)
|
|
529
|
+
message.token = String(object.token);
|
|
451
530
|
if (object.userId != null)
|
|
452
531
|
message.userId = String(object.userId);
|
|
453
532
|
return message;
|
|
454
533
|
};
|
|
455
534
|
|
|
456
535
|
/**
|
|
457
|
-
* Creates a plain object from a
|
|
536
|
+
* Creates a plain object from a FamilyMemberInvited message. Also converts values to other types if specified.
|
|
458
537
|
* @function toObject
|
|
459
|
-
* @memberof
|
|
538
|
+
* @memberof FamilyMemberInvited
|
|
460
539
|
* @static
|
|
461
|
-
* @param {
|
|
540
|
+
* @param {FamilyMemberInvited} message FamilyMemberInvited
|
|
462
541
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
463
542
|
* @returns {Object.<string,*>} Plain object
|
|
464
543
|
*/
|
|
465
|
-
|
|
544
|
+
FamilyMemberInvited.toObject = function toObject(message, options) {
|
|
466
545
|
if (!options)
|
|
467
546
|
options = {};
|
|
468
547
|
var object = {};
|
|
@@ -473,6 +552,9 @@ $root.FamilyMemberRemoved = (function() {
|
|
|
473
552
|
} else
|
|
474
553
|
object.timestamp = options.longs === String ? "0" : 0;
|
|
475
554
|
object.userGroupEntryId = 0;
|
|
555
|
+
object.userGroupId = 0;
|
|
556
|
+
object.email = "";
|
|
557
|
+
object.token = "";
|
|
476
558
|
object.userId = "";
|
|
477
559
|
}
|
|
478
560
|
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
@@ -482,44 +564,54 @@ $root.FamilyMemberRemoved = (function() {
|
|
|
482
564
|
object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
|
|
483
565
|
if (message.userGroupEntryId != null && message.hasOwnProperty("userGroupEntryId"))
|
|
484
566
|
object.userGroupEntryId = message.userGroupEntryId;
|
|
567
|
+
if (message.userGroupId != null && message.hasOwnProperty("userGroupId"))
|
|
568
|
+
object.userGroupId = message.userGroupId;
|
|
569
|
+
if (message.email != null && message.hasOwnProperty("email"))
|
|
570
|
+
object.email = message.email;
|
|
571
|
+
if (message.token != null && message.hasOwnProperty("token"))
|
|
572
|
+
object.token = message.token;
|
|
485
573
|
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
486
574
|
object.userId = message.userId;
|
|
487
575
|
return object;
|
|
488
576
|
};
|
|
489
577
|
|
|
490
578
|
/**
|
|
491
|
-
* Converts this
|
|
579
|
+
* Converts this FamilyMemberInvited to JSON.
|
|
492
580
|
* @function toJSON
|
|
493
|
-
* @memberof
|
|
581
|
+
* @memberof FamilyMemberInvited
|
|
494
582
|
* @instance
|
|
495
583
|
* @returns {Object.<string,*>} JSON object
|
|
496
584
|
*/
|
|
497
|
-
|
|
585
|
+
FamilyMemberInvited.prototype.toJSON = function toJSON() {
|
|
498
586
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
499
587
|
};
|
|
500
588
|
|
|
501
|
-
return
|
|
589
|
+
return FamilyMemberInvited;
|
|
502
590
|
})();
|
|
503
591
|
|
|
504
|
-
$root.
|
|
592
|
+
$root.FamilyMemberRejected = (function() {
|
|
505
593
|
|
|
506
594
|
/**
|
|
507
|
-
* Properties of a
|
|
508
|
-
* @exports
|
|
509
|
-
* @interface
|
|
510
|
-
* @property {
|
|
511
|
-
* @property {number|
|
|
595
|
+
* Properties of a FamilyMemberRejected.
|
|
596
|
+
* @exports IFamilyMemberRejected
|
|
597
|
+
* @interface IFamilyMemberRejected
|
|
598
|
+
* @property {number|Long|null} [timestamp] FamilyMemberRejected timestamp
|
|
599
|
+
* @property {number|null} [userGroupEntryId] FamilyMemberRejected userGroupEntryId
|
|
600
|
+
* @property {number|null} [userGroupId] FamilyMemberRejected userGroupId
|
|
601
|
+
* @property {string|null} [email] FamilyMemberRejected email
|
|
602
|
+
* @property {string|null} [token] FamilyMemberRejected token
|
|
603
|
+
* @property {string|null} [userId] FamilyMemberRejected userId
|
|
512
604
|
*/
|
|
513
605
|
|
|
514
606
|
/**
|
|
515
|
-
* Constructs a new
|
|
516
|
-
* @exports
|
|
517
|
-
* @classdesc Represents a
|
|
518
|
-
* @implements
|
|
607
|
+
* Constructs a new FamilyMemberRejected.
|
|
608
|
+
* @exports FamilyMemberRejected
|
|
609
|
+
* @classdesc Represents a FamilyMemberRejected.
|
|
610
|
+
* @implements IFamilyMemberRejected
|
|
519
611
|
* @constructor
|
|
520
|
-
* @param {
|
|
612
|
+
* @param {IFamilyMemberRejected=} [properties] Properties to set
|
|
521
613
|
*/
|
|
522
|
-
function
|
|
614
|
+
function FamilyMemberRejected(properties) {
|
|
523
615
|
if (properties)
|
|
524
616
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
525
617
|
if (properties[keys[i]] != null)
|
|
@@ -527,88 +619,140 @@ $root.Ping = (function() {
|
|
|
527
619
|
}
|
|
528
620
|
|
|
529
621
|
/**
|
|
530
|
-
*
|
|
531
|
-
* @member {
|
|
532
|
-
* @memberof
|
|
622
|
+
* FamilyMemberRejected timestamp.
|
|
623
|
+
* @member {number|Long} timestamp
|
|
624
|
+
* @memberof FamilyMemberRejected
|
|
533
625
|
* @instance
|
|
534
626
|
*/
|
|
535
|
-
|
|
627
|
+
FamilyMemberRejected.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
536
628
|
|
|
537
629
|
/**
|
|
538
|
-
*
|
|
539
|
-
* @member {number
|
|
540
|
-
* @memberof
|
|
630
|
+
* FamilyMemberRejected userGroupEntryId.
|
|
631
|
+
* @member {number} userGroupEntryId
|
|
632
|
+
* @memberof FamilyMemberRejected
|
|
633
|
+
* @instance
|
|
634
|
+
*/
|
|
635
|
+
FamilyMemberRejected.prototype.userGroupEntryId = 0;
|
|
636
|
+
|
|
637
|
+
/**
|
|
638
|
+
* FamilyMemberRejected userGroupId.
|
|
639
|
+
* @member {number} userGroupId
|
|
640
|
+
* @memberof FamilyMemberRejected
|
|
641
|
+
* @instance
|
|
642
|
+
*/
|
|
643
|
+
FamilyMemberRejected.prototype.userGroupId = 0;
|
|
644
|
+
|
|
645
|
+
/**
|
|
646
|
+
* FamilyMemberRejected email.
|
|
647
|
+
* @member {string} email
|
|
648
|
+
* @memberof FamilyMemberRejected
|
|
649
|
+
* @instance
|
|
650
|
+
*/
|
|
651
|
+
FamilyMemberRejected.prototype.email = "";
|
|
652
|
+
|
|
653
|
+
/**
|
|
654
|
+
* FamilyMemberRejected token.
|
|
655
|
+
* @member {string} token
|
|
656
|
+
* @memberof FamilyMemberRejected
|
|
657
|
+
* @instance
|
|
658
|
+
*/
|
|
659
|
+
FamilyMemberRejected.prototype.token = "";
|
|
660
|
+
|
|
661
|
+
/**
|
|
662
|
+
* FamilyMemberRejected userId.
|
|
663
|
+
* @member {string} userId
|
|
664
|
+
* @memberof FamilyMemberRejected
|
|
541
665
|
* @instance
|
|
542
666
|
*/
|
|
543
|
-
|
|
667
|
+
FamilyMemberRejected.prototype.userId = "";
|
|
544
668
|
|
|
545
669
|
/**
|
|
546
|
-
* Creates a new
|
|
670
|
+
* Creates a new FamilyMemberRejected instance using the specified properties.
|
|
547
671
|
* @function create
|
|
548
|
-
* @memberof
|
|
672
|
+
* @memberof FamilyMemberRejected
|
|
549
673
|
* @static
|
|
550
|
-
* @param {
|
|
551
|
-
* @returns {
|
|
674
|
+
* @param {IFamilyMemberRejected=} [properties] Properties to set
|
|
675
|
+
* @returns {FamilyMemberRejected} FamilyMemberRejected instance
|
|
552
676
|
*/
|
|
553
|
-
|
|
554
|
-
return new
|
|
677
|
+
FamilyMemberRejected.create = function create(properties) {
|
|
678
|
+
return new FamilyMemberRejected(properties);
|
|
555
679
|
};
|
|
556
680
|
|
|
557
681
|
/**
|
|
558
|
-
* Encodes the specified
|
|
682
|
+
* Encodes the specified FamilyMemberRejected message. Does not implicitly {@link FamilyMemberRejected.verify|verify} messages.
|
|
559
683
|
* @function encode
|
|
560
|
-
* @memberof
|
|
684
|
+
* @memberof FamilyMemberRejected
|
|
561
685
|
* @static
|
|
562
|
-
* @param {
|
|
686
|
+
* @param {IFamilyMemberRejected} message FamilyMemberRejected message or plain object to encode
|
|
563
687
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
564
688
|
* @returns {$protobuf.Writer} Writer
|
|
565
689
|
*/
|
|
566
|
-
|
|
690
|
+
FamilyMemberRejected.encode = function encode(message, writer) {
|
|
567
691
|
if (!writer)
|
|
568
692
|
writer = $Writer.create();
|
|
569
|
-
if (message.message != null && message.hasOwnProperty("message"))
|
|
570
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.message);
|
|
571
693
|
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
572
|
-
writer.uint32(/* id
|
|
694
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.timestamp);
|
|
695
|
+
if (message.userGroupEntryId != null && message.hasOwnProperty("userGroupEntryId"))
|
|
696
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.userGroupEntryId);
|
|
697
|
+
if (message.userGroupId != null && message.hasOwnProperty("userGroupId"))
|
|
698
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.userGroupId);
|
|
699
|
+
if (message.email != null && message.hasOwnProperty("email"))
|
|
700
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.email);
|
|
701
|
+
if (message.token != null && message.hasOwnProperty("token"))
|
|
702
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.token);
|
|
703
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
704
|
+
writer.uint32(/* id 6, wireType 2 =*/50).string(message.userId);
|
|
573
705
|
return writer;
|
|
574
706
|
};
|
|
575
707
|
|
|
576
708
|
/**
|
|
577
|
-
* Encodes the specified
|
|
709
|
+
* Encodes the specified FamilyMemberRejected message, length delimited. Does not implicitly {@link FamilyMemberRejected.verify|verify} messages.
|
|
578
710
|
* @function encodeDelimited
|
|
579
|
-
* @memberof
|
|
711
|
+
* @memberof FamilyMemberRejected
|
|
580
712
|
* @static
|
|
581
|
-
* @param {
|
|
713
|
+
* @param {IFamilyMemberRejected} message FamilyMemberRejected message or plain object to encode
|
|
582
714
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
583
715
|
* @returns {$protobuf.Writer} Writer
|
|
584
716
|
*/
|
|
585
|
-
|
|
717
|
+
FamilyMemberRejected.encodeDelimited = function encodeDelimited(message, writer) {
|
|
586
718
|
return this.encode(message, writer).ldelim();
|
|
587
719
|
};
|
|
588
720
|
|
|
589
721
|
/**
|
|
590
|
-
* Decodes a
|
|
722
|
+
* Decodes a FamilyMemberRejected message from the specified reader or buffer.
|
|
591
723
|
* @function decode
|
|
592
|
-
* @memberof
|
|
724
|
+
* @memberof FamilyMemberRejected
|
|
593
725
|
* @static
|
|
594
726
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
595
727
|
* @param {number} [length] Message length if known beforehand
|
|
596
|
-
* @returns {
|
|
728
|
+
* @returns {FamilyMemberRejected} FamilyMemberRejected
|
|
597
729
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
598
730
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
599
731
|
*/
|
|
600
|
-
|
|
732
|
+
FamilyMemberRejected.decode = function decode(reader, length) {
|
|
601
733
|
if (!(reader instanceof $Reader))
|
|
602
734
|
reader = $Reader.create(reader);
|
|
603
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.
|
|
735
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.FamilyMemberRejected();
|
|
604
736
|
while (reader.pos < end) {
|
|
605
737
|
var tag = reader.uint32();
|
|
606
738
|
switch (tag >>> 3) {
|
|
607
739
|
case 1:
|
|
608
|
-
message.
|
|
740
|
+
message.timestamp = reader.uint64();
|
|
609
741
|
break;
|
|
610
742
|
case 2:
|
|
611
|
-
message.
|
|
743
|
+
message.userGroupEntryId = reader.uint32();
|
|
744
|
+
break;
|
|
745
|
+
case 3:
|
|
746
|
+
message.userGroupId = reader.uint32();
|
|
747
|
+
break;
|
|
748
|
+
case 4:
|
|
749
|
+
message.email = reader.string();
|
|
750
|
+
break;
|
|
751
|
+
case 5:
|
|
752
|
+
message.token = reader.string();
|
|
753
|
+
break;
|
|
754
|
+
case 6:
|
|
755
|
+
message.userId = reader.string();
|
|
612
756
|
break;
|
|
613
757
|
default:
|
|
614
758
|
reader.skipType(tag & 7);
|
|
@@ -619,55 +763,65 @@ $root.Ping = (function() {
|
|
|
619
763
|
};
|
|
620
764
|
|
|
621
765
|
/**
|
|
622
|
-
* Decodes a
|
|
766
|
+
* Decodes a FamilyMemberRejected message from the specified reader or buffer, length delimited.
|
|
623
767
|
* @function decodeDelimited
|
|
624
|
-
* @memberof
|
|
768
|
+
* @memberof FamilyMemberRejected
|
|
625
769
|
* @static
|
|
626
770
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
627
|
-
* @returns {
|
|
771
|
+
* @returns {FamilyMemberRejected} FamilyMemberRejected
|
|
628
772
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
629
773
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
630
774
|
*/
|
|
631
|
-
|
|
775
|
+
FamilyMemberRejected.decodeDelimited = function decodeDelimited(reader) {
|
|
632
776
|
if (!(reader instanceof $Reader))
|
|
633
777
|
reader = new $Reader(reader);
|
|
634
778
|
return this.decode(reader, reader.uint32());
|
|
635
779
|
};
|
|
636
780
|
|
|
637
781
|
/**
|
|
638
|
-
* Verifies a
|
|
782
|
+
* Verifies a FamilyMemberRejected message.
|
|
639
783
|
* @function verify
|
|
640
|
-
* @memberof
|
|
784
|
+
* @memberof FamilyMemberRejected
|
|
641
785
|
* @static
|
|
642
786
|
* @param {Object.<string,*>} message Plain object to verify
|
|
643
787
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
644
788
|
*/
|
|
645
|
-
|
|
789
|
+
FamilyMemberRejected.verify = function verify(message) {
|
|
646
790
|
if (typeof message !== "object" || message === null)
|
|
647
791
|
return "object expected";
|
|
648
|
-
if (message.message != null && message.hasOwnProperty("message"))
|
|
649
|
-
if (!$util.isString(message.message))
|
|
650
|
-
return "message: string expected";
|
|
651
792
|
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
652
793
|
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
653
794
|
return "timestamp: integer|Long expected";
|
|
795
|
+
if (message.userGroupEntryId != null && message.hasOwnProperty("userGroupEntryId"))
|
|
796
|
+
if (!$util.isInteger(message.userGroupEntryId))
|
|
797
|
+
return "userGroupEntryId: integer expected";
|
|
798
|
+
if (message.userGroupId != null && message.hasOwnProperty("userGroupId"))
|
|
799
|
+
if (!$util.isInteger(message.userGroupId))
|
|
800
|
+
return "userGroupId: integer expected";
|
|
801
|
+
if (message.email != null && message.hasOwnProperty("email"))
|
|
802
|
+
if (!$util.isString(message.email))
|
|
803
|
+
return "email: string expected";
|
|
804
|
+
if (message.token != null && message.hasOwnProperty("token"))
|
|
805
|
+
if (!$util.isString(message.token))
|
|
806
|
+
return "token: string expected";
|
|
807
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
808
|
+
if (!$util.isString(message.userId))
|
|
809
|
+
return "userId: string expected";
|
|
654
810
|
return null;
|
|
655
811
|
};
|
|
656
812
|
|
|
657
813
|
/**
|
|
658
|
-
* Creates a
|
|
814
|
+
* Creates a FamilyMemberRejected message from a plain object. Also converts values to their respective internal types.
|
|
659
815
|
* @function fromObject
|
|
660
|
-
* @memberof
|
|
816
|
+
* @memberof FamilyMemberRejected
|
|
661
817
|
* @static
|
|
662
818
|
* @param {Object.<string,*>} object Plain object
|
|
663
|
-
* @returns {
|
|
819
|
+
* @returns {FamilyMemberRejected} FamilyMemberRejected
|
|
664
820
|
*/
|
|
665
|
-
|
|
666
|
-
if (object instanceof $root.
|
|
821
|
+
FamilyMemberRejected.fromObject = function fromObject(object) {
|
|
822
|
+
if (object instanceof $root.FamilyMemberRejected)
|
|
667
823
|
return object;
|
|
668
|
-
var message = new $root.
|
|
669
|
-
if (object.message != null)
|
|
670
|
-
message.message = String(object.message);
|
|
824
|
+
var message = new $root.FamilyMemberRejected();
|
|
671
825
|
if (object.timestamp != null)
|
|
672
826
|
if ($util.Long)
|
|
673
827
|
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
@@ -677,73 +831,97 @@ $root.Ping = (function() {
|
|
|
677
831
|
message.timestamp = object.timestamp;
|
|
678
832
|
else if (typeof object.timestamp === "object")
|
|
679
833
|
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
834
|
+
if (object.userGroupEntryId != null)
|
|
835
|
+
message.userGroupEntryId = object.userGroupEntryId >>> 0;
|
|
836
|
+
if (object.userGroupId != null)
|
|
837
|
+
message.userGroupId = object.userGroupId >>> 0;
|
|
838
|
+
if (object.email != null)
|
|
839
|
+
message.email = String(object.email);
|
|
840
|
+
if (object.token != null)
|
|
841
|
+
message.token = String(object.token);
|
|
842
|
+
if (object.userId != null)
|
|
843
|
+
message.userId = String(object.userId);
|
|
680
844
|
return message;
|
|
681
845
|
};
|
|
682
846
|
|
|
683
847
|
/**
|
|
684
|
-
* Creates a plain object from a
|
|
848
|
+
* Creates a plain object from a FamilyMemberRejected message. Also converts values to other types if specified.
|
|
685
849
|
* @function toObject
|
|
686
|
-
* @memberof
|
|
850
|
+
* @memberof FamilyMemberRejected
|
|
687
851
|
* @static
|
|
688
|
-
* @param {
|
|
852
|
+
* @param {FamilyMemberRejected} message FamilyMemberRejected
|
|
689
853
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
690
854
|
* @returns {Object.<string,*>} Plain object
|
|
691
855
|
*/
|
|
692
|
-
|
|
856
|
+
FamilyMemberRejected.toObject = function toObject(message, options) {
|
|
693
857
|
if (!options)
|
|
694
858
|
options = {};
|
|
695
859
|
var object = {};
|
|
696
860
|
if (options.defaults) {
|
|
697
|
-
object.message = "";
|
|
698
861
|
if ($util.Long) {
|
|
699
862
|
var long = new $util.Long(0, 0, true);
|
|
700
863
|
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
701
864
|
} else
|
|
702
865
|
object.timestamp = options.longs === String ? "0" : 0;
|
|
866
|
+
object.userGroupEntryId = 0;
|
|
867
|
+
object.userGroupId = 0;
|
|
868
|
+
object.email = "";
|
|
869
|
+
object.token = "";
|
|
870
|
+
object.userId = "";
|
|
703
871
|
}
|
|
704
|
-
if (message.message != null && message.hasOwnProperty("message"))
|
|
705
|
-
object.message = message.message;
|
|
706
872
|
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
707
873
|
if (typeof message.timestamp === "number")
|
|
708
874
|
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
709
875
|
else
|
|
710
876
|
object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
|
|
877
|
+
if (message.userGroupEntryId != null && message.hasOwnProperty("userGroupEntryId"))
|
|
878
|
+
object.userGroupEntryId = message.userGroupEntryId;
|
|
879
|
+
if (message.userGroupId != null && message.hasOwnProperty("userGroupId"))
|
|
880
|
+
object.userGroupId = message.userGroupId;
|
|
881
|
+
if (message.email != null && message.hasOwnProperty("email"))
|
|
882
|
+
object.email = message.email;
|
|
883
|
+
if (message.token != null && message.hasOwnProperty("token"))
|
|
884
|
+
object.token = message.token;
|
|
885
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
886
|
+
object.userId = message.userId;
|
|
711
887
|
return object;
|
|
712
888
|
};
|
|
713
889
|
|
|
714
890
|
/**
|
|
715
|
-
* Converts this
|
|
891
|
+
* Converts this FamilyMemberRejected to JSON.
|
|
716
892
|
* @function toJSON
|
|
717
|
-
* @memberof
|
|
893
|
+
* @memberof FamilyMemberRejected
|
|
718
894
|
* @instance
|
|
719
895
|
* @returns {Object.<string,*>} JSON object
|
|
720
896
|
*/
|
|
721
|
-
|
|
897
|
+
FamilyMemberRejected.prototype.toJSON = function toJSON() {
|
|
722
898
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
723
899
|
};
|
|
724
900
|
|
|
725
|
-
return
|
|
901
|
+
return FamilyMemberRejected;
|
|
726
902
|
})();
|
|
727
903
|
|
|
728
|
-
$root.
|
|
904
|
+
$root.FamilyMemberRemoved = (function() {
|
|
729
905
|
|
|
730
906
|
/**
|
|
731
|
-
* Properties of a
|
|
732
|
-
* @exports
|
|
733
|
-
* @interface
|
|
734
|
-
* @property {
|
|
735
|
-
* @property {number|
|
|
907
|
+
* Properties of a FamilyMemberRemoved.
|
|
908
|
+
* @exports IFamilyMemberRemoved
|
|
909
|
+
* @interface IFamilyMemberRemoved
|
|
910
|
+
* @property {number|Long|null} [timestamp] FamilyMemberRemoved timestamp
|
|
911
|
+
* @property {number|null} [userGroupEntryId] FamilyMemberRemoved userGroupEntryId
|
|
912
|
+
* @property {string|null} [userId] FamilyMemberRemoved userId
|
|
913
|
+
* @property {number|null} [userGroupId] FamilyMemberRemoved userGroupId
|
|
736
914
|
*/
|
|
737
915
|
|
|
738
916
|
/**
|
|
739
|
-
* Constructs a new
|
|
740
|
-
* @exports
|
|
741
|
-
* @classdesc Represents a
|
|
742
|
-
* @implements
|
|
917
|
+
* Constructs a new FamilyMemberRemoved.
|
|
918
|
+
* @exports FamilyMemberRemoved
|
|
919
|
+
* @classdesc Represents a FamilyMemberRemoved.
|
|
920
|
+
* @implements IFamilyMemberRemoved
|
|
743
921
|
* @constructor
|
|
744
|
-
* @param {
|
|
922
|
+
* @param {IFamilyMemberRemoved=} [properties] Properties to set
|
|
745
923
|
*/
|
|
746
|
-
function
|
|
924
|
+
function FamilyMemberRemoved(properties) {
|
|
747
925
|
if (properties)
|
|
748
926
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
749
927
|
if (properties[keys[i]] != null)
|
|
@@ -751,88 +929,114 @@ $root.Pong = (function() {
|
|
|
751
929
|
}
|
|
752
930
|
|
|
753
931
|
/**
|
|
754
|
-
*
|
|
755
|
-
* @member {
|
|
756
|
-
* @memberof
|
|
932
|
+
* FamilyMemberRemoved timestamp.
|
|
933
|
+
* @member {number|Long} timestamp
|
|
934
|
+
* @memberof FamilyMemberRemoved
|
|
757
935
|
* @instance
|
|
758
936
|
*/
|
|
759
|
-
|
|
937
|
+
FamilyMemberRemoved.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
760
938
|
|
|
761
939
|
/**
|
|
762
|
-
*
|
|
763
|
-
* @member {number
|
|
764
|
-
* @memberof
|
|
940
|
+
* FamilyMemberRemoved userGroupEntryId.
|
|
941
|
+
* @member {number} userGroupEntryId
|
|
942
|
+
* @memberof FamilyMemberRemoved
|
|
943
|
+
* @instance
|
|
944
|
+
*/
|
|
945
|
+
FamilyMemberRemoved.prototype.userGroupEntryId = 0;
|
|
946
|
+
|
|
947
|
+
/**
|
|
948
|
+
* FamilyMemberRemoved userId.
|
|
949
|
+
* @member {string} userId
|
|
950
|
+
* @memberof FamilyMemberRemoved
|
|
951
|
+
* @instance
|
|
952
|
+
*/
|
|
953
|
+
FamilyMemberRemoved.prototype.userId = "";
|
|
954
|
+
|
|
955
|
+
/**
|
|
956
|
+
* FamilyMemberRemoved userGroupId.
|
|
957
|
+
* @member {number} userGroupId
|
|
958
|
+
* @memberof FamilyMemberRemoved
|
|
765
959
|
* @instance
|
|
766
960
|
*/
|
|
767
|
-
|
|
961
|
+
FamilyMemberRemoved.prototype.userGroupId = 0;
|
|
768
962
|
|
|
769
963
|
/**
|
|
770
|
-
* Creates a new
|
|
964
|
+
* Creates a new FamilyMemberRemoved instance using the specified properties.
|
|
771
965
|
* @function create
|
|
772
|
-
* @memberof
|
|
966
|
+
* @memberof FamilyMemberRemoved
|
|
773
967
|
* @static
|
|
774
|
-
* @param {
|
|
775
|
-
* @returns {
|
|
968
|
+
* @param {IFamilyMemberRemoved=} [properties] Properties to set
|
|
969
|
+
* @returns {FamilyMemberRemoved} FamilyMemberRemoved instance
|
|
776
970
|
*/
|
|
777
|
-
|
|
778
|
-
return new
|
|
971
|
+
FamilyMemberRemoved.create = function create(properties) {
|
|
972
|
+
return new FamilyMemberRemoved(properties);
|
|
779
973
|
};
|
|
780
974
|
|
|
781
975
|
/**
|
|
782
|
-
* Encodes the specified
|
|
976
|
+
* Encodes the specified FamilyMemberRemoved message. Does not implicitly {@link FamilyMemberRemoved.verify|verify} messages.
|
|
783
977
|
* @function encode
|
|
784
|
-
* @memberof
|
|
978
|
+
* @memberof FamilyMemberRemoved
|
|
785
979
|
* @static
|
|
786
|
-
* @param {
|
|
980
|
+
* @param {IFamilyMemberRemoved} message FamilyMemberRemoved message or plain object to encode
|
|
787
981
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
788
982
|
* @returns {$protobuf.Writer} Writer
|
|
789
983
|
*/
|
|
790
|
-
|
|
984
|
+
FamilyMemberRemoved.encode = function encode(message, writer) {
|
|
791
985
|
if (!writer)
|
|
792
986
|
writer = $Writer.create();
|
|
793
|
-
if (message.message != null && message.hasOwnProperty("message"))
|
|
794
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.message);
|
|
795
987
|
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
796
|
-
writer.uint32(/* id
|
|
988
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.timestamp);
|
|
989
|
+
if (message.userGroupEntryId != null && message.hasOwnProperty("userGroupEntryId"))
|
|
990
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.userGroupEntryId);
|
|
991
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
992
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.userId);
|
|
993
|
+
if (message.userGroupId != null && message.hasOwnProperty("userGroupId"))
|
|
994
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.userGroupId);
|
|
797
995
|
return writer;
|
|
798
996
|
};
|
|
799
997
|
|
|
800
998
|
/**
|
|
801
|
-
* Encodes the specified
|
|
999
|
+
* Encodes the specified FamilyMemberRemoved message, length delimited. Does not implicitly {@link FamilyMemberRemoved.verify|verify} messages.
|
|
802
1000
|
* @function encodeDelimited
|
|
803
|
-
* @memberof
|
|
1001
|
+
* @memberof FamilyMemberRemoved
|
|
804
1002
|
* @static
|
|
805
|
-
* @param {
|
|
1003
|
+
* @param {IFamilyMemberRemoved} message FamilyMemberRemoved message or plain object to encode
|
|
806
1004
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
807
1005
|
* @returns {$protobuf.Writer} Writer
|
|
808
1006
|
*/
|
|
809
|
-
|
|
1007
|
+
FamilyMemberRemoved.encodeDelimited = function encodeDelimited(message, writer) {
|
|
810
1008
|
return this.encode(message, writer).ldelim();
|
|
811
1009
|
};
|
|
812
1010
|
|
|
813
1011
|
/**
|
|
814
|
-
* Decodes a
|
|
1012
|
+
* Decodes a FamilyMemberRemoved message from the specified reader or buffer.
|
|
815
1013
|
* @function decode
|
|
816
|
-
* @memberof
|
|
1014
|
+
* @memberof FamilyMemberRemoved
|
|
817
1015
|
* @static
|
|
818
1016
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
819
1017
|
* @param {number} [length] Message length if known beforehand
|
|
820
|
-
* @returns {
|
|
1018
|
+
* @returns {FamilyMemberRemoved} FamilyMemberRemoved
|
|
821
1019
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
822
1020
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
823
1021
|
*/
|
|
824
|
-
|
|
1022
|
+
FamilyMemberRemoved.decode = function decode(reader, length) {
|
|
825
1023
|
if (!(reader instanceof $Reader))
|
|
826
1024
|
reader = $Reader.create(reader);
|
|
827
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.
|
|
1025
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.FamilyMemberRemoved();
|
|
828
1026
|
while (reader.pos < end) {
|
|
829
1027
|
var tag = reader.uint32();
|
|
830
1028
|
switch (tag >>> 3) {
|
|
831
1029
|
case 1:
|
|
832
|
-
message.
|
|
1030
|
+
message.timestamp = reader.uint64();
|
|
833
1031
|
break;
|
|
834
1032
|
case 2:
|
|
835
|
-
message.
|
|
1033
|
+
message.userGroupEntryId = reader.uint32();
|
|
1034
|
+
break;
|
|
1035
|
+
case 3:
|
|
1036
|
+
message.userId = reader.string();
|
|
1037
|
+
break;
|
|
1038
|
+
case 4:
|
|
1039
|
+
message.userGroupId = reader.uint32();
|
|
836
1040
|
break;
|
|
837
1041
|
default:
|
|
838
1042
|
reader.skipType(tag & 7);
|
|
@@ -843,55 +1047,59 @@ $root.Pong = (function() {
|
|
|
843
1047
|
};
|
|
844
1048
|
|
|
845
1049
|
/**
|
|
846
|
-
* Decodes a
|
|
1050
|
+
* Decodes a FamilyMemberRemoved message from the specified reader or buffer, length delimited.
|
|
847
1051
|
* @function decodeDelimited
|
|
848
|
-
* @memberof
|
|
1052
|
+
* @memberof FamilyMemberRemoved
|
|
849
1053
|
* @static
|
|
850
1054
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
851
|
-
* @returns {
|
|
1055
|
+
* @returns {FamilyMemberRemoved} FamilyMemberRemoved
|
|
852
1056
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
853
1057
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
854
1058
|
*/
|
|
855
|
-
|
|
1059
|
+
FamilyMemberRemoved.decodeDelimited = function decodeDelimited(reader) {
|
|
856
1060
|
if (!(reader instanceof $Reader))
|
|
857
1061
|
reader = new $Reader(reader);
|
|
858
1062
|
return this.decode(reader, reader.uint32());
|
|
859
1063
|
};
|
|
860
1064
|
|
|
861
1065
|
/**
|
|
862
|
-
* Verifies a
|
|
1066
|
+
* Verifies a FamilyMemberRemoved message.
|
|
863
1067
|
* @function verify
|
|
864
|
-
* @memberof
|
|
1068
|
+
* @memberof FamilyMemberRemoved
|
|
865
1069
|
* @static
|
|
866
1070
|
* @param {Object.<string,*>} message Plain object to verify
|
|
867
1071
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
868
1072
|
*/
|
|
869
|
-
|
|
1073
|
+
FamilyMemberRemoved.verify = function verify(message) {
|
|
870
1074
|
if (typeof message !== "object" || message === null)
|
|
871
1075
|
return "object expected";
|
|
872
|
-
if (message.message != null && message.hasOwnProperty("message"))
|
|
873
|
-
if (!$util.isString(message.message))
|
|
874
|
-
return "message: string expected";
|
|
875
1076
|
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
876
1077
|
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
877
1078
|
return "timestamp: integer|Long expected";
|
|
1079
|
+
if (message.userGroupEntryId != null && message.hasOwnProperty("userGroupEntryId"))
|
|
1080
|
+
if (!$util.isInteger(message.userGroupEntryId))
|
|
1081
|
+
return "userGroupEntryId: integer expected";
|
|
1082
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
1083
|
+
if (!$util.isString(message.userId))
|
|
1084
|
+
return "userId: string expected";
|
|
1085
|
+
if (message.userGroupId != null && message.hasOwnProperty("userGroupId"))
|
|
1086
|
+
if (!$util.isInteger(message.userGroupId))
|
|
1087
|
+
return "userGroupId: integer expected";
|
|
878
1088
|
return null;
|
|
879
1089
|
};
|
|
880
1090
|
|
|
881
1091
|
/**
|
|
882
|
-
* Creates a
|
|
1092
|
+
* Creates a FamilyMemberRemoved message from a plain object. Also converts values to their respective internal types.
|
|
883
1093
|
* @function fromObject
|
|
884
|
-
* @memberof
|
|
1094
|
+
* @memberof FamilyMemberRemoved
|
|
885
1095
|
* @static
|
|
886
1096
|
* @param {Object.<string,*>} object Plain object
|
|
887
|
-
* @returns {
|
|
1097
|
+
* @returns {FamilyMemberRemoved} FamilyMemberRemoved
|
|
888
1098
|
*/
|
|
889
|
-
|
|
890
|
-
if (object instanceof $root.
|
|
1099
|
+
FamilyMemberRemoved.fromObject = function fromObject(object) {
|
|
1100
|
+
if (object instanceof $root.FamilyMemberRemoved)
|
|
891
1101
|
return object;
|
|
892
|
-
var message = new $root.
|
|
893
|
-
if (object.message != null)
|
|
894
|
-
message.message = String(object.message);
|
|
1102
|
+
var message = new $root.FamilyMemberRemoved();
|
|
895
1103
|
if (object.timestamp != null)
|
|
896
1104
|
if ($util.Long)
|
|
897
1105
|
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
@@ -901,141 +1109,1576 @@ $root.Pong = (function() {
|
|
|
901
1109
|
message.timestamp = object.timestamp;
|
|
902
1110
|
else if (typeof object.timestamp === "object")
|
|
903
1111
|
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
1112
|
+
if (object.userGroupEntryId != null)
|
|
1113
|
+
message.userGroupEntryId = object.userGroupEntryId >>> 0;
|
|
1114
|
+
if (object.userId != null)
|
|
1115
|
+
message.userId = String(object.userId);
|
|
1116
|
+
if (object.userGroupId != null)
|
|
1117
|
+
message.userGroupId = object.userGroupId >>> 0;
|
|
904
1118
|
return message;
|
|
905
1119
|
};
|
|
906
1120
|
|
|
907
1121
|
/**
|
|
908
|
-
* Creates a plain object from a
|
|
1122
|
+
* Creates a plain object from a FamilyMemberRemoved message. Also converts values to other types if specified.
|
|
909
1123
|
* @function toObject
|
|
910
|
-
* @memberof
|
|
1124
|
+
* @memberof FamilyMemberRemoved
|
|
911
1125
|
* @static
|
|
912
|
-
* @param {
|
|
1126
|
+
* @param {FamilyMemberRemoved} message FamilyMemberRemoved
|
|
913
1127
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
914
1128
|
* @returns {Object.<string,*>} Plain object
|
|
915
1129
|
*/
|
|
916
|
-
|
|
1130
|
+
FamilyMemberRemoved.toObject = function toObject(message, options) {
|
|
917
1131
|
if (!options)
|
|
918
1132
|
options = {};
|
|
919
1133
|
var object = {};
|
|
920
1134
|
if (options.defaults) {
|
|
921
|
-
object.message = "";
|
|
922
1135
|
if ($util.Long) {
|
|
923
1136
|
var long = new $util.Long(0, 0, true);
|
|
924
1137
|
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
925
1138
|
} else
|
|
926
1139
|
object.timestamp = options.longs === String ? "0" : 0;
|
|
1140
|
+
object.userGroupEntryId = 0;
|
|
1141
|
+
object.userId = "";
|
|
1142
|
+
object.userGroupId = 0;
|
|
927
1143
|
}
|
|
928
|
-
if (message.message != null && message.hasOwnProperty("message"))
|
|
929
|
-
object.message = message.message;
|
|
930
1144
|
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
931
1145
|
if (typeof message.timestamp === "number")
|
|
932
1146
|
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
933
1147
|
else
|
|
934
1148
|
object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
|
|
1149
|
+
if (message.userGroupEntryId != null && message.hasOwnProperty("userGroupEntryId"))
|
|
1150
|
+
object.userGroupEntryId = message.userGroupEntryId;
|
|
1151
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
1152
|
+
object.userId = message.userId;
|
|
1153
|
+
if (message.userGroupId != null && message.hasOwnProperty("userGroupId"))
|
|
1154
|
+
object.userGroupId = message.userGroupId;
|
|
935
1155
|
return object;
|
|
936
1156
|
};
|
|
937
1157
|
|
|
938
1158
|
/**
|
|
939
|
-
* Converts this
|
|
1159
|
+
* Converts this FamilyMemberRemoved to JSON.
|
|
940
1160
|
* @function toJSON
|
|
941
|
-
* @memberof
|
|
1161
|
+
* @memberof FamilyMemberRemoved
|
|
942
1162
|
* @instance
|
|
943
1163
|
* @returns {Object.<string,*>} JSON object
|
|
944
1164
|
*/
|
|
945
|
-
|
|
1165
|
+
FamilyMemberRemoved.prototype.toJSON = function toJSON() {
|
|
946
1166
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
947
1167
|
};
|
|
948
1168
|
|
|
949
|
-
return
|
|
1169
|
+
return FamilyMemberRemoved;
|
|
950
1170
|
})();
|
|
951
1171
|
|
|
952
|
-
$root.
|
|
1172
|
+
$root.VoiceDeviceConnected = (function() {
|
|
953
1173
|
|
|
954
1174
|
/**
|
|
955
|
-
*
|
|
956
|
-
* @exports
|
|
957
|
-
* @
|
|
958
|
-
* @
|
|
959
|
-
* @
|
|
960
|
-
* @
|
|
961
|
-
* @param {boolean} [requestDelimited=false] Whether requests are length-delimited
|
|
962
|
-
* @param {boolean} [responseDelimited=false] Whether responses are length-delimited
|
|
1175
|
+
* Properties of a VoiceDeviceConnected.
|
|
1176
|
+
* @exports IVoiceDeviceConnected
|
|
1177
|
+
* @interface IVoiceDeviceConnected
|
|
1178
|
+
* @property {string|null} [userId] VoiceDeviceConnected userId
|
|
1179
|
+
* @property {string|null} [platform] VoiceDeviceConnected platform
|
|
1180
|
+
* @property {number|Long|null} [timestamp] VoiceDeviceConnected timestamp
|
|
963
1181
|
*/
|
|
964
|
-
function PingPongService(rpcImpl, requestDelimited, responseDelimited) {
|
|
965
|
-
$protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited);
|
|
966
|
-
}
|
|
967
|
-
|
|
968
|
-
(PingPongService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = PingPongService;
|
|
969
1182
|
|
|
970
1183
|
/**
|
|
971
|
-
*
|
|
972
|
-
* @
|
|
973
|
-
* @
|
|
974
|
-
* @
|
|
975
|
-
* @
|
|
976
|
-
* @param {
|
|
977
|
-
* @param {boolean} [responseDelimited=false] Whether responses are length-delimited
|
|
978
|
-
* @returns {PingPongService} RPC service. Useful where requests and/or responses are streamed.
|
|
1184
|
+
* Constructs a new VoiceDeviceConnected.
|
|
1185
|
+
* @exports VoiceDeviceConnected
|
|
1186
|
+
* @classdesc Represents a VoiceDeviceConnected.
|
|
1187
|
+
* @implements IVoiceDeviceConnected
|
|
1188
|
+
* @constructor
|
|
1189
|
+
* @param {IVoiceDeviceConnected=} [properties] Properties to set
|
|
979
1190
|
*/
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
1191
|
+
function VoiceDeviceConnected(properties) {
|
|
1192
|
+
if (properties)
|
|
1193
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
1194
|
+
if (properties[keys[i]] != null)
|
|
1195
|
+
this[keys[i]] = properties[keys[i]];
|
|
1196
|
+
}
|
|
983
1197
|
|
|
984
1198
|
/**
|
|
985
|
-
*
|
|
986
|
-
* @
|
|
987
|
-
* @
|
|
988
|
-
* @
|
|
989
|
-
* @param {Error|null} error Error, if any
|
|
990
|
-
* @param {Pong} [response] Pong
|
|
1199
|
+
* VoiceDeviceConnected userId.
|
|
1200
|
+
* @member {string} userId
|
|
1201
|
+
* @memberof VoiceDeviceConnected
|
|
1202
|
+
* @instance
|
|
991
1203
|
*/
|
|
1204
|
+
VoiceDeviceConnected.prototype.userId = "";
|
|
992
1205
|
|
|
993
1206
|
/**
|
|
994
|
-
*
|
|
995
|
-
* @
|
|
996
|
-
* @memberof
|
|
1207
|
+
* VoiceDeviceConnected platform.
|
|
1208
|
+
* @member {string} platform
|
|
1209
|
+
* @memberof VoiceDeviceConnected
|
|
997
1210
|
* @instance
|
|
998
|
-
* @param {IPing} request Ping message or plain object
|
|
999
|
-
* @param {PingPongService.pingCallback} callback Node-style callback called with the error, if any, and Pong
|
|
1000
|
-
* @returns {undefined}
|
|
1001
|
-
* @variation 1
|
|
1002
1211
|
*/
|
|
1003
|
-
|
|
1004
|
-
return this.rpcCall(ping, $root.Ping, $root.Pong, request, callback);
|
|
1005
|
-
}, "name", { value: "ping" });
|
|
1212
|
+
VoiceDeviceConnected.prototype.platform = "";
|
|
1006
1213
|
|
|
1007
1214
|
/**
|
|
1008
|
-
*
|
|
1009
|
-
* @
|
|
1010
|
-
* @memberof
|
|
1215
|
+
* VoiceDeviceConnected timestamp.
|
|
1216
|
+
* @member {number|Long} timestamp
|
|
1217
|
+
* @memberof VoiceDeviceConnected
|
|
1011
1218
|
* @instance
|
|
1012
|
-
* @param {IPing} request Ping message or plain object
|
|
1013
|
-
* @returns {Promise<Pong>} Promise
|
|
1014
|
-
* @variation 2
|
|
1015
1219
|
*/
|
|
1016
|
-
|
|
1017
|
-
return PingPongService;
|
|
1018
|
-
})();
|
|
1019
|
-
|
|
1020
|
-
$root.SubscriptionCreated = (function() {
|
|
1220
|
+
VoiceDeviceConnected.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
1021
1221
|
|
|
1022
1222
|
/**
|
|
1023
|
-
*
|
|
1223
|
+
* Creates a new VoiceDeviceConnected instance using the specified properties.
|
|
1224
|
+
* @function create
|
|
1225
|
+
* @memberof VoiceDeviceConnected
|
|
1226
|
+
* @static
|
|
1227
|
+
* @param {IVoiceDeviceConnected=} [properties] Properties to set
|
|
1228
|
+
* @returns {VoiceDeviceConnected} VoiceDeviceConnected instance
|
|
1229
|
+
*/
|
|
1230
|
+
VoiceDeviceConnected.create = function create(properties) {
|
|
1231
|
+
return new VoiceDeviceConnected(properties);
|
|
1232
|
+
};
|
|
1233
|
+
|
|
1234
|
+
/**
|
|
1235
|
+
* Encodes the specified VoiceDeviceConnected message. Does not implicitly {@link VoiceDeviceConnected.verify|verify} messages.
|
|
1236
|
+
* @function encode
|
|
1237
|
+
* @memberof VoiceDeviceConnected
|
|
1238
|
+
* @static
|
|
1239
|
+
* @param {IVoiceDeviceConnected} message VoiceDeviceConnected message or plain object to encode
|
|
1240
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1241
|
+
* @returns {$protobuf.Writer} Writer
|
|
1242
|
+
*/
|
|
1243
|
+
VoiceDeviceConnected.encode = function encode(message, writer) {
|
|
1244
|
+
if (!writer)
|
|
1245
|
+
writer = $Writer.create();
|
|
1246
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
1247
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
|
|
1248
|
+
if (message.platform != null && message.hasOwnProperty("platform"))
|
|
1249
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.platform);
|
|
1250
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
1251
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.timestamp);
|
|
1252
|
+
return writer;
|
|
1253
|
+
};
|
|
1254
|
+
|
|
1255
|
+
/**
|
|
1256
|
+
* Encodes the specified VoiceDeviceConnected message, length delimited. Does not implicitly {@link VoiceDeviceConnected.verify|verify} messages.
|
|
1257
|
+
* @function encodeDelimited
|
|
1258
|
+
* @memberof VoiceDeviceConnected
|
|
1259
|
+
* @static
|
|
1260
|
+
* @param {IVoiceDeviceConnected} message VoiceDeviceConnected message or plain object to encode
|
|
1261
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1262
|
+
* @returns {$protobuf.Writer} Writer
|
|
1263
|
+
*/
|
|
1264
|
+
VoiceDeviceConnected.encodeDelimited = function encodeDelimited(message, writer) {
|
|
1265
|
+
return this.encode(message, writer).ldelim();
|
|
1266
|
+
};
|
|
1267
|
+
|
|
1268
|
+
/**
|
|
1269
|
+
* Decodes a VoiceDeviceConnected message from the specified reader or buffer.
|
|
1270
|
+
* @function decode
|
|
1271
|
+
* @memberof VoiceDeviceConnected
|
|
1272
|
+
* @static
|
|
1273
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
1274
|
+
* @param {number} [length] Message length if known beforehand
|
|
1275
|
+
* @returns {VoiceDeviceConnected} VoiceDeviceConnected
|
|
1276
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1277
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1278
|
+
*/
|
|
1279
|
+
VoiceDeviceConnected.decode = function decode(reader, length) {
|
|
1280
|
+
if (!(reader instanceof $Reader))
|
|
1281
|
+
reader = $Reader.create(reader);
|
|
1282
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.VoiceDeviceConnected();
|
|
1283
|
+
while (reader.pos < end) {
|
|
1284
|
+
var tag = reader.uint32();
|
|
1285
|
+
switch (tag >>> 3) {
|
|
1286
|
+
case 1:
|
|
1287
|
+
message.userId = reader.string();
|
|
1288
|
+
break;
|
|
1289
|
+
case 2:
|
|
1290
|
+
message.platform = reader.string();
|
|
1291
|
+
break;
|
|
1292
|
+
case 3:
|
|
1293
|
+
message.timestamp = reader.uint64();
|
|
1294
|
+
break;
|
|
1295
|
+
default:
|
|
1296
|
+
reader.skipType(tag & 7);
|
|
1297
|
+
break;
|
|
1298
|
+
}
|
|
1299
|
+
}
|
|
1300
|
+
return message;
|
|
1301
|
+
};
|
|
1302
|
+
|
|
1303
|
+
/**
|
|
1304
|
+
* Decodes a VoiceDeviceConnected message from the specified reader or buffer, length delimited.
|
|
1305
|
+
* @function decodeDelimited
|
|
1306
|
+
* @memberof VoiceDeviceConnected
|
|
1307
|
+
* @static
|
|
1308
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
1309
|
+
* @returns {VoiceDeviceConnected} VoiceDeviceConnected
|
|
1310
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1311
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1312
|
+
*/
|
|
1313
|
+
VoiceDeviceConnected.decodeDelimited = function decodeDelimited(reader) {
|
|
1314
|
+
if (!(reader instanceof $Reader))
|
|
1315
|
+
reader = new $Reader(reader);
|
|
1316
|
+
return this.decode(reader, reader.uint32());
|
|
1317
|
+
};
|
|
1318
|
+
|
|
1319
|
+
/**
|
|
1320
|
+
* Verifies a VoiceDeviceConnected message.
|
|
1321
|
+
* @function verify
|
|
1322
|
+
* @memberof VoiceDeviceConnected
|
|
1323
|
+
* @static
|
|
1324
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
1325
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
1326
|
+
*/
|
|
1327
|
+
VoiceDeviceConnected.verify = function verify(message) {
|
|
1328
|
+
if (typeof message !== "object" || message === null)
|
|
1329
|
+
return "object expected";
|
|
1330
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
1331
|
+
if (!$util.isString(message.userId))
|
|
1332
|
+
return "userId: string expected";
|
|
1333
|
+
if (message.platform != null && message.hasOwnProperty("platform"))
|
|
1334
|
+
if (!$util.isString(message.platform))
|
|
1335
|
+
return "platform: string expected";
|
|
1336
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
1337
|
+
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
1338
|
+
return "timestamp: integer|Long expected";
|
|
1339
|
+
return null;
|
|
1340
|
+
};
|
|
1341
|
+
|
|
1342
|
+
/**
|
|
1343
|
+
* Creates a VoiceDeviceConnected message from a plain object. Also converts values to their respective internal types.
|
|
1344
|
+
* @function fromObject
|
|
1345
|
+
* @memberof VoiceDeviceConnected
|
|
1346
|
+
* @static
|
|
1347
|
+
* @param {Object.<string,*>} object Plain object
|
|
1348
|
+
* @returns {VoiceDeviceConnected} VoiceDeviceConnected
|
|
1349
|
+
*/
|
|
1350
|
+
VoiceDeviceConnected.fromObject = function fromObject(object) {
|
|
1351
|
+
if (object instanceof $root.VoiceDeviceConnected)
|
|
1352
|
+
return object;
|
|
1353
|
+
var message = new $root.VoiceDeviceConnected();
|
|
1354
|
+
if (object.userId != null)
|
|
1355
|
+
message.userId = String(object.userId);
|
|
1356
|
+
if (object.platform != null)
|
|
1357
|
+
message.platform = String(object.platform);
|
|
1358
|
+
if (object.timestamp != null)
|
|
1359
|
+
if ($util.Long)
|
|
1360
|
+
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
1361
|
+
else if (typeof object.timestamp === "string")
|
|
1362
|
+
message.timestamp = parseInt(object.timestamp, 10);
|
|
1363
|
+
else if (typeof object.timestamp === "number")
|
|
1364
|
+
message.timestamp = object.timestamp;
|
|
1365
|
+
else if (typeof object.timestamp === "object")
|
|
1366
|
+
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
1367
|
+
return message;
|
|
1368
|
+
};
|
|
1369
|
+
|
|
1370
|
+
/**
|
|
1371
|
+
* Creates a plain object from a VoiceDeviceConnected message. Also converts values to other types if specified.
|
|
1372
|
+
* @function toObject
|
|
1373
|
+
* @memberof VoiceDeviceConnected
|
|
1374
|
+
* @static
|
|
1375
|
+
* @param {VoiceDeviceConnected} message VoiceDeviceConnected
|
|
1376
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
1377
|
+
* @returns {Object.<string,*>} Plain object
|
|
1378
|
+
*/
|
|
1379
|
+
VoiceDeviceConnected.toObject = function toObject(message, options) {
|
|
1380
|
+
if (!options)
|
|
1381
|
+
options = {};
|
|
1382
|
+
var object = {};
|
|
1383
|
+
if (options.defaults) {
|
|
1384
|
+
object.userId = "";
|
|
1385
|
+
object.platform = "";
|
|
1386
|
+
if ($util.Long) {
|
|
1387
|
+
var long = new $util.Long(0, 0, true);
|
|
1388
|
+
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
1389
|
+
} else
|
|
1390
|
+
object.timestamp = options.longs === String ? "0" : 0;
|
|
1391
|
+
}
|
|
1392
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
1393
|
+
object.userId = message.userId;
|
|
1394
|
+
if (message.platform != null && message.hasOwnProperty("platform"))
|
|
1395
|
+
object.platform = message.platform;
|
|
1396
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
1397
|
+
if (typeof message.timestamp === "number")
|
|
1398
|
+
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
1399
|
+
else
|
|
1400
|
+
object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
|
|
1401
|
+
return object;
|
|
1402
|
+
};
|
|
1403
|
+
|
|
1404
|
+
/**
|
|
1405
|
+
* Converts this VoiceDeviceConnected to JSON.
|
|
1406
|
+
* @function toJSON
|
|
1407
|
+
* @memberof VoiceDeviceConnected
|
|
1408
|
+
* @instance
|
|
1409
|
+
* @returns {Object.<string,*>} JSON object
|
|
1410
|
+
*/
|
|
1411
|
+
VoiceDeviceConnected.prototype.toJSON = function toJSON() {
|
|
1412
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
1413
|
+
};
|
|
1414
|
+
|
|
1415
|
+
return VoiceDeviceConnected;
|
|
1416
|
+
})();
|
|
1417
|
+
|
|
1418
|
+
$root.SleepcastEpisodeCompleted = (function() {
|
|
1419
|
+
|
|
1420
|
+
/**
|
|
1421
|
+
* Properties of a SleepcastEpisodeCompleted.
|
|
1422
|
+
* @exports ISleepcastEpisodeCompleted
|
|
1423
|
+
* @interface ISleepcastEpisodeCompleted
|
|
1424
|
+
* @property {number|Long|null} [timestamp] SleepcastEpisodeCompleted timestamp
|
|
1425
|
+
* @property {number|null} [sleepcastId] SleepcastEpisodeCompleted sleepcastId
|
|
1426
|
+
* @property {string|null} [userId] SleepcastEpisodeCompleted userId
|
|
1427
|
+
*/
|
|
1428
|
+
|
|
1429
|
+
/**
|
|
1430
|
+
* Constructs a new SleepcastEpisodeCompleted.
|
|
1431
|
+
* @exports SleepcastEpisodeCompleted
|
|
1432
|
+
* @classdesc Represents a SleepcastEpisodeCompleted.
|
|
1433
|
+
* @implements ISleepcastEpisodeCompleted
|
|
1434
|
+
* @constructor
|
|
1435
|
+
* @param {ISleepcastEpisodeCompleted=} [properties] Properties to set
|
|
1436
|
+
*/
|
|
1437
|
+
function SleepcastEpisodeCompleted(properties) {
|
|
1438
|
+
if (properties)
|
|
1439
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
1440
|
+
if (properties[keys[i]] != null)
|
|
1441
|
+
this[keys[i]] = properties[keys[i]];
|
|
1442
|
+
}
|
|
1443
|
+
|
|
1444
|
+
/**
|
|
1445
|
+
* SleepcastEpisodeCompleted timestamp.
|
|
1446
|
+
* @member {number|Long} timestamp
|
|
1447
|
+
* @memberof SleepcastEpisodeCompleted
|
|
1448
|
+
* @instance
|
|
1449
|
+
*/
|
|
1450
|
+
SleepcastEpisodeCompleted.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
1451
|
+
|
|
1452
|
+
/**
|
|
1453
|
+
* SleepcastEpisodeCompleted sleepcastId.
|
|
1454
|
+
* @member {number} sleepcastId
|
|
1455
|
+
* @memberof SleepcastEpisodeCompleted
|
|
1456
|
+
* @instance
|
|
1457
|
+
*/
|
|
1458
|
+
SleepcastEpisodeCompleted.prototype.sleepcastId = 0;
|
|
1459
|
+
|
|
1460
|
+
/**
|
|
1461
|
+
* SleepcastEpisodeCompleted userId.
|
|
1462
|
+
* @member {string} userId
|
|
1463
|
+
* @memberof SleepcastEpisodeCompleted
|
|
1464
|
+
* @instance
|
|
1465
|
+
*/
|
|
1466
|
+
SleepcastEpisodeCompleted.prototype.userId = "";
|
|
1467
|
+
|
|
1468
|
+
/**
|
|
1469
|
+
* Creates a new SleepcastEpisodeCompleted instance using the specified properties.
|
|
1470
|
+
* @function create
|
|
1471
|
+
* @memberof SleepcastEpisodeCompleted
|
|
1472
|
+
* @static
|
|
1473
|
+
* @param {ISleepcastEpisodeCompleted=} [properties] Properties to set
|
|
1474
|
+
* @returns {SleepcastEpisodeCompleted} SleepcastEpisodeCompleted instance
|
|
1475
|
+
*/
|
|
1476
|
+
SleepcastEpisodeCompleted.create = function create(properties) {
|
|
1477
|
+
return new SleepcastEpisodeCompleted(properties);
|
|
1478
|
+
};
|
|
1479
|
+
|
|
1480
|
+
/**
|
|
1481
|
+
* Encodes the specified SleepcastEpisodeCompleted message. Does not implicitly {@link SleepcastEpisodeCompleted.verify|verify} messages.
|
|
1482
|
+
* @function encode
|
|
1483
|
+
* @memberof SleepcastEpisodeCompleted
|
|
1484
|
+
* @static
|
|
1485
|
+
* @param {ISleepcastEpisodeCompleted} message SleepcastEpisodeCompleted message or plain object to encode
|
|
1486
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1487
|
+
* @returns {$protobuf.Writer} Writer
|
|
1488
|
+
*/
|
|
1489
|
+
SleepcastEpisodeCompleted.encode = function encode(message, writer) {
|
|
1490
|
+
if (!writer)
|
|
1491
|
+
writer = $Writer.create();
|
|
1492
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
1493
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.timestamp);
|
|
1494
|
+
if (message.sleepcastId != null && message.hasOwnProperty("sleepcastId"))
|
|
1495
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.sleepcastId);
|
|
1496
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
1497
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.userId);
|
|
1498
|
+
return writer;
|
|
1499
|
+
};
|
|
1500
|
+
|
|
1501
|
+
/**
|
|
1502
|
+
* Encodes the specified SleepcastEpisodeCompleted message, length delimited. Does not implicitly {@link SleepcastEpisodeCompleted.verify|verify} messages.
|
|
1503
|
+
* @function encodeDelimited
|
|
1504
|
+
* @memberof SleepcastEpisodeCompleted
|
|
1505
|
+
* @static
|
|
1506
|
+
* @param {ISleepcastEpisodeCompleted} message SleepcastEpisodeCompleted message or plain object to encode
|
|
1507
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1508
|
+
* @returns {$protobuf.Writer} Writer
|
|
1509
|
+
*/
|
|
1510
|
+
SleepcastEpisodeCompleted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
1511
|
+
return this.encode(message, writer).ldelim();
|
|
1512
|
+
};
|
|
1513
|
+
|
|
1514
|
+
/**
|
|
1515
|
+
* Decodes a SleepcastEpisodeCompleted message from the specified reader or buffer.
|
|
1516
|
+
* @function decode
|
|
1517
|
+
* @memberof SleepcastEpisodeCompleted
|
|
1518
|
+
* @static
|
|
1519
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
1520
|
+
* @param {number} [length] Message length if known beforehand
|
|
1521
|
+
* @returns {SleepcastEpisodeCompleted} SleepcastEpisodeCompleted
|
|
1522
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1523
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1524
|
+
*/
|
|
1525
|
+
SleepcastEpisodeCompleted.decode = function decode(reader, length) {
|
|
1526
|
+
if (!(reader instanceof $Reader))
|
|
1527
|
+
reader = $Reader.create(reader);
|
|
1528
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.SleepcastEpisodeCompleted();
|
|
1529
|
+
while (reader.pos < end) {
|
|
1530
|
+
var tag = reader.uint32();
|
|
1531
|
+
switch (tag >>> 3) {
|
|
1532
|
+
case 1:
|
|
1533
|
+
message.timestamp = reader.uint64();
|
|
1534
|
+
break;
|
|
1535
|
+
case 2:
|
|
1536
|
+
message.sleepcastId = reader.uint32();
|
|
1537
|
+
break;
|
|
1538
|
+
case 3:
|
|
1539
|
+
message.userId = reader.string();
|
|
1540
|
+
break;
|
|
1541
|
+
default:
|
|
1542
|
+
reader.skipType(tag & 7);
|
|
1543
|
+
break;
|
|
1544
|
+
}
|
|
1545
|
+
}
|
|
1546
|
+
return message;
|
|
1547
|
+
};
|
|
1548
|
+
|
|
1549
|
+
/**
|
|
1550
|
+
* Decodes a SleepcastEpisodeCompleted message from the specified reader or buffer, length delimited.
|
|
1551
|
+
* @function decodeDelimited
|
|
1552
|
+
* @memberof SleepcastEpisodeCompleted
|
|
1553
|
+
* @static
|
|
1554
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
1555
|
+
* @returns {SleepcastEpisodeCompleted} SleepcastEpisodeCompleted
|
|
1556
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1557
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1558
|
+
*/
|
|
1559
|
+
SleepcastEpisodeCompleted.decodeDelimited = function decodeDelimited(reader) {
|
|
1560
|
+
if (!(reader instanceof $Reader))
|
|
1561
|
+
reader = new $Reader(reader);
|
|
1562
|
+
return this.decode(reader, reader.uint32());
|
|
1563
|
+
};
|
|
1564
|
+
|
|
1565
|
+
/**
|
|
1566
|
+
* Verifies a SleepcastEpisodeCompleted message.
|
|
1567
|
+
* @function verify
|
|
1568
|
+
* @memberof SleepcastEpisodeCompleted
|
|
1569
|
+
* @static
|
|
1570
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
1571
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
1572
|
+
*/
|
|
1573
|
+
SleepcastEpisodeCompleted.verify = function verify(message) {
|
|
1574
|
+
if (typeof message !== "object" || message === null)
|
|
1575
|
+
return "object expected";
|
|
1576
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
1577
|
+
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
1578
|
+
return "timestamp: integer|Long expected";
|
|
1579
|
+
if (message.sleepcastId != null && message.hasOwnProperty("sleepcastId"))
|
|
1580
|
+
if (!$util.isInteger(message.sleepcastId))
|
|
1581
|
+
return "sleepcastId: integer expected";
|
|
1582
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
1583
|
+
if (!$util.isString(message.userId))
|
|
1584
|
+
return "userId: string expected";
|
|
1585
|
+
return null;
|
|
1586
|
+
};
|
|
1587
|
+
|
|
1588
|
+
/**
|
|
1589
|
+
* Creates a SleepcastEpisodeCompleted message from a plain object. Also converts values to their respective internal types.
|
|
1590
|
+
* @function fromObject
|
|
1591
|
+
* @memberof SleepcastEpisodeCompleted
|
|
1592
|
+
* @static
|
|
1593
|
+
* @param {Object.<string,*>} object Plain object
|
|
1594
|
+
* @returns {SleepcastEpisodeCompleted} SleepcastEpisodeCompleted
|
|
1595
|
+
*/
|
|
1596
|
+
SleepcastEpisodeCompleted.fromObject = function fromObject(object) {
|
|
1597
|
+
if (object instanceof $root.SleepcastEpisodeCompleted)
|
|
1598
|
+
return object;
|
|
1599
|
+
var message = new $root.SleepcastEpisodeCompleted();
|
|
1600
|
+
if (object.timestamp != null)
|
|
1601
|
+
if ($util.Long)
|
|
1602
|
+
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
1603
|
+
else if (typeof object.timestamp === "string")
|
|
1604
|
+
message.timestamp = parseInt(object.timestamp, 10);
|
|
1605
|
+
else if (typeof object.timestamp === "number")
|
|
1606
|
+
message.timestamp = object.timestamp;
|
|
1607
|
+
else if (typeof object.timestamp === "object")
|
|
1608
|
+
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
1609
|
+
if (object.sleepcastId != null)
|
|
1610
|
+
message.sleepcastId = object.sleepcastId >>> 0;
|
|
1611
|
+
if (object.userId != null)
|
|
1612
|
+
message.userId = String(object.userId);
|
|
1613
|
+
return message;
|
|
1614
|
+
};
|
|
1615
|
+
|
|
1616
|
+
/**
|
|
1617
|
+
* Creates a plain object from a SleepcastEpisodeCompleted message. Also converts values to other types if specified.
|
|
1618
|
+
* @function toObject
|
|
1619
|
+
* @memberof SleepcastEpisodeCompleted
|
|
1620
|
+
* @static
|
|
1621
|
+
* @param {SleepcastEpisodeCompleted} message SleepcastEpisodeCompleted
|
|
1622
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
1623
|
+
* @returns {Object.<string,*>} Plain object
|
|
1624
|
+
*/
|
|
1625
|
+
SleepcastEpisodeCompleted.toObject = function toObject(message, options) {
|
|
1626
|
+
if (!options)
|
|
1627
|
+
options = {};
|
|
1628
|
+
var object = {};
|
|
1629
|
+
if (options.defaults) {
|
|
1630
|
+
if ($util.Long) {
|
|
1631
|
+
var long = new $util.Long(0, 0, true);
|
|
1632
|
+
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
1633
|
+
} else
|
|
1634
|
+
object.timestamp = options.longs === String ? "0" : 0;
|
|
1635
|
+
object.sleepcastId = 0;
|
|
1636
|
+
object.userId = "";
|
|
1637
|
+
}
|
|
1638
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
1639
|
+
if (typeof message.timestamp === "number")
|
|
1640
|
+
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
1641
|
+
else
|
|
1642
|
+
object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
|
|
1643
|
+
if (message.sleepcastId != null && message.hasOwnProperty("sleepcastId"))
|
|
1644
|
+
object.sleepcastId = message.sleepcastId;
|
|
1645
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
1646
|
+
object.userId = message.userId;
|
|
1647
|
+
return object;
|
|
1648
|
+
};
|
|
1649
|
+
|
|
1650
|
+
/**
|
|
1651
|
+
* Converts this SleepcastEpisodeCompleted to JSON.
|
|
1652
|
+
* @function toJSON
|
|
1653
|
+
* @memberof SleepcastEpisodeCompleted
|
|
1654
|
+
* @instance
|
|
1655
|
+
* @returns {Object.<string,*>} JSON object
|
|
1656
|
+
*/
|
|
1657
|
+
SleepcastEpisodeCompleted.prototype.toJSON = function toJSON() {
|
|
1658
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
1659
|
+
};
|
|
1660
|
+
|
|
1661
|
+
return SleepcastEpisodeCompleted;
|
|
1662
|
+
})();
|
|
1663
|
+
|
|
1664
|
+
$root.FirstSleepcastPlayDateSet = (function() {
|
|
1665
|
+
|
|
1666
|
+
/**
|
|
1667
|
+
* Properties of a FirstSleepcastPlayDateSet.
|
|
1668
|
+
* @exports IFirstSleepcastPlayDateSet
|
|
1669
|
+
* @interface IFirstSleepcastPlayDateSet
|
|
1670
|
+
* @property {number|Long|null} [timestamp] FirstSleepcastPlayDateSet timestamp
|
|
1671
|
+
* @property {string|null} [userId] FirstSleepcastPlayDateSet userId
|
|
1672
|
+
* @property {number|Long|null} [firstPlayTimestamp] FirstSleepcastPlayDateSet firstPlayTimestamp
|
|
1673
|
+
*/
|
|
1674
|
+
|
|
1675
|
+
/**
|
|
1676
|
+
* Constructs a new FirstSleepcastPlayDateSet.
|
|
1677
|
+
* @exports FirstSleepcastPlayDateSet
|
|
1678
|
+
* @classdesc Represents a FirstSleepcastPlayDateSet.
|
|
1679
|
+
* @implements IFirstSleepcastPlayDateSet
|
|
1680
|
+
* @constructor
|
|
1681
|
+
* @param {IFirstSleepcastPlayDateSet=} [properties] Properties to set
|
|
1682
|
+
*/
|
|
1683
|
+
function FirstSleepcastPlayDateSet(properties) {
|
|
1684
|
+
if (properties)
|
|
1685
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
1686
|
+
if (properties[keys[i]] != null)
|
|
1687
|
+
this[keys[i]] = properties[keys[i]];
|
|
1688
|
+
}
|
|
1689
|
+
|
|
1690
|
+
/**
|
|
1691
|
+
* FirstSleepcastPlayDateSet timestamp.
|
|
1692
|
+
* @member {number|Long} timestamp
|
|
1693
|
+
* @memberof FirstSleepcastPlayDateSet
|
|
1694
|
+
* @instance
|
|
1695
|
+
*/
|
|
1696
|
+
FirstSleepcastPlayDateSet.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
1697
|
+
|
|
1698
|
+
/**
|
|
1699
|
+
* FirstSleepcastPlayDateSet userId.
|
|
1700
|
+
* @member {string} userId
|
|
1701
|
+
* @memberof FirstSleepcastPlayDateSet
|
|
1702
|
+
* @instance
|
|
1703
|
+
*/
|
|
1704
|
+
FirstSleepcastPlayDateSet.prototype.userId = "";
|
|
1705
|
+
|
|
1706
|
+
/**
|
|
1707
|
+
* FirstSleepcastPlayDateSet firstPlayTimestamp.
|
|
1708
|
+
* @member {number|Long} firstPlayTimestamp
|
|
1709
|
+
* @memberof FirstSleepcastPlayDateSet
|
|
1710
|
+
* @instance
|
|
1711
|
+
*/
|
|
1712
|
+
FirstSleepcastPlayDateSet.prototype.firstPlayTimestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
1713
|
+
|
|
1714
|
+
/**
|
|
1715
|
+
* Creates a new FirstSleepcastPlayDateSet instance using the specified properties.
|
|
1716
|
+
* @function create
|
|
1717
|
+
* @memberof FirstSleepcastPlayDateSet
|
|
1718
|
+
* @static
|
|
1719
|
+
* @param {IFirstSleepcastPlayDateSet=} [properties] Properties to set
|
|
1720
|
+
* @returns {FirstSleepcastPlayDateSet} FirstSleepcastPlayDateSet instance
|
|
1721
|
+
*/
|
|
1722
|
+
FirstSleepcastPlayDateSet.create = function create(properties) {
|
|
1723
|
+
return new FirstSleepcastPlayDateSet(properties);
|
|
1724
|
+
};
|
|
1725
|
+
|
|
1726
|
+
/**
|
|
1727
|
+
* Encodes the specified FirstSleepcastPlayDateSet message. Does not implicitly {@link FirstSleepcastPlayDateSet.verify|verify} messages.
|
|
1728
|
+
* @function encode
|
|
1729
|
+
* @memberof FirstSleepcastPlayDateSet
|
|
1730
|
+
* @static
|
|
1731
|
+
* @param {IFirstSleepcastPlayDateSet} message FirstSleepcastPlayDateSet message or plain object to encode
|
|
1732
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1733
|
+
* @returns {$protobuf.Writer} Writer
|
|
1734
|
+
*/
|
|
1735
|
+
FirstSleepcastPlayDateSet.encode = function encode(message, writer) {
|
|
1736
|
+
if (!writer)
|
|
1737
|
+
writer = $Writer.create();
|
|
1738
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
1739
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.timestamp);
|
|
1740
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
1741
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.userId);
|
|
1742
|
+
if (message.firstPlayTimestamp != null && message.hasOwnProperty("firstPlayTimestamp"))
|
|
1743
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.firstPlayTimestamp);
|
|
1744
|
+
return writer;
|
|
1745
|
+
};
|
|
1746
|
+
|
|
1747
|
+
/**
|
|
1748
|
+
* Encodes the specified FirstSleepcastPlayDateSet message, length delimited. Does not implicitly {@link FirstSleepcastPlayDateSet.verify|verify} messages.
|
|
1749
|
+
* @function encodeDelimited
|
|
1750
|
+
* @memberof FirstSleepcastPlayDateSet
|
|
1751
|
+
* @static
|
|
1752
|
+
* @param {IFirstSleepcastPlayDateSet} message FirstSleepcastPlayDateSet message or plain object to encode
|
|
1753
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1754
|
+
* @returns {$protobuf.Writer} Writer
|
|
1755
|
+
*/
|
|
1756
|
+
FirstSleepcastPlayDateSet.encodeDelimited = function encodeDelimited(message, writer) {
|
|
1757
|
+
return this.encode(message, writer).ldelim();
|
|
1758
|
+
};
|
|
1759
|
+
|
|
1760
|
+
/**
|
|
1761
|
+
* Decodes a FirstSleepcastPlayDateSet message from the specified reader or buffer.
|
|
1762
|
+
* @function decode
|
|
1763
|
+
* @memberof FirstSleepcastPlayDateSet
|
|
1764
|
+
* @static
|
|
1765
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
1766
|
+
* @param {number} [length] Message length if known beforehand
|
|
1767
|
+
* @returns {FirstSleepcastPlayDateSet} FirstSleepcastPlayDateSet
|
|
1768
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1769
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1770
|
+
*/
|
|
1771
|
+
FirstSleepcastPlayDateSet.decode = function decode(reader, length) {
|
|
1772
|
+
if (!(reader instanceof $Reader))
|
|
1773
|
+
reader = $Reader.create(reader);
|
|
1774
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.FirstSleepcastPlayDateSet();
|
|
1775
|
+
while (reader.pos < end) {
|
|
1776
|
+
var tag = reader.uint32();
|
|
1777
|
+
switch (tag >>> 3) {
|
|
1778
|
+
case 1:
|
|
1779
|
+
message.timestamp = reader.uint64();
|
|
1780
|
+
break;
|
|
1781
|
+
case 2:
|
|
1782
|
+
message.userId = reader.string();
|
|
1783
|
+
break;
|
|
1784
|
+
case 3:
|
|
1785
|
+
message.firstPlayTimestamp = reader.uint64();
|
|
1786
|
+
break;
|
|
1787
|
+
default:
|
|
1788
|
+
reader.skipType(tag & 7);
|
|
1789
|
+
break;
|
|
1790
|
+
}
|
|
1791
|
+
}
|
|
1792
|
+
return message;
|
|
1793
|
+
};
|
|
1794
|
+
|
|
1795
|
+
/**
|
|
1796
|
+
* Decodes a FirstSleepcastPlayDateSet message from the specified reader or buffer, length delimited.
|
|
1797
|
+
* @function decodeDelimited
|
|
1798
|
+
* @memberof FirstSleepcastPlayDateSet
|
|
1799
|
+
* @static
|
|
1800
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
1801
|
+
* @returns {FirstSleepcastPlayDateSet} FirstSleepcastPlayDateSet
|
|
1802
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1803
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1804
|
+
*/
|
|
1805
|
+
FirstSleepcastPlayDateSet.decodeDelimited = function decodeDelimited(reader) {
|
|
1806
|
+
if (!(reader instanceof $Reader))
|
|
1807
|
+
reader = new $Reader(reader);
|
|
1808
|
+
return this.decode(reader, reader.uint32());
|
|
1809
|
+
};
|
|
1810
|
+
|
|
1811
|
+
/**
|
|
1812
|
+
* Verifies a FirstSleepcastPlayDateSet message.
|
|
1813
|
+
* @function verify
|
|
1814
|
+
* @memberof FirstSleepcastPlayDateSet
|
|
1815
|
+
* @static
|
|
1816
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
1817
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
1818
|
+
*/
|
|
1819
|
+
FirstSleepcastPlayDateSet.verify = function verify(message) {
|
|
1820
|
+
if (typeof message !== "object" || message === null)
|
|
1821
|
+
return "object expected";
|
|
1822
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
1823
|
+
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
1824
|
+
return "timestamp: integer|Long expected";
|
|
1825
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
1826
|
+
if (!$util.isString(message.userId))
|
|
1827
|
+
return "userId: string expected";
|
|
1828
|
+
if (message.firstPlayTimestamp != null && message.hasOwnProperty("firstPlayTimestamp"))
|
|
1829
|
+
if (!$util.isInteger(message.firstPlayTimestamp) && !(message.firstPlayTimestamp && $util.isInteger(message.firstPlayTimestamp.low) && $util.isInteger(message.firstPlayTimestamp.high)))
|
|
1830
|
+
return "firstPlayTimestamp: integer|Long expected";
|
|
1831
|
+
return null;
|
|
1832
|
+
};
|
|
1833
|
+
|
|
1834
|
+
/**
|
|
1835
|
+
* Creates a FirstSleepcastPlayDateSet message from a plain object. Also converts values to their respective internal types.
|
|
1836
|
+
* @function fromObject
|
|
1837
|
+
* @memberof FirstSleepcastPlayDateSet
|
|
1838
|
+
* @static
|
|
1839
|
+
* @param {Object.<string,*>} object Plain object
|
|
1840
|
+
* @returns {FirstSleepcastPlayDateSet} FirstSleepcastPlayDateSet
|
|
1841
|
+
*/
|
|
1842
|
+
FirstSleepcastPlayDateSet.fromObject = function fromObject(object) {
|
|
1843
|
+
if (object instanceof $root.FirstSleepcastPlayDateSet)
|
|
1844
|
+
return object;
|
|
1845
|
+
var message = new $root.FirstSleepcastPlayDateSet();
|
|
1846
|
+
if (object.timestamp != null)
|
|
1847
|
+
if ($util.Long)
|
|
1848
|
+
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
1849
|
+
else if (typeof object.timestamp === "string")
|
|
1850
|
+
message.timestamp = parseInt(object.timestamp, 10);
|
|
1851
|
+
else if (typeof object.timestamp === "number")
|
|
1852
|
+
message.timestamp = object.timestamp;
|
|
1853
|
+
else if (typeof object.timestamp === "object")
|
|
1854
|
+
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
1855
|
+
if (object.userId != null)
|
|
1856
|
+
message.userId = String(object.userId);
|
|
1857
|
+
if (object.firstPlayTimestamp != null)
|
|
1858
|
+
if ($util.Long)
|
|
1859
|
+
(message.firstPlayTimestamp = $util.Long.fromValue(object.firstPlayTimestamp)).unsigned = true;
|
|
1860
|
+
else if (typeof object.firstPlayTimestamp === "string")
|
|
1861
|
+
message.firstPlayTimestamp = parseInt(object.firstPlayTimestamp, 10);
|
|
1862
|
+
else if (typeof object.firstPlayTimestamp === "number")
|
|
1863
|
+
message.firstPlayTimestamp = object.firstPlayTimestamp;
|
|
1864
|
+
else if (typeof object.firstPlayTimestamp === "object")
|
|
1865
|
+
message.firstPlayTimestamp = new $util.LongBits(object.firstPlayTimestamp.low >>> 0, object.firstPlayTimestamp.high >>> 0).toNumber(true);
|
|
1866
|
+
return message;
|
|
1867
|
+
};
|
|
1868
|
+
|
|
1869
|
+
/**
|
|
1870
|
+
* Creates a plain object from a FirstSleepcastPlayDateSet message. Also converts values to other types if specified.
|
|
1871
|
+
* @function toObject
|
|
1872
|
+
* @memberof FirstSleepcastPlayDateSet
|
|
1873
|
+
* @static
|
|
1874
|
+
* @param {FirstSleepcastPlayDateSet} message FirstSleepcastPlayDateSet
|
|
1875
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
1876
|
+
* @returns {Object.<string,*>} Plain object
|
|
1877
|
+
*/
|
|
1878
|
+
FirstSleepcastPlayDateSet.toObject = function toObject(message, options) {
|
|
1879
|
+
if (!options)
|
|
1880
|
+
options = {};
|
|
1881
|
+
var object = {};
|
|
1882
|
+
if (options.defaults) {
|
|
1883
|
+
if ($util.Long) {
|
|
1884
|
+
var long = new $util.Long(0, 0, true);
|
|
1885
|
+
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
1886
|
+
} else
|
|
1887
|
+
object.timestamp = options.longs === String ? "0" : 0;
|
|
1888
|
+
object.userId = "";
|
|
1889
|
+
if ($util.Long) {
|
|
1890
|
+
var long = new $util.Long(0, 0, true);
|
|
1891
|
+
object.firstPlayTimestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
1892
|
+
} else
|
|
1893
|
+
object.firstPlayTimestamp = options.longs === String ? "0" : 0;
|
|
1894
|
+
}
|
|
1895
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
1896
|
+
if (typeof message.timestamp === "number")
|
|
1897
|
+
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
1898
|
+
else
|
|
1899
|
+
object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
|
|
1900
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
1901
|
+
object.userId = message.userId;
|
|
1902
|
+
if (message.firstPlayTimestamp != null && message.hasOwnProperty("firstPlayTimestamp"))
|
|
1903
|
+
if (typeof message.firstPlayTimestamp === "number")
|
|
1904
|
+
object.firstPlayTimestamp = options.longs === String ? String(message.firstPlayTimestamp) : message.firstPlayTimestamp;
|
|
1905
|
+
else
|
|
1906
|
+
object.firstPlayTimestamp = options.longs === String ? $util.Long.prototype.toString.call(message.firstPlayTimestamp) : options.longs === Number ? new $util.LongBits(message.firstPlayTimestamp.low >>> 0, message.firstPlayTimestamp.high >>> 0).toNumber(true) : message.firstPlayTimestamp;
|
|
1907
|
+
return object;
|
|
1908
|
+
};
|
|
1909
|
+
|
|
1910
|
+
/**
|
|
1911
|
+
* Converts this FirstSleepcastPlayDateSet to JSON.
|
|
1912
|
+
* @function toJSON
|
|
1913
|
+
* @memberof FirstSleepcastPlayDateSet
|
|
1914
|
+
* @instance
|
|
1915
|
+
* @returns {Object.<string,*>} JSON object
|
|
1916
|
+
*/
|
|
1917
|
+
FirstSleepcastPlayDateSet.prototype.toJSON = function toJSON() {
|
|
1918
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
1919
|
+
};
|
|
1920
|
+
|
|
1921
|
+
return FirstSleepcastPlayDateSet;
|
|
1922
|
+
})();
|
|
1923
|
+
|
|
1924
|
+
$root.NumSleepcastPlaysSet = (function() {
|
|
1925
|
+
|
|
1926
|
+
/**
|
|
1927
|
+
* Properties of a NumSleepcastPlaysSet.
|
|
1928
|
+
* @exports INumSleepcastPlaysSet
|
|
1929
|
+
* @interface INumSleepcastPlaysSet
|
|
1930
|
+
* @property {number|Long|null} [timestamp] NumSleepcastPlaysSet timestamp
|
|
1931
|
+
* @property {string|null} [userId] NumSleepcastPlaysSet userId
|
|
1932
|
+
* @property {number|null} [numPlays] NumSleepcastPlaysSet numPlays
|
|
1933
|
+
*/
|
|
1934
|
+
|
|
1935
|
+
/**
|
|
1936
|
+
* Constructs a new NumSleepcastPlaysSet.
|
|
1937
|
+
* @exports NumSleepcastPlaysSet
|
|
1938
|
+
* @classdesc Represents a NumSleepcastPlaysSet.
|
|
1939
|
+
* @implements INumSleepcastPlaysSet
|
|
1940
|
+
* @constructor
|
|
1941
|
+
* @param {INumSleepcastPlaysSet=} [properties] Properties to set
|
|
1942
|
+
*/
|
|
1943
|
+
function NumSleepcastPlaysSet(properties) {
|
|
1944
|
+
if (properties)
|
|
1945
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
1946
|
+
if (properties[keys[i]] != null)
|
|
1947
|
+
this[keys[i]] = properties[keys[i]];
|
|
1948
|
+
}
|
|
1949
|
+
|
|
1950
|
+
/**
|
|
1951
|
+
* NumSleepcastPlaysSet timestamp.
|
|
1952
|
+
* @member {number|Long} timestamp
|
|
1953
|
+
* @memberof NumSleepcastPlaysSet
|
|
1954
|
+
* @instance
|
|
1955
|
+
*/
|
|
1956
|
+
NumSleepcastPlaysSet.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
1957
|
+
|
|
1958
|
+
/**
|
|
1959
|
+
* NumSleepcastPlaysSet userId.
|
|
1960
|
+
* @member {string} userId
|
|
1961
|
+
* @memberof NumSleepcastPlaysSet
|
|
1962
|
+
* @instance
|
|
1963
|
+
*/
|
|
1964
|
+
NumSleepcastPlaysSet.prototype.userId = "";
|
|
1965
|
+
|
|
1966
|
+
/**
|
|
1967
|
+
* NumSleepcastPlaysSet numPlays.
|
|
1968
|
+
* @member {number} numPlays
|
|
1969
|
+
* @memberof NumSleepcastPlaysSet
|
|
1970
|
+
* @instance
|
|
1971
|
+
*/
|
|
1972
|
+
NumSleepcastPlaysSet.prototype.numPlays = 0;
|
|
1973
|
+
|
|
1974
|
+
/**
|
|
1975
|
+
* Creates a new NumSleepcastPlaysSet instance using the specified properties.
|
|
1976
|
+
* @function create
|
|
1977
|
+
* @memberof NumSleepcastPlaysSet
|
|
1978
|
+
* @static
|
|
1979
|
+
* @param {INumSleepcastPlaysSet=} [properties] Properties to set
|
|
1980
|
+
* @returns {NumSleepcastPlaysSet} NumSleepcastPlaysSet instance
|
|
1981
|
+
*/
|
|
1982
|
+
NumSleepcastPlaysSet.create = function create(properties) {
|
|
1983
|
+
return new NumSleepcastPlaysSet(properties);
|
|
1984
|
+
};
|
|
1985
|
+
|
|
1986
|
+
/**
|
|
1987
|
+
* Encodes the specified NumSleepcastPlaysSet message. Does not implicitly {@link NumSleepcastPlaysSet.verify|verify} messages.
|
|
1988
|
+
* @function encode
|
|
1989
|
+
* @memberof NumSleepcastPlaysSet
|
|
1990
|
+
* @static
|
|
1991
|
+
* @param {INumSleepcastPlaysSet} message NumSleepcastPlaysSet message or plain object to encode
|
|
1992
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1993
|
+
* @returns {$protobuf.Writer} Writer
|
|
1994
|
+
*/
|
|
1995
|
+
NumSleepcastPlaysSet.encode = function encode(message, writer) {
|
|
1996
|
+
if (!writer)
|
|
1997
|
+
writer = $Writer.create();
|
|
1998
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
1999
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.timestamp);
|
|
2000
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
2001
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.userId);
|
|
2002
|
+
if (message.numPlays != null && message.hasOwnProperty("numPlays"))
|
|
2003
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.numPlays);
|
|
2004
|
+
return writer;
|
|
2005
|
+
};
|
|
2006
|
+
|
|
2007
|
+
/**
|
|
2008
|
+
* Encodes the specified NumSleepcastPlaysSet message, length delimited. Does not implicitly {@link NumSleepcastPlaysSet.verify|verify} messages.
|
|
2009
|
+
* @function encodeDelimited
|
|
2010
|
+
* @memberof NumSleepcastPlaysSet
|
|
2011
|
+
* @static
|
|
2012
|
+
* @param {INumSleepcastPlaysSet} message NumSleepcastPlaysSet message or plain object to encode
|
|
2013
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
2014
|
+
* @returns {$protobuf.Writer} Writer
|
|
2015
|
+
*/
|
|
2016
|
+
NumSleepcastPlaysSet.encodeDelimited = function encodeDelimited(message, writer) {
|
|
2017
|
+
return this.encode(message, writer).ldelim();
|
|
2018
|
+
};
|
|
2019
|
+
|
|
2020
|
+
/**
|
|
2021
|
+
* Decodes a NumSleepcastPlaysSet message from the specified reader or buffer.
|
|
2022
|
+
* @function decode
|
|
2023
|
+
* @memberof NumSleepcastPlaysSet
|
|
2024
|
+
* @static
|
|
2025
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
2026
|
+
* @param {number} [length] Message length if known beforehand
|
|
2027
|
+
* @returns {NumSleepcastPlaysSet} NumSleepcastPlaysSet
|
|
2028
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2029
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2030
|
+
*/
|
|
2031
|
+
NumSleepcastPlaysSet.decode = function decode(reader, length) {
|
|
2032
|
+
if (!(reader instanceof $Reader))
|
|
2033
|
+
reader = $Reader.create(reader);
|
|
2034
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.NumSleepcastPlaysSet();
|
|
2035
|
+
while (reader.pos < end) {
|
|
2036
|
+
var tag = reader.uint32();
|
|
2037
|
+
switch (tag >>> 3) {
|
|
2038
|
+
case 1:
|
|
2039
|
+
message.timestamp = reader.uint64();
|
|
2040
|
+
break;
|
|
2041
|
+
case 2:
|
|
2042
|
+
message.userId = reader.string();
|
|
2043
|
+
break;
|
|
2044
|
+
case 3:
|
|
2045
|
+
message.numPlays = reader.uint32();
|
|
2046
|
+
break;
|
|
2047
|
+
default:
|
|
2048
|
+
reader.skipType(tag & 7);
|
|
2049
|
+
break;
|
|
2050
|
+
}
|
|
2051
|
+
}
|
|
2052
|
+
return message;
|
|
2053
|
+
};
|
|
2054
|
+
|
|
2055
|
+
/**
|
|
2056
|
+
* Decodes a NumSleepcastPlaysSet message from the specified reader or buffer, length delimited.
|
|
2057
|
+
* @function decodeDelimited
|
|
2058
|
+
* @memberof NumSleepcastPlaysSet
|
|
2059
|
+
* @static
|
|
2060
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
2061
|
+
* @returns {NumSleepcastPlaysSet} NumSleepcastPlaysSet
|
|
2062
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2063
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2064
|
+
*/
|
|
2065
|
+
NumSleepcastPlaysSet.decodeDelimited = function decodeDelimited(reader) {
|
|
2066
|
+
if (!(reader instanceof $Reader))
|
|
2067
|
+
reader = new $Reader(reader);
|
|
2068
|
+
return this.decode(reader, reader.uint32());
|
|
2069
|
+
};
|
|
2070
|
+
|
|
2071
|
+
/**
|
|
2072
|
+
* Verifies a NumSleepcastPlaysSet message.
|
|
2073
|
+
* @function verify
|
|
2074
|
+
* @memberof NumSleepcastPlaysSet
|
|
2075
|
+
* @static
|
|
2076
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
2077
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
2078
|
+
*/
|
|
2079
|
+
NumSleepcastPlaysSet.verify = function verify(message) {
|
|
2080
|
+
if (typeof message !== "object" || message === null)
|
|
2081
|
+
return "object expected";
|
|
2082
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
2083
|
+
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
2084
|
+
return "timestamp: integer|Long expected";
|
|
2085
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
2086
|
+
if (!$util.isString(message.userId))
|
|
2087
|
+
return "userId: string expected";
|
|
2088
|
+
if (message.numPlays != null && message.hasOwnProperty("numPlays"))
|
|
2089
|
+
if (!$util.isInteger(message.numPlays))
|
|
2090
|
+
return "numPlays: integer expected";
|
|
2091
|
+
return null;
|
|
2092
|
+
};
|
|
2093
|
+
|
|
2094
|
+
/**
|
|
2095
|
+
* Creates a NumSleepcastPlaysSet message from a plain object. Also converts values to their respective internal types.
|
|
2096
|
+
* @function fromObject
|
|
2097
|
+
* @memberof NumSleepcastPlaysSet
|
|
2098
|
+
* @static
|
|
2099
|
+
* @param {Object.<string,*>} object Plain object
|
|
2100
|
+
* @returns {NumSleepcastPlaysSet} NumSleepcastPlaysSet
|
|
2101
|
+
*/
|
|
2102
|
+
NumSleepcastPlaysSet.fromObject = function fromObject(object) {
|
|
2103
|
+
if (object instanceof $root.NumSleepcastPlaysSet)
|
|
2104
|
+
return object;
|
|
2105
|
+
var message = new $root.NumSleepcastPlaysSet();
|
|
2106
|
+
if (object.timestamp != null)
|
|
2107
|
+
if ($util.Long)
|
|
2108
|
+
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
2109
|
+
else if (typeof object.timestamp === "string")
|
|
2110
|
+
message.timestamp = parseInt(object.timestamp, 10);
|
|
2111
|
+
else if (typeof object.timestamp === "number")
|
|
2112
|
+
message.timestamp = object.timestamp;
|
|
2113
|
+
else if (typeof object.timestamp === "object")
|
|
2114
|
+
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
2115
|
+
if (object.userId != null)
|
|
2116
|
+
message.userId = String(object.userId);
|
|
2117
|
+
if (object.numPlays != null)
|
|
2118
|
+
message.numPlays = object.numPlays >>> 0;
|
|
2119
|
+
return message;
|
|
2120
|
+
};
|
|
2121
|
+
|
|
2122
|
+
/**
|
|
2123
|
+
* Creates a plain object from a NumSleepcastPlaysSet message. Also converts values to other types if specified.
|
|
2124
|
+
* @function toObject
|
|
2125
|
+
* @memberof NumSleepcastPlaysSet
|
|
2126
|
+
* @static
|
|
2127
|
+
* @param {NumSleepcastPlaysSet} message NumSleepcastPlaysSet
|
|
2128
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
2129
|
+
* @returns {Object.<string,*>} Plain object
|
|
2130
|
+
*/
|
|
2131
|
+
NumSleepcastPlaysSet.toObject = function toObject(message, options) {
|
|
2132
|
+
if (!options)
|
|
2133
|
+
options = {};
|
|
2134
|
+
var object = {};
|
|
2135
|
+
if (options.defaults) {
|
|
2136
|
+
if ($util.Long) {
|
|
2137
|
+
var long = new $util.Long(0, 0, true);
|
|
2138
|
+
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
2139
|
+
} else
|
|
2140
|
+
object.timestamp = options.longs === String ? "0" : 0;
|
|
2141
|
+
object.userId = "";
|
|
2142
|
+
object.numPlays = 0;
|
|
2143
|
+
}
|
|
2144
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
2145
|
+
if (typeof message.timestamp === "number")
|
|
2146
|
+
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
2147
|
+
else
|
|
2148
|
+
object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
|
|
2149
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
2150
|
+
object.userId = message.userId;
|
|
2151
|
+
if (message.numPlays != null && message.hasOwnProperty("numPlays"))
|
|
2152
|
+
object.numPlays = message.numPlays;
|
|
2153
|
+
return object;
|
|
2154
|
+
};
|
|
2155
|
+
|
|
2156
|
+
/**
|
|
2157
|
+
* Converts this NumSleepcastPlaysSet to JSON.
|
|
2158
|
+
* @function toJSON
|
|
2159
|
+
* @memberof NumSleepcastPlaysSet
|
|
2160
|
+
* @instance
|
|
2161
|
+
* @returns {Object.<string,*>} JSON object
|
|
2162
|
+
*/
|
|
2163
|
+
NumSleepcastPlaysSet.prototype.toJSON = function toJSON() {
|
|
2164
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
2165
|
+
};
|
|
2166
|
+
|
|
2167
|
+
return NumSleepcastPlaysSet;
|
|
2168
|
+
})();
|
|
2169
|
+
|
|
2170
|
+
$root.SubscriptionCreated = (function() {
|
|
2171
|
+
|
|
2172
|
+
/**
|
|
2173
|
+
* Properties of a SubscriptionCreated.
|
|
1024
2174
|
* @exports ISubscriptionCreated
|
|
1025
2175
|
* @interface ISubscriptionCreated
|
|
1026
2176
|
* @property {number|null} [id] SubscriptionCreated id
|
|
1027
2177
|
* @property {number|Long|null} [updatedOn] SubscriptionCreated updatedOn
|
|
2178
|
+
* @property {string|null} [userId] SubscriptionCreated userId
|
|
2179
|
+
*/
|
|
2180
|
+
|
|
2181
|
+
/**
|
|
2182
|
+
* Constructs a new SubscriptionCreated.
|
|
2183
|
+
* @exports SubscriptionCreated
|
|
2184
|
+
* @classdesc Represents a SubscriptionCreated.
|
|
2185
|
+
* @implements ISubscriptionCreated
|
|
2186
|
+
* @constructor
|
|
2187
|
+
* @param {ISubscriptionCreated=} [properties] Properties to set
|
|
2188
|
+
*/
|
|
2189
|
+
function SubscriptionCreated(properties) {
|
|
2190
|
+
if (properties)
|
|
2191
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
2192
|
+
if (properties[keys[i]] != null)
|
|
2193
|
+
this[keys[i]] = properties[keys[i]];
|
|
2194
|
+
}
|
|
2195
|
+
|
|
2196
|
+
/**
|
|
2197
|
+
* SubscriptionCreated id.
|
|
2198
|
+
* @member {number} id
|
|
2199
|
+
* @memberof SubscriptionCreated
|
|
2200
|
+
* @instance
|
|
2201
|
+
*/
|
|
2202
|
+
SubscriptionCreated.prototype.id = 0;
|
|
2203
|
+
|
|
2204
|
+
/**
|
|
2205
|
+
* SubscriptionCreated updatedOn.
|
|
2206
|
+
* @member {number|Long} updatedOn
|
|
2207
|
+
* @memberof SubscriptionCreated
|
|
2208
|
+
* @instance
|
|
2209
|
+
*/
|
|
2210
|
+
SubscriptionCreated.prototype.updatedOn = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
2211
|
+
|
|
2212
|
+
/**
|
|
2213
|
+
* SubscriptionCreated userId.
|
|
2214
|
+
* @member {string} userId
|
|
2215
|
+
* @memberof SubscriptionCreated
|
|
2216
|
+
* @instance
|
|
2217
|
+
*/
|
|
2218
|
+
SubscriptionCreated.prototype.userId = "";
|
|
2219
|
+
|
|
2220
|
+
/**
|
|
2221
|
+
* Creates a new SubscriptionCreated instance using the specified properties.
|
|
2222
|
+
* @function create
|
|
2223
|
+
* @memberof SubscriptionCreated
|
|
2224
|
+
* @static
|
|
2225
|
+
* @param {ISubscriptionCreated=} [properties] Properties to set
|
|
2226
|
+
* @returns {SubscriptionCreated} SubscriptionCreated instance
|
|
2227
|
+
*/
|
|
2228
|
+
SubscriptionCreated.create = function create(properties) {
|
|
2229
|
+
return new SubscriptionCreated(properties);
|
|
2230
|
+
};
|
|
2231
|
+
|
|
2232
|
+
/**
|
|
2233
|
+
* Encodes the specified SubscriptionCreated message. Does not implicitly {@link SubscriptionCreated.verify|verify} messages.
|
|
2234
|
+
* @function encode
|
|
2235
|
+
* @memberof SubscriptionCreated
|
|
2236
|
+
* @static
|
|
2237
|
+
* @param {ISubscriptionCreated} message SubscriptionCreated message or plain object to encode
|
|
2238
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
2239
|
+
* @returns {$protobuf.Writer} Writer
|
|
2240
|
+
*/
|
|
2241
|
+
SubscriptionCreated.encode = function encode(message, writer) {
|
|
2242
|
+
if (!writer)
|
|
2243
|
+
writer = $Writer.create();
|
|
2244
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
2245
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.id);
|
|
2246
|
+
if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
|
|
2247
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.updatedOn);
|
|
2248
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
2249
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.userId);
|
|
2250
|
+
return writer;
|
|
2251
|
+
};
|
|
2252
|
+
|
|
2253
|
+
/**
|
|
2254
|
+
* Encodes the specified SubscriptionCreated message, length delimited. Does not implicitly {@link SubscriptionCreated.verify|verify} messages.
|
|
2255
|
+
* @function encodeDelimited
|
|
2256
|
+
* @memberof SubscriptionCreated
|
|
2257
|
+
* @static
|
|
2258
|
+
* @param {ISubscriptionCreated} message SubscriptionCreated message or plain object to encode
|
|
2259
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
2260
|
+
* @returns {$protobuf.Writer} Writer
|
|
2261
|
+
*/
|
|
2262
|
+
SubscriptionCreated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
2263
|
+
return this.encode(message, writer).ldelim();
|
|
2264
|
+
};
|
|
2265
|
+
|
|
2266
|
+
/**
|
|
2267
|
+
* Decodes a SubscriptionCreated message from the specified reader or buffer.
|
|
2268
|
+
* @function decode
|
|
2269
|
+
* @memberof SubscriptionCreated
|
|
2270
|
+
* @static
|
|
2271
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
2272
|
+
* @param {number} [length] Message length if known beforehand
|
|
2273
|
+
* @returns {SubscriptionCreated} SubscriptionCreated
|
|
2274
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2275
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2276
|
+
*/
|
|
2277
|
+
SubscriptionCreated.decode = function decode(reader, length) {
|
|
2278
|
+
if (!(reader instanceof $Reader))
|
|
2279
|
+
reader = $Reader.create(reader);
|
|
2280
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.SubscriptionCreated();
|
|
2281
|
+
while (reader.pos < end) {
|
|
2282
|
+
var tag = reader.uint32();
|
|
2283
|
+
switch (tag >>> 3) {
|
|
2284
|
+
case 1:
|
|
2285
|
+
message.id = reader.uint32();
|
|
2286
|
+
break;
|
|
2287
|
+
case 2:
|
|
2288
|
+
message.updatedOn = reader.uint64();
|
|
2289
|
+
break;
|
|
2290
|
+
case 3:
|
|
2291
|
+
message.userId = reader.string();
|
|
2292
|
+
break;
|
|
2293
|
+
default:
|
|
2294
|
+
reader.skipType(tag & 7);
|
|
2295
|
+
break;
|
|
2296
|
+
}
|
|
2297
|
+
}
|
|
2298
|
+
return message;
|
|
2299
|
+
};
|
|
2300
|
+
|
|
2301
|
+
/**
|
|
2302
|
+
* Decodes a SubscriptionCreated message from the specified reader or buffer, length delimited.
|
|
2303
|
+
* @function decodeDelimited
|
|
2304
|
+
* @memberof SubscriptionCreated
|
|
2305
|
+
* @static
|
|
2306
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
2307
|
+
* @returns {SubscriptionCreated} SubscriptionCreated
|
|
2308
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2309
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2310
|
+
*/
|
|
2311
|
+
SubscriptionCreated.decodeDelimited = function decodeDelimited(reader) {
|
|
2312
|
+
if (!(reader instanceof $Reader))
|
|
2313
|
+
reader = new $Reader(reader);
|
|
2314
|
+
return this.decode(reader, reader.uint32());
|
|
2315
|
+
};
|
|
2316
|
+
|
|
2317
|
+
/**
|
|
2318
|
+
* Verifies a SubscriptionCreated message.
|
|
2319
|
+
* @function verify
|
|
2320
|
+
* @memberof SubscriptionCreated
|
|
2321
|
+
* @static
|
|
2322
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
2323
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
2324
|
+
*/
|
|
2325
|
+
SubscriptionCreated.verify = function verify(message) {
|
|
2326
|
+
if (typeof message !== "object" || message === null)
|
|
2327
|
+
return "object expected";
|
|
2328
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
2329
|
+
if (!$util.isInteger(message.id))
|
|
2330
|
+
return "id: integer expected";
|
|
2331
|
+
if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
|
|
2332
|
+
if (!$util.isInteger(message.updatedOn) && !(message.updatedOn && $util.isInteger(message.updatedOn.low) && $util.isInteger(message.updatedOn.high)))
|
|
2333
|
+
return "updatedOn: integer|Long expected";
|
|
2334
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
2335
|
+
if (!$util.isString(message.userId))
|
|
2336
|
+
return "userId: string expected";
|
|
2337
|
+
return null;
|
|
2338
|
+
};
|
|
2339
|
+
|
|
2340
|
+
/**
|
|
2341
|
+
* Creates a SubscriptionCreated message from a plain object. Also converts values to their respective internal types.
|
|
2342
|
+
* @function fromObject
|
|
2343
|
+
* @memberof SubscriptionCreated
|
|
2344
|
+
* @static
|
|
2345
|
+
* @param {Object.<string,*>} object Plain object
|
|
2346
|
+
* @returns {SubscriptionCreated} SubscriptionCreated
|
|
2347
|
+
*/
|
|
2348
|
+
SubscriptionCreated.fromObject = function fromObject(object) {
|
|
2349
|
+
if (object instanceof $root.SubscriptionCreated)
|
|
2350
|
+
return object;
|
|
2351
|
+
var message = new $root.SubscriptionCreated();
|
|
2352
|
+
if (object.id != null)
|
|
2353
|
+
message.id = object.id >>> 0;
|
|
2354
|
+
if (object.updatedOn != null)
|
|
2355
|
+
if ($util.Long)
|
|
2356
|
+
(message.updatedOn = $util.Long.fromValue(object.updatedOn)).unsigned = true;
|
|
2357
|
+
else if (typeof object.updatedOn === "string")
|
|
2358
|
+
message.updatedOn = parseInt(object.updatedOn, 10);
|
|
2359
|
+
else if (typeof object.updatedOn === "number")
|
|
2360
|
+
message.updatedOn = object.updatedOn;
|
|
2361
|
+
else if (typeof object.updatedOn === "object")
|
|
2362
|
+
message.updatedOn = new $util.LongBits(object.updatedOn.low >>> 0, object.updatedOn.high >>> 0).toNumber(true);
|
|
2363
|
+
if (object.userId != null)
|
|
2364
|
+
message.userId = String(object.userId);
|
|
2365
|
+
return message;
|
|
2366
|
+
};
|
|
2367
|
+
|
|
2368
|
+
/**
|
|
2369
|
+
* Creates a plain object from a SubscriptionCreated message. Also converts values to other types if specified.
|
|
2370
|
+
* @function toObject
|
|
2371
|
+
* @memberof SubscriptionCreated
|
|
2372
|
+
* @static
|
|
2373
|
+
* @param {SubscriptionCreated} message SubscriptionCreated
|
|
2374
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
2375
|
+
* @returns {Object.<string,*>} Plain object
|
|
2376
|
+
*/
|
|
2377
|
+
SubscriptionCreated.toObject = function toObject(message, options) {
|
|
2378
|
+
if (!options)
|
|
2379
|
+
options = {};
|
|
2380
|
+
var object = {};
|
|
2381
|
+
if (options.defaults) {
|
|
2382
|
+
object.id = 0;
|
|
2383
|
+
if ($util.Long) {
|
|
2384
|
+
var long = new $util.Long(0, 0, true);
|
|
2385
|
+
object.updatedOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
2386
|
+
} else
|
|
2387
|
+
object.updatedOn = options.longs === String ? "0" : 0;
|
|
2388
|
+
object.userId = "";
|
|
2389
|
+
}
|
|
2390
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
2391
|
+
object.id = message.id;
|
|
2392
|
+
if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
|
|
2393
|
+
if (typeof message.updatedOn === "number")
|
|
2394
|
+
object.updatedOn = options.longs === String ? String(message.updatedOn) : message.updatedOn;
|
|
2395
|
+
else
|
|
2396
|
+
object.updatedOn = options.longs === String ? $util.Long.prototype.toString.call(message.updatedOn) : options.longs === Number ? new $util.LongBits(message.updatedOn.low >>> 0, message.updatedOn.high >>> 0).toNumber(true) : message.updatedOn;
|
|
2397
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
2398
|
+
object.userId = message.userId;
|
|
2399
|
+
return object;
|
|
2400
|
+
};
|
|
2401
|
+
|
|
2402
|
+
/**
|
|
2403
|
+
* Converts this SubscriptionCreated to JSON.
|
|
2404
|
+
* @function toJSON
|
|
2405
|
+
* @memberof SubscriptionCreated
|
|
2406
|
+
* @instance
|
|
2407
|
+
* @returns {Object.<string,*>} JSON object
|
|
2408
|
+
*/
|
|
2409
|
+
SubscriptionCreated.prototype.toJSON = function toJSON() {
|
|
2410
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
2411
|
+
};
|
|
2412
|
+
|
|
2413
|
+
return SubscriptionCreated;
|
|
2414
|
+
})();
|
|
2415
|
+
|
|
2416
|
+
$root.SubscriptionCancelled = (function() {
|
|
2417
|
+
|
|
2418
|
+
/**
|
|
2419
|
+
* Properties of a SubscriptionCancelled.
|
|
2420
|
+
* @exports ISubscriptionCancelled
|
|
2421
|
+
* @interface ISubscriptionCancelled
|
|
2422
|
+
* @property {number|null} [id] SubscriptionCancelled id
|
|
2423
|
+
* @property {number|Long|null} [updatedOn] SubscriptionCancelled updatedOn
|
|
2424
|
+
* @property {string|null} [userId] SubscriptionCancelled userId
|
|
2425
|
+
*/
|
|
2426
|
+
|
|
2427
|
+
/**
|
|
2428
|
+
* Constructs a new SubscriptionCancelled.
|
|
2429
|
+
* @exports SubscriptionCancelled
|
|
2430
|
+
* @classdesc Represents a SubscriptionCancelled.
|
|
2431
|
+
* @implements ISubscriptionCancelled
|
|
2432
|
+
* @constructor
|
|
2433
|
+
* @param {ISubscriptionCancelled=} [properties] Properties to set
|
|
2434
|
+
*/
|
|
2435
|
+
function SubscriptionCancelled(properties) {
|
|
2436
|
+
if (properties)
|
|
2437
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
2438
|
+
if (properties[keys[i]] != null)
|
|
2439
|
+
this[keys[i]] = properties[keys[i]];
|
|
2440
|
+
}
|
|
2441
|
+
|
|
2442
|
+
/**
|
|
2443
|
+
* SubscriptionCancelled id.
|
|
2444
|
+
* @member {number} id
|
|
2445
|
+
* @memberof SubscriptionCancelled
|
|
2446
|
+
* @instance
|
|
2447
|
+
*/
|
|
2448
|
+
SubscriptionCancelled.prototype.id = 0;
|
|
2449
|
+
|
|
2450
|
+
/**
|
|
2451
|
+
* SubscriptionCancelled updatedOn.
|
|
2452
|
+
* @member {number|Long} updatedOn
|
|
2453
|
+
* @memberof SubscriptionCancelled
|
|
2454
|
+
* @instance
|
|
2455
|
+
*/
|
|
2456
|
+
SubscriptionCancelled.prototype.updatedOn = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
2457
|
+
|
|
2458
|
+
/**
|
|
2459
|
+
* SubscriptionCancelled userId.
|
|
2460
|
+
* @member {string} userId
|
|
2461
|
+
* @memberof SubscriptionCancelled
|
|
2462
|
+
* @instance
|
|
2463
|
+
*/
|
|
2464
|
+
SubscriptionCancelled.prototype.userId = "";
|
|
2465
|
+
|
|
2466
|
+
/**
|
|
2467
|
+
* Creates a new SubscriptionCancelled instance using the specified properties.
|
|
2468
|
+
* @function create
|
|
2469
|
+
* @memberof SubscriptionCancelled
|
|
2470
|
+
* @static
|
|
2471
|
+
* @param {ISubscriptionCancelled=} [properties] Properties to set
|
|
2472
|
+
* @returns {SubscriptionCancelled} SubscriptionCancelled instance
|
|
2473
|
+
*/
|
|
2474
|
+
SubscriptionCancelled.create = function create(properties) {
|
|
2475
|
+
return new SubscriptionCancelled(properties);
|
|
2476
|
+
};
|
|
2477
|
+
|
|
2478
|
+
/**
|
|
2479
|
+
* Encodes the specified SubscriptionCancelled message. Does not implicitly {@link SubscriptionCancelled.verify|verify} messages.
|
|
2480
|
+
* @function encode
|
|
2481
|
+
* @memberof SubscriptionCancelled
|
|
2482
|
+
* @static
|
|
2483
|
+
* @param {ISubscriptionCancelled} message SubscriptionCancelled message or plain object to encode
|
|
2484
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
2485
|
+
* @returns {$protobuf.Writer} Writer
|
|
2486
|
+
*/
|
|
2487
|
+
SubscriptionCancelled.encode = function encode(message, writer) {
|
|
2488
|
+
if (!writer)
|
|
2489
|
+
writer = $Writer.create();
|
|
2490
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
2491
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.id);
|
|
2492
|
+
if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
|
|
2493
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.updatedOn);
|
|
2494
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
2495
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.userId);
|
|
2496
|
+
return writer;
|
|
2497
|
+
};
|
|
2498
|
+
|
|
2499
|
+
/**
|
|
2500
|
+
* Encodes the specified SubscriptionCancelled message, length delimited. Does not implicitly {@link SubscriptionCancelled.verify|verify} messages.
|
|
2501
|
+
* @function encodeDelimited
|
|
2502
|
+
* @memberof SubscriptionCancelled
|
|
2503
|
+
* @static
|
|
2504
|
+
* @param {ISubscriptionCancelled} message SubscriptionCancelled message or plain object to encode
|
|
2505
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
2506
|
+
* @returns {$protobuf.Writer} Writer
|
|
2507
|
+
*/
|
|
2508
|
+
SubscriptionCancelled.encodeDelimited = function encodeDelimited(message, writer) {
|
|
2509
|
+
return this.encode(message, writer).ldelim();
|
|
2510
|
+
};
|
|
2511
|
+
|
|
2512
|
+
/**
|
|
2513
|
+
* Decodes a SubscriptionCancelled message from the specified reader or buffer.
|
|
2514
|
+
* @function decode
|
|
2515
|
+
* @memberof SubscriptionCancelled
|
|
2516
|
+
* @static
|
|
2517
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
2518
|
+
* @param {number} [length] Message length if known beforehand
|
|
2519
|
+
* @returns {SubscriptionCancelled} SubscriptionCancelled
|
|
2520
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2521
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2522
|
+
*/
|
|
2523
|
+
SubscriptionCancelled.decode = function decode(reader, length) {
|
|
2524
|
+
if (!(reader instanceof $Reader))
|
|
2525
|
+
reader = $Reader.create(reader);
|
|
2526
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.SubscriptionCancelled();
|
|
2527
|
+
while (reader.pos < end) {
|
|
2528
|
+
var tag = reader.uint32();
|
|
2529
|
+
switch (tag >>> 3) {
|
|
2530
|
+
case 1:
|
|
2531
|
+
message.id = reader.uint32();
|
|
2532
|
+
break;
|
|
2533
|
+
case 2:
|
|
2534
|
+
message.updatedOn = reader.uint64();
|
|
2535
|
+
break;
|
|
2536
|
+
case 3:
|
|
2537
|
+
message.userId = reader.string();
|
|
2538
|
+
break;
|
|
2539
|
+
default:
|
|
2540
|
+
reader.skipType(tag & 7);
|
|
2541
|
+
break;
|
|
2542
|
+
}
|
|
2543
|
+
}
|
|
2544
|
+
return message;
|
|
2545
|
+
};
|
|
2546
|
+
|
|
2547
|
+
/**
|
|
2548
|
+
* Decodes a SubscriptionCancelled message from the specified reader or buffer, length delimited.
|
|
2549
|
+
* @function decodeDelimited
|
|
2550
|
+
* @memberof SubscriptionCancelled
|
|
2551
|
+
* @static
|
|
2552
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
2553
|
+
* @returns {SubscriptionCancelled} SubscriptionCancelled
|
|
2554
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
2555
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
2556
|
+
*/
|
|
2557
|
+
SubscriptionCancelled.decodeDelimited = function decodeDelimited(reader) {
|
|
2558
|
+
if (!(reader instanceof $Reader))
|
|
2559
|
+
reader = new $Reader(reader);
|
|
2560
|
+
return this.decode(reader, reader.uint32());
|
|
2561
|
+
};
|
|
2562
|
+
|
|
2563
|
+
/**
|
|
2564
|
+
* Verifies a SubscriptionCancelled message.
|
|
2565
|
+
* @function verify
|
|
2566
|
+
* @memberof SubscriptionCancelled
|
|
2567
|
+
* @static
|
|
2568
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
2569
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
1028
2570
|
*/
|
|
2571
|
+
SubscriptionCancelled.verify = function verify(message) {
|
|
2572
|
+
if (typeof message !== "object" || message === null)
|
|
2573
|
+
return "object expected";
|
|
2574
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
2575
|
+
if (!$util.isInteger(message.id))
|
|
2576
|
+
return "id: integer expected";
|
|
2577
|
+
if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
|
|
2578
|
+
if (!$util.isInteger(message.updatedOn) && !(message.updatedOn && $util.isInteger(message.updatedOn.low) && $util.isInteger(message.updatedOn.high)))
|
|
2579
|
+
return "updatedOn: integer|Long expected";
|
|
2580
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
2581
|
+
if (!$util.isString(message.userId))
|
|
2582
|
+
return "userId: string expected";
|
|
2583
|
+
return null;
|
|
2584
|
+
};
|
|
1029
2585
|
|
|
1030
2586
|
/**
|
|
1031
|
-
*
|
|
1032
|
-
* @
|
|
1033
|
-
* @
|
|
1034
|
-
* @
|
|
2587
|
+
* Creates a SubscriptionCancelled message from a plain object. Also converts values to their respective internal types.
|
|
2588
|
+
* @function fromObject
|
|
2589
|
+
* @memberof SubscriptionCancelled
|
|
2590
|
+
* @static
|
|
2591
|
+
* @param {Object.<string,*>} object Plain object
|
|
2592
|
+
* @returns {SubscriptionCancelled} SubscriptionCancelled
|
|
2593
|
+
*/
|
|
2594
|
+
SubscriptionCancelled.fromObject = function fromObject(object) {
|
|
2595
|
+
if (object instanceof $root.SubscriptionCancelled)
|
|
2596
|
+
return object;
|
|
2597
|
+
var message = new $root.SubscriptionCancelled();
|
|
2598
|
+
if (object.id != null)
|
|
2599
|
+
message.id = object.id >>> 0;
|
|
2600
|
+
if (object.updatedOn != null)
|
|
2601
|
+
if ($util.Long)
|
|
2602
|
+
(message.updatedOn = $util.Long.fromValue(object.updatedOn)).unsigned = true;
|
|
2603
|
+
else if (typeof object.updatedOn === "string")
|
|
2604
|
+
message.updatedOn = parseInt(object.updatedOn, 10);
|
|
2605
|
+
else if (typeof object.updatedOn === "number")
|
|
2606
|
+
message.updatedOn = object.updatedOn;
|
|
2607
|
+
else if (typeof object.updatedOn === "object")
|
|
2608
|
+
message.updatedOn = new $util.LongBits(object.updatedOn.low >>> 0, object.updatedOn.high >>> 0).toNumber(true);
|
|
2609
|
+
if (object.userId != null)
|
|
2610
|
+
message.userId = String(object.userId);
|
|
2611
|
+
return message;
|
|
2612
|
+
};
|
|
2613
|
+
|
|
2614
|
+
/**
|
|
2615
|
+
* Creates a plain object from a SubscriptionCancelled message. Also converts values to other types if specified.
|
|
2616
|
+
* @function toObject
|
|
2617
|
+
* @memberof SubscriptionCancelled
|
|
2618
|
+
* @static
|
|
2619
|
+
* @param {SubscriptionCancelled} message SubscriptionCancelled
|
|
2620
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
2621
|
+
* @returns {Object.<string,*>} Plain object
|
|
2622
|
+
*/
|
|
2623
|
+
SubscriptionCancelled.toObject = function toObject(message, options) {
|
|
2624
|
+
if (!options)
|
|
2625
|
+
options = {};
|
|
2626
|
+
var object = {};
|
|
2627
|
+
if (options.defaults) {
|
|
2628
|
+
object.id = 0;
|
|
2629
|
+
if ($util.Long) {
|
|
2630
|
+
var long = new $util.Long(0, 0, true);
|
|
2631
|
+
object.updatedOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
2632
|
+
} else
|
|
2633
|
+
object.updatedOn = options.longs === String ? "0" : 0;
|
|
2634
|
+
object.userId = "";
|
|
2635
|
+
}
|
|
2636
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
2637
|
+
object.id = message.id;
|
|
2638
|
+
if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
|
|
2639
|
+
if (typeof message.updatedOn === "number")
|
|
2640
|
+
object.updatedOn = options.longs === String ? String(message.updatedOn) : message.updatedOn;
|
|
2641
|
+
else
|
|
2642
|
+
object.updatedOn = options.longs === String ? $util.Long.prototype.toString.call(message.updatedOn) : options.longs === Number ? new $util.LongBits(message.updatedOn.low >>> 0, message.updatedOn.high >>> 0).toNumber(true) : message.updatedOn;
|
|
2643
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
2644
|
+
object.userId = message.userId;
|
|
2645
|
+
return object;
|
|
2646
|
+
};
|
|
2647
|
+
|
|
2648
|
+
/**
|
|
2649
|
+
* Converts this SubscriptionCancelled to JSON.
|
|
2650
|
+
* @function toJSON
|
|
2651
|
+
* @memberof SubscriptionCancelled
|
|
2652
|
+
* @instance
|
|
2653
|
+
* @returns {Object.<string,*>} JSON object
|
|
2654
|
+
*/
|
|
2655
|
+
SubscriptionCancelled.prototype.toJSON = function toJSON() {
|
|
2656
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
2657
|
+
};
|
|
2658
|
+
|
|
2659
|
+
return SubscriptionCancelled;
|
|
2660
|
+
})();
|
|
2661
|
+
|
|
2662
|
+
$root.SubscriptionRenewed = (function() {
|
|
2663
|
+
|
|
2664
|
+
/**
|
|
2665
|
+
* Properties of a SubscriptionRenewed.
|
|
2666
|
+
* @exports ISubscriptionRenewed
|
|
2667
|
+
* @interface ISubscriptionRenewed
|
|
2668
|
+
* @property {number|null} [id] SubscriptionRenewed id
|
|
2669
|
+
* @property {number|Long|null} [updatedOn] SubscriptionRenewed updatedOn
|
|
2670
|
+
* @property {string|null} [userId] SubscriptionRenewed userId
|
|
2671
|
+
*/
|
|
2672
|
+
|
|
2673
|
+
/**
|
|
2674
|
+
* Constructs a new SubscriptionRenewed.
|
|
2675
|
+
* @exports SubscriptionRenewed
|
|
2676
|
+
* @classdesc Represents a SubscriptionRenewed.
|
|
2677
|
+
* @implements ISubscriptionRenewed
|
|
1035
2678
|
* @constructor
|
|
1036
|
-
* @param {
|
|
2679
|
+
* @param {ISubscriptionRenewed=} [properties] Properties to set
|
|
1037
2680
|
*/
|
|
1038
|
-
function
|
|
2681
|
+
function SubscriptionRenewed(properties) {
|
|
1039
2682
|
if (properties)
|
|
1040
2683
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
1041
2684
|
if (properties[keys[i]] != null)
|
|
@@ -1043,80 +2686,90 @@ $root.SubscriptionCreated = (function() {
|
|
|
1043
2686
|
}
|
|
1044
2687
|
|
|
1045
2688
|
/**
|
|
1046
|
-
*
|
|
2689
|
+
* SubscriptionRenewed id.
|
|
1047
2690
|
* @member {number} id
|
|
1048
|
-
* @memberof
|
|
2691
|
+
* @memberof SubscriptionRenewed
|
|
1049
2692
|
* @instance
|
|
1050
2693
|
*/
|
|
1051
|
-
|
|
2694
|
+
SubscriptionRenewed.prototype.id = 0;
|
|
1052
2695
|
|
|
1053
2696
|
/**
|
|
1054
|
-
*
|
|
2697
|
+
* SubscriptionRenewed updatedOn.
|
|
1055
2698
|
* @member {number|Long} updatedOn
|
|
1056
|
-
* @memberof
|
|
2699
|
+
* @memberof SubscriptionRenewed
|
|
1057
2700
|
* @instance
|
|
1058
2701
|
*/
|
|
1059
|
-
|
|
2702
|
+
SubscriptionRenewed.prototype.updatedOn = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
1060
2703
|
|
|
1061
2704
|
/**
|
|
1062
|
-
*
|
|
2705
|
+
* SubscriptionRenewed userId.
|
|
2706
|
+
* @member {string} userId
|
|
2707
|
+
* @memberof SubscriptionRenewed
|
|
2708
|
+
* @instance
|
|
2709
|
+
*/
|
|
2710
|
+
SubscriptionRenewed.prototype.userId = "";
|
|
2711
|
+
|
|
2712
|
+
/**
|
|
2713
|
+
* Creates a new SubscriptionRenewed instance using the specified properties.
|
|
1063
2714
|
* @function create
|
|
1064
|
-
* @memberof
|
|
2715
|
+
* @memberof SubscriptionRenewed
|
|
1065
2716
|
* @static
|
|
1066
|
-
* @param {
|
|
1067
|
-
* @returns {
|
|
2717
|
+
* @param {ISubscriptionRenewed=} [properties] Properties to set
|
|
2718
|
+
* @returns {SubscriptionRenewed} SubscriptionRenewed instance
|
|
1068
2719
|
*/
|
|
1069
|
-
|
|
1070
|
-
return new
|
|
2720
|
+
SubscriptionRenewed.create = function create(properties) {
|
|
2721
|
+
return new SubscriptionRenewed(properties);
|
|
1071
2722
|
};
|
|
1072
2723
|
|
|
1073
2724
|
/**
|
|
1074
|
-
* Encodes the specified
|
|
2725
|
+
* Encodes the specified SubscriptionRenewed message. Does not implicitly {@link SubscriptionRenewed.verify|verify} messages.
|
|
1075
2726
|
* @function encode
|
|
1076
|
-
* @memberof
|
|
2727
|
+
* @memberof SubscriptionRenewed
|
|
1077
2728
|
* @static
|
|
1078
|
-
* @param {
|
|
2729
|
+
* @param {ISubscriptionRenewed} message SubscriptionRenewed message or plain object to encode
|
|
1079
2730
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1080
2731
|
* @returns {$protobuf.Writer} Writer
|
|
1081
2732
|
*/
|
|
1082
|
-
|
|
2733
|
+
SubscriptionRenewed.encode = function encode(message, writer) {
|
|
1083
2734
|
if (!writer)
|
|
1084
2735
|
writer = $Writer.create();
|
|
1085
2736
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
1086
2737
|
writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.id);
|
|
1087
2738
|
if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
|
|
1088
2739
|
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.updatedOn);
|
|
2740
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
2741
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.userId);
|
|
1089
2742
|
return writer;
|
|
1090
2743
|
};
|
|
1091
2744
|
|
|
1092
2745
|
/**
|
|
1093
|
-
* Encodes the specified
|
|
2746
|
+
* Encodes the specified SubscriptionRenewed message, length delimited. Does not implicitly {@link SubscriptionRenewed.verify|verify} messages.
|
|
1094
2747
|
* @function encodeDelimited
|
|
1095
|
-
* @memberof
|
|
2748
|
+
* @memberof SubscriptionRenewed
|
|
1096
2749
|
* @static
|
|
1097
|
-
* @param {
|
|
2750
|
+
* @param {ISubscriptionRenewed} message SubscriptionRenewed message or plain object to encode
|
|
1098
2751
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1099
2752
|
* @returns {$protobuf.Writer} Writer
|
|
1100
2753
|
*/
|
|
1101
|
-
|
|
2754
|
+
SubscriptionRenewed.encodeDelimited = function encodeDelimited(message, writer) {
|
|
1102
2755
|
return this.encode(message, writer).ldelim();
|
|
1103
2756
|
};
|
|
1104
2757
|
|
|
1105
2758
|
/**
|
|
1106
|
-
* Decodes a
|
|
2759
|
+
* Decodes a SubscriptionRenewed message from the specified reader or buffer.
|
|
1107
2760
|
* @function decode
|
|
1108
|
-
* @memberof
|
|
2761
|
+
* @memberof SubscriptionRenewed
|
|
1109
2762
|
* @static
|
|
1110
2763
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
1111
2764
|
* @param {number} [length] Message length if known beforehand
|
|
1112
|
-
* @returns {
|
|
2765
|
+
* @returns {SubscriptionRenewed} SubscriptionRenewed
|
|
1113
2766
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1114
2767
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1115
2768
|
*/
|
|
1116
|
-
|
|
2769
|
+
SubscriptionRenewed.decode = function decode(reader, length) {
|
|
1117
2770
|
if (!(reader instanceof $Reader))
|
|
1118
2771
|
reader = $Reader.create(reader);
|
|
1119
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.
|
|
2772
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.SubscriptionRenewed();
|
|
1120
2773
|
while (reader.pos < end) {
|
|
1121
2774
|
var tag = reader.uint32();
|
|
1122
2775
|
switch (tag >>> 3) {
|
|
@@ -1126,6 +2779,9 @@ $root.SubscriptionCreated = (function() {
|
|
|
1126
2779
|
case 2:
|
|
1127
2780
|
message.updatedOn = reader.uint64();
|
|
1128
2781
|
break;
|
|
2782
|
+
case 3:
|
|
2783
|
+
message.userId = reader.string();
|
|
2784
|
+
break;
|
|
1129
2785
|
default:
|
|
1130
2786
|
reader.skipType(tag & 7);
|
|
1131
2787
|
break;
|
|
@@ -1135,30 +2791,30 @@ $root.SubscriptionCreated = (function() {
|
|
|
1135
2791
|
};
|
|
1136
2792
|
|
|
1137
2793
|
/**
|
|
1138
|
-
* Decodes a
|
|
2794
|
+
* Decodes a SubscriptionRenewed message from the specified reader or buffer, length delimited.
|
|
1139
2795
|
* @function decodeDelimited
|
|
1140
|
-
* @memberof
|
|
2796
|
+
* @memberof SubscriptionRenewed
|
|
1141
2797
|
* @static
|
|
1142
2798
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
1143
|
-
* @returns {
|
|
2799
|
+
* @returns {SubscriptionRenewed} SubscriptionRenewed
|
|
1144
2800
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1145
2801
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1146
2802
|
*/
|
|
1147
|
-
|
|
2803
|
+
SubscriptionRenewed.decodeDelimited = function decodeDelimited(reader) {
|
|
1148
2804
|
if (!(reader instanceof $Reader))
|
|
1149
2805
|
reader = new $Reader(reader);
|
|
1150
2806
|
return this.decode(reader, reader.uint32());
|
|
1151
2807
|
};
|
|
1152
2808
|
|
|
1153
2809
|
/**
|
|
1154
|
-
* Verifies a
|
|
2810
|
+
* Verifies a SubscriptionRenewed message.
|
|
1155
2811
|
* @function verify
|
|
1156
|
-
* @memberof
|
|
2812
|
+
* @memberof SubscriptionRenewed
|
|
1157
2813
|
* @static
|
|
1158
2814
|
* @param {Object.<string,*>} message Plain object to verify
|
|
1159
2815
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
1160
2816
|
*/
|
|
1161
|
-
|
|
2817
|
+
SubscriptionRenewed.verify = function verify(message) {
|
|
1162
2818
|
if (typeof message !== "object" || message === null)
|
|
1163
2819
|
return "object expected";
|
|
1164
2820
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
@@ -1167,21 +2823,24 @@ $root.SubscriptionCreated = (function() {
|
|
|
1167
2823
|
if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
|
|
1168
2824
|
if (!$util.isInteger(message.updatedOn) && !(message.updatedOn && $util.isInteger(message.updatedOn.low) && $util.isInteger(message.updatedOn.high)))
|
|
1169
2825
|
return "updatedOn: integer|Long expected";
|
|
2826
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
2827
|
+
if (!$util.isString(message.userId))
|
|
2828
|
+
return "userId: string expected";
|
|
1170
2829
|
return null;
|
|
1171
2830
|
};
|
|
1172
2831
|
|
|
1173
2832
|
/**
|
|
1174
|
-
* Creates a
|
|
2833
|
+
* Creates a SubscriptionRenewed message from a plain object. Also converts values to their respective internal types.
|
|
1175
2834
|
* @function fromObject
|
|
1176
|
-
* @memberof
|
|
2835
|
+
* @memberof SubscriptionRenewed
|
|
1177
2836
|
* @static
|
|
1178
2837
|
* @param {Object.<string,*>} object Plain object
|
|
1179
|
-
* @returns {
|
|
2838
|
+
* @returns {SubscriptionRenewed} SubscriptionRenewed
|
|
1180
2839
|
*/
|
|
1181
|
-
|
|
1182
|
-
if (object instanceof $root.
|
|
2840
|
+
SubscriptionRenewed.fromObject = function fromObject(object) {
|
|
2841
|
+
if (object instanceof $root.SubscriptionRenewed)
|
|
1183
2842
|
return object;
|
|
1184
|
-
var message = new $root.
|
|
2843
|
+
var message = new $root.SubscriptionRenewed();
|
|
1185
2844
|
if (object.id != null)
|
|
1186
2845
|
message.id = object.id >>> 0;
|
|
1187
2846
|
if (object.updatedOn != null)
|
|
@@ -1193,19 +2852,21 @@ $root.SubscriptionCreated = (function() {
|
|
|
1193
2852
|
message.updatedOn = object.updatedOn;
|
|
1194
2853
|
else if (typeof object.updatedOn === "object")
|
|
1195
2854
|
message.updatedOn = new $util.LongBits(object.updatedOn.low >>> 0, object.updatedOn.high >>> 0).toNumber(true);
|
|
2855
|
+
if (object.userId != null)
|
|
2856
|
+
message.userId = String(object.userId);
|
|
1196
2857
|
return message;
|
|
1197
2858
|
};
|
|
1198
2859
|
|
|
1199
2860
|
/**
|
|
1200
|
-
* Creates a plain object from a
|
|
2861
|
+
* Creates a plain object from a SubscriptionRenewed message. Also converts values to other types if specified.
|
|
1201
2862
|
* @function toObject
|
|
1202
|
-
* @memberof
|
|
2863
|
+
* @memberof SubscriptionRenewed
|
|
1203
2864
|
* @static
|
|
1204
|
-
* @param {
|
|
2865
|
+
* @param {SubscriptionRenewed} message SubscriptionRenewed
|
|
1205
2866
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
1206
2867
|
* @returns {Object.<string,*>} Plain object
|
|
1207
2868
|
*/
|
|
1208
|
-
|
|
2869
|
+
SubscriptionRenewed.toObject = function toObject(message, options) {
|
|
1209
2870
|
if (!options)
|
|
1210
2871
|
options = {};
|
|
1211
2872
|
var object = {};
|
|
@@ -1216,6 +2877,7 @@ $root.SubscriptionCreated = (function() {
|
|
|
1216
2877
|
object.updatedOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
1217
2878
|
} else
|
|
1218
2879
|
object.updatedOn = options.longs === String ? "0" : 0;
|
|
2880
|
+
object.userId = "";
|
|
1219
2881
|
}
|
|
1220
2882
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
1221
2883
|
object.id = message.id;
|
|
@@ -1224,42 +2886,45 @@ $root.SubscriptionCreated = (function() {
|
|
|
1224
2886
|
object.updatedOn = options.longs === String ? String(message.updatedOn) : message.updatedOn;
|
|
1225
2887
|
else
|
|
1226
2888
|
object.updatedOn = options.longs === String ? $util.Long.prototype.toString.call(message.updatedOn) : options.longs === Number ? new $util.LongBits(message.updatedOn.low >>> 0, message.updatedOn.high >>> 0).toNumber(true) : message.updatedOn;
|
|
2889
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
2890
|
+
object.userId = message.userId;
|
|
1227
2891
|
return object;
|
|
1228
2892
|
};
|
|
1229
2893
|
|
|
1230
2894
|
/**
|
|
1231
|
-
* Converts this
|
|
2895
|
+
* Converts this SubscriptionRenewed to JSON.
|
|
1232
2896
|
* @function toJSON
|
|
1233
|
-
* @memberof
|
|
2897
|
+
* @memberof SubscriptionRenewed
|
|
1234
2898
|
* @instance
|
|
1235
2899
|
* @returns {Object.<string,*>} JSON object
|
|
1236
2900
|
*/
|
|
1237
|
-
|
|
2901
|
+
SubscriptionRenewed.prototype.toJSON = function toJSON() {
|
|
1238
2902
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
1239
2903
|
};
|
|
1240
2904
|
|
|
1241
|
-
return
|
|
2905
|
+
return SubscriptionRenewed;
|
|
1242
2906
|
})();
|
|
1243
2907
|
|
|
1244
|
-
$root.
|
|
2908
|
+
$root.UserPasswordUpdated = (function() {
|
|
1245
2909
|
|
|
1246
2910
|
/**
|
|
1247
|
-
* Properties of a
|
|
1248
|
-
* @exports
|
|
1249
|
-
* @interface
|
|
1250
|
-
* @property {
|
|
1251
|
-
* @property {number|Long|null} [updatedOn]
|
|
2911
|
+
* Properties of a UserPasswordUpdated.
|
|
2912
|
+
* @exports IUserPasswordUpdated
|
|
2913
|
+
* @interface IUserPasswordUpdated
|
|
2914
|
+
* @property {string|null} [userId] UserPasswordUpdated userId
|
|
2915
|
+
* @property {number|Long|null} [updatedOn] UserPasswordUpdated updatedOn
|
|
2916
|
+
* @property {string|null} [email] UserPasswordUpdated email
|
|
1252
2917
|
*/
|
|
1253
2918
|
|
|
1254
2919
|
/**
|
|
1255
|
-
* Constructs a new
|
|
1256
|
-
* @exports
|
|
1257
|
-
* @classdesc Represents a
|
|
1258
|
-
* @implements
|
|
2920
|
+
* Constructs a new UserPasswordUpdated.
|
|
2921
|
+
* @exports UserPasswordUpdated
|
|
2922
|
+
* @classdesc Represents a UserPasswordUpdated.
|
|
2923
|
+
* @implements IUserPasswordUpdated
|
|
1259
2924
|
* @constructor
|
|
1260
|
-
* @param {
|
|
2925
|
+
* @param {IUserPasswordUpdated=} [properties] Properties to set
|
|
1261
2926
|
*/
|
|
1262
|
-
function
|
|
2927
|
+
function UserPasswordUpdated(properties) {
|
|
1263
2928
|
if (properties)
|
|
1264
2929
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
1265
2930
|
if (properties[keys[i]] != null)
|
|
@@ -1267,89 +2932,102 @@ $root.SubscriptionCancelled = (function() {
|
|
|
1267
2932
|
}
|
|
1268
2933
|
|
|
1269
2934
|
/**
|
|
1270
|
-
*
|
|
1271
|
-
* @member {
|
|
1272
|
-
* @memberof
|
|
2935
|
+
* UserPasswordUpdated userId.
|
|
2936
|
+
* @member {string} userId
|
|
2937
|
+
* @memberof UserPasswordUpdated
|
|
1273
2938
|
* @instance
|
|
1274
2939
|
*/
|
|
1275
|
-
|
|
2940
|
+
UserPasswordUpdated.prototype.userId = "";
|
|
1276
2941
|
|
|
1277
2942
|
/**
|
|
1278
|
-
*
|
|
2943
|
+
* UserPasswordUpdated updatedOn.
|
|
1279
2944
|
* @member {number|Long} updatedOn
|
|
1280
|
-
* @memberof
|
|
2945
|
+
* @memberof UserPasswordUpdated
|
|
1281
2946
|
* @instance
|
|
1282
2947
|
*/
|
|
1283
|
-
|
|
2948
|
+
UserPasswordUpdated.prototype.updatedOn = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
1284
2949
|
|
|
1285
2950
|
/**
|
|
1286
|
-
*
|
|
2951
|
+
* UserPasswordUpdated email.
|
|
2952
|
+
* @member {string} email
|
|
2953
|
+
* @memberof UserPasswordUpdated
|
|
2954
|
+
* @instance
|
|
2955
|
+
*/
|
|
2956
|
+
UserPasswordUpdated.prototype.email = "";
|
|
2957
|
+
|
|
2958
|
+
/**
|
|
2959
|
+
* Creates a new UserPasswordUpdated instance using the specified properties.
|
|
1287
2960
|
* @function create
|
|
1288
|
-
* @memberof
|
|
2961
|
+
* @memberof UserPasswordUpdated
|
|
1289
2962
|
* @static
|
|
1290
|
-
* @param {
|
|
1291
|
-
* @returns {
|
|
2963
|
+
* @param {IUserPasswordUpdated=} [properties] Properties to set
|
|
2964
|
+
* @returns {UserPasswordUpdated} UserPasswordUpdated instance
|
|
1292
2965
|
*/
|
|
1293
|
-
|
|
1294
|
-
return new
|
|
2966
|
+
UserPasswordUpdated.create = function create(properties) {
|
|
2967
|
+
return new UserPasswordUpdated(properties);
|
|
1295
2968
|
};
|
|
1296
2969
|
|
|
1297
2970
|
/**
|
|
1298
|
-
* Encodes the specified
|
|
2971
|
+
* Encodes the specified UserPasswordUpdated message. Does not implicitly {@link UserPasswordUpdated.verify|verify} messages.
|
|
1299
2972
|
* @function encode
|
|
1300
|
-
* @memberof
|
|
2973
|
+
* @memberof UserPasswordUpdated
|
|
1301
2974
|
* @static
|
|
1302
|
-
* @param {
|
|
2975
|
+
* @param {IUserPasswordUpdated} message UserPasswordUpdated message or plain object to encode
|
|
1303
2976
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1304
2977
|
* @returns {$protobuf.Writer} Writer
|
|
1305
2978
|
*/
|
|
1306
|
-
|
|
2979
|
+
UserPasswordUpdated.encode = function encode(message, writer) {
|
|
1307
2980
|
if (!writer)
|
|
1308
2981
|
writer = $Writer.create();
|
|
1309
|
-
if (message.
|
|
1310
|
-
writer.uint32(/* id 1, wireType
|
|
2982
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
2983
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
|
|
1311
2984
|
if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
|
|
1312
2985
|
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.updatedOn);
|
|
2986
|
+
if (message.email != null && message.hasOwnProperty("email"))
|
|
2987
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.email);
|
|
1313
2988
|
return writer;
|
|
1314
2989
|
};
|
|
1315
2990
|
|
|
1316
2991
|
/**
|
|
1317
|
-
* Encodes the specified
|
|
2992
|
+
* Encodes the specified UserPasswordUpdated message, length delimited. Does not implicitly {@link UserPasswordUpdated.verify|verify} messages.
|
|
1318
2993
|
* @function encodeDelimited
|
|
1319
|
-
* @memberof
|
|
2994
|
+
* @memberof UserPasswordUpdated
|
|
1320
2995
|
* @static
|
|
1321
|
-
* @param {
|
|
2996
|
+
* @param {IUserPasswordUpdated} message UserPasswordUpdated message or plain object to encode
|
|
1322
2997
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1323
2998
|
* @returns {$protobuf.Writer} Writer
|
|
1324
2999
|
*/
|
|
1325
|
-
|
|
3000
|
+
UserPasswordUpdated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
1326
3001
|
return this.encode(message, writer).ldelim();
|
|
1327
3002
|
};
|
|
1328
3003
|
|
|
1329
3004
|
/**
|
|
1330
|
-
* Decodes a
|
|
3005
|
+
* Decodes a UserPasswordUpdated message from the specified reader or buffer.
|
|
1331
3006
|
* @function decode
|
|
1332
|
-
* @memberof
|
|
3007
|
+
* @memberof UserPasswordUpdated
|
|
1333
3008
|
* @static
|
|
1334
3009
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
1335
3010
|
* @param {number} [length] Message length if known beforehand
|
|
1336
|
-
* @returns {
|
|
3011
|
+
* @returns {UserPasswordUpdated} UserPasswordUpdated
|
|
1337
3012
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1338
3013
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1339
3014
|
*/
|
|
1340
|
-
|
|
3015
|
+
UserPasswordUpdated.decode = function decode(reader, length) {
|
|
1341
3016
|
if (!(reader instanceof $Reader))
|
|
1342
3017
|
reader = $Reader.create(reader);
|
|
1343
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.
|
|
3018
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserPasswordUpdated();
|
|
1344
3019
|
while (reader.pos < end) {
|
|
1345
3020
|
var tag = reader.uint32();
|
|
1346
3021
|
switch (tag >>> 3) {
|
|
1347
3022
|
case 1:
|
|
1348
|
-
message.
|
|
3023
|
+
message.userId = reader.string();
|
|
1349
3024
|
break;
|
|
1350
3025
|
case 2:
|
|
1351
3026
|
message.updatedOn = reader.uint64();
|
|
1352
3027
|
break;
|
|
3028
|
+
case 3:
|
|
3029
|
+
message.email = reader.string();
|
|
3030
|
+
break;
|
|
1353
3031
|
default:
|
|
1354
3032
|
reader.skipType(tag & 7);
|
|
1355
3033
|
break;
|
|
@@ -1359,55 +3037,58 @@ $root.SubscriptionCancelled = (function() {
|
|
|
1359
3037
|
};
|
|
1360
3038
|
|
|
1361
3039
|
/**
|
|
1362
|
-
* Decodes a
|
|
3040
|
+
* Decodes a UserPasswordUpdated message from the specified reader or buffer, length delimited.
|
|
1363
3041
|
* @function decodeDelimited
|
|
1364
|
-
* @memberof
|
|
3042
|
+
* @memberof UserPasswordUpdated
|
|
1365
3043
|
* @static
|
|
1366
3044
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
1367
|
-
* @returns {
|
|
3045
|
+
* @returns {UserPasswordUpdated} UserPasswordUpdated
|
|
1368
3046
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1369
3047
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1370
3048
|
*/
|
|
1371
|
-
|
|
3049
|
+
UserPasswordUpdated.decodeDelimited = function decodeDelimited(reader) {
|
|
1372
3050
|
if (!(reader instanceof $Reader))
|
|
1373
3051
|
reader = new $Reader(reader);
|
|
1374
3052
|
return this.decode(reader, reader.uint32());
|
|
1375
3053
|
};
|
|
1376
3054
|
|
|
1377
3055
|
/**
|
|
1378
|
-
* Verifies a
|
|
3056
|
+
* Verifies a UserPasswordUpdated message.
|
|
1379
3057
|
* @function verify
|
|
1380
|
-
* @memberof
|
|
3058
|
+
* @memberof UserPasswordUpdated
|
|
1381
3059
|
* @static
|
|
1382
3060
|
* @param {Object.<string,*>} message Plain object to verify
|
|
1383
3061
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
1384
3062
|
*/
|
|
1385
|
-
|
|
3063
|
+
UserPasswordUpdated.verify = function verify(message) {
|
|
1386
3064
|
if (typeof message !== "object" || message === null)
|
|
1387
3065
|
return "object expected";
|
|
1388
|
-
if (message.
|
|
1389
|
-
if (!$util.
|
|
1390
|
-
return "
|
|
3066
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
3067
|
+
if (!$util.isString(message.userId))
|
|
3068
|
+
return "userId: string expected";
|
|
1391
3069
|
if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
|
|
1392
3070
|
if (!$util.isInteger(message.updatedOn) && !(message.updatedOn && $util.isInteger(message.updatedOn.low) && $util.isInteger(message.updatedOn.high)))
|
|
1393
3071
|
return "updatedOn: integer|Long expected";
|
|
3072
|
+
if (message.email != null && message.hasOwnProperty("email"))
|
|
3073
|
+
if (!$util.isString(message.email))
|
|
3074
|
+
return "email: string expected";
|
|
1394
3075
|
return null;
|
|
1395
3076
|
};
|
|
1396
3077
|
|
|
1397
3078
|
/**
|
|
1398
|
-
* Creates a
|
|
3079
|
+
* Creates a UserPasswordUpdated message from a plain object. Also converts values to their respective internal types.
|
|
1399
3080
|
* @function fromObject
|
|
1400
|
-
* @memberof
|
|
3081
|
+
* @memberof UserPasswordUpdated
|
|
1401
3082
|
* @static
|
|
1402
3083
|
* @param {Object.<string,*>} object Plain object
|
|
1403
|
-
* @returns {
|
|
3084
|
+
* @returns {UserPasswordUpdated} UserPasswordUpdated
|
|
1404
3085
|
*/
|
|
1405
|
-
|
|
1406
|
-
if (object instanceof $root.
|
|
3086
|
+
UserPasswordUpdated.fromObject = function fromObject(object) {
|
|
3087
|
+
if (object instanceof $root.UserPasswordUpdated)
|
|
1407
3088
|
return object;
|
|
1408
|
-
var message = new $root.
|
|
1409
|
-
if (object.
|
|
1410
|
-
message.
|
|
3089
|
+
var message = new $root.UserPasswordUpdated();
|
|
3090
|
+
if (object.userId != null)
|
|
3091
|
+
message.userId = String(object.userId);
|
|
1411
3092
|
if (object.updatedOn != null)
|
|
1412
3093
|
if ($util.Long)
|
|
1413
3094
|
(message.updatedOn = $util.Long.fromValue(object.updatedOn)).unsigned = true;
|
|
@@ -1417,52 +3098,57 @@ $root.SubscriptionCancelled = (function() {
|
|
|
1417
3098
|
message.updatedOn = object.updatedOn;
|
|
1418
3099
|
else if (typeof object.updatedOn === "object")
|
|
1419
3100
|
message.updatedOn = new $util.LongBits(object.updatedOn.low >>> 0, object.updatedOn.high >>> 0).toNumber(true);
|
|
3101
|
+
if (object.email != null)
|
|
3102
|
+
message.email = String(object.email);
|
|
1420
3103
|
return message;
|
|
1421
3104
|
};
|
|
1422
3105
|
|
|
1423
3106
|
/**
|
|
1424
|
-
* Creates a plain object from a
|
|
3107
|
+
* Creates a plain object from a UserPasswordUpdated message. Also converts values to other types if specified.
|
|
1425
3108
|
* @function toObject
|
|
1426
|
-
* @memberof
|
|
3109
|
+
* @memberof UserPasswordUpdated
|
|
1427
3110
|
* @static
|
|
1428
|
-
* @param {
|
|
3111
|
+
* @param {UserPasswordUpdated} message UserPasswordUpdated
|
|
1429
3112
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
1430
3113
|
* @returns {Object.<string,*>} Plain object
|
|
1431
3114
|
*/
|
|
1432
|
-
|
|
3115
|
+
UserPasswordUpdated.toObject = function toObject(message, options) {
|
|
1433
3116
|
if (!options)
|
|
1434
3117
|
options = {};
|
|
1435
3118
|
var object = {};
|
|
1436
3119
|
if (options.defaults) {
|
|
1437
|
-
object.
|
|
3120
|
+
object.userId = "";
|
|
1438
3121
|
if ($util.Long) {
|
|
1439
3122
|
var long = new $util.Long(0, 0, true);
|
|
1440
3123
|
object.updatedOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
1441
3124
|
} else
|
|
1442
3125
|
object.updatedOn = options.longs === String ? "0" : 0;
|
|
3126
|
+
object.email = "";
|
|
1443
3127
|
}
|
|
1444
|
-
if (message.
|
|
1445
|
-
object.
|
|
3128
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
3129
|
+
object.userId = message.userId;
|
|
1446
3130
|
if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
|
|
1447
3131
|
if (typeof message.updatedOn === "number")
|
|
1448
3132
|
object.updatedOn = options.longs === String ? String(message.updatedOn) : message.updatedOn;
|
|
1449
3133
|
else
|
|
1450
3134
|
object.updatedOn = options.longs === String ? $util.Long.prototype.toString.call(message.updatedOn) : options.longs === Number ? new $util.LongBits(message.updatedOn.low >>> 0, message.updatedOn.high >>> 0).toNumber(true) : message.updatedOn;
|
|
3135
|
+
if (message.email != null && message.hasOwnProperty("email"))
|
|
3136
|
+
object.email = message.email;
|
|
1451
3137
|
return object;
|
|
1452
3138
|
};
|
|
1453
3139
|
|
|
1454
3140
|
/**
|
|
1455
|
-
* Converts this
|
|
3141
|
+
* Converts this UserPasswordUpdated to JSON.
|
|
1456
3142
|
* @function toJSON
|
|
1457
|
-
* @memberof
|
|
3143
|
+
* @memberof UserPasswordUpdated
|
|
1458
3144
|
* @instance
|
|
1459
3145
|
* @returns {Object.<string,*>} JSON object
|
|
1460
3146
|
*/
|
|
1461
|
-
|
|
3147
|
+
UserPasswordUpdated.prototype.toJSON = function toJSON() {
|
|
1462
3148
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
1463
3149
|
};
|
|
1464
3150
|
|
|
1465
|
-
return
|
|
3151
|
+
return UserPasswordUpdated;
|
|
1466
3152
|
})();
|
|
1467
3153
|
|
|
1468
3154
|
module.exports = $root;
|