@headspace/protos-events 1.204.0 → 1.206.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.d.ts +316 -4
- package/lib/index.js +940 -26
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -18217,6 +18217,880 @@ $root.ContentfulCategoryDeleted = (function() {
|
|
|
18217
18217
|
return ContentfulCategoryDeleted;
|
|
18218
18218
|
})();
|
|
18219
18219
|
|
|
18220
|
+
$root.ContentfulMediaWrapperCreated = (function() {
|
|
18221
|
+
|
|
18222
|
+
/**
|
|
18223
|
+
* Properties of a ContentfulMediaWrapperCreated.
|
|
18224
|
+
* @exports IContentfulMediaWrapperCreated
|
|
18225
|
+
* @interface IContentfulMediaWrapperCreated
|
|
18226
|
+
* @property {string|null} [slug] ContentfulMediaWrapperCreated slug
|
|
18227
|
+
* @property {Object.<string,contentful.IIdReference>|null} [media] ContentfulMediaWrapperCreated media
|
|
18228
|
+
* @property {Object.<string,contentful.IIdReference>|null} [caption] ContentfulMediaWrapperCreated caption
|
|
18229
|
+
* @property {number|Long|null} [createdAt] ContentfulMediaWrapperCreated createdAt
|
|
18230
|
+
*/
|
|
18231
|
+
|
|
18232
|
+
/**
|
|
18233
|
+
* Constructs a new ContentfulMediaWrapperCreated.
|
|
18234
|
+
* @exports ContentfulMediaWrapperCreated
|
|
18235
|
+
* @classdesc Represents a ContentfulMediaWrapperCreated.
|
|
18236
|
+
* @implements IContentfulMediaWrapperCreated
|
|
18237
|
+
* @constructor
|
|
18238
|
+
* @param {IContentfulMediaWrapperCreated=} [properties] Properties to set
|
|
18239
|
+
*/
|
|
18240
|
+
function ContentfulMediaWrapperCreated(properties) {
|
|
18241
|
+
this.media = {};
|
|
18242
|
+
this.caption = {};
|
|
18243
|
+
if (properties)
|
|
18244
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
18245
|
+
if (properties[keys[i]] != null)
|
|
18246
|
+
this[keys[i]] = properties[keys[i]];
|
|
18247
|
+
}
|
|
18248
|
+
|
|
18249
|
+
/**
|
|
18250
|
+
* ContentfulMediaWrapperCreated slug.
|
|
18251
|
+
* @member {string} slug
|
|
18252
|
+
* @memberof ContentfulMediaWrapperCreated
|
|
18253
|
+
* @instance
|
|
18254
|
+
*/
|
|
18255
|
+
ContentfulMediaWrapperCreated.prototype.slug = "";
|
|
18256
|
+
|
|
18257
|
+
/**
|
|
18258
|
+
* ContentfulMediaWrapperCreated media.
|
|
18259
|
+
* @member {Object.<string,contentful.IIdReference>} media
|
|
18260
|
+
* @memberof ContentfulMediaWrapperCreated
|
|
18261
|
+
* @instance
|
|
18262
|
+
*/
|
|
18263
|
+
ContentfulMediaWrapperCreated.prototype.media = $util.emptyObject;
|
|
18264
|
+
|
|
18265
|
+
/**
|
|
18266
|
+
* ContentfulMediaWrapperCreated caption.
|
|
18267
|
+
* @member {Object.<string,contentful.IIdReference>} caption
|
|
18268
|
+
* @memberof ContentfulMediaWrapperCreated
|
|
18269
|
+
* @instance
|
|
18270
|
+
*/
|
|
18271
|
+
ContentfulMediaWrapperCreated.prototype.caption = $util.emptyObject;
|
|
18272
|
+
|
|
18273
|
+
/**
|
|
18274
|
+
* ContentfulMediaWrapperCreated createdAt.
|
|
18275
|
+
* @member {number|Long} createdAt
|
|
18276
|
+
* @memberof ContentfulMediaWrapperCreated
|
|
18277
|
+
* @instance
|
|
18278
|
+
*/
|
|
18279
|
+
ContentfulMediaWrapperCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
18280
|
+
|
|
18281
|
+
/**
|
|
18282
|
+
* Creates a new ContentfulMediaWrapperCreated instance using the specified properties.
|
|
18283
|
+
* @function create
|
|
18284
|
+
* @memberof ContentfulMediaWrapperCreated
|
|
18285
|
+
* @static
|
|
18286
|
+
* @param {IContentfulMediaWrapperCreated=} [properties] Properties to set
|
|
18287
|
+
* @returns {ContentfulMediaWrapperCreated} ContentfulMediaWrapperCreated instance
|
|
18288
|
+
*/
|
|
18289
|
+
ContentfulMediaWrapperCreated.create = function create(properties) {
|
|
18290
|
+
return new ContentfulMediaWrapperCreated(properties);
|
|
18291
|
+
};
|
|
18292
|
+
|
|
18293
|
+
/**
|
|
18294
|
+
* Encodes the specified ContentfulMediaWrapperCreated message. Does not implicitly {@link ContentfulMediaWrapperCreated.verify|verify} messages.
|
|
18295
|
+
* @function encode
|
|
18296
|
+
* @memberof ContentfulMediaWrapperCreated
|
|
18297
|
+
* @static
|
|
18298
|
+
* @param {IContentfulMediaWrapperCreated} message ContentfulMediaWrapperCreated message or plain object to encode
|
|
18299
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
18300
|
+
* @returns {$protobuf.Writer} Writer
|
|
18301
|
+
*/
|
|
18302
|
+
ContentfulMediaWrapperCreated.encode = function encode(message, writer) {
|
|
18303
|
+
if (!writer)
|
|
18304
|
+
writer = $Writer.create();
|
|
18305
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
18306
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
18307
|
+
if (message.media != null && message.hasOwnProperty("media"))
|
|
18308
|
+
for (var keys = Object.keys(message.media), i = 0; i < keys.length; ++i) {
|
|
18309
|
+
writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
18310
|
+
$root.contentful.IdReference.encode(message.media[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
18311
|
+
}
|
|
18312
|
+
if (message.caption != null && message.hasOwnProperty("caption"))
|
|
18313
|
+
for (var keys = Object.keys(message.caption), i = 0; i < keys.length; ++i) {
|
|
18314
|
+
writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
18315
|
+
$root.contentful.IdReference.encode(message.caption[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
18316
|
+
}
|
|
18317
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
18318
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.createdAt);
|
|
18319
|
+
return writer;
|
|
18320
|
+
};
|
|
18321
|
+
|
|
18322
|
+
/**
|
|
18323
|
+
* Encodes the specified ContentfulMediaWrapperCreated message, length delimited. Does not implicitly {@link ContentfulMediaWrapperCreated.verify|verify} messages.
|
|
18324
|
+
* @function encodeDelimited
|
|
18325
|
+
* @memberof ContentfulMediaWrapperCreated
|
|
18326
|
+
* @static
|
|
18327
|
+
* @param {IContentfulMediaWrapperCreated} message ContentfulMediaWrapperCreated message or plain object to encode
|
|
18328
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
18329
|
+
* @returns {$protobuf.Writer} Writer
|
|
18330
|
+
*/
|
|
18331
|
+
ContentfulMediaWrapperCreated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
18332
|
+
return this.encode(message, writer).ldelim();
|
|
18333
|
+
};
|
|
18334
|
+
|
|
18335
|
+
/**
|
|
18336
|
+
* Decodes a ContentfulMediaWrapperCreated message from the specified reader or buffer.
|
|
18337
|
+
* @function decode
|
|
18338
|
+
* @memberof ContentfulMediaWrapperCreated
|
|
18339
|
+
* @static
|
|
18340
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
18341
|
+
* @param {number} [length] Message length if known beforehand
|
|
18342
|
+
* @returns {ContentfulMediaWrapperCreated} ContentfulMediaWrapperCreated
|
|
18343
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
18344
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
18345
|
+
*/
|
|
18346
|
+
ContentfulMediaWrapperCreated.decode = function decode(reader, length) {
|
|
18347
|
+
if (!(reader instanceof $Reader))
|
|
18348
|
+
reader = $Reader.create(reader);
|
|
18349
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulMediaWrapperCreated(), key;
|
|
18350
|
+
while (reader.pos < end) {
|
|
18351
|
+
var tag = reader.uint32();
|
|
18352
|
+
switch (tag >>> 3) {
|
|
18353
|
+
case 1:
|
|
18354
|
+
message.slug = reader.string();
|
|
18355
|
+
break;
|
|
18356
|
+
case 2:
|
|
18357
|
+
reader.skip().pos++;
|
|
18358
|
+
if (message.media === $util.emptyObject)
|
|
18359
|
+
message.media = {};
|
|
18360
|
+
key = reader.string();
|
|
18361
|
+
reader.pos++;
|
|
18362
|
+
message.media[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
|
|
18363
|
+
break;
|
|
18364
|
+
case 3:
|
|
18365
|
+
reader.skip().pos++;
|
|
18366
|
+
if (message.caption === $util.emptyObject)
|
|
18367
|
+
message.caption = {};
|
|
18368
|
+
key = reader.string();
|
|
18369
|
+
reader.pos++;
|
|
18370
|
+
message.caption[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
|
|
18371
|
+
break;
|
|
18372
|
+
case 4:
|
|
18373
|
+
message.createdAt = reader.uint64();
|
|
18374
|
+
break;
|
|
18375
|
+
default:
|
|
18376
|
+
reader.skipType(tag & 7);
|
|
18377
|
+
break;
|
|
18378
|
+
}
|
|
18379
|
+
}
|
|
18380
|
+
return message;
|
|
18381
|
+
};
|
|
18382
|
+
|
|
18383
|
+
/**
|
|
18384
|
+
* Decodes a ContentfulMediaWrapperCreated message from the specified reader or buffer, length delimited.
|
|
18385
|
+
* @function decodeDelimited
|
|
18386
|
+
* @memberof ContentfulMediaWrapperCreated
|
|
18387
|
+
* @static
|
|
18388
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
18389
|
+
* @returns {ContentfulMediaWrapperCreated} ContentfulMediaWrapperCreated
|
|
18390
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
18391
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
18392
|
+
*/
|
|
18393
|
+
ContentfulMediaWrapperCreated.decodeDelimited = function decodeDelimited(reader) {
|
|
18394
|
+
if (!(reader instanceof $Reader))
|
|
18395
|
+
reader = new $Reader(reader);
|
|
18396
|
+
return this.decode(reader, reader.uint32());
|
|
18397
|
+
};
|
|
18398
|
+
|
|
18399
|
+
/**
|
|
18400
|
+
* Verifies a ContentfulMediaWrapperCreated message.
|
|
18401
|
+
* @function verify
|
|
18402
|
+
* @memberof ContentfulMediaWrapperCreated
|
|
18403
|
+
* @static
|
|
18404
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
18405
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
18406
|
+
*/
|
|
18407
|
+
ContentfulMediaWrapperCreated.verify = function verify(message) {
|
|
18408
|
+
if (typeof message !== "object" || message === null)
|
|
18409
|
+
return "object expected";
|
|
18410
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
18411
|
+
if (!$util.isString(message.slug))
|
|
18412
|
+
return "slug: string expected";
|
|
18413
|
+
if (message.media != null && message.hasOwnProperty("media")) {
|
|
18414
|
+
if (!$util.isObject(message.media))
|
|
18415
|
+
return "media: object expected";
|
|
18416
|
+
var key = Object.keys(message.media);
|
|
18417
|
+
for (var i = 0; i < key.length; ++i) {
|
|
18418
|
+
var error = $root.contentful.IdReference.verify(message.media[key[i]]);
|
|
18419
|
+
if (error)
|
|
18420
|
+
return "media." + error;
|
|
18421
|
+
}
|
|
18422
|
+
}
|
|
18423
|
+
if (message.caption != null && message.hasOwnProperty("caption")) {
|
|
18424
|
+
if (!$util.isObject(message.caption))
|
|
18425
|
+
return "caption: object expected";
|
|
18426
|
+
var key = Object.keys(message.caption);
|
|
18427
|
+
for (var i = 0; i < key.length; ++i) {
|
|
18428
|
+
var error = $root.contentful.IdReference.verify(message.caption[key[i]]);
|
|
18429
|
+
if (error)
|
|
18430
|
+
return "caption." + error;
|
|
18431
|
+
}
|
|
18432
|
+
}
|
|
18433
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
18434
|
+
if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
|
|
18435
|
+
return "createdAt: integer|Long expected";
|
|
18436
|
+
return null;
|
|
18437
|
+
};
|
|
18438
|
+
|
|
18439
|
+
/**
|
|
18440
|
+
* Creates a ContentfulMediaWrapperCreated message from a plain object. Also converts values to their respective internal types.
|
|
18441
|
+
* @function fromObject
|
|
18442
|
+
* @memberof ContentfulMediaWrapperCreated
|
|
18443
|
+
* @static
|
|
18444
|
+
* @param {Object.<string,*>} object Plain object
|
|
18445
|
+
* @returns {ContentfulMediaWrapperCreated} ContentfulMediaWrapperCreated
|
|
18446
|
+
*/
|
|
18447
|
+
ContentfulMediaWrapperCreated.fromObject = function fromObject(object) {
|
|
18448
|
+
if (object instanceof $root.ContentfulMediaWrapperCreated)
|
|
18449
|
+
return object;
|
|
18450
|
+
var message = new $root.ContentfulMediaWrapperCreated();
|
|
18451
|
+
if (object.slug != null)
|
|
18452
|
+
message.slug = String(object.slug);
|
|
18453
|
+
if (object.media) {
|
|
18454
|
+
if (typeof object.media !== "object")
|
|
18455
|
+
throw TypeError(".ContentfulMediaWrapperCreated.media: object expected");
|
|
18456
|
+
message.media = {};
|
|
18457
|
+
for (var keys = Object.keys(object.media), i = 0; i < keys.length; ++i) {
|
|
18458
|
+
if (typeof object.media[keys[i]] !== "object")
|
|
18459
|
+
throw TypeError(".ContentfulMediaWrapperCreated.media: object expected");
|
|
18460
|
+
message.media[keys[i]] = $root.contentful.IdReference.fromObject(object.media[keys[i]]);
|
|
18461
|
+
}
|
|
18462
|
+
}
|
|
18463
|
+
if (object.caption) {
|
|
18464
|
+
if (typeof object.caption !== "object")
|
|
18465
|
+
throw TypeError(".ContentfulMediaWrapperCreated.caption: object expected");
|
|
18466
|
+
message.caption = {};
|
|
18467
|
+
for (var keys = Object.keys(object.caption), i = 0; i < keys.length; ++i) {
|
|
18468
|
+
if (typeof object.caption[keys[i]] !== "object")
|
|
18469
|
+
throw TypeError(".ContentfulMediaWrapperCreated.caption: object expected");
|
|
18470
|
+
message.caption[keys[i]] = $root.contentful.IdReference.fromObject(object.caption[keys[i]]);
|
|
18471
|
+
}
|
|
18472
|
+
}
|
|
18473
|
+
if (object.createdAt != null)
|
|
18474
|
+
if ($util.Long)
|
|
18475
|
+
(message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
|
|
18476
|
+
else if (typeof object.createdAt === "string")
|
|
18477
|
+
message.createdAt = parseInt(object.createdAt, 10);
|
|
18478
|
+
else if (typeof object.createdAt === "number")
|
|
18479
|
+
message.createdAt = object.createdAt;
|
|
18480
|
+
else if (typeof object.createdAt === "object")
|
|
18481
|
+
message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
|
|
18482
|
+
return message;
|
|
18483
|
+
};
|
|
18484
|
+
|
|
18485
|
+
/**
|
|
18486
|
+
* Creates a plain object from a ContentfulMediaWrapperCreated message. Also converts values to other types if specified.
|
|
18487
|
+
* @function toObject
|
|
18488
|
+
* @memberof ContentfulMediaWrapperCreated
|
|
18489
|
+
* @static
|
|
18490
|
+
* @param {ContentfulMediaWrapperCreated} message ContentfulMediaWrapperCreated
|
|
18491
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
18492
|
+
* @returns {Object.<string,*>} Plain object
|
|
18493
|
+
*/
|
|
18494
|
+
ContentfulMediaWrapperCreated.toObject = function toObject(message, options) {
|
|
18495
|
+
if (!options)
|
|
18496
|
+
options = {};
|
|
18497
|
+
var object = {};
|
|
18498
|
+
if (options.objects || options.defaults) {
|
|
18499
|
+
object.media = {};
|
|
18500
|
+
object.caption = {};
|
|
18501
|
+
}
|
|
18502
|
+
if (options.defaults) {
|
|
18503
|
+
object.slug = "";
|
|
18504
|
+
if ($util.Long) {
|
|
18505
|
+
var long = new $util.Long(0, 0, true);
|
|
18506
|
+
object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
18507
|
+
} else
|
|
18508
|
+
object.createdAt = options.longs === String ? "0" : 0;
|
|
18509
|
+
}
|
|
18510
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
18511
|
+
object.slug = message.slug;
|
|
18512
|
+
var keys2;
|
|
18513
|
+
if (message.media && (keys2 = Object.keys(message.media)).length) {
|
|
18514
|
+
object.media = {};
|
|
18515
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
18516
|
+
object.media[keys2[j]] = $root.contentful.IdReference.toObject(message.media[keys2[j]], options);
|
|
18517
|
+
}
|
|
18518
|
+
if (message.caption && (keys2 = Object.keys(message.caption)).length) {
|
|
18519
|
+
object.caption = {};
|
|
18520
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
18521
|
+
object.caption[keys2[j]] = $root.contentful.IdReference.toObject(message.caption[keys2[j]], options);
|
|
18522
|
+
}
|
|
18523
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
18524
|
+
if (typeof message.createdAt === "number")
|
|
18525
|
+
object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
|
|
18526
|
+
else
|
|
18527
|
+
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;
|
|
18528
|
+
return object;
|
|
18529
|
+
};
|
|
18530
|
+
|
|
18531
|
+
/**
|
|
18532
|
+
* Converts this ContentfulMediaWrapperCreated to JSON.
|
|
18533
|
+
* @function toJSON
|
|
18534
|
+
* @memberof ContentfulMediaWrapperCreated
|
|
18535
|
+
* @instance
|
|
18536
|
+
* @returns {Object.<string,*>} JSON object
|
|
18537
|
+
*/
|
|
18538
|
+
ContentfulMediaWrapperCreated.prototype.toJSON = function toJSON() {
|
|
18539
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
18540
|
+
};
|
|
18541
|
+
|
|
18542
|
+
return ContentfulMediaWrapperCreated;
|
|
18543
|
+
})();
|
|
18544
|
+
|
|
18545
|
+
$root.ContentfulMediaWrapperUpdated = (function() {
|
|
18546
|
+
|
|
18547
|
+
/**
|
|
18548
|
+
* Properties of a ContentfulMediaWrapperUpdated.
|
|
18549
|
+
* @exports IContentfulMediaWrapperUpdated
|
|
18550
|
+
* @interface IContentfulMediaWrapperUpdated
|
|
18551
|
+
* @property {string|null} [slug] ContentfulMediaWrapperUpdated slug
|
|
18552
|
+
* @property {Object.<string,contentful.IIdReference>|null} [media] ContentfulMediaWrapperUpdated media
|
|
18553
|
+
* @property {Object.<string,contentful.IIdReference>|null} [caption] ContentfulMediaWrapperUpdated caption
|
|
18554
|
+
* @property {number|Long|null} [updatedAt] ContentfulMediaWrapperUpdated updatedAt
|
|
18555
|
+
*/
|
|
18556
|
+
|
|
18557
|
+
/**
|
|
18558
|
+
* Constructs a new ContentfulMediaWrapperUpdated.
|
|
18559
|
+
* @exports ContentfulMediaWrapperUpdated
|
|
18560
|
+
* @classdesc Represents a ContentfulMediaWrapperUpdated.
|
|
18561
|
+
* @implements IContentfulMediaWrapperUpdated
|
|
18562
|
+
* @constructor
|
|
18563
|
+
* @param {IContentfulMediaWrapperUpdated=} [properties] Properties to set
|
|
18564
|
+
*/
|
|
18565
|
+
function ContentfulMediaWrapperUpdated(properties) {
|
|
18566
|
+
this.media = {};
|
|
18567
|
+
this.caption = {};
|
|
18568
|
+
if (properties)
|
|
18569
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
18570
|
+
if (properties[keys[i]] != null)
|
|
18571
|
+
this[keys[i]] = properties[keys[i]];
|
|
18572
|
+
}
|
|
18573
|
+
|
|
18574
|
+
/**
|
|
18575
|
+
* ContentfulMediaWrapperUpdated slug.
|
|
18576
|
+
* @member {string} slug
|
|
18577
|
+
* @memberof ContentfulMediaWrapperUpdated
|
|
18578
|
+
* @instance
|
|
18579
|
+
*/
|
|
18580
|
+
ContentfulMediaWrapperUpdated.prototype.slug = "";
|
|
18581
|
+
|
|
18582
|
+
/**
|
|
18583
|
+
* ContentfulMediaWrapperUpdated media.
|
|
18584
|
+
* @member {Object.<string,contentful.IIdReference>} media
|
|
18585
|
+
* @memberof ContentfulMediaWrapperUpdated
|
|
18586
|
+
* @instance
|
|
18587
|
+
*/
|
|
18588
|
+
ContentfulMediaWrapperUpdated.prototype.media = $util.emptyObject;
|
|
18589
|
+
|
|
18590
|
+
/**
|
|
18591
|
+
* ContentfulMediaWrapperUpdated caption.
|
|
18592
|
+
* @member {Object.<string,contentful.IIdReference>} caption
|
|
18593
|
+
* @memberof ContentfulMediaWrapperUpdated
|
|
18594
|
+
* @instance
|
|
18595
|
+
*/
|
|
18596
|
+
ContentfulMediaWrapperUpdated.prototype.caption = $util.emptyObject;
|
|
18597
|
+
|
|
18598
|
+
/**
|
|
18599
|
+
* ContentfulMediaWrapperUpdated updatedAt.
|
|
18600
|
+
* @member {number|Long} updatedAt
|
|
18601
|
+
* @memberof ContentfulMediaWrapperUpdated
|
|
18602
|
+
* @instance
|
|
18603
|
+
*/
|
|
18604
|
+
ContentfulMediaWrapperUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
18605
|
+
|
|
18606
|
+
/**
|
|
18607
|
+
* Creates a new ContentfulMediaWrapperUpdated instance using the specified properties.
|
|
18608
|
+
* @function create
|
|
18609
|
+
* @memberof ContentfulMediaWrapperUpdated
|
|
18610
|
+
* @static
|
|
18611
|
+
* @param {IContentfulMediaWrapperUpdated=} [properties] Properties to set
|
|
18612
|
+
* @returns {ContentfulMediaWrapperUpdated} ContentfulMediaWrapperUpdated instance
|
|
18613
|
+
*/
|
|
18614
|
+
ContentfulMediaWrapperUpdated.create = function create(properties) {
|
|
18615
|
+
return new ContentfulMediaWrapperUpdated(properties);
|
|
18616
|
+
};
|
|
18617
|
+
|
|
18618
|
+
/**
|
|
18619
|
+
* Encodes the specified ContentfulMediaWrapperUpdated message. Does not implicitly {@link ContentfulMediaWrapperUpdated.verify|verify} messages.
|
|
18620
|
+
* @function encode
|
|
18621
|
+
* @memberof ContentfulMediaWrapperUpdated
|
|
18622
|
+
* @static
|
|
18623
|
+
* @param {IContentfulMediaWrapperUpdated} message ContentfulMediaWrapperUpdated message or plain object to encode
|
|
18624
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
18625
|
+
* @returns {$protobuf.Writer} Writer
|
|
18626
|
+
*/
|
|
18627
|
+
ContentfulMediaWrapperUpdated.encode = function encode(message, writer) {
|
|
18628
|
+
if (!writer)
|
|
18629
|
+
writer = $Writer.create();
|
|
18630
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
18631
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
18632
|
+
if (message.media != null && message.hasOwnProperty("media"))
|
|
18633
|
+
for (var keys = Object.keys(message.media), i = 0; i < keys.length; ++i) {
|
|
18634
|
+
writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
18635
|
+
$root.contentful.IdReference.encode(message.media[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
18636
|
+
}
|
|
18637
|
+
if (message.caption != null && message.hasOwnProperty("caption"))
|
|
18638
|
+
for (var keys = Object.keys(message.caption), i = 0; i < keys.length; ++i) {
|
|
18639
|
+
writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
18640
|
+
$root.contentful.IdReference.encode(message.caption[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
18641
|
+
}
|
|
18642
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
18643
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.updatedAt);
|
|
18644
|
+
return writer;
|
|
18645
|
+
};
|
|
18646
|
+
|
|
18647
|
+
/**
|
|
18648
|
+
* Encodes the specified ContentfulMediaWrapperUpdated message, length delimited. Does not implicitly {@link ContentfulMediaWrapperUpdated.verify|verify} messages.
|
|
18649
|
+
* @function encodeDelimited
|
|
18650
|
+
* @memberof ContentfulMediaWrapperUpdated
|
|
18651
|
+
* @static
|
|
18652
|
+
* @param {IContentfulMediaWrapperUpdated} message ContentfulMediaWrapperUpdated message or plain object to encode
|
|
18653
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
18654
|
+
* @returns {$protobuf.Writer} Writer
|
|
18655
|
+
*/
|
|
18656
|
+
ContentfulMediaWrapperUpdated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
18657
|
+
return this.encode(message, writer).ldelim();
|
|
18658
|
+
};
|
|
18659
|
+
|
|
18660
|
+
/**
|
|
18661
|
+
* Decodes a ContentfulMediaWrapperUpdated message from the specified reader or buffer.
|
|
18662
|
+
* @function decode
|
|
18663
|
+
* @memberof ContentfulMediaWrapperUpdated
|
|
18664
|
+
* @static
|
|
18665
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
18666
|
+
* @param {number} [length] Message length if known beforehand
|
|
18667
|
+
* @returns {ContentfulMediaWrapperUpdated} ContentfulMediaWrapperUpdated
|
|
18668
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
18669
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
18670
|
+
*/
|
|
18671
|
+
ContentfulMediaWrapperUpdated.decode = function decode(reader, length) {
|
|
18672
|
+
if (!(reader instanceof $Reader))
|
|
18673
|
+
reader = $Reader.create(reader);
|
|
18674
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulMediaWrapperUpdated(), key;
|
|
18675
|
+
while (reader.pos < end) {
|
|
18676
|
+
var tag = reader.uint32();
|
|
18677
|
+
switch (tag >>> 3) {
|
|
18678
|
+
case 1:
|
|
18679
|
+
message.slug = reader.string();
|
|
18680
|
+
break;
|
|
18681
|
+
case 2:
|
|
18682
|
+
reader.skip().pos++;
|
|
18683
|
+
if (message.media === $util.emptyObject)
|
|
18684
|
+
message.media = {};
|
|
18685
|
+
key = reader.string();
|
|
18686
|
+
reader.pos++;
|
|
18687
|
+
message.media[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
|
|
18688
|
+
break;
|
|
18689
|
+
case 3:
|
|
18690
|
+
reader.skip().pos++;
|
|
18691
|
+
if (message.caption === $util.emptyObject)
|
|
18692
|
+
message.caption = {};
|
|
18693
|
+
key = reader.string();
|
|
18694
|
+
reader.pos++;
|
|
18695
|
+
message.caption[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
|
|
18696
|
+
break;
|
|
18697
|
+
case 4:
|
|
18698
|
+
message.updatedAt = reader.uint64();
|
|
18699
|
+
break;
|
|
18700
|
+
default:
|
|
18701
|
+
reader.skipType(tag & 7);
|
|
18702
|
+
break;
|
|
18703
|
+
}
|
|
18704
|
+
}
|
|
18705
|
+
return message;
|
|
18706
|
+
};
|
|
18707
|
+
|
|
18708
|
+
/**
|
|
18709
|
+
* Decodes a ContentfulMediaWrapperUpdated message from the specified reader or buffer, length delimited.
|
|
18710
|
+
* @function decodeDelimited
|
|
18711
|
+
* @memberof ContentfulMediaWrapperUpdated
|
|
18712
|
+
* @static
|
|
18713
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
18714
|
+
* @returns {ContentfulMediaWrapperUpdated} ContentfulMediaWrapperUpdated
|
|
18715
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
18716
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
18717
|
+
*/
|
|
18718
|
+
ContentfulMediaWrapperUpdated.decodeDelimited = function decodeDelimited(reader) {
|
|
18719
|
+
if (!(reader instanceof $Reader))
|
|
18720
|
+
reader = new $Reader(reader);
|
|
18721
|
+
return this.decode(reader, reader.uint32());
|
|
18722
|
+
};
|
|
18723
|
+
|
|
18724
|
+
/**
|
|
18725
|
+
* Verifies a ContentfulMediaWrapperUpdated message.
|
|
18726
|
+
* @function verify
|
|
18727
|
+
* @memberof ContentfulMediaWrapperUpdated
|
|
18728
|
+
* @static
|
|
18729
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
18730
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
18731
|
+
*/
|
|
18732
|
+
ContentfulMediaWrapperUpdated.verify = function verify(message) {
|
|
18733
|
+
if (typeof message !== "object" || message === null)
|
|
18734
|
+
return "object expected";
|
|
18735
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
18736
|
+
if (!$util.isString(message.slug))
|
|
18737
|
+
return "slug: string expected";
|
|
18738
|
+
if (message.media != null && message.hasOwnProperty("media")) {
|
|
18739
|
+
if (!$util.isObject(message.media))
|
|
18740
|
+
return "media: object expected";
|
|
18741
|
+
var key = Object.keys(message.media);
|
|
18742
|
+
for (var i = 0; i < key.length; ++i) {
|
|
18743
|
+
var error = $root.contentful.IdReference.verify(message.media[key[i]]);
|
|
18744
|
+
if (error)
|
|
18745
|
+
return "media." + error;
|
|
18746
|
+
}
|
|
18747
|
+
}
|
|
18748
|
+
if (message.caption != null && message.hasOwnProperty("caption")) {
|
|
18749
|
+
if (!$util.isObject(message.caption))
|
|
18750
|
+
return "caption: object expected";
|
|
18751
|
+
var key = Object.keys(message.caption);
|
|
18752
|
+
for (var i = 0; i < key.length; ++i) {
|
|
18753
|
+
var error = $root.contentful.IdReference.verify(message.caption[key[i]]);
|
|
18754
|
+
if (error)
|
|
18755
|
+
return "caption." + error;
|
|
18756
|
+
}
|
|
18757
|
+
}
|
|
18758
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
18759
|
+
if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
|
|
18760
|
+
return "updatedAt: integer|Long expected";
|
|
18761
|
+
return null;
|
|
18762
|
+
};
|
|
18763
|
+
|
|
18764
|
+
/**
|
|
18765
|
+
* Creates a ContentfulMediaWrapperUpdated message from a plain object. Also converts values to their respective internal types.
|
|
18766
|
+
* @function fromObject
|
|
18767
|
+
* @memberof ContentfulMediaWrapperUpdated
|
|
18768
|
+
* @static
|
|
18769
|
+
* @param {Object.<string,*>} object Plain object
|
|
18770
|
+
* @returns {ContentfulMediaWrapperUpdated} ContentfulMediaWrapperUpdated
|
|
18771
|
+
*/
|
|
18772
|
+
ContentfulMediaWrapperUpdated.fromObject = function fromObject(object) {
|
|
18773
|
+
if (object instanceof $root.ContentfulMediaWrapperUpdated)
|
|
18774
|
+
return object;
|
|
18775
|
+
var message = new $root.ContentfulMediaWrapperUpdated();
|
|
18776
|
+
if (object.slug != null)
|
|
18777
|
+
message.slug = String(object.slug);
|
|
18778
|
+
if (object.media) {
|
|
18779
|
+
if (typeof object.media !== "object")
|
|
18780
|
+
throw TypeError(".ContentfulMediaWrapperUpdated.media: object expected");
|
|
18781
|
+
message.media = {};
|
|
18782
|
+
for (var keys = Object.keys(object.media), i = 0; i < keys.length; ++i) {
|
|
18783
|
+
if (typeof object.media[keys[i]] !== "object")
|
|
18784
|
+
throw TypeError(".ContentfulMediaWrapperUpdated.media: object expected");
|
|
18785
|
+
message.media[keys[i]] = $root.contentful.IdReference.fromObject(object.media[keys[i]]);
|
|
18786
|
+
}
|
|
18787
|
+
}
|
|
18788
|
+
if (object.caption) {
|
|
18789
|
+
if (typeof object.caption !== "object")
|
|
18790
|
+
throw TypeError(".ContentfulMediaWrapperUpdated.caption: object expected");
|
|
18791
|
+
message.caption = {};
|
|
18792
|
+
for (var keys = Object.keys(object.caption), i = 0; i < keys.length; ++i) {
|
|
18793
|
+
if (typeof object.caption[keys[i]] !== "object")
|
|
18794
|
+
throw TypeError(".ContentfulMediaWrapperUpdated.caption: object expected");
|
|
18795
|
+
message.caption[keys[i]] = $root.contentful.IdReference.fromObject(object.caption[keys[i]]);
|
|
18796
|
+
}
|
|
18797
|
+
}
|
|
18798
|
+
if (object.updatedAt != null)
|
|
18799
|
+
if ($util.Long)
|
|
18800
|
+
(message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
|
|
18801
|
+
else if (typeof object.updatedAt === "string")
|
|
18802
|
+
message.updatedAt = parseInt(object.updatedAt, 10);
|
|
18803
|
+
else if (typeof object.updatedAt === "number")
|
|
18804
|
+
message.updatedAt = object.updatedAt;
|
|
18805
|
+
else if (typeof object.updatedAt === "object")
|
|
18806
|
+
message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
|
|
18807
|
+
return message;
|
|
18808
|
+
};
|
|
18809
|
+
|
|
18810
|
+
/**
|
|
18811
|
+
* Creates a plain object from a ContentfulMediaWrapperUpdated message. Also converts values to other types if specified.
|
|
18812
|
+
* @function toObject
|
|
18813
|
+
* @memberof ContentfulMediaWrapperUpdated
|
|
18814
|
+
* @static
|
|
18815
|
+
* @param {ContentfulMediaWrapperUpdated} message ContentfulMediaWrapperUpdated
|
|
18816
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
18817
|
+
* @returns {Object.<string,*>} Plain object
|
|
18818
|
+
*/
|
|
18819
|
+
ContentfulMediaWrapperUpdated.toObject = function toObject(message, options) {
|
|
18820
|
+
if (!options)
|
|
18821
|
+
options = {};
|
|
18822
|
+
var object = {};
|
|
18823
|
+
if (options.objects || options.defaults) {
|
|
18824
|
+
object.media = {};
|
|
18825
|
+
object.caption = {};
|
|
18826
|
+
}
|
|
18827
|
+
if (options.defaults) {
|
|
18828
|
+
object.slug = "";
|
|
18829
|
+
if ($util.Long) {
|
|
18830
|
+
var long = new $util.Long(0, 0, true);
|
|
18831
|
+
object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
18832
|
+
} else
|
|
18833
|
+
object.updatedAt = options.longs === String ? "0" : 0;
|
|
18834
|
+
}
|
|
18835
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
18836
|
+
object.slug = message.slug;
|
|
18837
|
+
var keys2;
|
|
18838
|
+
if (message.media && (keys2 = Object.keys(message.media)).length) {
|
|
18839
|
+
object.media = {};
|
|
18840
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
18841
|
+
object.media[keys2[j]] = $root.contentful.IdReference.toObject(message.media[keys2[j]], options);
|
|
18842
|
+
}
|
|
18843
|
+
if (message.caption && (keys2 = Object.keys(message.caption)).length) {
|
|
18844
|
+
object.caption = {};
|
|
18845
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
18846
|
+
object.caption[keys2[j]] = $root.contentful.IdReference.toObject(message.caption[keys2[j]], options);
|
|
18847
|
+
}
|
|
18848
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
18849
|
+
if (typeof message.updatedAt === "number")
|
|
18850
|
+
object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
|
|
18851
|
+
else
|
|
18852
|
+
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;
|
|
18853
|
+
return object;
|
|
18854
|
+
};
|
|
18855
|
+
|
|
18856
|
+
/**
|
|
18857
|
+
* Converts this ContentfulMediaWrapperUpdated to JSON.
|
|
18858
|
+
* @function toJSON
|
|
18859
|
+
* @memberof ContentfulMediaWrapperUpdated
|
|
18860
|
+
* @instance
|
|
18861
|
+
* @returns {Object.<string,*>} JSON object
|
|
18862
|
+
*/
|
|
18863
|
+
ContentfulMediaWrapperUpdated.prototype.toJSON = function toJSON() {
|
|
18864
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
18865
|
+
};
|
|
18866
|
+
|
|
18867
|
+
return ContentfulMediaWrapperUpdated;
|
|
18868
|
+
})();
|
|
18869
|
+
|
|
18870
|
+
$root.ContentfulMediaWrapperDeleted = (function() {
|
|
18871
|
+
|
|
18872
|
+
/**
|
|
18873
|
+
* Properties of a ContentfulMediaWrapperDeleted.
|
|
18874
|
+
* @exports IContentfulMediaWrapperDeleted
|
|
18875
|
+
* @interface IContentfulMediaWrapperDeleted
|
|
18876
|
+
* @property {string|null} [slug] ContentfulMediaWrapperDeleted slug
|
|
18877
|
+
* @property {number|Long|null} [deletedAt] ContentfulMediaWrapperDeleted deletedAt
|
|
18878
|
+
*/
|
|
18879
|
+
|
|
18880
|
+
/**
|
|
18881
|
+
* Constructs a new ContentfulMediaWrapperDeleted.
|
|
18882
|
+
* @exports ContentfulMediaWrapperDeleted
|
|
18883
|
+
* @classdesc Represents a ContentfulMediaWrapperDeleted.
|
|
18884
|
+
* @implements IContentfulMediaWrapperDeleted
|
|
18885
|
+
* @constructor
|
|
18886
|
+
* @param {IContentfulMediaWrapperDeleted=} [properties] Properties to set
|
|
18887
|
+
*/
|
|
18888
|
+
function ContentfulMediaWrapperDeleted(properties) {
|
|
18889
|
+
if (properties)
|
|
18890
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
18891
|
+
if (properties[keys[i]] != null)
|
|
18892
|
+
this[keys[i]] = properties[keys[i]];
|
|
18893
|
+
}
|
|
18894
|
+
|
|
18895
|
+
/**
|
|
18896
|
+
* ContentfulMediaWrapperDeleted slug.
|
|
18897
|
+
* @member {string} slug
|
|
18898
|
+
* @memberof ContentfulMediaWrapperDeleted
|
|
18899
|
+
* @instance
|
|
18900
|
+
*/
|
|
18901
|
+
ContentfulMediaWrapperDeleted.prototype.slug = "";
|
|
18902
|
+
|
|
18903
|
+
/**
|
|
18904
|
+
* ContentfulMediaWrapperDeleted deletedAt.
|
|
18905
|
+
* @member {number|Long} deletedAt
|
|
18906
|
+
* @memberof ContentfulMediaWrapperDeleted
|
|
18907
|
+
* @instance
|
|
18908
|
+
*/
|
|
18909
|
+
ContentfulMediaWrapperDeleted.prototype.deletedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
18910
|
+
|
|
18911
|
+
/**
|
|
18912
|
+
* Creates a new ContentfulMediaWrapperDeleted instance using the specified properties.
|
|
18913
|
+
* @function create
|
|
18914
|
+
* @memberof ContentfulMediaWrapperDeleted
|
|
18915
|
+
* @static
|
|
18916
|
+
* @param {IContentfulMediaWrapperDeleted=} [properties] Properties to set
|
|
18917
|
+
* @returns {ContentfulMediaWrapperDeleted} ContentfulMediaWrapperDeleted instance
|
|
18918
|
+
*/
|
|
18919
|
+
ContentfulMediaWrapperDeleted.create = function create(properties) {
|
|
18920
|
+
return new ContentfulMediaWrapperDeleted(properties);
|
|
18921
|
+
};
|
|
18922
|
+
|
|
18923
|
+
/**
|
|
18924
|
+
* Encodes the specified ContentfulMediaWrapperDeleted message. Does not implicitly {@link ContentfulMediaWrapperDeleted.verify|verify} messages.
|
|
18925
|
+
* @function encode
|
|
18926
|
+
* @memberof ContentfulMediaWrapperDeleted
|
|
18927
|
+
* @static
|
|
18928
|
+
* @param {IContentfulMediaWrapperDeleted} message ContentfulMediaWrapperDeleted message or plain object to encode
|
|
18929
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
18930
|
+
* @returns {$protobuf.Writer} Writer
|
|
18931
|
+
*/
|
|
18932
|
+
ContentfulMediaWrapperDeleted.encode = function encode(message, writer) {
|
|
18933
|
+
if (!writer)
|
|
18934
|
+
writer = $Writer.create();
|
|
18935
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
18936
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
18937
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
18938
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.deletedAt);
|
|
18939
|
+
return writer;
|
|
18940
|
+
};
|
|
18941
|
+
|
|
18942
|
+
/**
|
|
18943
|
+
* Encodes the specified ContentfulMediaWrapperDeleted message, length delimited. Does not implicitly {@link ContentfulMediaWrapperDeleted.verify|verify} messages.
|
|
18944
|
+
* @function encodeDelimited
|
|
18945
|
+
* @memberof ContentfulMediaWrapperDeleted
|
|
18946
|
+
* @static
|
|
18947
|
+
* @param {IContentfulMediaWrapperDeleted} message ContentfulMediaWrapperDeleted message or plain object to encode
|
|
18948
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
18949
|
+
* @returns {$protobuf.Writer} Writer
|
|
18950
|
+
*/
|
|
18951
|
+
ContentfulMediaWrapperDeleted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
18952
|
+
return this.encode(message, writer).ldelim();
|
|
18953
|
+
};
|
|
18954
|
+
|
|
18955
|
+
/**
|
|
18956
|
+
* Decodes a ContentfulMediaWrapperDeleted message from the specified reader or buffer.
|
|
18957
|
+
* @function decode
|
|
18958
|
+
* @memberof ContentfulMediaWrapperDeleted
|
|
18959
|
+
* @static
|
|
18960
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
18961
|
+
* @param {number} [length] Message length if known beforehand
|
|
18962
|
+
* @returns {ContentfulMediaWrapperDeleted} ContentfulMediaWrapperDeleted
|
|
18963
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
18964
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
18965
|
+
*/
|
|
18966
|
+
ContentfulMediaWrapperDeleted.decode = function decode(reader, length) {
|
|
18967
|
+
if (!(reader instanceof $Reader))
|
|
18968
|
+
reader = $Reader.create(reader);
|
|
18969
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulMediaWrapperDeleted();
|
|
18970
|
+
while (reader.pos < end) {
|
|
18971
|
+
var tag = reader.uint32();
|
|
18972
|
+
switch (tag >>> 3) {
|
|
18973
|
+
case 1:
|
|
18974
|
+
message.slug = reader.string();
|
|
18975
|
+
break;
|
|
18976
|
+
case 2:
|
|
18977
|
+
message.deletedAt = reader.uint64();
|
|
18978
|
+
break;
|
|
18979
|
+
default:
|
|
18980
|
+
reader.skipType(tag & 7);
|
|
18981
|
+
break;
|
|
18982
|
+
}
|
|
18983
|
+
}
|
|
18984
|
+
return message;
|
|
18985
|
+
};
|
|
18986
|
+
|
|
18987
|
+
/**
|
|
18988
|
+
* Decodes a ContentfulMediaWrapperDeleted message from the specified reader or buffer, length delimited.
|
|
18989
|
+
* @function decodeDelimited
|
|
18990
|
+
* @memberof ContentfulMediaWrapperDeleted
|
|
18991
|
+
* @static
|
|
18992
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
18993
|
+
* @returns {ContentfulMediaWrapperDeleted} ContentfulMediaWrapperDeleted
|
|
18994
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
18995
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
18996
|
+
*/
|
|
18997
|
+
ContentfulMediaWrapperDeleted.decodeDelimited = function decodeDelimited(reader) {
|
|
18998
|
+
if (!(reader instanceof $Reader))
|
|
18999
|
+
reader = new $Reader(reader);
|
|
19000
|
+
return this.decode(reader, reader.uint32());
|
|
19001
|
+
};
|
|
19002
|
+
|
|
19003
|
+
/**
|
|
19004
|
+
* Verifies a ContentfulMediaWrapperDeleted message.
|
|
19005
|
+
* @function verify
|
|
19006
|
+
* @memberof ContentfulMediaWrapperDeleted
|
|
19007
|
+
* @static
|
|
19008
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
19009
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
19010
|
+
*/
|
|
19011
|
+
ContentfulMediaWrapperDeleted.verify = function verify(message) {
|
|
19012
|
+
if (typeof message !== "object" || message === null)
|
|
19013
|
+
return "object expected";
|
|
19014
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
19015
|
+
if (!$util.isString(message.slug))
|
|
19016
|
+
return "slug: string expected";
|
|
19017
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
19018
|
+
if (!$util.isInteger(message.deletedAt) && !(message.deletedAt && $util.isInteger(message.deletedAt.low) && $util.isInteger(message.deletedAt.high)))
|
|
19019
|
+
return "deletedAt: integer|Long expected";
|
|
19020
|
+
return null;
|
|
19021
|
+
};
|
|
19022
|
+
|
|
19023
|
+
/**
|
|
19024
|
+
* Creates a ContentfulMediaWrapperDeleted message from a plain object. Also converts values to their respective internal types.
|
|
19025
|
+
* @function fromObject
|
|
19026
|
+
* @memberof ContentfulMediaWrapperDeleted
|
|
19027
|
+
* @static
|
|
19028
|
+
* @param {Object.<string,*>} object Plain object
|
|
19029
|
+
* @returns {ContentfulMediaWrapperDeleted} ContentfulMediaWrapperDeleted
|
|
19030
|
+
*/
|
|
19031
|
+
ContentfulMediaWrapperDeleted.fromObject = function fromObject(object) {
|
|
19032
|
+
if (object instanceof $root.ContentfulMediaWrapperDeleted)
|
|
19033
|
+
return object;
|
|
19034
|
+
var message = new $root.ContentfulMediaWrapperDeleted();
|
|
19035
|
+
if (object.slug != null)
|
|
19036
|
+
message.slug = String(object.slug);
|
|
19037
|
+
if (object.deletedAt != null)
|
|
19038
|
+
if ($util.Long)
|
|
19039
|
+
(message.deletedAt = $util.Long.fromValue(object.deletedAt)).unsigned = true;
|
|
19040
|
+
else if (typeof object.deletedAt === "string")
|
|
19041
|
+
message.deletedAt = parseInt(object.deletedAt, 10);
|
|
19042
|
+
else if (typeof object.deletedAt === "number")
|
|
19043
|
+
message.deletedAt = object.deletedAt;
|
|
19044
|
+
else if (typeof object.deletedAt === "object")
|
|
19045
|
+
message.deletedAt = new $util.LongBits(object.deletedAt.low >>> 0, object.deletedAt.high >>> 0).toNumber(true);
|
|
19046
|
+
return message;
|
|
19047
|
+
};
|
|
19048
|
+
|
|
19049
|
+
/**
|
|
19050
|
+
* Creates a plain object from a ContentfulMediaWrapperDeleted message. Also converts values to other types if specified.
|
|
19051
|
+
* @function toObject
|
|
19052
|
+
* @memberof ContentfulMediaWrapperDeleted
|
|
19053
|
+
* @static
|
|
19054
|
+
* @param {ContentfulMediaWrapperDeleted} message ContentfulMediaWrapperDeleted
|
|
19055
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
19056
|
+
* @returns {Object.<string,*>} Plain object
|
|
19057
|
+
*/
|
|
19058
|
+
ContentfulMediaWrapperDeleted.toObject = function toObject(message, options) {
|
|
19059
|
+
if (!options)
|
|
19060
|
+
options = {};
|
|
19061
|
+
var object = {};
|
|
19062
|
+
if (options.defaults) {
|
|
19063
|
+
object.slug = "";
|
|
19064
|
+
if ($util.Long) {
|
|
19065
|
+
var long = new $util.Long(0, 0, true);
|
|
19066
|
+
object.deletedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
19067
|
+
} else
|
|
19068
|
+
object.deletedAt = options.longs === String ? "0" : 0;
|
|
19069
|
+
}
|
|
19070
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
19071
|
+
object.slug = message.slug;
|
|
19072
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
19073
|
+
if (typeof message.deletedAt === "number")
|
|
19074
|
+
object.deletedAt = options.longs === String ? String(message.deletedAt) : message.deletedAt;
|
|
19075
|
+
else
|
|
19076
|
+
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;
|
|
19077
|
+
return object;
|
|
19078
|
+
};
|
|
19079
|
+
|
|
19080
|
+
/**
|
|
19081
|
+
* Converts this ContentfulMediaWrapperDeleted to JSON.
|
|
19082
|
+
* @function toJSON
|
|
19083
|
+
* @memberof ContentfulMediaWrapperDeleted
|
|
19084
|
+
* @instance
|
|
19085
|
+
* @returns {Object.<string,*>} JSON object
|
|
19086
|
+
*/
|
|
19087
|
+
ContentfulMediaWrapperDeleted.prototype.toJSON = function toJSON() {
|
|
19088
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
19089
|
+
};
|
|
19090
|
+
|
|
19091
|
+
return ContentfulMediaWrapperDeleted;
|
|
19092
|
+
})();
|
|
19093
|
+
|
|
18220
19094
|
$root.ContentfulTopicCreated = (function() {
|
|
18221
19095
|
|
|
18222
19096
|
/**
|
|
@@ -29764,7 +30638,7 @@ $root.ContentfulSleepcastCreated = (function() {
|
|
|
29764
30638
|
* @property {contentful.ISlugReference|null} [recipe] ContentfulSleepcastCreated recipe
|
|
29765
30639
|
* @property {Object.<string,contentful.IIdReference>|null} [tileBackgroundMedia] ContentfulSleepcastCreated tileBackgroundMedia
|
|
29766
30640
|
* @property {Object.<string,contentful.IIdReference>|null} [playerBackgroundMedia] ContentfulSleepcastCreated playerBackgroundMedia
|
|
29767
|
-
* @property {boolean
|
|
30641
|
+
* @property {Object.<string,boolean>|null} [useVariantPresets] ContentfulSleepcastCreated useVariantPresets
|
|
29768
30642
|
* @property {boolean|null} [isEnabled] ContentfulSleepcastCreated isEnabled
|
|
29769
30643
|
* @property {Object.<string,number>|null} [duration] ContentfulSleepcastCreated duration
|
|
29770
30644
|
* @property {Object.<string,string>|null} [narratorGender] ContentfulSleepcastCreated narratorGender
|
|
@@ -29789,6 +30663,7 @@ $root.ContentfulSleepcastCreated = (function() {
|
|
|
29789
30663
|
this.description = {};
|
|
29790
30664
|
this.tileBackgroundMedia = {};
|
|
29791
30665
|
this.playerBackgroundMedia = {};
|
|
30666
|
+
this.useVariantPresets = {};
|
|
29792
30667
|
this.duration = {};
|
|
29793
30668
|
this.narratorGender = {};
|
|
29794
30669
|
this.ambientAudioMedia = {};
|
|
@@ -29859,11 +30734,11 @@ $root.ContentfulSleepcastCreated = (function() {
|
|
|
29859
30734
|
|
|
29860
30735
|
/**
|
|
29861
30736
|
* ContentfulSleepcastCreated useVariantPresets.
|
|
29862
|
-
* @member {boolean} useVariantPresets
|
|
30737
|
+
* @member {Object.<string,boolean>} useVariantPresets
|
|
29863
30738
|
* @memberof ContentfulSleepcastCreated
|
|
29864
30739
|
* @instance
|
|
29865
30740
|
*/
|
|
29866
|
-
ContentfulSleepcastCreated.prototype.useVariantPresets =
|
|
30741
|
+
ContentfulSleepcastCreated.prototype.useVariantPresets = $util.emptyObject;
|
|
29867
30742
|
|
|
29868
30743
|
/**
|
|
29869
30744
|
* ContentfulSleepcastCreated isEnabled.
|
|
@@ -29977,7 +30852,8 @@ $root.ContentfulSleepcastCreated = (function() {
|
|
|
29977
30852
|
$root.contentful.IdReference.encode(message.playerBackgroundMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
29978
30853
|
}
|
|
29979
30854
|
if (message.useVariantPresets != null && message.hasOwnProperty("useVariantPresets"))
|
|
29980
|
-
|
|
30855
|
+
for (var keys = Object.keys(message.useVariantPresets), i = 0; i < keys.length; ++i)
|
|
30856
|
+
writer.uint32(/* id 8, wireType 2 =*/66).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 0 =*/16).bool(message.useVariantPresets[keys[i]]).ldelim();
|
|
29981
30857
|
if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
|
|
29982
30858
|
writer.uint32(/* id 9, wireType 0 =*/72).bool(message.isEnabled);
|
|
29983
30859
|
if (message.duration != null && message.hasOwnProperty("duration"))
|
|
@@ -30087,7 +30963,12 @@ $root.ContentfulSleepcastCreated = (function() {
|
|
|
30087
30963
|
message.playerBackgroundMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
|
|
30088
30964
|
break;
|
|
30089
30965
|
case 8:
|
|
30090
|
-
|
|
30966
|
+
reader.skip().pos++;
|
|
30967
|
+
if (message.useVariantPresets === $util.emptyObject)
|
|
30968
|
+
message.useVariantPresets = {};
|
|
30969
|
+
key = reader.string();
|
|
30970
|
+
reader.pos++;
|
|
30971
|
+
message.useVariantPresets[key] = reader.bool();
|
|
30091
30972
|
break;
|
|
30092
30973
|
case 9:
|
|
30093
30974
|
message.isEnabled = reader.bool();
|
|
@@ -30227,9 +31108,14 @@ $root.ContentfulSleepcastCreated = (function() {
|
|
|
30227
31108
|
return "playerBackgroundMedia." + error;
|
|
30228
31109
|
}
|
|
30229
31110
|
}
|
|
30230
|
-
if (message.useVariantPresets != null && message.hasOwnProperty("useVariantPresets"))
|
|
30231
|
-
if (
|
|
30232
|
-
return "useVariantPresets:
|
|
31111
|
+
if (message.useVariantPresets != null && message.hasOwnProperty("useVariantPresets")) {
|
|
31112
|
+
if (!$util.isObject(message.useVariantPresets))
|
|
31113
|
+
return "useVariantPresets: object expected";
|
|
31114
|
+
var key = Object.keys(message.useVariantPresets);
|
|
31115
|
+
for (var i = 0; i < key.length; ++i)
|
|
31116
|
+
if (typeof message.useVariantPresets[key[i]] !== "boolean")
|
|
31117
|
+
return "useVariantPresets: boolean{k:string} expected";
|
|
31118
|
+
}
|
|
30233
31119
|
if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
|
|
30234
31120
|
if (typeof message.isEnabled !== "boolean")
|
|
30235
31121
|
return "isEnabled: boolean expected";
|
|
@@ -30354,8 +31240,13 @@ $root.ContentfulSleepcastCreated = (function() {
|
|
|
30354
31240
|
message.playerBackgroundMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.playerBackgroundMedia[keys[i]]);
|
|
30355
31241
|
}
|
|
30356
31242
|
}
|
|
30357
|
-
if (object.useVariantPresets
|
|
30358
|
-
|
|
31243
|
+
if (object.useVariantPresets) {
|
|
31244
|
+
if (typeof object.useVariantPresets !== "object")
|
|
31245
|
+
throw TypeError(".ContentfulSleepcastCreated.useVariantPresets: object expected");
|
|
31246
|
+
message.useVariantPresets = {};
|
|
31247
|
+
for (var keys = Object.keys(object.useVariantPresets), i = 0; i < keys.length; ++i)
|
|
31248
|
+
message.useVariantPresets[keys[i]] = Boolean(object.useVariantPresets[keys[i]]);
|
|
31249
|
+
}
|
|
30359
31250
|
if (object.isEnabled != null)
|
|
30360
31251
|
message.isEnabled = Boolean(object.isEnabled);
|
|
30361
31252
|
if (object.duration) {
|
|
@@ -30445,6 +31336,7 @@ $root.ContentfulSleepcastCreated = (function() {
|
|
|
30445
31336
|
object.description = {};
|
|
30446
31337
|
object.tileBackgroundMedia = {};
|
|
30447
31338
|
object.playerBackgroundMedia = {};
|
|
31339
|
+
object.useVariantPresets = {};
|
|
30448
31340
|
object.duration = {};
|
|
30449
31341
|
object.narratorGender = {};
|
|
30450
31342
|
object.ambientAudioMedia = {};
|
|
@@ -30454,7 +31346,6 @@ $root.ContentfulSleepcastCreated = (function() {
|
|
|
30454
31346
|
if (options.defaults) {
|
|
30455
31347
|
object.slug = "";
|
|
30456
31348
|
object.recipe = null;
|
|
30457
|
-
object.useVariantPresets = false;
|
|
30458
31349
|
object.isEnabled = false;
|
|
30459
31350
|
if ($util.Long) {
|
|
30460
31351
|
var long = new $util.Long(0, 0, true);
|
|
@@ -30492,8 +31383,11 @@ $root.ContentfulSleepcastCreated = (function() {
|
|
|
30492
31383
|
for (var j = 0; j < keys2.length; ++j)
|
|
30493
31384
|
object.playerBackgroundMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.playerBackgroundMedia[keys2[j]], options);
|
|
30494
31385
|
}
|
|
30495
|
-
if (message.useVariantPresets
|
|
30496
|
-
object.useVariantPresets =
|
|
31386
|
+
if (message.useVariantPresets && (keys2 = Object.keys(message.useVariantPresets)).length) {
|
|
31387
|
+
object.useVariantPresets = {};
|
|
31388
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
31389
|
+
object.useVariantPresets[keys2[j]] = message.useVariantPresets[keys2[j]];
|
|
31390
|
+
}
|
|
30497
31391
|
if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
|
|
30498
31392
|
object.isEnabled = message.isEnabled;
|
|
30499
31393
|
if (message.duration && (keys2 = Object.keys(message.duration)).length) {
|
|
@@ -30561,7 +31455,7 @@ $root.ContentfulSleepcastUpdated = (function() {
|
|
|
30561
31455
|
* @property {contentful.ISlugReference|null} [recipe] ContentfulSleepcastUpdated recipe
|
|
30562
31456
|
* @property {Object.<string,contentful.IIdReference>|null} [tileBackgroundMedia] ContentfulSleepcastUpdated tileBackgroundMedia
|
|
30563
31457
|
* @property {Object.<string,contentful.IIdReference>|null} [playerBackgroundMedia] ContentfulSleepcastUpdated playerBackgroundMedia
|
|
30564
|
-
* @property {boolean
|
|
31458
|
+
* @property {Object.<string,boolean>|null} [useVariantPresets] ContentfulSleepcastUpdated useVariantPresets
|
|
30565
31459
|
* @property {boolean|null} [isEnabled] ContentfulSleepcastUpdated isEnabled
|
|
30566
31460
|
* @property {Object.<string,number>|null} [duration] ContentfulSleepcastUpdated duration
|
|
30567
31461
|
* @property {Object.<string,string>|null} [narratorGender] ContentfulSleepcastUpdated narratorGender
|
|
@@ -30586,6 +31480,7 @@ $root.ContentfulSleepcastUpdated = (function() {
|
|
|
30586
31480
|
this.description = {};
|
|
30587
31481
|
this.tileBackgroundMedia = {};
|
|
30588
31482
|
this.playerBackgroundMedia = {};
|
|
31483
|
+
this.useVariantPresets = {};
|
|
30589
31484
|
this.duration = {};
|
|
30590
31485
|
this.narratorGender = {};
|
|
30591
31486
|
this.ambientAudioMedia = {};
|
|
@@ -30656,11 +31551,11 @@ $root.ContentfulSleepcastUpdated = (function() {
|
|
|
30656
31551
|
|
|
30657
31552
|
/**
|
|
30658
31553
|
* ContentfulSleepcastUpdated useVariantPresets.
|
|
30659
|
-
* @member {boolean} useVariantPresets
|
|
31554
|
+
* @member {Object.<string,boolean>} useVariantPresets
|
|
30660
31555
|
* @memberof ContentfulSleepcastUpdated
|
|
30661
31556
|
* @instance
|
|
30662
31557
|
*/
|
|
30663
|
-
ContentfulSleepcastUpdated.prototype.useVariantPresets =
|
|
31558
|
+
ContentfulSleepcastUpdated.prototype.useVariantPresets = $util.emptyObject;
|
|
30664
31559
|
|
|
30665
31560
|
/**
|
|
30666
31561
|
* ContentfulSleepcastUpdated isEnabled.
|
|
@@ -30774,7 +31669,8 @@ $root.ContentfulSleepcastUpdated = (function() {
|
|
|
30774
31669
|
$root.contentful.IdReference.encode(message.playerBackgroundMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
30775
31670
|
}
|
|
30776
31671
|
if (message.useVariantPresets != null && message.hasOwnProperty("useVariantPresets"))
|
|
30777
|
-
|
|
31672
|
+
for (var keys = Object.keys(message.useVariantPresets), i = 0; i < keys.length; ++i)
|
|
31673
|
+
writer.uint32(/* id 8, wireType 2 =*/66).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 0 =*/16).bool(message.useVariantPresets[keys[i]]).ldelim();
|
|
30778
31674
|
if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
|
|
30779
31675
|
writer.uint32(/* id 9, wireType 0 =*/72).bool(message.isEnabled);
|
|
30780
31676
|
if (message.duration != null && message.hasOwnProperty("duration"))
|
|
@@ -30884,7 +31780,12 @@ $root.ContentfulSleepcastUpdated = (function() {
|
|
|
30884
31780
|
message.playerBackgroundMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
|
|
30885
31781
|
break;
|
|
30886
31782
|
case 8:
|
|
30887
|
-
|
|
31783
|
+
reader.skip().pos++;
|
|
31784
|
+
if (message.useVariantPresets === $util.emptyObject)
|
|
31785
|
+
message.useVariantPresets = {};
|
|
31786
|
+
key = reader.string();
|
|
31787
|
+
reader.pos++;
|
|
31788
|
+
message.useVariantPresets[key] = reader.bool();
|
|
30888
31789
|
break;
|
|
30889
31790
|
case 9:
|
|
30890
31791
|
message.isEnabled = reader.bool();
|
|
@@ -31024,9 +31925,14 @@ $root.ContentfulSleepcastUpdated = (function() {
|
|
|
31024
31925
|
return "playerBackgroundMedia." + error;
|
|
31025
31926
|
}
|
|
31026
31927
|
}
|
|
31027
|
-
if (message.useVariantPresets != null && message.hasOwnProperty("useVariantPresets"))
|
|
31028
|
-
if (
|
|
31029
|
-
return "useVariantPresets:
|
|
31928
|
+
if (message.useVariantPresets != null && message.hasOwnProperty("useVariantPresets")) {
|
|
31929
|
+
if (!$util.isObject(message.useVariantPresets))
|
|
31930
|
+
return "useVariantPresets: object expected";
|
|
31931
|
+
var key = Object.keys(message.useVariantPresets);
|
|
31932
|
+
for (var i = 0; i < key.length; ++i)
|
|
31933
|
+
if (typeof message.useVariantPresets[key[i]] !== "boolean")
|
|
31934
|
+
return "useVariantPresets: boolean{k:string} expected";
|
|
31935
|
+
}
|
|
31030
31936
|
if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
|
|
31031
31937
|
if (typeof message.isEnabled !== "boolean")
|
|
31032
31938
|
return "isEnabled: boolean expected";
|
|
@@ -31151,8 +32057,13 @@ $root.ContentfulSleepcastUpdated = (function() {
|
|
|
31151
32057
|
message.playerBackgroundMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.playerBackgroundMedia[keys[i]]);
|
|
31152
32058
|
}
|
|
31153
32059
|
}
|
|
31154
|
-
if (object.useVariantPresets
|
|
31155
|
-
|
|
32060
|
+
if (object.useVariantPresets) {
|
|
32061
|
+
if (typeof object.useVariantPresets !== "object")
|
|
32062
|
+
throw TypeError(".ContentfulSleepcastUpdated.useVariantPresets: object expected");
|
|
32063
|
+
message.useVariantPresets = {};
|
|
32064
|
+
for (var keys = Object.keys(object.useVariantPresets), i = 0; i < keys.length; ++i)
|
|
32065
|
+
message.useVariantPresets[keys[i]] = Boolean(object.useVariantPresets[keys[i]]);
|
|
32066
|
+
}
|
|
31156
32067
|
if (object.isEnabled != null)
|
|
31157
32068
|
message.isEnabled = Boolean(object.isEnabled);
|
|
31158
32069
|
if (object.duration) {
|
|
@@ -31242,6 +32153,7 @@ $root.ContentfulSleepcastUpdated = (function() {
|
|
|
31242
32153
|
object.description = {};
|
|
31243
32154
|
object.tileBackgroundMedia = {};
|
|
31244
32155
|
object.playerBackgroundMedia = {};
|
|
32156
|
+
object.useVariantPresets = {};
|
|
31245
32157
|
object.duration = {};
|
|
31246
32158
|
object.narratorGender = {};
|
|
31247
32159
|
object.ambientAudioMedia = {};
|
|
@@ -31251,7 +32163,6 @@ $root.ContentfulSleepcastUpdated = (function() {
|
|
|
31251
32163
|
if (options.defaults) {
|
|
31252
32164
|
object.slug = "";
|
|
31253
32165
|
object.recipe = null;
|
|
31254
|
-
object.useVariantPresets = false;
|
|
31255
32166
|
object.isEnabled = false;
|
|
31256
32167
|
if ($util.Long) {
|
|
31257
32168
|
var long = new $util.Long(0, 0, true);
|
|
@@ -31289,8 +32200,11 @@ $root.ContentfulSleepcastUpdated = (function() {
|
|
|
31289
32200
|
for (var j = 0; j < keys2.length; ++j)
|
|
31290
32201
|
object.playerBackgroundMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.playerBackgroundMedia[keys2[j]], options);
|
|
31291
32202
|
}
|
|
31292
|
-
if (message.useVariantPresets
|
|
31293
|
-
object.useVariantPresets =
|
|
32203
|
+
if (message.useVariantPresets && (keys2 = Object.keys(message.useVariantPresets)).length) {
|
|
32204
|
+
object.useVariantPresets = {};
|
|
32205
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
32206
|
+
object.useVariantPresets[keys2[j]] = message.useVariantPresets[keys2[j]];
|
|
32207
|
+
}
|
|
31294
32208
|
if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
|
|
31295
32209
|
object.isEnabled = message.isEnabled;
|
|
31296
32210
|
if (message.duration && (keys2 = Object.keys(message.duration)).length) {
|