@headspace/protos-events 0.0.22 → 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,1004 +545,6 @@ $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
548
  $root.SubscriptionCreated = (function() {
1547
549
 
1548
550
  /**
@@ -1991,250 +993,4 @@ $root.SubscriptionCancelled = (function() {
1991
993
  return SubscriptionCancelled;
1992
994
  })();
1993
995
 
1994
- $root.UserPasswordUpdated = (function() {
1995
-
1996
- /**
1997
- * Properties of a UserPasswordUpdated.
1998
- * @exports IUserPasswordUpdated
1999
- * @interface IUserPasswordUpdated
2000
- * @property {string|null} [userId] UserPasswordUpdated userId
2001
- * @property {number|Long|null} [updatedOn] UserPasswordUpdated updatedOn
2002
- * @property {string|null} [email] UserPasswordUpdated email
2003
- */
2004
-
2005
- /**
2006
- * Constructs a new UserPasswordUpdated.
2007
- * @exports UserPasswordUpdated
2008
- * @classdesc Represents a UserPasswordUpdated.
2009
- * @implements IUserPasswordUpdated
2010
- * @constructor
2011
- * @param {IUserPasswordUpdated=} [properties] Properties to set
2012
- */
2013
- function UserPasswordUpdated(properties) {
2014
- if (properties)
2015
- for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
2016
- if (properties[keys[i]] != null)
2017
- this[keys[i]] = properties[keys[i]];
2018
- }
2019
-
2020
- /**
2021
- * UserPasswordUpdated userId.
2022
- * @member {string} userId
2023
- * @memberof UserPasswordUpdated
2024
- * @instance
2025
- */
2026
- UserPasswordUpdated.prototype.userId = "";
2027
-
2028
- /**
2029
- * UserPasswordUpdated updatedOn.
2030
- * @member {number|Long} updatedOn
2031
- * @memberof UserPasswordUpdated
2032
- * @instance
2033
- */
2034
- UserPasswordUpdated.prototype.updatedOn = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
2035
-
2036
- /**
2037
- * UserPasswordUpdated email.
2038
- * @member {string} email
2039
- * @memberof UserPasswordUpdated
2040
- * @instance
2041
- */
2042
- UserPasswordUpdated.prototype.email = "";
2043
-
2044
- /**
2045
- * Creates a new UserPasswordUpdated instance using the specified properties.
2046
- * @function create
2047
- * @memberof UserPasswordUpdated
2048
- * @static
2049
- * @param {IUserPasswordUpdated=} [properties] Properties to set
2050
- * @returns {UserPasswordUpdated} UserPasswordUpdated instance
2051
- */
2052
- UserPasswordUpdated.create = function create(properties) {
2053
- return new UserPasswordUpdated(properties);
2054
- };
2055
-
2056
- /**
2057
- * Encodes the specified UserPasswordUpdated message. Does not implicitly {@link UserPasswordUpdated.verify|verify} messages.
2058
- * @function encode
2059
- * @memberof UserPasswordUpdated
2060
- * @static
2061
- * @param {IUserPasswordUpdated} message UserPasswordUpdated message or plain object to encode
2062
- * @param {$protobuf.Writer} [writer] Writer to encode to
2063
- * @returns {$protobuf.Writer} Writer
2064
- */
2065
- UserPasswordUpdated.encode = function encode(message, writer) {
2066
- if (!writer)
2067
- writer = $Writer.create();
2068
- if (message.userId != null && message.hasOwnProperty("userId"))
2069
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
2070
- if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
2071
- writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.updatedOn);
2072
- if (message.email != null && message.hasOwnProperty("email"))
2073
- writer.uint32(/* id 3, wireType 2 =*/26).string(message.email);
2074
- return writer;
2075
- };
2076
-
2077
- /**
2078
- * Encodes the specified UserPasswordUpdated message, length delimited. Does not implicitly {@link UserPasswordUpdated.verify|verify} messages.
2079
- * @function encodeDelimited
2080
- * @memberof UserPasswordUpdated
2081
- * @static
2082
- * @param {IUserPasswordUpdated} message UserPasswordUpdated message or plain object to encode
2083
- * @param {$protobuf.Writer} [writer] Writer to encode to
2084
- * @returns {$protobuf.Writer} Writer
2085
- */
2086
- UserPasswordUpdated.encodeDelimited = function encodeDelimited(message, writer) {
2087
- return this.encode(message, writer).ldelim();
2088
- };
2089
-
2090
- /**
2091
- * Decodes a UserPasswordUpdated message from the specified reader or buffer.
2092
- * @function decode
2093
- * @memberof UserPasswordUpdated
2094
- * @static
2095
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
2096
- * @param {number} [length] Message length if known beforehand
2097
- * @returns {UserPasswordUpdated} UserPasswordUpdated
2098
- * @throws {Error} If the payload is not a reader or valid buffer
2099
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
2100
- */
2101
- UserPasswordUpdated.decode = function decode(reader, length) {
2102
- if (!(reader instanceof $Reader))
2103
- reader = $Reader.create(reader);
2104
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserPasswordUpdated();
2105
- while (reader.pos < end) {
2106
- var tag = reader.uint32();
2107
- switch (tag >>> 3) {
2108
- case 1:
2109
- message.userId = reader.string();
2110
- break;
2111
- case 2:
2112
- message.updatedOn = reader.uint64();
2113
- break;
2114
- case 3:
2115
- message.email = reader.string();
2116
- break;
2117
- default:
2118
- reader.skipType(tag & 7);
2119
- break;
2120
- }
2121
- }
2122
- return message;
2123
- };
2124
-
2125
- /**
2126
- * Decodes a UserPasswordUpdated message from the specified reader or buffer, length delimited.
2127
- * @function decodeDelimited
2128
- * @memberof UserPasswordUpdated
2129
- * @static
2130
- * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
2131
- * @returns {UserPasswordUpdated} UserPasswordUpdated
2132
- * @throws {Error} If the payload is not a reader or valid buffer
2133
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
2134
- */
2135
- UserPasswordUpdated.decodeDelimited = function decodeDelimited(reader) {
2136
- if (!(reader instanceof $Reader))
2137
- reader = new $Reader(reader);
2138
- return this.decode(reader, reader.uint32());
2139
- };
2140
-
2141
- /**
2142
- * Verifies a UserPasswordUpdated message.
2143
- * @function verify
2144
- * @memberof UserPasswordUpdated
2145
- * @static
2146
- * @param {Object.<string,*>} message Plain object to verify
2147
- * @returns {string|null} `null` if valid, otherwise the reason why it is not
2148
- */
2149
- UserPasswordUpdated.verify = function verify(message) {
2150
- if (typeof message !== "object" || message === null)
2151
- return "object expected";
2152
- if (message.userId != null && message.hasOwnProperty("userId"))
2153
- if (!$util.isString(message.userId))
2154
- return "userId: string expected";
2155
- if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
2156
- if (!$util.isInteger(message.updatedOn) && !(message.updatedOn && $util.isInteger(message.updatedOn.low) && $util.isInteger(message.updatedOn.high)))
2157
- return "updatedOn: integer|Long expected";
2158
- if (message.email != null && message.hasOwnProperty("email"))
2159
- if (!$util.isString(message.email))
2160
- return "email: string expected";
2161
- return null;
2162
- };
2163
-
2164
- /**
2165
- * Creates a UserPasswordUpdated message from a plain object. Also converts values to their respective internal types.
2166
- * @function fromObject
2167
- * @memberof UserPasswordUpdated
2168
- * @static
2169
- * @param {Object.<string,*>} object Plain object
2170
- * @returns {UserPasswordUpdated} UserPasswordUpdated
2171
- */
2172
- UserPasswordUpdated.fromObject = function fromObject(object) {
2173
- if (object instanceof $root.UserPasswordUpdated)
2174
- return object;
2175
- var message = new $root.UserPasswordUpdated();
2176
- if (object.userId != null)
2177
- message.userId = String(object.userId);
2178
- if (object.updatedOn != null)
2179
- if ($util.Long)
2180
- (message.updatedOn = $util.Long.fromValue(object.updatedOn)).unsigned = true;
2181
- else if (typeof object.updatedOn === "string")
2182
- message.updatedOn = parseInt(object.updatedOn, 10);
2183
- else if (typeof object.updatedOn === "number")
2184
- message.updatedOn = object.updatedOn;
2185
- else if (typeof object.updatedOn === "object")
2186
- message.updatedOn = new $util.LongBits(object.updatedOn.low >>> 0, object.updatedOn.high >>> 0).toNumber(true);
2187
- if (object.email != null)
2188
- message.email = String(object.email);
2189
- return message;
2190
- };
2191
-
2192
- /**
2193
- * Creates a plain object from a UserPasswordUpdated message. Also converts values to other types if specified.
2194
- * @function toObject
2195
- * @memberof UserPasswordUpdated
2196
- * @static
2197
- * @param {UserPasswordUpdated} message UserPasswordUpdated
2198
- * @param {$protobuf.IConversionOptions} [options] Conversion options
2199
- * @returns {Object.<string,*>} Plain object
2200
- */
2201
- UserPasswordUpdated.toObject = function toObject(message, options) {
2202
- if (!options)
2203
- options = {};
2204
- var object = {};
2205
- if (options.defaults) {
2206
- object.userId = "";
2207
- if ($util.Long) {
2208
- var long = new $util.Long(0, 0, true);
2209
- object.updatedOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
2210
- } else
2211
- object.updatedOn = options.longs === String ? "0" : 0;
2212
- object.email = "";
2213
- }
2214
- if (message.userId != null && message.hasOwnProperty("userId"))
2215
- object.userId = message.userId;
2216
- if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
2217
- if (typeof message.updatedOn === "number")
2218
- object.updatedOn = options.longs === String ? String(message.updatedOn) : message.updatedOn;
2219
- else
2220
- 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;
2221
- if (message.email != null && message.hasOwnProperty("email"))
2222
- object.email = message.email;
2223
- return object;
2224
- };
2225
-
2226
- /**
2227
- * Converts this UserPasswordUpdated to JSON.
2228
- * @function toJSON
2229
- * @memberof UserPasswordUpdated
2230
- * @instance
2231
- * @returns {Object.<string,*>} JSON object
2232
- */
2233
- UserPasswordUpdated.prototype.toJSON = function toJSON() {
2234
- return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
2235
- };
2236
-
2237
- return UserPasswordUpdated;
2238
- })();
2239
-
2240
996
  module.exports = $root;