@headspace/protos-events 0.1.0-a.0 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.d.ts +624 -0
- package/lib/index.js +1661 -127
- package/package.json +11 -10
- package/community.proto +0 -15
- package/subscription.proto +0 -11
package/lib/index.js
CHANGED
|
@@ -545,25 +545,1516 @@ $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
|
+
|
|
548
1546
|
$root.SubscriptionCreated = (function() {
|
|
549
1547
|
|
|
550
1548
|
/**
|
|
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
|
|
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
|
|
556
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
|
+
};
|
|
557
1989
|
|
|
558
1990
|
/**
|
|
559
|
-
*
|
|
560
|
-
* @
|
|
561
|
-
* @
|
|
562
|
-
* @
|
|
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() {
|
|
2039
|
+
|
|
2040
|
+
/**
|
|
2041
|
+
* Properties of a SubscriptionRenewed.
|
|
2042
|
+
* @exports ISubscriptionRenewed
|
|
2043
|
+
* @interface ISubscriptionRenewed
|
|
2044
|
+
* @property {number|null} [id] SubscriptionRenewed id
|
|
2045
|
+
* @property {number|Long|null} [updatedOn] SubscriptionRenewed updatedOn
|
|
2046
|
+
* @property {string|null} [userId] SubscriptionRenewed userId
|
|
2047
|
+
*/
|
|
2048
|
+
|
|
2049
|
+
/**
|
|
2050
|
+
* Constructs a new SubscriptionRenewed.
|
|
2051
|
+
* @exports SubscriptionRenewed
|
|
2052
|
+
* @classdesc Represents a SubscriptionRenewed.
|
|
2053
|
+
* @implements ISubscriptionRenewed
|
|
563
2054
|
* @constructor
|
|
564
|
-
* @param {
|
|
2055
|
+
* @param {ISubscriptionRenewed=} [properties] Properties to set
|
|
565
2056
|
*/
|
|
566
|
-
function
|
|
2057
|
+
function SubscriptionRenewed(properties) {
|
|
567
2058
|
if (properties)
|
|
568
2059
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
569
2060
|
if (properties[keys[i]] != null)
|
|
@@ -571,80 +2062,90 @@ $root.SubscriptionCreated = (function() {
|
|
|
571
2062
|
}
|
|
572
2063
|
|
|
573
2064
|
/**
|
|
574
|
-
*
|
|
2065
|
+
* SubscriptionRenewed id.
|
|
575
2066
|
* @member {number} id
|
|
576
|
-
* @memberof
|
|
2067
|
+
* @memberof SubscriptionRenewed
|
|
577
2068
|
* @instance
|
|
578
2069
|
*/
|
|
579
|
-
|
|
2070
|
+
SubscriptionRenewed.prototype.id = 0;
|
|
580
2071
|
|
|
581
2072
|
/**
|
|
582
|
-
*
|
|
2073
|
+
* SubscriptionRenewed updatedOn.
|
|
583
2074
|
* @member {number|Long} updatedOn
|
|
584
|
-
* @memberof
|
|
2075
|
+
* @memberof SubscriptionRenewed
|
|
585
2076
|
* @instance
|
|
586
2077
|
*/
|
|
587
|
-
|
|
2078
|
+
SubscriptionRenewed.prototype.updatedOn = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
588
2079
|
|
|
589
2080
|
/**
|
|
590
|
-
*
|
|
2081
|
+
* SubscriptionRenewed userId.
|
|
2082
|
+
* @member {string} userId
|
|
2083
|
+
* @memberof SubscriptionRenewed
|
|
2084
|
+
* @instance
|
|
2085
|
+
*/
|
|
2086
|
+
SubscriptionRenewed.prototype.userId = "";
|
|
2087
|
+
|
|
2088
|
+
/**
|
|
2089
|
+
* Creates a new SubscriptionRenewed instance using the specified properties.
|
|
591
2090
|
* @function create
|
|
592
|
-
* @memberof
|
|
2091
|
+
* @memberof SubscriptionRenewed
|
|
593
2092
|
* @static
|
|
594
|
-
* @param {
|
|
595
|
-
* @returns {
|
|
2093
|
+
* @param {ISubscriptionRenewed=} [properties] Properties to set
|
|
2094
|
+
* @returns {SubscriptionRenewed} SubscriptionRenewed instance
|
|
596
2095
|
*/
|
|
597
|
-
|
|
598
|
-
return new
|
|
2096
|
+
SubscriptionRenewed.create = function create(properties) {
|
|
2097
|
+
return new SubscriptionRenewed(properties);
|
|
599
2098
|
};
|
|
600
2099
|
|
|
601
2100
|
/**
|
|
602
|
-
* Encodes the specified
|
|
2101
|
+
* Encodes the specified SubscriptionRenewed message. Does not implicitly {@link SubscriptionRenewed.verify|verify} messages.
|
|
603
2102
|
* @function encode
|
|
604
|
-
* @memberof
|
|
2103
|
+
* @memberof SubscriptionRenewed
|
|
605
2104
|
* @static
|
|
606
|
-
* @param {
|
|
2105
|
+
* @param {ISubscriptionRenewed} message SubscriptionRenewed message or plain object to encode
|
|
607
2106
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
608
2107
|
* @returns {$protobuf.Writer} Writer
|
|
609
2108
|
*/
|
|
610
|
-
|
|
2109
|
+
SubscriptionRenewed.encode = function encode(message, writer) {
|
|
611
2110
|
if (!writer)
|
|
612
2111
|
writer = $Writer.create();
|
|
613
2112
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
614
2113
|
writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.id);
|
|
615
2114
|
if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
|
|
616
2115
|
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.updatedOn);
|
|
2116
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
2117
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.userId);
|
|
617
2118
|
return writer;
|
|
618
2119
|
};
|
|
619
2120
|
|
|
620
2121
|
/**
|
|
621
|
-
* Encodes the specified
|
|
2122
|
+
* Encodes the specified SubscriptionRenewed message, length delimited. Does not implicitly {@link SubscriptionRenewed.verify|verify} messages.
|
|
622
2123
|
* @function encodeDelimited
|
|
623
|
-
* @memberof
|
|
2124
|
+
* @memberof SubscriptionRenewed
|
|
624
2125
|
* @static
|
|
625
|
-
* @param {
|
|
2126
|
+
* @param {ISubscriptionRenewed} message SubscriptionRenewed message or plain object to encode
|
|
626
2127
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
627
2128
|
* @returns {$protobuf.Writer} Writer
|
|
628
2129
|
*/
|
|
629
|
-
|
|
2130
|
+
SubscriptionRenewed.encodeDelimited = function encodeDelimited(message, writer) {
|
|
630
2131
|
return this.encode(message, writer).ldelim();
|
|
631
2132
|
};
|
|
632
2133
|
|
|
633
2134
|
/**
|
|
634
|
-
* Decodes a
|
|
2135
|
+
* Decodes a SubscriptionRenewed message from the specified reader or buffer.
|
|
635
2136
|
* @function decode
|
|
636
|
-
* @memberof
|
|
2137
|
+
* @memberof SubscriptionRenewed
|
|
637
2138
|
* @static
|
|
638
2139
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
639
2140
|
* @param {number} [length] Message length if known beforehand
|
|
640
|
-
* @returns {
|
|
2141
|
+
* @returns {SubscriptionRenewed} SubscriptionRenewed
|
|
641
2142
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
642
2143
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
643
2144
|
*/
|
|
644
|
-
|
|
2145
|
+
SubscriptionRenewed.decode = function decode(reader, length) {
|
|
645
2146
|
if (!(reader instanceof $Reader))
|
|
646
2147
|
reader = $Reader.create(reader);
|
|
647
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.
|
|
2148
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.SubscriptionRenewed();
|
|
648
2149
|
while (reader.pos < end) {
|
|
649
2150
|
var tag = reader.uint32();
|
|
650
2151
|
switch (tag >>> 3) {
|
|
@@ -654,6 +2155,9 @@ $root.SubscriptionCreated = (function() {
|
|
|
654
2155
|
case 2:
|
|
655
2156
|
message.updatedOn = reader.uint64();
|
|
656
2157
|
break;
|
|
2158
|
+
case 3:
|
|
2159
|
+
message.userId = reader.string();
|
|
2160
|
+
break;
|
|
657
2161
|
default:
|
|
658
2162
|
reader.skipType(tag & 7);
|
|
659
2163
|
break;
|
|
@@ -663,30 +2167,30 @@ $root.SubscriptionCreated = (function() {
|
|
|
663
2167
|
};
|
|
664
2168
|
|
|
665
2169
|
/**
|
|
666
|
-
* Decodes a
|
|
2170
|
+
* Decodes a SubscriptionRenewed message from the specified reader or buffer, length delimited.
|
|
667
2171
|
* @function decodeDelimited
|
|
668
|
-
* @memberof
|
|
2172
|
+
* @memberof SubscriptionRenewed
|
|
669
2173
|
* @static
|
|
670
2174
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
671
|
-
* @returns {
|
|
2175
|
+
* @returns {SubscriptionRenewed} SubscriptionRenewed
|
|
672
2176
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
673
2177
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
674
2178
|
*/
|
|
675
|
-
|
|
2179
|
+
SubscriptionRenewed.decodeDelimited = function decodeDelimited(reader) {
|
|
676
2180
|
if (!(reader instanceof $Reader))
|
|
677
2181
|
reader = new $Reader(reader);
|
|
678
2182
|
return this.decode(reader, reader.uint32());
|
|
679
2183
|
};
|
|
680
2184
|
|
|
681
2185
|
/**
|
|
682
|
-
* Verifies a
|
|
2186
|
+
* Verifies a SubscriptionRenewed message.
|
|
683
2187
|
* @function verify
|
|
684
|
-
* @memberof
|
|
2188
|
+
* @memberof SubscriptionRenewed
|
|
685
2189
|
* @static
|
|
686
2190
|
* @param {Object.<string,*>} message Plain object to verify
|
|
687
2191
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
688
2192
|
*/
|
|
689
|
-
|
|
2193
|
+
SubscriptionRenewed.verify = function verify(message) {
|
|
690
2194
|
if (typeof message !== "object" || message === null)
|
|
691
2195
|
return "object expected";
|
|
692
2196
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
@@ -695,21 +2199,24 @@ $root.SubscriptionCreated = (function() {
|
|
|
695
2199
|
if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
|
|
696
2200
|
if (!$util.isInteger(message.updatedOn) && !(message.updatedOn && $util.isInteger(message.updatedOn.low) && $util.isInteger(message.updatedOn.high)))
|
|
697
2201
|
return "updatedOn: integer|Long expected";
|
|
2202
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
2203
|
+
if (!$util.isString(message.userId))
|
|
2204
|
+
return "userId: string expected";
|
|
698
2205
|
return null;
|
|
699
2206
|
};
|
|
700
2207
|
|
|
701
2208
|
/**
|
|
702
|
-
* Creates a
|
|
2209
|
+
* Creates a SubscriptionRenewed message from a plain object. Also converts values to their respective internal types.
|
|
703
2210
|
* @function fromObject
|
|
704
|
-
* @memberof
|
|
2211
|
+
* @memberof SubscriptionRenewed
|
|
705
2212
|
* @static
|
|
706
2213
|
* @param {Object.<string,*>} object Plain object
|
|
707
|
-
* @returns {
|
|
2214
|
+
* @returns {SubscriptionRenewed} SubscriptionRenewed
|
|
708
2215
|
*/
|
|
709
|
-
|
|
710
|
-
if (object instanceof $root.
|
|
2216
|
+
SubscriptionRenewed.fromObject = function fromObject(object) {
|
|
2217
|
+
if (object instanceof $root.SubscriptionRenewed)
|
|
711
2218
|
return object;
|
|
712
|
-
var message = new $root.
|
|
2219
|
+
var message = new $root.SubscriptionRenewed();
|
|
713
2220
|
if (object.id != null)
|
|
714
2221
|
message.id = object.id >>> 0;
|
|
715
2222
|
if (object.updatedOn != null)
|
|
@@ -721,19 +2228,21 @@ $root.SubscriptionCreated = (function() {
|
|
|
721
2228
|
message.updatedOn = object.updatedOn;
|
|
722
2229
|
else if (typeof object.updatedOn === "object")
|
|
723
2230
|
message.updatedOn = new $util.LongBits(object.updatedOn.low >>> 0, object.updatedOn.high >>> 0).toNumber(true);
|
|
2231
|
+
if (object.userId != null)
|
|
2232
|
+
message.userId = String(object.userId);
|
|
724
2233
|
return message;
|
|
725
2234
|
};
|
|
726
2235
|
|
|
727
2236
|
/**
|
|
728
|
-
* Creates a plain object from a
|
|
2237
|
+
* Creates a plain object from a SubscriptionRenewed message. Also converts values to other types if specified.
|
|
729
2238
|
* @function toObject
|
|
730
|
-
* @memberof
|
|
2239
|
+
* @memberof SubscriptionRenewed
|
|
731
2240
|
* @static
|
|
732
|
-
* @param {
|
|
2241
|
+
* @param {SubscriptionRenewed} message SubscriptionRenewed
|
|
733
2242
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
734
2243
|
* @returns {Object.<string,*>} Plain object
|
|
735
2244
|
*/
|
|
736
|
-
|
|
2245
|
+
SubscriptionRenewed.toObject = function toObject(message, options) {
|
|
737
2246
|
if (!options)
|
|
738
2247
|
options = {};
|
|
739
2248
|
var object = {};
|
|
@@ -744,6 +2253,7 @@ $root.SubscriptionCreated = (function() {
|
|
|
744
2253
|
object.updatedOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
745
2254
|
} else
|
|
746
2255
|
object.updatedOn = options.longs === String ? "0" : 0;
|
|
2256
|
+
object.userId = "";
|
|
747
2257
|
}
|
|
748
2258
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
749
2259
|
object.id = message.id;
|
|
@@ -752,42 +2262,45 @@ $root.SubscriptionCreated = (function() {
|
|
|
752
2262
|
object.updatedOn = options.longs === String ? String(message.updatedOn) : message.updatedOn;
|
|
753
2263
|
else
|
|
754
2264
|
object.updatedOn = options.longs === String ? $util.Long.prototype.toString.call(message.updatedOn) : options.longs === Number ? new $util.LongBits(message.updatedOn.low >>> 0, message.updatedOn.high >>> 0).toNumber(true) : message.updatedOn;
|
|
2265
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
2266
|
+
object.userId = message.userId;
|
|
755
2267
|
return object;
|
|
756
2268
|
};
|
|
757
2269
|
|
|
758
2270
|
/**
|
|
759
|
-
* Converts this
|
|
2271
|
+
* Converts this SubscriptionRenewed to JSON.
|
|
760
2272
|
* @function toJSON
|
|
761
|
-
* @memberof
|
|
2273
|
+
* @memberof SubscriptionRenewed
|
|
762
2274
|
* @instance
|
|
763
2275
|
* @returns {Object.<string,*>} JSON object
|
|
764
2276
|
*/
|
|
765
|
-
|
|
2277
|
+
SubscriptionRenewed.prototype.toJSON = function toJSON() {
|
|
766
2278
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
767
2279
|
};
|
|
768
2280
|
|
|
769
|
-
return
|
|
2281
|
+
return SubscriptionRenewed;
|
|
770
2282
|
})();
|
|
771
2283
|
|
|
772
|
-
$root.
|
|
2284
|
+
$root.UserPasswordUpdated = (function() {
|
|
773
2285
|
|
|
774
2286
|
/**
|
|
775
|
-
* Properties of a
|
|
776
|
-
* @exports
|
|
777
|
-
* @interface
|
|
778
|
-
* @property {
|
|
779
|
-
* @property {number|Long|null} [updatedOn]
|
|
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
|
|
780
2293
|
*/
|
|
781
2294
|
|
|
782
2295
|
/**
|
|
783
|
-
* Constructs a new
|
|
784
|
-
* @exports
|
|
785
|
-
* @classdesc Represents a
|
|
786
|
-
* @implements
|
|
2296
|
+
* Constructs a new UserPasswordUpdated.
|
|
2297
|
+
* @exports UserPasswordUpdated
|
|
2298
|
+
* @classdesc Represents a UserPasswordUpdated.
|
|
2299
|
+
* @implements IUserPasswordUpdated
|
|
787
2300
|
* @constructor
|
|
788
|
-
* @param {
|
|
2301
|
+
* @param {IUserPasswordUpdated=} [properties] Properties to set
|
|
789
2302
|
*/
|
|
790
|
-
function
|
|
2303
|
+
function UserPasswordUpdated(properties) {
|
|
791
2304
|
if (properties)
|
|
792
2305
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
793
2306
|
if (properties[keys[i]] != null)
|
|
@@ -795,89 +2308,102 @@ $root.SubscriptionCancelled = (function() {
|
|
|
795
2308
|
}
|
|
796
2309
|
|
|
797
2310
|
/**
|
|
798
|
-
*
|
|
799
|
-
* @member {
|
|
800
|
-
* @memberof
|
|
2311
|
+
* UserPasswordUpdated userId.
|
|
2312
|
+
* @member {string} userId
|
|
2313
|
+
* @memberof UserPasswordUpdated
|
|
801
2314
|
* @instance
|
|
802
2315
|
*/
|
|
803
|
-
|
|
2316
|
+
UserPasswordUpdated.prototype.userId = "";
|
|
804
2317
|
|
|
805
2318
|
/**
|
|
806
|
-
*
|
|
2319
|
+
* UserPasswordUpdated updatedOn.
|
|
807
2320
|
* @member {number|Long} updatedOn
|
|
808
|
-
* @memberof
|
|
2321
|
+
* @memberof UserPasswordUpdated
|
|
809
2322
|
* @instance
|
|
810
2323
|
*/
|
|
811
|
-
|
|
2324
|
+
UserPasswordUpdated.prototype.updatedOn = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
812
2325
|
|
|
813
2326
|
/**
|
|
814
|
-
*
|
|
2327
|
+
* UserPasswordUpdated email.
|
|
2328
|
+
* @member {string} email
|
|
2329
|
+
* @memberof UserPasswordUpdated
|
|
2330
|
+
* @instance
|
|
2331
|
+
*/
|
|
2332
|
+
UserPasswordUpdated.prototype.email = "";
|
|
2333
|
+
|
|
2334
|
+
/**
|
|
2335
|
+
* Creates a new UserPasswordUpdated instance using the specified properties.
|
|
815
2336
|
* @function create
|
|
816
|
-
* @memberof
|
|
2337
|
+
* @memberof UserPasswordUpdated
|
|
817
2338
|
* @static
|
|
818
|
-
* @param {
|
|
819
|
-
* @returns {
|
|
2339
|
+
* @param {IUserPasswordUpdated=} [properties] Properties to set
|
|
2340
|
+
* @returns {UserPasswordUpdated} UserPasswordUpdated instance
|
|
820
2341
|
*/
|
|
821
|
-
|
|
822
|
-
return new
|
|
2342
|
+
UserPasswordUpdated.create = function create(properties) {
|
|
2343
|
+
return new UserPasswordUpdated(properties);
|
|
823
2344
|
};
|
|
824
2345
|
|
|
825
2346
|
/**
|
|
826
|
-
* Encodes the specified
|
|
2347
|
+
* Encodes the specified UserPasswordUpdated message. Does not implicitly {@link UserPasswordUpdated.verify|verify} messages.
|
|
827
2348
|
* @function encode
|
|
828
|
-
* @memberof
|
|
2349
|
+
* @memberof UserPasswordUpdated
|
|
829
2350
|
* @static
|
|
830
|
-
* @param {
|
|
2351
|
+
* @param {IUserPasswordUpdated} message UserPasswordUpdated message or plain object to encode
|
|
831
2352
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
832
2353
|
* @returns {$protobuf.Writer} Writer
|
|
833
2354
|
*/
|
|
834
|
-
|
|
2355
|
+
UserPasswordUpdated.encode = function encode(message, writer) {
|
|
835
2356
|
if (!writer)
|
|
836
2357
|
writer = $Writer.create();
|
|
837
|
-
if (message.
|
|
838
|
-
writer.uint32(/* id 1, wireType
|
|
2358
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
2359
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
|
|
839
2360
|
if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
|
|
840
2361
|
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.updatedOn);
|
|
2362
|
+
if (message.email != null && message.hasOwnProperty("email"))
|
|
2363
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.email);
|
|
841
2364
|
return writer;
|
|
842
2365
|
};
|
|
843
2366
|
|
|
844
2367
|
/**
|
|
845
|
-
* Encodes the specified
|
|
2368
|
+
* Encodes the specified UserPasswordUpdated message, length delimited. Does not implicitly {@link UserPasswordUpdated.verify|verify} messages.
|
|
846
2369
|
* @function encodeDelimited
|
|
847
|
-
* @memberof
|
|
2370
|
+
* @memberof UserPasswordUpdated
|
|
848
2371
|
* @static
|
|
849
|
-
* @param {
|
|
2372
|
+
* @param {IUserPasswordUpdated} message UserPasswordUpdated message or plain object to encode
|
|
850
2373
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
851
2374
|
* @returns {$protobuf.Writer} Writer
|
|
852
2375
|
*/
|
|
853
|
-
|
|
2376
|
+
UserPasswordUpdated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
854
2377
|
return this.encode(message, writer).ldelim();
|
|
855
2378
|
};
|
|
856
2379
|
|
|
857
2380
|
/**
|
|
858
|
-
* Decodes a
|
|
2381
|
+
* Decodes a UserPasswordUpdated message from the specified reader or buffer.
|
|
859
2382
|
* @function decode
|
|
860
|
-
* @memberof
|
|
2383
|
+
* @memberof UserPasswordUpdated
|
|
861
2384
|
* @static
|
|
862
2385
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
863
2386
|
* @param {number} [length] Message length if known beforehand
|
|
864
|
-
* @returns {
|
|
2387
|
+
* @returns {UserPasswordUpdated} UserPasswordUpdated
|
|
865
2388
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
866
2389
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
867
2390
|
*/
|
|
868
|
-
|
|
2391
|
+
UserPasswordUpdated.decode = function decode(reader, length) {
|
|
869
2392
|
if (!(reader instanceof $Reader))
|
|
870
2393
|
reader = $Reader.create(reader);
|
|
871
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.
|
|
2394
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserPasswordUpdated();
|
|
872
2395
|
while (reader.pos < end) {
|
|
873
2396
|
var tag = reader.uint32();
|
|
874
2397
|
switch (tag >>> 3) {
|
|
875
2398
|
case 1:
|
|
876
|
-
message.
|
|
2399
|
+
message.userId = reader.string();
|
|
877
2400
|
break;
|
|
878
2401
|
case 2:
|
|
879
2402
|
message.updatedOn = reader.uint64();
|
|
880
2403
|
break;
|
|
2404
|
+
case 3:
|
|
2405
|
+
message.email = reader.string();
|
|
2406
|
+
break;
|
|
881
2407
|
default:
|
|
882
2408
|
reader.skipType(tag & 7);
|
|
883
2409
|
break;
|
|
@@ -887,55 +2413,58 @@ $root.SubscriptionCancelled = (function() {
|
|
|
887
2413
|
};
|
|
888
2414
|
|
|
889
2415
|
/**
|
|
890
|
-
* Decodes a
|
|
2416
|
+
* Decodes a UserPasswordUpdated message from the specified reader or buffer, length delimited.
|
|
891
2417
|
* @function decodeDelimited
|
|
892
|
-
* @memberof
|
|
2418
|
+
* @memberof UserPasswordUpdated
|
|
893
2419
|
* @static
|
|
894
2420
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
895
|
-
* @returns {
|
|
2421
|
+
* @returns {UserPasswordUpdated} UserPasswordUpdated
|
|
896
2422
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
897
2423
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
898
2424
|
*/
|
|
899
|
-
|
|
2425
|
+
UserPasswordUpdated.decodeDelimited = function decodeDelimited(reader) {
|
|
900
2426
|
if (!(reader instanceof $Reader))
|
|
901
2427
|
reader = new $Reader(reader);
|
|
902
2428
|
return this.decode(reader, reader.uint32());
|
|
903
2429
|
};
|
|
904
2430
|
|
|
905
2431
|
/**
|
|
906
|
-
* Verifies a
|
|
2432
|
+
* Verifies a UserPasswordUpdated message.
|
|
907
2433
|
* @function verify
|
|
908
|
-
* @memberof
|
|
2434
|
+
* @memberof UserPasswordUpdated
|
|
909
2435
|
* @static
|
|
910
2436
|
* @param {Object.<string,*>} message Plain object to verify
|
|
911
2437
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
912
2438
|
*/
|
|
913
|
-
|
|
2439
|
+
UserPasswordUpdated.verify = function verify(message) {
|
|
914
2440
|
if (typeof message !== "object" || message === null)
|
|
915
2441
|
return "object expected";
|
|
916
|
-
if (message.
|
|
917
|
-
if (!$util.
|
|
918
|
-
return "
|
|
2442
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
2443
|
+
if (!$util.isString(message.userId))
|
|
2444
|
+
return "userId: string expected";
|
|
919
2445
|
if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
|
|
920
2446
|
if (!$util.isInteger(message.updatedOn) && !(message.updatedOn && $util.isInteger(message.updatedOn.low) && $util.isInteger(message.updatedOn.high)))
|
|
921
2447
|
return "updatedOn: integer|Long expected";
|
|
2448
|
+
if (message.email != null && message.hasOwnProperty("email"))
|
|
2449
|
+
if (!$util.isString(message.email))
|
|
2450
|
+
return "email: string expected";
|
|
922
2451
|
return null;
|
|
923
2452
|
};
|
|
924
2453
|
|
|
925
2454
|
/**
|
|
926
|
-
* Creates a
|
|
2455
|
+
* Creates a UserPasswordUpdated message from a plain object. Also converts values to their respective internal types.
|
|
927
2456
|
* @function fromObject
|
|
928
|
-
* @memberof
|
|
2457
|
+
* @memberof UserPasswordUpdated
|
|
929
2458
|
* @static
|
|
930
2459
|
* @param {Object.<string,*>} object Plain object
|
|
931
|
-
* @returns {
|
|
2460
|
+
* @returns {UserPasswordUpdated} UserPasswordUpdated
|
|
932
2461
|
*/
|
|
933
|
-
|
|
934
|
-
if (object instanceof $root.
|
|
2462
|
+
UserPasswordUpdated.fromObject = function fromObject(object) {
|
|
2463
|
+
if (object instanceof $root.UserPasswordUpdated)
|
|
935
2464
|
return object;
|
|
936
|
-
var message = new $root.
|
|
937
|
-
if (object.
|
|
938
|
-
message.
|
|
2465
|
+
var message = new $root.UserPasswordUpdated();
|
|
2466
|
+
if (object.userId != null)
|
|
2467
|
+
message.userId = String(object.userId);
|
|
939
2468
|
if (object.updatedOn != null)
|
|
940
2469
|
if ($util.Long)
|
|
941
2470
|
(message.updatedOn = $util.Long.fromValue(object.updatedOn)).unsigned = true;
|
|
@@ -945,52 +2474,57 @@ $root.SubscriptionCancelled = (function() {
|
|
|
945
2474
|
message.updatedOn = object.updatedOn;
|
|
946
2475
|
else if (typeof object.updatedOn === "object")
|
|
947
2476
|
message.updatedOn = new $util.LongBits(object.updatedOn.low >>> 0, object.updatedOn.high >>> 0).toNumber(true);
|
|
2477
|
+
if (object.email != null)
|
|
2478
|
+
message.email = String(object.email);
|
|
948
2479
|
return message;
|
|
949
2480
|
};
|
|
950
2481
|
|
|
951
2482
|
/**
|
|
952
|
-
* Creates a plain object from a
|
|
2483
|
+
* Creates a plain object from a UserPasswordUpdated message. Also converts values to other types if specified.
|
|
953
2484
|
* @function toObject
|
|
954
|
-
* @memberof
|
|
2485
|
+
* @memberof UserPasswordUpdated
|
|
955
2486
|
* @static
|
|
956
|
-
* @param {
|
|
2487
|
+
* @param {UserPasswordUpdated} message UserPasswordUpdated
|
|
957
2488
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
958
2489
|
* @returns {Object.<string,*>} Plain object
|
|
959
2490
|
*/
|
|
960
|
-
|
|
2491
|
+
UserPasswordUpdated.toObject = function toObject(message, options) {
|
|
961
2492
|
if (!options)
|
|
962
2493
|
options = {};
|
|
963
2494
|
var object = {};
|
|
964
2495
|
if (options.defaults) {
|
|
965
|
-
object.
|
|
2496
|
+
object.userId = "";
|
|
966
2497
|
if ($util.Long) {
|
|
967
2498
|
var long = new $util.Long(0, 0, true);
|
|
968
2499
|
object.updatedOn = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
969
2500
|
} else
|
|
970
2501
|
object.updatedOn = options.longs === String ? "0" : 0;
|
|
2502
|
+
object.email = "";
|
|
971
2503
|
}
|
|
972
|
-
if (message.
|
|
973
|
-
object.
|
|
2504
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
2505
|
+
object.userId = message.userId;
|
|
974
2506
|
if (message.updatedOn != null && message.hasOwnProperty("updatedOn"))
|
|
975
2507
|
if (typeof message.updatedOn === "number")
|
|
976
2508
|
object.updatedOn = options.longs === String ? String(message.updatedOn) : message.updatedOn;
|
|
977
2509
|
else
|
|
978
2510
|
object.updatedOn = options.longs === String ? $util.Long.prototype.toString.call(message.updatedOn) : options.longs === Number ? new $util.LongBits(message.updatedOn.low >>> 0, message.updatedOn.high >>> 0).toNumber(true) : message.updatedOn;
|
|
2511
|
+
if (message.email != null && message.hasOwnProperty("email"))
|
|
2512
|
+
object.email = message.email;
|
|
979
2513
|
return object;
|
|
980
2514
|
};
|
|
981
2515
|
|
|
982
2516
|
/**
|
|
983
|
-
* Converts this
|
|
2517
|
+
* Converts this UserPasswordUpdated to JSON.
|
|
984
2518
|
* @function toJSON
|
|
985
|
-
* @memberof
|
|
2519
|
+
* @memberof UserPasswordUpdated
|
|
986
2520
|
* @instance
|
|
987
2521
|
* @returns {Object.<string,*>} JSON object
|
|
988
2522
|
*/
|
|
989
|
-
|
|
2523
|
+
UserPasswordUpdated.prototype.toJSON = function toJSON() {
|
|
990
2524
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
991
2525
|
};
|
|
992
2526
|
|
|
993
|
-
return
|
|
2527
|
+
return UserPasswordUpdated;
|
|
994
2528
|
})();
|
|
995
2529
|
|
|
996
2530
|
module.exports = $root;
|