@headspace/protos-events 1.112.0 → 1.115.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 +452 -14
- package/lib/index.js +1358 -263
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -1259,6 +1259,326 @@ $root.contentful = (function() {
|
|
|
1259
1259
|
return IdReferences;
|
|
1260
1260
|
})();
|
|
1261
1261
|
|
|
1262
|
+
contentful.ContentModelField = (function() {
|
|
1263
|
+
|
|
1264
|
+
/**
|
|
1265
|
+
* Properties of a ContentModelField.
|
|
1266
|
+
* @memberof contentful
|
|
1267
|
+
* @interface IContentModelField
|
|
1268
|
+
* @property {string|null} [id] ContentModelField id
|
|
1269
|
+
* @property {string|null} [name] ContentModelField name
|
|
1270
|
+
* @property {string|null} [type] ContentModelField type
|
|
1271
|
+
* @property {boolean|null} [localized] ContentModelField localized
|
|
1272
|
+
* @property {boolean|null} [required] ContentModelField required
|
|
1273
|
+
* @property {boolean|null} [disabled] ContentModelField disabled
|
|
1274
|
+
* @property {boolean|null} [omitted] ContentModelField omitted
|
|
1275
|
+
*/
|
|
1276
|
+
|
|
1277
|
+
/**
|
|
1278
|
+
* Constructs a new ContentModelField.
|
|
1279
|
+
* @memberof contentful
|
|
1280
|
+
* @classdesc Represents a ContentModelField.
|
|
1281
|
+
* @implements IContentModelField
|
|
1282
|
+
* @constructor
|
|
1283
|
+
* @param {contentful.IContentModelField=} [properties] Properties to set
|
|
1284
|
+
*/
|
|
1285
|
+
function ContentModelField(properties) {
|
|
1286
|
+
if (properties)
|
|
1287
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
1288
|
+
if (properties[keys[i]] != null)
|
|
1289
|
+
this[keys[i]] = properties[keys[i]];
|
|
1290
|
+
}
|
|
1291
|
+
|
|
1292
|
+
/**
|
|
1293
|
+
* ContentModelField id.
|
|
1294
|
+
* @member {string} id
|
|
1295
|
+
* @memberof contentful.ContentModelField
|
|
1296
|
+
* @instance
|
|
1297
|
+
*/
|
|
1298
|
+
ContentModelField.prototype.id = "";
|
|
1299
|
+
|
|
1300
|
+
/**
|
|
1301
|
+
* ContentModelField name.
|
|
1302
|
+
* @member {string} name
|
|
1303
|
+
* @memberof contentful.ContentModelField
|
|
1304
|
+
* @instance
|
|
1305
|
+
*/
|
|
1306
|
+
ContentModelField.prototype.name = "";
|
|
1307
|
+
|
|
1308
|
+
/**
|
|
1309
|
+
* ContentModelField type.
|
|
1310
|
+
* @member {string} type
|
|
1311
|
+
* @memberof contentful.ContentModelField
|
|
1312
|
+
* @instance
|
|
1313
|
+
*/
|
|
1314
|
+
ContentModelField.prototype.type = "";
|
|
1315
|
+
|
|
1316
|
+
/**
|
|
1317
|
+
* ContentModelField localized.
|
|
1318
|
+
* @member {boolean} localized
|
|
1319
|
+
* @memberof contentful.ContentModelField
|
|
1320
|
+
* @instance
|
|
1321
|
+
*/
|
|
1322
|
+
ContentModelField.prototype.localized = false;
|
|
1323
|
+
|
|
1324
|
+
/**
|
|
1325
|
+
* ContentModelField required.
|
|
1326
|
+
* @member {boolean} required
|
|
1327
|
+
* @memberof contentful.ContentModelField
|
|
1328
|
+
* @instance
|
|
1329
|
+
*/
|
|
1330
|
+
ContentModelField.prototype.required = false;
|
|
1331
|
+
|
|
1332
|
+
/**
|
|
1333
|
+
* ContentModelField disabled.
|
|
1334
|
+
* @member {boolean} disabled
|
|
1335
|
+
* @memberof contentful.ContentModelField
|
|
1336
|
+
* @instance
|
|
1337
|
+
*/
|
|
1338
|
+
ContentModelField.prototype.disabled = false;
|
|
1339
|
+
|
|
1340
|
+
/**
|
|
1341
|
+
* ContentModelField omitted.
|
|
1342
|
+
* @member {boolean} omitted
|
|
1343
|
+
* @memberof contentful.ContentModelField
|
|
1344
|
+
* @instance
|
|
1345
|
+
*/
|
|
1346
|
+
ContentModelField.prototype.omitted = false;
|
|
1347
|
+
|
|
1348
|
+
/**
|
|
1349
|
+
* Creates a new ContentModelField instance using the specified properties.
|
|
1350
|
+
* @function create
|
|
1351
|
+
* @memberof contentful.ContentModelField
|
|
1352
|
+
* @static
|
|
1353
|
+
* @param {contentful.IContentModelField=} [properties] Properties to set
|
|
1354
|
+
* @returns {contentful.ContentModelField} ContentModelField instance
|
|
1355
|
+
*/
|
|
1356
|
+
ContentModelField.create = function create(properties) {
|
|
1357
|
+
return new ContentModelField(properties);
|
|
1358
|
+
};
|
|
1359
|
+
|
|
1360
|
+
/**
|
|
1361
|
+
* Encodes the specified ContentModelField message. Does not implicitly {@link contentful.ContentModelField.verify|verify} messages.
|
|
1362
|
+
* @function encode
|
|
1363
|
+
* @memberof contentful.ContentModelField
|
|
1364
|
+
* @static
|
|
1365
|
+
* @param {contentful.IContentModelField} message ContentModelField message or plain object to encode
|
|
1366
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1367
|
+
* @returns {$protobuf.Writer} Writer
|
|
1368
|
+
*/
|
|
1369
|
+
ContentModelField.encode = function encode(message, writer) {
|
|
1370
|
+
if (!writer)
|
|
1371
|
+
writer = $Writer.create();
|
|
1372
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
1373
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.id);
|
|
1374
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
1375
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.name);
|
|
1376
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
1377
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.type);
|
|
1378
|
+
if (message.localized != null && message.hasOwnProperty("localized"))
|
|
1379
|
+
writer.uint32(/* id 4, wireType 0 =*/32).bool(message.localized);
|
|
1380
|
+
if (message.required != null && message.hasOwnProperty("required"))
|
|
1381
|
+
writer.uint32(/* id 5, wireType 0 =*/40).bool(message.required);
|
|
1382
|
+
if (message.disabled != null && message.hasOwnProperty("disabled"))
|
|
1383
|
+
writer.uint32(/* id 6, wireType 0 =*/48).bool(message.disabled);
|
|
1384
|
+
if (message.omitted != null && message.hasOwnProperty("omitted"))
|
|
1385
|
+
writer.uint32(/* id 7, wireType 0 =*/56).bool(message.omitted);
|
|
1386
|
+
return writer;
|
|
1387
|
+
};
|
|
1388
|
+
|
|
1389
|
+
/**
|
|
1390
|
+
* Encodes the specified ContentModelField message, length delimited. Does not implicitly {@link contentful.ContentModelField.verify|verify} messages.
|
|
1391
|
+
* @function encodeDelimited
|
|
1392
|
+
* @memberof contentful.ContentModelField
|
|
1393
|
+
* @static
|
|
1394
|
+
* @param {contentful.IContentModelField} message ContentModelField message or plain object to encode
|
|
1395
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
1396
|
+
* @returns {$protobuf.Writer} Writer
|
|
1397
|
+
*/
|
|
1398
|
+
ContentModelField.encodeDelimited = function encodeDelimited(message, writer) {
|
|
1399
|
+
return this.encode(message, writer).ldelim();
|
|
1400
|
+
};
|
|
1401
|
+
|
|
1402
|
+
/**
|
|
1403
|
+
* Decodes a ContentModelField message from the specified reader or buffer.
|
|
1404
|
+
* @function decode
|
|
1405
|
+
* @memberof contentful.ContentModelField
|
|
1406
|
+
* @static
|
|
1407
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
1408
|
+
* @param {number} [length] Message length if known beforehand
|
|
1409
|
+
* @returns {contentful.ContentModelField} ContentModelField
|
|
1410
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1411
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1412
|
+
*/
|
|
1413
|
+
ContentModelField.decode = function decode(reader, length) {
|
|
1414
|
+
if (!(reader instanceof $Reader))
|
|
1415
|
+
reader = $Reader.create(reader);
|
|
1416
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.contentful.ContentModelField();
|
|
1417
|
+
while (reader.pos < end) {
|
|
1418
|
+
var tag = reader.uint32();
|
|
1419
|
+
switch (tag >>> 3) {
|
|
1420
|
+
case 1:
|
|
1421
|
+
message.id = reader.string();
|
|
1422
|
+
break;
|
|
1423
|
+
case 2:
|
|
1424
|
+
message.name = reader.string();
|
|
1425
|
+
break;
|
|
1426
|
+
case 3:
|
|
1427
|
+
message.type = reader.string();
|
|
1428
|
+
break;
|
|
1429
|
+
case 4:
|
|
1430
|
+
message.localized = reader.bool();
|
|
1431
|
+
break;
|
|
1432
|
+
case 5:
|
|
1433
|
+
message.required = reader.bool();
|
|
1434
|
+
break;
|
|
1435
|
+
case 6:
|
|
1436
|
+
message.disabled = reader.bool();
|
|
1437
|
+
break;
|
|
1438
|
+
case 7:
|
|
1439
|
+
message.omitted = reader.bool();
|
|
1440
|
+
break;
|
|
1441
|
+
default:
|
|
1442
|
+
reader.skipType(tag & 7);
|
|
1443
|
+
break;
|
|
1444
|
+
}
|
|
1445
|
+
}
|
|
1446
|
+
return message;
|
|
1447
|
+
};
|
|
1448
|
+
|
|
1449
|
+
/**
|
|
1450
|
+
* Decodes a ContentModelField message from the specified reader or buffer, length delimited.
|
|
1451
|
+
* @function decodeDelimited
|
|
1452
|
+
* @memberof contentful.ContentModelField
|
|
1453
|
+
* @static
|
|
1454
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
1455
|
+
* @returns {contentful.ContentModelField} ContentModelField
|
|
1456
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1457
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1458
|
+
*/
|
|
1459
|
+
ContentModelField.decodeDelimited = function decodeDelimited(reader) {
|
|
1460
|
+
if (!(reader instanceof $Reader))
|
|
1461
|
+
reader = new $Reader(reader);
|
|
1462
|
+
return this.decode(reader, reader.uint32());
|
|
1463
|
+
};
|
|
1464
|
+
|
|
1465
|
+
/**
|
|
1466
|
+
* Verifies a ContentModelField message.
|
|
1467
|
+
* @function verify
|
|
1468
|
+
* @memberof contentful.ContentModelField
|
|
1469
|
+
* @static
|
|
1470
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
1471
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
1472
|
+
*/
|
|
1473
|
+
ContentModelField.verify = function verify(message) {
|
|
1474
|
+
if (typeof message !== "object" || message === null)
|
|
1475
|
+
return "object expected";
|
|
1476
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
1477
|
+
if (!$util.isString(message.id))
|
|
1478
|
+
return "id: string expected";
|
|
1479
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
1480
|
+
if (!$util.isString(message.name))
|
|
1481
|
+
return "name: string expected";
|
|
1482
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
1483
|
+
if (!$util.isString(message.type))
|
|
1484
|
+
return "type: string expected";
|
|
1485
|
+
if (message.localized != null && message.hasOwnProperty("localized"))
|
|
1486
|
+
if (typeof message.localized !== "boolean")
|
|
1487
|
+
return "localized: boolean expected";
|
|
1488
|
+
if (message.required != null && message.hasOwnProperty("required"))
|
|
1489
|
+
if (typeof message.required !== "boolean")
|
|
1490
|
+
return "required: boolean expected";
|
|
1491
|
+
if (message.disabled != null && message.hasOwnProperty("disabled"))
|
|
1492
|
+
if (typeof message.disabled !== "boolean")
|
|
1493
|
+
return "disabled: boolean expected";
|
|
1494
|
+
if (message.omitted != null && message.hasOwnProperty("omitted"))
|
|
1495
|
+
if (typeof message.omitted !== "boolean")
|
|
1496
|
+
return "omitted: boolean expected";
|
|
1497
|
+
return null;
|
|
1498
|
+
};
|
|
1499
|
+
|
|
1500
|
+
/**
|
|
1501
|
+
* Creates a ContentModelField message from a plain object. Also converts values to their respective internal types.
|
|
1502
|
+
* @function fromObject
|
|
1503
|
+
* @memberof contentful.ContentModelField
|
|
1504
|
+
* @static
|
|
1505
|
+
* @param {Object.<string,*>} object Plain object
|
|
1506
|
+
* @returns {contentful.ContentModelField} ContentModelField
|
|
1507
|
+
*/
|
|
1508
|
+
ContentModelField.fromObject = function fromObject(object) {
|
|
1509
|
+
if (object instanceof $root.contentful.ContentModelField)
|
|
1510
|
+
return object;
|
|
1511
|
+
var message = new $root.contentful.ContentModelField();
|
|
1512
|
+
if (object.id != null)
|
|
1513
|
+
message.id = String(object.id);
|
|
1514
|
+
if (object.name != null)
|
|
1515
|
+
message.name = String(object.name);
|
|
1516
|
+
if (object.type != null)
|
|
1517
|
+
message.type = String(object.type);
|
|
1518
|
+
if (object.localized != null)
|
|
1519
|
+
message.localized = Boolean(object.localized);
|
|
1520
|
+
if (object.required != null)
|
|
1521
|
+
message.required = Boolean(object.required);
|
|
1522
|
+
if (object.disabled != null)
|
|
1523
|
+
message.disabled = Boolean(object.disabled);
|
|
1524
|
+
if (object.omitted != null)
|
|
1525
|
+
message.omitted = Boolean(object.omitted);
|
|
1526
|
+
return message;
|
|
1527
|
+
};
|
|
1528
|
+
|
|
1529
|
+
/**
|
|
1530
|
+
* Creates a plain object from a ContentModelField message. Also converts values to other types if specified.
|
|
1531
|
+
* @function toObject
|
|
1532
|
+
* @memberof contentful.ContentModelField
|
|
1533
|
+
* @static
|
|
1534
|
+
* @param {contentful.ContentModelField} message ContentModelField
|
|
1535
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
1536
|
+
* @returns {Object.<string,*>} Plain object
|
|
1537
|
+
*/
|
|
1538
|
+
ContentModelField.toObject = function toObject(message, options) {
|
|
1539
|
+
if (!options)
|
|
1540
|
+
options = {};
|
|
1541
|
+
var object = {};
|
|
1542
|
+
if (options.defaults) {
|
|
1543
|
+
object.id = "";
|
|
1544
|
+
object.name = "";
|
|
1545
|
+
object.type = "";
|
|
1546
|
+
object.localized = false;
|
|
1547
|
+
object.required = false;
|
|
1548
|
+
object.disabled = false;
|
|
1549
|
+
object.omitted = false;
|
|
1550
|
+
}
|
|
1551
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
1552
|
+
object.id = message.id;
|
|
1553
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
1554
|
+
object.name = message.name;
|
|
1555
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
1556
|
+
object.type = message.type;
|
|
1557
|
+
if (message.localized != null && message.hasOwnProperty("localized"))
|
|
1558
|
+
object.localized = message.localized;
|
|
1559
|
+
if (message.required != null && message.hasOwnProperty("required"))
|
|
1560
|
+
object.required = message.required;
|
|
1561
|
+
if (message.disabled != null && message.hasOwnProperty("disabled"))
|
|
1562
|
+
object.disabled = message.disabled;
|
|
1563
|
+
if (message.omitted != null && message.hasOwnProperty("omitted"))
|
|
1564
|
+
object.omitted = message.omitted;
|
|
1565
|
+
return object;
|
|
1566
|
+
};
|
|
1567
|
+
|
|
1568
|
+
/**
|
|
1569
|
+
* Converts this ContentModelField to JSON.
|
|
1570
|
+
* @function toJSON
|
|
1571
|
+
* @memberof contentful.ContentModelField
|
|
1572
|
+
* @instance
|
|
1573
|
+
* @returns {Object.<string,*>} JSON object
|
|
1574
|
+
*/
|
|
1575
|
+
ContentModelField.prototype.toJSON = function toJSON() {
|
|
1576
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
1577
|
+
};
|
|
1578
|
+
|
|
1579
|
+
return ContentModelField;
|
|
1580
|
+
})();
|
|
1581
|
+
|
|
1262
1582
|
return contentful;
|
|
1263
1583
|
})();
|
|
1264
1584
|
|
|
@@ -7864,7 +8184,6 @@ $root.ContentfulAssetDeleted = (function() {
|
|
|
7864
8184
|
* @exports IContentfulAssetDeleted
|
|
7865
8185
|
* @interface IContentfulAssetDeleted
|
|
7866
8186
|
* @property {string|null} [id] ContentfulAssetDeleted id
|
|
7867
|
-
* @property {Object.<string,contentful.IMediaFile>|null} [file] ContentfulAssetDeleted file
|
|
7868
8187
|
* @property {number|Long|null} [deletedAt] ContentfulAssetDeleted deletedAt
|
|
7869
8188
|
*/
|
|
7870
8189
|
|
|
@@ -7877,7 +8196,6 @@ $root.ContentfulAssetDeleted = (function() {
|
|
|
7877
8196
|
* @param {IContentfulAssetDeleted=} [properties] Properties to set
|
|
7878
8197
|
*/
|
|
7879
8198
|
function ContentfulAssetDeleted(properties) {
|
|
7880
|
-
this.file = {};
|
|
7881
8199
|
if (properties)
|
|
7882
8200
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
7883
8201
|
if (properties[keys[i]] != null)
|
|
@@ -7892,14 +8210,6 @@ $root.ContentfulAssetDeleted = (function() {
|
|
|
7892
8210
|
*/
|
|
7893
8211
|
ContentfulAssetDeleted.prototype.id = "";
|
|
7894
8212
|
|
|
7895
|
-
/**
|
|
7896
|
-
* ContentfulAssetDeleted file.
|
|
7897
|
-
* @member {Object.<string,contentful.IMediaFile>} file
|
|
7898
|
-
* @memberof ContentfulAssetDeleted
|
|
7899
|
-
* @instance
|
|
7900
|
-
*/
|
|
7901
|
-
ContentfulAssetDeleted.prototype.file = $util.emptyObject;
|
|
7902
|
-
|
|
7903
8213
|
/**
|
|
7904
8214
|
* ContentfulAssetDeleted deletedAt.
|
|
7905
8215
|
* @member {number|Long} deletedAt
|
|
@@ -7934,13 +8244,8 @@ $root.ContentfulAssetDeleted = (function() {
|
|
|
7934
8244
|
writer = $Writer.create();
|
|
7935
8245
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
7936
8246
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.id);
|
|
7937
|
-
if (message.file != null && message.hasOwnProperty("file"))
|
|
7938
|
-
for (var keys = Object.keys(message.file), i = 0; i < keys.length; ++i) {
|
|
7939
|
-
writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
7940
|
-
$root.contentful.MediaFile.encode(message.file[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
7941
|
-
}
|
|
7942
8247
|
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
7943
|
-
writer.uint32(/* id
|
|
8248
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.deletedAt);
|
|
7944
8249
|
return writer;
|
|
7945
8250
|
};
|
|
7946
8251
|
|
|
@@ -7971,7 +8276,7 @@ $root.ContentfulAssetDeleted = (function() {
|
|
|
7971
8276
|
ContentfulAssetDeleted.decode = function decode(reader, length) {
|
|
7972
8277
|
if (!(reader instanceof $Reader))
|
|
7973
8278
|
reader = $Reader.create(reader);
|
|
7974
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulAssetDeleted()
|
|
8279
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulAssetDeleted();
|
|
7975
8280
|
while (reader.pos < end) {
|
|
7976
8281
|
var tag = reader.uint32();
|
|
7977
8282
|
switch (tag >>> 3) {
|
|
@@ -7979,14 +8284,6 @@ $root.ContentfulAssetDeleted = (function() {
|
|
|
7979
8284
|
message.id = reader.string();
|
|
7980
8285
|
break;
|
|
7981
8286
|
case 2:
|
|
7982
|
-
reader.skip().pos++;
|
|
7983
|
-
if (message.file === $util.emptyObject)
|
|
7984
|
-
message.file = {};
|
|
7985
|
-
key = reader.string();
|
|
7986
|
-
reader.pos++;
|
|
7987
|
-
message.file[key] = $root.contentful.MediaFile.decode(reader, reader.uint32());
|
|
7988
|
-
break;
|
|
7989
|
-
case 3:
|
|
7990
8287
|
message.deletedAt = reader.uint64();
|
|
7991
8288
|
break;
|
|
7992
8289
|
default:
|
|
@@ -8027,16 +8324,6 @@ $root.ContentfulAssetDeleted = (function() {
|
|
|
8027
8324
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
8028
8325
|
if (!$util.isString(message.id))
|
|
8029
8326
|
return "id: string expected";
|
|
8030
|
-
if (message.file != null && message.hasOwnProperty("file")) {
|
|
8031
|
-
if (!$util.isObject(message.file))
|
|
8032
|
-
return "file: object expected";
|
|
8033
|
-
var key = Object.keys(message.file);
|
|
8034
|
-
for (var i = 0; i < key.length; ++i) {
|
|
8035
|
-
var error = $root.contentful.MediaFile.verify(message.file[key[i]]);
|
|
8036
|
-
if (error)
|
|
8037
|
-
return "file." + error;
|
|
8038
|
-
}
|
|
8039
|
-
}
|
|
8040
8327
|
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
8041
8328
|
if (!$util.isInteger(message.deletedAt) && !(message.deletedAt && $util.isInteger(message.deletedAt.low) && $util.isInteger(message.deletedAt.high)))
|
|
8042
8329
|
return "deletedAt: integer|Long expected";
|
|
@@ -8057,16 +8344,6 @@ $root.ContentfulAssetDeleted = (function() {
|
|
|
8057
8344
|
var message = new $root.ContentfulAssetDeleted();
|
|
8058
8345
|
if (object.id != null)
|
|
8059
8346
|
message.id = String(object.id);
|
|
8060
|
-
if (object.file) {
|
|
8061
|
-
if (typeof object.file !== "object")
|
|
8062
|
-
throw TypeError(".ContentfulAssetDeleted.file: object expected");
|
|
8063
|
-
message.file = {};
|
|
8064
|
-
for (var keys = Object.keys(object.file), i = 0; i < keys.length; ++i) {
|
|
8065
|
-
if (typeof object.file[keys[i]] !== "object")
|
|
8066
|
-
throw TypeError(".ContentfulAssetDeleted.file: object expected");
|
|
8067
|
-
message.file[keys[i]] = $root.contentful.MediaFile.fromObject(object.file[keys[i]]);
|
|
8068
|
-
}
|
|
8069
|
-
}
|
|
8070
8347
|
if (object.deletedAt != null)
|
|
8071
8348
|
if ($util.Long)
|
|
8072
8349
|
(message.deletedAt = $util.Long.fromValue(object.deletedAt)).unsigned = true;
|
|
@@ -8092,8 +8369,6 @@ $root.ContentfulAssetDeleted = (function() {
|
|
|
8092
8369
|
if (!options)
|
|
8093
8370
|
options = {};
|
|
8094
8371
|
var object = {};
|
|
8095
|
-
if (options.objects || options.defaults)
|
|
8096
|
-
object.file = {};
|
|
8097
8372
|
if (options.defaults) {
|
|
8098
8373
|
object.id = "";
|
|
8099
8374
|
if ($util.Long) {
|
|
@@ -8104,12 +8379,6 @@ $root.ContentfulAssetDeleted = (function() {
|
|
|
8104
8379
|
}
|
|
8105
8380
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
8106
8381
|
object.id = message.id;
|
|
8107
|
-
var keys2;
|
|
8108
|
-
if (message.file && (keys2 = Object.keys(message.file)).length) {
|
|
8109
|
-
object.file = {};
|
|
8110
|
-
for (var j = 0; j < keys2.length; ++j)
|
|
8111
|
-
object.file[keys2[j]] = $root.contentful.MediaFile.toObject(message.file[keys2[j]], options);
|
|
8112
|
-
}
|
|
8113
8382
|
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
8114
8383
|
if (typeof message.deletedAt === "number")
|
|
8115
8384
|
object.deletedAt = options.longs === String ? String(message.deletedAt) : message.deletedAt;
|
|
@@ -9997,28 +10266,839 @@ $root.ContentfulWakeupPlaylistUpdated = (function() {
|
|
|
9997
10266
|
message.videoSegments[keys[i]] = $root.contentful.IdReferences.fromObject(object.videoSegments[keys[i]]);
|
|
9998
10267
|
}
|
|
9999
10268
|
}
|
|
10000
|
-
if (object.schedule) {
|
|
10001
|
-
if (typeof object.schedule !== "object")
|
|
10002
|
-
throw TypeError(".ContentfulWakeupPlaylistUpdated.schedule: object expected");
|
|
10003
|
-
message.schedule = {};
|
|
10004
|
-
for (var keys = Object.keys(object.schedule), i = 0; i < keys.length; ++i)
|
|
10005
|
-
if ($util.Long)
|
|
10006
|
-
(message.schedule[keys[i]] = $util.Long.fromValue(object.schedule[keys[i]])).unsigned = true;
|
|
10007
|
-
else if (typeof object.schedule[keys[i]] === "string")
|
|
10008
|
-
message.schedule[keys[i]] = parseInt(object.schedule[keys[i]], 10);
|
|
10009
|
-
else if (typeof object.schedule[keys[i]] === "number")
|
|
10010
|
-
message.schedule[keys[i]] = object.schedule[keys[i]];
|
|
10011
|
-
else if (typeof object.schedule[keys[i]] === "object")
|
|
10012
|
-
message.schedule[keys[i]] = new $util.LongBits(object.schedule[keys[i]].low >>> 0, object.schedule[keys[i]].high >>> 0).toNumber(true);
|
|
10013
|
-
}
|
|
10014
|
-
if (object.accessGroups) {
|
|
10015
|
-
if (!Array.isArray(object.accessGroups))
|
|
10016
|
-
throw TypeError(".ContentfulWakeupPlaylistUpdated.accessGroups: array expected");
|
|
10017
|
-
message.accessGroups = [];
|
|
10018
|
-
for (var i = 0; i < object.accessGroups.length; ++i) {
|
|
10019
|
-
if (typeof object.accessGroups[i] !== "object")
|
|
10020
|
-
throw TypeError(".ContentfulWakeupPlaylistUpdated.accessGroups: object expected");
|
|
10021
|
-
message.accessGroups[i] = $root.contentful.SlugReference.fromObject(object.accessGroups[i]);
|
|
10269
|
+
if (object.schedule) {
|
|
10270
|
+
if (typeof object.schedule !== "object")
|
|
10271
|
+
throw TypeError(".ContentfulWakeupPlaylistUpdated.schedule: object expected");
|
|
10272
|
+
message.schedule = {};
|
|
10273
|
+
for (var keys = Object.keys(object.schedule), i = 0; i < keys.length; ++i)
|
|
10274
|
+
if ($util.Long)
|
|
10275
|
+
(message.schedule[keys[i]] = $util.Long.fromValue(object.schedule[keys[i]])).unsigned = true;
|
|
10276
|
+
else if (typeof object.schedule[keys[i]] === "string")
|
|
10277
|
+
message.schedule[keys[i]] = parseInt(object.schedule[keys[i]], 10);
|
|
10278
|
+
else if (typeof object.schedule[keys[i]] === "number")
|
|
10279
|
+
message.schedule[keys[i]] = object.schedule[keys[i]];
|
|
10280
|
+
else if (typeof object.schedule[keys[i]] === "object")
|
|
10281
|
+
message.schedule[keys[i]] = new $util.LongBits(object.schedule[keys[i]].low >>> 0, object.schedule[keys[i]].high >>> 0).toNumber(true);
|
|
10282
|
+
}
|
|
10283
|
+
if (object.accessGroups) {
|
|
10284
|
+
if (!Array.isArray(object.accessGroups))
|
|
10285
|
+
throw TypeError(".ContentfulWakeupPlaylistUpdated.accessGroups: array expected");
|
|
10286
|
+
message.accessGroups = [];
|
|
10287
|
+
for (var i = 0; i < object.accessGroups.length; ++i) {
|
|
10288
|
+
if (typeof object.accessGroups[i] !== "object")
|
|
10289
|
+
throw TypeError(".ContentfulWakeupPlaylistUpdated.accessGroups: object expected");
|
|
10290
|
+
message.accessGroups[i] = $root.contentful.SlugReference.fromObject(object.accessGroups[i]);
|
|
10291
|
+
}
|
|
10292
|
+
}
|
|
10293
|
+
if (object.updatedAt != null)
|
|
10294
|
+
if ($util.Long)
|
|
10295
|
+
(message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
|
|
10296
|
+
else if (typeof object.updatedAt === "string")
|
|
10297
|
+
message.updatedAt = parseInt(object.updatedAt, 10);
|
|
10298
|
+
else if (typeof object.updatedAt === "number")
|
|
10299
|
+
message.updatedAt = object.updatedAt;
|
|
10300
|
+
else if (typeof object.updatedAt === "object")
|
|
10301
|
+
message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
|
|
10302
|
+
return message;
|
|
10303
|
+
};
|
|
10304
|
+
|
|
10305
|
+
/**
|
|
10306
|
+
* Creates a plain object from a ContentfulWakeupPlaylistUpdated message. Also converts values to other types if specified.
|
|
10307
|
+
* @function toObject
|
|
10308
|
+
* @memberof ContentfulWakeupPlaylistUpdated
|
|
10309
|
+
* @static
|
|
10310
|
+
* @param {ContentfulWakeupPlaylistUpdated} message ContentfulWakeupPlaylistUpdated
|
|
10311
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
10312
|
+
* @returns {Object.<string,*>} Plain object
|
|
10313
|
+
*/
|
|
10314
|
+
ContentfulWakeupPlaylistUpdated.toObject = function toObject(message, options) {
|
|
10315
|
+
if (!options)
|
|
10316
|
+
options = {};
|
|
10317
|
+
var object = {};
|
|
10318
|
+
if (options.arrays || options.defaults)
|
|
10319
|
+
object.accessGroups = [];
|
|
10320
|
+
if (options.objects || options.defaults) {
|
|
10321
|
+
object.title = {};
|
|
10322
|
+
object.teaser = {};
|
|
10323
|
+
object.description = {};
|
|
10324
|
+
object.playerOrientation = {};
|
|
10325
|
+
object.previewMedia = {};
|
|
10326
|
+
object.videoSegments = {};
|
|
10327
|
+
object.schedule = {};
|
|
10328
|
+
}
|
|
10329
|
+
if (options.defaults) {
|
|
10330
|
+
object.slug = "";
|
|
10331
|
+
object.contentType = "";
|
|
10332
|
+
if ($util.Long) {
|
|
10333
|
+
var long = new $util.Long(0, 0, true);
|
|
10334
|
+
object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
10335
|
+
} else
|
|
10336
|
+
object.updatedAt = options.longs === String ? "0" : 0;
|
|
10337
|
+
}
|
|
10338
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
10339
|
+
object.slug = message.slug;
|
|
10340
|
+
if (message.contentType != null && message.hasOwnProperty("contentType"))
|
|
10341
|
+
object.contentType = message.contentType;
|
|
10342
|
+
var keys2;
|
|
10343
|
+
if (message.title && (keys2 = Object.keys(message.title)).length) {
|
|
10344
|
+
object.title = {};
|
|
10345
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
10346
|
+
object.title[keys2[j]] = message.title[keys2[j]];
|
|
10347
|
+
}
|
|
10348
|
+
if (message.teaser && (keys2 = Object.keys(message.teaser)).length) {
|
|
10349
|
+
object.teaser = {};
|
|
10350
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
10351
|
+
object.teaser[keys2[j]] = message.teaser[keys2[j]];
|
|
10352
|
+
}
|
|
10353
|
+
if (message.description && (keys2 = Object.keys(message.description)).length) {
|
|
10354
|
+
object.description = {};
|
|
10355
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
10356
|
+
object.description[keys2[j]] = message.description[keys2[j]];
|
|
10357
|
+
}
|
|
10358
|
+
if (message.playerOrientation && (keys2 = Object.keys(message.playerOrientation)).length) {
|
|
10359
|
+
object.playerOrientation = {};
|
|
10360
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
10361
|
+
object.playerOrientation[keys2[j]] = message.playerOrientation[keys2[j]];
|
|
10362
|
+
}
|
|
10363
|
+
if (message.previewMedia && (keys2 = Object.keys(message.previewMedia)).length) {
|
|
10364
|
+
object.previewMedia = {};
|
|
10365
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
10366
|
+
object.previewMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.previewMedia[keys2[j]], options);
|
|
10367
|
+
}
|
|
10368
|
+
if (message.videoSegments && (keys2 = Object.keys(message.videoSegments)).length) {
|
|
10369
|
+
object.videoSegments = {};
|
|
10370
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
10371
|
+
object.videoSegments[keys2[j]] = $root.contentful.IdReferences.toObject(message.videoSegments[keys2[j]], options);
|
|
10372
|
+
}
|
|
10373
|
+
if (message.schedule && (keys2 = Object.keys(message.schedule)).length) {
|
|
10374
|
+
object.schedule = {};
|
|
10375
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
10376
|
+
if (typeof message.schedule[keys2[j]] === "number")
|
|
10377
|
+
object.schedule[keys2[j]] = options.longs === String ? String(message.schedule[keys2[j]]) : message.schedule[keys2[j]];
|
|
10378
|
+
else
|
|
10379
|
+
object.schedule[keys2[j]] = options.longs === String ? $util.Long.prototype.toString.call(message.schedule[keys2[j]]) : options.longs === Number ? new $util.LongBits(message.schedule[keys2[j]].low >>> 0, message.schedule[keys2[j]].high >>> 0).toNumber(true) : message.schedule[keys2[j]];
|
|
10380
|
+
}
|
|
10381
|
+
if (message.accessGroups && message.accessGroups.length) {
|
|
10382
|
+
object.accessGroups = [];
|
|
10383
|
+
for (var j = 0; j < message.accessGroups.length; ++j)
|
|
10384
|
+
object.accessGroups[j] = $root.contentful.SlugReference.toObject(message.accessGroups[j], options);
|
|
10385
|
+
}
|
|
10386
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
10387
|
+
if (typeof message.updatedAt === "number")
|
|
10388
|
+
object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
|
|
10389
|
+
else
|
|
10390
|
+
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;
|
|
10391
|
+
return object;
|
|
10392
|
+
};
|
|
10393
|
+
|
|
10394
|
+
/**
|
|
10395
|
+
* Converts this ContentfulWakeupPlaylistUpdated to JSON.
|
|
10396
|
+
* @function toJSON
|
|
10397
|
+
* @memberof ContentfulWakeupPlaylistUpdated
|
|
10398
|
+
* @instance
|
|
10399
|
+
* @returns {Object.<string,*>} JSON object
|
|
10400
|
+
*/
|
|
10401
|
+
ContentfulWakeupPlaylistUpdated.prototype.toJSON = function toJSON() {
|
|
10402
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
10403
|
+
};
|
|
10404
|
+
|
|
10405
|
+
return ContentfulWakeupPlaylistUpdated;
|
|
10406
|
+
})();
|
|
10407
|
+
|
|
10408
|
+
$root.ContentfulWakeupPlaylistDeleted = (function() {
|
|
10409
|
+
|
|
10410
|
+
/**
|
|
10411
|
+
* Properties of a ContentfulWakeupPlaylistDeleted.
|
|
10412
|
+
* @exports IContentfulWakeupPlaylistDeleted
|
|
10413
|
+
* @interface IContentfulWakeupPlaylistDeleted
|
|
10414
|
+
* @property {string|null} [slug] ContentfulWakeupPlaylistDeleted slug
|
|
10415
|
+
* @property {number|Long|null} [deletedAt] ContentfulWakeupPlaylistDeleted deletedAt
|
|
10416
|
+
*/
|
|
10417
|
+
|
|
10418
|
+
/**
|
|
10419
|
+
* Constructs a new ContentfulWakeupPlaylistDeleted.
|
|
10420
|
+
* @exports ContentfulWakeupPlaylistDeleted
|
|
10421
|
+
* @classdesc Represents a ContentfulWakeupPlaylistDeleted.
|
|
10422
|
+
* @implements IContentfulWakeupPlaylistDeleted
|
|
10423
|
+
* @constructor
|
|
10424
|
+
* @param {IContentfulWakeupPlaylistDeleted=} [properties] Properties to set
|
|
10425
|
+
*/
|
|
10426
|
+
function ContentfulWakeupPlaylistDeleted(properties) {
|
|
10427
|
+
if (properties)
|
|
10428
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
10429
|
+
if (properties[keys[i]] != null)
|
|
10430
|
+
this[keys[i]] = properties[keys[i]];
|
|
10431
|
+
}
|
|
10432
|
+
|
|
10433
|
+
/**
|
|
10434
|
+
* ContentfulWakeupPlaylistDeleted slug.
|
|
10435
|
+
* @member {string} slug
|
|
10436
|
+
* @memberof ContentfulWakeupPlaylistDeleted
|
|
10437
|
+
* @instance
|
|
10438
|
+
*/
|
|
10439
|
+
ContentfulWakeupPlaylistDeleted.prototype.slug = "";
|
|
10440
|
+
|
|
10441
|
+
/**
|
|
10442
|
+
* ContentfulWakeupPlaylistDeleted deletedAt.
|
|
10443
|
+
* @member {number|Long} deletedAt
|
|
10444
|
+
* @memberof ContentfulWakeupPlaylistDeleted
|
|
10445
|
+
* @instance
|
|
10446
|
+
*/
|
|
10447
|
+
ContentfulWakeupPlaylistDeleted.prototype.deletedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
10448
|
+
|
|
10449
|
+
/**
|
|
10450
|
+
* Creates a new ContentfulWakeupPlaylistDeleted instance using the specified properties.
|
|
10451
|
+
* @function create
|
|
10452
|
+
* @memberof ContentfulWakeupPlaylistDeleted
|
|
10453
|
+
* @static
|
|
10454
|
+
* @param {IContentfulWakeupPlaylistDeleted=} [properties] Properties to set
|
|
10455
|
+
* @returns {ContentfulWakeupPlaylistDeleted} ContentfulWakeupPlaylistDeleted instance
|
|
10456
|
+
*/
|
|
10457
|
+
ContentfulWakeupPlaylistDeleted.create = function create(properties) {
|
|
10458
|
+
return new ContentfulWakeupPlaylistDeleted(properties);
|
|
10459
|
+
};
|
|
10460
|
+
|
|
10461
|
+
/**
|
|
10462
|
+
* Encodes the specified ContentfulWakeupPlaylistDeleted message. Does not implicitly {@link ContentfulWakeupPlaylistDeleted.verify|verify} messages.
|
|
10463
|
+
* @function encode
|
|
10464
|
+
* @memberof ContentfulWakeupPlaylistDeleted
|
|
10465
|
+
* @static
|
|
10466
|
+
* @param {IContentfulWakeupPlaylistDeleted} message ContentfulWakeupPlaylistDeleted message or plain object to encode
|
|
10467
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
10468
|
+
* @returns {$protobuf.Writer} Writer
|
|
10469
|
+
*/
|
|
10470
|
+
ContentfulWakeupPlaylistDeleted.encode = function encode(message, writer) {
|
|
10471
|
+
if (!writer)
|
|
10472
|
+
writer = $Writer.create();
|
|
10473
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
10474
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
10475
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
10476
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.deletedAt);
|
|
10477
|
+
return writer;
|
|
10478
|
+
};
|
|
10479
|
+
|
|
10480
|
+
/**
|
|
10481
|
+
* Encodes the specified ContentfulWakeupPlaylistDeleted message, length delimited. Does not implicitly {@link ContentfulWakeupPlaylistDeleted.verify|verify} messages.
|
|
10482
|
+
* @function encodeDelimited
|
|
10483
|
+
* @memberof ContentfulWakeupPlaylistDeleted
|
|
10484
|
+
* @static
|
|
10485
|
+
* @param {IContentfulWakeupPlaylistDeleted} message ContentfulWakeupPlaylistDeleted message or plain object to encode
|
|
10486
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
10487
|
+
* @returns {$protobuf.Writer} Writer
|
|
10488
|
+
*/
|
|
10489
|
+
ContentfulWakeupPlaylistDeleted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
10490
|
+
return this.encode(message, writer).ldelim();
|
|
10491
|
+
};
|
|
10492
|
+
|
|
10493
|
+
/**
|
|
10494
|
+
* Decodes a ContentfulWakeupPlaylistDeleted message from the specified reader or buffer.
|
|
10495
|
+
* @function decode
|
|
10496
|
+
* @memberof ContentfulWakeupPlaylistDeleted
|
|
10497
|
+
* @static
|
|
10498
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
10499
|
+
* @param {number} [length] Message length if known beforehand
|
|
10500
|
+
* @returns {ContentfulWakeupPlaylistDeleted} ContentfulWakeupPlaylistDeleted
|
|
10501
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
10502
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
10503
|
+
*/
|
|
10504
|
+
ContentfulWakeupPlaylistDeleted.decode = function decode(reader, length) {
|
|
10505
|
+
if (!(reader instanceof $Reader))
|
|
10506
|
+
reader = $Reader.create(reader);
|
|
10507
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulWakeupPlaylistDeleted();
|
|
10508
|
+
while (reader.pos < end) {
|
|
10509
|
+
var tag = reader.uint32();
|
|
10510
|
+
switch (tag >>> 3) {
|
|
10511
|
+
case 1:
|
|
10512
|
+
message.slug = reader.string();
|
|
10513
|
+
break;
|
|
10514
|
+
case 2:
|
|
10515
|
+
message.deletedAt = reader.uint64();
|
|
10516
|
+
break;
|
|
10517
|
+
default:
|
|
10518
|
+
reader.skipType(tag & 7);
|
|
10519
|
+
break;
|
|
10520
|
+
}
|
|
10521
|
+
}
|
|
10522
|
+
return message;
|
|
10523
|
+
};
|
|
10524
|
+
|
|
10525
|
+
/**
|
|
10526
|
+
* Decodes a ContentfulWakeupPlaylistDeleted message from the specified reader or buffer, length delimited.
|
|
10527
|
+
* @function decodeDelimited
|
|
10528
|
+
* @memberof ContentfulWakeupPlaylistDeleted
|
|
10529
|
+
* @static
|
|
10530
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
10531
|
+
* @returns {ContentfulWakeupPlaylistDeleted} ContentfulWakeupPlaylistDeleted
|
|
10532
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
10533
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
10534
|
+
*/
|
|
10535
|
+
ContentfulWakeupPlaylistDeleted.decodeDelimited = function decodeDelimited(reader) {
|
|
10536
|
+
if (!(reader instanceof $Reader))
|
|
10537
|
+
reader = new $Reader(reader);
|
|
10538
|
+
return this.decode(reader, reader.uint32());
|
|
10539
|
+
};
|
|
10540
|
+
|
|
10541
|
+
/**
|
|
10542
|
+
* Verifies a ContentfulWakeupPlaylistDeleted message.
|
|
10543
|
+
* @function verify
|
|
10544
|
+
* @memberof ContentfulWakeupPlaylistDeleted
|
|
10545
|
+
* @static
|
|
10546
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
10547
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
10548
|
+
*/
|
|
10549
|
+
ContentfulWakeupPlaylistDeleted.verify = function verify(message) {
|
|
10550
|
+
if (typeof message !== "object" || message === null)
|
|
10551
|
+
return "object expected";
|
|
10552
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
10553
|
+
if (!$util.isString(message.slug))
|
|
10554
|
+
return "slug: string expected";
|
|
10555
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
10556
|
+
if (!$util.isInteger(message.deletedAt) && !(message.deletedAt && $util.isInteger(message.deletedAt.low) && $util.isInteger(message.deletedAt.high)))
|
|
10557
|
+
return "deletedAt: integer|Long expected";
|
|
10558
|
+
return null;
|
|
10559
|
+
};
|
|
10560
|
+
|
|
10561
|
+
/**
|
|
10562
|
+
* Creates a ContentfulWakeupPlaylistDeleted message from a plain object. Also converts values to their respective internal types.
|
|
10563
|
+
* @function fromObject
|
|
10564
|
+
* @memberof ContentfulWakeupPlaylistDeleted
|
|
10565
|
+
* @static
|
|
10566
|
+
* @param {Object.<string,*>} object Plain object
|
|
10567
|
+
* @returns {ContentfulWakeupPlaylistDeleted} ContentfulWakeupPlaylistDeleted
|
|
10568
|
+
*/
|
|
10569
|
+
ContentfulWakeupPlaylistDeleted.fromObject = function fromObject(object) {
|
|
10570
|
+
if (object instanceof $root.ContentfulWakeupPlaylistDeleted)
|
|
10571
|
+
return object;
|
|
10572
|
+
var message = new $root.ContentfulWakeupPlaylistDeleted();
|
|
10573
|
+
if (object.slug != null)
|
|
10574
|
+
message.slug = String(object.slug);
|
|
10575
|
+
if (object.deletedAt != null)
|
|
10576
|
+
if ($util.Long)
|
|
10577
|
+
(message.deletedAt = $util.Long.fromValue(object.deletedAt)).unsigned = true;
|
|
10578
|
+
else if (typeof object.deletedAt === "string")
|
|
10579
|
+
message.deletedAt = parseInt(object.deletedAt, 10);
|
|
10580
|
+
else if (typeof object.deletedAt === "number")
|
|
10581
|
+
message.deletedAt = object.deletedAt;
|
|
10582
|
+
else if (typeof object.deletedAt === "object")
|
|
10583
|
+
message.deletedAt = new $util.LongBits(object.deletedAt.low >>> 0, object.deletedAt.high >>> 0).toNumber(true);
|
|
10584
|
+
return message;
|
|
10585
|
+
};
|
|
10586
|
+
|
|
10587
|
+
/**
|
|
10588
|
+
* Creates a plain object from a ContentfulWakeupPlaylistDeleted message. Also converts values to other types if specified.
|
|
10589
|
+
* @function toObject
|
|
10590
|
+
* @memberof ContentfulWakeupPlaylistDeleted
|
|
10591
|
+
* @static
|
|
10592
|
+
* @param {ContentfulWakeupPlaylistDeleted} message ContentfulWakeupPlaylistDeleted
|
|
10593
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
10594
|
+
* @returns {Object.<string,*>} Plain object
|
|
10595
|
+
*/
|
|
10596
|
+
ContentfulWakeupPlaylistDeleted.toObject = function toObject(message, options) {
|
|
10597
|
+
if (!options)
|
|
10598
|
+
options = {};
|
|
10599
|
+
var object = {};
|
|
10600
|
+
if (options.defaults) {
|
|
10601
|
+
object.slug = "";
|
|
10602
|
+
if ($util.Long) {
|
|
10603
|
+
var long = new $util.Long(0, 0, true);
|
|
10604
|
+
object.deletedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
10605
|
+
} else
|
|
10606
|
+
object.deletedAt = options.longs === String ? "0" : 0;
|
|
10607
|
+
}
|
|
10608
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
10609
|
+
object.slug = message.slug;
|
|
10610
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
10611
|
+
if (typeof message.deletedAt === "number")
|
|
10612
|
+
object.deletedAt = options.longs === String ? String(message.deletedAt) : message.deletedAt;
|
|
10613
|
+
else
|
|
10614
|
+
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;
|
|
10615
|
+
return object;
|
|
10616
|
+
};
|
|
10617
|
+
|
|
10618
|
+
/**
|
|
10619
|
+
* Converts this ContentfulWakeupPlaylistDeleted to JSON.
|
|
10620
|
+
* @function toJSON
|
|
10621
|
+
* @memberof ContentfulWakeupPlaylistDeleted
|
|
10622
|
+
* @instance
|
|
10623
|
+
* @returns {Object.<string,*>} JSON object
|
|
10624
|
+
*/
|
|
10625
|
+
ContentfulWakeupPlaylistDeleted.prototype.toJSON = function toJSON() {
|
|
10626
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
10627
|
+
};
|
|
10628
|
+
|
|
10629
|
+
return ContentfulWakeupPlaylistDeleted;
|
|
10630
|
+
})();
|
|
10631
|
+
|
|
10632
|
+
$root.ContentfulContentModelCreated = (function() {
|
|
10633
|
+
|
|
10634
|
+
/**
|
|
10635
|
+
* Properties of a ContentfulContentModelCreated.
|
|
10636
|
+
* @exports IContentfulContentModelCreated
|
|
10637
|
+
* @interface IContentfulContentModelCreated
|
|
10638
|
+
* @property {string|null} [id] ContentfulContentModelCreated id
|
|
10639
|
+
* @property {Array.<contentful.IContentModelField>|null} [fields] ContentfulContentModelCreated fields
|
|
10640
|
+
* @property {number|Long|null} [createdAt] ContentfulContentModelCreated createdAt
|
|
10641
|
+
*/
|
|
10642
|
+
|
|
10643
|
+
/**
|
|
10644
|
+
* Constructs a new ContentfulContentModelCreated.
|
|
10645
|
+
* @exports ContentfulContentModelCreated
|
|
10646
|
+
* @classdesc Represents a ContentfulContentModelCreated.
|
|
10647
|
+
* @implements IContentfulContentModelCreated
|
|
10648
|
+
* @constructor
|
|
10649
|
+
* @param {IContentfulContentModelCreated=} [properties] Properties to set
|
|
10650
|
+
*/
|
|
10651
|
+
function ContentfulContentModelCreated(properties) {
|
|
10652
|
+
this.fields = [];
|
|
10653
|
+
if (properties)
|
|
10654
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
10655
|
+
if (properties[keys[i]] != null)
|
|
10656
|
+
this[keys[i]] = properties[keys[i]];
|
|
10657
|
+
}
|
|
10658
|
+
|
|
10659
|
+
/**
|
|
10660
|
+
* ContentfulContentModelCreated id.
|
|
10661
|
+
* @member {string} id
|
|
10662
|
+
* @memberof ContentfulContentModelCreated
|
|
10663
|
+
* @instance
|
|
10664
|
+
*/
|
|
10665
|
+
ContentfulContentModelCreated.prototype.id = "";
|
|
10666
|
+
|
|
10667
|
+
/**
|
|
10668
|
+
* ContentfulContentModelCreated fields.
|
|
10669
|
+
* @member {Array.<contentful.IContentModelField>} fields
|
|
10670
|
+
* @memberof ContentfulContentModelCreated
|
|
10671
|
+
* @instance
|
|
10672
|
+
*/
|
|
10673
|
+
ContentfulContentModelCreated.prototype.fields = $util.emptyArray;
|
|
10674
|
+
|
|
10675
|
+
/**
|
|
10676
|
+
* ContentfulContentModelCreated createdAt.
|
|
10677
|
+
* @member {number|Long} createdAt
|
|
10678
|
+
* @memberof ContentfulContentModelCreated
|
|
10679
|
+
* @instance
|
|
10680
|
+
*/
|
|
10681
|
+
ContentfulContentModelCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
10682
|
+
|
|
10683
|
+
/**
|
|
10684
|
+
* Creates a new ContentfulContentModelCreated instance using the specified properties.
|
|
10685
|
+
* @function create
|
|
10686
|
+
* @memberof ContentfulContentModelCreated
|
|
10687
|
+
* @static
|
|
10688
|
+
* @param {IContentfulContentModelCreated=} [properties] Properties to set
|
|
10689
|
+
* @returns {ContentfulContentModelCreated} ContentfulContentModelCreated instance
|
|
10690
|
+
*/
|
|
10691
|
+
ContentfulContentModelCreated.create = function create(properties) {
|
|
10692
|
+
return new ContentfulContentModelCreated(properties);
|
|
10693
|
+
};
|
|
10694
|
+
|
|
10695
|
+
/**
|
|
10696
|
+
* Encodes the specified ContentfulContentModelCreated message. Does not implicitly {@link ContentfulContentModelCreated.verify|verify} messages.
|
|
10697
|
+
* @function encode
|
|
10698
|
+
* @memberof ContentfulContentModelCreated
|
|
10699
|
+
* @static
|
|
10700
|
+
* @param {IContentfulContentModelCreated} message ContentfulContentModelCreated message or plain object to encode
|
|
10701
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
10702
|
+
* @returns {$protobuf.Writer} Writer
|
|
10703
|
+
*/
|
|
10704
|
+
ContentfulContentModelCreated.encode = function encode(message, writer) {
|
|
10705
|
+
if (!writer)
|
|
10706
|
+
writer = $Writer.create();
|
|
10707
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
10708
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.id);
|
|
10709
|
+
if (message.fields != null && message.fields.length)
|
|
10710
|
+
for (var i = 0; i < message.fields.length; ++i)
|
|
10711
|
+
$root.contentful.ContentModelField.encode(message.fields[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
10712
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
10713
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.createdAt);
|
|
10714
|
+
return writer;
|
|
10715
|
+
};
|
|
10716
|
+
|
|
10717
|
+
/**
|
|
10718
|
+
* Encodes the specified ContentfulContentModelCreated message, length delimited. Does not implicitly {@link ContentfulContentModelCreated.verify|verify} messages.
|
|
10719
|
+
* @function encodeDelimited
|
|
10720
|
+
* @memberof ContentfulContentModelCreated
|
|
10721
|
+
* @static
|
|
10722
|
+
* @param {IContentfulContentModelCreated} message ContentfulContentModelCreated message or plain object to encode
|
|
10723
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
10724
|
+
* @returns {$protobuf.Writer} Writer
|
|
10725
|
+
*/
|
|
10726
|
+
ContentfulContentModelCreated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
10727
|
+
return this.encode(message, writer).ldelim();
|
|
10728
|
+
};
|
|
10729
|
+
|
|
10730
|
+
/**
|
|
10731
|
+
* Decodes a ContentfulContentModelCreated message from the specified reader or buffer.
|
|
10732
|
+
* @function decode
|
|
10733
|
+
* @memberof ContentfulContentModelCreated
|
|
10734
|
+
* @static
|
|
10735
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
10736
|
+
* @param {number} [length] Message length if known beforehand
|
|
10737
|
+
* @returns {ContentfulContentModelCreated} ContentfulContentModelCreated
|
|
10738
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
10739
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
10740
|
+
*/
|
|
10741
|
+
ContentfulContentModelCreated.decode = function decode(reader, length) {
|
|
10742
|
+
if (!(reader instanceof $Reader))
|
|
10743
|
+
reader = $Reader.create(reader);
|
|
10744
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulContentModelCreated();
|
|
10745
|
+
while (reader.pos < end) {
|
|
10746
|
+
var tag = reader.uint32();
|
|
10747
|
+
switch (tag >>> 3) {
|
|
10748
|
+
case 1:
|
|
10749
|
+
message.id = reader.string();
|
|
10750
|
+
break;
|
|
10751
|
+
case 2:
|
|
10752
|
+
if (!(message.fields && message.fields.length))
|
|
10753
|
+
message.fields = [];
|
|
10754
|
+
message.fields.push($root.contentful.ContentModelField.decode(reader, reader.uint32()));
|
|
10755
|
+
break;
|
|
10756
|
+
case 3:
|
|
10757
|
+
message.createdAt = reader.uint64();
|
|
10758
|
+
break;
|
|
10759
|
+
default:
|
|
10760
|
+
reader.skipType(tag & 7);
|
|
10761
|
+
break;
|
|
10762
|
+
}
|
|
10763
|
+
}
|
|
10764
|
+
return message;
|
|
10765
|
+
};
|
|
10766
|
+
|
|
10767
|
+
/**
|
|
10768
|
+
* Decodes a ContentfulContentModelCreated message from the specified reader or buffer, length delimited.
|
|
10769
|
+
* @function decodeDelimited
|
|
10770
|
+
* @memberof ContentfulContentModelCreated
|
|
10771
|
+
* @static
|
|
10772
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
10773
|
+
* @returns {ContentfulContentModelCreated} ContentfulContentModelCreated
|
|
10774
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
10775
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
10776
|
+
*/
|
|
10777
|
+
ContentfulContentModelCreated.decodeDelimited = function decodeDelimited(reader) {
|
|
10778
|
+
if (!(reader instanceof $Reader))
|
|
10779
|
+
reader = new $Reader(reader);
|
|
10780
|
+
return this.decode(reader, reader.uint32());
|
|
10781
|
+
};
|
|
10782
|
+
|
|
10783
|
+
/**
|
|
10784
|
+
* Verifies a ContentfulContentModelCreated message.
|
|
10785
|
+
* @function verify
|
|
10786
|
+
* @memberof ContentfulContentModelCreated
|
|
10787
|
+
* @static
|
|
10788
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
10789
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
10790
|
+
*/
|
|
10791
|
+
ContentfulContentModelCreated.verify = function verify(message) {
|
|
10792
|
+
if (typeof message !== "object" || message === null)
|
|
10793
|
+
return "object expected";
|
|
10794
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
10795
|
+
if (!$util.isString(message.id))
|
|
10796
|
+
return "id: string expected";
|
|
10797
|
+
if (message.fields != null && message.hasOwnProperty("fields")) {
|
|
10798
|
+
if (!Array.isArray(message.fields))
|
|
10799
|
+
return "fields: array expected";
|
|
10800
|
+
for (var i = 0; i < message.fields.length; ++i) {
|
|
10801
|
+
var error = $root.contentful.ContentModelField.verify(message.fields[i]);
|
|
10802
|
+
if (error)
|
|
10803
|
+
return "fields." + error;
|
|
10804
|
+
}
|
|
10805
|
+
}
|
|
10806
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
10807
|
+
if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
|
|
10808
|
+
return "createdAt: integer|Long expected";
|
|
10809
|
+
return null;
|
|
10810
|
+
};
|
|
10811
|
+
|
|
10812
|
+
/**
|
|
10813
|
+
* Creates a ContentfulContentModelCreated message from a plain object. Also converts values to their respective internal types.
|
|
10814
|
+
* @function fromObject
|
|
10815
|
+
* @memberof ContentfulContentModelCreated
|
|
10816
|
+
* @static
|
|
10817
|
+
* @param {Object.<string,*>} object Plain object
|
|
10818
|
+
* @returns {ContentfulContentModelCreated} ContentfulContentModelCreated
|
|
10819
|
+
*/
|
|
10820
|
+
ContentfulContentModelCreated.fromObject = function fromObject(object) {
|
|
10821
|
+
if (object instanceof $root.ContentfulContentModelCreated)
|
|
10822
|
+
return object;
|
|
10823
|
+
var message = new $root.ContentfulContentModelCreated();
|
|
10824
|
+
if (object.id != null)
|
|
10825
|
+
message.id = String(object.id);
|
|
10826
|
+
if (object.fields) {
|
|
10827
|
+
if (!Array.isArray(object.fields))
|
|
10828
|
+
throw TypeError(".ContentfulContentModelCreated.fields: array expected");
|
|
10829
|
+
message.fields = [];
|
|
10830
|
+
for (var i = 0; i < object.fields.length; ++i) {
|
|
10831
|
+
if (typeof object.fields[i] !== "object")
|
|
10832
|
+
throw TypeError(".ContentfulContentModelCreated.fields: object expected");
|
|
10833
|
+
message.fields[i] = $root.contentful.ContentModelField.fromObject(object.fields[i]);
|
|
10834
|
+
}
|
|
10835
|
+
}
|
|
10836
|
+
if (object.createdAt != null)
|
|
10837
|
+
if ($util.Long)
|
|
10838
|
+
(message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
|
|
10839
|
+
else if (typeof object.createdAt === "string")
|
|
10840
|
+
message.createdAt = parseInt(object.createdAt, 10);
|
|
10841
|
+
else if (typeof object.createdAt === "number")
|
|
10842
|
+
message.createdAt = object.createdAt;
|
|
10843
|
+
else if (typeof object.createdAt === "object")
|
|
10844
|
+
message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
|
|
10845
|
+
return message;
|
|
10846
|
+
};
|
|
10847
|
+
|
|
10848
|
+
/**
|
|
10849
|
+
* Creates a plain object from a ContentfulContentModelCreated message. Also converts values to other types if specified.
|
|
10850
|
+
* @function toObject
|
|
10851
|
+
* @memberof ContentfulContentModelCreated
|
|
10852
|
+
* @static
|
|
10853
|
+
* @param {ContentfulContentModelCreated} message ContentfulContentModelCreated
|
|
10854
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
10855
|
+
* @returns {Object.<string,*>} Plain object
|
|
10856
|
+
*/
|
|
10857
|
+
ContentfulContentModelCreated.toObject = function toObject(message, options) {
|
|
10858
|
+
if (!options)
|
|
10859
|
+
options = {};
|
|
10860
|
+
var object = {};
|
|
10861
|
+
if (options.arrays || options.defaults)
|
|
10862
|
+
object.fields = [];
|
|
10863
|
+
if (options.defaults) {
|
|
10864
|
+
object.id = "";
|
|
10865
|
+
if ($util.Long) {
|
|
10866
|
+
var long = new $util.Long(0, 0, true);
|
|
10867
|
+
object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
10868
|
+
} else
|
|
10869
|
+
object.createdAt = options.longs === String ? "0" : 0;
|
|
10870
|
+
}
|
|
10871
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
10872
|
+
object.id = message.id;
|
|
10873
|
+
if (message.fields && message.fields.length) {
|
|
10874
|
+
object.fields = [];
|
|
10875
|
+
for (var j = 0; j < message.fields.length; ++j)
|
|
10876
|
+
object.fields[j] = $root.contentful.ContentModelField.toObject(message.fields[j], options);
|
|
10877
|
+
}
|
|
10878
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
10879
|
+
if (typeof message.createdAt === "number")
|
|
10880
|
+
object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
|
|
10881
|
+
else
|
|
10882
|
+
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;
|
|
10883
|
+
return object;
|
|
10884
|
+
};
|
|
10885
|
+
|
|
10886
|
+
/**
|
|
10887
|
+
* Converts this ContentfulContentModelCreated to JSON.
|
|
10888
|
+
* @function toJSON
|
|
10889
|
+
* @memberof ContentfulContentModelCreated
|
|
10890
|
+
* @instance
|
|
10891
|
+
* @returns {Object.<string,*>} JSON object
|
|
10892
|
+
*/
|
|
10893
|
+
ContentfulContentModelCreated.prototype.toJSON = function toJSON() {
|
|
10894
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
10895
|
+
};
|
|
10896
|
+
|
|
10897
|
+
return ContentfulContentModelCreated;
|
|
10898
|
+
})();
|
|
10899
|
+
|
|
10900
|
+
$root.ContentfulContentModelUpdated = (function() {
|
|
10901
|
+
|
|
10902
|
+
/**
|
|
10903
|
+
* Properties of a ContentfulContentModelUpdated.
|
|
10904
|
+
* @exports IContentfulContentModelUpdated
|
|
10905
|
+
* @interface IContentfulContentModelUpdated
|
|
10906
|
+
* @property {string|null} [id] ContentfulContentModelUpdated id
|
|
10907
|
+
* @property {Array.<contentful.IContentModelField>|null} [fields] ContentfulContentModelUpdated fields
|
|
10908
|
+
* @property {number|Long|null} [updatedAt] ContentfulContentModelUpdated updatedAt
|
|
10909
|
+
*/
|
|
10910
|
+
|
|
10911
|
+
/**
|
|
10912
|
+
* Constructs a new ContentfulContentModelUpdated.
|
|
10913
|
+
* @exports ContentfulContentModelUpdated
|
|
10914
|
+
* @classdesc Represents a ContentfulContentModelUpdated.
|
|
10915
|
+
* @implements IContentfulContentModelUpdated
|
|
10916
|
+
* @constructor
|
|
10917
|
+
* @param {IContentfulContentModelUpdated=} [properties] Properties to set
|
|
10918
|
+
*/
|
|
10919
|
+
function ContentfulContentModelUpdated(properties) {
|
|
10920
|
+
this.fields = [];
|
|
10921
|
+
if (properties)
|
|
10922
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
10923
|
+
if (properties[keys[i]] != null)
|
|
10924
|
+
this[keys[i]] = properties[keys[i]];
|
|
10925
|
+
}
|
|
10926
|
+
|
|
10927
|
+
/**
|
|
10928
|
+
* ContentfulContentModelUpdated id.
|
|
10929
|
+
* @member {string} id
|
|
10930
|
+
* @memberof ContentfulContentModelUpdated
|
|
10931
|
+
* @instance
|
|
10932
|
+
*/
|
|
10933
|
+
ContentfulContentModelUpdated.prototype.id = "";
|
|
10934
|
+
|
|
10935
|
+
/**
|
|
10936
|
+
* ContentfulContentModelUpdated fields.
|
|
10937
|
+
* @member {Array.<contentful.IContentModelField>} fields
|
|
10938
|
+
* @memberof ContentfulContentModelUpdated
|
|
10939
|
+
* @instance
|
|
10940
|
+
*/
|
|
10941
|
+
ContentfulContentModelUpdated.prototype.fields = $util.emptyArray;
|
|
10942
|
+
|
|
10943
|
+
/**
|
|
10944
|
+
* ContentfulContentModelUpdated updatedAt.
|
|
10945
|
+
* @member {number|Long} updatedAt
|
|
10946
|
+
* @memberof ContentfulContentModelUpdated
|
|
10947
|
+
* @instance
|
|
10948
|
+
*/
|
|
10949
|
+
ContentfulContentModelUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
10950
|
+
|
|
10951
|
+
/**
|
|
10952
|
+
* Creates a new ContentfulContentModelUpdated instance using the specified properties.
|
|
10953
|
+
* @function create
|
|
10954
|
+
* @memberof ContentfulContentModelUpdated
|
|
10955
|
+
* @static
|
|
10956
|
+
* @param {IContentfulContentModelUpdated=} [properties] Properties to set
|
|
10957
|
+
* @returns {ContentfulContentModelUpdated} ContentfulContentModelUpdated instance
|
|
10958
|
+
*/
|
|
10959
|
+
ContentfulContentModelUpdated.create = function create(properties) {
|
|
10960
|
+
return new ContentfulContentModelUpdated(properties);
|
|
10961
|
+
};
|
|
10962
|
+
|
|
10963
|
+
/**
|
|
10964
|
+
* Encodes the specified ContentfulContentModelUpdated message. Does not implicitly {@link ContentfulContentModelUpdated.verify|verify} messages.
|
|
10965
|
+
* @function encode
|
|
10966
|
+
* @memberof ContentfulContentModelUpdated
|
|
10967
|
+
* @static
|
|
10968
|
+
* @param {IContentfulContentModelUpdated} message ContentfulContentModelUpdated message or plain object to encode
|
|
10969
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
10970
|
+
* @returns {$protobuf.Writer} Writer
|
|
10971
|
+
*/
|
|
10972
|
+
ContentfulContentModelUpdated.encode = function encode(message, writer) {
|
|
10973
|
+
if (!writer)
|
|
10974
|
+
writer = $Writer.create();
|
|
10975
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
10976
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.id);
|
|
10977
|
+
if (message.fields != null && message.fields.length)
|
|
10978
|
+
for (var i = 0; i < message.fields.length; ++i)
|
|
10979
|
+
$root.contentful.ContentModelField.encode(message.fields[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
10980
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
10981
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.updatedAt);
|
|
10982
|
+
return writer;
|
|
10983
|
+
};
|
|
10984
|
+
|
|
10985
|
+
/**
|
|
10986
|
+
* Encodes the specified ContentfulContentModelUpdated message, length delimited. Does not implicitly {@link ContentfulContentModelUpdated.verify|verify} messages.
|
|
10987
|
+
* @function encodeDelimited
|
|
10988
|
+
* @memberof ContentfulContentModelUpdated
|
|
10989
|
+
* @static
|
|
10990
|
+
* @param {IContentfulContentModelUpdated} message ContentfulContentModelUpdated message or plain object to encode
|
|
10991
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
10992
|
+
* @returns {$protobuf.Writer} Writer
|
|
10993
|
+
*/
|
|
10994
|
+
ContentfulContentModelUpdated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
10995
|
+
return this.encode(message, writer).ldelim();
|
|
10996
|
+
};
|
|
10997
|
+
|
|
10998
|
+
/**
|
|
10999
|
+
* Decodes a ContentfulContentModelUpdated message from the specified reader or buffer.
|
|
11000
|
+
* @function decode
|
|
11001
|
+
* @memberof ContentfulContentModelUpdated
|
|
11002
|
+
* @static
|
|
11003
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
11004
|
+
* @param {number} [length] Message length if known beforehand
|
|
11005
|
+
* @returns {ContentfulContentModelUpdated} ContentfulContentModelUpdated
|
|
11006
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
11007
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
11008
|
+
*/
|
|
11009
|
+
ContentfulContentModelUpdated.decode = function decode(reader, length) {
|
|
11010
|
+
if (!(reader instanceof $Reader))
|
|
11011
|
+
reader = $Reader.create(reader);
|
|
11012
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulContentModelUpdated();
|
|
11013
|
+
while (reader.pos < end) {
|
|
11014
|
+
var tag = reader.uint32();
|
|
11015
|
+
switch (tag >>> 3) {
|
|
11016
|
+
case 1:
|
|
11017
|
+
message.id = reader.string();
|
|
11018
|
+
break;
|
|
11019
|
+
case 2:
|
|
11020
|
+
if (!(message.fields && message.fields.length))
|
|
11021
|
+
message.fields = [];
|
|
11022
|
+
message.fields.push($root.contentful.ContentModelField.decode(reader, reader.uint32()));
|
|
11023
|
+
break;
|
|
11024
|
+
case 3:
|
|
11025
|
+
message.updatedAt = reader.uint64();
|
|
11026
|
+
break;
|
|
11027
|
+
default:
|
|
11028
|
+
reader.skipType(tag & 7);
|
|
11029
|
+
break;
|
|
11030
|
+
}
|
|
11031
|
+
}
|
|
11032
|
+
return message;
|
|
11033
|
+
};
|
|
11034
|
+
|
|
11035
|
+
/**
|
|
11036
|
+
* Decodes a ContentfulContentModelUpdated message from the specified reader or buffer, length delimited.
|
|
11037
|
+
* @function decodeDelimited
|
|
11038
|
+
* @memberof ContentfulContentModelUpdated
|
|
11039
|
+
* @static
|
|
11040
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
11041
|
+
* @returns {ContentfulContentModelUpdated} ContentfulContentModelUpdated
|
|
11042
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
11043
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
11044
|
+
*/
|
|
11045
|
+
ContentfulContentModelUpdated.decodeDelimited = function decodeDelimited(reader) {
|
|
11046
|
+
if (!(reader instanceof $Reader))
|
|
11047
|
+
reader = new $Reader(reader);
|
|
11048
|
+
return this.decode(reader, reader.uint32());
|
|
11049
|
+
};
|
|
11050
|
+
|
|
11051
|
+
/**
|
|
11052
|
+
* Verifies a ContentfulContentModelUpdated message.
|
|
11053
|
+
* @function verify
|
|
11054
|
+
* @memberof ContentfulContentModelUpdated
|
|
11055
|
+
* @static
|
|
11056
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
11057
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
11058
|
+
*/
|
|
11059
|
+
ContentfulContentModelUpdated.verify = function verify(message) {
|
|
11060
|
+
if (typeof message !== "object" || message === null)
|
|
11061
|
+
return "object expected";
|
|
11062
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
11063
|
+
if (!$util.isString(message.id))
|
|
11064
|
+
return "id: string expected";
|
|
11065
|
+
if (message.fields != null && message.hasOwnProperty("fields")) {
|
|
11066
|
+
if (!Array.isArray(message.fields))
|
|
11067
|
+
return "fields: array expected";
|
|
11068
|
+
for (var i = 0; i < message.fields.length; ++i) {
|
|
11069
|
+
var error = $root.contentful.ContentModelField.verify(message.fields[i]);
|
|
11070
|
+
if (error)
|
|
11071
|
+
return "fields." + error;
|
|
11072
|
+
}
|
|
11073
|
+
}
|
|
11074
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
11075
|
+
if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
|
|
11076
|
+
return "updatedAt: integer|Long expected";
|
|
11077
|
+
return null;
|
|
11078
|
+
};
|
|
11079
|
+
|
|
11080
|
+
/**
|
|
11081
|
+
* Creates a ContentfulContentModelUpdated message from a plain object. Also converts values to their respective internal types.
|
|
11082
|
+
* @function fromObject
|
|
11083
|
+
* @memberof ContentfulContentModelUpdated
|
|
11084
|
+
* @static
|
|
11085
|
+
* @param {Object.<string,*>} object Plain object
|
|
11086
|
+
* @returns {ContentfulContentModelUpdated} ContentfulContentModelUpdated
|
|
11087
|
+
*/
|
|
11088
|
+
ContentfulContentModelUpdated.fromObject = function fromObject(object) {
|
|
11089
|
+
if (object instanceof $root.ContentfulContentModelUpdated)
|
|
11090
|
+
return object;
|
|
11091
|
+
var message = new $root.ContentfulContentModelUpdated();
|
|
11092
|
+
if (object.id != null)
|
|
11093
|
+
message.id = String(object.id);
|
|
11094
|
+
if (object.fields) {
|
|
11095
|
+
if (!Array.isArray(object.fields))
|
|
11096
|
+
throw TypeError(".ContentfulContentModelUpdated.fields: array expected");
|
|
11097
|
+
message.fields = [];
|
|
11098
|
+
for (var i = 0; i < object.fields.length; ++i) {
|
|
11099
|
+
if (typeof object.fields[i] !== "object")
|
|
11100
|
+
throw TypeError(".ContentfulContentModelUpdated.fields: object expected");
|
|
11101
|
+
message.fields[i] = $root.contentful.ContentModelField.fromObject(object.fields[i]);
|
|
10022
11102
|
}
|
|
10023
11103
|
}
|
|
10024
11104
|
if (object.updatedAt != null)
|
|
@@ -10034,85 +11114,34 @@ $root.ContentfulWakeupPlaylistUpdated = (function() {
|
|
|
10034
11114
|
};
|
|
10035
11115
|
|
|
10036
11116
|
/**
|
|
10037
|
-
* Creates a plain object from a
|
|
11117
|
+
* Creates a plain object from a ContentfulContentModelUpdated message. Also converts values to other types if specified.
|
|
10038
11118
|
* @function toObject
|
|
10039
|
-
* @memberof
|
|
11119
|
+
* @memberof ContentfulContentModelUpdated
|
|
10040
11120
|
* @static
|
|
10041
|
-
* @param {
|
|
11121
|
+
* @param {ContentfulContentModelUpdated} message ContentfulContentModelUpdated
|
|
10042
11122
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
10043
11123
|
* @returns {Object.<string,*>} Plain object
|
|
10044
11124
|
*/
|
|
10045
|
-
|
|
11125
|
+
ContentfulContentModelUpdated.toObject = function toObject(message, options) {
|
|
10046
11126
|
if (!options)
|
|
10047
11127
|
options = {};
|
|
10048
11128
|
var object = {};
|
|
10049
11129
|
if (options.arrays || options.defaults)
|
|
10050
|
-
object.
|
|
10051
|
-
if (options.objects || options.defaults) {
|
|
10052
|
-
object.title = {};
|
|
10053
|
-
object.teaser = {};
|
|
10054
|
-
object.description = {};
|
|
10055
|
-
object.playerOrientation = {};
|
|
10056
|
-
object.previewMedia = {};
|
|
10057
|
-
object.videoSegments = {};
|
|
10058
|
-
object.schedule = {};
|
|
10059
|
-
}
|
|
11130
|
+
object.fields = [];
|
|
10060
11131
|
if (options.defaults) {
|
|
10061
|
-
object.
|
|
10062
|
-
object.contentType = "";
|
|
11132
|
+
object.id = "";
|
|
10063
11133
|
if ($util.Long) {
|
|
10064
11134
|
var long = new $util.Long(0, 0, true);
|
|
10065
11135
|
object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
10066
11136
|
} else
|
|
10067
11137
|
object.updatedAt = options.longs === String ? "0" : 0;
|
|
10068
11138
|
}
|
|
10069
|
-
if (message.
|
|
10070
|
-
object.
|
|
10071
|
-
if (message.
|
|
10072
|
-
object.
|
|
10073
|
-
|
|
10074
|
-
|
|
10075
|
-
object.title = {};
|
|
10076
|
-
for (var j = 0; j < keys2.length; ++j)
|
|
10077
|
-
object.title[keys2[j]] = message.title[keys2[j]];
|
|
10078
|
-
}
|
|
10079
|
-
if (message.teaser && (keys2 = Object.keys(message.teaser)).length) {
|
|
10080
|
-
object.teaser = {};
|
|
10081
|
-
for (var j = 0; j < keys2.length; ++j)
|
|
10082
|
-
object.teaser[keys2[j]] = message.teaser[keys2[j]];
|
|
10083
|
-
}
|
|
10084
|
-
if (message.description && (keys2 = Object.keys(message.description)).length) {
|
|
10085
|
-
object.description = {};
|
|
10086
|
-
for (var j = 0; j < keys2.length; ++j)
|
|
10087
|
-
object.description[keys2[j]] = message.description[keys2[j]];
|
|
10088
|
-
}
|
|
10089
|
-
if (message.playerOrientation && (keys2 = Object.keys(message.playerOrientation)).length) {
|
|
10090
|
-
object.playerOrientation = {};
|
|
10091
|
-
for (var j = 0; j < keys2.length; ++j)
|
|
10092
|
-
object.playerOrientation[keys2[j]] = message.playerOrientation[keys2[j]];
|
|
10093
|
-
}
|
|
10094
|
-
if (message.previewMedia && (keys2 = Object.keys(message.previewMedia)).length) {
|
|
10095
|
-
object.previewMedia = {};
|
|
10096
|
-
for (var j = 0; j < keys2.length; ++j)
|
|
10097
|
-
object.previewMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.previewMedia[keys2[j]], options);
|
|
10098
|
-
}
|
|
10099
|
-
if (message.videoSegments && (keys2 = Object.keys(message.videoSegments)).length) {
|
|
10100
|
-
object.videoSegments = {};
|
|
10101
|
-
for (var j = 0; j < keys2.length; ++j)
|
|
10102
|
-
object.videoSegments[keys2[j]] = $root.contentful.IdReferences.toObject(message.videoSegments[keys2[j]], options);
|
|
10103
|
-
}
|
|
10104
|
-
if (message.schedule && (keys2 = Object.keys(message.schedule)).length) {
|
|
10105
|
-
object.schedule = {};
|
|
10106
|
-
for (var j = 0; j < keys2.length; ++j)
|
|
10107
|
-
if (typeof message.schedule[keys2[j]] === "number")
|
|
10108
|
-
object.schedule[keys2[j]] = options.longs === String ? String(message.schedule[keys2[j]]) : message.schedule[keys2[j]];
|
|
10109
|
-
else
|
|
10110
|
-
object.schedule[keys2[j]] = options.longs === String ? $util.Long.prototype.toString.call(message.schedule[keys2[j]]) : options.longs === Number ? new $util.LongBits(message.schedule[keys2[j]].low >>> 0, message.schedule[keys2[j]].high >>> 0).toNumber(true) : message.schedule[keys2[j]];
|
|
10111
|
-
}
|
|
10112
|
-
if (message.accessGroups && message.accessGroups.length) {
|
|
10113
|
-
object.accessGroups = [];
|
|
10114
|
-
for (var j = 0; j < message.accessGroups.length; ++j)
|
|
10115
|
-
object.accessGroups[j] = $root.contentful.SlugReference.toObject(message.accessGroups[j], options);
|
|
11139
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
11140
|
+
object.id = message.id;
|
|
11141
|
+
if (message.fields && message.fields.length) {
|
|
11142
|
+
object.fields = [];
|
|
11143
|
+
for (var j = 0; j < message.fields.length; ++j)
|
|
11144
|
+
object.fields[j] = $root.contentful.ContentModelField.toObject(message.fields[j], options);
|
|
10116
11145
|
}
|
|
10117
11146
|
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
10118
11147
|
if (typeof message.updatedAt === "number")
|
|
@@ -10123,38 +11152,38 @@ $root.ContentfulWakeupPlaylistUpdated = (function() {
|
|
|
10123
11152
|
};
|
|
10124
11153
|
|
|
10125
11154
|
/**
|
|
10126
|
-
* Converts this
|
|
11155
|
+
* Converts this ContentfulContentModelUpdated to JSON.
|
|
10127
11156
|
* @function toJSON
|
|
10128
|
-
* @memberof
|
|
11157
|
+
* @memberof ContentfulContentModelUpdated
|
|
10129
11158
|
* @instance
|
|
10130
11159
|
* @returns {Object.<string,*>} JSON object
|
|
10131
11160
|
*/
|
|
10132
|
-
|
|
11161
|
+
ContentfulContentModelUpdated.prototype.toJSON = function toJSON() {
|
|
10133
11162
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
10134
11163
|
};
|
|
10135
11164
|
|
|
10136
|
-
return
|
|
11165
|
+
return ContentfulContentModelUpdated;
|
|
10137
11166
|
})();
|
|
10138
11167
|
|
|
10139
|
-
$root.
|
|
11168
|
+
$root.ContentfulContentModelDeleted = (function() {
|
|
10140
11169
|
|
|
10141
11170
|
/**
|
|
10142
|
-
* Properties of a
|
|
10143
|
-
* @exports
|
|
10144
|
-
* @interface
|
|
10145
|
-
* @property {string|null} [
|
|
10146
|
-
* @property {number|Long|null} [deletedAt]
|
|
11171
|
+
* Properties of a ContentfulContentModelDeleted.
|
|
11172
|
+
* @exports IContentfulContentModelDeleted
|
|
11173
|
+
* @interface IContentfulContentModelDeleted
|
|
11174
|
+
* @property {string|null} [id] ContentfulContentModelDeleted id
|
|
11175
|
+
* @property {number|Long|null} [deletedAt] ContentfulContentModelDeleted deletedAt
|
|
10147
11176
|
*/
|
|
10148
11177
|
|
|
10149
11178
|
/**
|
|
10150
|
-
* Constructs a new
|
|
10151
|
-
* @exports
|
|
10152
|
-
* @classdesc Represents a
|
|
10153
|
-
* @implements
|
|
11179
|
+
* Constructs a new ContentfulContentModelDeleted.
|
|
11180
|
+
* @exports ContentfulContentModelDeleted
|
|
11181
|
+
* @classdesc Represents a ContentfulContentModelDeleted.
|
|
11182
|
+
* @implements IContentfulContentModelDeleted
|
|
10154
11183
|
* @constructor
|
|
10155
|
-
* @param {
|
|
11184
|
+
* @param {IContentfulContentModelDeleted=} [properties] Properties to set
|
|
10156
11185
|
*/
|
|
10157
|
-
function
|
|
11186
|
+
function ContentfulContentModelDeleted(properties) {
|
|
10158
11187
|
if (properties)
|
|
10159
11188
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
10160
11189
|
if (properties[keys[i]] != null)
|
|
@@ -10162,85 +11191,85 @@ $root.ContentfulWakeupPlaylistDeleted = (function() {
|
|
|
10162
11191
|
}
|
|
10163
11192
|
|
|
10164
11193
|
/**
|
|
10165
|
-
*
|
|
10166
|
-
* @member {string}
|
|
10167
|
-
* @memberof
|
|
11194
|
+
* ContentfulContentModelDeleted id.
|
|
11195
|
+
* @member {string} id
|
|
11196
|
+
* @memberof ContentfulContentModelDeleted
|
|
10168
11197
|
* @instance
|
|
10169
11198
|
*/
|
|
10170
|
-
|
|
11199
|
+
ContentfulContentModelDeleted.prototype.id = "";
|
|
10171
11200
|
|
|
10172
11201
|
/**
|
|
10173
|
-
*
|
|
11202
|
+
* ContentfulContentModelDeleted deletedAt.
|
|
10174
11203
|
* @member {number|Long} deletedAt
|
|
10175
|
-
* @memberof
|
|
11204
|
+
* @memberof ContentfulContentModelDeleted
|
|
10176
11205
|
* @instance
|
|
10177
11206
|
*/
|
|
10178
|
-
|
|
11207
|
+
ContentfulContentModelDeleted.prototype.deletedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
10179
11208
|
|
|
10180
11209
|
/**
|
|
10181
|
-
* Creates a new
|
|
11210
|
+
* Creates a new ContentfulContentModelDeleted instance using the specified properties.
|
|
10182
11211
|
* @function create
|
|
10183
|
-
* @memberof
|
|
11212
|
+
* @memberof ContentfulContentModelDeleted
|
|
10184
11213
|
* @static
|
|
10185
|
-
* @param {
|
|
10186
|
-
* @returns {
|
|
11214
|
+
* @param {IContentfulContentModelDeleted=} [properties] Properties to set
|
|
11215
|
+
* @returns {ContentfulContentModelDeleted} ContentfulContentModelDeleted instance
|
|
10187
11216
|
*/
|
|
10188
|
-
|
|
10189
|
-
return new
|
|
11217
|
+
ContentfulContentModelDeleted.create = function create(properties) {
|
|
11218
|
+
return new ContentfulContentModelDeleted(properties);
|
|
10190
11219
|
};
|
|
10191
11220
|
|
|
10192
11221
|
/**
|
|
10193
|
-
* Encodes the specified
|
|
11222
|
+
* Encodes the specified ContentfulContentModelDeleted message. Does not implicitly {@link ContentfulContentModelDeleted.verify|verify} messages.
|
|
10194
11223
|
* @function encode
|
|
10195
|
-
* @memberof
|
|
11224
|
+
* @memberof ContentfulContentModelDeleted
|
|
10196
11225
|
* @static
|
|
10197
|
-
* @param {
|
|
11226
|
+
* @param {IContentfulContentModelDeleted} message ContentfulContentModelDeleted message or plain object to encode
|
|
10198
11227
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
10199
11228
|
* @returns {$protobuf.Writer} Writer
|
|
10200
11229
|
*/
|
|
10201
|
-
|
|
11230
|
+
ContentfulContentModelDeleted.encode = function encode(message, writer) {
|
|
10202
11231
|
if (!writer)
|
|
10203
11232
|
writer = $Writer.create();
|
|
10204
|
-
if (message.
|
|
10205
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.
|
|
11233
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
11234
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.id);
|
|
10206
11235
|
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
10207
11236
|
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.deletedAt);
|
|
10208
11237
|
return writer;
|
|
10209
11238
|
};
|
|
10210
11239
|
|
|
10211
11240
|
/**
|
|
10212
|
-
* Encodes the specified
|
|
11241
|
+
* Encodes the specified ContentfulContentModelDeleted message, length delimited. Does not implicitly {@link ContentfulContentModelDeleted.verify|verify} messages.
|
|
10213
11242
|
* @function encodeDelimited
|
|
10214
|
-
* @memberof
|
|
11243
|
+
* @memberof ContentfulContentModelDeleted
|
|
10215
11244
|
* @static
|
|
10216
|
-
* @param {
|
|
11245
|
+
* @param {IContentfulContentModelDeleted} message ContentfulContentModelDeleted message or plain object to encode
|
|
10217
11246
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
10218
11247
|
* @returns {$protobuf.Writer} Writer
|
|
10219
11248
|
*/
|
|
10220
|
-
|
|
11249
|
+
ContentfulContentModelDeleted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
10221
11250
|
return this.encode(message, writer).ldelim();
|
|
10222
11251
|
};
|
|
10223
11252
|
|
|
10224
11253
|
/**
|
|
10225
|
-
* Decodes a
|
|
11254
|
+
* Decodes a ContentfulContentModelDeleted message from the specified reader or buffer.
|
|
10226
11255
|
* @function decode
|
|
10227
|
-
* @memberof
|
|
11256
|
+
* @memberof ContentfulContentModelDeleted
|
|
10228
11257
|
* @static
|
|
10229
11258
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
10230
11259
|
* @param {number} [length] Message length if known beforehand
|
|
10231
|
-
* @returns {
|
|
11260
|
+
* @returns {ContentfulContentModelDeleted} ContentfulContentModelDeleted
|
|
10232
11261
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
10233
11262
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
10234
11263
|
*/
|
|
10235
|
-
|
|
11264
|
+
ContentfulContentModelDeleted.decode = function decode(reader, length) {
|
|
10236
11265
|
if (!(reader instanceof $Reader))
|
|
10237
11266
|
reader = $Reader.create(reader);
|
|
10238
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.
|
|
11267
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulContentModelDeleted();
|
|
10239
11268
|
while (reader.pos < end) {
|
|
10240
11269
|
var tag = reader.uint32();
|
|
10241
11270
|
switch (tag >>> 3) {
|
|
10242
11271
|
case 1:
|
|
10243
|
-
message.
|
|
11272
|
+
message.id = reader.string();
|
|
10244
11273
|
break;
|
|
10245
11274
|
case 2:
|
|
10246
11275
|
message.deletedAt = reader.uint64();
|
|
@@ -10254,35 +11283,35 @@ $root.ContentfulWakeupPlaylistDeleted = (function() {
|
|
|
10254
11283
|
};
|
|
10255
11284
|
|
|
10256
11285
|
/**
|
|
10257
|
-
* Decodes a
|
|
11286
|
+
* Decodes a ContentfulContentModelDeleted message from the specified reader or buffer, length delimited.
|
|
10258
11287
|
* @function decodeDelimited
|
|
10259
|
-
* @memberof
|
|
11288
|
+
* @memberof ContentfulContentModelDeleted
|
|
10260
11289
|
* @static
|
|
10261
11290
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
10262
|
-
* @returns {
|
|
11291
|
+
* @returns {ContentfulContentModelDeleted} ContentfulContentModelDeleted
|
|
10263
11292
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
10264
11293
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
10265
11294
|
*/
|
|
10266
|
-
|
|
11295
|
+
ContentfulContentModelDeleted.decodeDelimited = function decodeDelimited(reader) {
|
|
10267
11296
|
if (!(reader instanceof $Reader))
|
|
10268
11297
|
reader = new $Reader(reader);
|
|
10269
11298
|
return this.decode(reader, reader.uint32());
|
|
10270
11299
|
};
|
|
10271
11300
|
|
|
10272
11301
|
/**
|
|
10273
|
-
* Verifies a
|
|
11302
|
+
* Verifies a ContentfulContentModelDeleted message.
|
|
10274
11303
|
* @function verify
|
|
10275
|
-
* @memberof
|
|
11304
|
+
* @memberof ContentfulContentModelDeleted
|
|
10276
11305
|
* @static
|
|
10277
11306
|
* @param {Object.<string,*>} message Plain object to verify
|
|
10278
11307
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
10279
11308
|
*/
|
|
10280
|
-
|
|
11309
|
+
ContentfulContentModelDeleted.verify = function verify(message) {
|
|
10281
11310
|
if (typeof message !== "object" || message === null)
|
|
10282
11311
|
return "object expected";
|
|
10283
|
-
if (message.
|
|
10284
|
-
if (!$util.isString(message.
|
|
10285
|
-
return "
|
|
11312
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
11313
|
+
if (!$util.isString(message.id))
|
|
11314
|
+
return "id: string expected";
|
|
10286
11315
|
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
10287
11316
|
if (!$util.isInteger(message.deletedAt) && !(message.deletedAt && $util.isInteger(message.deletedAt.low) && $util.isInteger(message.deletedAt.high)))
|
|
10288
11317
|
return "deletedAt: integer|Long expected";
|
|
@@ -10290,19 +11319,19 @@ $root.ContentfulWakeupPlaylistDeleted = (function() {
|
|
|
10290
11319
|
};
|
|
10291
11320
|
|
|
10292
11321
|
/**
|
|
10293
|
-
* Creates a
|
|
11322
|
+
* Creates a ContentfulContentModelDeleted message from a plain object. Also converts values to their respective internal types.
|
|
10294
11323
|
* @function fromObject
|
|
10295
|
-
* @memberof
|
|
11324
|
+
* @memberof ContentfulContentModelDeleted
|
|
10296
11325
|
* @static
|
|
10297
11326
|
* @param {Object.<string,*>} object Plain object
|
|
10298
|
-
* @returns {
|
|
11327
|
+
* @returns {ContentfulContentModelDeleted} ContentfulContentModelDeleted
|
|
10299
11328
|
*/
|
|
10300
|
-
|
|
10301
|
-
if (object instanceof $root.
|
|
11329
|
+
ContentfulContentModelDeleted.fromObject = function fromObject(object) {
|
|
11330
|
+
if (object instanceof $root.ContentfulContentModelDeleted)
|
|
10302
11331
|
return object;
|
|
10303
|
-
var message = new $root.
|
|
10304
|
-
if (object.
|
|
10305
|
-
message.
|
|
11332
|
+
var message = new $root.ContentfulContentModelDeleted();
|
|
11333
|
+
if (object.id != null)
|
|
11334
|
+
message.id = String(object.id);
|
|
10306
11335
|
if (object.deletedAt != null)
|
|
10307
11336
|
if ($util.Long)
|
|
10308
11337
|
(message.deletedAt = $util.Long.fromValue(object.deletedAt)).unsigned = true;
|
|
@@ -10316,28 +11345,28 @@ $root.ContentfulWakeupPlaylistDeleted = (function() {
|
|
|
10316
11345
|
};
|
|
10317
11346
|
|
|
10318
11347
|
/**
|
|
10319
|
-
* Creates a plain object from a
|
|
11348
|
+
* Creates a plain object from a ContentfulContentModelDeleted message. Also converts values to other types if specified.
|
|
10320
11349
|
* @function toObject
|
|
10321
|
-
* @memberof
|
|
11350
|
+
* @memberof ContentfulContentModelDeleted
|
|
10322
11351
|
* @static
|
|
10323
|
-
* @param {
|
|
11352
|
+
* @param {ContentfulContentModelDeleted} message ContentfulContentModelDeleted
|
|
10324
11353
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
10325
11354
|
* @returns {Object.<string,*>} Plain object
|
|
10326
11355
|
*/
|
|
10327
|
-
|
|
11356
|
+
ContentfulContentModelDeleted.toObject = function toObject(message, options) {
|
|
10328
11357
|
if (!options)
|
|
10329
11358
|
options = {};
|
|
10330
11359
|
var object = {};
|
|
10331
11360
|
if (options.defaults) {
|
|
10332
|
-
object.
|
|
11361
|
+
object.id = "";
|
|
10333
11362
|
if ($util.Long) {
|
|
10334
11363
|
var long = new $util.Long(0, 0, true);
|
|
10335
11364
|
object.deletedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
10336
11365
|
} else
|
|
10337
11366
|
object.deletedAt = options.longs === String ? "0" : 0;
|
|
10338
11367
|
}
|
|
10339
|
-
if (message.
|
|
10340
|
-
object.
|
|
11368
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
11369
|
+
object.id = message.id;
|
|
10341
11370
|
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
10342
11371
|
if (typeof message.deletedAt === "number")
|
|
10343
11372
|
object.deletedAt = options.longs === String ? String(message.deletedAt) : message.deletedAt;
|
|
@@ -10347,17 +11376,17 @@ $root.ContentfulWakeupPlaylistDeleted = (function() {
|
|
|
10347
11376
|
};
|
|
10348
11377
|
|
|
10349
11378
|
/**
|
|
10350
|
-
* Converts this
|
|
11379
|
+
* Converts this ContentfulContentModelDeleted to JSON.
|
|
10351
11380
|
* @function toJSON
|
|
10352
|
-
* @memberof
|
|
11381
|
+
* @memberof ContentfulContentModelDeleted
|
|
10353
11382
|
* @instance
|
|
10354
11383
|
* @returns {Object.<string,*>} JSON object
|
|
10355
11384
|
*/
|
|
10356
|
-
|
|
11385
|
+
ContentfulContentModelDeleted.prototype.toJSON = function toJSON() {
|
|
10357
11386
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
10358
11387
|
};
|
|
10359
11388
|
|
|
10360
|
-
return
|
|
11389
|
+
return ContentfulContentModelDeleted;
|
|
10361
11390
|
})();
|
|
10362
11391
|
|
|
10363
11392
|
$root.UserRoleUpdated = (function() {
|
|
@@ -20066,9 +21095,10 @@ $root.WakeupPlaylistCreated = (function() {
|
|
|
20066
21095
|
* @exports IWakeupPlaylistCreated
|
|
20067
21096
|
* @interface IWakeupPlaylistCreated
|
|
20068
21097
|
* @property {string|null} [slug] WakeupPlaylistCreated slug
|
|
21098
|
+
* @property {number|null} [entityId] WakeupPlaylistCreated entityId
|
|
20069
21099
|
* @property {string|null} [entityType] WakeupPlaylistCreated entityType
|
|
20070
21100
|
* @property {number|Long|null} [schedule] WakeupPlaylistCreated schedule
|
|
20071
|
-
* @property {
|
|
21101
|
+
* @property {number|null} [previewMediaId] WakeupPlaylistCreated previewMediaId
|
|
20072
21102
|
* @property {string|null} [previewMediaType] WakeupPlaylistCreated previewMediaType
|
|
20073
21103
|
* @property {Array.<contentful.ISlugReference>|null} [accessGroups] WakeupPlaylistCreated accessGroups
|
|
20074
21104
|
* @property {number|Long|null} [createdAt] WakeupPlaylistCreated createdAt
|
|
@@ -20098,6 +21128,14 @@ $root.WakeupPlaylistCreated = (function() {
|
|
|
20098
21128
|
*/
|
|
20099
21129
|
WakeupPlaylistCreated.prototype.slug = "";
|
|
20100
21130
|
|
|
21131
|
+
/**
|
|
21132
|
+
* WakeupPlaylistCreated entityId.
|
|
21133
|
+
* @member {number} entityId
|
|
21134
|
+
* @memberof WakeupPlaylistCreated
|
|
21135
|
+
* @instance
|
|
21136
|
+
*/
|
|
21137
|
+
WakeupPlaylistCreated.prototype.entityId = 0;
|
|
21138
|
+
|
|
20101
21139
|
/**
|
|
20102
21140
|
* WakeupPlaylistCreated entityType.
|
|
20103
21141
|
* @member {string} entityType
|
|
@@ -20115,12 +21153,12 @@ $root.WakeupPlaylistCreated = (function() {
|
|
|
20115
21153
|
WakeupPlaylistCreated.prototype.schedule = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
20116
21154
|
|
|
20117
21155
|
/**
|
|
20118
|
-
* WakeupPlaylistCreated
|
|
20119
|
-
* @member {
|
|
21156
|
+
* WakeupPlaylistCreated previewMediaId.
|
|
21157
|
+
* @member {number} previewMediaId
|
|
20120
21158
|
* @memberof WakeupPlaylistCreated
|
|
20121
21159
|
* @instance
|
|
20122
21160
|
*/
|
|
20123
|
-
WakeupPlaylistCreated.prototype.
|
|
21161
|
+
WakeupPlaylistCreated.prototype.previewMediaId = 0;
|
|
20124
21162
|
|
|
20125
21163
|
/**
|
|
20126
21164
|
* WakeupPlaylistCreated previewMediaType.
|
|
@@ -20172,19 +21210,21 @@ $root.WakeupPlaylistCreated = (function() {
|
|
|
20172
21210
|
writer = $Writer.create();
|
|
20173
21211
|
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
20174
21212
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
21213
|
+
if (message.entityId != null && message.hasOwnProperty("entityId"))
|
|
21214
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.entityId);
|
|
20175
21215
|
if (message.entityType != null && message.hasOwnProperty("entityType"))
|
|
20176
|
-
writer.uint32(/* id
|
|
21216
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.entityType);
|
|
20177
21217
|
if (message.schedule != null && message.hasOwnProperty("schedule"))
|
|
20178
|
-
writer.uint32(/* id
|
|
20179
|
-
if (message.
|
|
20180
|
-
writer.uint32(/* id
|
|
21218
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.schedule);
|
|
21219
|
+
if (message.previewMediaId != null && message.hasOwnProperty("previewMediaId"))
|
|
21220
|
+
writer.uint32(/* id 5, wireType 0 =*/40).uint32(message.previewMediaId);
|
|
20181
21221
|
if (message.previewMediaType != null && message.hasOwnProperty("previewMediaType"))
|
|
20182
|
-
writer.uint32(/* id
|
|
21222
|
+
writer.uint32(/* id 6, wireType 2 =*/50).string(message.previewMediaType);
|
|
20183
21223
|
if (message.accessGroups != null && message.accessGroups.length)
|
|
20184
21224
|
for (var i = 0; i < message.accessGroups.length; ++i)
|
|
20185
|
-
$root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id
|
|
21225
|
+
$root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
|
20186
21226
|
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
20187
|
-
writer.uint32(/* id
|
|
21227
|
+
writer.uint32(/* id 8, wireType 0 =*/64).uint64(message.createdAt);
|
|
20188
21228
|
return writer;
|
|
20189
21229
|
};
|
|
20190
21230
|
|
|
@@ -20223,23 +21263,26 @@ $root.WakeupPlaylistCreated = (function() {
|
|
|
20223
21263
|
message.slug = reader.string();
|
|
20224
21264
|
break;
|
|
20225
21265
|
case 2:
|
|
20226
|
-
message.
|
|
21266
|
+
message.entityId = reader.uint32();
|
|
20227
21267
|
break;
|
|
20228
21268
|
case 3:
|
|
20229
|
-
message.
|
|
21269
|
+
message.entityType = reader.string();
|
|
20230
21270
|
break;
|
|
20231
21271
|
case 4:
|
|
20232
|
-
message.
|
|
21272
|
+
message.schedule = reader.uint64();
|
|
20233
21273
|
break;
|
|
20234
21274
|
case 5:
|
|
20235
|
-
message.
|
|
21275
|
+
message.previewMediaId = reader.uint32();
|
|
20236
21276
|
break;
|
|
20237
21277
|
case 6:
|
|
21278
|
+
message.previewMediaType = reader.string();
|
|
21279
|
+
break;
|
|
21280
|
+
case 7:
|
|
20238
21281
|
if (!(message.accessGroups && message.accessGroups.length))
|
|
20239
21282
|
message.accessGroups = [];
|
|
20240
21283
|
message.accessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
20241
21284
|
break;
|
|
20242
|
-
case
|
|
21285
|
+
case 8:
|
|
20243
21286
|
message.createdAt = reader.uint64();
|
|
20244
21287
|
break;
|
|
20245
21288
|
default:
|
|
@@ -20280,15 +21323,18 @@ $root.WakeupPlaylistCreated = (function() {
|
|
|
20280
21323
|
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
20281
21324
|
if (!$util.isString(message.slug))
|
|
20282
21325
|
return "slug: string expected";
|
|
21326
|
+
if (message.entityId != null && message.hasOwnProperty("entityId"))
|
|
21327
|
+
if (!$util.isInteger(message.entityId))
|
|
21328
|
+
return "entityId: integer expected";
|
|
20283
21329
|
if (message.entityType != null && message.hasOwnProperty("entityType"))
|
|
20284
21330
|
if (!$util.isString(message.entityType))
|
|
20285
21331
|
return "entityType: string expected";
|
|
20286
21332
|
if (message.schedule != null && message.hasOwnProperty("schedule"))
|
|
20287
21333
|
if (!$util.isInteger(message.schedule) && !(message.schedule && $util.isInteger(message.schedule.low) && $util.isInteger(message.schedule.high)))
|
|
20288
21334
|
return "schedule: integer|Long expected";
|
|
20289
|
-
if (message.
|
|
20290
|
-
if (!$util.
|
|
20291
|
-
return "
|
|
21335
|
+
if (message.previewMediaId != null && message.hasOwnProperty("previewMediaId"))
|
|
21336
|
+
if (!$util.isInteger(message.previewMediaId))
|
|
21337
|
+
return "previewMediaId: integer expected";
|
|
20292
21338
|
if (message.previewMediaType != null && message.hasOwnProperty("previewMediaType"))
|
|
20293
21339
|
if (!$util.isString(message.previewMediaType))
|
|
20294
21340
|
return "previewMediaType: string expected";
|
|
@@ -20321,6 +21367,8 @@ $root.WakeupPlaylistCreated = (function() {
|
|
|
20321
21367
|
var message = new $root.WakeupPlaylistCreated();
|
|
20322
21368
|
if (object.slug != null)
|
|
20323
21369
|
message.slug = String(object.slug);
|
|
21370
|
+
if (object.entityId != null)
|
|
21371
|
+
message.entityId = object.entityId >>> 0;
|
|
20324
21372
|
if (object.entityType != null)
|
|
20325
21373
|
message.entityType = String(object.entityType);
|
|
20326
21374
|
if (object.schedule != null)
|
|
@@ -20332,8 +21380,8 @@ $root.WakeupPlaylistCreated = (function() {
|
|
|
20332
21380
|
message.schedule = object.schedule;
|
|
20333
21381
|
else if (typeof object.schedule === "object")
|
|
20334
21382
|
message.schedule = new $util.LongBits(object.schedule.low >>> 0, object.schedule.high >>> 0).toNumber(true);
|
|
20335
|
-
if (object.
|
|
20336
|
-
message.
|
|
21383
|
+
if (object.previewMediaId != null)
|
|
21384
|
+
message.previewMediaId = object.previewMediaId >>> 0;
|
|
20337
21385
|
if (object.previewMediaType != null)
|
|
20338
21386
|
message.previewMediaType = String(object.previewMediaType);
|
|
20339
21387
|
if (object.accessGroups) {
|
|
@@ -20375,13 +21423,14 @@ $root.WakeupPlaylistCreated = (function() {
|
|
|
20375
21423
|
object.accessGroups = [];
|
|
20376
21424
|
if (options.defaults) {
|
|
20377
21425
|
object.slug = "";
|
|
21426
|
+
object.entityId = 0;
|
|
20378
21427
|
object.entityType = "";
|
|
20379
21428
|
if ($util.Long) {
|
|
20380
21429
|
var long = new $util.Long(0, 0, true);
|
|
20381
21430
|
object.schedule = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
20382
21431
|
} else
|
|
20383
21432
|
object.schedule = options.longs === String ? "0" : 0;
|
|
20384
|
-
object.
|
|
21433
|
+
object.previewMediaId = 0;
|
|
20385
21434
|
object.previewMediaType = "";
|
|
20386
21435
|
if ($util.Long) {
|
|
20387
21436
|
var long = new $util.Long(0, 0, true);
|
|
@@ -20391,6 +21440,8 @@ $root.WakeupPlaylistCreated = (function() {
|
|
|
20391
21440
|
}
|
|
20392
21441
|
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
20393
21442
|
object.slug = message.slug;
|
|
21443
|
+
if (message.entityId != null && message.hasOwnProperty("entityId"))
|
|
21444
|
+
object.entityId = message.entityId;
|
|
20394
21445
|
if (message.entityType != null && message.hasOwnProperty("entityType"))
|
|
20395
21446
|
object.entityType = message.entityType;
|
|
20396
21447
|
if (message.schedule != null && message.hasOwnProperty("schedule"))
|
|
@@ -20398,8 +21449,8 @@ $root.WakeupPlaylistCreated = (function() {
|
|
|
20398
21449
|
object.schedule = options.longs === String ? String(message.schedule) : message.schedule;
|
|
20399
21450
|
else
|
|
20400
21451
|
object.schedule = options.longs === String ? $util.Long.prototype.toString.call(message.schedule) : options.longs === Number ? new $util.LongBits(message.schedule.low >>> 0, message.schedule.high >>> 0).toNumber(true) : message.schedule;
|
|
20401
|
-
if (message.
|
|
20402
|
-
object.
|
|
21452
|
+
if (message.previewMediaId != null && message.hasOwnProperty("previewMediaId"))
|
|
21453
|
+
object.previewMediaId = message.previewMediaId;
|
|
20403
21454
|
if (message.previewMediaType != null && message.hasOwnProperty("previewMediaType"))
|
|
20404
21455
|
object.previewMediaType = message.previewMediaType;
|
|
20405
21456
|
if (message.accessGroups && message.accessGroups.length) {
|
|
@@ -20436,9 +21487,10 @@ $root.WakeupPlaylistUpdated = (function() {
|
|
|
20436
21487
|
* @exports IWakeupPlaylistUpdated
|
|
20437
21488
|
* @interface IWakeupPlaylistUpdated
|
|
20438
21489
|
* @property {string|null} [slug] WakeupPlaylistUpdated slug
|
|
21490
|
+
* @property {number|null} [entityId] WakeupPlaylistUpdated entityId
|
|
20439
21491
|
* @property {string|null} [entityType] WakeupPlaylistUpdated entityType
|
|
20440
21492
|
* @property {number|Long|null} [schedule] WakeupPlaylistUpdated schedule
|
|
20441
|
-
* @property {
|
|
21493
|
+
* @property {number|null} [previewMediaId] WakeupPlaylistUpdated previewMediaId
|
|
20442
21494
|
* @property {string|null} [previewMediaType] WakeupPlaylistUpdated previewMediaType
|
|
20443
21495
|
* @property {Array.<contentful.ISlugReference>|null} [accessGroups] WakeupPlaylistUpdated accessGroups
|
|
20444
21496
|
* @property {number|Long|null} [updatedAt] WakeupPlaylistUpdated updatedAt
|
|
@@ -20468,6 +21520,14 @@ $root.WakeupPlaylistUpdated = (function() {
|
|
|
20468
21520
|
*/
|
|
20469
21521
|
WakeupPlaylistUpdated.prototype.slug = "";
|
|
20470
21522
|
|
|
21523
|
+
/**
|
|
21524
|
+
* WakeupPlaylistUpdated entityId.
|
|
21525
|
+
* @member {number} entityId
|
|
21526
|
+
* @memberof WakeupPlaylistUpdated
|
|
21527
|
+
* @instance
|
|
21528
|
+
*/
|
|
21529
|
+
WakeupPlaylistUpdated.prototype.entityId = 0;
|
|
21530
|
+
|
|
20471
21531
|
/**
|
|
20472
21532
|
* WakeupPlaylistUpdated entityType.
|
|
20473
21533
|
* @member {string} entityType
|
|
@@ -20485,12 +21545,12 @@ $root.WakeupPlaylistUpdated = (function() {
|
|
|
20485
21545
|
WakeupPlaylistUpdated.prototype.schedule = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
20486
21546
|
|
|
20487
21547
|
/**
|
|
20488
|
-
* WakeupPlaylistUpdated
|
|
20489
|
-
* @member {
|
|
21548
|
+
* WakeupPlaylistUpdated previewMediaId.
|
|
21549
|
+
* @member {number} previewMediaId
|
|
20490
21550
|
* @memberof WakeupPlaylistUpdated
|
|
20491
21551
|
* @instance
|
|
20492
21552
|
*/
|
|
20493
|
-
WakeupPlaylistUpdated.prototype.
|
|
21553
|
+
WakeupPlaylistUpdated.prototype.previewMediaId = 0;
|
|
20494
21554
|
|
|
20495
21555
|
/**
|
|
20496
21556
|
* WakeupPlaylistUpdated previewMediaType.
|
|
@@ -20542,19 +21602,21 @@ $root.WakeupPlaylistUpdated = (function() {
|
|
|
20542
21602
|
writer = $Writer.create();
|
|
20543
21603
|
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
20544
21604
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
21605
|
+
if (message.entityId != null && message.hasOwnProperty("entityId"))
|
|
21606
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.entityId);
|
|
20545
21607
|
if (message.entityType != null && message.hasOwnProperty("entityType"))
|
|
20546
|
-
writer.uint32(/* id
|
|
21608
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.entityType);
|
|
20547
21609
|
if (message.schedule != null && message.hasOwnProperty("schedule"))
|
|
20548
|
-
writer.uint32(/* id
|
|
20549
|
-
if (message.
|
|
20550
|
-
writer.uint32(/* id
|
|
21610
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.schedule);
|
|
21611
|
+
if (message.previewMediaId != null && message.hasOwnProperty("previewMediaId"))
|
|
21612
|
+
writer.uint32(/* id 5, wireType 0 =*/40).uint32(message.previewMediaId);
|
|
20551
21613
|
if (message.previewMediaType != null && message.hasOwnProperty("previewMediaType"))
|
|
20552
|
-
writer.uint32(/* id
|
|
21614
|
+
writer.uint32(/* id 6, wireType 2 =*/50).string(message.previewMediaType);
|
|
20553
21615
|
if (message.accessGroups != null && message.accessGroups.length)
|
|
20554
21616
|
for (var i = 0; i < message.accessGroups.length; ++i)
|
|
20555
|
-
$root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id
|
|
21617
|
+
$root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
|
20556
21618
|
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
20557
|
-
writer.uint32(/* id
|
|
21619
|
+
writer.uint32(/* id 8, wireType 0 =*/64).uint64(message.updatedAt);
|
|
20558
21620
|
return writer;
|
|
20559
21621
|
};
|
|
20560
21622
|
|
|
@@ -20593,23 +21655,26 @@ $root.WakeupPlaylistUpdated = (function() {
|
|
|
20593
21655
|
message.slug = reader.string();
|
|
20594
21656
|
break;
|
|
20595
21657
|
case 2:
|
|
20596
|
-
message.
|
|
21658
|
+
message.entityId = reader.uint32();
|
|
20597
21659
|
break;
|
|
20598
21660
|
case 3:
|
|
20599
|
-
message.
|
|
21661
|
+
message.entityType = reader.string();
|
|
20600
21662
|
break;
|
|
20601
21663
|
case 4:
|
|
20602
|
-
message.
|
|
21664
|
+
message.schedule = reader.uint64();
|
|
20603
21665
|
break;
|
|
20604
21666
|
case 5:
|
|
20605
|
-
message.
|
|
21667
|
+
message.previewMediaId = reader.uint32();
|
|
20606
21668
|
break;
|
|
20607
21669
|
case 6:
|
|
21670
|
+
message.previewMediaType = reader.string();
|
|
21671
|
+
break;
|
|
21672
|
+
case 7:
|
|
20608
21673
|
if (!(message.accessGroups && message.accessGroups.length))
|
|
20609
21674
|
message.accessGroups = [];
|
|
20610
21675
|
message.accessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
20611
21676
|
break;
|
|
20612
|
-
case
|
|
21677
|
+
case 8:
|
|
20613
21678
|
message.updatedAt = reader.uint64();
|
|
20614
21679
|
break;
|
|
20615
21680
|
default:
|
|
@@ -20650,15 +21715,18 @@ $root.WakeupPlaylistUpdated = (function() {
|
|
|
20650
21715
|
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
20651
21716
|
if (!$util.isString(message.slug))
|
|
20652
21717
|
return "slug: string expected";
|
|
21718
|
+
if (message.entityId != null && message.hasOwnProperty("entityId"))
|
|
21719
|
+
if (!$util.isInteger(message.entityId))
|
|
21720
|
+
return "entityId: integer expected";
|
|
20653
21721
|
if (message.entityType != null && message.hasOwnProperty("entityType"))
|
|
20654
21722
|
if (!$util.isString(message.entityType))
|
|
20655
21723
|
return "entityType: string expected";
|
|
20656
21724
|
if (message.schedule != null && message.hasOwnProperty("schedule"))
|
|
20657
21725
|
if (!$util.isInteger(message.schedule) && !(message.schedule && $util.isInteger(message.schedule.low) && $util.isInteger(message.schedule.high)))
|
|
20658
21726
|
return "schedule: integer|Long expected";
|
|
20659
|
-
if (message.
|
|
20660
|
-
if (!$util.
|
|
20661
|
-
return "
|
|
21727
|
+
if (message.previewMediaId != null && message.hasOwnProperty("previewMediaId"))
|
|
21728
|
+
if (!$util.isInteger(message.previewMediaId))
|
|
21729
|
+
return "previewMediaId: integer expected";
|
|
20662
21730
|
if (message.previewMediaType != null && message.hasOwnProperty("previewMediaType"))
|
|
20663
21731
|
if (!$util.isString(message.previewMediaType))
|
|
20664
21732
|
return "previewMediaType: string expected";
|
|
@@ -20691,6 +21759,8 @@ $root.WakeupPlaylistUpdated = (function() {
|
|
|
20691
21759
|
var message = new $root.WakeupPlaylistUpdated();
|
|
20692
21760
|
if (object.slug != null)
|
|
20693
21761
|
message.slug = String(object.slug);
|
|
21762
|
+
if (object.entityId != null)
|
|
21763
|
+
message.entityId = object.entityId >>> 0;
|
|
20694
21764
|
if (object.entityType != null)
|
|
20695
21765
|
message.entityType = String(object.entityType);
|
|
20696
21766
|
if (object.schedule != null)
|
|
@@ -20702,8 +21772,8 @@ $root.WakeupPlaylistUpdated = (function() {
|
|
|
20702
21772
|
message.schedule = object.schedule;
|
|
20703
21773
|
else if (typeof object.schedule === "object")
|
|
20704
21774
|
message.schedule = new $util.LongBits(object.schedule.low >>> 0, object.schedule.high >>> 0).toNumber(true);
|
|
20705
|
-
if (object.
|
|
20706
|
-
message.
|
|
21775
|
+
if (object.previewMediaId != null)
|
|
21776
|
+
message.previewMediaId = object.previewMediaId >>> 0;
|
|
20707
21777
|
if (object.previewMediaType != null)
|
|
20708
21778
|
message.previewMediaType = String(object.previewMediaType);
|
|
20709
21779
|
if (object.accessGroups) {
|
|
@@ -20745,13 +21815,14 @@ $root.WakeupPlaylistUpdated = (function() {
|
|
|
20745
21815
|
object.accessGroups = [];
|
|
20746
21816
|
if (options.defaults) {
|
|
20747
21817
|
object.slug = "";
|
|
21818
|
+
object.entityId = 0;
|
|
20748
21819
|
object.entityType = "";
|
|
20749
21820
|
if ($util.Long) {
|
|
20750
21821
|
var long = new $util.Long(0, 0, true);
|
|
20751
21822
|
object.schedule = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
20752
21823
|
} else
|
|
20753
21824
|
object.schedule = options.longs === String ? "0" : 0;
|
|
20754
|
-
object.
|
|
21825
|
+
object.previewMediaId = 0;
|
|
20755
21826
|
object.previewMediaType = "";
|
|
20756
21827
|
if ($util.Long) {
|
|
20757
21828
|
var long = new $util.Long(0, 0, true);
|
|
@@ -20761,6 +21832,8 @@ $root.WakeupPlaylistUpdated = (function() {
|
|
|
20761
21832
|
}
|
|
20762
21833
|
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
20763
21834
|
object.slug = message.slug;
|
|
21835
|
+
if (message.entityId != null && message.hasOwnProperty("entityId"))
|
|
21836
|
+
object.entityId = message.entityId;
|
|
20764
21837
|
if (message.entityType != null && message.hasOwnProperty("entityType"))
|
|
20765
21838
|
object.entityType = message.entityType;
|
|
20766
21839
|
if (message.schedule != null && message.hasOwnProperty("schedule"))
|
|
@@ -20768,8 +21841,8 @@ $root.WakeupPlaylistUpdated = (function() {
|
|
|
20768
21841
|
object.schedule = options.longs === String ? String(message.schedule) : message.schedule;
|
|
20769
21842
|
else
|
|
20770
21843
|
object.schedule = options.longs === String ? $util.Long.prototype.toString.call(message.schedule) : options.longs === Number ? new $util.LongBits(message.schedule.low >>> 0, message.schedule.high >>> 0).toNumber(true) : message.schedule;
|
|
20771
|
-
if (message.
|
|
20772
|
-
object.
|
|
21844
|
+
if (message.previewMediaId != null && message.hasOwnProperty("previewMediaId"))
|
|
21845
|
+
object.previewMediaId = message.previewMediaId;
|
|
20773
21846
|
if (message.previewMediaType != null && message.hasOwnProperty("previewMediaType"))
|
|
20774
21847
|
object.previewMediaType = message.previewMediaType;
|
|
20775
21848
|
if (message.accessGroups && message.accessGroups.length) {
|
|
@@ -20806,6 +21879,7 @@ $root.WakeupPlaylistDeleted = (function() {
|
|
|
20806
21879
|
* @exports IWakeupPlaylistDeleted
|
|
20807
21880
|
* @interface IWakeupPlaylistDeleted
|
|
20808
21881
|
* @property {string|null} [slug] WakeupPlaylistDeleted slug
|
|
21882
|
+
* @property {number|null} [entityId] WakeupPlaylistDeleted entityId
|
|
20809
21883
|
* @property {string|null} [entityType] WakeupPlaylistDeleted entityType
|
|
20810
21884
|
* @property {number|Long|null} [deletedAt] WakeupPlaylistDeleted deletedAt
|
|
20811
21885
|
*/
|
|
@@ -20833,6 +21907,14 @@ $root.WakeupPlaylistDeleted = (function() {
|
|
|
20833
21907
|
*/
|
|
20834
21908
|
WakeupPlaylistDeleted.prototype.slug = "";
|
|
20835
21909
|
|
|
21910
|
+
/**
|
|
21911
|
+
* WakeupPlaylistDeleted entityId.
|
|
21912
|
+
* @member {number} entityId
|
|
21913
|
+
* @memberof WakeupPlaylistDeleted
|
|
21914
|
+
* @instance
|
|
21915
|
+
*/
|
|
21916
|
+
WakeupPlaylistDeleted.prototype.entityId = 0;
|
|
21917
|
+
|
|
20836
21918
|
/**
|
|
20837
21919
|
* WakeupPlaylistDeleted entityType.
|
|
20838
21920
|
* @member {string} entityType
|
|
@@ -20875,10 +21957,12 @@ $root.WakeupPlaylistDeleted = (function() {
|
|
|
20875
21957
|
writer = $Writer.create();
|
|
20876
21958
|
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
20877
21959
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
21960
|
+
if (message.entityId != null && message.hasOwnProperty("entityId"))
|
|
21961
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.entityId);
|
|
20878
21962
|
if (message.entityType != null && message.hasOwnProperty("entityType"))
|
|
20879
|
-
writer.uint32(/* id
|
|
21963
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.entityType);
|
|
20880
21964
|
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
20881
|
-
writer.uint32(/* id
|
|
21965
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.deletedAt);
|
|
20882
21966
|
return writer;
|
|
20883
21967
|
};
|
|
20884
21968
|
|
|
@@ -20917,9 +22001,12 @@ $root.WakeupPlaylistDeleted = (function() {
|
|
|
20917
22001
|
message.slug = reader.string();
|
|
20918
22002
|
break;
|
|
20919
22003
|
case 2:
|
|
20920
|
-
message.
|
|
22004
|
+
message.entityId = reader.uint32();
|
|
20921
22005
|
break;
|
|
20922
22006
|
case 3:
|
|
22007
|
+
message.entityType = reader.string();
|
|
22008
|
+
break;
|
|
22009
|
+
case 4:
|
|
20923
22010
|
message.deletedAt = reader.uint64();
|
|
20924
22011
|
break;
|
|
20925
22012
|
default:
|
|
@@ -20960,6 +22047,9 @@ $root.WakeupPlaylistDeleted = (function() {
|
|
|
20960
22047
|
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
20961
22048
|
if (!$util.isString(message.slug))
|
|
20962
22049
|
return "slug: string expected";
|
|
22050
|
+
if (message.entityId != null && message.hasOwnProperty("entityId"))
|
|
22051
|
+
if (!$util.isInteger(message.entityId))
|
|
22052
|
+
return "entityId: integer expected";
|
|
20963
22053
|
if (message.entityType != null && message.hasOwnProperty("entityType"))
|
|
20964
22054
|
if (!$util.isString(message.entityType))
|
|
20965
22055
|
return "entityType: string expected";
|
|
@@ -20983,6 +22073,8 @@ $root.WakeupPlaylistDeleted = (function() {
|
|
|
20983
22073
|
var message = new $root.WakeupPlaylistDeleted();
|
|
20984
22074
|
if (object.slug != null)
|
|
20985
22075
|
message.slug = String(object.slug);
|
|
22076
|
+
if (object.entityId != null)
|
|
22077
|
+
message.entityId = object.entityId >>> 0;
|
|
20986
22078
|
if (object.entityType != null)
|
|
20987
22079
|
message.entityType = String(object.entityType);
|
|
20988
22080
|
if (object.deletedAt != null)
|
|
@@ -21012,6 +22104,7 @@ $root.WakeupPlaylistDeleted = (function() {
|
|
|
21012
22104
|
var object = {};
|
|
21013
22105
|
if (options.defaults) {
|
|
21014
22106
|
object.slug = "";
|
|
22107
|
+
object.entityId = 0;
|
|
21015
22108
|
object.entityType = "";
|
|
21016
22109
|
if ($util.Long) {
|
|
21017
22110
|
var long = new $util.Long(0, 0, true);
|
|
@@ -21021,6 +22114,8 @@ $root.WakeupPlaylistDeleted = (function() {
|
|
|
21021
22114
|
}
|
|
21022
22115
|
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
21023
22116
|
object.slug = message.slug;
|
|
22117
|
+
if (message.entityId != null && message.hasOwnProperty("entityId"))
|
|
22118
|
+
object.entityId = message.entityId;
|
|
21024
22119
|
if (message.entityType != null && message.hasOwnProperty("entityType"))
|
|
21025
22120
|
object.entityType = message.entityType;
|
|
21026
22121
|
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|