@headspace/protos-events 1.182.0 → 1.183.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 +432 -0
  2. package/lib/index.js +1694 -0
  3. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -29467,6 +29467,1700 @@ $root.ContentfulSleepcastRecipeDeleted = (function() {
29467
29467
  return ContentfulSleepcastRecipeDeleted;
29468
29468
  })();
29469
29469
 
29470
+ $root.ContentfulSleepcastCreated = (function() {
29471
+
29472
+ /**
29473
+ * Properties of a ContentfulSleepcastCreated.
29474
+ * @exports IContentfulSleepcastCreated
29475
+ * @interface IContentfulSleepcastCreated
29476
+ * @property {Object.<string,string>|null} [title] ContentfulSleepcastCreated title
29477
+ * @property {string|null} [slug] ContentfulSleepcastCreated slug
29478
+ * @property {Object.<string,string>|null} [subtitle] ContentfulSleepcastCreated subtitle
29479
+ * @property {Object.<string,string>|null} [description] ContentfulSleepcastCreated description
29480
+ * @property {Object.<string,contentful.ISlugReference>|null} [recipe] ContentfulSleepcastCreated recipe
29481
+ * @property {Object.<string,contentful.IIdReference>|null} [tileBackgroundMedia] ContentfulSleepcastCreated tileBackgroundMedia
29482
+ * @property {Object.<string,contentful.IIdReference>|null} [playerBackgroundMedia] ContentfulSleepcastCreated playerBackgroundMedia
29483
+ * @property {boolean|null} [useVariantPresents] ContentfulSleepcastCreated useVariantPresents
29484
+ * @property {boolean|null} [isEnabled] ContentfulSleepcastCreated isEnabled
29485
+ * @property {Object.<string,contentful.IIdReferences>|null} [primaryAudioMedia] ContentfulSleepcastCreated primaryAudioMedia
29486
+ * @property {Object.<string,contentful.IIdReferences>|null} [secondaryAudioMedia] ContentfulSleepcastCreated secondaryAudioMedia
29487
+ * @property {Object.<string,contentful.IIdReferences>|null} [mixedAudioMedia] ContentfulSleepcastCreated mixedAudioMedia
29488
+ * @property {Array.<contentful.ISlugReference>|null} [accessGroup] ContentfulSleepcastCreated accessGroup
29489
+ * @property {number|Long|null} [createdAt] ContentfulSleepcastCreated createdAt
29490
+ */
29491
+
29492
+ /**
29493
+ * Constructs a new ContentfulSleepcastCreated.
29494
+ * @exports ContentfulSleepcastCreated
29495
+ * @classdesc Represents a ContentfulSleepcastCreated.
29496
+ * @implements IContentfulSleepcastCreated
29497
+ * @constructor
29498
+ * @param {IContentfulSleepcastCreated=} [properties] Properties to set
29499
+ */
29500
+ function ContentfulSleepcastCreated(properties) {
29501
+ this.title = {};
29502
+ this.subtitle = {};
29503
+ this.description = {};
29504
+ this.recipe = {};
29505
+ this.tileBackgroundMedia = {};
29506
+ this.playerBackgroundMedia = {};
29507
+ this.primaryAudioMedia = {};
29508
+ this.secondaryAudioMedia = {};
29509
+ this.mixedAudioMedia = {};
29510
+ this.accessGroup = [];
29511
+ if (properties)
29512
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
29513
+ if (properties[keys[i]] != null)
29514
+ this[keys[i]] = properties[keys[i]];
29515
+ }
29516
+
29517
+ /**
29518
+ * ContentfulSleepcastCreated title.
29519
+ * @member {Object.<string,string>} title
29520
+ * @memberof ContentfulSleepcastCreated
29521
+ * @instance
29522
+ */
29523
+ ContentfulSleepcastCreated.prototype.title = $util.emptyObject;
29524
+
29525
+ /**
29526
+ * ContentfulSleepcastCreated slug.
29527
+ * @member {string} slug
29528
+ * @memberof ContentfulSleepcastCreated
29529
+ * @instance
29530
+ */
29531
+ ContentfulSleepcastCreated.prototype.slug = "";
29532
+
29533
+ /**
29534
+ * ContentfulSleepcastCreated subtitle.
29535
+ * @member {Object.<string,string>} subtitle
29536
+ * @memberof ContentfulSleepcastCreated
29537
+ * @instance
29538
+ */
29539
+ ContentfulSleepcastCreated.prototype.subtitle = $util.emptyObject;
29540
+
29541
+ /**
29542
+ * ContentfulSleepcastCreated description.
29543
+ * @member {Object.<string,string>} description
29544
+ * @memberof ContentfulSleepcastCreated
29545
+ * @instance
29546
+ */
29547
+ ContentfulSleepcastCreated.prototype.description = $util.emptyObject;
29548
+
29549
+ /**
29550
+ * ContentfulSleepcastCreated recipe.
29551
+ * @member {Object.<string,contentful.ISlugReference>} recipe
29552
+ * @memberof ContentfulSleepcastCreated
29553
+ * @instance
29554
+ */
29555
+ ContentfulSleepcastCreated.prototype.recipe = $util.emptyObject;
29556
+
29557
+ /**
29558
+ * ContentfulSleepcastCreated tileBackgroundMedia.
29559
+ * @member {Object.<string,contentful.IIdReference>} tileBackgroundMedia
29560
+ * @memberof ContentfulSleepcastCreated
29561
+ * @instance
29562
+ */
29563
+ ContentfulSleepcastCreated.prototype.tileBackgroundMedia = $util.emptyObject;
29564
+
29565
+ /**
29566
+ * ContentfulSleepcastCreated playerBackgroundMedia.
29567
+ * @member {Object.<string,contentful.IIdReference>} playerBackgroundMedia
29568
+ * @memberof ContentfulSleepcastCreated
29569
+ * @instance
29570
+ */
29571
+ ContentfulSleepcastCreated.prototype.playerBackgroundMedia = $util.emptyObject;
29572
+
29573
+ /**
29574
+ * ContentfulSleepcastCreated useVariantPresents.
29575
+ * @member {boolean} useVariantPresents
29576
+ * @memberof ContentfulSleepcastCreated
29577
+ * @instance
29578
+ */
29579
+ ContentfulSleepcastCreated.prototype.useVariantPresents = false;
29580
+
29581
+ /**
29582
+ * ContentfulSleepcastCreated isEnabled.
29583
+ * @member {boolean} isEnabled
29584
+ * @memberof ContentfulSleepcastCreated
29585
+ * @instance
29586
+ */
29587
+ ContentfulSleepcastCreated.prototype.isEnabled = false;
29588
+
29589
+ /**
29590
+ * ContentfulSleepcastCreated primaryAudioMedia.
29591
+ * @member {Object.<string,contentful.IIdReferences>} primaryAudioMedia
29592
+ * @memberof ContentfulSleepcastCreated
29593
+ * @instance
29594
+ */
29595
+ ContentfulSleepcastCreated.prototype.primaryAudioMedia = $util.emptyObject;
29596
+
29597
+ /**
29598
+ * ContentfulSleepcastCreated secondaryAudioMedia.
29599
+ * @member {Object.<string,contentful.IIdReferences>} secondaryAudioMedia
29600
+ * @memberof ContentfulSleepcastCreated
29601
+ * @instance
29602
+ */
29603
+ ContentfulSleepcastCreated.prototype.secondaryAudioMedia = $util.emptyObject;
29604
+
29605
+ /**
29606
+ * ContentfulSleepcastCreated mixedAudioMedia.
29607
+ * @member {Object.<string,contentful.IIdReferences>} mixedAudioMedia
29608
+ * @memberof ContentfulSleepcastCreated
29609
+ * @instance
29610
+ */
29611
+ ContentfulSleepcastCreated.prototype.mixedAudioMedia = $util.emptyObject;
29612
+
29613
+ /**
29614
+ * ContentfulSleepcastCreated accessGroup.
29615
+ * @member {Array.<contentful.ISlugReference>} accessGroup
29616
+ * @memberof ContentfulSleepcastCreated
29617
+ * @instance
29618
+ */
29619
+ ContentfulSleepcastCreated.prototype.accessGroup = $util.emptyArray;
29620
+
29621
+ /**
29622
+ * ContentfulSleepcastCreated createdAt.
29623
+ * @member {number|Long} createdAt
29624
+ * @memberof ContentfulSleepcastCreated
29625
+ * @instance
29626
+ */
29627
+ ContentfulSleepcastCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
29628
+
29629
+ /**
29630
+ * Creates a new ContentfulSleepcastCreated instance using the specified properties.
29631
+ * @function create
29632
+ * @memberof ContentfulSleepcastCreated
29633
+ * @static
29634
+ * @param {IContentfulSleepcastCreated=} [properties] Properties to set
29635
+ * @returns {ContentfulSleepcastCreated} ContentfulSleepcastCreated instance
29636
+ */
29637
+ ContentfulSleepcastCreated.create = function create(properties) {
29638
+ return new ContentfulSleepcastCreated(properties);
29639
+ };
29640
+
29641
+ /**
29642
+ * Encodes the specified ContentfulSleepcastCreated message. Does not implicitly {@link ContentfulSleepcastCreated.verify|verify} messages.
29643
+ * @function encode
29644
+ * @memberof ContentfulSleepcastCreated
29645
+ * @static
29646
+ * @param {IContentfulSleepcastCreated} message ContentfulSleepcastCreated message or plain object to encode
29647
+ * @param {$protobuf.Writer} [writer] Writer to encode to
29648
+ * @returns {$protobuf.Writer} Writer
29649
+ */
29650
+ ContentfulSleepcastCreated.encode = function encode(message, writer) {
29651
+ if (!writer)
29652
+ writer = $Writer.create();
29653
+ if (message.title != null && message.hasOwnProperty("title"))
29654
+ for (var keys = Object.keys(message.title), i = 0; i < keys.length; ++i)
29655
+ writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.title[keys[i]]).ldelim();
29656
+ if (message.slug != null && message.hasOwnProperty("slug"))
29657
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.slug);
29658
+ if (message.subtitle != null && message.hasOwnProperty("subtitle"))
29659
+ for (var keys = Object.keys(message.subtitle), i = 0; i < keys.length; ++i)
29660
+ writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.subtitle[keys[i]]).ldelim();
29661
+ if (message.description != null && message.hasOwnProperty("description"))
29662
+ for (var keys = Object.keys(message.description), i = 0; i < keys.length; ++i)
29663
+ writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.description[keys[i]]).ldelim();
29664
+ if (message.recipe != null && message.hasOwnProperty("recipe"))
29665
+ for (var keys = Object.keys(message.recipe), i = 0; i < keys.length; ++i) {
29666
+ writer.uint32(/* id 5, wireType 2 =*/42).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
29667
+ $root.contentful.SlugReference.encode(message.recipe[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
29668
+ }
29669
+ if (message.tileBackgroundMedia != null && message.hasOwnProperty("tileBackgroundMedia"))
29670
+ for (var keys = Object.keys(message.tileBackgroundMedia), i = 0; i < keys.length; ++i) {
29671
+ writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
29672
+ $root.contentful.IdReference.encode(message.tileBackgroundMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
29673
+ }
29674
+ if (message.playerBackgroundMedia != null && message.hasOwnProperty("playerBackgroundMedia"))
29675
+ for (var keys = Object.keys(message.playerBackgroundMedia), i = 0; i < keys.length; ++i) {
29676
+ writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
29677
+ $root.contentful.IdReference.encode(message.playerBackgroundMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
29678
+ }
29679
+ if (message.useVariantPresents != null && message.hasOwnProperty("useVariantPresents"))
29680
+ writer.uint32(/* id 8, wireType 0 =*/64).bool(message.useVariantPresents);
29681
+ if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
29682
+ writer.uint32(/* id 9, wireType 0 =*/72).bool(message.isEnabled);
29683
+ if (message.primaryAudioMedia != null && message.hasOwnProperty("primaryAudioMedia"))
29684
+ for (var keys = Object.keys(message.primaryAudioMedia), i = 0; i < keys.length; ++i) {
29685
+ writer.uint32(/* id 10, wireType 2 =*/82).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
29686
+ $root.contentful.IdReferences.encode(message.primaryAudioMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
29687
+ }
29688
+ if (message.secondaryAudioMedia != null && message.hasOwnProperty("secondaryAudioMedia"))
29689
+ for (var keys = Object.keys(message.secondaryAudioMedia), i = 0; i < keys.length; ++i) {
29690
+ writer.uint32(/* id 11, wireType 2 =*/90).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
29691
+ $root.contentful.IdReferences.encode(message.secondaryAudioMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
29692
+ }
29693
+ if (message.mixedAudioMedia != null && message.hasOwnProperty("mixedAudioMedia"))
29694
+ for (var keys = Object.keys(message.mixedAudioMedia), i = 0; i < keys.length; ++i) {
29695
+ writer.uint32(/* id 12, wireType 2 =*/98).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
29696
+ $root.contentful.IdReferences.encode(message.mixedAudioMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
29697
+ }
29698
+ if (message.accessGroup != null && message.accessGroup.length)
29699
+ for (var i = 0; i < message.accessGroup.length; ++i)
29700
+ $root.contentful.SlugReference.encode(message.accessGroup[i], writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim();
29701
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
29702
+ writer.uint32(/* id 14, wireType 0 =*/112).uint64(message.createdAt);
29703
+ return writer;
29704
+ };
29705
+
29706
+ /**
29707
+ * Encodes the specified ContentfulSleepcastCreated message, length delimited. Does not implicitly {@link ContentfulSleepcastCreated.verify|verify} messages.
29708
+ * @function encodeDelimited
29709
+ * @memberof ContentfulSleepcastCreated
29710
+ * @static
29711
+ * @param {IContentfulSleepcastCreated} message ContentfulSleepcastCreated message or plain object to encode
29712
+ * @param {$protobuf.Writer} [writer] Writer to encode to
29713
+ * @returns {$protobuf.Writer} Writer
29714
+ */
29715
+ ContentfulSleepcastCreated.encodeDelimited = function encodeDelimited(message, writer) {
29716
+ return this.encode(message, writer).ldelim();
29717
+ };
29718
+
29719
+ /**
29720
+ * Decodes a ContentfulSleepcastCreated message from the specified reader or buffer.
29721
+ * @function decode
29722
+ * @memberof ContentfulSleepcastCreated
29723
+ * @static
29724
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
29725
+ * @param {number} [length] Message length if known beforehand
29726
+ * @returns {ContentfulSleepcastCreated} ContentfulSleepcastCreated
29727
+ * @throws {Error} If the payload is not a reader or valid buffer
29728
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
29729
+ */
29730
+ ContentfulSleepcastCreated.decode = function decode(reader, length) {
29731
+ if (!(reader instanceof $Reader))
29732
+ reader = $Reader.create(reader);
29733
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulSleepcastCreated(), key;
29734
+ while (reader.pos < end) {
29735
+ var tag = reader.uint32();
29736
+ switch (tag >>> 3) {
29737
+ case 1:
29738
+ reader.skip().pos++;
29739
+ if (message.title === $util.emptyObject)
29740
+ message.title = {};
29741
+ key = reader.string();
29742
+ reader.pos++;
29743
+ message.title[key] = reader.string();
29744
+ break;
29745
+ case 2:
29746
+ message.slug = reader.string();
29747
+ break;
29748
+ case 3:
29749
+ reader.skip().pos++;
29750
+ if (message.subtitle === $util.emptyObject)
29751
+ message.subtitle = {};
29752
+ key = reader.string();
29753
+ reader.pos++;
29754
+ message.subtitle[key] = reader.string();
29755
+ break;
29756
+ case 4:
29757
+ reader.skip().pos++;
29758
+ if (message.description === $util.emptyObject)
29759
+ message.description = {};
29760
+ key = reader.string();
29761
+ reader.pos++;
29762
+ message.description[key] = reader.string();
29763
+ break;
29764
+ case 5:
29765
+ reader.skip().pos++;
29766
+ if (message.recipe === $util.emptyObject)
29767
+ message.recipe = {};
29768
+ key = reader.string();
29769
+ reader.pos++;
29770
+ message.recipe[key] = $root.contentful.SlugReference.decode(reader, reader.uint32());
29771
+ break;
29772
+ case 6:
29773
+ reader.skip().pos++;
29774
+ if (message.tileBackgroundMedia === $util.emptyObject)
29775
+ message.tileBackgroundMedia = {};
29776
+ key = reader.string();
29777
+ reader.pos++;
29778
+ message.tileBackgroundMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
29779
+ break;
29780
+ case 7:
29781
+ reader.skip().pos++;
29782
+ if (message.playerBackgroundMedia === $util.emptyObject)
29783
+ message.playerBackgroundMedia = {};
29784
+ key = reader.string();
29785
+ reader.pos++;
29786
+ message.playerBackgroundMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
29787
+ break;
29788
+ case 8:
29789
+ message.useVariantPresents = reader.bool();
29790
+ break;
29791
+ case 9:
29792
+ message.isEnabled = reader.bool();
29793
+ break;
29794
+ case 10:
29795
+ reader.skip().pos++;
29796
+ if (message.primaryAudioMedia === $util.emptyObject)
29797
+ message.primaryAudioMedia = {};
29798
+ key = reader.string();
29799
+ reader.pos++;
29800
+ message.primaryAudioMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
29801
+ break;
29802
+ case 11:
29803
+ reader.skip().pos++;
29804
+ if (message.secondaryAudioMedia === $util.emptyObject)
29805
+ message.secondaryAudioMedia = {};
29806
+ key = reader.string();
29807
+ reader.pos++;
29808
+ message.secondaryAudioMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
29809
+ break;
29810
+ case 12:
29811
+ reader.skip().pos++;
29812
+ if (message.mixedAudioMedia === $util.emptyObject)
29813
+ message.mixedAudioMedia = {};
29814
+ key = reader.string();
29815
+ reader.pos++;
29816
+ message.mixedAudioMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
29817
+ break;
29818
+ case 13:
29819
+ if (!(message.accessGroup && message.accessGroup.length))
29820
+ message.accessGroup = [];
29821
+ message.accessGroup.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
29822
+ break;
29823
+ case 14:
29824
+ message.createdAt = reader.uint64();
29825
+ break;
29826
+ default:
29827
+ reader.skipType(tag & 7);
29828
+ break;
29829
+ }
29830
+ }
29831
+ return message;
29832
+ };
29833
+
29834
+ /**
29835
+ * Decodes a ContentfulSleepcastCreated message from the specified reader or buffer, length delimited.
29836
+ * @function decodeDelimited
29837
+ * @memberof ContentfulSleepcastCreated
29838
+ * @static
29839
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
29840
+ * @returns {ContentfulSleepcastCreated} ContentfulSleepcastCreated
29841
+ * @throws {Error} If the payload is not a reader or valid buffer
29842
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
29843
+ */
29844
+ ContentfulSleepcastCreated.decodeDelimited = function decodeDelimited(reader) {
29845
+ if (!(reader instanceof $Reader))
29846
+ reader = new $Reader(reader);
29847
+ return this.decode(reader, reader.uint32());
29848
+ };
29849
+
29850
+ /**
29851
+ * Verifies a ContentfulSleepcastCreated message.
29852
+ * @function verify
29853
+ * @memberof ContentfulSleepcastCreated
29854
+ * @static
29855
+ * @param {Object.<string,*>} message Plain object to verify
29856
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
29857
+ */
29858
+ ContentfulSleepcastCreated.verify = function verify(message) {
29859
+ if (typeof message !== "object" || message === null)
29860
+ return "object expected";
29861
+ if (message.title != null && message.hasOwnProperty("title")) {
29862
+ if (!$util.isObject(message.title))
29863
+ return "title: object expected";
29864
+ var key = Object.keys(message.title);
29865
+ for (var i = 0; i < key.length; ++i)
29866
+ if (!$util.isString(message.title[key[i]]))
29867
+ return "title: string{k:string} expected";
29868
+ }
29869
+ if (message.slug != null && message.hasOwnProperty("slug"))
29870
+ if (!$util.isString(message.slug))
29871
+ return "slug: string expected";
29872
+ if (message.subtitle != null && message.hasOwnProperty("subtitle")) {
29873
+ if (!$util.isObject(message.subtitle))
29874
+ return "subtitle: object expected";
29875
+ var key = Object.keys(message.subtitle);
29876
+ for (var i = 0; i < key.length; ++i)
29877
+ if (!$util.isString(message.subtitle[key[i]]))
29878
+ return "subtitle: string{k:string} expected";
29879
+ }
29880
+ if (message.description != null && message.hasOwnProperty("description")) {
29881
+ if (!$util.isObject(message.description))
29882
+ return "description: object expected";
29883
+ var key = Object.keys(message.description);
29884
+ for (var i = 0; i < key.length; ++i)
29885
+ if (!$util.isString(message.description[key[i]]))
29886
+ return "description: string{k:string} expected";
29887
+ }
29888
+ if (message.recipe != null && message.hasOwnProperty("recipe")) {
29889
+ if (!$util.isObject(message.recipe))
29890
+ return "recipe: object expected";
29891
+ var key = Object.keys(message.recipe);
29892
+ for (var i = 0; i < key.length; ++i) {
29893
+ var error = $root.contentful.SlugReference.verify(message.recipe[key[i]]);
29894
+ if (error)
29895
+ return "recipe." + error;
29896
+ }
29897
+ }
29898
+ if (message.tileBackgroundMedia != null && message.hasOwnProperty("tileBackgroundMedia")) {
29899
+ if (!$util.isObject(message.tileBackgroundMedia))
29900
+ return "tileBackgroundMedia: object expected";
29901
+ var key = Object.keys(message.tileBackgroundMedia);
29902
+ for (var i = 0; i < key.length; ++i) {
29903
+ var error = $root.contentful.IdReference.verify(message.tileBackgroundMedia[key[i]]);
29904
+ if (error)
29905
+ return "tileBackgroundMedia." + error;
29906
+ }
29907
+ }
29908
+ if (message.playerBackgroundMedia != null && message.hasOwnProperty("playerBackgroundMedia")) {
29909
+ if (!$util.isObject(message.playerBackgroundMedia))
29910
+ return "playerBackgroundMedia: object expected";
29911
+ var key = Object.keys(message.playerBackgroundMedia);
29912
+ for (var i = 0; i < key.length; ++i) {
29913
+ var error = $root.contentful.IdReference.verify(message.playerBackgroundMedia[key[i]]);
29914
+ if (error)
29915
+ return "playerBackgroundMedia." + error;
29916
+ }
29917
+ }
29918
+ if (message.useVariantPresents != null && message.hasOwnProperty("useVariantPresents"))
29919
+ if (typeof message.useVariantPresents !== "boolean")
29920
+ return "useVariantPresents: boolean expected";
29921
+ if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
29922
+ if (typeof message.isEnabled !== "boolean")
29923
+ return "isEnabled: boolean expected";
29924
+ if (message.primaryAudioMedia != null && message.hasOwnProperty("primaryAudioMedia")) {
29925
+ if (!$util.isObject(message.primaryAudioMedia))
29926
+ return "primaryAudioMedia: object expected";
29927
+ var key = Object.keys(message.primaryAudioMedia);
29928
+ for (var i = 0; i < key.length; ++i) {
29929
+ var error = $root.contentful.IdReferences.verify(message.primaryAudioMedia[key[i]]);
29930
+ if (error)
29931
+ return "primaryAudioMedia." + error;
29932
+ }
29933
+ }
29934
+ if (message.secondaryAudioMedia != null && message.hasOwnProperty("secondaryAudioMedia")) {
29935
+ if (!$util.isObject(message.secondaryAudioMedia))
29936
+ return "secondaryAudioMedia: object expected";
29937
+ var key = Object.keys(message.secondaryAudioMedia);
29938
+ for (var i = 0; i < key.length; ++i) {
29939
+ var error = $root.contentful.IdReferences.verify(message.secondaryAudioMedia[key[i]]);
29940
+ if (error)
29941
+ return "secondaryAudioMedia." + error;
29942
+ }
29943
+ }
29944
+ if (message.mixedAudioMedia != null && message.hasOwnProperty("mixedAudioMedia")) {
29945
+ if (!$util.isObject(message.mixedAudioMedia))
29946
+ return "mixedAudioMedia: object expected";
29947
+ var key = Object.keys(message.mixedAudioMedia);
29948
+ for (var i = 0; i < key.length; ++i) {
29949
+ var error = $root.contentful.IdReferences.verify(message.mixedAudioMedia[key[i]]);
29950
+ if (error)
29951
+ return "mixedAudioMedia." + error;
29952
+ }
29953
+ }
29954
+ if (message.accessGroup != null && message.hasOwnProperty("accessGroup")) {
29955
+ if (!Array.isArray(message.accessGroup))
29956
+ return "accessGroup: array expected";
29957
+ for (var i = 0; i < message.accessGroup.length; ++i) {
29958
+ var error = $root.contentful.SlugReference.verify(message.accessGroup[i]);
29959
+ if (error)
29960
+ return "accessGroup." + error;
29961
+ }
29962
+ }
29963
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
29964
+ if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
29965
+ return "createdAt: integer|Long expected";
29966
+ return null;
29967
+ };
29968
+
29969
+ /**
29970
+ * Creates a ContentfulSleepcastCreated message from a plain object. Also converts values to their respective internal types.
29971
+ * @function fromObject
29972
+ * @memberof ContentfulSleepcastCreated
29973
+ * @static
29974
+ * @param {Object.<string,*>} object Plain object
29975
+ * @returns {ContentfulSleepcastCreated} ContentfulSleepcastCreated
29976
+ */
29977
+ ContentfulSleepcastCreated.fromObject = function fromObject(object) {
29978
+ if (object instanceof $root.ContentfulSleepcastCreated)
29979
+ return object;
29980
+ var message = new $root.ContentfulSleepcastCreated();
29981
+ if (object.title) {
29982
+ if (typeof object.title !== "object")
29983
+ throw TypeError(".ContentfulSleepcastCreated.title: object expected");
29984
+ message.title = {};
29985
+ for (var keys = Object.keys(object.title), i = 0; i < keys.length; ++i)
29986
+ message.title[keys[i]] = String(object.title[keys[i]]);
29987
+ }
29988
+ if (object.slug != null)
29989
+ message.slug = String(object.slug);
29990
+ if (object.subtitle) {
29991
+ if (typeof object.subtitle !== "object")
29992
+ throw TypeError(".ContentfulSleepcastCreated.subtitle: object expected");
29993
+ message.subtitle = {};
29994
+ for (var keys = Object.keys(object.subtitle), i = 0; i < keys.length; ++i)
29995
+ message.subtitle[keys[i]] = String(object.subtitle[keys[i]]);
29996
+ }
29997
+ if (object.description) {
29998
+ if (typeof object.description !== "object")
29999
+ throw TypeError(".ContentfulSleepcastCreated.description: object expected");
30000
+ message.description = {};
30001
+ for (var keys = Object.keys(object.description), i = 0; i < keys.length; ++i)
30002
+ message.description[keys[i]] = String(object.description[keys[i]]);
30003
+ }
30004
+ if (object.recipe) {
30005
+ if (typeof object.recipe !== "object")
30006
+ throw TypeError(".ContentfulSleepcastCreated.recipe: object expected");
30007
+ message.recipe = {};
30008
+ for (var keys = Object.keys(object.recipe), i = 0; i < keys.length; ++i) {
30009
+ if (typeof object.recipe[keys[i]] !== "object")
30010
+ throw TypeError(".ContentfulSleepcastCreated.recipe: object expected");
30011
+ message.recipe[keys[i]] = $root.contentful.SlugReference.fromObject(object.recipe[keys[i]]);
30012
+ }
30013
+ }
30014
+ if (object.tileBackgroundMedia) {
30015
+ if (typeof object.tileBackgroundMedia !== "object")
30016
+ throw TypeError(".ContentfulSleepcastCreated.tileBackgroundMedia: object expected");
30017
+ message.tileBackgroundMedia = {};
30018
+ for (var keys = Object.keys(object.tileBackgroundMedia), i = 0; i < keys.length; ++i) {
30019
+ if (typeof object.tileBackgroundMedia[keys[i]] !== "object")
30020
+ throw TypeError(".ContentfulSleepcastCreated.tileBackgroundMedia: object expected");
30021
+ message.tileBackgroundMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.tileBackgroundMedia[keys[i]]);
30022
+ }
30023
+ }
30024
+ if (object.playerBackgroundMedia) {
30025
+ if (typeof object.playerBackgroundMedia !== "object")
30026
+ throw TypeError(".ContentfulSleepcastCreated.playerBackgroundMedia: object expected");
30027
+ message.playerBackgroundMedia = {};
30028
+ for (var keys = Object.keys(object.playerBackgroundMedia), i = 0; i < keys.length; ++i) {
30029
+ if (typeof object.playerBackgroundMedia[keys[i]] !== "object")
30030
+ throw TypeError(".ContentfulSleepcastCreated.playerBackgroundMedia: object expected");
30031
+ message.playerBackgroundMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.playerBackgroundMedia[keys[i]]);
30032
+ }
30033
+ }
30034
+ if (object.useVariantPresents != null)
30035
+ message.useVariantPresents = Boolean(object.useVariantPresents);
30036
+ if (object.isEnabled != null)
30037
+ message.isEnabled = Boolean(object.isEnabled);
30038
+ if (object.primaryAudioMedia) {
30039
+ if (typeof object.primaryAudioMedia !== "object")
30040
+ throw TypeError(".ContentfulSleepcastCreated.primaryAudioMedia: object expected");
30041
+ message.primaryAudioMedia = {};
30042
+ for (var keys = Object.keys(object.primaryAudioMedia), i = 0; i < keys.length; ++i) {
30043
+ if (typeof object.primaryAudioMedia[keys[i]] !== "object")
30044
+ throw TypeError(".ContentfulSleepcastCreated.primaryAudioMedia: object expected");
30045
+ message.primaryAudioMedia[keys[i]] = $root.contentful.IdReferences.fromObject(object.primaryAudioMedia[keys[i]]);
30046
+ }
30047
+ }
30048
+ if (object.secondaryAudioMedia) {
30049
+ if (typeof object.secondaryAudioMedia !== "object")
30050
+ throw TypeError(".ContentfulSleepcastCreated.secondaryAudioMedia: object expected");
30051
+ message.secondaryAudioMedia = {};
30052
+ for (var keys = Object.keys(object.secondaryAudioMedia), i = 0; i < keys.length; ++i) {
30053
+ if (typeof object.secondaryAudioMedia[keys[i]] !== "object")
30054
+ throw TypeError(".ContentfulSleepcastCreated.secondaryAudioMedia: object expected");
30055
+ message.secondaryAudioMedia[keys[i]] = $root.contentful.IdReferences.fromObject(object.secondaryAudioMedia[keys[i]]);
30056
+ }
30057
+ }
30058
+ if (object.mixedAudioMedia) {
30059
+ if (typeof object.mixedAudioMedia !== "object")
30060
+ throw TypeError(".ContentfulSleepcastCreated.mixedAudioMedia: object expected");
30061
+ message.mixedAudioMedia = {};
30062
+ for (var keys = Object.keys(object.mixedAudioMedia), i = 0; i < keys.length; ++i) {
30063
+ if (typeof object.mixedAudioMedia[keys[i]] !== "object")
30064
+ throw TypeError(".ContentfulSleepcastCreated.mixedAudioMedia: object expected");
30065
+ message.mixedAudioMedia[keys[i]] = $root.contentful.IdReferences.fromObject(object.mixedAudioMedia[keys[i]]);
30066
+ }
30067
+ }
30068
+ if (object.accessGroup) {
30069
+ if (!Array.isArray(object.accessGroup))
30070
+ throw TypeError(".ContentfulSleepcastCreated.accessGroup: array expected");
30071
+ message.accessGroup = [];
30072
+ for (var i = 0; i < object.accessGroup.length; ++i) {
30073
+ if (typeof object.accessGroup[i] !== "object")
30074
+ throw TypeError(".ContentfulSleepcastCreated.accessGroup: object expected");
30075
+ message.accessGroup[i] = $root.contentful.SlugReference.fromObject(object.accessGroup[i]);
30076
+ }
30077
+ }
30078
+ if (object.createdAt != null)
30079
+ if ($util.Long)
30080
+ (message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
30081
+ else if (typeof object.createdAt === "string")
30082
+ message.createdAt = parseInt(object.createdAt, 10);
30083
+ else if (typeof object.createdAt === "number")
30084
+ message.createdAt = object.createdAt;
30085
+ else if (typeof object.createdAt === "object")
30086
+ message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
30087
+ return message;
30088
+ };
30089
+
30090
+ /**
30091
+ * Creates a plain object from a ContentfulSleepcastCreated message. Also converts values to other types if specified.
30092
+ * @function toObject
30093
+ * @memberof ContentfulSleepcastCreated
30094
+ * @static
30095
+ * @param {ContentfulSleepcastCreated} message ContentfulSleepcastCreated
30096
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
30097
+ * @returns {Object.<string,*>} Plain object
30098
+ */
30099
+ ContentfulSleepcastCreated.toObject = function toObject(message, options) {
30100
+ if (!options)
30101
+ options = {};
30102
+ var object = {};
30103
+ if (options.arrays || options.defaults)
30104
+ object.accessGroup = [];
30105
+ if (options.objects || options.defaults) {
30106
+ object.title = {};
30107
+ object.subtitle = {};
30108
+ object.description = {};
30109
+ object.recipe = {};
30110
+ object.tileBackgroundMedia = {};
30111
+ object.playerBackgroundMedia = {};
30112
+ object.primaryAudioMedia = {};
30113
+ object.secondaryAudioMedia = {};
30114
+ object.mixedAudioMedia = {};
30115
+ }
30116
+ if (options.defaults) {
30117
+ object.slug = "";
30118
+ object.useVariantPresents = false;
30119
+ object.isEnabled = false;
30120
+ if ($util.Long) {
30121
+ var long = new $util.Long(0, 0, true);
30122
+ object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
30123
+ } else
30124
+ object.createdAt = options.longs === String ? "0" : 0;
30125
+ }
30126
+ var keys2;
30127
+ if (message.title && (keys2 = Object.keys(message.title)).length) {
30128
+ object.title = {};
30129
+ for (var j = 0; j < keys2.length; ++j)
30130
+ object.title[keys2[j]] = message.title[keys2[j]];
30131
+ }
30132
+ if (message.slug != null && message.hasOwnProperty("slug"))
30133
+ object.slug = message.slug;
30134
+ if (message.subtitle && (keys2 = Object.keys(message.subtitle)).length) {
30135
+ object.subtitle = {};
30136
+ for (var j = 0; j < keys2.length; ++j)
30137
+ object.subtitle[keys2[j]] = message.subtitle[keys2[j]];
30138
+ }
30139
+ if (message.description && (keys2 = Object.keys(message.description)).length) {
30140
+ object.description = {};
30141
+ for (var j = 0; j < keys2.length; ++j)
30142
+ object.description[keys2[j]] = message.description[keys2[j]];
30143
+ }
30144
+ if (message.recipe && (keys2 = Object.keys(message.recipe)).length) {
30145
+ object.recipe = {};
30146
+ for (var j = 0; j < keys2.length; ++j)
30147
+ object.recipe[keys2[j]] = $root.contentful.SlugReference.toObject(message.recipe[keys2[j]], options);
30148
+ }
30149
+ if (message.tileBackgroundMedia && (keys2 = Object.keys(message.tileBackgroundMedia)).length) {
30150
+ object.tileBackgroundMedia = {};
30151
+ for (var j = 0; j < keys2.length; ++j)
30152
+ object.tileBackgroundMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.tileBackgroundMedia[keys2[j]], options);
30153
+ }
30154
+ if (message.playerBackgroundMedia && (keys2 = Object.keys(message.playerBackgroundMedia)).length) {
30155
+ object.playerBackgroundMedia = {};
30156
+ for (var j = 0; j < keys2.length; ++j)
30157
+ object.playerBackgroundMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.playerBackgroundMedia[keys2[j]], options);
30158
+ }
30159
+ if (message.useVariantPresents != null && message.hasOwnProperty("useVariantPresents"))
30160
+ object.useVariantPresents = message.useVariantPresents;
30161
+ if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
30162
+ object.isEnabled = message.isEnabled;
30163
+ if (message.primaryAudioMedia && (keys2 = Object.keys(message.primaryAudioMedia)).length) {
30164
+ object.primaryAudioMedia = {};
30165
+ for (var j = 0; j < keys2.length; ++j)
30166
+ object.primaryAudioMedia[keys2[j]] = $root.contentful.IdReferences.toObject(message.primaryAudioMedia[keys2[j]], options);
30167
+ }
30168
+ if (message.secondaryAudioMedia && (keys2 = Object.keys(message.secondaryAudioMedia)).length) {
30169
+ object.secondaryAudioMedia = {};
30170
+ for (var j = 0; j < keys2.length; ++j)
30171
+ object.secondaryAudioMedia[keys2[j]] = $root.contentful.IdReferences.toObject(message.secondaryAudioMedia[keys2[j]], options);
30172
+ }
30173
+ if (message.mixedAudioMedia && (keys2 = Object.keys(message.mixedAudioMedia)).length) {
30174
+ object.mixedAudioMedia = {};
30175
+ for (var j = 0; j < keys2.length; ++j)
30176
+ object.mixedAudioMedia[keys2[j]] = $root.contentful.IdReferences.toObject(message.mixedAudioMedia[keys2[j]], options);
30177
+ }
30178
+ if (message.accessGroup && message.accessGroup.length) {
30179
+ object.accessGroup = [];
30180
+ for (var j = 0; j < message.accessGroup.length; ++j)
30181
+ object.accessGroup[j] = $root.contentful.SlugReference.toObject(message.accessGroup[j], options);
30182
+ }
30183
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
30184
+ if (typeof message.createdAt === "number")
30185
+ object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
30186
+ else
30187
+ 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;
30188
+ return object;
30189
+ };
30190
+
30191
+ /**
30192
+ * Converts this ContentfulSleepcastCreated to JSON.
30193
+ * @function toJSON
30194
+ * @memberof ContentfulSleepcastCreated
30195
+ * @instance
30196
+ * @returns {Object.<string,*>} JSON object
30197
+ */
30198
+ ContentfulSleepcastCreated.prototype.toJSON = function toJSON() {
30199
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
30200
+ };
30201
+
30202
+ return ContentfulSleepcastCreated;
30203
+ })();
30204
+
30205
+ $root.ContentfulSleepcastUpdated = (function() {
30206
+
30207
+ /**
30208
+ * Properties of a ContentfulSleepcastUpdated.
30209
+ * @exports IContentfulSleepcastUpdated
30210
+ * @interface IContentfulSleepcastUpdated
30211
+ * @property {Object.<string,string>|null} [title] ContentfulSleepcastUpdated title
30212
+ * @property {string|null} [slug] ContentfulSleepcastUpdated slug
30213
+ * @property {Object.<string,string>|null} [subtitle] ContentfulSleepcastUpdated subtitle
30214
+ * @property {Object.<string,string>|null} [description] ContentfulSleepcastUpdated description
30215
+ * @property {Object.<string,contentful.ISlugReference>|null} [recipe] ContentfulSleepcastUpdated recipe
30216
+ * @property {Object.<string,contentful.IIdReference>|null} [tileBackgroundMedia] ContentfulSleepcastUpdated tileBackgroundMedia
30217
+ * @property {Object.<string,contentful.IIdReference>|null} [playerBackgroundMedia] ContentfulSleepcastUpdated playerBackgroundMedia
30218
+ * @property {boolean|null} [useVariantPresents] ContentfulSleepcastUpdated useVariantPresents
30219
+ * @property {boolean|null} [isEnabled] ContentfulSleepcastUpdated isEnabled
30220
+ * @property {Object.<string,contentful.IIdReferences>|null} [primaryAudioMedia] ContentfulSleepcastUpdated primaryAudioMedia
30221
+ * @property {Object.<string,contentful.IIdReferences>|null} [secondaryAudioMedia] ContentfulSleepcastUpdated secondaryAudioMedia
30222
+ * @property {Object.<string,contentful.IIdReferences>|null} [mixedAudioMedia] ContentfulSleepcastUpdated mixedAudioMedia
30223
+ * @property {Array.<contentful.ISlugReference>|null} [accessGroup] ContentfulSleepcastUpdated accessGroup
30224
+ * @property {number|Long|null} [updatedAt] ContentfulSleepcastUpdated updatedAt
30225
+ */
30226
+
30227
+ /**
30228
+ * Constructs a new ContentfulSleepcastUpdated.
30229
+ * @exports ContentfulSleepcastUpdated
30230
+ * @classdesc Represents a ContentfulSleepcastUpdated.
30231
+ * @implements IContentfulSleepcastUpdated
30232
+ * @constructor
30233
+ * @param {IContentfulSleepcastUpdated=} [properties] Properties to set
30234
+ */
30235
+ function ContentfulSleepcastUpdated(properties) {
30236
+ this.title = {};
30237
+ this.subtitle = {};
30238
+ this.description = {};
30239
+ this.recipe = {};
30240
+ this.tileBackgroundMedia = {};
30241
+ this.playerBackgroundMedia = {};
30242
+ this.primaryAudioMedia = {};
30243
+ this.secondaryAudioMedia = {};
30244
+ this.mixedAudioMedia = {};
30245
+ this.accessGroup = [];
30246
+ if (properties)
30247
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
30248
+ if (properties[keys[i]] != null)
30249
+ this[keys[i]] = properties[keys[i]];
30250
+ }
30251
+
30252
+ /**
30253
+ * ContentfulSleepcastUpdated title.
30254
+ * @member {Object.<string,string>} title
30255
+ * @memberof ContentfulSleepcastUpdated
30256
+ * @instance
30257
+ */
30258
+ ContentfulSleepcastUpdated.prototype.title = $util.emptyObject;
30259
+
30260
+ /**
30261
+ * ContentfulSleepcastUpdated slug.
30262
+ * @member {string} slug
30263
+ * @memberof ContentfulSleepcastUpdated
30264
+ * @instance
30265
+ */
30266
+ ContentfulSleepcastUpdated.prototype.slug = "";
30267
+
30268
+ /**
30269
+ * ContentfulSleepcastUpdated subtitle.
30270
+ * @member {Object.<string,string>} subtitle
30271
+ * @memberof ContentfulSleepcastUpdated
30272
+ * @instance
30273
+ */
30274
+ ContentfulSleepcastUpdated.prototype.subtitle = $util.emptyObject;
30275
+
30276
+ /**
30277
+ * ContentfulSleepcastUpdated description.
30278
+ * @member {Object.<string,string>} description
30279
+ * @memberof ContentfulSleepcastUpdated
30280
+ * @instance
30281
+ */
30282
+ ContentfulSleepcastUpdated.prototype.description = $util.emptyObject;
30283
+
30284
+ /**
30285
+ * ContentfulSleepcastUpdated recipe.
30286
+ * @member {Object.<string,contentful.ISlugReference>} recipe
30287
+ * @memberof ContentfulSleepcastUpdated
30288
+ * @instance
30289
+ */
30290
+ ContentfulSleepcastUpdated.prototype.recipe = $util.emptyObject;
30291
+
30292
+ /**
30293
+ * ContentfulSleepcastUpdated tileBackgroundMedia.
30294
+ * @member {Object.<string,contentful.IIdReference>} tileBackgroundMedia
30295
+ * @memberof ContentfulSleepcastUpdated
30296
+ * @instance
30297
+ */
30298
+ ContentfulSleepcastUpdated.prototype.tileBackgroundMedia = $util.emptyObject;
30299
+
30300
+ /**
30301
+ * ContentfulSleepcastUpdated playerBackgroundMedia.
30302
+ * @member {Object.<string,contentful.IIdReference>} playerBackgroundMedia
30303
+ * @memberof ContentfulSleepcastUpdated
30304
+ * @instance
30305
+ */
30306
+ ContentfulSleepcastUpdated.prototype.playerBackgroundMedia = $util.emptyObject;
30307
+
30308
+ /**
30309
+ * ContentfulSleepcastUpdated useVariantPresents.
30310
+ * @member {boolean} useVariantPresents
30311
+ * @memberof ContentfulSleepcastUpdated
30312
+ * @instance
30313
+ */
30314
+ ContentfulSleepcastUpdated.prototype.useVariantPresents = false;
30315
+
30316
+ /**
30317
+ * ContentfulSleepcastUpdated isEnabled.
30318
+ * @member {boolean} isEnabled
30319
+ * @memberof ContentfulSleepcastUpdated
30320
+ * @instance
30321
+ */
30322
+ ContentfulSleepcastUpdated.prototype.isEnabled = false;
30323
+
30324
+ /**
30325
+ * ContentfulSleepcastUpdated primaryAudioMedia.
30326
+ * @member {Object.<string,contentful.IIdReferences>} primaryAudioMedia
30327
+ * @memberof ContentfulSleepcastUpdated
30328
+ * @instance
30329
+ */
30330
+ ContentfulSleepcastUpdated.prototype.primaryAudioMedia = $util.emptyObject;
30331
+
30332
+ /**
30333
+ * ContentfulSleepcastUpdated secondaryAudioMedia.
30334
+ * @member {Object.<string,contentful.IIdReferences>} secondaryAudioMedia
30335
+ * @memberof ContentfulSleepcastUpdated
30336
+ * @instance
30337
+ */
30338
+ ContentfulSleepcastUpdated.prototype.secondaryAudioMedia = $util.emptyObject;
30339
+
30340
+ /**
30341
+ * ContentfulSleepcastUpdated mixedAudioMedia.
30342
+ * @member {Object.<string,contentful.IIdReferences>} mixedAudioMedia
30343
+ * @memberof ContentfulSleepcastUpdated
30344
+ * @instance
30345
+ */
30346
+ ContentfulSleepcastUpdated.prototype.mixedAudioMedia = $util.emptyObject;
30347
+
30348
+ /**
30349
+ * ContentfulSleepcastUpdated accessGroup.
30350
+ * @member {Array.<contentful.ISlugReference>} accessGroup
30351
+ * @memberof ContentfulSleepcastUpdated
30352
+ * @instance
30353
+ */
30354
+ ContentfulSleepcastUpdated.prototype.accessGroup = $util.emptyArray;
30355
+
30356
+ /**
30357
+ * ContentfulSleepcastUpdated updatedAt.
30358
+ * @member {number|Long} updatedAt
30359
+ * @memberof ContentfulSleepcastUpdated
30360
+ * @instance
30361
+ */
30362
+ ContentfulSleepcastUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
30363
+
30364
+ /**
30365
+ * Creates a new ContentfulSleepcastUpdated instance using the specified properties.
30366
+ * @function create
30367
+ * @memberof ContentfulSleepcastUpdated
30368
+ * @static
30369
+ * @param {IContentfulSleepcastUpdated=} [properties] Properties to set
30370
+ * @returns {ContentfulSleepcastUpdated} ContentfulSleepcastUpdated instance
30371
+ */
30372
+ ContentfulSleepcastUpdated.create = function create(properties) {
30373
+ return new ContentfulSleepcastUpdated(properties);
30374
+ };
30375
+
30376
+ /**
30377
+ * Encodes the specified ContentfulSleepcastUpdated message. Does not implicitly {@link ContentfulSleepcastUpdated.verify|verify} messages.
30378
+ * @function encode
30379
+ * @memberof ContentfulSleepcastUpdated
30380
+ * @static
30381
+ * @param {IContentfulSleepcastUpdated} message ContentfulSleepcastUpdated message or plain object to encode
30382
+ * @param {$protobuf.Writer} [writer] Writer to encode to
30383
+ * @returns {$protobuf.Writer} Writer
30384
+ */
30385
+ ContentfulSleepcastUpdated.encode = function encode(message, writer) {
30386
+ if (!writer)
30387
+ writer = $Writer.create();
30388
+ if (message.title != null && message.hasOwnProperty("title"))
30389
+ for (var keys = Object.keys(message.title), i = 0; i < keys.length; ++i)
30390
+ writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.title[keys[i]]).ldelim();
30391
+ if (message.slug != null && message.hasOwnProperty("slug"))
30392
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.slug);
30393
+ if (message.subtitle != null && message.hasOwnProperty("subtitle"))
30394
+ for (var keys = Object.keys(message.subtitle), i = 0; i < keys.length; ++i)
30395
+ writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.subtitle[keys[i]]).ldelim();
30396
+ if (message.description != null && message.hasOwnProperty("description"))
30397
+ for (var keys = Object.keys(message.description), i = 0; i < keys.length; ++i)
30398
+ writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.description[keys[i]]).ldelim();
30399
+ if (message.recipe != null && message.hasOwnProperty("recipe"))
30400
+ for (var keys = Object.keys(message.recipe), i = 0; i < keys.length; ++i) {
30401
+ writer.uint32(/* id 5, wireType 2 =*/42).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
30402
+ $root.contentful.SlugReference.encode(message.recipe[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
30403
+ }
30404
+ if (message.tileBackgroundMedia != null && message.hasOwnProperty("tileBackgroundMedia"))
30405
+ for (var keys = Object.keys(message.tileBackgroundMedia), i = 0; i < keys.length; ++i) {
30406
+ writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
30407
+ $root.contentful.IdReference.encode(message.tileBackgroundMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
30408
+ }
30409
+ if (message.playerBackgroundMedia != null && message.hasOwnProperty("playerBackgroundMedia"))
30410
+ for (var keys = Object.keys(message.playerBackgroundMedia), i = 0; i < keys.length; ++i) {
30411
+ writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
30412
+ $root.contentful.IdReference.encode(message.playerBackgroundMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
30413
+ }
30414
+ if (message.useVariantPresents != null && message.hasOwnProperty("useVariantPresents"))
30415
+ writer.uint32(/* id 8, wireType 0 =*/64).bool(message.useVariantPresents);
30416
+ if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
30417
+ writer.uint32(/* id 9, wireType 0 =*/72).bool(message.isEnabled);
30418
+ if (message.primaryAudioMedia != null && message.hasOwnProperty("primaryAudioMedia"))
30419
+ for (var keys = Object.keys(message.primaryAudioMedia), i = 0; i < keys.length; ++i) {
30420
+ writer.uint32(/* id 10, wireType 2 =*/82).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
30421
+ $root.contentful.IdReferences.encode(message.primaryAudioMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
30422
+ }
30423
+ if (message.secondaryAudioMedia != null && message.hasOwnProperty("secondaryAudioMedia"))
30424
+ for (var keys = Object.keys(message.secondaryAudioMedia), i = 0; i < keys.length; ++i) {
30425
+ writer.uint32(/* id 11, wireType 2 =*/90).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
30426
+ $root.contentful.IdReferences.encode(message.secondaryAudioMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
30427
+ }
30428
+ if (message.mixedAudioMedia != null && message.hasOwnProperty("mixedAudioMedia"))
30429
+ for (var keys = Object.keys(message.mixedAudioMedia), i = 0; i < keys.length; ++i) {
30430
+ writer.uint32(/* id 12, wireType 2 =*/98).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
30431
+ $root.contentful.IdReferences.encode(message.mixedAudioMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
30432
+ }
30433
+ if (message.accessGroup != null && message.accessGroup.length)
30434
+ for (var i = 0; i < message.accessGroup.length; ++i)
30435
+ $root.contentful.SlugReference.encode(message.accessGroup[i], writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim();
30436
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
30437
+ writer.uint32(/* id 14, wireType 0 =*/112).uint64(message.updatedAt);
30438
+ return writer;
30439
+ };
30440
+
30441
+ /**
30442
+ * Encodes the specified ContentfulSleepcastUpdated message, length delimited. Does not implicitly {@link ContentfulSleepcastUpdated.verify|verify} messages.
30443
+ * @function encodeDelimited
30444
+ * @memberof ContentfulSleepcastUpdated
30445
+ * @static
30446
+ * @param {IContentfulSleepcastUpdated} message ContentfulSleepcastUpdated message or plain object to encode
30447
+ * @param {$protobuf.Writer} [writer] Writer to encode to
30448
+ * @returns {$protobuf.Writer} Writer
30449
+ */
30450
+ ContentfulSleepcastUpdated.encodeDelimited = function encodeDelimited(message, writer) {
30451
+ return this.encode(message, writer).ldelim();
30452
+ };
30453
+
30454
+ /**
30455
+ * Decodes a ContentfulSleepcastUpdated message from the specified reader or buffer.
30456
+ * @function decode
30457
+ * @memberof ContentfulSleepcastUpdated
30458
+ * @static
30459
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
30460
+ * @param {number} [length] Message length if known beforehand
30461
+ * @returns {ContentfulSleepcastUpdated} ContentfulSleepcastUpdated
30462
+ * @throws {Error} If the payload is not a reader or valid buffer
30463
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
30464
+ */
30465
+ ContentfulSleepcastUpdated.decode = function decode(reader, length) {
30466
+ if (!(reader instanceof $Reader))
30467
+ reader = $Reader.create(reader);
30468
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulSleepcastUpdated(), key;
30469
+ while (reader.pos < end) {
30470
+ var tag = reader.uint32();
30471
+ switch (tag >>> 3) {
30472
+ case 1:
30473
+ reader.skip().pos++;
30474
+ if (message.title === $util.emptyObject)
30475
+ message.title = {};
30476
+ key = reader.string();
30477
+ reader.pos++;
30478
+ message.title[key] = reader.string();
30479
+ break;
30480
+ case 2:
30481
+ message.slug = reader.string();
30482
+ break;
30483
+ case 3:
30484
+ reader.skip().pos++;
30485
+ if (message.subtitle === $util.emptyObject)
30486
+ message.subtitle = {};
30487
+ key = reader.string();
30488
+ reader.pos++;
30489
+ message.subtitle[key] = reader.string();
30490
+ break;
30491
+ case 4:
30492
+ reader.skip().pos++;
30493
+ if (message.description === $util.emptyObject)
30494
+ message.description = {};
30495
+ key = reader.string();
30496
+ reader.pos++;
30497
+ message.description[key] = reader.string();
30498
+ break;
30499
+ case 5:
30500
+ reader.skip().pos++;
30501
+ if (message.recipe === $util.emptyObject)
30502
+ message.recipe = {};
30503
+ key = reader.string();
30504
+ reader.pos++;
30505
+ message.recipe[key] = $root.contentful.SlugReference.decode(reader, reader.uint32());
30506
+ break;
30507
+ case 6:
30508
+ reader.skip().pos++;
30509
+ if (message.tileBackgroundMedia === $util.emptyObject)
30510
+ message.tileBackgroundMedia = {};
30511
+ key = reader.string();
30512
+ reader.pos++;
30513
+ message.tileBackgroundMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
30514
+ break;
30515
+ case 7:
30516
+ reader.skip().pos++;
30517
+ if (message.playerBackgroundMedia === $util.emptyObject)
30518
+ message.playerBackgroundMedia = {};
30519
+ key = reader.string();
30520
+ reader.pos++;
30521
+ message.playerBackgroundMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
30522
+ break;
30523
+ case 8:
30524
+ message.useVariantPresents = reader.bool();
30525
+ break;
30526
+ case 9:
30527
+ message.isEnabled = reader.bool();
30528
+ break;
30529
+ case 10:
30530
+ reader.skip().pos++;
30531
+ if (message.primaryAudioMedia === $util.emptyObject)
30532
+ message.primaryAudioMedia = {};
30533
+ key = reader.string();
30534
+ reader.pos++;
30535
+ message.primaryAudioMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
30536
+ break;
30537
+ case 11:
30538
+ reader.skip().pos++;
30539
+ if (message.secondaryAudioMedia === $util.emptyObject)
30540
+ message.secondaryAudioMedia = {};
30541
+ key = reader.string();
30542
+ reader.pos++;
30543
+ message.secondaryAudioMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
30544
+ break;
30545
+ case 12:
30546
+ reader.skip().pos++;
30547
+ if (message.mixedAudioMedia === $util.emptyObject)
30548
+ message.mixedAudioMedia = {};
30549
+ key = reader.string();
30550
+ reader.pos++;
30551
+ message.mixedAudioMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
30552
+ break;
30553
+ case 13:
30554
+ if (!(message.accessGroup && message.accessGroup.length))
30555
+ message.accessGroup = [];
30556
+ message.accessGroup.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
30557
+ break;
30558
+ case 14:
30559
+ message.updatedAt = reader.uint64();
30560
+ break;
30561
+ default:
30562
+ reader.skipType(tag & 7);
30563
+ break;
30564
+ }
30565
+ }
30566
+ return message;
30567
+ };
30568
+
30569
+ /**
30570
+ * Decodes a ContentfulSleepcastUpdated message from the specified reader or buffer, length delimited.
30571
+ * @function decodeDelimited
30572
+ * @memberof ContentfulSleepcastUpdated
30573
+ * @static
30574
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
30575
+ * @returns {ContentfulSleepcastUpdated} ContentfulSleepcastUpdated
30576
+ * @throws {Error} If the payload is not a reader or valid buffer
30577
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
30578
+ */
30579
+ ContentfulSleepcastUpdated.decodeDelimited = function decodeDelimited(reader) {
30580
+ if (!(reader instanceof $Reader))
30581
+ reader = new $Reader(reader);
30582
+ return this.decode(reader, reader.uint32());
30583
+ };
30584
+
30585
+ /**
30586
+ * Verifies a ContentfulSleepcastUpdated message.
30587
+ * @function verify
30588
+ * @memberof ContentfulSleepcastUpdated
30589
+ * @static
30590
+ * @param {Object.<string,*>} message Plain object to verify
30591
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
30592
+ */
30593
+ ContentfulSleepcastUpdated.verify = function verify(message) {
30594
+ if (typeof message !== "object" || message === null)
30595
+ return "object expected";
30596
+ if (message.title != null && message.hasOwnProperty("title")) {
30597
+ if (!$util.isObject(message.title))
30598
+ return "title: object expected";
30599
+ var key = Object.keys(message.title);
30600
+ for (var i = 0; i < key.length; ++i)
30601
+ if (!$util.isString(message.title[key[i]]))
30602
+ return "title: string{k:string} expected";
30603
+ }
30604
+ if (message.slug != null && message.hasOwnProperty("slug"))
30605
+ if (!$util.isString(message.slug))
30606
+ return "slug: string expected";
30607
+ if (message.subtitle != null && message.hasOwnProperty("subtitle")) {
30608
+ if (!$util.isObject(message.subtitle))
30609
+ return "subtitle: object expected";
30610
+ var key = Object.keys(message.subtitle);
30611
+ for (var i = 0; i < key.length; ++i)
30612
+ if (!$util.isString(message.subtitle[key[i]]))
30613
+ return "subtitle: string{k:string} expected";
30614
+ }
30615
+ if (message.description != null && message.hasOwnProperty("description")) {
30616
+ if (!$util.isObject(message.description))
30617
+ return "description: object expected";
30618
+ var key = Object.keys(message.description);
30619
+ for (var i = 0; i < key.length; ++i)
30620
+ if (!$util.isString(message.description[key[i]]))
30621
+ return "description: string{k:string} expected";
30622
+ }
30623
+ if (message.recipe != null && message.hasOwnProperty("recipe")) {
30624
+ if (!$util.isObject(message.recipe))
30625
+ return "recipe: object expected";
30626
+ var key = Object.keys(message.recipe);
30627
+ for (var i = 0; i < key.length; ++i) {
30628
+ var error = $root.contentful.SlugReference.verify(message.recipe[key[i]]);
30629
+ if (error)
30630
+ return "recipe." + error;
30631
+ }
30632
+ }
30633
+ if (message.tileBackgroundMedia != null && message.hasOwnProperty("tileBackgroundMedia")) {
30634
+ if (!$util.isObject(message.tileBackgroundMedia))
30635
+ return "tileBackgroundMedia: object expected";
30636
+ var key = Object.keys(message.tileBackgroundMedia);
30637
+ for (var i = 0; i < key.length; ++i) {
30638
+ var error = $root.contentful.IdReference.verify(message.tileBackgroundMedia[key[i]]);
30639
+ if (error)
30640
+ return "tileBackgroundMedia." + error;
30641
+ }
30642
+ }
30643
+ if (message.playerBackgroundMedia != null && message.hasOwnProperty("playerBackgroundMedia")) {
30644
+ if (!$util.isObject(message.playerBackgroundMedia))
30645
+ return "playerBackgroundMedia: object expected";
30646
+ var key = Object.keys(message.playerBackgroundMedia);
30647
+ for (var i = 0; i < key.length; ++i) {
30648
+ var error = $root.contentful.IdReference.verify(message.playerBackgroundMedia[key[i]]);
30649
+ if (error)
30650
+ return "playerBackgroundMedia." + error;
30651
+ }
30652
+ }
30653
+ if (message.useVariantPresents != null && message.hasOwnProperty("useVariantPresents"))
30654
+ if (typeof message.useVariantPresents !== "boolean")
30655
+ return "useVariantPresents: boolean expected";
30656
+ if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
30657
+ if (typeof message.isEnabled !== "boolean")
30658
+ return "isEnabled: boolean expected";
30659
+ if (message.primaryAudioMedia != null && message.hasOwnProperty("primaryAudioMedia")) {
30660
+ if (!$util.isObject(message.primaryAudioMedia))
30661
+ return "primaryAudioMedia: object expected";
30662
+ var key = Object.keys(message.primaryAudioMedia);
30663
+ for (var i = 0; i < key.length; ++i) {
30664
+ var error = $root.contentful.IdReferences.verify(message.primaryAudioMedia[key[i]]);
30665
+ if (error)
30666
+ return "primaryAudioMedia." + error;
30667
+ }
30668
+ }
30669
+ if (message.secondaryAudioMedia != null && message.hasOwnProperty("secondaryAudioMedia")) {
30670
+ if (!$util.isObject(message.secondaryAudioMedia))
30671
+ return "secondaryAudioMedia: object expected";
30672
+ var key = Object.keys(message.secondaryAudioMedia);
30673
+ for (var i = 0; i < key.length; ++i) {
30674
+ var error = $root.contentful.IdReferences.verify(message.secondaryAudioMedia[key[i]]);
30675
+ if (error)
30676
+ return "secondaryAudioMedia." + error;
30677
+ }
30678
+ }
30679
+ if (message.mixedAudioMedia != null && message.hasOwnProperty("mixedAudioMedia")) {
30680
+ if (!$util.isObject(message.mixedAudioMedia))
30681
+ return "mixedAudioMedia: object expected";
30682
+ var key = Object.keys(message.mixedAudioMedia);
30683
+ for (var i = 0; i < key.length; ++i) {
30684
+ var error = $root.contentful.IdReferences.verify(message.mixedAudioMedia[key[i]]);
30685
+ if (error)
30686
+ return "mixedAudioMedia." + error;
30687
+ }
30688
+ }
30689
+ if (message.accessGroup != null && message.hasOwnProperty("accessGroup")) {
30690
+ if (!Array.isArray(message.accessGroup))
30691
+ return "accessGroup: array expected";
30692
+ for (var i = 0; i < message.accessGroup.length; ++i) {
30693
+ var error = $root.contentful.SlugReference.verify(message.accessGroup[i]);
30694
+ if (error)
30695
+ return "accessGroup." + error;
30696
+ }
30697
+ }
30698
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
30699
+ if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
30700
+ return "updatedAt: integer|Long expected";
30701
+ return null;
30702
+ };
30703
+
30704
+ /**
30705
+ * Creates a ContentfulSleepcastUpdated message from a plain object. Also converts values to their respective internal types.
30706
+ * @function fromObject
30707
+ * @memberof ContentfulSleepcastUpdated
30708
+ * @static
30709
+ * @param {Object.<string,*>} object Plain object
30710
+ * @returns {ContentfulSleepcastUpdated} ContentfulSleepcastUpdated
30711
+ */
30712
+ ContentfulSleepcastUpdated.fromObject = function fromObject(object) {
30713
+ if (object instanceof $root.ContentfulSleepcastUpdated)
30714
+ return object;
30715
+ var message = new $root.ContentfulSleepcastUpdated();
30716
+ if (object.title) {
30717
+ if (typeof object.title !== "object")
30718
+ throw TypeError(".ContentfulSleepcastUpdated.title: object expected");
30719
+ message.title = {};
30720
+ for (var keys = Object.keys(object.title), i = 0; i < keys.length; ++i)
30721
+ message.title[keys[i]] = String(object.title[keys[i]]);
30722
+ }
30723
+ if (object.slug != null)
30724
+ message.slug = String(object.slug);
30725
+ if (object.subtitle) {
30726
+ if (typeof object.subtitle !== "object")
30727
+ throw TypeError(".ContentfulSleepcastUpdated.subtitle: object expected");
30728
+ message.subtitle = {};
30729
+ for (var keys = Object.keys(object.subtitle), i = 0; i < keys.length; ++i)
30730
+ message.subtitle[keys[i]] = String(object.subtitle[keys[i]]);
30731
+ }
30732
+ if (object.description) {
30733
+ if (typeof object.description !== "object")
30734
+ throw TypeError(".ContentfulSleepcastUpdated.description: object expected");
30735
+ message.description = {};
30736
+ for (var keys = Object.keys(object.description), i = 0; i < keys.length; ++i)
30737
+ message.description[keys[i]] = String(object.description[keys[i]]);
30738
+ }
30739
+ if (object.recipe) {
30740
+ if (typeof object.recipe !== "object")
30741
+ throw TypeError(".ContentfulSleepcastUpdated.recipe: object expected");
30742
+ message.recipe = {};
30743
+ for (var keys = Object.keys(object.recipe), i = 0; i < keys.length; ++i) {
30744
+ if (typeof object.recipe[keys[i]] !== "object")
30745
+ throw TypeError(".ContentfulSleepcastUpdated.recipe: object expected");
30746
+ message.recipe[keys[i]] = $root.contentful.SlugReference.fromObject(object.recipe[keys[i]]);
30747
+ }
30748
+ }
30749
+ if (object.tileBackgroundMedia) {
30750
+ if (typeof object.tileBackgroundMedia !== "object")
30751
+ throw TypeError(".ContentfulSleepcastUpdated.tileBackgroundMedia: object expected");
30752
+ message.tileBackgroundMedia = {};
30753
+ for (var keys = Object.keys(object.tileBackgroundMedia), i = 0; i < keys.length; ++i) {
30754
+ if (typeof object.tileBackgroundMedia[keys[i]] !== "object")
30755
+ throw TypeError(".ContentfulSleepcastUpdated.tileBackgroundMedia: object expected");
30756
+ message.tileBackgroundMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.tileBackgroundMedia[keys[i]]);
30757
+ }
30758
+ }
30759
+ if (object.playerBackgroundMedia) {
30760
+ if (typeof object.playerBackgroundMedia !== "object")
30761
+ throw TypeError(".ContentfulSleepcastUpdated.playerBackgroundMedia: object expected");
30762
+ message.playerBackgroundMedia = {};
30763
+ for (var keys = Object.keys(object.playerBackgroundMedia), i = 0; i < keys.length; ++i) {
30764
+ if (typeof object.playerBackgroundMedia[keys[i]] !== "object")
30765
+ throw TypeError(".ContentfulSleepcastUpdated.playerBackgroundMedia: object expected");
30766
+ message.playerBackgroundMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.playerBackgroundMedia[keys[i]]);
30767
+ }
30768
+ }
30769
+ if (object.useVariantPresents != null)
30770
+ message.useVariantPresents = Boolean(object.useVariantPresents);
30771
+ if (object.isEnabled != null)
30772
+ message.isEnabled = Boolean(object.isEnabled);
30773
+ if (object.primaryAudioMedia) {
30774
+ if (typeof object.primaryAudioMedia !== "object")
30775
+ throw TypeError(".ContentfulSleepcastUpdated.primaryAudioMedia: object expected");
30776
+ message.primaryAudioMedia = {};
30777
+ for (var keys = Object.keys(object.primaryAudioMedia), i = 0; i < keys.length; ++i) {
30778
+ if (typeof object.primaryAudioMedia[keys[i]] !== "object")
30779
+ throw TypeError(".ContentfulSleepcastUpdated.primaryAudioMedia: object expected");
30780
+ message.primaryAudioMedia[keys[i]] = $root.contentful.IdReferences.fromObject(object.primaryAudioMedia[keys[i]]);
30781
+ }
30782
+ }
30783
+ if (object.secondaryAudioMedia) {
30784
+ if (typeof object.secondaryAudioMedia !== "object")
30785
+ throw TypeError(".ContentfulSleepcastUpdated.secondaryAudioMedia: object expected");
30786
+ message.secondaryAudioMedia = {};
30787
+ for (var keys = Object.keys(object.secondaryAudioMedia), i = 0; i < keys.length; ++i) {
30788
+ if (typeof object.secondaryAudioMedia[keys[i]] !== "object")
30789
+ throw TypeError(".ContentfulSleepcastUpdated.secondaryAudioMedia: object expected");
30790
+ message.secondaryAudioMedia[keys[i]] = $root.contentful.IdReferences.fromObject(object.secondaryAudioMedia[keys[i]]);
30791
+ }
30792
+ }
30793
+ if (object.mixedAudioMedia) {
30794
+ if (typeof object.mixedAudioMedia !== "object")
30795
+ throw TypeError(".ContentfulSleepcastUpdated.mixedAudioMedia: object expected");
30796
+ message.mixedAudioMedia = {};
30797
+ for (var keys = Object.keys(object.mixedAudioMedia), i = 0; i < keys.length; ++i) {
30798
+ if (typeof object.mixedAudioMedia[keys[i]] !== "object")
30799
+ throw TypeError(".ContentfulSleepcastUpdated.mixedAudioMedia: object expected");
30800
+ message.mixedAudioMedia[keys[i]] = $root.contentful.IdReferences.fromObject(object.mixedAudioMedia[keys[i]]);
30801
+ }
30802
+ }
30803
+ if (object.accessGroup) {
30804
+ if (!Array.isArray(object.accessGroup))
30805
+ throw TypeError(".ContentfulSleepcastUpdated.accessGroup: array expected");
30806
+ message.accessGroup = [];
30807
+ for (var i = 0; i < object.accessGroup.length; ++i) {
30808
+ if (typeof object.accessGroup[i] !== "object")
30809
+ throw TypeError(".ContentfulSleepcastUpdated.accessGroup: object expected");
30810
+ message.accessGroup[i] = $root.contentful.SlugReference.fromObject(object.accessGroup[i]);
30811
+ }
30812
+ }
30813
+ if (object.updatedAt != null)
30814
+ if ($util.Long)
30815
+ (message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
30816
+ else if (typeof object.updatedAt === "string")
30817
+ message.updatedAt = parseInt(object.updatedAt, 10);
30818
+ else if (typeof object.updatedAt === "number")
30819
+ message.updatedAt = object.updatedAt;
30820
+ else if (typeof object.updatedAt === "object")
30821
+ message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
30822
+ return message;
30823
+ };
30824
+
30825
+ /**
30826
+ * Creates a plain object from a ContentfulSleepcastUpdated message. Also converts values to other types if specified.
30827
+ * @function toObject
30828
+ * @memberof ContentfulSleepcastUpdated
30829
+ * @static
30830
+ * @param {ContentfulSleepcastUpdated} message ContentfulSleepcastUpdated
30831
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
30832
+ * @returns {Object.<string,*>} Plain object
30833
+ */
30834
+ ContentfulSleepcastUpdated.toObject = function toObject(message, options) {
30835
+ if (!options)
30836
+ options = {};
30837
+ var object = {};
30838
+ if (options.arrays || options.defaults)
30839
+ object.accessGroup = [];
30840
+ if (options.objects || options.defaults) {
30841
+ object.title = {};
30842
+ object.subtitle = {};
30843
+ object.description = {};
30844
+ object.recipe = {};
30845
+ object.tileBackgroundMedia = {};
30846
+ object.playerBackgroundMedia = {};
30847
+ object.primaryAudioMedia = {};
30848
+ object.secondaryAudioMedia = {};
30849
+ object.mixedAudioMedia = {};
30850
+ }
30851
+ if (options.defaults) {
30852
+ object.slug = "";
30853
+ object.useVariantPresents = false;
30854
+ object.isEnabled = false;
30855
+ if ($util.Long) {
30856
+ var long = new $util.Long(0, 0, true);
30857
+ object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
30858
+ } else
30859
+ object.updatedAt = options.longs === String ? "0" : 0;
30860
+ }
30861
+ var keys2;
30862
+ if (message.title && (keys2 = Object.keys(message.title)).length) {
30863
+ object.title = {};
30864
+ for (var j = 0; j < keys2.length; ++j)
30865
+ object.title[keys2[j]] = message.title[keys2[j]];
30866
+ }
30867
+ if (message.slug != null && message.hasOwnProperty("slug"))
30868
+ object.slug = message.slug;
30869
+ if (message.subtitle && (keys2 = Object.keys(message.subtitle)).length) {
30870
+ object.subtitle = {};
30871
+ for (var j = 0; j < keys2.length; ++j)
30872
+ object.subtitle[keys2[j]] = message.subtitle[keys2[j]];
30873
+ }
30874
+ if (message.description && (keys2 = Object.keys(message.description)).length) {
30875
+ object.description = {};
30876
+ for (var j = 0; j < keys2.length; ++j)
30877
+ object.description[keys2[j]] = message.description[keys2[j]];
30878
+ }
30879
+ if (message.recipe && (keys2 = Object.keys(message.recipe)).length) {
30880
+ object.recipe = {};
30881
+ for (var j = 0; j < keys2.length; ++j)
30882
+ object.recipe[keys2[j]] = $root.contentful.SlugReference.toObject(message.recipe[keys2[j]], options);
30883
+ }
30884
+ if (message.tileBackgroundMedia && (keys2 = Object.keys(message.tileBackgroundMedia)).length) {
30885
+ object.tileBackgroundMedia = {};
30886
+ for (var j = 0; j < keys2.length; ++j)
30887
+ object.tileBackgroundMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.tileBackgroundMedia[keys2[j]], options);
30888
+ }
30889
+ if (message.playerBackgroundMedia && (keys2 = Object.keys(message.playerBackgroundMedia)).length) {
30890
+ object.playerBackgroundMedia = {};
30891
+ for (var j = 0; j < keys2.length; ++j)
30892
+ object.playerBackgroundMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.playerBackgroundMedia[keys2[j]], options);
30893
+ }
30894
+ if (message.useVariantPresents != null && message.hasOwnProperty("useVariantPresents"))
30895
+ object.useVariantPresents = message.useVariantPresents;
30896
+ if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
30897
+ object.isEnabled = message.isEnabled;
30898
+ if (message.primaryAudioMedia && (keys2 = Object.keys(message.primaryAudioMedia)).length) {
30899
+ object.primaryAudioMedia = {};
30900
+ for (var j = 0; j < keys2.length; ++j)
30901
+ object.primaryAudioMedia[keys2[j]] = $root.contentful.IdReferences.toObject(message.primaryAudioMedia[keys2[j]], options);
30902
+ }
30903
+ if (message.secondaryAudioMedia && (keys2 = Object.keys(message.secondaryAudioMedia)).length) {
30904
+ object.secondaryAudioMedia = {};
30905
+ for (var j = 0; j < keys2.length; ++j)
30906
+ object.secondaryAudioMedia[keys2[j]] = $root.contentful.IdReferences.toObject(message.secondaryAudioMedia[keys2[j]], options);
30907
+ }
30908
+ if (message.mixedAudioMedia && (keys2 = Object.keys(message.mixedAudioMedia)).length) {
30909
+ object.mixedAudioMedia = {};
30910
+ for (var j = 0; j < keys2.length; ++j)
30911
+ object.mixedAudioMedia[keys2[j]] = $root.contentful.IdReferences.toObject(message.mixedAudioMedia[keys2[j]], options);
30912
+ }
30913
+ if (message.accessGroup && message.accessGroup.length) {
30914
+ object.accessGroup = [];
30915
+ for (var j = 0; j < message.accessGroup.length; ++j)
30916
+ object.accessGroup[j] = $root.contentful.SlugReference.toObject(message.accessGroup[j], options);
30917
+ }
30918
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
30919
+ if (typeof message.updatedAt === "number")
30920
+ object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
30921
+ else
30922
+ 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;
30923
+ return object;
30924
+ };
30925
+
30926
+ /**
30927
+ * Converts this ContentfulSleepcastUpdated to JSON.
30928
+ * @function toJSON
30929
+ * @memberof ContentfulSleepcastUpdated
30930
+ * @instance
30931
+ * @returns {Object.<string,*>} JSON object
30932
+ */
30933
+ ContentfulSleepcastUpdated.prototype.toJSON = function toJSON() {
30934
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
30935
+ };
30936
+
30937
+ return ContentfulSleepcastUpdated;
30938
+ })();
30939
+
30940
+ $root.ContentfulSleepcastDeleted = (function() {
30941
+
30942
+ /**
30943
+ * Properties of a ContentfulSleepcastDeleted.
30944
+ * @exports IContentfulSleepcastDeleted
30945
+ * @interface IContentfulSleepcastDeleted
30946
+ * @property {string|null} [slug] ContentfulSleepcastDeleted slug
30947
+ * @property {number|Long|null} [deletedAt] ContentfulSleepcastDeleted deletedAt
30948
+ */
30949
+
30950
+ /**
30951
+ * Constructs a new ContentfulSleepcastDeleted.
30952
+ * @exports ContentfulSleepcastDeleted
30953
+ * @classdesc Represents a ContentfulSleepcastDeleted.
30954
+ * @implements IContentfulSleepcastDeleted
30955
+ * @constructor
30956
+ * @param {IContentfulSleepcastDeleted=} [properties] Properties to set
30957
+ */
30958
+ function ContentfulSleepcastDeleted(properties) {
30959
+ if (properties)
30960
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
30961
+ if (properties[keys[i]] != null)
30962
+ this[keys[i]] = properties[keys[i]];
30963
+ }
30964
+
30965
+ /**
30966
+ * ContentfulSleepcastDeleted slug.
30967
+ * @member {string} slug
30968
+ * @memberof ContentfulSleepcastDeleted
30969
+ * @instance
30970
+ */
30971
+ ContentfulSleepcastDeleted.prototype.slug = "";
30972
+
30973
+ /**
30974
+ * ContentfulSleepcastDeleted deletedAt.
30975
+ * @member {number|Long} deletedAt
30976
+ * @memberof ContentfulSleepcastDeleted
30977
+ * @instance
30978
+ */
30979
+ ContentfulSleepcastDeleted.prototype.deletedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
30980
+
30981
+ /**
30982
+ * Creates a new ContentfulSleepcastDeleted instance using the specified properties.
30983
+ * @function create
30984
+ * @memberof ContentfulSleepcastDeleted
30985
+ * @static
30986
+ * @param {IContentfulSleepcastDeleted=} [properties] Properties to set
30987
+ * @returns {ContentfulSleepcastDeleted} ContentfulSleepcastDeleted instance
30988
+ */
30989
+ ContentfulSleepcastDeleted.create = function create(properties) {
30990
+ return new ContentfulSleepcastDeleted(properties);
30991
+ };
30992
+
30993
+ /**
30994
+ * Encodes the specified ContentfulSleepcastDeleted message. Does not implicitly {@link ContentfulSleepcastDeleted.verify|verify} messages.
30995
+ * @function encode
30996
+ * @memberof ContentfulSleepcastDeleted
30997
+ * @static
30998
+ * @param {IContentfulSleepcastDeleted} message ContentfulSleepcastDeleted message or plain object to encode
30999
+ * @param {$protobuf.Writer} [writer] Writer to encode to
31000
+ * @returns {$protobuf.Writer} Writer
31001
+ */
31002
+ ContentfulSleepcastDeleted.encode = function encode(message, writer) {
31003
+ if (!writer)
31004
+ writer = $Writer.create();
31005
+ if (message.slug != null && message.hasOwnProperty("slug"))
31006
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
31007
+ if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
31008
+ writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.deletedAt);
31009
+ return writer;
31010
+ };
31011
+
31012
+ /**
31013
+ * Encodes the specified ContentfulSleepcastDeleted message, length delimited. Does not implicitly {@link ContentfulSleepcastDeleted.verify|verify} messages.
31014
+ * @function encodeDelimited
31015
+ * @memberof ContentfulSleepcastDeleted
31016
+ * @static
31017
+ * @param {IContentfulSleepcastDeleted} message ContentfulSleepcastDeleted message or plain object to encode
31018
+ * @param {$protobuf.Writer} [writer] Writer to encode to
31019
+ * @returns {$protobuf.Writer} Writer
31020
+ */
31021
+ ContentfulSleepcastDeleted.encodeDelimited = function encodeDelimited(message, writer) {
31022
+ return this.encode(message, writer).ldelim();
31023
+ };
31024
+
31025
+ /**
31026
+ * Decodes a ContentfulSleepcastDeleted message from the specified reader or buffer.
31027
+ * @function decode
31028
+ * @memberof ContentfulSleepcastDeleted
31029
+ * @static
31030
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
31031
+ * @param {number} [length] Message length if known beforehand
31032
+ * @returns {ContentfulSleepcastDeleted} ContentfulSleepcastDeleted
31033
+ * @throws {Error} If the payload is not a reader or valid buffer
31034
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
31035
+ */
31036
+ ContentfulSleepcastDeleted.decode = function decode(reader, length) {
31037
+ if (!(reader instanceof $Reader))
31038
+ reader = $Reader.create(reader);
31039
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulSleepcastDeleted();
31040
+ while (reader.pos < end) {
31041
+ var tag = reader.uint32();
31042
+ switch (tag >>> 3) {
31043
+ case 1:
31044
+ message.slug = reader.string();
31045
+ break;
31046
+ case 2:
31047
+ message.deletedAt = reader.uint64();
31048
+ break;
31049
+ default:
31050
+ reader.skipType(tag & 7);
31051
+ break;
31052
+ }
31053
+ }
31054
+ return message;
31055
+ };
31056
+
31057
+ /**
31058
+ * Decodes a ContentfulSleepcastDeleted message from the specified reader or buffer, length delimited.
31059
+ * @function decodeDelimited
31060
+ * @memberof ContentfulSleepcastDeleted
31061
+ * @static
31062
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
31063
+ * @returns {ContentfulSleepcastDeleted} ContentfulSleepcastDeleted
31064
+ * @throws {Error} If the payload is not a reader or valid buffer
31065
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
31066
+ */
31067
+ ContentfulSleepcastDeleted.decodeDelimited = function decodeDelimited(reader) {
31068
+ if (!(reader instanceof $Reader))
31069
+ reader = new $Reader(reader);
31070
+ return this.decode(reader, reader.uint32());
31071
+ };
31072
+
31073
+ /**
31074
+ * Verifies a ContentfulSleepcastDeleted message.
31075
+ * @function verify
31076
+ * @memberof ContentfulSleepcastDeleted
31077
+ * @static
31078
+ * @param {Object.<string,*>} message Plain object to verify
31079
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
31080
+ */
31081
+ ContentfulSleepcastDeleted.verify = function verify(message) {
31082
+ if (typeof message !== "object" || message === null)
31083
+ return "object expected";
31084
+ if (message.slug != null && message.hasOwnProperty("slug"))
31085
+ if (!$util.isString(message.slug))
31086
+ return "slug: string expected";
31087
+ if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
31088
+ if (!$util.isInteger(message.deletedAt) && !(message.deletedAt && $util.isInteger(message.deletedAt.low) && $util.isInteger(message.deletedAt.high)))
31089
+ return "deletedAt: integer|Long expected";
31090
+ return null;
31091
+ };
31092
+
31093
+ /**
31094
+ * Creates a ContentfulSleepcastDeleted message from a plain object. Also converts values to their respective internal types.
31095
+ * @function fromObject
31096
+ * @memberof ContentfulSleepcastDeleted
31097
+ * @static
31098
+ * @param {Object.<string,*>} object Plain object
31099
+ * @returns {ContentfulSleepcastDeleted} ContentfulSleepcastDeleted
31100
+ */
31101
+ ContentfulSleepcastDeleted.fromObject = function fromObject(object) {
31102
+ if (object instanceof $root.ContentfulSleepcastDeleted)
31103
+ return object;
31104
+ var message = new $root.ContentfulSleepcastDeleted();
31105
+ if (object.slug != null)
31106
+ message.slug = String(object.slug);
31107
+ if (object.deletedAt != null)
31108
+ if ($util.Long)
31109
+ (message.deletedAt = $util.Long.fromValue(object.deletedAt)).unsigned = true;
31110
+ else if (typeof object.deletedAt === "string")
31111
+ message.deletedAt = parseInt(object.deletedAt, 10);
31112
+ else if (typeof object.deletedAt === "number")
31113
+ message.deletedAt = object.deletedAt;
31114
+ else if (typeof object.deletedAt === "object")
31115
+ message.deletedAt = new $util.LongBits(object.deletedAt.low >>> 0, object.deletedAt.high >>> 0).toNumber(true);
31116
+ return message;
31117
+ };
31118
+
31119
+ /**
31120
+ * Creates a plain object from a ContentfulSleepcastDeleted message. Also converts values to other types if specified.
31121
+ * @function toObject
31122
+ * @memberof ContentfulSleepcastDeleted
31123
+ * @static
31124
+ * @param {ContentfulSleepcastDeleted} message ContentfulSleepcastDeleted
31125
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
31126
+ * @returns {Object.<string,*>} Plain object
31127
+ */
31128
+ ContentfulSleepcastDeleted.toObject = function toObject(message, options) {
31129
+ if (!options)
31130
+ options = {};
31131
+ var object = {};
31132
+ if (options.defaults) {
31133
+ object.slug = "";
31134
+ if ($util.Long) {
31135
+ var long = new $util.Long(0, 0, true);
31136
+ object.deletedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
31137
+ } else
31138
+ object.deletedAt = options.longs === String ? "0" : 0;
31139
+ }
31140
+ if (message.slug != null && message.hasOwnProperty("slug"))
31141
+ object.slug = message.slug;
31142
+ if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
31143
+ if (typeof message.deletedAt === "number")
31144
+ object.deletedAt = options.longs === String ? String(message.deletedAt) : message.deletedAt;
31145
+ else
31146
+ 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;
31147
+ return object;
31148
+ };
31149
+
31150
+ /**
31151
+ * Converts this ContentfulSleepcastDeleted to JSON.
31152
+ * @function toJSON
31153
+ * @memberof ContentfulSleepcastDeleted
31154
+ * @instance
31155
+ * @returns {Object.<string,*>} JSON object
31156
+ */
31157
+ ContentfulSleepcastDeleted.prototype.toJSON = function toJSON() {
31158
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
31159
+ };
31160
+
31161
+ return ContentfulSleepcastDeleted;
31162
+ })();
31163
+
29470
31164
  $root.ContentfulContentModelCreated = (function() {
29471
31165
 
29472
31166
  /**