@headspace/protos-events 0.1.0-alpha.0ae9639 → 1.1.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.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
 
@@ -264,6 +286,7 @@ $root.FamilyMemberRemoved = (function() {
264
286
  * @property {number|Long|null} [timestamp] FamilyMemberRemoved timestamp
265
287
  * @property {number|null} [userGroupEntryId] FamilyMemberRemoved userGroupEntryId
266
288
  * @property {string|null} [userId] FamilyMemberRemoved userId
289
+ * @property {number|null} [userGroupId] FamilyMemberRemoved userGroupId
267
290
  */
268
291
 
269
292
  /**
@@ -305,6 +328,14 @@ $root.FamilyMemberRemoved = (function() {
305
328
  */
306
329
  FamilyMemberRemoved.prototype.userId = "";
307
330
 
331
+ /**
332
+ * FamilyMemberRemoved userGroupId.
333
+ * @member {number} userGroupId
334
+ * @memberof FamilyMemberRemoved
335
+ * @instance
336
+ */
337
+ FamilyMemberRemoved.prototype.userGroupId = 0;
338
+
308
339
  /**
309
340
  * Creates a new FamilyMemberRemoved instance using the specified properties.
310
341
  * @function create
@@ -335,6 +366,8 @@ $root.FamilyMemberRemoved = (function() {
335
366
  writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.userGroupEntryId);
336
367
  if (message.userId != null && message.hasOwnProperty("userId"))
337
368
  writer.uint32(/* id 3, wireType 2 =*/26).string(message.userId);
369
+ if (message.userGroupId != null && message.hasOwnProperty("userGroupId"))
370
+ writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.userGroupId);
338
371
  return writer;
339
372
  };
340
373
 
