@headspace/protos-events 1.134.0 → 1.136.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.
Files changed (3) hide show
  1. package/lib/index.d.ts +408 -0
  2. package/lib/index.js +1084 -0
  3. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -16625,6 +16625,866 @@ $root.ContentfulOrderedCategoriesUpdated = (function() {
16625
16625
  return ContentfulOrderedCategoriesUpdated;
16626
16626
  })();
16627
16627
 
16628
+ $root.ContentfulActivityVariationCreated = (function() {
16629
+
16630
+ /**
16631
+ * Properties of a ContentfulActivityVariationCreated.
16632
+ * @exports IContentfulActivityVariationCreated
16633
+ * @interface IContentfulActivityVariationCreated
16634
+ * @property {string|null} [slug] ContentfulActivityVariationCreated slug
16635
+ * @property {Object.<string,number>|null} [duration] ContentfulActivityVariationCreated duration
16636
+ * @property {Object.<string,contentful.IIdReference>|null} [media] ContentfulActivityVariationCreated media
16637
+ * @property {number|Long|null} [createdAt] ContentfulActivityVariationCreated createdAt
16638
+ */
16639
+
16640
+ /**
16641
+ * Constructs a new ContentfulActivityVariationCreated.
16642
+ * @exports ContentfulActivityVariationCreated
16643
+ * @classdesc Represents a ContentfulActivityVariationCreated.
16644
+ * @implements IContentfulActivityVariationCreated
16645
+ * @constructor
16646
+ * @param {IContentfulActivityVariationCreated=} [properties] Properties to set
16647
+ */
16648
+ function ContentfulActivityVariationCreated(properties) {
16649
+ this.duration = {};
16650
+ this.media = {};
16651
+ if (properties)
16652
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
16653
+ if (properties[keys[i]] != null)
16654
+ this[keys[i]] = properties[keys[i]];
16655
+ }
16656
+
16657
+ /**
16658
+ * ContentfulActivityVariationCreated slug.
16659
+ * @member {string} slug
16660
+ * @memberof ContentfulActivityVariationCreated
16661
+ * @instance
16662
+ */
16663
+ ContentfulActivityVariationCreated.prototype.slug = "";
16664
+
16665
+ /**
16666
+ * ContentfulActivityVariationCreated duration.
16667
+ * @member {Object.<string,number>} duration
16668
+ * @memberof ContentfulActivityVariationCreated
16669
+ * @instance
16670
+ */
16671
+ ContentfulActivityVariationCreated.prototype.duration = $util.emptyObject;
16672
+
16673
+ /**
16674
+ * ContentfulActivityVariationCreated media.
16675
+ * @member {Object.<string,contentful.IIdReference>} media
16676
+ * @memberof ContentfulActivityVariationCreated
16677
+ * @instance
16678
+ */
16679
+ ContentfulActivityVariationCreated.prototype.media = $util.emptyObject;
16680
+
16681
+ /**
16682
+ * ContentfulActivityVariationCreated createdAt.
16683
+ * @member {number|Long} createdAt
16684
+ * @memberof ContentfulActivityVariationCreated
16685
+ * @instance
16686
+ */
16687
+ ContentfulActivityVariationCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
16688
+
16689
+ /**
16690
+ * Creates a new ContentfulActivityVariationCreated instance using the specified properties.
16691
+ * @function create
16692
+ * @memberof ContentfulActivityVariationCreated
16693
+ * @static
16694
+ * @param {IContentfulActivityVariationCreated=} [properties] Properties to set
16695
+ * @returns {ContentfulActivityVariationCreated} ContentfulActivityVariationCreated instance
16696
+ */
16697
+ ContentfulActivityVariationCreated.create = function create(properties) {
16698
+ return new ContentfulActivityVariationCreated(properties);
16699
+ };
16700
+
16701
+ /**
16702
+ * Encodes the specified ContentfulActivityVariationCreated message. Does not implicitly {@link ContentfulActivityVariationCreated.verify|verify} messages.
16703
+ * @function encode
16704
+ * @memberof ContentfulActivityVariationCreated
16705
+ * @static
16706
+ * @param {IContentfulActivityVariationCreated} message ContentfulActivityVariationCreated message or plain object to encode
16707
+ * @param {$protobuf.Writer} [writer] Writer to encode to
16708
+ * @returns {$protobuf.Writer} Writer
16709
+ */
16710
+ ContentfulActivityVariationCreated.encode = function encode(message, writer) {
16711
+ if (!writer)
16712
+ writer = $Writer.create();
16713
+ if (message.slug != null && message.hasOwnProperty("slug"))
16714
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
16715
+ if (message.duration != null && message.hasOwnProperty("duration"))
16716
+ for (var keys = Object.keys(message.duration), i = 0; i < keys.length; ++i)
16717
+ writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 0 =*/16).int32(message.duration[keys[i]]).ldelim();
16718
+ if (message.media != null && message.hasOwnProperty("media"))
16719
+ for (var keys = Object.keys(message.media), i = 0; i < keys.length; ++i) {
16720
+ writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
16721
+ $root.contentful.IdReference.encode(message.media[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
16722
+ }
16723
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
16724
+ writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.createdAt);
16725
+ return writer;
16726
+ };
16727
+
16728
+ /**
16729
+ * Encodes the specified ContentfulActivityVariationCreated message, length delimited. Does not implicitly {@link ContentfulActivityVariationCreated.verify|verify} messages.
16730
+ * @function encodeDelimited
16731
+ * @memberof ContentfulActivityVariationCreated
16732
+ * @static
16733
+ * @param {IContentfulActivityVariationCreated} message ContentfulActivityVariationCreated message or plain object to encode
16734
+ * @param {$protobuf.Writer} [writer] Writer to encode to
16735
+ * @returns {$protobuf.Writer} Writer
16736
+ */
16737
+ ContentfulActivityVariationCreated.encodeDelimited = function encodeDelimited(message, writer) {
16738
+ return this.encode(message, writer).ldelim();
16739
+ };
16740
+
16741
+ /**
16742
+ * Decodes a ContentfulActivityVariationCreated message from the specified reader or buffer.
16743
+ * @function decode
16744
+ * @memberof ContentfulActivityVariationCreated
16745
+ * @static
16746
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
16747
+ * @param {number} [length] Message length if known beforehand
16748
+ * @returns {ContentfulActivityVariationCreated} ContentfulActivityVariationCreated
16749
+ * @throws {Error} If the payload is not a reader or valid buffer
16750
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
16751
+ */
16752
+ ContentfulActivityVariationCreated.decode = function decode(reader, length) {
16753
+ if (!(reader instanceof $Reader))
16754
+ reader = $Reader.create(reader);
16755
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulActivityVariationCreated(), key;
16756
+ while (reader.pos < end) {
16757
+ var tag = reader.uint32();
16758
+ switch (tag >>> 3) {
16759
+ case 1:
16760
+ message.slug = reader.string();
16761
+ break;
16762
+ case 2:
16763
+ reader.skip().pos++;
16764
+ if (message.duration === $util.emptyObject)
16765
+ message.duration = {};
16766
+ key = reader.string();
16767
+ reader.pos++;
16768
+ message.duration[key] = reader.int32();
16769
+ break;
16770
+ case 3:
16771
+ reader.skip().pos++;
16772
+ if (message.media === $util.emptyObject)
16773
+ message.media = {};
16774
+ key = reader.string();
16775
+ reader.pos++;
16776
+ message.media[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
16777
+ break;
16778
+ case 4:
16779
+ message.createdAt = reader.uint64();
16780
+ break;
16781
+ default:
16782
+ reader.skipType(tag & 7);
16783
+ break;
16784
+ }
16785
+ }
16786
+ return message;
16787
+ };
16788
+
16789
+ /**
16790
+ * Decodes a ContentfulActivityVariationCreated message from the specified reader or buffer, length delimited.
16791
+ * @function decodeDelimited
16792
+ * @memberof ContentfulActivityVariationCreated
16793
+ * @static
16794
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
16795
+ * @returns {ContentfulActivityVariationCreated} ContentfulActivityVariationCreated
16796
+ * @throws {Error} If the payload is not a reader or valid buffer
16797
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
16798
+ */
16799
+ ContentfulActivityVariationCreated.decodeDelimited = function decodeDelimited(reader) {
16800
+ if (!(reader instanceof $Reader))
16801
+ reader = new $Reader(reader);
16802
+ return this.decode(reader, reader.uint32());
16803
+ };
16804
+
16805
+ /**
16806
+ * Verifies a ContentfulActivityVariationCreated message.
16807
+ * @function verify
16808
+ * @memberof ContentfulActivityVariationCreated
16809
+ * @static
16810
+ * @param {Object.<string,*>} message Plain object to verify
16811
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
16812
+ */
16813
+ ContentfulActivityVariationCreated.verify = function verify(message) {
16814
+ if (typeof message !== "object" || message === null)
16815
+ return "object expected";
16816
+ if (message.slug != null && message.hasOwnProperty("slug"))
16817
+ if (!$util.isString(message.slug))
16818
+ return "slug: string expected";
16819
+ if (message.duration != null && message.hasOwnProperty("duration")) {
16820
+ if (!$util.isObject(message.duration))
16821
+ return "duration: object expected";
16822
+ var key = Object.keys(message.duration);
16823
+ for (var i = 0; i < key.length; ++i)
16824
+ if (!$util.isInteger(message.duration[key[i]]))
16825
+ return "duration: integer{k:string} expected";
16826
+ }
16827
+ if (message.media != null && message.hasOwnProperty("media")) {
16828
+ if (!$util.isObject(message.media))
16829
+ return "media: object expected";
16830
+ var key = Object.keys(message.media);
16831
+ for (var i = 0; i < key.length; ++i) {
16832
+ var error = $root.contentful.IdReference.verify(message.media[key[i]]);
16833
+ if (error)
16834
+ return "media." + error;
16835
+ }
16836
+ }
16837
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
16838
+ if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
16839
+ return "createdAt: integer|Long expected";
16840
+ return null;
16841
+ };
16842
+
16843
+ /**
16844
+ * Creates a ContentfulActivityVariationCreated message from a plain object. Also converts values to their respective internal types.
16845
+ * @function fromObject
16846
+ * @memberof ContentfulActivityVariationCreated
16847
+ * @static
16848
+ * @param {Object.<string,*>} object Plain object
16849
+ * @returns {ContentfulActivityVariationCreated} ContentfulActivityVariationCreated
16850
+ */
16851
+ ContentfulActivityVariationCreated.fromObject = function fromObject(object) {
16852
+ if (object instanceof $root.ContentfulActivityVariationCreated)
16853
+ return object;
16854
+ var message = new $root.ContentfulActivityVariationCreated();
16855
+ if (object.slug != null)
16856
+ message.slug = String(object.slug);
16857
+ if (object.duration) {
16858
+ if (typeof object.duration !== "object")
16859
+ throw TypeError(".ContentfulActivityVariationCreated.duration: object expected");
16860
+ message.duration = {};
16861
+ for (var keys = Object.keys(object.duration), i = 0; i < keys.length; ++i)
16862
+ message.duration[keys[i]] = object.duration[keys[i]] | 0;
16863
+ }
16864
+ if (object.media) {
16865
+ if (typeof object.media !== "object")
16866
+ throw TypeError(".ContentfulActivityVariationCreated.media: object expected");
16867
+ message.media = {};
16868
+ for (var keys = Object.keys(object.media), i = 0; i < keys.length; ++i) {
16869
+ if (typeof object.media[keys[i]] !== "object")
16870
+ throw TypeError(".ContentfulActivityVariationCreated.media: object expected");
16871
+ message.media[keys[i]] = $root.contentful.IdReference.fromObject(object.media[keys[i]]);
16872
+ }
16873
+ }
16874
+ if (object.createdAt != null)
16875
+ if ($util.Long)
16876
+ (message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
16877
+ else if (typeof object.createdAt === "string")
16878
+ message.createdAt = parseInt(object.createdAt, 10);
16879
+ else if (typeof object.createdAt === "number")
16880
+ message.createdAt = object.createdAt;
16881
+ else if (typeof object.createdAt === "object")
16882
+ message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
16883
+ return message;
16884
+ };
16885
+
16886
+ /**
16887
+ * Creates a plain object from a ContentfulActivityVariationCreated message. Also converts values to other types if specified.
16888
+ * @function toObject
16889
+ * @memberof ContentfulActivityVariationCreated
16890
+ * @static
16891
+ * @param {ContentfulActivityVariationCreated} message ContentfulActivityVariationCreated
16892
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
16893
+ * @returns {Object.<string,*>} Plain object
16894
+ */
16895
+ ContentfulActivityVariationCreated.toObject = function toObject(message, options) {
16896
+ if (!options)
16897
+ options = {};
16898
+ var object = {};
16899
+ if (options.objects || options.defaults) {
16900
+ object.duration = {};
16901
+ object.media = {};
16902
+ }
16903
+ if (options.defaults) {
16904
+ object.slug = "";
16905
+ if ($util.Long) {
16906
+ var long = new $util.Long(0, 0, true);
16907
+ object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
16908
+ } else
16909
+ object.createdAt = options.longs === String ? "0" : 0;
16910
+ }
16911
+ if (message.slug != null && message.hasOwnProperty("slug"))
16912
+ object.slug = message.slug;
16913
+ var keys2;
16914
+ if (message.duration && (keys2 = Object.keys(message.duration)).length) {
16915
+ object.duration = {};
16916
+ for (var j = 0; j < keys2.length; ++j)
16917
+ object.duration[keys2[j]] = message.duration[keys2[j]];
16918
+ }
16919
+ if (message.media && (keys2 = Object.keys(message.media)).length) {
16920
+ object.media = {};
16921
+ for (var j = 0; j < keys2.length; ++j)
16922
+ object.media[keys2[j]] = $root.contentful.IdReference.toObject(message.media[keys2[j]], options);
16923
+ }
16924
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
16925
+ if (typeof message.createdAt === "number")
16926
+ object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
16927
+ else
16928
+ object.createdAt = options.longs === String ? $util.Long.prototype.toString.call(message.createdAt) : options.longs === Number ? new $util.LongBits(message.createdAt.low >>> 0, message.createdAt.high >>> 0).toNumber(true) : message.createdAt;
16929
+ return object;
16930
+ };
16931
+
16932
+ /**
16933
+ * Converts this ContentfulActivityVariationCreated to JSON.
16934
+ * @function toJSON
16935
+ * @memberof ContentfulActivityVariationCreated
16936
+ * @instance
16937
+ * @returns {Object.<string,*>} JSON object
16938
+ */
16939
+ ContentfulActivityVariationCreated.prototype.toJSON = function toJSON() {
16940
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
16941
+ };
16942
+
16943
+ return ContentfulActivityVariationCreated;
16944
+ })();
16945
+
16946
+ $root.ContentfulActivityVariationUpdated = (function() {
16947
+
16948
+ /**
16949
+ * Properties of a ContentfulActivityVariationUpdated.
16950
+ * @exports IContentfulActivityVariationUpdated
16951
+ * @interface IContentfulActivityVariationUpdated
16952
+ * @property {string|null} [slug] ContentfulActivityVariationUpdated slug
16953
+ * @property {Object.<string,number>|null} [duration] ContentfulActivityVariationUpdated duration
16954
+ * @property {Object.<string,contentful.IIdReference>|null} [media] ContentfulActivityVariationUpdated media
16955
+ * @property {number|Long|null} [updatedAt] ContentfulActivityVariationUpdated updatedAt
16956
+ */
16957
+
16958
+ /**
16959
+ * Constructs a new ContentfulActivityVariationUpdated.
16960
+ * @exports ContentfulActivityVariationUpdated
16961
+ * @classdesc Represents a ContentfulActivityVariationUpdated.
16962
+ * @implements IContentfulActivityVariationUpdated
16963
+ * @constructor
16964
+ * @param {IContentfulActivityVariationUpdated=} [properties] Properties to set
16965
+ */
16966
+ function ContentfulActivityVariationUpdated(properties) {
16967
+ this.duration = {};
16968
+ this.media = {};
16969
+ if (properties)
16970
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
16971
+ if (properties[keys[i]] != null)
16972
+ this[keys[i]] = properties[keys[i]];
16973
+ }
16974
+
16975
+ /**
16976
+ * ContentfulActivityVariationUpdated slug.
16977
+ * @member {string} slug
16978
+ * @memberof ContentfulActivityVariationUpdated
16979
+ * @instance
16980
+ */
16981
+ ContentfulActivityVariationUpdated.prototype.slug = "";
16982
+
16983
+ /**
16984
+ * ContentfulActivityVariationUpdated duration.
16985
+ * @member {Object.<string,number>} duration
16986
+ * @memberof ContentfulActivityVariationUpdated
16987
+ * @instance
16988
+ */
16989
+ ContentfulActivityVariationUpdated.prototype.duration = $util.emptyObject;
16990
+
16991
+ /**
16992
+ * ContentfulActivityVariationUpdated media.
16993
+ * @member {Object.<string,contentful.IIdReference>} media
16994
+ * @memberof ContentfulActivityVariationUpdated
16995
+ * @instance
16996
+ */
16997
+ ContentfulActivityVariationUpdated.prototype.media = $util.emptyObject;
16998
+
16999
+ /**
17000
+ * ContentfulActivityVariationUpdated updatedAt.
17001
+ * @member {number|Long} updatedAt
17002
+ * @memberof ContentfulActivityVariationUpdated
17003
+ * @instance
17004
+ */
17005
+ ContentfulActivityVariationUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
17006
+
17007
+ /**
17008
+ * Creates a new ContentfulActivityVariationUpdated instance using the specified properties.
17009
+ * @function create
17010
+ * @memberof ContentfulActivityVariationUpdated
17011
+ * @static
17012
+ * @param {IContentfulActivityVariationUpdated=} [properties] Properties to set
17013
+ * @returns {ContentfulActivityVariationUpdated} ContentfulActivityVariationUpdated instance
17014
+ */
17015
+ ContentfulActivityVariationUpdated.create = function create(properties) {
17016
+ return new ContentfulActivityVariationUpdated(properties);
17017
+ };
17018
+
17019
+ /**
17020
+ * Encodes the specified ContentfulActivityVariationUpdated message. Does not implicitly {@link ContentfulActivityVariationUpdated.verify|verify} messages.
17021
+ * @function encode
17022
+ * @memberof ContentfulActivityVariationUpdated
17023
+ * @static
17024
+ * @param {IContentfulActivityVariationUpdated} message ContentfulActivityVariationUpdated message or plain object to encode
17025
+ * @param {$protobuf.Writer} [writer] Writer to encode to
17026
+ * @returns {$protobuf.Writer} Writer
17027
+ */
17028
+ ContentfulActivityVariationUpdated.encode = function encode(message, writer) {
17029
+ if (!writer)
17030
+ writer = $Writer.create();
17031
+ if (message.slug != null && message.hasOwnProperty("slug"))
17032
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
17033
+ if (message.duration != null && message.hasOwnProperty("duration"))
17034
+ for (var keys = Object.keys(message.duration), i = 0; i < keys.length; ++i)
17035
+ writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 0 =*/16).int32(message.duration[keys[i]]).ldelim();
17036
+ if (message.media != null && message.hasOwnProperty("media"))
17037
+ for (var keys = Object.keys(message.media), i = 0; i < keys.length; ++i) {
17038
+ writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
17039
+ $root.contentful.IdReference.encode(message.media[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
17040
+ }
17041
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
17042
+ writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.updatedAt);
17043
+ return writer;
17044
+ };
17045
+
17046
+ /**
17047
+ * Encodes the specified ContentfulActivityVariationUpdated message, length delimited. Does not implicitly {@link ContentfulActivityVariationUpdated.verify|verify} messages.
17048
+ * @function encodeDelimited
17049
+ * @memberof ContentfulActivityVariationUpdated
17050
+ * @static
17051
+ * @param {IContentfulActivityVariationUpdated} message ContentfulActivityVariationUpdated message or plain object to encode
17052
+ * @param {$protobuf.Writer} [writer] Writer to encode to
17053
+ * @returns {$protobuf.Writer} Writer
17054
+ */
17055
+ ContentfulActivityVariationUpdated.encodeDelimited = function encodeDelimited(message, writer) {
17056
+ return this.encode(message, writer).ldelim();
17057
+ };
17058
+
17059
+ /**
17060
+ * Decodes a ContentfulActivityVariationUpdated message from the specified reader or buffer.
17061
+ * @function decode
17062
+ * @memberof ContentfulActivityVariationUpdated
17063
+ * @static
17064
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
17065
+ * @param {number} [length] Message length if known beforehand
17066
+ * @returns {ContentfulActivityVariationUpdated} ContentfulActivityVariationUpdated
17067
+ * @throws {Error} If the payload is not a reader or valid buffer
17068
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
17069
+ */
17070
+ ContentfulActivityVariationUpdated.decode = function decode(reader, length) {
17071
+ if (!(reader instanceof $Reader))
17072
+ reader = $Reader.create(reader);
17073
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulActivityVariationUpdated(), key;
17074
+ while (reader.pos < end) {
17075
+ var tag = reader.uint32();
17076
+ switch (tag >>> 3) {
17077
+ case 1:
17078
+ message.slug = reader.string();
17079
+ break;
17080
+ case 2:
17081
+ reader.skip().pos++;
17082
+ if (message.duration === $util.emptyObject)
17083
+ message.duration = {};
17084
+ key = reader.string();
17085
+ reader.pos++;
17086
+ message.duration[key] = reader.int32();
17087
+ break;
17088
+ case 3:
17089
+ reader.skip().pos++;
17090
+ if (message.media === $util.emptyObject)
17091
+ message.media = {};
17092
+ key = reader.string();
17093
+ reader.pos++;
17094
+ message.media[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
17095
+ break;
17096
+ case 4:
17097
+ message.updatedAt = reader.uint64();
17098
+ break;
17099
+ default:
17100
+ reader.skipType(tag & 7);
17101
+ break;
17102
+ }
17103
+ }
17104
+ return message;
17105
+ };
17106
+
17107
+ /**
17108
+ * Decodes a ContentfulActivityVariationUpdated message from the specified reader or buffer, length delimited.
17109
+ * @function decodeDelimited
17110
+ * @memberof ContentfulActivityVariationUpdated
17111
+ * @static
17112
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
17113
+ * @returns {ContentfulActivityVariationUpdated} ContentfulActivityVariationUpdated
17114
+ * @throws {Error} If the payload is not a reader or valid buffer
17115
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
17116
+ */
17117
+ ContentfulActivityVariationUpdated.decodeDelimited = function decodeDelimited(reader) {
17118
+ if (!(reader instanceof $Reader))
17119
+ reader = new $Reader(reader);
17120
+ return this.decode(reader, reader.uint32());
17121
+ };
17122
+
17123
+ /**
17124
+ * Verifies a ContentfulActivityVariationUpdated message.
17125
+ * @function verify
17126
+ * @memberof ContentfulActivityVariationUpdated
17127
+ * @static
17128
+ * @param {Object.<string,*>} message Plain object to verify
17129
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
17130
+ */
17131
+ ContentfulActivityVariationUpdated.verify = function verify(message) {
17132
+ if (typeof message !== "object" || message === null)
17133
+ return "object expected";
17134
+ if (message.slug != null && message.hasOwnProperty("slug"))
17135
+ if (!$util.isString(message.slug))
17136
+ return "slug: string expected";
17137
+ if (message.duration != null && message.hasOwnProperty("duration")) {
17138
+ if (!$util.isObject(message.duration))
17139
+ return "duration: object expected";
17140
+ var key = Object.keys(message.duration);
17141
+ for (var i = 0; i < key.length; ++i)
17142
+ if (!$util.isInteger(message.duration[key[i]]))
17143
+ return "duration: integer{k:string} expected";
17144
+ }
17145
+ if (message.media != null && message.hasOwnProperty("media")) {
17146
+ if (!$util.isObject(message.media))
17147
+ return "media: object expected";
17148
+ var key = Object.keys(message.media);
17149
+ for (var i = 0; i < key.length; ++i) {
17150
+ var error = $root.contentful.IdReference.verify(message.media[key[i]]);
17151
+ if (error)
17152
+ return "media." + error;
17153
+ }
17154
+ }
17155
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
17156
+ if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
17157
+ return "updatedAt: integer|Long expected";
17158
+ return null;
17159
+ };
17160
+
17161
+ /**
17162
+ * Creates a ContentfulActivityVariationUpdated message from a plain object. Also converts values to their respective internal types.
17163
+ * @function fromObject
17164
+ * @memberof ContentfulActivityVariationUpdated
17165
+ * @static
17166
+ * @param {Object.<string,*>} object Plain object
17167
+ * @returns {ContentfulActivityVariationUpdated} ContentfulActivityVariationUpdated
17168
+ */
17169
+ ContentfulActivityVariationUpdated.fromObject = function fromObject(object) {
17170
+ if (object instanceof $root.ContentfulActivityVariationUpdated)
17171
+ return object;
17172
+ var message = new $root.ContentfulActivityVariationUpdated();
17173
+ if (object.slug != null)
17174
+ message.slug = String(object.slug);
17175
+ if (object.duration) {
17176
+ if (typeof object.duration !== "object")
17177
+ throw TypeError(".ContentfulActivityVariationUpdated.duration: object expected");
17178
+ message.duration = {};
17179
+ for (var keys = Object.keys(object.duration), i = 0; i < keys.length; ++i)
17180
+ message.duration[keys[i]] = object.duration[keys[i]] | 0;
17181
+ }
17182
+ if (object.media) {
17183
+ if (typeof object.media !== "object")
17184
+ throw TypeError(".ContentfulActivityVariationUpdated.media: object expected");
17185
+ message.media = {};
17186
+ for (var keys = Object.keys(object.media), i = 0; i < keys.length; ++i) {
17187
+ if (typeof object.media[keys[i]] !== "object")
17188
+ throw TypeError(".ContentfulActivityVariationUpdated.media: object expected");
17189
+ message.media[keys[i]] = $root.contentful.IdReference.fromObject(object.media[keys[i]]);
17190
+ }
17191
+ }
17192
+ if (object.updatedAt != null)
17193
+ if ($util.Long)
17194
+ (message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
17195
+ else if (typeof object.updatedAt === "string")
17196
+ message.updatedAt = parseInt(object.updatedAt, 10);
17197
+ else if (typeof object.updatedAt === "number")
17198
+ message.updatedAt = object.updatedAt;
17199
+ else if (typeof object.updatedAt === "object")
17200
+ message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
17201
+ return message;
17202
+ };
17203
+
17204
+ /**
17205
+ * Creates a plain object from a ContentfulActivityVariationUpdated message. Also converts values to other types if specified.
17206
+ * @function toObject
17207
+ * @memberof ContentfulActivityVariationUpdated
17208
+ * @static
17209
+ * @param {ContentfulActivityVariationUpdated} message ContentfulActivityVariationUpdated
17210
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
17211
+ * @returns {Object.<string,*>} Plain object
17212
+ */
17213
+ ContentfulActivityVariationUpdated.toObject = function toObject(message, options) {
17214
+ if (!options)
17215
+ options = {};
17216
+ var object = {};
17217
+ if (options.objects || options.defaults) {
17218
+ object.duration = {};
17219
+ object.media = {};
17220
+ }
17221
+ if (options.defaults) {
17222
+ object.slug = "";
17223
+ if ($util.Long) {
17224
+ var long = new $util.Long(0, 0, true);
17225
+ object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
17226
+ } else
17227
+ object.updatedAt = options.longs === String ? "0" : 0;
17228
+ }
17229
+ if (message.slug != null && message.hasOwnProperty("slug"))
17230
+ object.slug = message.slug;
17231
+ var keys2;
17232
+ if (message.duration && (keys2 = Object.keys(message.duration)).length) {
17233
+ object.duration = {};
17234
+ for (var j = 0; j < keys2.length; ++j)
17235
+ object.duration[keys2[j]] = message.duration[keys2[j]];
17236
+ }
17237
+ if (message.media && (keys2 = Object.keys(message.media)).length) {
17238
+ object.media = {};
17239
+ for (var j = 0; j < keys2.length; ++j)
17240
+ object.media[keys2[j]] = $root.contentful.IdReference.toObject(message.media[keys2[j]], options);
17241
+ }
17242
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
17243
+ if (typeof message.updatedAt === "number")
17244
+ object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
17245
+ else
17246
+ object.updatedAt = options.longs === String ? $util.Long.prototype.toString.call(message.updatedAt) : options.longs === Number ? new $util.LongBits(message.updatedAt.low >>> 0, message.updatedAt.high >>> 0).toNumber(true) : message.updatedAt;
17247
+ return object;
17248
+ };
17249
+
17250
+ /**
17251
+ * Converts this ContentfulActivityVariationUpdated to JSON.
17252
+ * @function toJSON
17253
+ * @memberof ContentfulActivityVariationUpdated
17254
+ * @instance
17255
+ * @returns {Object.<string,*>} JSON object
17256
+ */
17257
+ ContentfulActivityVariationUpdated.prototype.toJSON = function toJSON() {
17258
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
17259
+ };
17260
+
17261
+ return ContentfulActivityVariationUpdated;
17262
+ })();
17263
+
17264
+ $root.ContentfulActivityVariationDeleted = (function() {
17265
+
17266
+ /**
17267
+ * Properties of a ContentfulActivityVariationDeleted.
17268
+ * @exports IContentfulActivityVariationDeleted
17269
+ * @interface IContentfulActivityVariationDeleted
17270
+ * @property {string|null} [slug] ContentfulActivityVariationDeleted slug
17271
+ * @property {number|Long|null} [deletedAt] ContentfulActivityVariationDeleted deletedAt
17272
+ */
17273
+
17274
+ /**
17275
+ * Constructs a new ContentfulActivityVariationDeleted.
17276
+ * @exports ContentfulActivityVariationDeleted
17277
+ * @classdesc Represents a ContentfulActivityVariationDeleted.
17278
+ * @implements IContentfulActivityVariationDeleted
17279
+ * @constructor
17280
+ * @param {IContentfulActivityVariationDeleted=} [properties] Properties to set
17281
+ */
17282
+ function ContentfulActivityVariationDeleted(properties) {
17283
+ if (properties)
17284
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
17285
+ if (properties[keys[i]] != null)
17286
+ this[keys[i]] = properties[keys[i]];
17287
+ }
17288
+
17289
+ /**
17290
+ * ContentfulActivityVariationDeleted slug.
17291
+ * @member {string} slug
17292
+ * @memberof ContentfulActivityVariationDeleted
17293
+ * @instance
17294
+ */
17295
+ ContentfulActivityVariationDeleted.prototype.slug = "";
17296
+
17297
+ /**
17298
+ * ContentfulActivityVariationDeleted deletedAt.
17299
+ * @member {number|Long} deletedAt
17300
+ * @memberof ContentfulActivityVariationDeleted
17301
+ * @instance
17302
+ */
17303
+ ContentfulActivityVariationDeleted.prototype.deletedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
17304
+
17305
+ /**
17306
+ * Creates a new ContentfulActivityVariationDeleted instance using the specified properties.
17307
+ * @function create
17308
+ * @memberof ContentfulActivityVariationDeleted
17309
+ * @static
17310
+ * @param {IContentfulActivityVariationDeleted=} [properties] Properties to set
17311
+ * @returns {ContentfulActivityVariationDeleted} ContentfulActivityVariationDeleted instance
17312
+ */
17313
+ ContentfulActivityVariationDeleted.create = function create(properties) {
17314
+ return new ContentfulActivityVariationDeleted(properties);
17315
+ };
17316
+
17317
+ /**
17318
+ * Encodes the specified ContentfulActivityVariationDeleted message. Does not implicitly {@link ContentfulActivityVariationDeleted.verify|verify} messages.
17319
+ * @function encode
17320
+ * @memberof ContentfulActivityVariationDeleted
17321
+ * @static
17322
+ * @param {IContentfulActivityVariationDeleted} message ContentfulActivityVariationDeleted message or plain object to encode
17323
+ * @param {$protobuf.Writer} [writer] Writer to encode to
17324
+ * @returns {$protobuf.Writer} Writer
17325
+ */
17326
+ ContentfulActivityVariationDeleted.encode = function encode(message, writer) {
17327
+ if (!writer)
17328
+ writer = $Writer.create();
17329
+ if (message.slug != null && message.hasOwnProperty("slug"))
17330
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
17331
+ if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
17332
+ writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.deletedAt);
17333
+ return writer;
17334
+ };
17335
+
17336
+ /**
17337
+ * Encodes the specified ContentfulActivityVariationDeleted message, length delimited. Does not implicitly {@link ContentfulActivityVariationDeleted.verify|verify} messages.
17338
+ * @function encodeDelimited
17339
+ * @memberof ContentfulActivityVariationDeleted
17340
+ * @static
17341
+ * @param {IContentfulActivityVariationDeleted} message ContentfulActivityVariationDeleted message or plain object to encode
17342
+ * @param {$protobuf.Writer} [writer] Writer to encode to
17343
+ * @returns {$protobuf.Writer} Writer
17344
+ */
17345
+ ContentfulActivityVariationDeleted.encodeDelimited = function encodeDelimited(message, writer) {
17346
+ return this.encode(message, writer).ldelim();
17347
+ };
17348
+
17349
+ /**
17350
+ * Decodes a ContentfulActivityVariationDeleted message from the specified reader or buffer.
17351
+ * @function decode
17352
+ * @memberof ContentfulActivityVariationDeleted
17353
+ * @static
17354
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
17355
+ * @param {number} [length] Message length if known beforehand
17356
+ * @returns {ContentfulActivityVariationDeleted} ContentfulActivityVariationDeleted
17357
+ * @throws {Error} If the payload is not a reader or valid buffer
17358
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
17359
+ */
17360
+ ContentfulActivityVariationDeleted.decode = function decode(reader, length) {
17361
+ if (!(reader instanceof $Reader))
17362
+ reader = $Reader.create(reader);
17363
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulActivityVariationDeleted();
17364
+ while (reader.pos < end) {
17365
+ var tag = reader.uint32();
17366
+ switch (tag >>> 3) {
17367
+ case 1:
17368
+ message.slug = reader.string();
17369
+ break;
17370
+ case 2:
17371
+ message.deletedAt = reader.uint64();
17372
+ break;
17373
+ default:
17374
+ reader.skipType(tag & 7);
17375
+ break;
17376
+ }
17377
+ }
17378
+ return message;
17379
+ };
17380
+
17381
+ /**
17382
+ * Decodes a ContentfulActivityVariationDeleted message from the specified reader or buffer, length delimited.
17383
+ * @function decodeDelimited
17384
+ * @memberof ContentfulActivityVariationDeleted
17385
+ * @static
17386
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
17387
+ * @returns {ContentfulActivityVariationDeleted} ContentfulActivityVariationDeleted
17388
+ * @throws {Error} If the payload is not a reader or valid buffer
17389
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
17390
+ */
17391
+ ContentfulActivityVariationDeleted.decodeDelimited = function decodeDelimited(reader) {
17392
+ if (!(reader instanceof $Reader))
17393
+ reader = new $Reader(reader);
17394
+ return this.decode(reader, reader.uint32());
17395
+ };
17396
+
17397
+ /**
17398
+ * Verifies a ContentfulActivityVariationDeleted message.
17399
+ * @function verify
17400
+ * @memberof ContentfulActivityVariationDeleted
17401
+ * @static
17402
+ * @param {Object.<string,*>} message Plain object to verify
17403
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
17404
+ */
17405
+ ContentfulActivityVariationDeleted.verify = function verify(message) {
17406
+ if (typeof message !== "object" || message === null)
17407
+ return "object expected";
17408
+ if (message.slug != null && message.hasOwnProperty("slug"))
17409
+ if (!$util.isString(message.slug))
17410
+ return "slug: string expected";
17411
+ if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
17412
+ if (!$util.isInteger(message.deletedAt) && !(message.deletedAt && $util.isInteger(message.deletedAt.low) && $util.isInteger(message.deletedAt.high)))
17413
+ return "deletedAt: integer|Long expected";
17414
+ return null;
17415
+ };
17416
+
17417
+ /**
17418
+ * Creates a ContentfulActivityVariationDeleted message from a plain object. Also converts values to their respective internal types.
17419
+ * @function fromObject
17420
+ * @memberof ContentfulActivityVariationDeleted
17421
+ * @static
17422
+ * @param {Object.<string,*>} object Plain object
17423
+ * @returns {ContentfulActivityVariationDeleted} ContentfulActivityVariationDeleted
17424
+ */
17425
+ ContentfulActivityVariationDeleted.fromObject = function fromObject(object) {
17426
+ if (object instanceof $root.ContentfulActivityVariationDeleted)
17427
+ return object;
17428
+ var message = new $root.ContentfulActivityVariationDeleted();
17429
+ if (object.slug != null)
17430
+ message.slug = String(object.slug);
17431
+ if (object.deletedAt != null)
17432
+ if ($util.Long)
17433
+ (message.deletedAt = $util.Long.fromValue(object.deletedAt)).unsigned = true;
17434
+ else if (typeof object.deletedAt === "string")
17435
+ message.deletedAt = parseInt(object.deletedAt, 10);
17436
+ else if (typeof object.deletedAt === "number")
17437
+ message.deletedAt = object.deletedAt;
17438
+ else if (typeof object.deletedAt === "object")
17439
+ message.deletedAt = new $util.LongBits(object.deletedAt.low >>> 0, object.deletedAt.high >>> 0).toNumber(true);
17440
+ return message;
17441
+ };
17442
+
17443
+ /**
17444
+ * Creates a plain object from a ContentfulActivityVariationDeleted message. Also converts values to other types if specified.
17445
+ * @function toObject
17446
+ * @memberof ContentfulActivityVariationDeleted
17447
+ * @static
17448
+ * @param {ContentfulActivityVariationDeleted} message ContentfulActivityVariationDeleted
17449
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
17450
+ * @returns {Object.<string,*>} Plain object
17451
+ */
17452
+ ContentfulActivityVariationDeleted.toObject = function toObject(message, options) {
17453
+ if (!options)
17454
+ options = {};
17455
+ var object = {};
17456
+ if (options.defaults) {
17457
+ object.slug = "";
17458
+ if ($util.Long) {
17459
+ var long = new $util.Long(0, 0, true);
17460
+ object.deletedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
17461
+ } else
17462
+ object.deletedAt = options.longs === String ? "0" : 0;
17463
+ }
17464
+ if (message.slug != null && message.hasOwnProperty("slug"))
17465
+ object.slug = message.slug;
17466
+ if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
17467
+ if (typeof message.deletedAt === "number")
17468
+ object.deletedAt = options.longs === String ? String(message.deletedAt) : message.deletedAt;
17469
+ else
17470
+ object.deletedAt = options.longs === String ? $util.Long.prototype.toString.call(message.deletedAt) : options.longs === Number ? new $util.LongBits(message.deletedAt.low >>> 0, message.deletedAt.high >>> 0).toNumber(true) : message.deletedAt;
17471
+ return object;
17472
+ };
17473
+
17474
+ /**
17475
+ * Converts this ContentfulActivityVariationDeleted to JSON.
17476
+ * @function toJSON
17477
+ * @memberof ContentfulActivityVariationDeleted
17478
+ * @instance
17479
+ * @returns {Object.<string,*>} JSON object
17480
+ */
17481
+ ContentfulActivityVariationDeleted.prototype.toJSON = function toJSON() {
17482
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
17483
+ };
17484
+
17485
+ return ContentfulActivityVariationDeleted;
17486
+ })();
17487
+
16628
17488
  $root.ContentfulContentModelCreated = (function() {
16629
17489
 
16630
17490
  /**
@@ -43607,4 +44467,228 @@ $root.UserUnsubscribeRequested = (function() {
43607
44467
  return UserUnsubscribeRequested;
43608
44468
  })();
43609
44469
 
44470
+ $root.VirginPulseAccountLinked = (function() {
44471
+
44472
+ /**
44473
+ * Properties of a VirginPulseAccountLinked.
44474
+ * @exports IVirginPulseAccountLinked
44475
+ * @interface IVirginPulseAccountLinked
44476
+ * @property {number|Long|null} [timestamp] VirginPulseAccountLinked timestamp
44477
+ * @property {string|null} [userId] VirginPulseAccountLinked userId
44478
+ */
44479
+
44480
+ /**
44481
+ * Constructs a new VirginPulseAccountLinked.
44482
+ * @exports VirginPulseAccountLinked
44483
+ * @classdesc Represents a VirginPulseAccountLinked.
44484
+ * @implements IVirginPulseAccountLinked
44485
+ * @constructor
44486
+ * @param {IVirginPulseAccountLinked=} [properties] Properties to set
44487
+ */
44488
+ function VirginPulseAccountLinked(properties) {
44489
+ if (properties)
44490
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
44491
+ if (properties[keys[i]] != null)
44492
+ this[keys[i]] = properties[keys[i]];
44493
+ }
44494
+
44495
+ /**
44496
+ * VirginPulseAccountLinked timestamp.
44497
+ * @member {number|Long} timestamp
44498
+ * @memberof VirginPulseAccountLinked
44499
+ * @instance
44500
+ */
44501
+ VirginPulseAccountLinked.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
44502
+
44503
+ /**
44504
+ * VirginPulseAccountLinked userId.
44505
+ * @member {string} userId
44506
+ * @memberof VirginPulseAccountLinked
44507
+ * @instance
44508
+ */
44509
+ VirginPulseAccountLinked.prototype.userId = "";
44510
+
44511
+ /**
44512
+ * Creates a new VirginPulseAccountLinked instance using the specified properties.
44513
+ * @function create
44514
+ * @memberof VirginPulseAccountLinked
44515
+ * @static
44516
+ * @param {IVirginPulseAccountLinked=} [properties] Properties to set
44517
+ * @returns {VirginPulseAccountLinked} VirginPulseAccountLinked instance
44518
+ */
44519
+ VirginPulseAccountLinked.create = function create(properties) {
44520
+ return new VirginPulseAccountLinked(properties);
44521
+ };
44522
+
44523
+ /**
44524
+ * Encodes the specified VirginPulseAccountLinked message. Does not implicitly {@link VirginPulseAccountLinked.verify|verify} messages.
44525
+ * @function encode
44526
+ * @memberof VirginPulseAccountLinked
44527
+ * @static
44528
+ * @param {IVirginPulseAccountLinked} message VirginPulseAccountLinked message or plain object to encode
44529
+ * @param {$protobuf.Writer} [writer] Writer to encode to
44530
+ * @returns {$protobuf.Writer} Writer
44531
+ */
44532
+ VirginPulseAccountLinked.encode = function encode(message, writer) {
44533
+ if (!writer)
44534
+ writer = $Writer.create();
44535
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
44536
+ writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.timestamp);
44537
+ if (message.userId != null && message.hasOwnProperty("userId"))
44538
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.userId);
44539
+ return writer;
44540
+ };
44541
+
44542
+ /**
44543
+ * Encodes the specified VirginPulseAccountLinked message, length delimited. Does not implicitly {@link VirginPulseAccountLinked.verify|verify} messages.
44544
+ * @function encodeDelimited
44545
+ * @memberof VirginPulseAccountLinked
44546
+ * @static
44547
+ * @param {IVirginPulseAccountLinked} message VirginPulseAccountLinked message or plain object to encode
44548
+ * @param {$protobuf.Writer} [writer] Writer to encode to
44549
+ * @returns {$protobuf.Writer} Writer
44550
+ */
44551
+ VirginPulseAccountLinked.encodeDelimited = function encodeDelimited(message, writer) {
44552
+ return this.encode(message, writer).ldelim();
44553
+ };
44554
+
44555
+ /**
44556
+ * Decodes a VirginPulseAccountLinked message from the specified reader or buffer.
44557
+ * @function decode
44558
+ * @memberof VirginPulseAccountLinked
44559
+ * @static
44560
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
44561
+ * @param {number} [length] Message length if known beforehand
44562
+ * @returns {VirginPulseAccountLinked} VirginPulseAccountLinked
44563
+ * @throws {Error} If the payload is not a reader or valid buffer
44564
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
44565
+ */
44566
+ VirginPulseAccountLinked.decode = function decode(reader, length) {
44567
+ if (!(reader instanceof $Reader))
44568
+ reader = $Reader.create(reader);
44569
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.VirginPulseAccountLinked();
44570
+ while (reader.pos < end) {
44571
+ var tag = reader.uint32();
44572
+ switch (tag >>> 3) {
44573
+ case 1:
44574
+ message.timestamp = reader.uint64();
44575
+ break;
44576
+ case 2:
44577
+ message.userId = reader.string();
44578
+ break;
44579
+ default:
44580
+ reader.skipType(tag & 7);
44581
+ break;
44582
+ }
44583
+ }
44584
+ return message;
44585
+ };
44586
+
44587
+ /**
44588
+ * Decodes a VirginPulseAccountLinked message from the specified reader or buffer, length delimited.
44589
+ * @function decodeDelimited
44590
+ * @memberof VirginPulseAccountLinked
44591
+ * @static
44592
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
44593
+ * @returns {VirginPulseAccountLinked} VirginPulseAccountLinked
44594
+ * @throws {Error} If the payload is not a reader or valid buffer
44595
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
44596
+ */
44597
+ VirginPulseAccountLinked.decodeDelimited = function decodeDelimited(reader) {
44598
+ if (!(reader instanceof $Reader))
44599
+ reader = new $Reader(reader);
44600
+ return this.decode(reader, reader.uint32());
44601
+ };
44602
+
44603
+ /**
44604
+ * Verifies a VirginPulseAccountLinked message.
44605
+ * @function verify
44606
+ * @memberof VirginPulseAccountLinked
44607
+ * @static
44608
+ * @param {Object.<string,*>} message Plain object to verify
44609
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
44610
+ */
44611
+ VirginPulseAccountLinked.verify = function verify(message) {
44612
+ if (typeof message !== "object" || message === null)
44613
+ return "object expected";
44614
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
44615
+ if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
44616
+ return "timestamp: integer|Long expected";
44617
+ if (message.userId != null && message.hasOwnProperty("userId"))
44618
+ if (!$util.isString(message.userId))
44619
+ return "userId: string expected";
44620
+ return null;
44621
+ };
44622
+
44623
+ /**
44624
+ * Creates a VirginPulseAccountLinked message from a plain object. Also converts values to their respective internal types.
44625
+ * @function fromObject
44626
+ * @memberof VirginPulseAccountLinked
44627
+ * @static
44628
+ * @param {Object.<string,*>} object Plain object
44629
+ * @returns {VirginPulseAccountLinked} VirginPulseAccountLinked
44630
+ */
44631
+ VirginPulseAccountLinked.fromObject = function fromObject(object) {
44632
+ if (object instanceof $root.VirginPulseAccountLinked)
44633
+ return object;
44634
+ var message = new $root.VirginPulseAccountLinked();
44635
+ if (object.timestamp != null)
44636
+ if ($util.Long)
44637
+ (message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
44638
+ else if (typeof object.timestamp === "string")
44639
+ message.timestamp = parseInt(object.timestamp, 10);
44640
+ else if (typeof object.timestamp === "number")
44641
+ message.timestamp = object.timestamp;
44642
+ else if (typeof object.timestamp === "object")
44643
+ message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
44644
+ if (object.userId != null)
44645
+ message.userId = String(object.userId);
44646
+ return message;
44647
+ };
44648
+
44649
+ /**
44650
+ * Creates a plain object from a VirginPulseAccountLinked message. Also converts values to other types if specified.
44651
+ * @function toObject
44652
+ * @memberof VirginPulseAccountLinked
44653
+ * @static
44654
+ * @param {VirginPulseAccountLinked} message VirginPulseAccountLinked
44655
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
44656
+ * @returns {Object.<string,*>} Plain object
44657
+ */
44658
+ VirginPulseAccountLinked.toObject = function toObject(message, options) {
44659
+ if (!options)
44660
+ options = {};
44661
+ var object = {};
44662
+ if (options.defaults) {
44663
+ if ($util.Long) {
44664
+ var long = new $util.Long(0, 0, true);
44665
+ object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
44666
+ } else
44667
+ object.timestamp = options.longs === String ? "0" : 0;
44668
+ object.userId = "";
44669
+ }
44670
+ if (message.timestamp != null && message.hasOwnProperty("timestamp"))
44671
+ if (typeof message.timestamp === "number")
44672
+ object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
44673
+ else
44674
+ 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;
44675
+ if (message.userId != null && message.hasOwnProperty("userId"))
44676
+ object.userId = message.userId;
44677
+ return object;
44678
+ };
44679
+
44680
+ /**
44681
+ * Converts this VirginPulseAccountLinked to JSON.
44682
+ * @function toJSON
44683
+ * @memberof VirginPulseAccountLinked
44684
+ * @instance
44685
+ * @returns {Object.<string,*>} JSON object
44686
+ */
44687
+ VirginPulseAccountLinked.prototype.toJSON = function toJSON() {
44688
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
44689
+ };
44690
+
44691
+ return VirginPulseAccountLinked;
44692
+ })();
44693
+
43610
44694
  module.exports = $root;