@headspace/protos-events 0.0.23 → 0.1.0-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
@@ -545,1516 +545,25 @@ $root.FamilyMemberRemoved = (function() {
545
545
  return FamilyMemberRemoved;
546
546
  })();
547
547
 
548
- $root.VoiceDeviceConnected = (function() {
549
-
550
- /**
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
557
- */
558
-
559
- /**
560
- * Constructs a new VoiceDeviceConnected.
561
- * @exports VoiceDeviceConnected
562
- * @classdesc Represents a VoiceDeviceConnected.
563
- * @implements IVoiceDeviceConnected
564
- * @constructor
565
- * @param {IVoiceDeviceConnected=} [properties] Properties to set
566
- */
567
- function VoiceDeviceConnected(properties) {
568
- if (properties)
569
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
570
- if (properties[keys[i]] != null)
571
- this[keys[i]] = properties[keys[i]];
572
- }
573
-
574
- /**
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
586
- * @instance
587
- */
588
- VoiceDeviceConnected.prototype.platform = "";
589
-
590
- /**
591
- * VoiceDeviceConnected timestamp.
592
- * @member {number|Long} timestamp
593
- * @memberof VoiceDeviceConnected
594
- * @instance
595
- */
596
- VoiceDeviceConnected.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
597
-
598
- /**
599
- * Creates a new VoiceDeviceConnected instance using the specified properties.
600
- * @function create
601
- * @memberof VoiceDeviceConnected
602
- * @static
603
- * @param {IVoiceDeviceConnected=} [properties] Properties to set
604
- * @returns {VoiceDeviceConnected} VoiceDeviceConnected instance
605
- */
606
- VoiceDeviceConnected.create = function create(properties) {
607
- return new VoiceDeviceConnected(properties);
608
- };
609
-
610
- /**
611
- * Encodes the specified VoiceDeviceConnected message. Does not implicitly {@link VoiceDeviceConnected.verify|verify} messages.
612
- * @function encode
613
- * @memberof VoiceDeviceConnected
614
- * @static
615
- * @param {IVoiceDeviceConnected} message VoiceDeviceConnected message or plain object to encode
616
- * @param {$protobuf.Writer} [writer] Writer to encode to
617
- * @returns {$protobuf.Writer} Writer
618
- */
619
- VoiceDeviceConnected.encode = function encode(message, writer) {
620
- if (!writer)
621
- writer = $Writer.create();
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);
626
- if (message.timestamp != null && message.hasOwnProperty("timestamp"))
627
- writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.timestamp);
628
- return writer;
629
- };
630
-
631
- /**
632
- * Encodes the specified VoiceDeviceConnected message, length delimited. Does not implicitly {@link VoiceDeviceConnected.verify|verify} messages.
633
- * @function encodeDelimited
634
- * @memberof VoiceDeviceConnected
635
- * @static
636
- * @param {IVoiceDeviceConnected} message VoiceDeviceConnected message or plain object to encode
637
- * @param {$protobuf.Writer} [writer] Writer to encode to
638
- * @returns {$protobuf.Writer} Writer
639
- */
640
- VoiceDeviceConnected.encodeDelimited = function encodeDelimited(message, writer) {
641
- return this.encode(message, writer).ldelim();
642
- };
643
-
644
- /**
645
- * Decodes a VoiceDeviceConnected message from the specified reader or buffer.
646
- * @function decode
647
- * @memberof VoiceDeviceConnected
648
- * @static
649
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
650
- * @param {number} [length] Message length if known beforehand
651
- * @returns {VoiceDeviceConnected} VoiceDeviceConnected
652
- * @throws {Error} If the payload is not a reader or valid buffer
653
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
654
- */
655
- VoiceDeviceConnected.decode = function decode(reader, length) {
656
- if (!(reader instanceof $Reader))
657
- reader = $Reader.create(reader);
658
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.VoiceDeviceConnected();
659
- while (reader.pos < end) {
660
- var tag = reader.uint32();
661
- switch (tag >>> 3) {
662
- case 1:
663
- message.userId = reader.string();
664
- break;
665
- case 2:
666
- message.platform = reader.string();
667
- break;
668
- case 3:
669
- message.timestamp = reader.uint64();
670
- break;
671
- default:
672
- reader.skipType(tag & 7);
673
- break;
674
- }
675
- }
676
- return message;
677
- };
678
-
679
- /**
680
- * Decodes a VoiceDeviceConnected message from the specified reader or buffer, length delimited.
681
- * @function decodeDelimited
682
- * @memberof VoiceDeviceConnected
683
- * @static
684
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
685
- * @returns {VoiceDeviceConnected} VoiceDeviceConnected
686
- * @throws {Error} If the payload is not a reader or valid buffer
687
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
688
- */
689
- VoiceDeviceConnected.decodeDelimited = function decodeDelimited(reader) {
690
- if (!(reader instanceof $Reader))
691
- reader = new $Reader(reader);
692
- return this.decode(reader, reader.uint32());
693
- };
694
-
695
- /**
696
- * Verifies a VoiceDeviceConnected message.
697
- * @function verify
698
- * @memberof VoiceDeviceConnected
699
- * @static
700
- * @param {Object.<string,*>} message Plain object to verify
701
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
702
- */
703
- VoiceDeviceConnected.verify = function verify(message) {
704
- if (typeof message !== "object" || message === null)
705
- return "object 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";
712
- if (message.timestamp != null && message.hasOwnProperty("timestamp"))
713
- if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
714
- return "timestamp: integer|Long expected";
715
- return null;
716
- };
717
-
718
- /**
719
- * Creates a VoiceDeviceConnected message from a plain object. Also converts values to their respective internal types.
720
- * @function fromObject
721
- * @memberof VoiceDeviceConnected
722
- * @static
723
- * @param {Object.<string,*>} object Plain object
724
- * @returns {VoiceDeviceConnected} VoiceDeviceConnected
725
- */
726
- VoiceDeviceConnected.fromObject = function fromObject(object) {
727
- if (object instanceof $root.VoiceDeviceConnected)
728
- return object;
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);
734
- if (object.timestamp != null)
735
- if ($util.Long)
736
- (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
737
- else if (typeof object.timestamp === "string")
738
- message.timestamp = parseInt(object.timestamp, 10);
739
- else if (typeof object.timestamp === "number")
740
- message.timestamp = object.timestamp;
741
- else if (typeof object.timestamp === "object")
742
- message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
743
- return message;
744
- };
745
-
746
- /**
747
- * Creates a plain object from a VoiceDeviceConnected message. Also converts values to other types if specified.
748
- * @function toObject
749
- * @memberof VoiceDeviceConnected
750
- * @static
751
- * @param {VoiceDeviceConnected} message VoiceDeviceConnected
752
- * @param {$protobuf.IConversionOptions} [options] Conversion options
753
- * @returns {Object.<string,*>} Plain object
754
- */
755
- VoiceDeviceConnected.toObject = function toObject(message, options) {
756
- if (!options)
757
- options = {};
758
- var object = {};
759
- if (options.defaults) {
760
- object.userId = "";
761
- object.platform = "";
762
- if ($util.Long) {
763
- var long = new $util.Long(0, 0, true);
764
- object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
765
- } else
766
- object.timestamp = options.longs === String ? "0" : 0;
767
- }
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;
772
- if (message.timestamp != null && message.hasOwnProperty("timestamp"))
773
- if (typeof message.timestamp === "number")
774
- object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
775
- else
776
- 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;
777
- return object;
778
- };
779
-
780
- /**
781
- * Converts this VoiceDeviceConnected to JSON.
782
- * @function toJSON
783
- * @memberof VoiceDeviceConnected
784
- * @instance
785
- * @returns {Object.<string,*>} JSON object
786
- */
787
- VoiceDeviceConnected.prototype.toJSON = function toJSON() {
788
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
789
- };
790
-
791
- return VoiceDeviceConnected;
792
- })();
793
-
794
- $root.SleepcastEpisodeCompleted = (function() {
795
-
796
- /**
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
803
- */
804
-
805
- /**
806
- * Constructs a new SleepcastEpisodeCompleted.
807
- * @exports SleepcastEpisodeCompleted
808
- * @classdesc Represents a SleepcastEpisodeCompleted.
809
- * @implements ISleepcastEpisodeCompleted
810
- * @constructor
811
- * @param {ISleepcastEpisodeCompleted=} [properties] Properties to set
812
- */
813
- function SleepcastEpisodeCompleted(properties) {
814
- if (properties)
815
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
816
- if (properties[keys[i]] != null)
817
- this[keys[i]] = properties[keys[i]];
818
- }
819
-
820
- /**
821
- * SleepcastEpisodeCompleted timestamp.
822
- * @member {number|Long} timestamp
823
- * @memberof SleepcastEpisodeCompleted
824
- * @instance
825
- */
826
- SleepcastEpisodeCompleted.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
827
-
828
- /**
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
840
- * @instance
841
- */
842
- SleepcastEpisodeCompleted.prototype.userId = "";
843
-
844
- /**
845
- * Creates a new SleepcastEpisodeCompleted instance using the specified properties.
846
- * @function create
847
- * @memberof SleepcastEpisodeCompleted
848
- * @static
849
- * @param {ISleepcastEpisodeCompleted=} [properties] Properties to set
850
- * @returns {SleepcastEpisodeCompleted} SleepcastEpisodeCompleted instance
851
- */
852
- SleepcastEpisodeCompleted.create = function create(properties) {
853
- return new SleepcastEpisodeCompleted(properties);
854
- };
855
-
856
- /**
857
- * Encodes the specified SleepcastEpisodeCompleted message. Does not implicitly {@link SleepcastEpisodeCompleted.verify|verify} messages.
858
- * @function encode
859
- * @memberof SleepcastEpisodeCompleted
860
- * @static
861
- * @param {ISleepcastEpisodeCompleted} message SleepcastEpisodeCompleted message or plain object to encode
862
- * @param {$protobuf.Writer} [writer] Writer to encode to
863
- * @returns {$protobuf.Writer} Writer
864
- */
865
- SleepcastEpisodeCompleted.encode = function encode(message, writer) {
866
- if (!writer)
867
- writer = $Writer.create();
868
- if (message.timestamp != null && message.hasOwnProperty("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);
874
- return writer;
875
- };
876
-
877
- /**
878
- * Encodes the specified SleepcastEpisodeCompleted message, length delimited. Does not implicitly {@link SleepcastEpisodeCompleted.verify|verify} messages.
879
- * @function encodeDelimited
880
- * @memberof SleepcastEpisodeCompleted
881
- * @static
882
- * @param {ISleepcastEpisodeCompleted} message SleepcastEpisodeCompleted message or plain object to encode
883
- * @param {$protobuf.Writer} [writer] Writer to encode to
884
- * @returns {$protobuf.Writer} Writer
885
- */
886
- SleepcastEpisodeCompleted.encodeDelimited = function encodeDelimited(message, writer) {
887
- return this.encode(message, writer).ldelim();
888
- };
889
-
890
- /**
891
- * Decodes a SleepcastEpisodeCompleted message from the specified reader or buffer.
892
- * @function decode
893
- * @memberof SleepcastEpisodeCompleted
894
- * @static
895
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
896
- * @param {number} [length] Message length if known beforehand
897
- * @returns {SleepcastEpisodeCompleted} SleepcastEpisodeCompleted
898
- * @throws {Error} If the payload is not a reader or valid buffer
899
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
900
- */
901
- SleepcastEpisodeCompleted.decode = function decode(reader, length) {
902
- if (!(reader instanceof $Reader))
903
- reader = $Reader.create(reader);
904
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.SleepcastEpisodeCompleted();
905
- while (reader.pos < end) {
906
- var tag = reader.uint32();
907
- switch (tag >>> 3) {
908
- case 1:
909
- message.timestamp = reader.uint64();
910
- break;
911
- case 2:
912
- message.sleepcastId = reader.uint32();
913
- break;
914
- case 3:
915
- message.userId = reader.string();
916
- break;
917
- default:
918
- reader.skipType(tag & 7);
919
- break;
920
- }
921
- }
922
- return message;
923
- };
924
-
925
- /**
926
- * Decodes a SleepcastEpisodeCompleted message from the specified reader or buffer, length delimited.
927
- * @function decodeDelimited
928
- * @memberof SleepcastEpisodeCompleted
929
- * @static
930
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
931
- * @returns {SleepcastEpisodeCompleted} SleepcastEpisodeCompleted
932
- * @throws {Error} If the payload is not a reader or valid buffer
933
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
934
- */
935
- SleepcastEpisodeCompleted.decodeDelimited = function decodeDelimited(reader) {
936
- if (!(reader instanceof $Reader))
937
- reader = new $Reader(reader);
938
- return this.decode(reader, reader.uint32());
939
- };
940
-
941
- /**
942
- * Verifies a SleepcastEpisodeCompleted message.
943
- * @function verify
944
- * @memberof SleepcastEpisodeCompleted
945
- * @static
946
- * @param {Object.<string,*>} message Plain object to verify
947
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
948
- */
949
- SleepcastEpisodeCompleted.verify = function verify(message) {
950
- if (typeof message !== "object" || message === null)
951
- return "object expected";
952
- if (message.timestamp != null && message.hasOwnProperty("timestamp"))
953
- if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
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";
961
- return null;
962
- };
963
-
964
- /**
965
- * Creates a SleepcastEpisodeCompleted message from a plain object. Also converts values to their respective internal types.
966
- * @function fromObject
967
- * @memberof SleepcastEpisodeCompleted
968
- * @static
969
- * @param {Object.<string,*>} object Plain object
970
- * @returns {SleepcastEpisodeCompleted} SleepcastEpisodeCompleted
971
- */
972
- SleepcastEpisodeCompleted.fromObject = function fromObject(object) {
973
- if (object instanceof $root.SleepcastEpisodeCompleted)
974
- return object;
975
- var message = new $root.SleepcastEpisodeCompleted();
976
- if (object.timestamp != null)
977
- if ($util.Long)
978
- (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
979
- else if (typeof object.timestamp === "string")
980
- message.timestamp = parseInt(object.timestamp, 10);
981
- else if (typeof object.timestamp === "number")
982
- message.timestamp = object.timestamp;
983
- else if (typeof object.timestamp === "object")
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);
989
- return message;
990
- };
991
-
992
- /**
993
- * Creates a plain object from a SleepcastEpisodeCompleted message. Also converts values to other types if specified.
994
- * @function toObject
995
- * @memberof SleepcastEpisodeCompleted
996
- * @static
997
- * @param {SleepcastEpisodeCompleted} message SleepcastEpisodeCompleted
998
- * @param {$protobuf.IConversionOptions} [options] Conversion options
999
- * @returns {Object.<string,*>} Plain object
1000
- */
1001
- SleepcastEpisodeCompleted.toObject = function toObject(message, options) {
1002
- if (!options)
1003
- options = {};
1004
- var object = {};
1005
- if (options.defaults) {
1006
- if ($util.Long) {
1007
- var long = new $util.Long(0, 0, true);
1008
- object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
1009
- } else
1010
- object.timestamp = options.longs === String ? "0" : 0;
1011
- object.sleepcastId = 0;
1012
- object.userId = "";
1013
- }
1014
- if (message.timestamp != null && message.hasOwnProperty("timestamp"))
1015
- if (typeof message.timestamp === "number")
1016
- object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
1017
- else
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;
1023
- return object;
1024
- };
1025
-
1026
- /**
1027
- * Converts this SleepcastEpisodeCompleted to JSON.
1028
- * @function toJSON
1029
- * @memberof SleepcastEpisodeCompleted
1030
- * @instance
1031
- * @returns {Object.<string,*>} JSON object
1032
- */
1033
- SleepcastEpisodeCompleted.prototype.toJSON = function toJSON() {
1034
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
1035
- };
1036
-
1037
- return SleepcastEpisodeCompleted;
1038
- })();
1039
-
1040
- $root.FirstSleepcastPlayDateSet = (function() {
1041
-
1042
- /**
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
1049
- */
1050
-
1051
- /**
1052
- * Constructs a new FirstSleepcastPlayDateSet.
1053
- * @exports FirstSleepcastPlayDateSet
1054
- * @classdesc Represents a FirstSleepcastPlayDateSet.
1055
- * @implements IFirstSleepcastPlayDateSet
1056
- * @constructor
1057
- * @param {IFirstSleepcastPlayDateSet=} [properties] Properties to set
1058
- */
1059
- function FirstSleepcastPlayDateSet(properties) {
1060
- if (properties)
1061
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
1062
- if (properties[keys[i]] != null)
1063
- this[keys[i]] = properties[keys[i]];
1064
- }
1065
-
1066
- /**
1067
- * FirstSleepcastPlayDateSet timestamp.
1068
- * @member {number|Long} timestamp
1069
- * @memberof FirstSleepcastPlayDateSet
1070
- * @instance
1071
- */
1072
- FirstSleepcastPlayDateSet.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
1073
-
1074
- /**
1075
- * FirstSleepcastPlayDateSet userId.
1076
- * @member {string} userId
1077
- * @memberof FirstSleepcastPlayDateSet
1078
- * @instance
1079
- */
1080
- FirstSleepcastPlayDateSet.prototype.userId = "";
1081
-
1082
- /**
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.
1092
- * @function create
1093
- * @memberof FirstSleepcastPlayDateSet
1094
- * @static
1095
- * @param {IFirstSleepcastPlayDateSet=} [properties] Properties to set
1096
- * @returns {FirstSleepcastPlayDateSet} FirstSleepcastPlayDateSet instance
1097
- */
1098
- FirstSleepcastPlayDateSet.create = function create(properties) {
1099
- return new FirstSleepcastPlayDateSet(properties);
1100
- };
1101
-
1102
- /**
1103
- * Encodes the specified FirstSleepcastPlayDateSet message. Does not implicitly {@link FirstSleepcastPlayDateSet.verify|verify} messages.
1104
- * @function encode
1105
- * @memberof FirstSleepcastPlayDateSet
1106
- * @static
1107
- * @param {IFirstSleepcastPlayDateSet} message FirstSleepcastPlayDateSet message or plain object to encode
1108
- * @param {$protobuf.Writer} [writer] Writer to encode to
1109
- * @returns {$protobuf.Writer} Writer
1110
- */
1111
- FirstSleepcastPlayDateSet.encode = function encode(message, writer) {
1112
- if (!writer)
1113
- writer = $Writer.create();
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);
1120
- return writer;
1121
- };
1122
-
1123
- /**
1124
- * Encodes the specified FirstSleepcastPlayDateSet message, length delimited. Does not implicitly {@link FirstSleepcastPlayDateSet.verify|verify} messages.
1125
- * @function encodeDelimited
1126
- * @memberof FirstSleepcastPlayDateSet
1127
- * @static
1128
- * @param {IFirstSleepcastPlayDateSet} message FirstSleepcastPlayDateSet message or plain object to encode
1129
- * @param {$protobuf.Writer} [writer] Writer to encode to
1130
- * @returns {$protobuf.Writer} Writer
1131
- */
1132
- FirstSleepcastPlayDateSet.encodeDelimited = function encodeDelimited(message, writer) {
1133
- return this.encode(message, writer).ldelim();
1134
- };
1135
-
1136
- /**
1137
- * Decodes a FirstSleepcastPlayDateSet message from the specified reader or buffer.
1138
- * @function decode
1139
- * @memberof FirstSleepcastPlayDateSet
1140
- * @static
1141
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
1142
- * @param {number} [length] Message length if known beforehand
1143
- * @returns {FirstSleepcastPlayDateSet} FirstSleepcastPlayDateSet
1144
- * @throws {Error} If the payload is not a reader or valid buffer
1145
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1146
- */
1147
- FirstSleepcastPlayDateSet.decode = function decode(reader, length) {
1148
- if (!(reader instanceof $Reader))
1149
- reader = $Reader.create(reader);
1150
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.FirstSleepcastPlayDateSet();
1151
- while (reader.pos < end) {
1152
- var tag = reader.uint32();
1153
- switch (tag >>> 3) {
1154
- case 1:
1155
- message.timestamp = reader.uint64();
1156
- break;
1157
- case 2:
1158
- message.userId = reader.string();
1159
- break;
1160
- case 3:
1161
- message.firstPlayTimestamp = reader.uint64();
1162
- break;
1163
- default:
1164
- reader.skipType(tag & 7);
1165
- break;
1166
- }
1167
- }
1168
- return message;
1169
- };
1170
-
1171
- /**
1172
- * Decodes a FirstSleepcastPlayDateSet message from the specified reader or buffer, length delimited.
1173
- * @function decodeDelimited
1174
- * @memberof FirstSleepcastPlayDateSet
1175
- * @static
1176
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
1177
- * @returns {FirstSleepcastPlayDateSet} FirstSleepcastPlayDateSet
1178
- * @throws {Error} If the payload is not a reader or valid buffer
1179
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
1180
- */
1181
- FirstSleepcastPlayDateSet.decodeDelimited = function decodeDelimited(reader) {
1182
- if (!(reader instanceof $Reader))
1183
- reader = new $Reader(reader);
1184
- return this.decode(reader, reader.uint32());
1185
- };
1186
-
1187
- /**
1188
- * Verifies a FirstSleepcastPlayDateSet message.
1189
- * @function verify
1190
- * @memberof FirstSleepcastPlayDateSet
1191
- * @static
1192
- * @param {Object.<string,*>} message Plain object to verify
1193
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
1194
- */
1195
- FirstSleepcastPlayDateSet.verify = function verify(message) {
1196
- if (typeof message !== "object" || message === null)
1197
- return "object 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";
1207
- return null;
1208
- };
1209
-
1210
- /**
1211
- * Creates a FirstSleepcastPlayDateSet message from a plain object. Also converts values to their respective internal types.
1212
- * @function fromObject
1213
- * @memberof FirstSleepcastPlayDateSet
1214
- * @static
1215
- * @param {Object.<string,*>} object Plain object
1216
- * @returns {FirstSleepcastPlayDateSet} FirstSleepcastPlayDateSet
1217
- */
1218
- FirstSleepcastPlayDateSet.fromObject = function fromObject(object) {
1219
- if (object instanceof $root.FirstSleepcastPlayDateSet)
1220
- return object;
1221
- var message = new $root.FirstSleepcastPlayDateSet();
1222
- if (object.timestamp != null)
1223
- if ($util.Long)
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);
1242
- return message;
1243
- };
1244
-
1245
- /**
1246
- * Creates a plain object from a FirstSleepcastPlayDateSet message. Also converts values to other types if specified.
1247
- * @function toObject
1248
- * @memberof FirstSleepcastPlayDateSet
1249
- * @static
1250
- * @param {FirstSleepcastPlayDateSet} message FirstSleepcastPlayDateSet
1251
- * @param {$protobuf.IConversionOptions} [options] Conversion options
1252
- * @returns {Object.<string,*>} Plain object
1253
- */
1254
- FirstSleepcastPlayDateSet.toObject = function toObject(message, options) {
1255
- if (!options)
1256
- options = {};
1257
- var object = {};
1258
- if (options.defaults) {
1259
- if ($util.Long) {
1260
- var long = new $util.Long(0, 0, true);
1261
- object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
1262
- } else
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;
1270
- }
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;
1274
- else
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;
1283
- return object;
1284
- };
1285
-
1286
- /**
1287
- * Converts this FirstSleepcastPlayDateSet to JSON.
1288
- * @function toJSON
1289
- * @memberof FirstSleepcastPlayDateSet
1290
- * @instance
1291
- * @returns {Object.<string,*>} JSON object
1292
- */
1293
- FirstSleepcastPlayDateSet.prototype.toJSON = function toJSON() {
1294
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
1295
- };
1296
-
1297
- return FirstSleepcastPlayDateSet;
1298
- })();
1299
-
1300
- $root.NumSleepcastPlaysSet = (function() {
1301
-
1302
- /**
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
1309
- */
1310
-
1311
- /**
1312
- * Constructs a new NumSleepcastPlaysSet.
1313
- * @exports NumSleepcastPlaysSet
1314
- * @classdesc Represents a NumSleepcastPlaysSet.
1315
- * @implements INumSleepcastPlaysSet
1316
- * @constructor
1317
- * @param {INumSleepcastPlaysSet=} [properties] Properties to set
1318
- */
1319
- function NumSleepcastPlaysSet(properties) {
1320
- if (properties)
1321
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
1322
- if (properties[keys[i]] != null)
1323
- this[keys[i]] = properties[keys[i]];
1324
- }
1325
-
1326
- /**
1327
- * NumSleepcastPlaysSet timestamp.
1328
- * @member {number|Long} timestamp
1329
- * @memberof NumSleepcastPlaysSet
1330
- * @instance
1331
- */
1332
- NumSleepcastPlaysSet.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
1333
-
1334
- /**
1335
- * NumSleepcastPlaysSet userId.
1336
- * @member {string} userId
1337
- * @memberof NumSleepcastPlaysSet
1338
- * @instance
1339
- */
1340
- NumSleepcastPlaysSet.prototype.userId = "";
1341
-
1342
- /**
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.
1352
- * @function create
1353
- * @memberof NumSleepcastPlaysSet
1354
- * @static
1355
- * @param {INumSleepcastPlaysSet=} [properties] Properties to set
1356
- * @returns {NumSleepcastPlaysSet} NumSleepcastPlaysSet instance
1357
- */
1358
- NumSleepcastPlaysSet.create = function create(properties) {
1359
- return new NumSleepcastPlaysSet(properties);
1360
- };
1361
-
1362
- /**
1363
- * Encodes the specified NumSleepcastPlaysSet message. Does not implicitly {@link NumSleepcastPlaysSet.verify|verify} messages.
1364
- * @function encode
1365
- * @memberof NumSleepcastPlaysSet
1366
- * @static
1367
- * @param {INumSleepcastPlaysSet} message NumSleepcastPlaysSet message or plain object to encode
1368
- * @param {$protobuf.Writer} [writer] Writer to encode to
1369
- * @returns {$protobuf.Writer} Writer
1370
- */
1371
- NumSleepcastPlaysSet.encode = function encode(message, writer) {
1372
- if (!writer)
1373
- writer = $Writer.create();
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);
1380
- return writer;
1381
- };
1382
-
1383
- /**
1384
- * Encodes the specified NumSleepcastPlaysSet message, length delimited. Does not implicitly {@link NumSleepcastPlaysSet.verify|verify} messages.
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
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() {
548
+ $root.SubscriptionCreated = (function() {
2039
549
 
2040
550
  /**
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
551
+ * Properties of a SubscriptionCreated.
552
+ * @exports ISubscriptionCreated
553
+ * @interface ISubscriptionCreated
554
+ * @property {number|null} [id] SubscriptionCreated id
555
+ * @property {number|Long|null} [updatedOn] SubscriptionCreated updatedOn
2047
556
  */
2048
557
 
2049
558
  /**
2050
- * Constructs a new SubscriptionRenewed.
2051
- * @exports SubscriptionRenewed
2052
- * @classdesc Represents a SubscriptionRenewed.
2053
- * @implements ISubscriptionRenewed
559
+ * Constructs a new SubscriptionCreated.
560
+ * @exports SubscriptionCreated
561
+ * @classdesc Represents a SubscriptionCreated.
562
+ * @implements ISubscriptionCreated
2054
563
  * @constructor
2055
- * @param {ISubscriptionRenewed=} [properties] Properties to set
564
+ * @param {ISubscriptionCreated=} [properties] Properties to set
2056
565
  */
2057
- function SubscriptionRenewed(properties) {
566
+ function SubscriptionCreated(properties) {
2058
567
  if (properties)
2059
568
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
2060
569
  if (properties[keys[i]] != null)
@@ -2062,90 +571,80 @@ $root.SubscriptionRenewed = (function() {
2062
571
  }
2063
572
 
2064
573
  /**
2065
- * SubscriptionRenewed id.
574
+ * SubscriptionCreated id.
2066
575
  * @member {number} id
2067
- * @memberof SubscriptionRenewed
576
+ * @memberof SubscriptionCreated
2068
577
  * @instance
2069
578
  */
2070
- SubscriptionRenewed.prototype.id = 0;
579
+ SubscriptionCreated.prototype.id = 0;
2071
580
 
2072
581
  /**
2073
- * SubscriptionRenewed updatedOn.
582
+ * SubscriptionCreated updatedOn.
2074
583
  * @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
584
+ * @memberof SubscriptionCreated
2084
585
  * @instance
2085
586
  */
2086
- SubscriptionRenewed.prototype.userId = "";
587
+ SubscriptionCreated.prototype.updatedOn = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
2087
588
 
2088
589
  /**
2089
- * Creates a new SubscriptionRenewed instance using the specified properties.
590
+ * Creates a new SubscriptionCreated instance using the specified properties.
2090
591
  * @function create
2091
- * @memberof SubscriptionRenewed
592
+ * @memberof SubscriptionCreated
2092
593
  * @static
2093
- * @param {ISubscriptionRenewed=} [properties] Properties to set
2094
- * @returns {SubscriptionRenewed} SubscriptionRenewed instance
594
+ * @param {ISubscriptionCreated=} [properties] Properties to set
595
+ * @returns {SubscriptionCreated} SubscriptionCreated instance
2095
596
  */
2096
- SubscriptionRenewed.create = function create(properties) {
2097
- return new SubscriptionRenewed(properties);
597
+ SubscriptionCreated.create = function create(properties) {
598
+ return new SubscriptionCreated(properties);
2098
599
  };
2099
600
 
2100
601
  /**
2101
- * Encodes the specified SubscriptionRenewed message. Does not implicitly {@link SubscriptionRenewed.verify|verify} messages.
602
+ * Encodes the specified SubscriptionCreated message. Does not implicitly {@link SubscriptionCreated.verify|verify} messages.
2102
603
  * @function encode
2103
- * @memberof SubscriptionRenewed
604
+ * @memberof SubscriptionCreated
2104
605
  * @static
2105
- * @param {ISubscriptionRenewed} message SubscriptionRenewed message or plain object to encode
606
+ * @param {ISubscriptionCreated} message SubscriptionCreated message or plain object to encode
2106
607
  * @param {$protobuf.Writer} [writer] Writer to encode to
2107
608
  * @returns {$protobuf.Writer} Writer
2108
609
  */
2109
- SubscriptionRenewed.encode = function encode(message, writer) {
610
+ SubscriptionCreated.encode = function encode(message, writer) {
2110
611
  if (!writer)
2111
612
  writer = $Writer.create();
2112
613
  if (message.id != null && message.hasOwnProperty("id"))
2113
614
  writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.id);
2114
615
  if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
2115
616
  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
617
  return writer;
2119
618
  };
2120
619
 
2121
620
  /**
2122
- * Encodes the specified SubscriptionRenewed message, length delimited. Does not implicitly {@link SubscriptionRenewed.verify|verify} messages.
621
+ * Encodes the specified SubscriptionCreated message, length delimited. Does not implicitly {@link SubscriptionCreated.verify|verify} messages.
2123
622
  * @function encodeDelimited
2124
- * @memberof SubscriptionRenewed
623
+ * @memberof SubscriptionCreated
2125
624
  * @static
2126
- * @param {ISubscriptionRenewed} message SubscriptionRenewed message or plain object to encode
625
+ * @param {ISubscriptionCreated} message SubscriptionCreated message or plain object to encode
2127
626
  * @param {$protobuf.Writer} [writer] Writer to encode to
2128
627
  * @returns {$protobuf.Writer} Writer
2129
628
  */
2130
- SubscriptionRenewed.encodeDelimited = function encodeDelimited(message, writer) {
629
+ SubscriptionCreated.encodeDelimited = function encodeDelimited(message, writer) {
2131
630
  return this.encode(message, writer).ldelim();
2132
631
  };
2133
632
 
2134
633
  /**
2135
- * Decodes a SubscriptionRenewed message from the specified reader or buffer.
634
+ * Decodes a SubscriptionCreated message from the specified reader or buffer.
2136
635
  * @function decode
2137
- * @memberof SubscriptionRenewed
636
+ * @memberof SubscriptionCreated
2138
637
  * @static
2139
638
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
2140
639
  * @param {number} [length] Message length if known beforehand
2141
- * @returns {SubscriptionRenewed} SubscriptionRenewed
640
+ * @returns {SubscriptionCreated} SubscriptionCreated
2142
641
  * @throws {Error} If the payload is not a reader or valid buffer
2143
642
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
2144
643
  */
2145
- SubscriptionRenewed.decode = function decode(reader, length) {
644
+ SubscriptionCreated.decode = function decode(reader, length) {
2146
645
  if (!(reader instanceof $Reader))
2147
646
  reader = $Reader.create(reader);
2148
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.SubscriptionRenewed();
647
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.SubscriptionCreated();
2149
648
  while (reader.pos < end) {
2150
649
  var tag = reader.uint32();
2151
650
  switch (tag >>> 3) {
@@ -2155,9 +654,6 @@ $root.SubscriptionRenewed = (function() {
2155
654
  case 2:
2156
655
  message.updatedOn = reader.uint64();
2157
656
  break;
2158
- case 3:
2159
- message.userId = reader.string();
2160
- break;
2161
657
  default:
2162
658
  reader.skipType(tag & 7);
2163
659
  break;
@@ -2167,30 +663,30 @@ $root.SubscriptionRenewed = (function() {
2167
663
  };
2168
664
 
2169
665
  /**
2170
- * Decodes a SubscriptionRenewed message from the specified reader or buffer, length delimited.
666
+ * Decodes a SubscriptionCreated message from the specified reader or buffer, length delimited.
2171
667
  * @function decodeDelimited
2172
- * @memberof SubscriptionRenewed
668
+ * @memberof SubscriptionCreated
2173
669
  * @static
2174
670
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
2175
- * @returns {SubscriptionRenewed} SubscriptionRenewed
671
+ * @returns {SubscriptionCreated} SubscriptionCreated
2176
672
  * @throws {Error} If the payload is not a reader or valid buffer
2177
673
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
2178
674
  */
2179
- SubscriptionRenewed.decodeDelimited = function decodeDelimited(reader) {
675
+ SubscriptionCreated.decodeDelimited = function decodeDelimited(reader) {
2180
676
  if (!(reader instanceof $Reader))
2181
677
  reader = new $Reader(reader);
2182
678
  return this.decode(reader, reader.uint32());
2183
679
  };
2184
680
 
2185
681
  /**
2186
- * Verifies a SubscriptionRenewed message.
682
+ * Verifies a SubscriptionCreated message.
2187
683
  * @function verify
2188
- * @memberof SubscriptionRenewed
684
+ * @memberof SubscriptionCreated
2189
685
  * @static
2190
686
  * @param {Object.<string,*>} message Plain object to verify
2191
687
  * @returns {string|null} `null` if valid, otherwise the reason why it is not
2192
688
  */
2193
- SubscriptionRenewed.verify = function verify(message) {
689
+ SubscriptionCreated.verify = function verify(message) {
2194
690
  if (typeof message !== "object" || message === null)
2195
691
  return "object expected";
2196
692
  if (message.id != null && message.hasOwnProperty("id"))
@@ -2199,24 +695,21 @@ $root.SubscriptionRenewed = (function() {
2199
695
  if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
2200
696
  if (!$util.isInteger(message.updatedOn) && !(message.updatedOn && $util.isInteger(message.updatedOn.low) && $util.isInteger(message.updatedOn.high)))
2201
697
  return "updatedOn: integer|Long expected";
2202
- if (message.userId != null && message.hasOwnProperty("userId"))
2203
- if (!$util.isString(message.userId))
2204
- return "userId: string expected";
2205
698
  return null;
2206
699
  };
2207
700
 
2208
701
  /**
2209
- * Creates a SubscriptionRenewed message from a plain object. Also converts values to their respective internal types.
702
+ * Creates a SubscriptionCreated message from a plain object. Also converts values to their respective internal types.
2210
703
  * @function fromObject
2211
- * @memberof SubscriptionRenewed
704
+ * @memberof SubscriptionCreated
2212
705
  * @static
2213
706
  * @param {Object.<string,*>} object Plain object
2214
- * @returns {SubscriptionRenewed} SubscriptionRenewed
707
+ * @returns {SubscriptionCreated} SubscriptionCreated
2215
708
  */
2216
- SubscriptionRenewed.fromObject = function fromObject(object) {
2217
- if (object instanceof $root.SubscriptionRenewed)
709
+ SubscriptionCreated.fromObject = function fromObject(object) {
710
+ if (object instanceof $root.SubscriptionCreated)
2218
711
  return object;
2219
- var message = new $root.SubscriptionRenewed();
712
+ var message = new $root.SubscriptionCreated();
2220
713
  if (object.id != null)
2221
714
  message.id = object.id >>> 0;
2222
715
  if (object.updatedOn != null)
@@ -2228,21 +721,19 @@ $root.SubscriptionRenewed = (function() {
2228
721
  message.updatedOn = object.updatedOn;
2229
722
  else if (typeof object.updatedOn === "object")
2230
723
  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);
2233
724
  return message;
2234
725
  };
2235
726
 
2236
727
  /**
2237
- * Creates a plain object from a SubscriptionRenewed message. Also converts values to other types if specified.
728
+ * Creates a plain object from a SubscriptionCreated message. Also converts values to other types if specified.
2238
729
  * @function toObject
2239
- * @memberof SubscriptionRenewed
730
+ * @memberof SubscriptionCreated
2240
731
  * @static
2241
- * @param {SubscriptionRenewed} message SubscriptionRenewed
732
+ * @param {SubscriptionCreated} message SubscriptionCreated
2242
733
  * @param {$protobuf.IConversionOptions} [options] Conversion options
2243
734
  * @returns {Object.<string,*>} Plain object
2244
735
  */
2245
- SubscriptionRenewed.toObject = function toObject(message, options) {
736
+ SubscriptionCreated.toObject = function toObject(message, options) {
2246
737
  if (!options)
2247
738
  options = {};
2248
739
  var object = {};
@@ -2253,7 +744,6 @@ $root.SubscriptionRenewed = (function() {
2253
744
  object.updatedOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
2254
745
  } else
2255
746
  object.updatedOn = options.longs === String ? "0" : 0;
2256
- object.userId = "";
2257
747
  }
2258
748
  if (message.id != null && message.hasOwnProperty("id"))
2259
749
  object.id = message.id;
@@ -2262,45 +752,42 @@ $root.SubscriptionRenewed = (function() {
2262
752
  object.updatedOn = options.longs === String ? String(message.updatedOn) : message.updatedOn;
2263
753
  else
2264
754
  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;
2267
755
  return object;
2268
756
  };
2269
757
 
2270
758
  /**
2271
- * Converts this SubscriptionRenewed to JSON.
759
+ * Converts this SubscriptionCreated to JSON.
2272
760
  * @function toJSON
2273
- * @memberof SubscriptionRenewed
761
+ * @memberof SubscriptionCreated
2274
762
  * @instance
2275
763
  * @returns {Object.<string,*>} JSON object
2276
764
  */
2277
- SubscriptionRenewed.prototype.toJSON = function toJSON() {
765
+ SubscriptionCreated.prototype.toJSON = function toJSON() {
2278
766
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
2279
767
  };
2280
768
 
2281
- return SubscriptionRenewed;
769
+ return SubscriptionCreated;
2282
770
  })();
2283
771
 
2284
- $root.UserPasswordUpdated = (function() {
772
+ $root.SubscriptionCancelled = (function() {
2285
773
 
2286
774
  /**
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
775
+ * Properties of a SubscriptionCancelled.
776
+ * @exports ISubscriptionCancelled
777
+ * @interface ISubscriptionCancelled
778
+ * @property {number|null} [id] SubscriptionCancelled id
779
+ * @property {number|Long|null} [updatedOn] SubscriptionCancelled updatedOn
2293
780
  */
2294
781
 
2295
782
  /**
2296
- * Constructs a new UserPasswordUpdated.
2297
- * @exports UserPasswordUpdated
2298
- * @classdesc Represents a UserPasswordUpdated.
2299
- * @implements IUserPasswordUpdated
783
+ * Constructs a new SubscriptionCancelled.
784
+ * @exports SubscriptionCancelled
785
+ * @classdesc Represents a SubscriptionCancelled.
786
+ * @implements ISubscriptionCancelled
2300
787
  * @constructor
2301
- * @param {IUserPasswordUpdated=} [properties] Properties to set
788
+ * @param {ISubscriptionCancelled=} [properties] Properties to set
2302
789
  */
2303
- function UserPasswordUpdated(properties) {
790
+ function SubscriptionCancelled(properties) {
2304
791
  if (properties)
2305
792
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
2306
793
  if (properties[keys[i]] != null)
@@ -2308,102 +795,89 @@ $root.UserPasswordUpdated = (function() {
2308
795
  }
2309
796
 
2310
797
  /**
2311
- * UserPasswordUpdated userId.
2312
- * @member {string} userId
2313
- * @memberof UserPasswordUpdated
798
+ * SubscriptionCancelled id.
799
+ * @member {number} id
800
+ * @memberof SubscriptionCancelled
2314
801
  * @instance
2315
802
  */
2316
- UserPasswordUpdated.prototype.userId = "";
803
+ SubscriptionCancelled.prototype.id = 0;
2317
804
 
2318
805
  /**
2319
- * UserPasswordUpdated updatedOn.
806
+ * SubscriptionCancelled updatedOn.
2320
807
  * @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
808
+ * @memberof SubscriptionCancelled
2330
809
  * @instance
2331
810
  */
2332
- UserPasswordUpdated.prototype.email = "";
811
+ SubscriptionCancelled.prototype.updatedOn = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
2333
812
 
2334
813
  /**
2335
- * Creates a new UserPasswordUpdated instance using the specified properties.
814
+ * Creates a new SubscriptionCancelled instance using the specified properties.
2336
815
  * @function create
2337
- * @memberof UserPasswordUpdated
816
+ * @memberof SubscriptionCancelled
2338
817
  * @static
2339
- * @param {IUserPasswordUpdated=} [properties] Properties to set
2340
- * @returns {UserPasswordUpdated} UserPasswordUpdated instance
818
+ * @param {ISubscriptionCancelled=} [properties] Properties to set
819
+ * @returns {SubscriptionCancelled} SubscriptionCancelled instance
2341
820
  */
2342
- UserPasswordUpdated.create = function create(properties) {
2343
- return new UserPasswordUpdated(properties);
821
+ SubscriptionCancelled.create = function create(properties) {
822
+ return new SubscriptionCancelled(properties);
2344
823
  };
2345
824
 
2346
825
  /**
2347
- * Encodes the specified UserPasswordUpdated message. Does not implicitly {@link UserPasswordUpdated.verify|verify} messages.
826
+ * Encodes the specified SubscriptionCancelled message. Does not implicitly {@link SubscriptionCancelled.verify|verify} messages.
2348
827
  * @function encode
2349
- * @memberof UserPasswordUpdated
828
+ * @memberof SubscriptionCancelled
2350
829
  * @static
2351
- * @param {IUserPasswordUpdated} message UserPasswordUpdated message or plain object to encode
830
+ * @param {ISubscriptionCancelled} message SubscriptionCancelled message or plain object to encode
2352
831
  * @param {$protobuf.Writer} [writer] Writer to encode to
2353
832
  * @returns {$protobuf.Writer} Writer
2354
833
  */
2355
- UserPasswordUpdated.encode = function encode(message, writer) {
834
+ SubscriptionCancelled.encode = function encode(message, writer) {
2356
835
  if (!writer)
2357
836
  writer = $Writer.create();
2358
- if (message.userId != null && message.hasOwnProperty("userId"))
2359
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
837
+ if (message.id != null && message.hasOwnProperty("id"))
838
+ writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.id);
2360
839
  if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
2361
840
  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
841
  return writer;
2365
842
  };
2366
843
 
2367
844
  /**
2368
- * Encodes the specified UserPasswordUpdated message, length delimited. Does not implicitly {@link UserPasswordUpdated.verify|verify} messages.
845
+ * Encodes the specified SubscriptionCancelled message, length delimited. Does not implicitly {@link SubscriptionCancelled.verify|verify} messages.
2369
846
  * @function encodeDelimited
2370
- * @memberof UserPasswordUpdated
847
+ * @memberof SubscriptionCancelled
2371
848
  * @static
2372
- * @param {IUserPasswordUpdated} message UserPasswordUpdated message or plain object to encode
849
+ * @param {ISubscriptionCancelled} message SubscriptionCancelled message or plain object to encode
2373
850
  * @param {$protobuf.Writer} [writer] Writer to encode to
2374
851
  * @returns {$protobuf.Writer} Writer
2375
852
  */
2376
- UserPasswordUpdated.encodeDelimited = function encodeDelimited(message, writer) {
853
+ SubscriptionCancelled.encodeDelimited = function encodeDelimited(message, writer) {
2377
854
  return this.encode(message, writer).ldelim();
2378
855
  };
2379
856
 
2380
857
  /**
2381
- * Decodes a UserPasswordUpdated message from the specified reader or buffer.
858
+ * Decodes a SubscriptionCancelled message from the specified reader or buffer.
2382
859
  * @function decode
2383
- * @memberof UserPasswordUpdated
860
+ * @memberof SubscriptionCancelled
2384
861
  * @static
2385
862
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
2386
863
  * @param {number} [length] Message length if known beforehand
2387
- * @returns {UserPasswordUpdated} UserPasswordUpdated
864
+ * @returns {SubscriptionCancelled} SubscriptionCancelled
2388
865
  * @throws {Error} If the payload is not a reader or valid buffer
2389
866
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
2390
867
  */
2391
- UserPasswordUpdated.decode = function decode(reader, length) {
868
+ SubscriptionCancelled.decode = function decode(reader, length) {
2392
869
  if (!(reader instanceof $Reader))
2393
870
  reader = $Reader.create(reader);
2394
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserPasswordUpdated();
871
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.SubscriptionCancelled();
2395
872
  while (reader.pos < end) {
2396
873
  var tag = reader.uint32();
2397
874
  switch (tag >>> 3) {
2398
875
  case 1:
2399
- message.userId = reader.string();
876
+ message.id = reader.uint32();
2400
877
  break;
2401
878
  case 2:
2402
879
  message.updatedOn = reader.uint64();
2403
880
  break;
2404
- case 3:
2405
- message.email = reader.string();
2406
- break;
2407
881
  default:
2408
882
  reader.skipType(tag & 7);
2409
883
  break;
@@ -2413,58 +887,55 @@ $root.UserPasswordUpdated = (function() {
2413
887
  };
2414
888
 
2415
889
  /**
2416
- * Decodes a UserPasswordUpdated message from the specified reader or buffer, length delimited.
890
+ * Decodes a SubscriptionCancelled message from the specified reader or buffer, length delimited.
2417
891
  * @function decodeDelimited
2418
- * @memberof UserPasswordUpdated
892
+ * @memberof SubscriptionCancelled
2419
893
  * @static
2420
894
  * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
2421
- * @returns {UserPasswordUpdated} UserPasswordUpdated
895
+ * @returns {SubscriptionCancelled} SubscriptionCancelled
2422
896
  * @throws {Error} If the payload is not a reader or valid buffer
2423
897
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
2424
898
  */
2425
- UserPasswordUpdated.decodeDelimited = function decodeDelimited(reader) {
899
+ SubscriptionCancelled.decodeDelimited = function decodeDelimited(reader) {
2426
900
  if (!(reader instanceof $Reader))
2427
901
  reader = new $Reader(reader);
2428
902
  return this.decode(reader, reader.uint32());
2429
903
  };
2430
904
 
2431
905
  /**
2432
- * Verifies a UserPasswordUpdated message.
906
+ * Verifies a SubscriptionCancelled message.
2433
907
  * @function verify
2434
- * @memberof UserPasswordUpdated
908
+ * @memberof SubscriptionCancelled
2435
909
  * @static
2436
910
  * @param {Object.<string,*>} message Plain object to verify
2437
911
  * @returns {string|null} `null` if valid, otherwise the reason why it is not
2438
912
  */
2439
- UserPasswordUpdated.verify = function verify(message) {
913
+ SubscriptionCancelled.verify = function verify(message) {
2440
914
  if (typeof message !== "object" || message === null)
2441
915
  return "object expected";
2442
- if (message.userId != null && message.hasOwnProperty("userId"))
2443
- if (!$util.isString(message.userId))
2444
- return "userId: string expected";
916
+ if (message.id != null && message.hasOwnProperty("id"))
917
+ if (!$util.isInteger(message.id))
918
+ return "id: integer expected";
2445
919
  if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
2446
920
  if (!$util.isInteger(message.updatedOn) && !(message.updatedOn && $util.isInteger(message.updatedOn.low) && $util.isInteger(message.updatedOn.high)))
2447
921
  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
922
  return null;
2452
923
  };
2453
924
 
2454
925
  /**
2455
- * Creates a UserPasswordUpdated message from a plain object. Also converts values to their respective internal types.
926
+ * Creates a SubscriptionCancelled message from a plain object. Also converts values to their respective internal types.
2456
927
  * @function fromObject
2457
- * @memberof UserPasswordUpdated
928
+ * @memberof SubscriptionCancelled
2458
929
  * @static
2459
930
  * @param {Object.<string,*>} object Plain object
2460
- * @returns {UserPasswordUpdated} UserPasswordUpdated
931
+ * @returns {SubscriptionCancelled} SubscriptionCancelled
2461
932
  */
2462
- UserPasswordUpdated.fromObject = function fromObject(object) {
2463
- if (object instanceof $root.UserPasswordUpdated)
933
+ SubscriptionCancelled.fromObject = function fromObject(object) {
934
+ if (object instanceof $root.SubscriptionCancelled)
2464
935
  return object;
2465
- var message = new $root.UserPasswordUpdated();
2466
- if (object.userId != null)
2467
- message.userId = String(object.userId);
936
+ var message = new $root.SubscriptionCancelled();
937
+ if (object.id != null)
938
+ message.id = object.id >>> 0;
2468
939
  if (object.updatedOn != null)
2469
940
  if ($util.Long)
2470
941
  (message.updatedOn = $util.Long.fromValue(object.updatedOn)).unsigned = true;
@@ -2474,57 +945,52 @@ $root.UserPasswordUpdated = (function() {
2474
945
  message.updatedOn = object.updatedOn;
2475
946
  else if (typeof object.updatedOn === "object")
2476
947
  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
948
  return message;
2480
949
  };
2481
950
 
2482
951
  /**
2483
- * Creates a plain object from a UserPasswordUpdated message. Also converts values to other types if specified.
952
+ * Creates a plain object from a SubscriptionCancelled message. Also converts values to other types if specified.
2484
953
  * @function toObject
2485
- * @memberof UserPasswordUpdated
954
+ * @memberof SubscriptionCancelled
2486
955
  * @static
2487
- * @param {UserPasswordUpdated} message UserPasswordUpdated
956
+ * @param {SubscriptionCancelled} message SubscriptionCancelled
2488
957
  * @param {$protobuf.IConversionOptions} [options] Conversion options
2489
958
  * @returns {Object.<string,*>} Plain object
2490
959
  */
2491
- UserPasswordUpdated.toObject = function toObject(message, options) {
960
+ SubscriptionCancelled.toObject = function toObject(message, options) {
2492
961
  if (!options)
2493
962
  options = {};
2494
963
  var object = {};
2495
964
  if (options.defaults) {
2496
- object.userId = "";
965
+ object.id = 0;
2497
966
  if ($util.Long) {
2498
967
  var long = new $util.Long(0, 0, true);
2499
968
  object.updatedOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
2500
969
  } else
2501
970
  object.updatedOn = options.longs === String ? "0" : 0;
2502
- object.email = "";
2503
971
  }
2504
- if (message.userId != null && message.hasOwnProperty("userId"))
2505
- object.userId = message.userId;
972
+ if (message.id != null && message.hasOwnProperty("id"))
973
+ object.id = message.id;
2506
974
  if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
2507
975
  if (typeof message.updatedOn === "number")
2508
976
  object.updatedOn = options.longs === String ? String(message.updatedOn) : message.updatedOn;
2509
977
  else
2510
978
  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
979
  return object;
2514
980
  };
2515
981
 
2516
982
  /**
2517
- * Converts this UserPasswordUpdated to JSON.
983
+ * Converts this SubscriptionCancelled to JSON.
2518
984
  * @function toJSON
2519
- * @memberof UserPasswordUpdated
985
+ * @memberof SubscriptionCancelled
2520
986
  * @instance
2521
987
  * @returns {Object.<string,*>} JSON object
2522
988
  */
2523
- UserPasswordUpdated.prototype.toJSON = function toJSON() {
989
+ SubscriptionCancelled.prototype.toJSON = function toJSON() {
2524
990
  return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
2525
991
  };
2526
992
 
2527
- return UserPasswordUpdated;
993
+ return SubscriptionCancelled;
2528
994
  })();
2529
995
 
2530
996
  module.exports = $root;