@@ -378,6 +411,9 @@ $root.FamilyMemberRemoved = (function() {
378
411
  case 3:
379
412
  message.userId = reader.string();
380
413
  break;
414
+ case 4:
415
+ message.userGroupId = reader.uint32();
416
+ break;
381
417
  default:
382
418
  reader.skipType(tag & 7);
383
419
  break;
@@ -422,6 +458,9 @@ $root.FamilyMemberRemoved = (function() {
422
458
  if (message.userId != null && message.hasOwnProperty("userId"))
423
459
  if (!$util.isString(message.userId))
424
460
  return "userId: string expected";
461
+ if (message.userGroupId != null && message.hasOwnProperty("userGroupId"))
462
+ if (!$util.isInteger(message.userGroupId))
463
+ return "userGroupId: integer expected";
425
464
  return null;
426
465
  };
427
466
 
@@ -450,6 +489,8 @@ $root.FamilyMemberRemoved = (function() {
450
489
  message.userGroupEntryId = object.userGroupEntryId >>> 0;
451
490
  if (object.userId != null)
452
491
  message.userId = String(object.userId);
492
+ if (object.userGroupId != null)
493
+ message.userGroupId = object.userGroupId >>> 0;
453
494
  return message;
454
495
  };
455
496
 
@@ -474,6 +515,7 @@ $root.FamilyMemberRemoved = (function() {
474
515
  object.timestamp = options.longs === String ? "0" : 0;
475
516
  object.userGroupEntryId = 0;
476
517
  object.userId = "";
518
+ object.userGroupId = 0;
477
519
  }
478
520
  if (message.timestamp != null && message.hasOwnProperty("timestamp"))
479
521
  if (typeof message.timestamp === "number")
@@ -484,6 +526,8 @@ $root.FamilyMemberRemoved = (function() {
484
526
  object.userGroupEntryId = message.userGroupEntryId;
485
527
  if (message.userId != null && message.hasOwnProperty("userId"))
486
528
  object.userId = message.userId;
529
+ if (message.userGroupId != null && message.hasOwnProperty("userGroupId"))
530
+ object.userGroupId = message.userGroupId;
487
531
  return object;
488
532
  };
489
533
 
@@ -501,25 +545,26 @@ $root.FamilyMemberRemoved = (function() {
501
545
  return FamilyMemberRemoved;
502
546
  })();
503
547
 
504
- $root.Ping = (function() {
548
+ $root.VoiceDeviceConnected = (function() {
505
549
 
506
550
  /**
507
- * Properties of a Ping.
508
- * @exports IPing
509
- * @interface IPing
510
- * @property {string|null} [message] Ping message
511
- * @property {number|Long|null} [timestamp] Ping timestamp
551
+ * Properties of a VoiceDeviceConnected.
552
+ * @exports IVoiceDeviceConnected
553
+ * @interface IVoiceDeviceConnected
554
+ * @property {string|null} [userId] VoiceDeviceConnected userId
555
+ * @property {string|null} [platform] VoiceDeviceConnected platform
556
+ * @property {number|Long|null} [timestamp] VoiceDeviceConnected timestamp
512
557
  */
513
558
 
514
559
  /**
515
- * Constructs a new Ping.
516
- * @exports Ping
517
- * @classdesc Represents a Ping.
518
- * @implements IPing
560
+ * Constructs a new VoiceDeviceConnected.
561
+ * @exports VoiceDeviceConnected
562
+ * @classdesc Represents a VoiceDeviceConnected.
563
+ * @implements IVoiceDeviceConnected
519
564
  * @constructor
520
- * @param {IPing=} [properties] Properties to set
565
+ * @param {IVoiceDeviceConnected=} [properties] Properties to set
521
566
  */
522
- function Ping(properties) {
567
+ function VoiceDeviceConnected(properties) {
523
568
  if (properties)
524
569
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
525
570
  if (properties[keys[i]] != null)
@@ -527,87 +572,100 @@ $root.Ping = (function() {
527
572
  }
528
573
 
529
574
  /**
530
- * Ping message.
531
- * @member {string} message
532
- * @memberof Ping
575
+ * VoiceDeviceConnected userId.
576
+ * @member {string} userId
577
+ * @memberof VoiceDeviceConnected
578
+ * @instance
579
+ */
580
+ VoiceDeviceConnected.prototype.userId = "";
581
+
582
+ /**
583
+ * VoiceDeviceConnected platform.
584
+ * @member {string} platform
585
+ * @memberof VoiceDeviceConnected
533
586
  * @instance
534
587
  */
535
- Ping.prototype.message = "";
588
+ VoiceDeviceConnected.prototype.platform = "";
536
589
 
537
590
  /**
538
- * Ping timestamp.
591
+ * VoiceDeviceConnected timestamp.
539
592
  * @member {number|Long} timestamp
540
- * @memberof Ping
593
+ * @memberof VoiceDeviceConnected
541
594
  * @instance
542
595
  */
543
- Ping.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
596
+ VoiceDeviceConnected.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
544
597
 
545
598
  /**
546
- * Creates a new Ping instance using the specified properties.
599
+ * Creates a new VoiceDeviceConnected instance using the specified properties.
547
600
  * @function create
548
- * @memberof Ping
601
+ * @memberof VoiceDeviceConnected
549
602
  * @static
550
- * @param {IPing=} [properties] Properties to set
551
- * @returns {Ping} Ping instance
603
+ * @param {IVoiceDeviceConnected=} [properties] Properties to set
604
+ * @returns {VoiceDeviceConnected} VoiceDeviceConnected instance
552
605
  */
553
- Ping.create = function create(properties) {
554
- return new Ping(properties);
606
+ VoiceDeviceConnected.create = function create(properties) {
607
+ return new VoiceDeviceConnected(properties);
555
608
  };
556
609
 
557
610
  /**
558
- * Encodes the specified Ping message. Does not implicitly {@link Ping.verify|verify} messages.
611
+ * Encodes the specified VoiceDeviceConnected message. Does not implicitly {@link VoiceDeviceConnected.verify|verify} messages.
559
612
  * @function encode
560
- * @memberof Ping
613
+ * @memberof VoiceDeviceConnected
561
614
  * @static
562
- * @param {IPing} message Ping message or plain object to encode
615
+ * @param {IVoiceDeviceConnected} message VoiceDeviceConnected message or plain object to encode
563
616
  * @param {$protobuf.Writer} [writer] Writer to encode to
564
617
  * @returns {$protobuf.Writer} Writer
565
618
  */
566
- Ping.encode = function encode(message, writer) {
619
+ VoiceDeviceConnected.encode = function encode(message, writer) {
567
620
  if (!writer)
568
621
  writer = $Writer.create();
569
- if (message.message != null && message.hasOwnProperty("message"))
570
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.message);
622
+ if (message.userId != null && message.hasOwnProperty("userId"))
623
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
624
+ if (message.platform != null && message.hasOwnProperty("platform"))
625
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.platform);
571
626
  if (message.timestamp != null && message.hasOwnProperty("timestamp"))
572
- writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.timestamp);
627
+ writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.timestamp);
573
628
  return writer;
574
629
  };
575
630
 
576
631
  /**
577
- * Encodes the specified Ping message, length delimited. Does not implicitly {@link Ping.verify|verify} messages.
632
+ * Encodes the specified VoiceDeviceConnected message, length delimited. Does not implicitly {@link VoiceDeviceConnected.verify|verify} messages.
578
633
  * @function encodeDelimited
579
- * @memberof Ping
634
+ * @memberof VoiceDeviceConnected
580
635
  * @static
581
- * @param {IPing} message Ping message or plain object to encode
636
+ * @param {IVoiceDeviceConnected} message VoiceDeviceConnected message or plain object to encode
582
637
  * @param {$protobuf.Writer} [writer] Writer to encode to
583
638
  * @returns {$protobuf.Writer} Writer
584
639
  */
585
- Ping.encodeDelimited = function encodeDelimited(message, writer) {
640
+ VoiceDeviceConnected.encodeDelimited = function encodeDelimited(message, writer) {
586
641
  return this.encode(message, writer).ldelim();
587
642
  };
588
643
 
589
644
  /**
590
- * Decodes a Ping message from the specified reader or buffer.
645
+ * Decodes a VoiceDeviceConnected message from the specified reader or buffer.
591
646
  * @function decode
592
- * @memberof Ping
647
+ * @memberof VoiceDeviceConnected
593
648
  * @static
594
649
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
595
650
  * @param {number} [length] Message length if known beforehand
596
- * @returns {Ping} Ping
651
+ * @returns {VoiceDeviceConnected} VoiceDeviceConnected
597
652
  * @throws {Error} If the payload is not a reader or valid buffer
598
653
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
599
654
  */
600
- Ping.decode = function decode(reader, length) {
655
+ VoiceDeviceConnected.decode = function decode(reader, length) {
601
656
  if (!(reader instanceof $Reader))
602
657
  reader = $Reader.create(reader);
603
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.Ping();
658
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.VoiceDeviceConnected();
604
659
  while (reader.pos < end) {
605
660
  var tag = reader.uint32();
606
661
  switch (tag >>> 3) {
607
662
  case 1:
608
- message.message = reader.string();
663
+ message.userId = reader.string();
609
664
  break;
610
665
  case 2:
666
+ message.platform = reader.string();
667
+ break;
668
+ case 3:
611
669
  message.timestamp = reader.uint64();
612
670
  break;
613
671
  default:
@@ -619,35 +677,38 @@ $root.Ping = (function() {
619
677
  };
620
678
 
621
679
  /**
622
- * Decodes a Ping message from the specified reader or buffer, length delimited.
680
+ * Decodes a VoiceDeviceConnected message from the specified reader or buffer, length delimited.
623
681
  * @function decodeDelimited
624
- * @memberof Ping
682
+ * @memberof VoiceDeviceConnected
625
683
  * @static
626
684
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
627
- * @returns {Ping} Ping
685
+ * @returns {VoiceDeviceConnected} VoiceDeviceConnected
628
686
  * @throws {Error} If the payload is not a reader or valid buffer
629
687
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
630
688
  */
631
- Ping.decodeDelimited = function decodeDelimited(reader) {
689
+ VoiceDeviceConnected.decodeDelimited = function decodeDelimited(reader) {
632
690
  if (!(reader instanceof $Reader))
633
691
  reader = new $Reader(reader);
634
692
  return this.decode(reader, reader.uint32());
635
693
  };
636
694
 
637
695
  /**
638
- * Verifies a Ping message.
696
+ * Verifies a VoiceDeviceConnected message.
639
697
  * @function verify
640
- * @memberof Ping
698
+ * @memberof VoiceDeviceConnected
641
699
  * @static
642
700
  * @param {Object.<string,*>} message Plain object to verify
643
701
  * @returns {string|null} `null` if valid, otherwise the reason why it is not
644
702
  */
645
- Ping.verify = function verify(message) {
703
+ VoiceDeviceConnected.verify = function verify(message) {
646
704
  if (typeof message !== "object" || message === null)
647
705
  return "object expected";
648
- if (message.message != null && message.hasOwnProperty("message"))
649
- if (!$util.isString(message.message))
650
- return "message: string expected";
706
+ if (message.userId != null && message.hasOwnProperty("userId"))
707
+ if (!$util.isString(message.userId))
708
+ return "userId: string expected";
709
+ if (message.platform != null && message.hasOwnProperty("platform"))
710
+ if (!$util.isString(message.platform))
711
+ return "platform: string expected";
651
712
  if (message.timestamp != null && message.hasOwnProperty("timestamp"))
652
713
  if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
653
714
  return "timestamp: integer|Long expected";
@@ -655,19 +716,21 @@ $root.Ping = (function() {
655
716
  };
656
717
 
657
718
  /**
658
- * Creates a Ping message from a plain object. Also converts values to their respective internal types.
719
+ * Creates a VoiceDeviceConnected message from a plain object. Also converts values to their respective internal types.
659
720
  * @function fromObject
660
- * @memberof Ping
721
+ * @memberof VoiceDeviceConnected
661
722
  * @static
662
723
  * @param {Object.<string,*>} object Plain object
663
- * @returns {Ping} Ping
724
+ * @returns {VoiceDeviceConnected} VoiceDeviceConnected
664
725
  */
665
- Ping.fromObject = function fromObject(object) {
666
- if (object instanceof $root.Ping)
726
+ VoiceDeviceConnected.fromObject = function fromObject(object) {
727
+ if (object instanceof $root.VoiceDeviceConnected)
667
728
  return object;
668
- var message = new $root.Ping();
669
- if (object.message != null)
670
- message.message = String(object.message);
729
+ var message = new $root.VoiceDeviceConnected();
730
+ if (object.userId != null)
731
+ message.userId = String(object.userId);
732
+ if (object.platform != null)
733
+ message.platform = String(object.platform);
671
734
  if (object.timestamp != null)
672
735
  if ($util.Long)
673
736
  (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
@@ -681,28 +744,31 @@ $root.Ping = (function() {
681
744
  };
682
745
 
683
746
  /**
684
- * Creates a plain object from a Ping message. Also converts values to other types if specified.
747
+ * Creates a plain object from a VoiceDeviceConnected message. Also converts values to other types if specified.
685
748
  * @function toObject
686
- * @memberof Ping
749
+ * @memberof VoiceDeviceConnected
687
750
  * @static
688
- * @param {Ping} message Ping
751
+ * @param {VoiceDeviceConnected} message VoiceDeviceConnected
689
752
  * @param {$protobuf.IConversionOptions} [options] Conversion options
690
753
  * @returns {Object.<string,*>} Plain object
691
754
  */
692
- Ping.toObject = function toObject(message, options) {
755
+ VoiceDeviceConnected.toObject = function toObject(message, options) {
693
756
  if (!options)
694
757
  options = {};
695
758
  var object = {};
696
759
  if (options.defaults) {
697
- object.message = "";
760
+ object.userId = "";
761
+ object.platform = "";
698
762
  if ($util.Long) {
699
763
  var long = new $util.Long(0, 0, true);
700
764
  object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
701
765
  } else
702
766
  object.timestamp = options.longs === String ? "0" : 0;
703
767
  }
704
- if (message.message != null && message.hasOwnProperty("message"))
705
- object.message = message.message;
768
+ if (message.userId != null && message.hasOwnProperty("userId"))
769
+ object.userId = message.userId;
770
+ if (message.platform != null && message.hasOwnProperty("platform"))
771
+ object.platform = message.platform;
706
772
  if (message.timestamp != null && message.hasOwnProperty("timestamp"))
707
773
  if (typeof message.timestamp === "number")
708
774
  object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
@@ -712,38 +778,39 @@ $root.Ping = (function() {
712
778
  };
713
779
 
714
780
  /**
715
- * Converts this Ping to JSON.
781
+ * Converts this VoiceDeviceConnected to JSON.
716
782
  * @function toJSON
717
- * @memberof Ping
783
+ * @memberof VoiceDeviceConnected
718
784
  * @instance
719
785
  * @returns {Object.<string,*>} JSON object
720
786
  */
721
- Ping.prototype.toJSON = function toJSON() {
787
+ VoiceDeviceConnected.prototype.toJSON = function toJSON() {
722
788
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
723
789
  };
724
790
 
725
- return Ping;
791
+ return VoiceDeviceConnected;
726
792
  })();
727
793
 
728
- $root.Pong = (function() {
794
+ $root.SleepcastEpisodeCompleted = (function() {
729
795
 
730
796
  /**
731
- * Properties of a Pong.
732
- * @exports IPong
733
- * @interface IPong
734
- * @property {string|null} [message] Pong message
735
- * @property {number|Long|null} [timestamp] Pong timestamp
797
+ * Properties of a SleepcastEpisodeCompleted.
798
+ * @exports ISleepcastEpisodeCompleted
799
+ * @interface ISleepcastEpisodeCompleted
800
+ * @property {number|Long|null} [timestamp] SleepcastEpisodeCompleted timestamp
801
+ * @property {number|null} [sleepcastId] SleepcastEpisodeCompleted sleepcastId
802
+ * @property {string|null} [userId] SleepcastEpisodeCompleted userId
736
803
  */
737
804
 
738
805
  /**
739
- * Constructs a new Pong.
740
- * @exports Pong
741
- * @classdesc Represents a Pong.
742
- * @implements IPong
806
+ * Constructs a new SleepcastEpisodeCompleted.
807
+ * @exports SleepcastEpisodeCompleted
808
+ * @classdesc Represents a SleepcastEpisodeCompleted.
809
+ * @implements ISleepcastEpisodeCompleted
743
810
  * @constructor
744
- * @param {IPong=} [properties] Properties to set
811
+ * @param {ISleepcastEpisodeCompleted=} [properties] Properties to set
745
812
  */
746
- function Pong(properties) {
813
+ function SleepcastEpisodeCompleted(properties) {
747
814
  if (properties)
748
815
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
749
816
  if (properties[keys[i]] != null)
@@ -751,88 +818,101 @@ $root.Pong = (function() {
751
818
  }
752
819
 
753
820
  /**
754
- * Pong message.
755
- * @member {string} message
756
- * @memberof Pong
821
+ * SleepcastEpisodeCompleted timestamp.
822
+ * @member {number|Long} timestamp
823
+ * @memberof SleepcastEpisodeCompleted
757
824
  * @instance
758
825
  */
759
- Pong.prototype.message = "";
826
+ SleepcastEpisodeCompleted.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
760
827
 
761
828
  /**
762
- * Pong timestamp.
763
- * @member {number|Long} timestamp
764
- * @memberof Pong
829
+ * SleepcastEpisodeCompleted sleepcastId.
830
+ * @member {number} sleepcastId
831
+ * @memberof SleepcastEpisodeCompleted
832
+ * @instance
833
+ */
834
+ SleepcastEpisodeCompleted.prototype.sleepcastId = 0;
835
+
836
+ /**
837
+ * SleepcastEpisodeCompleted userId.
838
+ * @member {string} userId
839
+ * @memberof SleepcastEpisodeCompleted
765
840
  * @instance
766
841
  */
767
- Pong.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
842
+ SleepcastEpisodeCompleted.prototype.userId = "";
768
843
 
769
844
  /**
770
- * Creates a new Pong instance using the specified properties.
845
+ * Creates a new SleepcastEpisodeCompleted instance using the specified properties.
771
846
  * @function create
772
- * @memberof Pong
847
+ * @memberof SleepcastEpisodeCompleted
773
848
  * @static
774
- * @param {IPong=} [properties] Properties to set
775
- * @returns {Pong} Pong instance
849
+ * @param {ISleepcastEpisodeCompleted=} [properties] Properties to set
850
+ * @returns {SleepcastEpisodeCompleted} SleepcastEpisodeCompleted instance
776
851
  */
777
- Pong.create = function create(properties) {
778
- return new Pong(properties);
852
+ SleepcastEpisodeCompleted.create = function create(properties) {
853
+ return new SleepcastEpisodeCompleted(properties);
779
854
  };
780
855
 
781
856
  /**
782
- * Encodes the specified Pong message. Does not implicitly {@link Pong.verify|verify} messages.
857
+ * Encodes the specified SleepcastEpisodeCompleted message. Does not implicitly {@link SleepcastEpisodeCompleted.verify|verify} messages.
783
858
  * @function encode
784
- * @memberof Pong
859
+ * @memberof SleepcastEpisodeCompleted
785
860
  * @static
786
- * @param {IPong} message Pong message or plain object to encode
861
+ * @param {ISleepcastEpisodeCompleted} message SleepcastEpisodeCompleted message or plain object to encode
787
862
  * @param {$protobuf.Writer} [writer] Writer to encode to
788
863
  * @returns {$protobuf.Writer} Writer
789
864
  */
790
- Pong.encode = function encode(message, writer) {
865
+ SleepcastEpisodeCompleted.encode = function encode(message, writer) {
791
866
  if (!writer)
792
867
  writer = $Writer.create();
793
- if (message.message != null && message.hasOwnProperty("message"))
794
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.message);
795
868
  if (message.timestamp != null && message.hasOwnProperty("timestamp"))
796
- writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.timestamp);
869
+ writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.timestamp);
870
+ if (message.sleepcastId != null && message.hasOwnProperty("sleepcastId"))
871
+ writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.sleepcastId);
872
+ if (message.userId != null && message.hasOwnProperty("userId"))
873
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.userId);
797
874
  return writer;
798
875
  };
799
876
 
800
877
  /**
801
- * Encodes the specified Pong message, length delimited. Does not implicitly {@link Pong.verify|verify} messages.
878
+ * Encodes the specified SleepcastEpisodeCompleted message, length delimited. Does not implicitly {@link SleepcastEpisodeCompleted.verify|verify} messages.
802
879
  * @function encodeDelimited
803
- * @memberof Pong
880
+ * @memberof SleepcastEpisodeCompleted
804
881
  * @static
805
- * @param {IPong} message Pong message or plain object to encode
882
+ * @param {ISleepcastEpisodeCompleted} message SleepcastEpisodeCompleted message or plain object to encode
806
883
  * @param {$protobuf.Writer} [writer] Writer to encode to
807
884
  * @returns {$protobuf.Writer} Writer
808
885
  */
809
- Pong.encodeDelimited = function encodeDelimited(message, writer) {
886
+ SleepcastEpisodeCompleted.encodeDelimited = function encodeDelimited(message, writer) {
810
887
  return this.encode(message, writer).ldelim();
811
888
  };
812
889
 
813
890
  /**
814
- * Decodes a Pong message from the specified reader or buffer.
891
+ * Decodes a SleepcastEpisodeCompleted message from the specified reader or buffer.
815
892
  * @function decode
816
- * @memberof Pong
893
+ * @memberof SleepcastEpisodeCompleted
817
894
  * @static
818
895
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
819
896
  * @param {number} [length] Message length if known beforehand
820
- * @returns {Pong} Pong
897
+ * @returns {SleepcastEpisodeCompleted} SleepcastEpisodeCompleted
821
898
  * @throws {Error} If the payload is not a reader or valid buffer
822
899
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
823
900
  */
824
- Pong.decode = function decode(reader, length) {
901
+ SleepcastEpisodeCompleted.decode = function decode(reader, length) {
825
902
  if (!(reader instanceof $Reader))
826
903
  reader = $Reader.create(reader);
827
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.Pong();
904
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.SleepcastEpisodeCompleted();
828
905
  while (reader.pos < end) {
829
906
  var tag = reader.uint32();
830
907
  switch (tag >>> 3) {
831
908
  case 1:
832
- message.message = reader.string();
909
+ message.timestamp = reader.uint64();
833
910
  break;
834
911
  case 2:
835
- message.timestamp = reader.uint64();
912
+ message.sleepcastId = reader.uint32();
913
+ break;
914
+ case 3:
915
+ message.userId = reader.string();
836
916
  break;
837
917
  default:
838
918
  reader.skipType(tag & 7);
@@ -843,55 +923,56 @@ $root.Pong = (function() {
843
923
  };
844
924
 
845
925
  /**
846
- * Decodes a Pong message from the specified reader or buffer, length delimited.
926
+ * Decodes a SleepcastEpisodeCompleted message from the specified reader or buffer, length delimited.
847
927
  * @function decodeDelimited
848
- * @memberof Pong
928
+ * @memberof SleepcastEpisodeCompleted
849
929
  * @static
850
930
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
851
- * @returns {Pong} Pong
931
+ * @returns {SleepcastEpisodeCompleted} SleepcastEpisodeCompleted
852
932
  * @throws {Error} If the payload is not a reader or valid buffer
853
933
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
854
934
  */
855
- Pong.decodeDelimited = function decodeDelimited(reader) {
935
+ SleepcastEpisodeCompleted.decodeDelimited = function decodeDelimited(reader) {
856
936
  if (!(reader instanceof $Reader))
857
937
  reader = new $Reader(reader);
858
938
  return this.decode(reader, reader.uint32());
859
939
  };
860
940
 
861
941
  /**
862
- * Verifies a Pong message.
942
+ * Verifies a SleepcastEpisodeCompleted message.
863
943
  * @function verify
864
- * @memberof Pong
944
+ * @memberof SleepcastEpisodeCompleted
865
945
  * @static
866
946
  * @param {Object.<string,*>} message Plain object to verify
867
947
  * @returns {string|null} `null` if valid, otherwise the reason why it is not
868
948
  */
869
- Pong.verify = function verify(message) {
949
+ SleepcastEpisodeCompleted.verify = function verify(message) {
870
950
  if (typeof message !== "object" || message === null)
871
951
  return "object expected";
872
- if (message.message != null && message.hasOwnProperty("message"))
873
- if (!$util.isString(message.message))
874
- return "message: string expected";
875
952
  if (message.timestamp != null && message.hasOwnProperty("timestamp"))
876
953
  if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
877
954
  return "timestamp: integer|Long expected";
955
+ if (message.sleepcastId != null && message.hasOwnProperty("sleepcastId"))
956
+ if (!$util.isInteger(message.sleepcastId))
957
+ return "sleepcastId: integer expected";
958
+ if (message.userId != null && message.hasOwnProperty("userId"))
959
+ if (!$util.isString(message.userId))
960
+ return "userId: string expected";
878
961
  return null;
879
962
  };
880
963
 
881
964
  /**
882
- * Creates a Pong message from a plain object. Also converts values to their respective internal types.
965
+ * Creates a SleepcastEpisodeCompleted message from a plain object. Also converts values to their respective internal types.
883
966
  * @function fromObject
884
- * @memberof Pong
967
+ * @memberof SleepcastEpisodeCompleted
885
968
  * @static
886
969
  * @param {Object.<string,*>} object Plain object
887
- * @returns {Pong} Pong
970
+ * @returns {SleepcastEpisodeCompleted} SleepcastEpisodeCompleted
888
971
  */
889
- Pong.fromObject = function fromObject(object) {
890
- if (object instanceof $root.Pong)
972
+ SleepcastEpisodeCompleted.fromObject = function fromObject(object) {
973
+ if (object instanceof $root.SleepcastEpisodeCompleted)
891
974
  return object;
892
- var message = new $root.Pong();
893
- if (object.message != null)
894
- message.message = String(object.message);
975
+ var message = new $root.SleepcastEpisodeCompleted();
895
976
  if (object.timestamp != null)
896
977
  if ($util.Long)
897
978
  (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
@@ -901,141 +982,81 @@ $root.Pong = (function() {
901
982
  message.timestamp = object.timestamp;
902
983
  else if (typeof object.timestamp === "object")
903
984
  message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
985
+ if (object.sleepcastId != null)
986
+ message.sleepcastId = object.sleepcastId >>> 0;
987
+ if (object.userId != null)
988
+ message.userId = String(object.userId);
904
989
  return message;
905
990
  };
906
991
 
907
992
  /**
908
- * Creates a plain object from a Pong message. Also converts values to other types if specified.
993
+ * Creates a plain object from a SleepcastEpisodeCompleted message. Also converts values to other types if specified.
909
994
  * @function toObject
910
- * @memberof Pong
995
+ * @memberof SleepcastEpisodeCompleted
911
996
  * @static
912
- * @param {Pong} message Pong
997
+ * @param {SleepcastEpisodeCompleted} message SleepcastEpisodeCompleted
913
998
  * @param {$protobuf.IConversionOptions} [options] Conversion options
914
999
  * @returns {Object.<string,*>} Plain object
915
1000
  */
916
- Pong.toObject = function toObject(message, options) {
1001
+ SleepcastEpisodeCompleted.toObject = function toObject(message, options) {
917
1002
  if (!options)
918
1003
  options = {};
919
1004
  var object = {};
920
1005
  if (options.defaults) {
921
- object.message = "";
922
1006
  if ($util.Long) {
923
1007
  var long = new $util.Long(0, 0, true);
924
1008
  object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
925
1009
  } else
926
1010
  object.timestamp = options.longs === String ? "0" : 0;
1011
+ object.sleepcastId = 0;
1012
+ object.userId = "";
927
1013
  }
928
- if (message.message != null && message.hasOwnProperty("message"))
929
- object.message = message.message;
930
1014
  if (message.timestamp != null && message.hasOwnProperty("timestamp"))
931
1015
  if (typeof message.timestamp === "number")
932
1016
  object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
933
1017
  else
934
1018
  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;
1019
+ if (message.sleepcastId != null && message.hasOwnProperty("sleepcastId"))
1020
+ object.sleepcastId = message.sleepcastId;
1021
+ if (message.userId != null && message.hasOwnProperty("userId"))
1022
+ object.userId = message.userId;
935
1023
  return object;
936
1024
  };
937
1025
 
938
1026
  /**
939
- * Converts this Pong to JSON.
1027
+ * Converts this SleepcastEpisodeCompleted to JSON.
940
1028
  * @function toJSON
941
- * @memberof Pong
1029
+ * @memberof SleepcastEpisodeCompleted
942
1030
  * @instance
943
1031
  * @returns {Object.<string,*>} JSON object
944
1032
  */
945
- Pong.prototype.toJSON = function toJSON() {
1033
+ SleepcastEpisodeCompleted.prototype.toJSON = function toJSON() {
946
1034
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
947
1035
  };
948
1036
 
949
- return Pong;
950
- })();
951
-
952
- $root.PingPongService = (function() {
953
-
954
- /**
955
- * Constructs a new PingPongService service.
956
- * @exports PingPongService
957
- * @classdesc Represents a PingPongService
958
- * @extends $protobuf.rpc.Service
959
- * @constructor
960
- * @param {$protobuf.RPCImpl} rpcImpl RPC implementation
961
- * @param {boolean} [requestDelimited=false] Whether requests are length-delimited
962
- * @param {boolean} [responseDelimited=false] Whether responses are length-delimited
963
- */
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
-
970
- /**
971
- * Creates new PingPongService service using the specified rpc implementation.
972
- * @function create
973
- * @memberof PingPongService
974
- * @static
975
- * @param {$protobuf.RPCImpl} rpcImpl RPC implementation
976
- * @param {boolean} [requestDelimited=false] Whether requests are length-delimited
977
- * @param {boolean} [responseDelimited=false] Whether responses are length-delimited
978
- * @returns {PingPongService} RPC service. Useful where requests and/or responses are streamed.
979
- */
980
- PingPongService.create = function create(rpcImpl, requestDelimited, responseDelimited) {
981
- return new this(rpcImpl, requestDelimited, responseDelimited);
982
- };
983
-
984
- /**
985
- * Callback as used by {@link PingPongService#ping}.
986
- * @memberof PingPongService
987
- * @typedef pingCallback
988
- * @type {function}
989
- * @param {Error|null} error Error, if any
990
- * @param {Pong} [response] Pong
991
- */
992
-
993
- /**
994
- * Calls ping.
995
- * @function ping
996
- * @memberof PingPongService
997
- * @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
- */
1003
- Object.defineProperty(PingPongService.prototype.ping = function ping(request, callback) {
1004
- return this.rpcCall(ping, $root.Ping, $root.Pong, request, callback);
1005
- }, "name", { value: "ping" });
1006
-
1007
- /**
1008
- * Calls ping.
1009
- * @function ping
1010
- * @memberof PingPongService
1011
- * @instance
1012
- * @param {IPing} request Ping message or plain object
1013
- * @returns {Promise<Pong>} Promise
1014
- * @variation 2
1015
- */
1016
-
1017
- return PingPongService;
1037
+ return SleepcastEpisodeCompleted;
1018
1038
  })();
1019
1039
 
1020
- $root.SubscriptionCreated = (function() {
1040
+ $root.FirstSleepcastPlayDateSet = (function() {
1021
1041
 
1022
1042
  /**
1023
- * Properties of a SubscriptionCreated.
1024
- * @exports ISubscriptionCreated
1025
- * @interface ISubscriptionCreated
1026
- * @property {number|null} [id] SubscriptionCreated id
1027
- * @property {number|Long|null} [updatedOn] SubscriptionCreated updatedOn
1043
+ * Properties of a FirstSleepcastPlayDateSet.
1044
+ * @exports IFirstSleepcastPlayDateSet
1045
+ * @interface IFirstSleepcastPlayDateSet
1046
+ * @property {number|Long|null} [timestamp] FirstSleepcastPlayDateSet timestamp
1047
+ * @property {string|null} [userId] FirstSleepcastPlayDateSet userId
1048
+ * @property {number|Long|null} [firstPlayTimestamp] FirstSleepcastPlayDateSet firstPlayTimestamp
1028
1049
  */
1029
1050
 
1030
1051
  /**
1031
- * Constructs a new SubscriptionCreated.
1032
- * @exports SubscriptionCreated
1033
- * @classdesc Represents a SubscriptionCreated.
1034
- * @implements ISubscriptionCreated
1052
+ * Constructs a new FirstSleepcastPlayDateSet.
1053
+ * @exports FirstSleepcastPlayDateSet
1054
+ * @classdesc Represents a FirstSleepcastPlayDateSet.
1055
+ * @implements IFirstSleepcastPlayDateSet
1035
1056
  * @constructor
1036
- * @param {ISubscriptionCreated=} [properties] Properties to set
1057
+ * @param {IFirstSleepcastPlayDateSet=} [properties] Properties to set
1037
1058
  */
1038
- function SubscriptionCreated(properties) {
1059
+ function FirstSleepcastPlayDateSet(properties) {
1039
1060
  if (properties)
1040
1061
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
1041
1062
  if (properties[keys[i]] != null)
@@ -1043,88 +1064,101 @@ $root.SubscriptionCreated = (function() {
1043
1064
  }
1044
1065
 
1045
1066
  /**
1046
- * SubscriptionCreated id.
1047
- * @member {number} id
1048
- * @memberof SubscriptionCreated
1067
+ * FirstSleepcastPlayDateSet timestamp.
1068
+ * @member {number|Long} timestamp
1069
+ * @memberof FirstSleepcastPlayDateSet
1049
1070
  * @instance
1050
1071
  */
1051
- SubscriptionCreated.prototype.id = 0;
1072
+ FirstSleepcastPlayDateSet.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
1052
1073
 
1053
1074
  /**
1054
- * SubscriptionCreated updatedOn.
1055
- * @member {number|Long} updatedOn
1056
- * @memberof SubscriptionCreated
1075
+ * FirstSleepcastPlayDateSet userId.
1076
+ * @member {string} userId
1077
+ * @memberof FirstSleepcastPlayDateSet
1057
1078
  * @instance
1058
1079
  */
1059
- SubscriptionCreated.prototype.updatedOn = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
1080
+ FirstSleepcastPlayDateSet.prototype.userId = "";
1060
1081
 
1061
1082
  /**
1062
- * Creates a new SubscriptionCreated instance using the specified properties.
1083
+ * FirstSleepcastPlayDateSet firstPlayTimestamp.
1084
+ * @member {number|Long} firstPlayTimestamp
1085
+ * @memberof FirstSleepcastPlayDateSet
1086
+ * @instance
1087
+ */
1088
+ FirstSleepcastPlayDateSet.prototype.firstPlayTimestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
1089
+
1090
+ /**
1091
+ * Creates a new FirstSleepcastPlayDateSet instance using the specified properties.
1063
1092
  * @function create
1064
- * @memberof SubscriptionCreated
1093
+ * @memberof FirstSleepcastPlayDateSet
1065
1094
  * @static
1066
- * @param {ISubscriptionCreated=} [properties] Properties to set
1067
- * @returns {SubscriptionCreated} SubscriptionCreated instance
1095
+ * @param {IFirstSleepcastPlayDateSet=} [properties] Properties to set
1096
+ * @returns {FirstSleepcastPlayDateSet} FirstSleepcastPlayDateSet instance
1068
1097
  */
1069
- SubscriptionCreated.create = function create(properties) {
1070
- return new SubscriptionCreated(properties);
1098
+ FirstSleepcastPlayDateSet.create = function create(properties) {
1099
+ return new FirstSleepcastPlayDateSet(properties);
1071
1100
  };
1072
1101
 
1073
1102
  /**
1074
- * Encodes the specified SubscriptionCreated message. Does not implicitly {@link SubscriptionCreated.verify|verify} messages.
1103
+ * Encodes the specified FirstSleepcastPlayDateSet message. Does not implicitly {@link FirstSleepcastPlayDateSet.verify|verify} messages.
1075
1104
  * @function encode
1076
- * @memberof SubscriptionCreated
1105
+ * @memberof FirstSleepcastPlayDateSet
1077
1106
  * @static
1078
- * @param {ISubscriptionCreated} message SubscriptionCreated message or plain object to encode
1107
+ * @param {IFirstSleepcastPlayDateSet} message FirstSleepcastPlayDateSet message or plain object to encode
1079
1108
  * @param {$protobuf.Writer} [writer] Writer to encode to
1080
1109
  * @returns {$protobuf.Writer} Writer
1081
1110
  */
1082
- SubscriptionCreated.encode = function encode(message, writer) {
1111
+ FirstSleepcastPlayDateSet.encode = function encode(message, writer) {
1083
1112
  if (!writer)
1084
1113
  writer = $Writer.create();
1085
- if (message.id != null && message.hasOwnProperty("id"))
1086
- writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.id);
1087
- if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
1088
- writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.updatedOn);
1114
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
1115
+ writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.timestamp);
1116
+ if (message.userId != null && message.hasOwnProperty("userId"))
1117
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.userId);
1118
+ if (message.firstPlayTimestamp != null && message.hasOwnProperty("firstPlayTimestamp"))
1119
+ writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.firstPlayTimestamp);
1089
1120
  return writer;
1090
1121
  };
1091
1122
 
1092
1123
  /**
1093
- * Encodes the specified SubscriptionCreated message, length delimited. Does not implicitly {@link SubscriptionCreated.verify|verify} messages.
1124
+ * Encodes the specified FirstSleepcastPlayDateSet message, length delimited. Does not implicitly {@link FirstSleepcastPlayDateSet.verify|verify} messages.
1094
1125
  * @function encodeDelimited
1095
- * @memberof SubscriptionCreated
1126
+ * @memberof FirstSleepcastPlayDateSet
1096
1127
  * @static
1097
- * @param {ISubscriptionCreated} message SubscriptionCreated message or plain object to encode
1128
+ * @param {IFirstSleepcastPlayDateSet} message FirstSleepcastPlayDateSet message or plain object to encode
1098
1129
  * @param {$protobuf.Writer} [writer] Writer to encode to
1099
1130
  * @returns {$protobuf.Writer} Writer
1100
1131
  */
1101
- SubscriptionCreated.encodeDelimited = function encodeDelimited(message, writer) {
1132
+ FirstSleepcastPlayDateSet.encodeDelimited = function encodeDelimited(message, writer) {
1102
1133
  return this.encode(message, writer).ldelim();
1103
1134
  };
1104
1135
 
1105
1136
  /**
1106
- * Decodes a SubscriptionCreated message from the specified reader or buffer.
1137
+ * Decodes a FirstSleepcastPlayDateSet message from the specified reader or buffer.
1107
1138
  * @function decode
1108
- * @memberof SubscriptionCreated
1139
+ * @memberof FirstSleepcastPlayDateSet
1109
1140
  * @static
1110
1141
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
1111
1142
  * @param {number} [length] Message length if known beforehand
1112
- * @returns {SubscriptionCreated} SubscriptionCreated
1143
+ * @returns {FirstSleepcastPlayDateSet} FirstSleepcastPlayDateSet
1113
1144
  * @throws {Error} If the payload is not a reader or valid buffer
1114
1145
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
1115
1146
  */
1116
- SubscriptionCreated.decode = function decode(reader, length) {
1147
+ FirstSleepcastPlayDateSet.decode = function decode(reader, length) {
1117
1148
  if (!(reader instanceof $Reader))
1118
1149
  reader = $Reader.create(reader);
1119
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.SubscriptionCreated();
1150
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.FirstSleepcastPlayDateSet();
1120
1151
  while (reader.pos < end) {
1121
1152
  var tag = reader.uint32();
1122
1153
  switch (tag >>> 3) {
1123
1154
  case 1:
1124
- message.id = reader.uint32();
1155
+ message.timestamp = reader.uint64();
1125
1156
  break;
1126
1157
  case 2:
1127
- message.updatedOn = reader.uint64();
1158
+ message.userId = reader.string();
1159
+ break;
1160
+ case 3:
1161
+ message.firstPlayTimestamp = reader.uint64();
1128
1162
  break;
1129
1163
  default:
1130
1164
  reader.skipType(tag & 7);
@@ -1135,131 +1169,154 @@ $root.SubscriptionCreated = (function() {
1135
1169
  };
1136
1170
 
1137
1171
  /**
1138
- * Decodes a SubscriptionCreated message from the specified reader or buffer, length delimited.
1172
+ * Decodes a FirstSleepcastPlayDateSet message from the specified reader or buffer, length delimited.
1139
1173
  * @function decodeDelimited
1140
- * @memberof SubscriptionCreated
1174
+ * @memberof FirstSleepcastPlayDateSet
1141
1175
  * @static
1142
1176
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
1143
- * @returns {SubscriptionCreated} SubscriptionCreated
1177
+ * @returns {FirstSleepcastPlayDateSet} FirstSleepcastPlayDateSet
1144
1178
  * @throws {Error} If the payload is not a reader or valid buffer
1145
1179
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
1146
1180
  */
1147
- SubscriptionCreated.decodeDelimited = function decodeDelimited(reader) {
1181
+ FirstSleepcastPlayDateSet.decodeDelimited = function decodeDelimited(reader) {
1148
1182
  if (!(reader instanceof $Reader))
1149
1183
  reader = new $Reader(reader);
1150
1184
  return this.decode(reader, reader.uint32());
1151
1185
  };
1152
1186
 
1153
1187
  /**
1154
- * Verifies a SubscriptionCreated message.
1188
+ * Verifies a FirstSleepcastPlayDateSet message.
1155
1189
  * @function verify
1156
- * @memberof SubscriptionCreated
1190
+ * @memberof FirstSleepcastPlayDateSet
1157
1191
  * @static
1158
1192
  * @param {Object.<string,*>} message Plain object to verify
1159
1193
  * @returns {string|null} `null` if valid, otherwise the reason why it is not
1160
1194
  */
1161
- SubscriptionCreated.verify = function verify(message) {
1195
+ FirstSleepcastPlayDateSet.verify = function verify(message) {
1162
1196
  if (typeof message !== "object" || message === null)
1163
1197
  return "object expected";
1164
- if (message.id != null && message.hasOwnProperty("id"))
1165
- if (!$util.isInteger(message.id))
1166
- return "id: integer expected";
1167
- if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
1168
- if (!$util.isInteger(message.updatedOn) && !(message.updatedOn && $util.isInteger(message.updatedOn.low) && $util.isInteger(message.updatedOn.high)))
1169
- return "updatedOn: integer|Long expected";
1198
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
1199
+ if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
1200
+ return "timestamp: integer|Long expected";
1201
+ if (message.userId != null && message.hasOwnProperty("userId"))
1202
+ if (!$util.isString(message.userId))
1203
+ return "userId: string expected";
1204
+ if (message.firstPlayTimestamp != null && message.hasOwnProperty("firstPlayTimestamp"))
1205
+ if (!$util.isInteger(message.firstPlayTimestamp) && !(message.firstPlayTimestamp && $util.isInteger(message.firstPlayTimestamp.low) && $util.isInteger(message.firstPlayTimestamp.high)))
1206
+ return "firstPlayTimestamp: integer|Long expected";
1170
1207
  return null;
1171
1208
  };
1172
1209
 
1173
1210
  /**
1174
- * Creates a SubscriptionCreated message from a plain object. Also converts values to their respective internal types.
1211
+ * Creates a FirstSleepcastPlayDateSet message from a plain object. Also converts values to their respective internal types.
1175
1212
  * @function fromObject
1176
- * @memberof SubscriptionCreated
1213
+ * @memberof FirstSleepcastPlayDateSet
1177
1214
  * @static
1178
1215
  * @param {Object.<string,*>} object Plain object
1179
- * @returns {SubscriptionCreated} SubscriptionCreated
1216
+ * @returns {FirstSleepcastPlayDateSet} FirstSleepcastPlayDateSet
1180
1217
  */
1181
- SubscriptionCreated.fromObject = function fromObject(object) {
1182
- if (object instanceof $root.SubscriptionCreated)
1218
+ FirstSleepcastPlayDateSet.fromObject = function fromObject(object) {
1219
+ if (object instanceof $root.FirstSleepcastPlayDateSet)
1183
1220
  return object;
1184
- var message = new $root.SubscriptionCreated();
1185
- if (object.id != null)
1186
- message.id = object.id >>> 0;
1187
- if (object.updatedOn != null)
1221
+ var message = new $root.FirstSleepcastPlayDateSet();
1222
+ if (object.timestamp != null)
1188
1223
  if ($util.Long)
1189
- (message.updatedOn = $util.Long.fromValue(object.updatedOn)).unsigned = true;
1190
- else if (typeof object.updatedOn === "string")
1191
- message.updatedOn = parseInt(object.updatedOn, 10);
1192
- else if (typeof object.updatedOn === "number")
1193
- message.updatedOn = object.updatedOn;
1194
- else if (typeof object.updatedOn === "object")
1195
- message.updatedOn = new $util.LongBits(object.updatedOn.low >>> 0, object.updatedOn.high >>> 0).toNumber(true);
1224
+ (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
1225
+ else if (typeof object.timestamp === "string")
1226
+ message.timestamp = parseInt(object.timestamp, 10);
1227
+ else if (typeof object.timestamp === "number")
1228
+ message.timestamp = object.timestamp;
1229
+ else if (typeof object.timestamp === "object")
1230
+ message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
1231
+ if (object.userId != null)
1232
+ message.userId = String(object.userId);
1233
+ if (object.firstPlayTimestamp != null)
1234
+ if ($util.Long)
1235
+ (message.firstPlayTimestamp = $util.Long.fromValue(object.firstPlayTimestamp)).unsigned = true;
1236
+ else if (typeof object.firstPlayTimestamp === "string")
1237
+ message.firstPlayTimestamp = parseInt(object.firstPlayTimestamp, 10);
1238
+ else if (typeof object.firstPlayTimestamp === "number")
1239
+ message.firstPlayTimestamp = object.firstPlayTimestamp;
1240
+ else if (typeof object.firstPlayTimestamp === "object")
1241
+ message.firstPlayTimestamp = new $util.LongBits(object.firstPlayTimestamp.low >>> 0, object.firstPlayTimestamp.high >>> 0).toNumber(true);
1196
1242
  return message;
1197
1243
  };
1198
1244
 
1199
1245
  /**
1200
- * Creates a plain object from a SubscriptionCreated message. Also converts values to other types if specified.
1246
+ * Creates a plain object from a FirstSleepcastPlayDateSet message. Also converts values to other types if specified.
1201
1247
  * @function toObject
1202
- * @memberof SubscriptionCreated
1248
+ * @memberof FirstSleepcastPlayDateSet
1203
1249
  * @static
1204
- * @param {SubscriptionCreated} message SubscriptionCreated
1250
+ * @param {FirstSleepcastPlayDateSet} message FirstSleepcastPlayDateSet
1205
1251
  * @param {$protobuf.IConversionOptions} [options] Conversion options
1206
1252
  * @returns {Object.<string,*>} Plain object
1207
1253
  */
1208
- SubscriptionCreated.toObject = function toObject(message, options) {
1254
+ FirstSleepcastPlayDateSet.toObject = function toObject(message, options) {
1209
1255
  if (!options)
1210
1256
  options = {};
1211
1257
  var object = {};
1212
1258
  if (options.defaults) {
1213
- object.id = 0;
1214
1259
  if ($util.Long) {
1215
1260
  var long = new $util.Long(0, 0, true);
1216
- object.updatedOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
1261
+ object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
1217
1262
  } else
1218
- object.updatedOn = options.longs === String ? "0" : 0;
1263
+ object.timestamp = options.longs === String ? "0" : 0;
1264
+ object.userId = "";
1265
+ if ($util.Long) {
1266
+ var long = new $util.Long(0, 0, true);
1267
+ object.firstPlayTimestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
1268
+ } else
1269
+ object.firstPlayTimestamp = options.longs === String ? "0" : 0;
1219
1270
  }
1220
- if (message.id != null && message.hasOwnProperty("id"))
1221
- object.id = message.id;
1222
- if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
1223
- if (typeof message.updatedOn === "number")
1224
- object.updatedOn = options.longs === String ? String(message.updatedOn) : message.updatedOn;
1271
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
1272
+ if (typeof message.timestamp === "number")
1273
+ object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
1225
1274
  else
1226
- 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;
1275
+ 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;
1276
+ if (message.userId != null && message.hasOwnProperty("userId"))
1277
+ object.userId = message.userId;
1278
+ if (message.firstPlayTimestamp != null && message.hasOwnProperty("firstPlayTimestamp"))
1279
+ if (typeof message.firstPlayTimestamp === "number")
1280
+ object.firstPlayTimestamp = options.longs === String ? String(message.firstPlayTimestamp) : message.firstPlayTimestamp;
1281
+ else
1282
+ 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;
1227
1283
  return object;
1228
1284
  };
1229
1285
 
1230
1286
  /**
1231
- * Converts this SubscriptionCreated to JSON.
1287
+ * Converts this FirstSleepcastPlayDateSet to JSON.
1232
1288
  * @function toJSON
1233
- * @memberof SubscriptionCreated
1289
+ * @memberof FirstSleepcastPlayDateSet
1234
1290
  * @instance
1235
1291
  * @returns {Object.<string,*>} JSON object
1236
1292
  */
1237
- SubscriptionCreated.prototype.toJSON = function toJSON() {
1293
+ FirstSleepcastPlayDateSet.prototype.toJSON = function toJSON() {
1238
1294
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
1239
1295
  };
1240
1296
 
1241
- return SubscriptionCreated;
1297
+ return FirstSleepcastPlayDateSet;
1242
1298
  })();
1243
1299
 
1244
- $root.SubscriptionCancelled = (function() {
1300
+ $root.NumSleepcastPlaysSet = (function() {
1245
1301
 
1246
1302
  /**
1247
- * Properties of a SubscriptionCancelled.
1248
- * @exports ISubscriptionCancelled
1249
- * @interface ISubscriptionCancelled
1250
- * @property {number|null} [id] SubscriptionCancelled id
1251
- * @property {number|Long|null} [updatedOn] SubscriptionCancelled updatedOn
1303
+ * Properties of a NumSleepcastPlaysSet.
1304
+ * @exports INumSleepcastPlaysSet
1305
+ * @interface INumSleepcastPlaysSet
1306
+ * @property {number|Long|null} [timestamp] NumSleepcastPlaysSet timestamp
1307
+ * @property {string|null} [userId] NumSleepcastPlaysSet userId
1308
+ * @property {number|null} [numPlays] NumSleepcastPlaysSet numPlays
1252
1309
  */
1253
1310
 
1254
1311
  /**
1255
- * Constructs a new SubscriptionCancelled.
1256
- * @exports SubscriptionCancelled
1257
- * @classdesc Represents a SubscriptionCancelled.
1258
- * @implements ISubscriptionCancelled
1312
+ * Constructs a new NumSleepcastPlaysSet.
1313
+ * @exports NumSleepcastPlaysSet
1314
+ * @classdesc Represents a NumSleepcastPlaysSet.
1315
+ * @implements INumSleepcastPlaysSet
1259
1316
  * @constructor
1260
- * @param {ISubscriptionCancelled=} [properties] Properties to set
1317
+ * @param {INumSleepcastPlaysSet=} [properties] Properties to set
1261
1318
  */
1262
- function SubscriptionCancelled(properties) {
1319
+ function NumSleepcastPlaysSet(properties) {
1263
1320
  if (properties)
1264
1321
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
1265
1322
  if (properties[keys[i]] != null)
@@ -1267,80 +1324,828 @@ $root.SubscriptionCancelled = (function() {
1267
1324
  }
1268
1325
 
1269
1326
  /**
1270
- * SubscriptionCancelled id.
1271
- * @member {number} id
1272
- * @memberof SubscriptionCancelled
1327
+ * NumSleepcastPlaysSet timestamp.
1328
+ * @member {number|Long} timestamp
1329
+ * @memberof NumSleepcastPlaysSet
1273
1330
  * @instance
1274
1331
  */
1275
- SubscriptionCancelled.prototype.id = 0;
1332
+ NumSleepcastPlaysSet.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
1276
1333
 
1277
1334
  /**
1278
- * SubscriptionCancelled updatedOn.
1279
- * @member {number|Long} updatedOn
1280
- * @memberof SubscriptionCancelled
1335
+ * NumSleepcastPlaysSet userId.
1336
+ * @member {string} userId
1337
+ * @memberof NumSleepcastPlaysSet
1281
1338
  * @instance
1282
1339
  */
1283
- SubscriptionCancelled.prototype.updatedOn = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
1340
+ NumSleepcastPlaysSet.prototype.userId = "";
1284
1341
 
1285
1342
  /**
1286
- * Creates a new SubscriptionCancelled instance using the specified properties.
1343
+ * NumSleepcastPlaysSet numPlays.
1344
+ * @member {number} numPlays
1345
+ * @memberof NumSleepcastPlaysSet
1346
+ * @instance
1347
+ */
1348
+ NumSleepcastPlaysSet.prototype.numPlays = 0;
1349
+
1350
+ /**
1351
+ * Creates a new NumSleepcastPlaysSet instance using the specified properties.
1287
1352
  * @function create
1288
- * @memberof SubscriptionCancelled
1353
+ * @memberof NumSleepcastPlaysSet
1289
1354
  * @static
1290
- * @param {ISubscriptionCancelled=} [properties] Properties to set
1291
- * @returns {SubscriptionCancelled} SubscriptionCancelled instance
1355
+ * @param {INumSleepcastPlaysSet=} [properties] Properties to set
1356
+ * @returns {NumSleepcastPlaysSet} NumSleepcastPlaysSet instance
1292
1357
  */
1293
- SubscriptionCancelled.create = function create(properties) {
1294
- return new SubscriptionCancelled(properties);
1358
+ NumSleepcastPlaysSet.create = function create(properties) {
1359
+ return new NumSleepcastPlaysSet(properties);
1295
1360
  };
1296
1361
 
1297
1362
  /**
1298
- * Encodes the specified SubscriptionCancelled message. Does not implicitly {@link SubscriptionCancelled.verify|verify} messages.
1363
+ * Encodes the specified NumSleepcastPlaysSet message. Does not implicitly {@link NumSleepcastPlaysSet.verify|verify} messages.
1299
1364
  * @function encode
1300
- * @memberof SubscriptionCancelled
1365
+ * @memberof NumSleepcastPlaysSet
1301
1366
  * @static
1302
- * @param {ISubscriptionCancelled} message SubscriptionCancelled message or plain object to encode
1367
+ * @param {INumSleepcastPlaysSet} message NumSleepcastPlaysSet message or plain object to encode
1303
1368
  * @param {$protobuf.Writer} [writer] Writer to encode to
1304
1369
  * @returns {$protobuf.Writer} Writer
1305
1370
  */
1306
- SubscriptionCancelled.encode = function encode(message, writer) {
1371
+ NumSleepcastPlaysSet.encode = function encode(message, writer) {
1307
1372
  if (!writer)
1308
1373
  writer = $Writer.create();
1309
- if (message.id != null && message.hasOwnProperty("id"))
1310
- writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.id);
1311
- if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
1312
- writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.updatedOn);
1374
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
1375
+ writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.timestamp);
1376
+ if (message.userId != null && message.hasOwnProperty("userId"))
1377
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.userId);
1378
+ if (message.numPlays != null && message.hasOwnProperty("numPlays"))
1379
+ writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.numPlays);
1313
1380
  return writer;
1314
1381
  };
1315
1382
 
1316
1383
  /**
1317
- * Encodes the specified SubscriptionCancelled message, length delimited. Does not implicitly {@link SubscriptionCancelled.verify|verify} messages.
1384
+ * Encodes the specified NumSleepcastPlaysSet message, length delimited. Does not implicitly {@link NumSleepcastPlaysSet.verify|verify} messages.
1318
1385
  * @function encodeDelimited
1386
+ * @memberof NumSleepcastPlaysSet
1387
+ * @static
1388
+ * @param {INumSleepcastPlaysSet} message NumSleepcastPlaysSet message or plain object to encode
1389
+ * @param {$protobuf.Writer} [writer] Writer to encode to
1390
+ * @returns {$protobuf.Writer} Writer
1391
+ */
1392
+ NumSleepcastPlaysSet.encodeDelimited = function encodeDelimited(message, writer) {
1393
+ return this.encode(message, writer).ldelim();
1394
+ };
1395
+
1396
+ /**
1397
+ * Decodes a NumSleepcastPlaysSet message from the specified reader or buffer.
1398
+ * @function decode
1399
+ * @memberof NumSleepcastPlaysSet
1400
+ * @static
1401
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
1402
+ * @param {number} [length] Message length if known beforehand
1403
+ * @returns {NumSleepcastPlaysSet} NumSleepcastPlaysSet
1404
+ * @throws {Error} If the payload is not a reader or valid buffer
1405
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1406
+ */
1407
+ NumSleepcastPlaysSet.decode = function decode(reader, length) {
1408
+ if (!(reader instanceof $Reader))
1409
+ reader = $Reader.create(reader);
1410
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.NumSleepcastPlaysSet();
1411
+ while (reader.pos < end) {
1412
+ var tag = reader.uint32();
1413
+ switch (tag >>> 3) {
1414
+ case 1:
1415
+ message.timestamp = reader.uint64();
1416
+ break;
1417
+ case 2:
1418
+ message.userId = reader.string();
1419
+ break;
1420
+ case 3:
1421
+ message.numPlays = reader.uint32();
1422
+ break;
1423
+ default:
1424
+ reader.skipType(tag & 7);
1425
+ break;
1426
+ }
1427
+ }
1428
+ return message;
1429
+ };
1430
+
1431
+ /**
1432
+ * Decodes a NumSleepcastPlaysSet message from the specified reader or buffer, length delimited.
1433
+ * @function decodeDelimited
1434
+ * @memberof NumSleepcastPlaysSet
1435
+ * @static
1436
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
1437
+ * @returns {NumSleepcastPlaysSet} NumSleepcastPlaysSet
1438
+ * @throws {Error} If the payload is not a reader or valid buffer
1439
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1440
+ */
1441
+ NumSleepcastPlaysSet.decodeDelimited = function decodeDelimited(reader) {
1442
+ if (!(reader instanceof $Reader))
1443
+ reader = new $Reader(reader);
1444
+ return this.decode(reader, reader.uint32());
1445
+ };
1446
+
1447
+ /**
1448
+ * Verifies a NumSleepcastPlaysSet message.
1449
+ * @function verify
1450
+ * @memberof NumSleepcastPlaysSet
1451
+ * @static
1452
+ * @param {Object.<string,*>} message Plain object to verify
1453
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
1454
+ */
1455
+ NumSleepcastPlaysSet.verify = function verify(message) {
1456
+ if (typeof message !== "object" || message === null)
1457
+ return "object expected";
1458
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
1459
+ if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
1460
+ return "timestamp: integer|Long expected";
1461
+ if (message.userId != null && message.hasOwnProperty("userId"))
1462
+ if (!$util.isString(message.userId))
1463
+ return "userId: string expected";
1464
+ if (message.numPlays != null && message.hasOwnProperty("numPlays"))
1465
+ if (!$util.isInteger(message.numPlays))
1466
+ return "numPlays: integer expected";
1467
+ return null;
1468
+ };
1469
+
1470
+ /**
1471
+ * Creates a NumSleepcastPlaysSet message from a plain object. Also converts values to their respective internal types.
1472
+ * @function fromObject
1473
+ * @memberof NumSleepcastPlaysSet
1474
+ * @static
1475
+ * @param {Object.<string,*>} object Plain object
1476
+ * @returns {NumSleepcastPlaysSet} NumSleepcastPlaysSet
1477
+ */
1478
+ NumSleepcastPlaysSet.fromObject = function fromObject(object) {
1479
+ if (object instanceof $root.NumSleepcastPlaysSet)
1480
+ return object;
1481
+ var message = new $root.NumSleepcastPlaysSet();
1482
+ if (object.timestamp != null)
1483
+ if ($util.Long)
1484
+ (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
1485
+ else if (typeof object.timestamp === "string")
1486
+ message.timestamp = parseInt(object.timestamp, 10);
1487
+ else if (typeof object.timestamp === "number")
1488
+ message.timestamp = object.timestamp;
1489
+ else if (typeof object.timestamp === "object")
1490
+ message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
1491
+ if (object.userId != null)
1492
+ message.userId = String(object.userId);
1493
+ if (object.numPlays != null)
1494
+ message.numPlays = object.numPlays >>> 0;
1495
+ return message;
1496
+ };
1497
+
1498
+ /**
1499
+ * Creates a plain object from a NumSleepcastPlaysSet message. Also converts values to other types if specified.
1500
+ * @function toObject
1501
+ * @memberof NumSleepcastPlaysSet
1502
+ * @static
1503
+ * @param {NumSleepcastPlaysSet} message NumSleepcastPlaysSet
1504
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
1505
+ * @returns {Object.<string,*>} Plain object
1506
+ */
1507
+ NumSleepcastPlaysSet.toObject = function toObject(message, options) {
1508
+ if (!options)
1509
+ options = {};
1510
+ var object = {};
1511
+ if (options.defaults) {
1512
+ if ($util.Long) {
1513
+ var long = new $util.Long(0, 0, true);
1514
+ object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
1515
+ } else
1516
+ object.timestamp = options.longs === String ? "0" : 0;
1517
+ object.userId = "";
1518
+ object.numPlays = 0;
1519
+ }
1520
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
1521
+ if (typeof message.timestamp === "number")
1522
+ object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
1523
+ else
1524
+ 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;
1525
+ if (message.userId != null && message.hasOwnProperty("userId"))
1526
+ object.userId = message.userId;
1527
+ if (message.numPlays != null && message.hasOwnProperty("numPlays"))
1528
+ object.numPlays = message.numPlays;
1529
+ return object;
1530
+ };
1531
+
1532
+ /**
1533
+ * Converts this NumSleepcastPlaysSet to JSON.
1534
+ * @function toJSON
1535
+ * @memberof NumSleepcastPlaysSet
1536
+ * @instance
1537
+ * @returns {Object.<string,*>} JSON object
1538
+ */
1539
+ NumSleepcastPlaysSet.prototype.toJSON = function toJSON() {
1540
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
1541
+ };
1542
+
1543
+ return NumSleepcastPlaysSet;
1544
+ })();
1545
+
1546
+ $root.SubscriptionCreated = (function() {
1547
+
1548
+ /**
1549
+ * Properties of a SubscriptionCreated.
1550
+ * @exports ISubscriptionCreated
1551
+ * @interface ISubscriptionCreated
1552
+ * @property {number|null} [id] SubscriptionCreated id
1553
+ * @property {number|Long|null} [updatedOn] SubscriptionCreated updatedOn
1554
+ * @property {string|null} [userId] SubscriptionCreated userId
1555
+ */
1556
+
1557
+ /**
1558
+ * Constructs a new SubscriptionCreated.
1559
+ * @exports SubscriptionCreated
1560
+ * @classdesc Represents a SubscriptionCreated.
1561
+ * @implements ISubscriptionCreated
1562
+ * @constructor
1563
+ * @param {ISubscriptionCreated=} [properties] Properties to set
1564
+ */
1565
+ function SubscriptionCreated(properties) {
1566
+ if (properties)
1567
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
1568
+ if (properties[keys[i]] != null)
1569
+ this[keys[i]] = properties[keys[i]];
1570
+ }
1571
+
1572
+ /**
1573
+ * SubscriptionCreated id.
1574
+ * @member {number} id
1575
+ * @memberof SubscriptionCreated
1576
+ * @instance
1577
+ */
1578
+ SubscriptionCreated.prototype.id = 0;
1579
+
1580
+ /**
1581
+ * SubscriptionCreated updatedOn.
1582
+ * @member {number|Long} updatedOn
1583
+ * @memberof SubscriptionCreated
1584
+ * @instance
1585
+ */
1586
+ SubscriptionCreated.prototype.updatedOn = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
1587
+
1588
+ /**
1589
+ * SubscriptionCreated userId.
1590
+ * @member {string} userId
1591
+ * @memberof SubscriptionCreated
1592
+ * @instance
1593
+ */
1594
+ SubscriptionCreated.prototype.userId = "";
1595
+
1596
+ /**
1597
+ * Creates a new SubscriptionCreated instance using the specified properties.
1598
+ * @function create
1599
+ * @memberof SubscriptionCreated
1600
+ * @static
1601
+ * @param {ISubscriptionCreated=} [properties] Properties to set
1602
+ * @returns {SubscriptionCreated} SubscriptionCreated instance
1603
+ */
1604
+ SubscriptionCreated.create = function create(properties) {
1605
+ return new SubscriptionCreated(properties);
1606
+ };
1607
+
1608
+ /**
1609
+ * Encodes the specified SubscriptionCreated message. Does not implicitly {@link SubscriptionCreated.verify|verify} messages.
1610
+ * @function encode
1611
+ * @memberof SubscriptionCreated
1612
+ * @static
1613
+ * @param {ISubscriptionCreated} message SubscriptionCreated message or plain object to encode
1614
+ * @param {$protobuf.Writer} [writer] Writer to encode to
1615
+ * @returns {$protobuf.Writer} Writer
1616
+ */
1617
+ SubscriptionCreated.encode = function encode(message, writer) {
1618
+ if (!writer)
1619
+ writer = $Writer.create();
1620
+ if (message.id != null && message.hasOwnProperty("id"))
1621
+ writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.id);
1622
+ if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
1623
+ writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.updatedOn);
1624
+ if (message.userId != null && message.hasOwnProperty("userId"))
1625
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.userId);
1626
+ return writer;
1627
+ };
1628
+
1629
+ /**
1630
+ * Encodes the specified SubscriptionCreated message, length delimited. Does not implicitly {@link SubscriptionCreated.verify|verify} messages.
1631
+ * @function encodeDelimited
1632
+ * @memberof SubscriptionCreated
1633
+ * @static
1634
+ * @param {ISubscriptionCreated} message SubscriptionCreated message or plain object to encode
1635
+ * @param {$protobuf.Writer} [writer] Writer to encode to
1636
+ * @returns {$protobuf.Writer} Writer
1637
+ */
1638
+ SubscriptionCreated.encodeDelimited = function encodeDelimited(message, writer) {
1639
+ return this.encode(message, writer).ldelim();
1640
+ };
1641
+
1642
+ /**
1643
+ * Decodes a SubscriptionCreated message from the specified reader or buffer.
1644
+ * @function decode
1645
+ * @memberof SubscriptionCreated
1646
+ * @static
1647
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
1648
+ * @param {number} [length] Message length if known beforehand
1649
+ * @returns {SubscriptionCreated} SubscriptionCreated
1650
+ * @throws {Error} If the payload is not a reader or valid buffer
1651
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1652
+ */
1653
+ SubscriptionCreated.decode = function decode(reader, length) {
1654
+ if (!(reader instanceof $Reader))
1655
+ reader = $Reader.create(reader);
1656
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.SubscriptionCreated();
1657
+ while (reader.pos < end) {
1658
+ var tag = reader.uint32();
1659
+ switch (tag >>> 3) {
1660
+ case 1:
1661
+ message.id = reader.uint32();
1662
+ break;
1663
+ case 2:
1664
+ message.updatedOn = reader.uint64();
1665
+ break;
1666
+ case 3:
1667
+ message.userId = reader.string();
1668
+ break;
1669
+ default:
1670
+ reader.skipType(tag & 7);
1671
+ break;
1672
+ }
1673
+ }
1674
+ return message;
1675
+ };
1676
+
1677
+ /**
1678
+ * Decodes a SubscriptionCreated message from the specified reader or buffer, length delimited.
1679
+ * @function decodeDelimited
1680
+ * @memberof SubscriptionCreated
1681
+ * @static
1682
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
1683
+ * @returns {SubscriptionCreated} SubscriptionCreated
1684
+ * @throws {Error} If the payload is not a reader or valid buffer
1685
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1686
+ */
1687
+ SubscriptionCreated.decodeDelimited = function decodeDelimited(reader) {
1688
+ if (!(reader instanceof $Reader))
1689
+ reader = new $Reader(reader);
1690
+ return this.decode(reader, reader.uint32());
1691
+ };
1692
+
1693
+ /**
1694
+ * Verifies a SubscriptionCreated message.
1695
+ * @function verify
1696
+ * @memberof SubscriptionCreated
1697
+ * @static
1698
+ * @param {Object.<string,*>} message Plain object to verify
1699
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
1700
+ */
1701
+ SubscriptionCreated.verify = function verify(message) {
1702
+ if (typeof message !== "object" || message === null)
1703
+ return "object expected";
1704
+ if (message.id != null && message.hasOwnProperty("id"))
1705
+ if (!$util.isInteger(message.id))
1706
+ return "id: integer expected";
1707
+ if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
1708
+ if (!$util.isInteger(message.updatedOn) && !(message.updatedOn && $util.isInteger(message.updatedOn.low) && $util.isInteger(message.updatedOn.high)))
1709
+ return "updatedOn: integer|Long expected";
1710
+ if (message.userId != null && message.hasOwnProperty("userId"))
1711
+ if (!$util.isString(message.userId))
1712
+ return "userId: string expected";
1713
+ return null;
1714
+ };
1715
+
1716
+ /**
1717
+ * Creates a SubscriptionCreated message from a plain object. Also converts values to their respective internal types.
1718
+ * @function fromObject
1719
+ * @memberof SubscriptionCreated
1720
+ * @static
1721
+ * @param {Object.<string,*>} object Plain object
1722
+ * @returns {SubscriptionCreated} SubscriptionCreated
1723
+ */
1724
+ SubscriptionCreated.fromObject = function fromObject(object) {
1725
+ if (object instanceof $root.SubscriptionCreated)
1726
+ return object;
1727
+ var message = new $root.SubscriptionCreated();
1728
+ if (object.id != null)
1729
+ message.id = object.id >>> 0;
1730
+ if (object.updatedOn != null)
1731
+ if ($util.Long)
1732
+ (message.updatedOn = $util.Long.fromValue(object.updatedOn)).unsigned = true;
1733
+ else if (typeof object.updatedOn === "string")
1734
+ message.updatedOn = parseInt(object.updatedOn, 10);
1735
+ else if (typeof object.updatedOn === "number")
1736
+ message.updatedOn = object.updatedOn;
1737
+ else if (typeof object.updatedOn === "object")
1738
+ message.updatedOn = new $util.LongBits(object.updatedOn.low >>> 0, object.updatedOn.high >>> 0).toNumber(true);
1739
+ if (object.userId != null)
1740
+ message.userId = String(object.userId);
1741
+ return message;
1742
+ };
1743
+
1744
+ /**
1745
+ * Creates a plain object from a SubscriptionCreated message. Also converts values to other types if specified.
1746
+ * @function toObject
1747
+ * @memberof SubscriptionCreated
1748
+ * @static
1749
+ * @param {SubscriptionCreated} message SubscriptionCreated
1750
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
1751
+ * @returns {Object.<string,*>} Plain object
1752
+ */
1753
+ SubscriptionCreated.toObject = function toObject(message, options) {
1754
+ if (!options)
1755
+ options = {};
1756
+ var object = {};
1757
+ if (options.defaults) {
1758
+ object.id = 0;
1759
+ if ($util.Long) {
1760
+ var long = new $util.Long(0, 0, true);
1761
+ object.updatedOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
1762
+ } else
1763
+ object.updatedOn = options.longs === String ? "0" : 0;
1764
+ object.userId = "";
1765
+ }
1766
+ if (message.id != null && message.hasOwnProperty("id"))
1767
+ object.id = message.id;
1768
+ if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
1769
+ if (typeof message.updatedOn === "number")
1770
+ object.updatedOn = options.longs === String ? String(message.updatedOn) : message.updatedOn;
1771
+ else
1772
+ 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;
1773
+ if (message.userId != null && message.hasOwnProperty("userId"))
1774
+ object.userId = message.userId;
1775
+ return object;
1776
+ };
1777
+
1778
+ /**
1779
+ * Converts this SubscriptionCreated to JSON.
1780
+ * @function toJSON
1781
+ * @memberof SubscriptionCreated
1782
+ * @instance
1783
+ * @returns {Object.<string,*>} JSON object
1784
+ */
1785
+ SubscriptionCreated.prototype.toJSON = function toJSON() {
1786
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
1787
+ };
1788
+
1789
+ return SubscriptionCreated;
1790
+ })();
1791
+
1792
+ $root.SubscriptionCancelled = (function() {
1793
+
1794
+ /**
1795
+ * Properties of a SubscriptionCancelled.
1796
+ * @exports ISubscriptionCancelled
1797
+ * @interface ISubscriptionCancelled
1798
+ * @property {number|null} [id] SubscriptionCancelled id
1799
+ * @property {number|Long|null} [updatedOn] SubscriptionCancelled updatedOn
1800
+ * @property {string|null} [userId] SubscriptionCancelled userId
1801
+ */
1802
+
1803
+ /**
1804
+ * Constructs a new SubscriptionCancelled.
1805
+ * @exports SubscriptionCancelled
1806
+ * @classdesc Represents a SubscriptionCancelled.
1807
+ * @implements ISubscriptionCancelled
1808
+ * @constructor
1809
+ * @param {ISubscriptionCancelled=} [properties] Properties to set
1810
+ */
1811
+ function SubscriptionCancelled(properties) {
1812
+ if (properties)
1813
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
1814
+ if (properties[keys[i]] != null)
1815
+ this[keys[i]] = properties[keys[i]];
1816
+ }
1817
+
1818
+ /**
1819
+ * SubscriptionCancelled id.
1820
+ * @member {number} id
1821
+ * @memberof SubscriptionCancelled
1822
+ * @instance
1823
+ */
1824
+ SubscriptionCancelled.prototype.id = 0;
1825
+
1826
+ /**
1827
+ * SubscriptionCancelled updatedOn.
1828
+ * @member {number|Long} updatedOn
1829
+ * @memberof SubscriptionCancelled
1830
+ * @instance
1831
+ */
1832
+ SubscriptionCancelled.prototype.updatedOn = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
1833
+
1834
+ /**
1835
+ * SubscriptionCancelled userId.
1836
+ * @member {string} userId
1837
+ * @memberof SubscriptionCancelled
1838
+ * @instance
1839
+ */
1840
+ SubscriptionCancelled.prototype.userId = "";
1841
+
1842
+ /**
1843
+ * Creates a new SubscriptionCancelled instance using the specified properties.
1844
+ * @function create
1845
+ * @memberof SubscriptionCancelled
1846
+ * @static
1847
+ * @param {ISubscriptionCancelled=} [properties] Properties to set
1848
+ * @returns {SubscriptionCancelled} SubscriptionCancelled instance
1849
+ */
1850
+ SubscriptionCancelled.create = function create(properties) {
1851
+ return new SubscriptionCancelled(properties);
1852
+ };
1853
+
1854
+ /**
1855
+ * Encodes the specified SubscriptionCancelled message. Does not implicitly {@link SubscriptionCancelled.verify|verify} messages.
1856
+ * @function encode
1857
+ * @memberof SubscriptionCancelled
1858
+ * @static
1859
+ * @param {ISubscriptionCancelled} message SubscriptionCancelled message or plain object to encode
1860
+ * @param {$protobuf.Writer} [writer] Writer to encode to
1861
+ * @returns {$protobuf.Writer} Writer
1862
+ */
1863
+ SubscriptionCancelled.encode = function encode(message, writer) {
1864
+ if (!writer)
1865
+ writer = $Writer.create();
1866
+ if (message.id != null && message.hasOwnProperty("id"))
1867
+ writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.id);
1868
+ if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
1869
+ writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.updatedOn);
1870
+ if (message.userId != null && message.hasOwnProperty("userId"))
1871
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.userId);
1872
+ return writer;
1873
+ };
1874
+
1875
+ /**
1876
+ * Encodes the specified SubscriptionCancelled message, length delimited. Does not implicitly {@link SubscriptionCancelled.verify|verify} messages.
1877
+ * @function encodeDelimited
1878
+ * @memberof SubscriptionCancelled
1879
+ * @static
1880
+ * @param {ISubscriptionCancelled} message SubscriptionCancelled message or plain object to encode
1881
+ * @param {$protobuf.Writer} [writer] Writer to encode to
1882
+ * @returns {$protobuf.Writer} Writer
1883
+ */
1884
+ SubscriptionCancelled.encodeDelimited = function encodeDelimited(message, writer) {
1885
+ return this.encode(message, writer).ldelim();
1886
+ };
1887
+
1888
+ /**
1889
+ * Decodes a SubscriptionCancelled message from the specified reader or buffer.
1890
+ * @function decode
1891
+ * @memberof SubscriptionCancelled
1892
+ * @static
1893
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
1894
+ * @param {number} [length] Message length if known beforehand
1895
+ * @returns {SubscriptionCancelled} SubscriptionCancelled
1896
+ * @throws {Error} If the payload is not a reader or valid buffer
1897
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1898
+ */
1899
+ SubscriptionCancelled.decode = function decode(reader, length) {
1900
+ if (!(reader instanceof $Reader))
1901
+ reader = $Reader.create(reader);
1902
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.SubscriptionCancelled();
1903
+ while (reader.pos < end) {
1904
+ var tag = reader.uint32();
1905
+ switch (tag >>> 3) {
1906
+ case 1:
1907
+ message.id = reader.uint32();
1908
+ break;
1909
+ case 2:
1910
+ message.updatedOn = reader.uint64();
1911
+ break;
1912
+ case 3:
1913
+ message.userId = reader.string();
1914
+ break;
1915
+ default:
1916
+ reader.skipType(tag & 7);
1917
+ break;
1918
+ }
1919
+ }
1920
+ return message;
1921
+ };
1922
+
1923
+ /**
1924
+ * Decodes a SubscriptionCancelled message from the specified reader or buffer, length delimited.
1925
+ * @function decodeDelimited
1926
+ * @memberof SubscriptionCancelled
1927
+ * @static
1928
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
1929
+ * @returns {SubscriptionCancelled} SubscriptionCancelled
1930
+ * @throws {Error} If the payload is not a reader or valid buffer
1931
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
1932
+ */
1933
+ SubscriptionCancelled.decodeDelimited = function decodeDelimited(reader) {
1934
+ if (!(reader instanceof $Reader))
1935
+ reader = new $Reader(reader);
1936
+ return this.decode(reader, reader.uint32());
1937
+ };
1938
+
1939
+ /**
1940
+ * Verifies a SubscriptionCancelled message.
1941
+ * @function verify
1942
+ * @memberof SubscriptionCancelled
1943
+ * @static
1944
+ * @param {Object.<string,*>} message Plain object to verify
1945
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
1946
+ */
1947
+ SubscriptionCancelled.verify = function verify(message) {
1948
+ if (typeof message !== "object" || message === null)
1949
+ return "object expected";
1950
+ if (message.id != null && message.hasOwnProperty("id"))
1951
+ if (!$util.isInteger(message.id))
1952
+ return "id: integer expected";
1953
+ if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
1954
+ if (!$util.isInteger(message.updatedOn) && !(message.updatedOn && $util.isInteger(message.updatedOn.low) && $util.isInteger(message.updatedOn.high)))
1955
+ return "updatedOn: integer|Long expected";
1956
+ if (message.userId != null && message.hasOwnProperty("userId"))
1957
+ if (!$util.isString(message.userId))
1958
+ return "userId: string expected";
1959
+ return null;
1960
+ };
1961
+
1962
+ /**
1963
+ * Creates a SubscriptionCancelled message from a plain object. Also converts values to their respective internal types.
1964
+ * @function fromObject
1965
+ * @memberof SubscriptionCancelled
1966
+ * @static
1967
+ * @param {Object.<string,*>} object Plain object
1968
+ * @returns {SubscriptionCancelled} SubscriptionCancelled
1969
+ */
1970
+ SubscriptionCancelled.fromObject = function fromObject(object) {
1971
+ if (object instanceof $root.SubscriptionCancelled)
1972
+ return object;
1973
+ var message = new $root.SubscriptionCancelled();
1974
+ if (object.id != null)
1975
+ message.id = object.id >>> 0;
1976
+ if (object.updatedOn != null)
1977
+ if ($util.Long)
1978
+ (message.updatedOn = $util.Long.fromValue(object.updatedOn)).unsigned = true;
1979
+ else if (typeof object.updatedOn === "string")
1980
+ message.updatedOn = parseInt(object.updatedOn, 10);
1981
+ else if (typeof object.updatedOn === "number")
1982
+ message.updatedOn = object.updatedOn;
1983
+ else if (typeof object.updatedOn === "object")
1984
+ message.updatedOn = new $util.LongBits(object.updatedOn.low >>> 0, object.updatedOn.high >>> 0).toNumber(true);
1985
+ if (object.userId != null)
1986
+ message.userId = String(object.userId);
1987
+ return message;
1988
+ };
1989
+
1990
+ /**
1991
+ * Creates a plain object from a SubscriptionCancelled message. Also converts values to other types if specified.
1992
+ * @function toObject
1993
+ * @memberof SubscriptionCancelled
1994
+ * @static
1995
+ * @param {SubscriptionCancelled} message SubscriptionCancelled
1996
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
1997
+ * @returns {Object.<string,*>} Plain object
1998
+ */
1999
+ SubscriptionCancelled.toObject = function toObject(message, options) {
2000
+ if (!options)
2001
+ options = {};
2002
+ var object = {};
2003
+ if (options.defaults) {
2004
+ object.id = 0;
2005
+ if ($util.Long) {
2006
+ var long = new $util.Long(0, 0, true);
2007
+ object.updatedOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
2008
+ } else
2009
+ object.updatedOn = options.longs === String ? "0" : 0;
2010
+ object.userId = "";
2011
+ }
2012
+ if (message.id != null && message.hasOwnProperty("id"))
2013
+ object.id = message.id;
2014
+ if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
2015
+ if (typeof message.updatedOn === "number")
2016
+ object.updatedOn = options.longs === String ? String(message.updatedOn) : message.updatedOn;
2017
+ else
2018
+ 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;
2019
+ if (message.userId != null && message.hasOwnProperty("userId"))
2020
+ object.userId = message.userId;
2021
+ return object;
2022
+ };
2023
+
2024
+ /**
2025
+ * Converts this SubscriptionCancelled to JSON.
2026
+ * @function toJSON
1319
2027
  * @memberof SubscriptionCancelled
2028
+ * @instance
2029
+ * @returns {Object.<string,*>} JSON object
2030
+ */
2031
+ SubscriptionCancelled.prototype.toJSON = function toJSON() {
2032
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
2033
+ };
2034
+
2035
+ return SubscriptionCancelled;
2036
+ })();
2037
+
2038
+ $root.SubscriptionRenewed = (function() {
2039
+
2040
+ /**
2041
+ * Properties of a SubscriptionRenewed.
2042
+ * @exports ISubscriptionRenewed
2043
+ * @interface ISubscriptionRenewed
2044
+ * @property {number|null} [id] SubscriptionRenewed id
2045
+ * @property {number|Long|null} [updatedOn] SubscriptionRenewed updatedOn
2046
+ * @property {string|null} [userId] SubscriptionRenewed userId
2047
+ */
2048
+
2049
+ /**
2050
+ * Constructs a new SubscriptionRenewed.
2051
+ * @exports SubscriptionRenewed
2052
+ * @classdesc Represents a SubscriptionRenewed.
2053
+ * @implements ISubscriptionRenewed
2054
+ * @constructor
2055
+ * @param {ISubscriptionRenewed=} [properties] Properties to set
2056
+ */
2057
+ function SubscriptionRenewed(properties) {
2058
+ if (properties)
2059
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
2060
+ if (properties[keys[i]] != null)
2061
+ this[keys[i]] = properties[keys[i]];
2062
+ }
2063
+
2064
+ /**
2065
+ * SubscriptionRenewed id.
2066
+ * @member {number} id
2067
+ * @memberof SubscriptionRenewed
2068
+ * @instance
2069
+ */
2070
+ SubscriptionRenewed.prototype.id = 0;
2071
+
2072
+ /**
2073
+ * SubscriptionRenewed updatedOn.
2074
+ * @member {number|Long} updatedOn
2075
+ * @memberof SubscriptionRenewed
2076
+ * @instance
2077
+ */
2078
+ SubscriptionRenewed.prototype.updatedOn = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
2079
+
2080
+ /**
2081
+ * SubscriptionRenewed userId.
2082
+ * @member {string} userId
2083
+ * @memberof SubscriptionRenewed
2084
+ * @instance
2085
+ */
2086
+ SubscriptionRenewed.prototype.userId = "";
2087
+
2088
+ /**
2089
+ * Creates a new SubscriptionRenewed instance using the specified properties.
2090
+ * @function create
2091
+ * @memberof SubscriptionRenewed
1320
2092
  * @static
1321
- * @param {ISubscriptionCancelled} message SubscriptionCancelled message or plain object to encode
2093
+ * @param {ISubscriptionRenewed=} [properties] Properties to set
2094
+ * @returns {SubscriptionRenewed} SubscriptionRenewed instance
2095
+ */
2096
+ SubscriptionRenewed.create = function create(properties) {
2097
+ return new SubscriptionRenewed(properties);
2098
+ };
2099
+
2100
+ /**
2101
+ * Encodes the specified SubscriptionRenewed message. Does not implicitly {@link SubscriptionRenewed.verify|verify} messages.
2102
+ * @function encode
2103
+ * @memberof SubscriptionRenewed
2104
+ * @static
2105
+ * @param {ISubscriptionRenewed} message SubscriptionRenewed message or plain object to encode
1322
2106
  * @param {$protobuf.Writer} [writer] Writer to encode to
1323
2107
  * @returns {$protobuf.Writer} Writer
1324
2108
  */
1325
- SubscriptionCancelled.encodeDelimited = function encodeDelimited(message, writer) {
2109
+ SubscriptionRenewed.encode = function encode(message, writer) {
2110
+ if (!writer)
2111
+ writer = $Writer.create();
2112
+ if (message.id != null && message.hasOwnProperty("id"))
2113
+ writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.id);
2114
+ if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
2115
+ writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.updatedOn);
2116
+ if (message.userId != null && message.hasOwnProperty("userId"))
2117
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.userId);
2118
+ return writer;
2119
+ };
2120
+
2121
+ /**
2122
+ * Encodes the specified SubscriptionRenewed message, length delimited. Does not implicitly {@link SubscriptionRenewed.verify|verify} messages.
2123
+ * @function encodeDelimited
2124
+ * @memberof SubscriptionRenewed
2125
+ * @static
2126
+ * @param {ISubscriptionRenewed} message SubscriptionRenewed message or plain object to encode
2127
+ * @param {$protobuf.Writer} [writer] Writer to encode to
2128
+ * @returns {$protobuf.Writer} Writer
2129
+ */
2130
+ SubscriptionRenewed.encodeDelimited = function encodeDelimited(message, writer) {
1326
2131
  return this.encode(message, writer).ldelim();
1327
2132
  };
1328
2133
 
1329
2134
  /**
1330
- * Decodes a SubscriptionCancelled message from the specified reader or buffer.
2135
+ * Decodes a SubscriptionRenewed message from the specified reader or buffer.
1331
2136
  * @function decode
1332
- * @memberof SubscriptionCancelled
2137
+ * @memberof SubscriptionRenewed
1333
2138
  * @static
1334
2139
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
1335
2140
  * @param {number} [length] Message length if known beforehand
1336
- * @returns {SubscriptionCancelled} SubscriptionCancelled
2141
+ * @returns {SubscriptionRenewed} SubscriptionRenewed
1337
2142
  * @throws {Error} If the payload is not a reader or valid buffer
1338
2143
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
1339
2144
  */
1340
- SubscriptionCancelled.decode = function decode(reader, length) {
2145
+ SubscriptionRenewed.decode = function decode(reader, length) {
1341
2146
  if (!(reader instanceof $Reader))
1342
2147
  reader = $Reader.create(reader);
1343
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.SubscriptionCancelled();
2148
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.SubscriptionRenewed();
1344
2149
  while (reader.pos < end) {
1345
2150
  var tag = reader.uint32();
1346
2151
  switch (tag >>> 3) {
@@ -1350,6 +2155,9 @@ $root.SubscriptionCancelled = (function() {
1350
2155
  case 2:
1351
2156
  message.updatedOn = reader.uint64();
1352
2157
  break;
2158
+ case 3:
2159
+ message.userId = reader.string();
2160
+ break;
1353
2161
  default:
1354
2162
  reader.skipType(tag & 7);
1355
2163
  break;
@@ -1359,30 +2167,30 @@ $root.SubscriptionCancelled = (function() {
1359
2167
  };
1360
2168
 
1361
2169
  /**
1362
- * Decodes a SubscriptionCancelled message from the specified reader or buffer, length delimited.
2170
+ * Decodes a SubscriptionRenewed message from the specified reader or buffer, length delimited.
1363
2171
  * @function decodeDelimited
1364
- * @memberof SubscriptionCancelled
2172
+ * @memberof SubscriptionRenewed
1365
2173
  * @static
1366
2174
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
1367
- * @returns {SubscriptionCancelled} SubscriptionCancelled
2175
+ * @returns {SubscriptionRenewed} SubscriptionRenewed
1368
2176
  * @throws {Error} If the payload is not a reader or valid buffer
1369
2177
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
1370
2178
  */
1371
- SubscriptionCancelled.decodeDelimited = function decodeDelimited(reader) {
2179
+ SubscriptionRenewed.decodeDelimited = function decodeDelimited(reader) {
1372
2180
  if (!(reader instanceof $Reader))
1373
2181
  reader = new $Reader(reader);
1374
2182
  return this.decode(reader, reader.uint32());
1375
2183
  };
1376
2184
 
1377
2185
  /**
1378
- * Verifies a SubscriptionCancelled message.
2186
+ * Verifies a SubscriptionRenewed message.
1379
2187
  * @function verify
1380
- * @memberof SubscriptionCancelled
2188
+ * @memberof SubscriptionRenewed
1381
2189
  * @static
1382
2190
  * @param {Object.<string,*>} message Plain object to verify
1383
2191
  * @returns {string|null} `null` if valid, otherwise the reason why it is not
1384
2192
  */
1385
- SubscriptionCancelled.verify = function verify(message) {
2193
+ SubscriptionRenewed.verify = function verify(message) {
1386
2194
  if (typeof message !== "object" || message === null)
1387
2195
  return "object expected";
1388
2196
  if (message.id != null && message.hasOwnProperty("id"))
@@ -1391,21 +2199,24 @@ $root.SubscriptionCancelled = (function() {
1391
2199
  if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
1392
2200
  if (!$util.isInteger(message.updatedOn) && !(message.updatedOn && $util.isInteger(message.updatedOn.low) && $util.isInteger(message.updatedOn.high)))
1393
2201
  return "updatedOn: integer|Long expected";
2202
+ if (message.userId != null && message.hasOwnProperty("userId"))
2203
+ if (!$util.isString(message.userId))
2204
+ return "userId: string expected";
1394
2205
  return null;
1395
2206
  };
1396
2207
 
1397
2208
  /**
1398
- * Creates a SubscriptionCancelled message from a plain object. Also converts values to their respective internal types.
2209
+ * Creates a SubscriptionRenewed message from a plain object. Also converts values to their respective internal types.
1399
2210
  * @function fromObject
1400
- * @memberof SubscriptionCancelled
2211
+ * @memberof SubscriptionRenewed
1401
2212
  * @static
1402
2213
  * @param {Object.<string,*>} object Plain object
1403
- * @returns {SubscriptionCancelled} SubscriptionCancelled
2214
+ * @returns {SubscriptionRenewed} SubscriptionRenewed
1404
2215
  */
1405
- SubscriptionCancelled.fromObject = function fromObject(object) {
1406
- if (object instanceof $root.SubscriptionCancelled)
2216
+ SubscriptionRenewed.fromObject = function fromObject(object) {
2217
+ if (object instanceof $root.SubscriptionRenewed)
1407
2218
  return object;
1408
- var message = new $root.SubscriptionCancelled();
2219
+ var message = new $root.SubscriptionRenewed();
1409
2220
  if (object.id != null)
1410
2221
  message.id = object.id >>> 0;
1411
2222
  if (object.updatedOn != null)
@@ -1417,19 +2228,21 @@ $root.SubscriptionCancelled = (function() {
1417
2228
  message.updatedOn = object.updatedOn;
1418
2229
  else if (typeof object.updatedOn === "object")
1419
2230
  message.updatedOn = new $util.LongBits(object.updatedOn.low >>> 0, object.updatedOn.high >>> 0).toNumber(true);
2231
+ if (object.userId != null)
2232
+ message.userId = String(object.userId);
1420
2233
  return message;
1421
2234
  };
1422
2235
 
1423
2236
  /**
1424
- * Creates a plain object from a SubscriptionCancelled message. Also converts values to other types if specified.
2237
+ * Creates a plain object from a SubscriptionRenewed message. Also converts values to other types if specified.
1425
2238
  * @function toObject
1426
- * @memberof SubscriptionCancelled
2239
+ * @memberof SubscriptionRenewed
1427
2240
  * @static
1428
- * @param {SubscriptionCancelled} message SubscriptionCancelled
2241
+ * @param {SubscriptionRenewed} message SubscriptionRenewed
1429
2242
  * @param {$protobuf.IConversionOptions} [options] Conversion options
1430
2243
  * @returns {Object.<string,*>} Plain object
1431
2244
  */
1432
- SubscriptionCancelled.toObject = function toObject(message, options) {
2245
+ SubscriptionRenewed.toObject = function toObject(message, options) {
1433
2246
  if (!options)
1434
2247
  options = {};
1435
2248
  var object = {};
@@ -1440,6 +2253,7 @@ $root.SubscriptionCancelled = (function() {
1440
2253
  object.updatedOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
1441
2254
  } else
1442
2255
  object.updatedOn = options.longs === String ? "0" : 0;
2256
+ object.userId = "";
1443
2257
  }
1444
2258
  if (message.id != null && message.hasOwnProperty("id"))
1445
2259
  object.id = message.id;
@@ -1448,21 +2262,269 @@ $root.SubscriptionCancelled = (function() {
1448
2262
  object.updatedOn = options.longs === String ? String(message.updatedOn) : message.updatedOn;
1449
2263
  else
1450
2264
  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;
2265
+ if (message.userId != null && message.hasOwnProperty("userId"))
2266
+ object.userId = message.userId;
1451
2267
  return object;
1452
2268
  };
1453
2269
 
1454
2270
  /**
1455
- * Converts this SubscriptionCancelled to JSON.
2271
+ * Converts this SubscriptionRenewed to JSON.
1456
2272
  * @function toJSON
1457
- * @memberof SubscriptionCancelled
2273
+ * @memberof SubscriptionRenewed
1458
2274
  * @instance
1459
2275
  * @returns {Object.<string,*>} JSON object
1460
2276
  */
1461
- SubscriptionCancelled.prototype.toJSON = function toJSON() {
2277
+ SubscriptionRenewed.prototype.toJSON = function toJSON() {
1462
2278
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
1463
2279
  };
1464
2280
 
1465
- return SubscriptionCancelled;
2281
+ return SubscriptionRenewed;
2282
+ })();
2283
+
2284
+ $root.UserPasswordUpdated = (function() {
2285
+
2286
+ /**
2287
+ * Properties of a UserPasswordUpdated.
2288
+ * @exports IUserPasswordUpdated
2289
+ * @interface IUserPasswordUpdated
2290
+ * @property {string|null} [userId] UserPasswordUpdated userId
2291
+ * @property {number|Long|null} [updatedOn] UserPasswordUpdated updatedOn
2292
+ * @property {string|null} [email] UserPasswordUpdated email
2293
+ */
2294
+
2295
+ /**
2296
+ * Constructs a new UserPasswordUpdated.
2297
+ * @exports UserPasswordUpdated
2298
+ * @classdesc Represents a UserPasswordUpdated.
2299
+ * @implements IUserPasswordUpdated
2300
+ * @constructor
2301
+ * @param {IUserPasswordUpdated=} [properties] Properties to set
2302
+ */
2303
+ function UserPasswordUpdated(properties) {
2304
+ if (properties)
2305
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
2306
+ if (properties[keys[i]] != null)
2307
+ this[keys[i]] = properties[keys[i]];
2308
+ }
2309
+
2310
+ /**
2311
+ * UserPasswordUpdated userId.
2312
+ * @member {string} userId
2313
+ * @memberof UserPasswordUpdated
2314
+ * @instance
2315
+ */
2316
+ UserPasswordUpdated.prototype.userId = "";
2317
+
2318
+ /**
2319
+ * UserPasswordUpdated updatedOn.
2320
+ * @member {number|Long} updatedOn
2321
+ * @memberof UserPasswordUpdated
2322
+ * @instance
2323
+ */
2324
+ UserPasswordUpdated.prototype.updatedOn = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
2325
+
2326
+ /**
2327
+ * UserPasswordUpdated email.
2328
+ * @member {string} email
2329
+ * @memberof UserPasswordUpdated
2330
+ * @instance
2331
+ */
2332
+ UserPasswordUpdated.prototype.email = "";
2333
+
2334
+ /**
2335
+ * Creates a new UserPasswordUpdated instance using the specified properties.
2336
+ * @function create
2337
+ * @memberof UserPasswordUpdated
2338
+ * @static
2339
+ * @param {IUserPasswordUpdated=} [properties] Properties to set
2340
+ * @returns {UserPasswordUpdated} UserPasswordUpdated instance
2341
+ */
2342
+ UserPasswordUpdated.create = function create(properties) {
2343
+ return new UserPasswordUpdated(properties);
2344
+ };
2345
+
2346
+ /**
2347
+ * Encodes the specified UserPasswordUpdated message. Does not implicitly {@link UserPasswordUpdated.verify|verify} messages.
2348
+ * @function encode
2349
+ * @memberof UserPasswordUpdated
2350
+ * @static
2351
+ * @param {IUserPasswordUpdated} message UserPasswordUpdated message or plain object to encode
2352
+ * @param {$protobuf.Writer} [writer] Writer to encode to
2353
+ * @returns {$protobuf.Writer} Writer
2354
+ */
2355
+ UserPasswordUpdated.encode = function encode(message, writer) {
2356
+ if (!writer)
2357
+ writer = $Writer.create();
2358
+ if (message.userId != null && message.hasOwnProperty("userId"))
2359
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
2360
+ if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
2361
+ writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.updatedOn);
2362
+ if (message.email != null && message.hasOwnProperty("email"))
2363
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.email);
2364
+ return writer;
2365
+ };
2366
+
2367
+ /**
2368
+ * Encodes the specified UserPasswordUpdated message, length delimited. Does not implicitly {@link UserPasswordUpdated.verify|verify} messages.
2369
+ * @function encodeDelimited
2370
+ * @memberof UserPasswordUpdated
2371
+ * @static
2372
+ * @param {IUserPasswordUpdated} message UserPasswordUpdated message or plain object to encode
2373
+ * @param {$protobuf.Writer} [writer] Writer to encode to
2374
+ * @returns {$protobuf.Writer} Writer
2375
+ */
2376
+ UserPasswordUpdated.encodeDelimited = function encodeDelimited(message, writer) {
2377
+ return this.encode(message, writer).ldelim();
2378
+ };
2379
+
2380
+ /**
2381
+ * Decodes a UserPasswordUpdated message from the specified reader or buffer.
2382
+ * @function decode
2383
+ * @memberof UserPasswordUpdated
2384
+ * @static
2385
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
2386
+ * @param {number} [length] Message length if known beforehand
2387
+ * @returns {UserPasswordUpdated} UserPasswordUpdated
2388
+ * @throws {Error} If the payload is not a reader or valid buffer
2389
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2390
+ */
2391
+ UserPasswordUpdated.decode = function decode(reader, length) {
2392
+ if (!(reader instanceof $Reader))
2393
+ reader = $Reader.create(reader);
2394
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserPasswordUpdated();
2395
+ while (reader.pos < end) {
2396
+ var tag = reader.uint32();
2397
+ switch (tag >>> 3) {
2398
+ case 1:
2399
+ message.userId = reader.string();
2400
+ break;
2401
+ case 2:
2402
+ message.updatedOn = reader.uint64();
2403
+ break;
2404
+ case 3:
2405
+ message.email = reader.string();
2406
+ break;
2407
+ default:
2408
+ reader.skipType(tag & 7);
2409
+ break;
2410
+ }
2411
+ }
2412
+ return message;
2413
+ };
2414
+
2415
+ /**
2416
+ * Decodes a UserPasswordUpdated message from the specified reader or buffer, length delimited.
2417
+ * @function decodeDelimited
2418
+ * @memberof UserPasswordUpdated
2419
+ * @static
2420
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
2421
+ * @returns {UserPasswordUpdated} UserPasswordUpdated
2422
+ * @throws {Error} If the payload is not a reader or valid buffer
2423
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
2424
+ */
2425
+ UserPasswordUpdated.decodeDelimited = function decodeDelimited(reader) {
2426
+ if (!(reader instanceof $Reader))
2427
+ reader = new $Reader(reader);
2428
+ return this.decode(reader, reader.uint32());
2429
+ };
2430
+
2431
+ /**
2432
+ * Verifies a UserPasswordUpdated message.
2433
+ * @function verify
2434
+ * @memberof UserPasswordUpdated
2435
+ * @static
2436
+ * @param {Object.<string,*>} message Plain object to verify
2437
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
2438
+ */
2439
+ UserPasswordUpdated.verify = function verify(message) {
2440
+ if (typeof message !== "object" || message === null)
2441
+ return "object expected";
2442
+ if (message.userId != null && message.hasOwnProperty("userId"))
2443
+ if (!$util.isString(message.userId))
2444
+ return "userId: string expected";
2445
+ if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
2446
+ if (!$util.isInteger(message.updatedOn) && !(message.updatedOn && $util.isInteger(message.updatedOn.low) && $util.isInteger(message.updatedOn.high)))
2447
+ return "updatedOn: integer|Long expected";
2448
+ if (message.email != null && message.hasOwnProperty("email"))
2449
+ if (!$util.isString(message.email))
2450
+ return "email: string expected";
2451
+ return null;
2452
+ };
2453
+
2454
+ /**
2455
+ * Creates a UserPasswordUpdated message from a plain object. Also converts values to their respective internal types.
2456
+ * @function fromObject
2457
+ * @memberof UserPasswordUpdated
2458
+ * @static
2459
+ * @param {Object.<string,*>} object Plain object
2460
+ * @returns {UserPasswordUpdated} UserPasswordUpdated
2461
+ */
2462
+ UserPasswordUpdated.fromObject = function fromObject(object) {
2463
+ if (object instanceof $root.UserPasswordUpdated)
2464
+ return object;
2465
+ var message = new $root.UserPasswordUpdated();
2466
+ if (object.userId != null)
2467
+ message.userId = String(object.userId);
2468
+ if (object.updatedOn != null)
2469
+ if ($util.Long)
2470
+ (message.updatedOn = $util.Long.fromValue(object.updatedOn)).unsigned = true;
2471
+ else if (typeof object.updatedOn === "string")
2472
+ message.updatedOn = parseInt(object.updatedOn, 10);
2473
+ else if (typeof object.updatedOn === "number")
2474
+ message.updatedOn = object.updatedOn;
2475
+ else if (typeof object.updatedOn === "object")
2476
+ message.updatedOn = new $util.LongBits(object.updatedOn.low >>> 0, object.updatedOn.high >>> 0).toNumber(true);
2477
+ if (object.email != null)
2478
+ message.email = String(object.email);
2479
+ return message;
2480
+ };
2481
+
2482
+ /**
2483
+ * Creates a plain object from a UserPasswordUpdated message. Also converts values to other types if specified.
2484
+ * @function toObject
2485
+ * @memberof UserPasswordUpdated
2486
+ * @static
2487
+ * @param {UserPasswordUpdated} message UserPasswordUpdated
2488
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
2489
+ * @returns {Object.<string,*>} Plain object
2490
+ */
2491
+ UserPasswordUpdated.toObject = function toObject(message, options) {
2492
+ if (!options)
2493
+ options = {};
2494
+ var object = {};
2495
+ if (options.defaults) {
2496
+ object.userId = "";
2497
+ if ($util.Long) {
2498
+ var long = new $util.Long(0, 0, true);
2499
+ object.updatedOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
2500
+ } else
2501
+ object.updatedOn = options.longs === String ? "0" : 0;
2502
+ object.email = "";
2503
+ }
2504
+ if (message.userId != null && message.hasOwnProperty("userId"))
2505
+ object.userId = message.userId;
2506
+ if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
2507
+ if (typeof message.updatedOn === "number")
2508
+ object.updatedOn = options.longs === String ? String(message.updatedOn) : message.updatedOn;
2509
+ else
2510
+ 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;
2511
+ if (message.email != null && message.hasOwnProperty("email"))
2512
+ object.email = message.email;
2513
+ return object;
2514
+ };
2515
+
2516
+ /**
2517
+ * Converts this UserPasswordUpdated to JSON.
2518
+ * @function toJSON
2519
+ * @memberof UserPasswordUpdated
2520
+ * @instance
2521
+ * @returns {Object.<string,*>} JSON object
2522
+ */
2523
+ UserPasswordUpdated.prototype.toJSON = function toJSON() {
2524
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
2525
+ };
2526
+
2527
+ return UserPasswordUpdated;
1466
2528
  })();
1467
2529
 
1468
2530
  module.exports = $root;