@headspace/protos-events 1.178.0 → 1.180.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 +468 -0
  2. package/lib/index.js +1534 -0
  3. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -28157,6 +28157,1316 @@ $root.ContentfulAccessRuleDeleted = (function() {
28157
28157
  return ContentfulAccessRuleDeleted;
28158
28158
  })();
28159
28159
 
28160
+ $root.ContentfulSleepcastRecipeCreated = (function() {
28161
+
28162
+ /**
28163
+ * Properties of a ContentfulSleepcastRecipeCreated.
28164
+ * @exports IContentfulSleepcastRecipeCreated
28165
+ * @interface IContentfulSleepcastRecipeCreated
28166
+ * @property {string|null} [slug] ContentfulSleepcastRecipeCreated slug
28167
+ * @property {string|null} [generatior] ContentfulSleepcastRecipeCreated generatior
28168
+ * @property {Object.<string,contentful.IIdReferences>|null} [mainMedia] ContentfulSleepcastRecipeCreated mainMedia
28169
+ * @property {Object.<string,contentful.IIdReferences>|null} [windDownMedia] ContentfulSleepcastRecipeCreated windDownMedia
28170
+ * @property {Object.<string,contentful.IIdReference>|null} [soundBedMedia] ContentfulSleepcastRecipeCreated soundBedMedia
28171
+ * @property {Object.<string,contentful.IIdReference>|null} [introMedia] ContentfulSleepcastRecipeCreated introMedia
28172
+ * @property {Object.<string,contentful.IIdReference>|null} [leadInMedia] ContentfulSleepcastRecipeCreated leadInMedia
28173
+ * @property {Object.<string,contentful.IIdReference>|null} [outroMedia] ContentfulSleepcastRecipeCreated outroMedia
28174
+ * @property {number|Long|null} [createdAt] ContentfulSleepcastRecipeCreated createdAt
28175
+ */
28176
+
28177
+ /**
28178
+ * Constructs a new ContentfulSleepcastRecipeCreated.
28179
+ * @exports ContentfulSleepcastRecipeCreated
28180
+ * @classdesc Represents a ContentfulSleepcastRecipeCreated.
28181
+ * @implements IContentfulSleepcastRecipeCreated
28182
+ * @constructor
28183
+ * @param {IContentfulSleepcastRecipeCreated=} [properties] Properties to set
28184
+ */
28185
+ function ContentfulSleepcastRecipeCreated(properties) {
28186
+ this.mainMedia = {};
28187
+ this.windDownMedia = {};
28188
+ this.soundBedMedia = {};
28189
+ this.introMedia = {};
28190
+ this.leadInMedia = {};
28191
+ this.outroMedia = {};
28192
+ if (properties)
28193
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
28194
+ if (properties[keys[i]] != null)
28195
+ this[keys[i]] = properties[keys[i]];
28196
+ }
28197
+
28198
+ /**
28199
+ * ContentfulSleepcastRecipeCreated slug.
28200
+ * @member {string} slug
28201
+ * @memberof ContentfulSleepcastRecipeCreated
28202
+ * @instance
28203
+ */
28204
+ ContentfulSleepcastRecipeCreated.prototype.slug = "";
28205
+
28206
+ /**
28207
+ * ContentfulSleepcastRecipeCreated generatior.
28208
+ * @member {string} generatior
28209
+ * @memberof ContentfulSleepcastRecipeCreated
28210
+ * @instance
28211
+ */
28212
+ ContentfulSleepcastRecipeCreated.prototype.generatior = "";
28213
+
28214
+ /**
28215
+ * ContentfulSleepcastRecipeCreated mainMedia.
28216
+ * @member {Object.<string,contentful.IIdReferences>} mainMedia
28217
+ * @memberof ContentfulSleepcastRecipeCreated
28218
+ * @instance
28219
+ */
28220
+ ContentfulSleepcastRecipeCreated.prototype.mainMedia = $util.emptyObject;
28221
+
28222
+ /**
28223
+ * ContentfulSleepcastRecipeCreated windDownMedia.
28224
+ * @member {Object.<string,contentful.IIdReferences>} windDownMedia
28225
+ * @memberof ContentfulSleepcastRecipeCreated
28226
+ * @instance
28227
+ */
28228
+ ContentfulSleepcastRecipeCreated.prototype.windDownMedia = $util.emptyObject;
28229
+
28230
+ /**
28231
+ * ContentfulSleepcastRecipeCreated soundBedMedia.
28232
+ * @member {Object.<string,contentful.IIdReference>} soundBedMedia
28233
+ * @memberof ContentfulSleepcastRecipeCreated
28234
+ * @instance
28235
+ */
28236
+ ContentfulSleepcastRecipeCreated.prototype.soundBedMedia = $util.emptyObject;
28237
+
28238
+ /**
28239
+ * ContentfulSleepcastRecipeCreated introMedia.
28240
+ * @member {Object.<string,contentful.IIdReference>} introMedia
28241
+ * @memberof ContentfulSleepcastRecipeCreated
28242
+ * @instance
28243
+ */
28244
+ ContentfulSleepcastRecipeCreated.prototype.introMedia = $util.emptyObject;
28245
+
28246
+ /**
28247
+ * ContentfulSleepcastRecipeCreated leadInMedia.
28248
+ * @member {Object.<string,contentful.IIdReference>} leadInMedia
28249
+ * @memberof ContentfulSleepcastRecipeCreated
28250
+ * @instance
28251
+ */
28252
+ ContentfulSleepcastRecipeCreated.prototype.leadInMedia = $util.emptyObject;
28253
+
28254
+ /**
28255
+ * ContentfulSleepcastRecipeCreated outroMedia.
28256
+ * @member {Object.<string,contentful.IIdReference>} outroMedia
28257
+ * @memberof ContentfulSleepcastRecipeCreated
28258
+ * @instance
28259
+ */
28260
+ ContentfulSleepcastRecipeCreated.prototype.outroMedia = $util.emptyObject;
28261
+
28262
+ /**
28263
+ * ContentfulSleepcastRecipeCreated createdAt.
28264
+ * @member {number|Long} createdAt
28265
+ * @memberof ContentfulSleepcastRecipeCreated
28266
+ * @instance
28267
+ */
28268
+ ContentfulSleepcastRecipeCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
28269
+
28270
+ /**
28271
+ * Creates a new ContentfulSleepcastRecipeCreated instance using the specified properties.
28272
+ * @function create
28273
+ * @memberof ContentfulSleepcastRecipeCreated
28274
+ * @static
28275
+ * @param {IContentfulSleepcastRecipeCreated=} [properties] Properties to set
28276
+ * @returns {ContentfulSleepcastRecipeCreated} ContentfulSleepcastRecipeCreated instance
28277
+ */
28278
+ ContentfulSleepcastRecipeCreated.create = function create(properties) {
28279
+ return new ContentfulSleepcastRecipeCreated(properties);
28280
+ };
28281
+
28282
+ /**
28283
+ * Encodes the specified ContentfulSleepcastRecipeCreated message. Does not implicitly {@link ContentfulSleepcastRecipeCreated.verify|verify} messages.
28284
+ * @function encode
28285
+ * @memberof ContentfulSleepcastRecipeCreated
28286
+ * @static
28287
+ * @param {IContentfulSleepcastRecipeCreated} message ContentfulSleepcastRecipeCreated message or plain object to encode
28288
+ * @param {$protobuf.Writer} [writer] Writer to encode to
28289
+ * @returns {$protobuf.Writer} Writer
28290
+ */
28291
+ ContentfulSleepcastRecipeCreated.encode = function encode(message, writer) {
28292
+ if (!writer)
28293
+ writer = $Writer.create();
28294
+ if (message.slug != null && message.hasOwnProperty("slug"))
28295
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
28296
+ if (message.generatior != null && message.hasOwnProperty("generatior"))
28297
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.generatior);
28298
+ if (message.mainMedia != null && message.hasOwnProperty("mainMedia"))
28299
+ for (var keys = Object.keys(message.mainMedia), i = 0; i < keys.length; ++i) {
28300
+ writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
28301
+ $root.contentful.IdReferences.encode(message.mainMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
28302
+ }
28303
+ if (message.windDownMedia != null && message.hasOwnProperty("windDownMedia"))
28304
+ for (var keys = Object.keys(message.windDownMedia), i = 0; i < keys.length; ++i) {
28305
+ writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
28306
+ $root.contentful.IdReferences.encode(message.windDownMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
28307
+ }
28308
+ if (message.soundBedMedia != null && message.hasOwnProperty("soundBedMedia"))
28309
+ for (var keys = Object.keys(message.soundBedMedia), i = 0; i < keys.length; ++i) {
28310
+ writer.uint32(/* id 5, wireType 2 =*/42).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
28311
+ $root.contentful.IdReference.encode(message.soundBedMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
28312
+ }
28313
+ if (message.introMedia != null && message.hasOwnProperty("introMedia"))
28314
+ for (var keys = Object.keys(message.introMedia), i = 0; i < keys.length; ++i) {
28315
+ writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
28316
+ $root.contentful.IdReference.encode(message.introMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
28317
+ }
28318
+ if (message.leadInMedia != null && message.hasOwnProperty("leadInMedia"))
28319
+ for (var keys = Object.keys(message.leadInMedia), i = 0; i < keys.length; ++i) {
28320
+ writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
28321
+ $root.contentful.IdReference.encode(message.leadInMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
28322
+ }
28323
+ if (message.outroMedia != null && message.hasOwnProperty("outroMedia"))
28324
+ for (var keys = Object.keys(message.outroMedia), i = 0; i < keys.length; ++i) {
28325
+ writer.uint32(/* id 8, wireType 2 =*/66).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
28326
+ $root.contentful.IdReference.encode(message.outroMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
28327
+ }
28328
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
28329
+ writer.uint32(/* id 9, wireType 0 =*/72).uint64(message.createdAt);
28330
+ return writer;
28331
+ };
28332
+
28333
+ /**
28334
+ * Encodes the specified ContentfulSleepcastRecipeCreated message, length delimited. Does not implicitly {@link ContentfulSleepcastRecipeCreated.verify|verify} messages.
28335
+ * @function encodeDelimited
28336
+ * @memberof ContentfulSleepcastRecipeCreated
28337
+ * @static
28338
+ * @param {IContentfulSleepcastRecipeCreated} message ContentfulSleepcastRecipeCreated message or plain object to encode
28339
+ * @param {$protobuf.Writer} [writer] Writer to encode to
28340
+ * @returns {$protobuf.Writer} Writer
28341
+ */
28342
+ ContentfulSleepcastRecipeCreated.encodeDelimited = function encodeDelimited(message, writer) {
28343
+ return this.encode(message, writer).ldelim();
28344
+ };
28345
+
28346
+ /**
28347
+ * Decodes a ContentfulSleepcastRecipeCreated message from the specified reader or buffer.
28348
+ * @function decode
28349
+ * @memberof ContentfulSleepcastRecipeCreated
28350
+ * @static
28351
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
28352
+ * @param {number} [length] Message length if known beforehand
28353
+ * @returns {ContentfulSleepcastRecipeCreated} ContentfulSleepcastRecipeCreated
28354
+ * @throws {Error} If the payload is not a reader or valid buffer
28355
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
28356
+ */
28357
+ ContentfulSleepcastRecipeCreated.decode = function decode(reader, length) {
28358
+ if (!(reader instanceof $Reader))
28359
+ reader = $Reader.create(reader);
28360
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulSleepcastRecipeCreated(), key;
28361
+ while (reader.pos < end) {
28362
+ var tag = reader.uint32();
28363
+ switch (tag >>> 3) {
28364
+ case 1:
28365
+ message.slug = reader.string();
28366
+ break;
28367
+ case 2:
28368
+ message.generatior = reader.string();
28369
+ break;
28370
+ case 3:
28371
+ reader.skip().pos++;
28372
+ if (message.mainMedia === $util.emptyObject)
28373
+ message.mainMedia = {};
28374
+ key = reader.string();
28375
+ reader.pos++;
28376
+ message.mainMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
28377
+ break;
28378
+ case 4:
28379
+ reader.skip().pos++;
28380
+ if (message.windDownMedia === $util.emptyObject)
28381
+ message.windDownMedia = {};
28382
+ key = reader.string();
28383
+ reader.pos++;
28384
+ message.windDownMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
28385
+ break;
28386
+ case 5:
28387
+ reader.skip().pos++;
28388
+ if (message.soundBedMedia === $util.emptyObject)
28389
+ message.soundBedMedia = {};
28390
+ key = reader.string();
28391
+ reader.pos++;
28392
+ message.soundBedMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
28393
+ break;
28394
+ case 6:
28395
+ reader.skip().pos++;
28396
+ if (message.introMedia === $util.emptyObject)
28397
+ message.introMedia = {};
28398
+ key = reader.string();
28399
+ reader.pos++;
28400
+ message.introMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
28401
+ break;
28402
+ case 7:
28403
+ reader.skip().pos++;
28404
+ if (message.leadInMedia === $util.emptyObject)
28405
+ message.leadInMedia = {};
28406
+ key = reader.string();
28407
+ reader.pos++;
28408
+ message.leadInMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
28409
+ break;
28410
+ case 8:
28411
+ reader.skip().pos++;
28412
+ if (message.outroMedia === $util.emptyObject)
28413
+ message.outroMedia = {};
28414
+ key = reader.string();
28415
+ reader.pos++;
28416
+ message.outroMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
28417
+ break;
28418
+ case 9:
28419
+ message.createdAt = reader.uint64();
28420
+ break;
28421
+ default:
28422
+ reader.skipType(tag & 7);
28423
+ break;
28424
+ }
28425
+ }
28426
+ return message;
28427
+ };
28428
+
28429
+ /**
28430
+ * Decodes a ContentfulSleepcastRecipeCreated message from the specified reader or buffer, length delimited.
28431
+ * @function decodeDelimited
28432
+ * @memberof ContentfulSleepcastRecipeCreated
28433
+ * @static
28434
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
28435
+ * @returns {ContentfulSleepcastRecipeCreated} ContentfulSleepcastRecipeCreated
28436
+ * @throws {Error} If the payload is not a reader or valid buffer
28437
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
28438
+ */
28439
+ ContentfulSleepcastRecipeCreated.decodeDelimited = function decodeDelimited(reader) {
28440
+ if (!(reader instanceof $Reader))
28441
+ reader = new $Reader(reader);
28442
+ return this.decode(reader, reader.uint32());
28443
+ };
28444
+
28445
+ /**
28446
+ * Verifies a ContentfulSleepcastRecipeCreated message.
28447
+ * @function verify
28448
+ * @memberof ContentfulSleepcastRecipeCreated
28449
+ * @static
28450
+ * @param {Object.<string,*>} message Plain object to verify
28451
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
28452
+ */
28453
+ ContentfulSleepcastRecipeCreated.verify = function verify(message) {
28454
+ if (typeof message !== "object" || message === null)
28455
+ return "object expected";
28456
+ if (message.slug != null && message.hasOwnProperty("slug"))
28457
+ if (!$util.isString(message.slug))
28458
+ return "slug: string expected";
28459
+ if (message.generatior != null && message.hasOwnProperty("generatior"))
28460
+ if (!$util.isString(message.generatior))
28461
+ return "generatior: string expected";
28462
+ if (message.mainMedia != null && message.hasOwnProperty("mainMedia")) {
28463
+ if (!$util.isObject(message.mainMedia))
28464
+ return "mainMedia: object expected";
28465
+ var key = Object.keys(message.mainMedia);
28466
+ for (var i = 0; i < key.length; ++i) {
28467
+ var error = $root.contentful.IdReferences.verify(message.mainMedia[key[i]]);
28468
+ if (error)
28469
+ return "mainMedia." + error;
28470
+ }
28471
+ }
28472
+ if (message.windDownMedia != null && message.hasOwnProperty("windDownMedia")) {
28473
+ if (!$util.isObject(message.windDownMedia))
28474
+ return "windDownMedia: object expected";
28475
+ var key = Object.keys(message.windDownMedia);
28476
+ for (var i = 0; i < key.length; ++i) {
28477
+ var error = $root.contentful.IdReferences.verify(message.windDownMedia[key[i]]);
28478
+ if (error)
28479
+ return "windDownMedia." + error;
28480
+ }
28481
+ }
28482
+ if (message.soundBedMedia != null && message.hasOwnProperty("soundBedMedia")) {
28483
+ if (!$util.isObject(message.soundBedMedia))
28484
+ return "soundBedMedia: object expected";
28485
+ var key = Object.keys(message.soundBedMedia);
28486
+ for (var i = 0; i < key.length; ++i) {
28487
+ var error = $root.contentful.IdReference.verify(message.soundBedMedia[key[i]]);
28488
+ if (error)
28489
+ return "soundBedMedia." + error;
28490
+ }
28491
+ }
28492
+ if (message.introMedia != null && message.hasOwnProperty("introMedia")) {
28493
+ if (!$util.isObject(message.introMedia))
28494
+ return "introMedia: object expected";
28495
+ var key = Object.keys(message.introMedia);
28496
+ for (var i = 0; i < key.length; ++i) {
28497
+ var error = $root.contentful.IdReference.verify(message.introMedia[key[i]]);
28498
+ if (error)
28499
+ return "introMedia." + error;
28500
+ }
28501
+ }
28502
+ if (message.leadInMedia != null && message.hasOwnProperty("leadInMedia")) {
28503
+ if (!$util.isObject(message.leadInMedia))
28504
+ return "leadInMedia: object expected";
28505
+ var key = Object.keys(message.leadInMedia);
28506
+ for (var i = 0; i < key.length; ++i) {
28507
+ var error = $root.contentful.IdReference.verify(message.leadInMedia[key[i]]);
28508
+ if (error)
28509
+ return "leadInMedia." + error;
28510
+ }
28511
+ }
28512
+ if (message.outroMedia != null && message.hasOwnProperty("outroMedia")) {
28513
+ if (!$util.isObject(message.outroMedia))
28514
+ return "outroMedia: object expected";
28515
+ var key = Object.keys(message.outroMedia);
28516
+ for (var i = 0; i < key.length; ++i) {
28517
+ var error = $root.contentful.IdReference.verify(message.outroMedia[key[i]]);
28518
+ if (error)
28519
+ return "outroMedia." + error;
28520
+ }
28521
+ }
28522
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
28523
+ if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
28524
+ return "createdAt: integer|Long expected";
28525
+ return null;
28526
+ };
28527
+
28528
+ /**
28529
+ * Creates a ContentfulSleepcastRecipeCreated message from a plain object. Also converts values to their respective internal types.
28530
+ * @function fromObject
28531
+ * @memberof ContentfulSleepcastRecipeCreated
28532
+ * @static
28533
+ * @param {Object.<string,*>} object Plain object
28534
+ * @returns {ContentfulSleepcastRecipeCreated} ContentfulSleepcastRecipeCreated
28535
+ */
28536
+ ContentfulSleepcastRecipeCreated.fromObject = function fromObject(object) {
28537
+ if (object instanceof $root.ContentfulSleepcastRecipeCreated)
28538
+ return object;
28539
+ var message = new $root.ContentfulSleepcastRecipeCreated();
28540
+ if (object.slug != null)
28541
+ message.slug = String(object.slug);
28542
+ if (object.generatior != null)
28543
+ message.generatior = String(object.generatior);
28544
+ if (object.mainMedia) {
28545
+ if (typeof object.mainMedia !== "object")
28546
+ throw TypeError(".ContentfulSleepcastRecipeCreated.mainMedia: object expected");
28547
+ message.mainMedia = {};
28548
+ for (var keys = Object.keys(object.mainMedia), i = 0; i < keys.length; ++i) {
28549
+ if (typeof object.mainMedia[keys[i]] !== "object")
28550
+ throw TypeError(".ContentfulSleepcastRecipeCreated.mainMedia: object expected");
28551
+ message.mainMedia[keys[i]] = $root.contentful.IdReferences.fromObject(object.mainMedia[keys[i]]);
28552
+ }
28553
+ }
28554
+ if (object.windDownMedia) {
28555
+ if (typeof object.windDownMedia !== "object")
28556
+ throw TypeError(".ContentfulSleepcastRecipeCreated.windDownMedia: object expected");
28557
+ message.windDownMedia = {};
28558
+ for (var keys = Object.keys(object.windDownMedia), i = 0; i < keys.length; ++i) {
28559
+ if (typeof object.windDownMedia[keys[i]] !== "object")
28560
+ throw TypeError(".ContentfulSleepcastRecipeCreated.windDownMedia: object expected");
28561
+ message.windDownMedia[keys[i]] = $root.contentful.IdReferences.fromObject(object.windDownMedia[keys[i]]);
28562
+ }
28563
+ }
28564
+ if (object.soundBedMedia) {
28565
+ if (typeof object.soundBedMedia !== "object")
28566
+ throw TypeError(".ContentfulSleepcastRecipeCreated.soundBedMedia: object expected");
28567
+ message.soundBedMedia = {};
28568
+ for (var keys = Object.keys(object.soundBedMedia), i = 0; i < keys.length; ++i) {
28569
+ if (typeof object.soundBedMedia[keys[i]] !== "object")
28570
+ throw TypeError(".ContentfulSleepcastRecipeCreated.soundBedMedia: object expected");
28571
+ message.soundBedMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.soundBedMedia[keys[i]]);
28572
+ }
28573
+ }
28574
+ if (object.introMedia) {
28575
+ if (typeof object.introMedia !== "object")
28576
+ throw TypeError(".ContentfulSleepcastRecipeCreated.introMedia: object expected");
28577
+ message.introMedia = {};
28578
+ for (var keys = Object.keys(object.introMedia), i = 0; i < keys.length; ++i) {
28579
+ if (typeof object.introMedia[keys[i]] !== "object")
28580
+ throw TypeError(".ContentfulSleepcastRecipeCreated.introMedia: object expected");
28581
+ message.introMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.introMedia[keys[i]]);
28582
+ }
28583
+ }
28584
+ if (object.leadInMedia) {
28585
+ if (typeof object.leadInMedia !== "object")
28586
+ throw TypeError(".ContentfulSleepcastRecipeCreated.leadInMedia: object expected");
28587
+ message.leadInMedia = {};
28588
+ for (var keys = Object.keys(object.leadInMedia), i = 0; i < keys.length; ++i) {
28589
+ if (typeof object.leadInMedia[keys[i]] !== "object")
28590
+ throw TypeError(".ContentfulSleepcastRecipeCreated.leadInMedia: object expected");
28591
+ message.leadInMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.leadInMedia[keys[i]]);
28592
+ }
28593
+ }
28594
+ if (object.outroMedia) {
28595
+ if (typeof object.outroMedia !== "object")
28596
+ throw TypeError(".ContentfulSleepcastRecipeCreated.outroMedia: object expected");
28597
+ message.outroMedia = {};
28598
+ for (var keys = Object.keys(object.outroMedia), i = 0; i < keys.length; ++i) {
28599
+ if (typeof object.outroMedia[keys[i]] !== "object")
28600
+ throw TypeError(".ContentfulSleepcastRecipeCreated.outroMedia: object expected");
28601
+ message.outroMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.outroMedia[keys[i]]);
28602
+ }
28603
+ }
28604
+ if (object.createdAt != null)
28605
+ if ($util.Long)
28606
+ (message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
28607
+ else if (typeof object.createdAt === "string")
28608
+ message.createdAt = parseInt(object.createdAt, 10);
28609
+ else if (typeof object.createdAt === "number")
28610
+ message.createdAt = object.createdAt;
28611
+ else if (typeof object.createdAt === "object")
28612
+ message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
28613
+ return message;
28614
+ };
28615
+
28616
+ /**
28617
+ * Creates a plain object from a ContentfulSleepcastRecipeCreated message. Also converts values to other types if specified.
28618
+ * @function toObject
28619
+ * @memberof ContentfulSleepcastRecipeCreated
28620
+ * @static
28621
+ * @param {ContentfulSleepcastRecipeCreated} message ContentfulSleepcastRecipeCreated
28622
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
28623
+ * @returns {Object.<string,*>} Plain object
28624
+ */
28625
+ ContentfulSleepcastRecipeCreated.toObject = function toObject(message, options) {
28626
+ if (!options)
28627
+ options = {};
28628
+ var object = {};
28629
+ if (options.objects || options.defaults) {
28630
+ object.mainMedia = {};
28631
+ object.windDownMedia = {};
28632
+ object.soundBedMedia = {};
28633
+ object.introMedia = {};
28634
+ object.leadInMedia = {};
28635
+ object.outroMedia = {};
28636
+ }
28637
+ if (options.defaults) {
28638
+ object.slug = "";
28639
+ object.generatior = "";
28640
+ if ($util.Long) {
28641
+ var long = new $util.Long(0, 0, true);
28642
+ object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
28643
+ } else
28644
+ object.createdAt = options.longs === String ? "0" : 0;
28645
+ }
28646
+ if (message.slug != null && message.hasOwnProperty("slug"))
28647
+ object.slug = message.slug;
28648
+ if (message.generatior != null && message.hasOwnProperty("generatior"))
28649
+ object.generatior = message.generatior;
28650
+ var keys2;
28651
+ if (message.mainMedia && (keys2 = Object.keys(message.mainMedia)).length) {
28652
+ object.mainMedia = {};
28653
+ for (var j = 0; j < keys2.length; ++j)
28654
+ object.mainMedia[keys2[j]] = $root.contentful.IdReferences.toObject(message.mainMedia[keys2[j]], options);
28655
+ }
28656
+ if (message.windDownMedia && (keys2 = Object.keys(message.windDownMedia)).length) {
28657
+ object.windDownMedia = {};
28658
+ for (var j = 0; j < keys2.length; ++j)
28659
+ object.windDownMedia[keys2[j]] = $root.contentful.IdReferences.toObject(message.windDownMedia[keys2[j]], options);
28660
+ }
28661
+ if (message.soundBedMedia && (keys2 = Object.keys(message.soundBedMedia)).length) {
28662
+ object.soundBedMedia = {};
28663
+ for (var j = 0; j < keys2.length; ++j)
28664
+ object.soundBedMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.soundBedMedia[keys2[j]], options);
28665
+ }
28666
+ if (message.introMedia && (keys2 = Object.keys(message.introMedia)).length) {
28667
+ object.introMedia = {};
28668
+ for (var j = 0; j < keys2.length; ++j)
28669
+ object.introMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.introMedia[keys2[j]], options);
28670
+ }
28671
+ if (message.leadInMedia && (keys2 = Object.keys(message.leadInMedia)).length) {
28672
+ object.leadInMedia = {};
28673
+ for (var j = 0; j < keys2.length; ++j)
28674
+ object.leadInMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.leadInMedia[keys2[j]], options);
28675
+ }
28676
+ if (message.outroMedia && (keys2 = Object.keys(message.outroMedia)).length) {
28677
+ object.outroMedia = {};
28678
+ for (var j = 0; j < keys2.length; ++j)
28679
+ object.outroMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.outroMedia[keys2[j]], options);
28680
+ }
28681
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
28682
+ if (typeof message.createdAt === "number")
28683
+ object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
28684
+ else
28685
+ 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;
28686
+ return object;
28687
+ };
28688
+
28689
+ /**
28690
+ * Converts this ContentfulSleepcastRecipeCreated to JSON.
28691
+ * @function toJSON
28692
+ * @memberof ContentfulSleepcastRecipeCreated
28693
+ * @instance
28694
+ * @returns {Object.<string,*>} JSON object
28695
+ */
28696
+ ContentfulSleepcastRecipeCreated.prototype.toJSON = function toJSON() {
28697
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
28698
+ };
28699
+
28700
+ return ContentfulSleepcastRecipeCreated;
28701
+ })();
28702
+
28703
+ $root.ContentfulSleepcastRecipeUpdated = (function() {
28704
+
28705
+ /**
28706
+ * Properties of a ContentfulSleepcastRecipeUpdated.
28707
+ * @exports IContentfulSleepcastRecipeUpdated
28708
+ * @interface IContentfulSleepcastRecipeUpdated
28709
+ * @property {string|null} [slug] ContentfulSleepcastRecipeUpdated slug
28710
+ * @property {string|null} [generatior] ContentfulSleepcastRecipeUpdated generatior
28711
+ * @property {Object.<string,contentful.IIdReferences>|null} [mainMedia] ContentfulSleepcastRecipeUpdated mainMedia
28712
+ * @property {Object.<string,contentful.IIdReferences>|null} [windDownMedia] ContentfulSleepcastRecipeUpdated windDownMedia
28713
+ * @property {Object.<string,contentful.IIdReference>|null} [soundBedMedia] ContentfulSleepcastRecipeUpdated soundBedMedia
28714
+ * @property {Object.<string,contentful.IIdReference>|null} [introMedia] ContentfulSleepcastRecipeUpdated introMedia
28715
+ * @property {Object.<string,contentful.IIdReference>|null} [leadInMedia] ContentfulSleepcastRecipeUpdated leadInMedia
28716
+ * @property {Object.<string,contentful.IIdReference>|null} [outroMedia] ContentfulSleepcastRecipeUpdated outroMedia
28717
+ * @property {number|Long|null} [updatedAt] ContentfulSleepcastRecipeUpdated updatedAt
28718
+ */
28719
+
28720
+ /**
28721
+ * Constructs a new ContentfulSleepcastRecipeUpdated.
28722
+ * @exports ContentfulSleepcastRecipeUpdated
28723
+ * @classdesc Represents a ContentfulSleepcastRecipeUpdated.
28724
+ * @implements IContentfulSleepcastRecipeUpdated
28725
+ * @constructor
28726
+ * @param {IContentfulSleepcastRecipeUpdated=} [properties] Properties to set
28727
+ */
28728
+ function ContentfulSleepcastRecipeUpdated(properties) {
28729
+ this.mainMedia = {};
28730
+ this.windDownMedia = {};
28731
+ this.soundBedMedia = {};
28732
+ this.introMedia = {};
28733
+ this.leadInMedia = {};
28734
+ this.outroMedia = {};
28735
+ if (properties)
28736
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
28737
+ if (properties[keys[i]] != null)
28738
+ this[keys[i]] = properties[keys[i]];
28739
+ }
28740
+
28741
+ /**
28742
+ * ContentfulSleepcastRecipeUpdated slug.
28743
+ * @member {string} slug
28744
+ * @memberof ContentfulSleepcastRecipeUpdated
28745
+ * @instance
28746
+ */
28747
+ ContentfulSleepcastRecipeUpdated.prototype.slug = "";
28748
+
28749
+ /**
28750
+ * ContentfulSleepcastRecipeUpdated generatior.
28751
+ * @member {string} generatior
28752
+ * @memberof ContentfulSleepcastRecipeUpdated
28753
+ * @instance
28754
+ */
28755
+ ContentfulSleepcastRecipeUpdated.prototype.generatior = "";
28756
+
28757
+ /**
28758
+ * ContentfulSleepcastRecipeUpdated mainMedia.
28759
+ * @member {Object.<string,contentful.IIdReferences>} mainMedia
28760
+ * @memberof ContentfulSleepcastRecipeUpdated
28761
+ * @instance
28762
+ */
28763
+ ContentfulSleepcastRecipeUpdated.prototype.mainMedia = $util.emptyObject;
28764
+
28765
+ /**
28766
+ * ContentfulSleepcastRecipeUpdated windDownMedia.
28767
+ * @member {Object.<string,contentful.IIdReferences>} windDownMedia
28768
+ * @memberof ContentfulSleepcastRecipeUpdated
28769
+ * @instance
28770
+ */
28771
+ ContentfulSleepcastRecipeUpdated.prototype.windDownMedia = $util.emptyObject;
28772
+
28773
+ /**
28774
+ * ContentfulSleepcastRecipeUpdated soundBedMedia.
28775
+ * @member {Object.<string,contentful.IIdReference>} soundBedMedia
28776
+ * @memberof ContentfulSleepcastRecipeUpdated
28777
+ * @instance
28778
+ */
28779
+ ContentfulSleepcastRecipeUpdated.prototype.soundBedMedia = $util.emptyObject;
28780
+
28781
+ /**
28782
+ * ContentfulSleepcastRecipeUpdated introMedia.
28783
+ * @member {Object.<string,contentful.IIdReference>} introMedia
28784
+ * @memberof ContentfulSleepcastRecipeUpdated
28785
+ * @instance
28786
+ */
28787
+ ContentfulSleepcastRecipeUpdated.prototype.introMedia = $util.emptyObject;
28788
+
28789
+ /**
28790
+ * ContentfulSleepcastRecipeUpdated leadInMedia.
28791
+ * @member {Object.<string,contentful.IIdReference>} leadInMedia
28792
+ * @memberof ContentfulSleepcastRecipeUpdated
28793
+ * @instance
28794
+ */
28795
+ ContentfulSleepcastRecipeUpdated.prototype.leadInMedia = $util.emptyObject;
28796
+
28797
+ /**
28798
+ * ContentfulSleepcastRecipeUpdated outroMedia.
28799
+ * @member {Object.<string,contentful.IIdReference>} outroMedia
28800
+ * @memberof ContentfulSleepcastRecipeUpdated
28801
+ * @instance
28802
+ */
28803
+ ContentfulSleepcastRecipeUpdated.prototype.outroMedia = $util.emptyObject;
28804
+
28805
+ /**
28806
+ * ContentfulSleepcastRecipeUpdated updatedAt.
28807
+ * @member {number|Long} updatedAt
28808
+ * @memberof ContentfulSleepcastRecipeUpdated
28809
+ * @instance
28810
+ */
28811
+ ContentfulSleepcastRecipeUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
28812
+
28813
+ /**
28814
+ * Creates a new ContentfulSleepcastRecipeUpdated instance using the specified properties.
28815
+ * @function create
28816
+ * @memberof ContentfulSleepcastRecipeUpdated
28817
+ * @static
28818
+ * @param {IContentfulSleepcastRecipeUpdated=} [properties] Properties to set
28819
+ * @returns {ContentfulSleepcastRecipeUpdated} ContentfulSleepcastRecipeUpdated instance
28820
+ */
28821
+ ContentfulSleepcastRecipeUpdated.create = function create(properties) {
28822
+ return new ContentfulSleepcastRecipeUpdated(properties);
28823
+ };
28824
+
28825
+ /**
28826
+ * Encodes the specified ContentfulSleepcastRecipeUpdated message. Does not implicitly {@link ContentfulSleepcastRecipeUpdated.verify|verify} messages.
28827
+ * @function encode
28828
+ * @memberof ContentfulSleepcastRecipeUpdated
28829
+ * @static
28830
+ * @param {IContentfulSleepcastRecipeUpdated} message ContentfulSleepcastRecipeUpdated message or plain object to encode
28831
+ * @param {$protobuf.Writer} [writer] Writer to encode to
28832
+ * @returns {$protobuf.Writer} Writer
28833
+ */
28834
+ ContentfulSleepcastRecipeUpdated.encode = function encode(message, writer) {
28835
+ if (!writer)
28836
+ writer = $Writer.create();
28837
+ if (message.slug != null && message.hasOwnProperty("slug"))
28838
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
28839
+ if (message.generatior != null && message.hasOwnProperty("generatior"))
28840
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.generatior);
28841
+ if (message.mainMedia != null && message.hasOwnProperty("mainMedia"))
28842
+ for (var keys = Object.keys(message.mainMedia), i = 0; i < keys.length; ++i) {
28843
+ writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
28844
+ $root.contentful.IdReferences.encode(message.mainMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
28845
+ }
28846
+ if (message.windDownMedia != null && message.hasOwnProperty("windDownMedia"))
28847
+ for (var keys = Object.keys(message.windDownMedia), i = 0; i < keys.length; ++i) {
28848
+ writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
28849
+ $root.contentful.IdReferences.encode(message.windDownMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
28850
+ }
28851
+ if (message.soundBedMedia != null && message.hasOwnProperty("soundBedMedia"))
28852
+ for (var keys = Object.keys(message.soundBedMedia), i = 0; i < keys.length; ++i) {
28853
+ writer.uint32(/* id 5, wireType 2 =*/42).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
28854
+ $root.contentful.IdReference.encode(message.soundBedMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
28855
+ }
28856
+ if (message.introMedia != null && message.hasOwnProperty("introMedia"))
28857
+ for (var keys = Object.keys(message.introMedia), i = 0; i < keys.length; ++i) {
28858
+ writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
28859
+ $root.contentful.IdReference.encode(message.introMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
28860
+ }
28861
+ if (message.leadInMedia != null && message.hasOwnProperty("leadInMedia"))
28862
+ for (var keys = Object.keys(message.leadInMedia), i = 0; i < keys.length; ++i) {
28863
+ writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
28864
+ $root.contentful.IdReference.encode(message.leadInMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
28865
+ }
28866
+ if (message.outroMedia != null && message.hasOwnProperty("outroMedia"))
28867
+ for (var keys = Object.keys(message.outroMedia), i = 0; i < keys.length; ++i) {
28868
+ writer.uint32(/* id 8, wireType 2 =*/66).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
28869
+ $root.contentful.IdReference.encode(message.outroMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
28870
+ }
28871
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
28872
+ writer.uint32(/* id 9, wireType 0 =*/72).uint64(message.updatedAt);
28873
+ return writer;
28874
+ };
28875
+
28876
+ /**
28877
+ * Encodes the specified ContentfulSleepcastRecipeUpdated message, length delimited. Does not implicitly {@link ContentfulSleepcastRecipeUpdated.verify|verify} messages.
28878
+ * @function encodeDelimited
28879
+ * @memberof ContentfulSleepcastRecipeUpdated
28880
+ * @static
28881
+ * @param {IContentfulSleepcastRecipeUpdated} message ContentfulSleepcastRecipeUpdated message or plain object to encode
28882
+ * @param {$protobuf.Writer} [writer] Writer to encode to
28883
+ * @returns {$protobuf.Writer} Writer
28884
+ */
28885
+ ContentfulSleepcastRecipeUpdated.encodeDelimited = function encodeDelimited(message, writer) {
28886
+ return this.encode(message, writer).ldelim();
28887
+ };
28888
+
28889
+ /**
28890
+ * Decodes a ContentfulSleepcastRecipeUpdated message from the specified reader or buffer.
28891
+ * @function decode
28892
+ * @memberof ContentfulSleepcastRecipeUpdated
28893
+ * @static
28894
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
28895
+ * @param {number} [length] Message length if known beforehand
28896
+ * @returns {ContentfulSleepcastRecipeUpdated} ContentfulSleepcastRecipeUpdated
28897
+ * @throws {Error} If the payload is not a reader or valid buffer
28898
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
28899
+ */
28900
+ ContentfulSleepcastRecipeUpdated.decode = function decode(reader, length) {
28901
+ if (!(reader instanceof $Reader))
28902
+ reader = $Reader.create(reader);
28903
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulSleepcastRecipeUpdated(), key;
28904
+ while (reader.pos < end) {
28905
+ var tag = reader.uint32();
28906
+ switch (tag >>> 3) {
28907
+ case 1:
28908
+ message.slug = reader.string();
28909
+ break;
28910
+ case 2:
28911
+ message.generatior = reader.string();
28912
+ break;
28913
+ case 3:
28914
+ reader.skip().pos++;
28915
+ if (message.mainMedia === $util.emptyObject)
28916
+ message.mainMedia = {};
28917
+ key = reader.string();
28918
+ reader.pos++;
28919
+ message.mainMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
28920
+ break;
28921
+ case 4:
28922
+ reader.skip().pos++;
28923
+ if (message.windDownMedia === $util.emptyObject)
28924
+ message.windDownMedia = {};
28925
+ key = reader.string();
28926
+ reader.pos++;
28927
+ message.windDownMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
28928
+ break;
28929
+ case 5:
28930
+ reader.skip().pos++;
28931
+ if (message.soundBedMedia === $util.emptyObject)
28932
+ message.soundBedMedia = {};
28933
+ key = reader.string();
28934
+ reader.pos++;
28935
+ message.soundBedMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
28936
+ break;
28937
+ case 6:
28938
+ reader.skip().pos++;
28939
+ if (message.introMedia === $util.emptyObject)
28940
+ message.introMedia = {};
28941
+ key = reader.string();
28942
+ reader.pos++;
28943
+ message.introMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
28944
+ break;
28945
+ case 7:
28946
+ reader.skip().pos++;
28947
+ if (message.leadInMedia === $util.emptyObject)
28948
+ message.leadInMedia = {};
28949
+ key = reader.string();
28950
+ reader.pos++;
28951
+ message.leadInMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
28952
+ break;
28953
+ case 8:
28954
+ reader.skip().pos++;
28955
+ if (message.outroMedia === $util.emptyObject)
28956
+ message.outroMedia = {};
28957
+ key = reader.string();
28958
+ reader.pos++;
28959
+ message.outroMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
28960
+ break;
28961
+ case 9:
28962
+ message.updatedAt = reader.uint64();
28963
+ break;
28964
+ default:
28965
+ reader.skipType(tag & 7);
28966
+ break;
28967
+ }
28968
+ }
28969
+ return message;
28970
+ };
28971
+
28972
+ /**
28973
+ * Decodes a ContentfulSleepcastRecipeUpdated message from the specified reader or buffer, length delimited.
28974
+ * @function decodeDelimited
28975
+ * @memberof ContentfulSleepcastRecipeUpdated
28976
+ * @static
28977
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
28978
+ * @returns {ContentfulSleepcastRecipeUpdated} ContentfulSleepcastRecipeUpdated
28979
+ * @throws {Error} If the payload is not a reader or valid buffer
28980
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
28981
+ */
28982
+ ContentfulSleepcastRecipeUpdated.decodeDelimited = function decodeDelimited(reader) {
28983
+ if (!(reader instanceof $Reader))
28984
+ reader = new $Reader(reader);
28985
+ return this.decode(reader, reader.uint32());
28986
+ };
28987
+
28988
+ /**
28989
+ * Verifies a ContentfulSleepcastRecipeUpdated message.
28990
+ * @function verify
28991
+ * @memberof ContentfulSleepcastRecipeUpdated
28992
+ * @static
28993
+ * @param {Object.<string,*>} message Plain object to verify
28994
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
28995
+ */
28996
+ ContentfulSleepcastRecipeUpdated.verify = function verify(message) {
28997
+ if (typeof message !== "object" || message === null)
28998
+ return "object expected";
28999
+ if (message.slug != null && message.hasOwnProperty("slug"))
29000
+ if (!$util.isString(message.slug))
29001
+ return "slug: string expected";
29002
+ if (message.generatior != null && message.hasOwnProperty("generatior"))
29003
+ if (!$util.isString(message.generatior))
29004
+ return "generatior: string expected";
29005
+ if (message.mainMedia != null && message.hasOwnProperty("mainMedia")) {
29006
+ if (!$util.isObject(message.mainMedia))
29007
+ return "mainMedia: object expected";
29008
+ var key = Object.keys(message.mainMedia);
29009
+ for (var i = 0; i < key.length; ++i) {
29010
+ var error = $root.contentful.IdReferences.verify(message.mainMedia[key[i]]);
29011
+ if (error)
29012
+ return "mainMedia." + error;
29013
+ }
29014
+ }
29015
+ if (message.windDownMedia != null && message.hasOwnProperty("windDownMedia")) {
29016
+ if (!$util.isObject(message.windDownMedia))
29017
+ return "windDownMedia: object expected";
29018
+ var key = Object.keys(message.windDownMedia);
29019
+ for (var i = 0; i < key.length; ++i) {
29020
+ var error = $root.contentful.IdReferences.verify(message.windDownMedia[key[i]]);
29021
+ if (error)
29022
+ return "windDownMedia." + error;
29023
+ }
29024
+ }
29025
+ if (message.soundBedMedia != null && message.hasOwnProperty("soundBedMedia")) {
29026
+ if (!$util.isObject(message.soundBedMedia))
29027
+ return "soundBedMedia: object expected";
29028
+ var key = Object.keys(message.soundBedMedia);
29029
+ for (var i = 0; i < key.length; ++i) {
29030
+ var error = $root.contentful.IdReference.verify(message.soundBedMedia[key[i]]);
29031
+ if (error)
29032
+ return "soundBedMedia." + error;
29033
+ }
29034
+ }
29035
+ if (message.introMedia != null && message.hasOwnProperty("introMedia")) {
29036
+ if (!$util.isObject(message.introMedia))
29037
+ return "introMedia: object expected";
29038
+ var key = Object.keys(message.introMedia);
29039
+ for (var i = 0; i < key.length; ++i) {
29040
+ var error = $root.contentful.IdReference.verify(message.introMedia[key[i]]);
29041
+ if (error)
29042
+ return "introMedia." + error;
29043
+ }
29044
+ }
29045
+ if (message.leadInMedia != null && message.hasOwnProperty("leadInMedia")) {
29046
+ if (!$util.isObject(message.leadInMedia))
29047
+ return "leadInMedia: object expected";
29048
+ var key = Object.keys(message.leadInMedia);
29049
+ for (var i = 0; i < key.length; ++i) {
29050
+ var error = $root.contentful.IdReference.verify(message.leadInMedia[key[i]]);
29051
+ if (error)
29052
+ return "leadInMedia." + error;
29053
+ }
29054
+ }
29055
+ if (message.outroMedia != null && message.hasOwnProperty("outroMedia")) {
29056
+ if (!$util.isObject(message.outroMedia))
29057
+ return "outroMedia: object expected";
29058
+ var key = Object.keys(message.outroMedia);
29059
+ for (var i = 0; i < key.length; ++i) {
29060
+ var error = $root.contentful.IdReference.verify(message.outroMedia[key[i]]);
29061
+ if (error)
29062
+ return "outroMedia." + error;
29063
+ }
29064
+ }
29065
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
29066
+ if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
29067
+ return "updatedAt: integer|Long expected";
29068
+ return null;
29069
+ };
29070
+
29071
+ /**
29072
+ * Creates a ContentfulSleepcastRecipeUpdated message from a plain object. Also converts values to their respective internal types.
29073
+ * @function fromObject
29074
+ * @memberof ContentfulSleepcastRecipeUpdated
29075
+ * @static
29076
+ * @param {Object.<string,*>} object Plain object
29077
+ * @returns {ContentfulSleepcastRecipeUpdated} ContentfulSleepcastRecipeUpdated
29078
+ */
29079
+ ContentfulSleepcastRecipeUpdated.fromObject = function fromObject(object) {
29080
+ if (object instanceof $root.ContentfulSleepcastRecipeUpdated)
29081
+ return object;
29082
+ var message = new $root.ContentfulSleepcastRecipeUpdated();
29083
+ if (object.slug != null)
29084
+ message.slug = String(object.slug);
29085
+ if (object.generatior != null)
29086
+ message.generatior = String(object.generatior);
29087
+ if (object.mainMedia) {
29088
+ if (typeof object.mainMedia !== "object")
29089
+ throw TypeError(".ContentfulSleepcastRecipeUpdated.mainMedia: object expected");
29090
+ message.mainMedia = {};
29091
+ for (var keys = Object.keys(object.mainMedia), i = 0; i < keys.length; ++i) {
29092
+ if (typeof object.mainMedia[keys[i]] !== "object")
29093
+ throw TypeError(".ContentfulSleepcastRecipeUpdated.mainMedia: object expected");
29094
+ message.mainMedia[keys[i]] = $root.contentful.IdReferences.fromObject(object.mainMedia[keys[i]]);
29095
+ }
29096
+ }
29097
+ if (object.windDownMedia) {
29098
+ if (typeof object.windDownMedia !== "object")
29099
+ throw TypeError(".ContentfulSleepcastRecipeUpdated.windDownMedia: object expected");
29100
+ message.windDownMedia = {};
29101
+ for (var keys = Object.keys(object.windDownMedia), i = 0; i < keys.length; ++i) {
29102
+ if (typeof object.windDownMedia[keys[i]] !== "object")
29103
+ throw TypeError(".ContentfulSleepcastRecipeUpdated.windDownMedia: object expected");
29104
+ message.windDownMedia[keys[i]] = $root.contentful.IdReferences.fromObject(object.windDownMedia[keys[i]]);
29105
+ }
29106
+ }
29107
+ if (object.soundBedMedia) {
29108
+ if (typeof object.soundBedMedia !== "object")
29109
+ throw TypeError(".ContentfulSleepcastRecipeUpdated.soundBedMedia: object expected");
29110
+ message.soundBedMedia = {};
29111
+ for (var keys = Object.keys(object.soundBedMedia), i = 0; i < keys.length; ++i) {
29112
+ if (typeof object.soundBedMedia[keys[i]] !== "object")
29113
+ throw TypeError(".ContentfulSleepcastRecipeUpdated.soundBedMedia: object expected");
29114
+ message.soundBedMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.soundBedMedia[keys[i]]);
29115
+ }
29116
+ }
29117
+ if (object.introMedia) {
29118
+ if (typeof object.introMedia !== "object")
29119
+ throw TypeError(".ContentfulSleepcastRecipeUpdated.introMedia: object expected");
29120
+ message.introMedia = {};
29121
+ for (var keys = Object.keys(object.introMedia), i = 0; i < keys.length; ++i) {
29122
+ if (typeof object.introMedia[keys[i]] !== "object")
29123
+ throw TypeError(".ContentfulSleepcastRecipeUpdated.introMedia: object expected");
29124
+ message.introMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.introMedia[keys[i]]);
29125
+ }
29126
+ }
29127
+ if (object.leadInMedia) {
29128
+ if (typeof object.leadInMedia !== "object")
29129
+ throw TypeError(".ContentfulSleepcastRecipeUpdated.leadInMedia: object expected");
29130
+ message.leadInMedia = {};
29131
+ for (var keys = Object.keys(object.leadInMedia), i = 0; i < keys.length; ++i) {
29132
+ if (typeof object.leadInMedia[keys[i]] !== "object")
29133
+ throw TypeError(".ContentfulSleepcastRecipeUpdated.leadInMedia: object expected");
29134
+ message.leadInMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.leadInMedia[keys[i]]);
29135
+ }
29136
+ }
29137
+ if (object.outroMedia) {
29138
+ if (typeof object.outroMedia !== "object")
29139
+ throw TypeError(".ContentfulSleepcastRecipeUpdated.outroMedia: object expected");
29140
+ message.outroMedia = {};
29141
+ for (var keys = Object.keys(object.outroMedia), i = 0; i < keys.length; ++i) {
29142
+ if (typeof object.outroMedia[keys[i]] !== "object")
29143
+ throw TypeError(".ContentfulSleepcastRecipeUpdated.outroMedia: object expected");
29144
+ message.outroMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.outroMedia[keys[i]]);
29145
+ }
29146
+ }
29147
+ if (object.updatedAt != null)
29148
+ if ($util.Long)
29149
+ (message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
29150
+ else if (typeof object.updatedAt === "string")
29151
+ message.updatedAt = parseInt(object.updatedAt, 10);
29152
+ else if (typeof object.updatedAt === "number")
29153
+ message.updatedAt = object.updatedAt;
29154
+ else if (typeof object.updatedAt === "object")
29155
+ message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
29156
+ return message;
29157
+ };
29158
+
29159
+ /**
29160
+ * Creates a plain object from a ContentfulSleepcastRecipeUpdated message. Also converts values to other types if specified.
29161
+ * @function toObject
29162
+ * @memberof ContentfulSleepcastRecipeUpdated
29163
+ * @static
29164
+ * @param {ContentfulSleepcastRecipeUpdated} message ContentfulSleepcastRecipeUpdated
29165
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
29166
+ * @returns {Object.<string,*>} Plain object
29167
+ */
29168
+ ContentfulSleepcastRecipeUpdated.toObject = function toObject(message, options) {
29169
+ if (!options)
29170
+ options = {};
29171
+ var object = {};
29172
+ if (options.objects || options.defaults) {
29173
+ object.mainMedia = {};
29174
+ object.windDownMedia = {};
29175
+ object.soundBedMedia = {};
29176
+ object.introMedia = {};
29177
+ object.leadInMedia = {};
29178
+ object.outroMedia = {};
29179
+ }
29180
+ if (options.defaults) {
29181
+ object.slug = "";
29182
+ object.generatior = "";
29183
+ if ($util.Long) {
29184
+ var long = new $util.Long(0, 0, true);
29185
+ object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
29186
+ } else
29187
+ object.updatedAt = options.longs === String ? "0" : 0;
29188
+ }
29189
+ if (message.slug != null && message.hasOwnProperty("slug"))
29190
+ object.slug = message.slug;
29191
+ if (message.generatior != null && message.hasOwnProperty("generatior"))
29192
+ object.generatior = message.generatior;
29193
+ var keys2;
29194
+ if (message.mainMedia && (keys2 = Object.keys(message.mainMedia)).length) {
29195
+ object.mainMedia = {};
29196
+ for (var j = 0; j < keys2.length; ++j)
29197
+ object.mainMedia[keys2[j]] = $root.contentful.IdReferences.toObject(message.mainMedia[keys2[j]], options);
29198
+ }
29199
+ if (message.windDownMedia && (keys2 = Object.keys(message.windDownMedia)).length) {
29200
+ object.windDownMedia = {};
29201
+ for (var j = 0; j < keys2.length; ++j)
29202
+ object.windDownMedia[keys2[j]] = $root.contentful.IdReferences.toObject(message.windDownMedia[keys2[j]], options);
29203
+ }
29204
+ if (message.soundBedMedia && (keys2 = Object.keys(message.soundBedMedia)).length) {
29205
+ object.soundBedMedia = {};
29206
+ for (var j = 0; j < keys2.length; ++j)
29207
+ object.soundBedMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.soundBedMedia[keys2[j]], options);
29208
+ }
29209
+ if (message.introMedia && (keys2 = Object.keys(message.introMedia)).length) {
29210
+ object.introMedia = {};
29211
+ for (var j = 0; j < keys2.length; ++j)
29212
+ object.introMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.introMedia[keys2[j]], options);
29213
+ }
29214
+ if (message.leadInMedia && (keys2 = Object.keys(message.leadInMedia)).length) {
29215
+ object.leadInMedia = {};
29216
+ for (var j = 0; j < keys2.length; ++j)
29217
+ object.leadInMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.leadInMedia[keys2[j]], options);
29218
+ }
29219
+ if (message.outroMedia && (keys2 = Object.keys(message.outroMedia)).length) {
29220
+ object.outroMedia = {};
29221
+ for (var j = 0; j < keys2.length; ++j)
29222
+ object.outroMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.outroMedia[keys2[j]], options);
29223
+ }
29224
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
29225
+ if (typeof message.updatedAt === "number")
29226
+ object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
29227
+ else
29228
+ 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;
29229
+ return object;
29230
+ };
29231
+
29232
+ /**
29233
+ * Converts this ContentfulSleepcastRecipeUpdated to JSON.
29234
+ * @function toJSON
29235
+ * @memberof ContentfulSleepcastRecipeUpdated
29236
+ * @instance
29237
+ * @returns {Object.<string,*>} JSON object
29238
+ */
29239
+ ContentfulSleepcastRecipeUpdated.prototype.toJSON = function toJSON() {
29240
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
29241
+ };
29242
+
29243
+ return ContentfulSleepcastRecipeUpdated;
29244
+ })();
29245
+
29246
+ $root.ContentfulSleepcastRecipeDeleted = (function() {
29247
+
29248
+ /**
29249
+ * Properties of a ContentfulSleepcastRecipeDeleted.
29250
+ * @exports IContentfulSleepcastRecipeDeleted
29251
+ * @interface IContentfulSleepcastRecipeDeleted
29252
+ * @property {string|null} [slug] ContentfulSleepcastRecipeDeleted slug
29253
+ * @property {number|Long|null} [deletedAt] ContentfulSleepcastRecipeDeleted deletedAt
29254
+ */
29255
+
29256
+ /**
29257
+ * Constructs a new ContentfulSleepcastRecipeDeleted.
29258
+ * @exports ContentfulSleepcastRecipeDeleted
29259
+ * @classdesc Represents a ContentfulSleepcastRecipeDeleted.
29260
+ * @implements IContentfulSleepcastRecipeDeleted
29261
+ * @constructor
29262
+ * @param {IContentfulSleepcastRecipeDeleted=} [properties] Properties to set
29263
+ */
29264
+ function ContentfulSleepcastRecipeDeleted(properties) {
29265
+ if (properties)
29266
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
29267
+ if (properties[keys[i]] != null)
29268
+ this[keys[i]] = properties[keys[i]];
29269
+ }
29270
+
29271
+ /**
29272
+ * ContentfulSleepcastRecipeDeleted slug.
29273
+ * @member {string} slug
29274
+ * @memberof ContentfulSleepcastRecipeDeleted
29275
+ * @instance
29276
+ */
29277
+ ContentfulSleepcastRecipeDeleted.prototype.slug = "";
29278
+
29279
+ /**
29280
+ * ContentfulSleepcastRecipeDeleted deletedAt.
29281
+ * @member {number|Long} deletedAt
29282
+ * @memberof ContentfulSleepcastRecipeDeleted
29283
+ * @instance
29284
+ */
29285
+ ContentfulSleepcastRecipeDeleted.prototype.deletedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
29286
+
29287
+ /**
29288
+ * Creates a new ContentfulSleepcastRecipeDeleted instance using the specified properties.
29289
+ * @function create
29290
+ * @memberof ContentfulSleepcastRecipeDeleted
29291
+ * @static
29292
+ * @param {IContentfulSleepcastRecipeDeleted=} [properties] Properties to set
29293
+ * @returns {ContentfulSleepcastRecipeDeleted} ContentfulSleepcastRecipeDeleted instance
29294
+ */
29295
+ ContentfulSleepcastRecipeDeleted.create = function create(properties) {
29296
+ return new ContentfulSleepcastRecipeDeleted(properties);
29297
+ };
29298
+
29299
+ /**
29300
+ * Encodes the specified ContentfulSleepcastRecipeDeleted message. Does not implicitly {@link ContentfulSleepcastRecipeDeleted.verify|verify} messages.
29301
+ * @function encode
29302
+ * @memberof ContentfulSleepcastRecipeDeleted
29303
+ * @static
29304
+ * @param {IContentfulSleepcastRecipeDeleted} message ContentfulSleepcastRecipeDeleted message or plain object to encode
29305
+ * @param {$protobuf.Writer} [writer] Writer to encode to
29306
+ * @returns {$protobuf.Writer} Writer
29307
+ */
29308
+ ContentfulSleepcastRecipeDeleted.encode = function encode(message, writer) {
29309
+ if (!writer)
29310
+ writer = $Writer.create();
29311
+ if (message.slug != null && message.hasOwnProperty("slug"))
29312
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
29313
+ if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
29314
+ writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.deletedAt);
29315
+ return writer;
29316
+ };
29317
+
29318
+ /**
29319
+ * Encodes the specified ContentfulSleepcastRecipeDeleted message, length delimited. Does not implicitly {@link ContentfulSleepcastRecipeDeleted.verify|verify} messages.
29320
+ * @function encodeDelimited
29321
+ * @memberof ContentfulSleepcastRecipeDeleted
29322
+ * @static
29323
+ * @param {IContentfulSleepcastRecipeDeleted} message ContentfulSleepcastRecipeDeleted message or plain object to encode
29324
+ * @param {$protobuf.Writer} [writer] Writer to encode to
29325
+ * @returns {$protobuf.Writer} Writer
29326
+ */
29327
+ ContentfulSleepcastRecipeDeleted.encodeDelimited = function encodeDelimited(message, writer) {
29328
+ return this.encode(message, writer).ldelim();
29329
+ };
29330
+
29331
+ /**
29332
+ * Decodes a ContentfulSleepcastRecipeDeleted message from the specified reader or buffer.
29333
+ * @function decode
29334
+ * @memberof ContentfulSleepcastRecipeDeleted
29335
+ * @static
29336
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
29337
+ * @param {number} [length] Message length if known beforehand
29338
+ * @returns {ContentfulSleepcastRecipeDeleted} ContentfulSleepcastRecipeDeleted
29339
+ * @throws {Error} If the payload is not a reader or valid buffer
29340
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
29341
+ */
29342
+ ContentfulSleepcastRecipeDeleted.decode = function decode(reader, length) {
29343
+ if (!(reader instanceof $Reader))
29344
+ reader = $Reader.create(reader);
29345
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulSleepcastRecipeDeleted();
29346
+ while (reader.pos < end) {
29347
+ var tag = reader.uint32();
29348
+ switch (tag >>> 3) {
29349
+ case 1:
29350
+ message.slug = reader.string();
29351
+ break;
29352
+ case 2:
29353
+ message.deletedAt = reader.uint64();
29354
+ break;
29355
+ default:
29356
+ reader.skipType(tag & 7);
29357
+ break;
29358
+ }
29359
+ }
29360
+ return message;
29361
+ };
29362
+
29363
+ /**
29364
+ * Decodes a ContentfulSleepcastRecipeDeleted message from the specified reader or buffer, length delimited.
29365
+ * @function decodeDelimited
29366
+ * @memberof ContentfulSleepcastRecipeDeleted
29367
+ * @static
29368
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
29369
+ * @returns {ContentfulSleepcastRecipeDeleted} ContentfulSleepcastRecipeDeleted
29370
+ * @throws {Error} If the payload is not a reader or valid buffer
29371
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
29372
+ */
29373
+ ContentfulSleepcastRecipeDeleted.decodeDelimited = function decodeDelimited(reader) {
29374
+ if (!(reader instanceof $Reader))
29375
+ reader = new $Reader(reader);
29376
+ return this.decode(reader, reader.uint32());
29377
+ };
29378
+
29379
+ /**
29380
+ * Verifies a ContentfulSleepcastRecipeDeleted message.
29381
+ * @function verify
29382
+ * @memberof ContentfulSleepcastRecipeDeleted
29383
+ * @static
29384
+ * @param {Object.<string,*>} message Plain object to verify
29385
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
29386
+ */
29387
+ ContentfulSleepcastRecipeDeleted.verify = function verify(message) {
29388
+ if (typeof message !== "object" || message === null)
29389
+ return "object expected";
29390
+ if (message.slug != null && message.hasOwnProperty("slug"))
29391
+ if (!$util.isString(message.slug))
29392
+ return "slug: string expected";
29393
+ if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
29394
+ if (!$util.isInteger(message.deletedAt) && !(message.deletedAt && $util.isInteger(message.deletedAt.low) && $util.isInteger(message.deletedAt.high)))
29395
+ return "deletedAt: integer|Long expected";
29396
+ return null;
29397
+ };
29398
+
29399
+ /**
29400
+ * Creates a ContentfulSleepcastRecipeDeleted message from a plain object. Also converts values to their respective internal types.
29401
+ * @function fromObject
29402
+ * @memberof ContentfulSleepcastRecipeDeleted
29403
+ * @static
29404
+ * @param {Object.<string,*>} object Plain object
29405
+ * @returns {ContentfulSleepcastRecipeDeleted} ContentfulSleepcastRecipeDeleted
29406
+ */
29407
+ ContentfulSleepcastRecipeDeleted.fromObject = function fromObject(object) {
29408
+ if (object instanceof $root.ContentfulSleepcastRecipeDeleted)
29409
+ return object;
29410
+ var message = new $root.ContentfulSleepcastRecipeDeleted();
29411
+ if (object.slug != null)
29412
+ message.slug = String(object.slug);
29413
+ if (object.deletedAt != null)
29414
+ if ($util.Long)
29415
+ (message.deletedAt = $util.Long.fromValue(object.deletedAt)).unsigned = true;
29416
+ else if (typeof object.deletedAt === "string")
29417
+ message.deletedAt = parseInt(object.deletedAt, 10);
29418
+ else if (typeof object.deletedAt === "number")
29419
+ message.deletedAt = object.deletedAt;
29420
+ else if (typeof object.deletedAt === "object")
29421
+ message.deletedAt = new $util.LongBits(object.deletedAt.low >>> 0, object.deletedAt.high >>> 0).toNumber(true);
29422
+ return message;
29423
+ };
29424
+
29425
+ /**
29426
+ * Creates a plain object from a ContentfulSleepcastRecipeDeleted message. Also converts values to other types if specified.
29427
+ * @function toObject
29428
+ * @memberof ContentfulSleepcastRecipeDeleted
29429
+ * @static
29430
+ * @param {ContentfulSleepcastRecipeDeleted} message ContentfulSleepcastRecipeDeleted
29431
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
29432
+ * @returns {Object.<string,*>} Plain object
29433
+ */
29434
+ ContentfulSleepcastRecipeDeleted.toObject = function toObject(message, options) {
29435
+ if (!options)
29436
+ options = {};
29437
+ var object = {};
29438
+ if (options.defaults) {
29439
+ object.slug = "";
29440
+ if ($util.Long) {
29441
+ var long = new $util.Long(0, 0, true);
29442
+ object.deletedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
29443
+ } else
29444
+ object.deletedAt = options.longs === String ? "0" : 0;
29445
+ }
29446
+ if (message.slug != null && message.hasOwnProperty("slug"))
29447
+ object.slug = message.slug;
29448
+ if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
29449
+ if (typeof message.deletedAt === "number")
29450
+ object.deletedAt = options.longs === String ? String(message.deletedAt) : message.deletedAt;
29451
+ else
29452
+ 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;
29453
+ return object;
29454
+ };
29455
+
29456
+ /**
29457
+ * Converts this ContentfulSleepcastRecipeDeleted to JSON.
29458
+ * @function toJSON
29459
+ * @memberof ContentfulSleepcastRecipeDeleted
29460
+ * @instance
29461
+ * @returns {Object.<string,*>} JSON object
29462
+ */
29463
+ ContentfulSleepcastRecipeDeleted.prototype.toJSON = function toJSON() {
29464
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
29465
+ };
29466
+
29467
+ return ContentfulSleepcastRecipeDeleted;
29468
+ })();
29469
+
28160
29470
  $root.ContentfulContentModelCreated = (function() {
28161
29471
 
28162
29472
  /**
@@ -30381,6 +31691,230 @@ $root.UserDomainDeleted = (function() {
30381
31691
  return UserDomainDeleted;
30382
31692
  })();
30383
31693
 
31694
+ $root.UserDomainEnabledPhiProtection = (function() {
31695
+
31696
+ /**
31697
+ * Properties of a UserDomainEnabledPhiProtection.
31698
+ * @exports IUserDomainEnabledPhiProtection
31699
+ * @interface IUserDomainEnabledPhiProtection
31700
+ * @property {string|null} [hsId] UserDomainEnabledPhiProtection hsId
31701
+ * @property {number|Long|null} [updatedAt] UserDomainEnabledPhiProtection updatedAt
31702
+ */
31703
+
31704
+ /**
31705
+ * Constructs a new UserDomainEnabledPhiProtection.
31706
+ * @exports UserDomainEnabledPhiProtection
31707
+ * @classdesc Represents a UserDomainEnabledPhiProtection.
31708
+ * @implements IUserDomainEnabledPhiProtection
31709
+ * @constructor
31710
+ * @param {IUserDomainEnabledPhiProtection=} [properties] Properties to set
31711
+ */
31712
+ function UserDomainEnabledPhiProtection(properties) {
31713
+ if (properties)
31714
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
31715
+ if (properties[keys[i]] != null)
31716
+ this[keys[i]] = properties[keys[i]];
31717
+ }
31718
+
31719
+ /**
31720
+ * UserDomainEnabledPhiProtection hsId.
31721
+ * @member {string} hsId
31722
+ * @memberof UserDomainEnabledPhiProtection
31723
+ * @instance
31724
+ */
31725
+ UserDomainEnabledPhiProtection.prototype.hsId = "";
31726
+
31727
+ /**
31728
+ * UserDomainEnabledPhiProtection updatedAt.
31729
+ * @member {number|Long} updatedAt
31730
+ * @memberof UserDomainEnabledPhiProtection
31731
+ * @instance
31732
+ */
31733
+ UserDomainEnabledPhiProtection.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
31734
+
31735
+ /**
31736
+ * Creates a new UserDomainEnabledPhiProtection instance using the specified properties.
31737
+ * @function create
31738
+ * @memberof UserDomainEnabledPhiProtection
31739
+ * @static
31740
+ * @param {IUserDomainEnabledPhiProtection=} [properties] Properties to set
31741
+ * @returns {UserDomainEnabledPhiProtection} UserDomainEnabledPhiProtection instance
31742
+ */
31743
+ UserDomainEnabledPhiProtection.create = function create(properties) {
31744
+ return new UserDomainEnabledPhiProtection(properties);
31745
+ };
31746
+
31747
+ /**
31748
+ * Encodes the specified UserDomainEnabledPhiProtection message. Does not implicitly {@link UserDomainEnabledPhiProtection.verify|verify} messages.
31749
+ * @function encode
31750
+ * @memberof UserDomainEnabledPhiProtection
31751
+ * @static
31752
+ * @param {IUserDomainEnabledPhiProtection} message UserDomainEnabledPhiProtection message or plain object to encode
31753
+ * @param {$protobuf.Writer} [writer] Writer to encode to
31754
+ * @returns {$protobuf.Writer} Writer
31755
+ */
31756
+ UserDomainEnabledPhiProtection.encode = function encode(message, writer) {
31757
+ if (!writer)
31758
+ writer = $Writer.create();
31759
+ if (message.hsId != null && message.hasOwnProperty("hsId"))
31760
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsId);
31761
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
31762
+ writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.updatedAt);
31763
+ return writer;
31764
+ };
31765
+
31766
+ /**
31767
+ * Encodes the specified UserDomainEnabledPhiProtection message, length delimited. Does not implicitly {@link UserDomainEnabledPhiProtection.verify|verify} messages.
31768
+ * @function encodeDelimited
31769
+ * @memberof UserDomainEnabledPhiProtection
31770
+ * @static
31771
+ * @param {IUserDomainEnabledPhiProtection} message UserDomainEnabledPhiProtection message or plain object to encode
31772
+ * @param {$protobuf.Writer} [writer] Writer to encode to
31773
+ * @returns {$protobuf.Writer} Writer
31774
+ */
31775
+ UserDomainEnabledPhiProtection.encodeDelimited = function encodeDelimited(message, writer) {
31776
+ return this.encode(message, writer).ldelim();
31777
+ };
31778
+
31779
+ /**
31780
+ * Decodes a UserDomainEnabledPhiProtection message from the specified reader or buffer.
31781
+ * @function decode
31782
+ * @memberof UserDomainEnabledPhiProtection
31783
+ * @static
31784
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
31785
+ * @param {number} [length] Message length if known beforehand
31786
+ * @returns {UserDomainEnabledPhiProtection} UserDomainEnabledPhiProtection
31787
+ * @throws {Error} If the payload is not a reader or valid buffer
31788
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
31789
+ */
31790
+ UserDomainEnabledPhiProtection.decode = function decode(reader, length) {
31791
+ if (!(reader instanceof $Reader))
31792
+ reader = $Reader.create(reader);
31793
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserDomainEnabledPhiProtection();
31794
+ while (reader.pos < end) {
31795
+ var tag = reader.uint32();
31796
+ switch (tag >>> 3) {
31797
+ case 1:
31798
+ message.hsId = reader.string();
31799
+ break;
31800
+ case 2:
31801
+ message.updatedAt = reader.uint64();
31802
+ break;
31803
+ default:
31804
+ reader.skipType(tag & 7);
31805
+ break;
31806
+ }
31807
+ }
31808
+ return message;
31809
+ };
31810
+
31811
+ /**
31812
+ * Decodes a UserDomainEnabledPhiProtection message from the specified reader or buffer, length delimited.
31813
+ * @function decodeDelimited
31814
+ * @memberof UserDomainEnabledPhiProtection
31815
+ * @static
31816
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
31817
+ * @returns {UserDomainEnabledPhiProtection} UserDomainEnabledPhiProtection
31818
+ * @throws {Error} If the payload is not a reader or valid buffer
31819
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
31820
+ */
31821
+ UserDomainEnabledPhiProtection.decodeDelimited = function decodeDelimited(reader) {
31822
+ if (!(reader instanceof $Reader))
31823
+ reader = new $Reader(reader);
31824
+ return this.decode(reader, reader.uint32());
31825
+ };
31826
+
31827
+ /**
31828
+ * Verifies a UserDomainEnabledPhiProtection message.
31829
+ * @function verify
31830
+ * @memberof UserDomainEnabledPhiProtection
31831
+ * @static
31832
+ * @param {Object.<string,*>} message Plain object to verify
31833
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
31834
+ */
31835
+ UserDomainEnabledPhiProtection.verify = function verify(message) {
31836
+ if (typeof message !== "object" || message === null)
31837
+ return "object expected";
31838
+ if (message.hsId != null && message.hasOwnProperty("hsId"))
31839
+ if (!$util.isString(message.hsId))
31840
+ return "hsId: string expected";
31841
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
31842
+ if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
31843
+ return "updatedAt: integer|Long expected";
31844
+ return null;
31845
+ };
31846
+
31847
+ /**
31848
+ * Creates a UserDomainEnabledPhiProtection message from a plain object. Also converts values to their respective internal types.
31849
+ * @function fromObject
31850
+ * @memberof UserDomainEnabledPhiProtection
31851
+ * @static
31852
+ * @param {Object.<string,*>} object Plain object
31853
+ * @returns {UserDomainEnabledPhiProtection} UserDomainEnabledPhiProtection
31854
+ */
31855
+ UserDomainEnabledPhiProtection.fromObject = function fromObject(object) {
31856
+ if (object instanceof $root.UserDomainEnabledPhiProtection)
31857
+ return object;
31858
+ var message = new $root.UserDomainEnabledPhiProtection();
31859
+ if (object.hsId != null)
31860
+ message.hsId = String(object.hsId);
31861
+ if (object.updatedAt != null)
31862
+ if ($util.Long)
31863
+ (message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
31864
+ else if (typeof object.updatedAt === "string")
31865
+ message.updatedAt = parseInt(object.updatedAt, 10);
31866
+ else if (typeof object.updatedAt === "number")
31867
+ message.updatedAt = object.updatedAt;
31868
+ else if (typeof object.updatedAt === "object")
31869
+ message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
31870
+ return message;
31871
+ };
31872
+
31873
+ /**
31874
+ * Creates a plain object from a UserDomainEnabledPhiProtection message. Also converts values to other types if specified.
31875
+ * @function toObject
31876
+ * @memberof UserDomainEnabledPhiProtection
31877
+ * @static
31878
+ * @param {UserDomainEnabledPhiProtection} message UserDomainEnabledPhiProtection
31879
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
31880
+ * @returns {Object.<string,*>} Plain object
31881
+ */
31882
+ UserDomainEnabledPhiProtection.toObject = function toObject(message, options) {
31883
+ if (!options)
31884
+ options = {};
31885
+ var object = {};
31886
+ if (options.defaults) {
31887
+ object.hsId = "";
31888
+ if ($util.Long) {
31889
+ var long = new $util.Long(0, 0, true);
31890
+ object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
31891
+ } else
31892
+ object.updatedAt = options.longs === String ? "0" : 0;
31893
+ }
31894
+ if (message.hsId != null && message.hasOwnProperty("hsId"))
31895
+ object.hsId = message.hsId;
31896
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
31897
+ if (typeof message.updatedAt === "number")
31898
+ object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
31899
+ else
31900
+ 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;
31901
+ return object;
31902
+ };
31903
+
31904
+ /**
31905
+ * Converts this UserDomainEnabledPhiProtection to JSON.
31906
+ * @function toJSON
31907
+ * @memberof UserDomainEnabledPhiProtection
31908
+ * @instance
31909
+ * @returns {Object.<string,*>} JSON object
31910
+ */
31911
+ UserDomainEnabledPhiProtection.prototype.toJSON = function toJSON() {
31912
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
31913
+ };
31914
+
31915
+ return UserDomainEnabledPhiProtection;
31916
+ })();
31917
+
30384
31918
  $root.UserDomainLoggedIn = (function() {
30385
31919
 
30386
31920
  /**