@headspace/protos-events 1.114.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 -26
- package/lib/index.js +1274 -194
- 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
|
|
|
@@ -10058,10 +10378,770 @@ $root.ContentfulWakeupPlaylistUpdated = (function() {
|
|
|
10058
10378
|
else
|
|
10059
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]];
|
|
10060
10380
|
}
|
|
10061
|
-
if (message.accessGroups && message.accessGroups.length) {
|
|
10062
|
-
object.accessGroups = [];
|
|
10063
|
-
for (var j = 0; j < message.accessGroups.length; ++j)
|
|
10064
|
-
object.accessGroups[j] = $root.contentful.SlugReference.toObject(message.accessGroups[j], options);
|
|
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]);
|
|
11102
|
+
}
|
|
11103
|
+
}
|
|
11104
|
+
if (object.updatedAt != null)
|
|
11105
|
+
if ($util.Long)
|
|
11106
|
+
(message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
|
|
11107
|
+
else if (typeof object.updatedAt === "string")
|
|
11108
|
+
message.updatedAt = parseInt(object.updatedAt, 10);
|
|
11109
|
+
else if (typeof object.updatedAt === "number")
|
|
11110
|
+
message.updatedAt = object.updatedAt;
|
|
11111
|
+
else if (typeof object.updatedAt === "object")
|
|
11112
|
+
message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
|
|
11113
|
+
return message;
|
|
11114
|
+
};
|
|
11115
|
+
|
|
11116
|
+
/**
|
|
11117
|
+
* Creates a plain object from a ContentfulContentModelUpdated message. Also converts values to other types if specified.
|
|
11118
|
+
* @function toObject
|
|
11119
|
+
* @memberof ContentfulContentModelUpdated
|
|
11120
|
+
* @static
|
|
11121
|
+
* @param {ContentfulContentModelUpdated} message ContentfulContentModelUpdated
|
|
11122
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
11123
|
+
* @returns {Object.<string,*>} Plain object
|
|
11124
|
+
*/
|
|
11125
|
+
ContentfulContentModelUpdated.toObject = function toObject(message, options) {
|
|
11126
|
+
if (!options)
|
|
11127
|
+
options = {};
|
|
11128
|
+
var object = {};
|
|
11129
|
+
if (options.arrays || options.defaults)
|
|
11130
|
+
object.fields = [];
|
|
11131
|
+
if (options.defaults) {
|
|
11132
|
+
object.id = "";
|
|
11133
|
+
if ($util.Long) {
|
|
11134
|
+
var long = new $util.Long(0, 0, true);
|
|
11135
|
+
object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
11136
|
+
} else
|
|
11137
|
+
object.updatedAt = options.longs === String ? "0" : 0;
|
|
11138
|
+
}
|
|
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);
|
|
10065
11145
|
}
|
|
10066
11146
|
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
10067
11147
|
if (typeof message.updatedAt === "number")
|
|
@@ -10072,38 +11152,38 @@ $root.ContentfulWakeupPlaylistUpdated = (function() {
|
|
|
10072
11152
|
};
|
|
10073
11153
|
|
|
10074
11154
|
/**
|
|
10075
|
-
* Converts this
|
|
11155
|
+
* Converts this ContentfulContentModelUpdated to JSON.
|
|
10076
11156
|
* @function toJSON
|
|
10077
|
-
* @memberof
|
|
11157
|
+
* @memberof ContentfulContentModelUpdated
|
|
10078
11158
|
* @instance
|
|
10079
11159
|
* @returns {Object.<string,*>} JSON object
|
|
10080
11160
|
*/
|
|
10081
|
-
|
|
11161
|
+
ContentfulContentModelUpdated.prototype.toJSON = function toJSON() {
|
|
10082
11162
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
10083
11163
|
};
|
|
10084
11164
|
|
|
10085
|
-
return
|
|
11165
|
+
return ContentfulContentModelUpdated;
|
|
10086
11166
|
})();
|
|
10087
11167
|
|
|
10088
|
-
$root.
|
|
11168
|
+
$root.ContentfulContentModelDeleted = (function() {
|
|
10089
11169
|
|
|
10090
11170
|
/**
|
|
10091
|
-
* Properties of a
|
|
10092
|
-
* @exports
|
|
10093
|
-
* @interface
|
|
10094
|
-
* @property {string|null} [
|
|
10095
|
-
* @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
|
|
10096
11176
|
*/
|
|
10097
11177
|
|
|
10098
11178
|
/**
|
|
10099
|
-
* Constructs a new
|
|
10100
|
-
* @exports
|
|
10101
|
-
* @classdesc Represents a
|
|
10102
|
-
* @implements
|
|
11179
|
+
* Constructs a new ContentfulContentModelDeleted.
|
|
11180
|
+
* @exports ContentfulContentModelDeleted
|
|
11181
|
+
* @classdesc Represents a ContentfulContentModelDeleted.
|
|
11182
|
+
* @implements IContentfulContentModelDeleted
|
|
10103
11183
|
* @constructor
|
|
10104
|
-
* @param {
|
|
11184
|
+
* @param {IContentfulContentModelDeleted=} [properties] Properties to set
|
|
10105
11185
|
*/
|
|
10106
|
-
function
|
|
11186
|
+
function ContentfulContentModelDeleted(properties) {
|
|
10107
11187
|
if (properties)
|
|
10108
11188
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
10109
11189
|
if (properties[keys[i]] != null)
|
|
@@ -10111,85 +11191,85 @@ $root.ContentfulWakeupPlaylistDeleted = (function() {
|
|
|
10111
11191
|
}
|
|
10112
11192
|
|
|
10113
11193
|
/**
|
|
10114
|
-
*
|
|
10115
|
-
* @member {string}
|
|
10116
|
-
* @memberof
|
|
11194
|
+
* ContentfulContentModelDeleted id.
|
|
11195
|
+
* @member {string} id
|
|
11196
|
+
* @memberof ContentfulContentModelDeleted
|
|
10117
11197
|
* @instance
|
|
10118
11198
|
*/
|
|
10119
|
-
|
|
11199
|
+
ContentfulContentModelDeleted.prototype.id = "";
|
|
10120
11200
|
|
|
10121
11201
|
/**
|
|
10122
|
-
*
|
|
11202
|
+
* ContentfulContentModelDeleted deletedAt.
|
|
10123
11203
|
* @member {number|Long} deletedAt
|
|
10124
|
-
* @memberof
|
|
11204
|
+
* @memberof ContentfulContentModelDeleted
|
|
10125
11205
|
* @instance
|
|
10126
11206
|
*/
|
|
10127
|
-
|
|
11207
|
+
ContentfulContentModelDeleted.prototype.deletedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
10128
11208
|
|
|
10129
11209
|
/**
|
|
10130
|
-
* Creates a new
|
|
11210
|
+
* Creates a new ContentfulContentModelDeleted instance using the specified properties.
|
|
10131
11211
|
* @function create
|
|
10132
|
-
* @memberof
|
|
11212
|
+
* @memberof ContentfulContentModelDeleted
|
|
10133
11213
|
* @static
|
|
10134
|
-
* @param {
|
|
10135
|
-
* @returns {
|
|
11214
|
+
* @param {IContentfulContentModelDeleted=} [properties] Properties to set
|
|
11215
|
+
* @returns {ContentfulContentModelDeleted} ContentfulContentModelDeleted instance
|
|
10136
11216
|
*/
|
|
10137
|
-
|
|
10138
|
-
return new
|
|
11217
|
+
ContentfulContentModelDeleted.create = function create(properties) {
|
|
11218
|
+
return new ContentfulContentModelDeleted(properties);
|
|
10139
11219
|
};
|
|
10140
11220
|
|
|
10141
11221
|
/**
|
|
10142
|
-
* Encodes the specified
|
|
11222
|
+
* Encodes the specified ContentfulContentModelDeleted message. Does not implicitly {@link ContentfulContentModelDeleted.verify|verify} messages.
|
|
10143
11223
|
* @function encode
|
|
10144
|
-
* @memberof
|
|
11224
|
+
* @memberof ContentfulContentModelDeleted
|
|
10145
11225
|
* @static
|
|
10146
|
-
* @param {
|
|
11226
|
+
* @param {IContentfulContentModelDeleted} message ContentfulContentModelDeleted message or plain object to encode
|
|
10147
11227
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
10148
11228
|
* @returns {$protobuf.Writer} Writer
|
|
10149
11229
|
*/
|
|
10150
|
-
|
|
11230
|
+
ContentfulContentModelDeleted.encode = function encode(message, writer) {
|
|
10151
11231
|
if (!writer)
|
|
10152
11232
|
writer = $Writer.create();
|
|
10153
|
-
if (message.
|
|
10154
|
-
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);
|
|
10155
11235
|
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
10156
11236
|
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.deletedAt);
|
|
10157
11237
|
return writer;
|
|
10158
11238
|
};
|
|
10159
11239
|
|
|
10160
11240
|
/**
|
|
10161
|
-
* Encodes the specified
|
|
11241
|
+
* Encodes the specified ContentfulContentModelDeleted message, length delimited. Does not implicitly {@link ContentfulContentModelDeleted.verify|verify} messages.
|
|
10162
11242
|
* @function encodeDelimited
|
|
10163
|
-
* @memberof
|
|
11243
|
+
* @memberof ContentfulContentModelDeleted
|
|
10164
11244
|
* @static
|
|
10165
|
-
* @param {
|
|
11245
|
+
* @param {IContentfulContentModelDeleted} message ContentfulContentModelDeleted message or plain object to encode
|
|
10166
11246
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
10167
11247
|
* @returns {$protobuf.Writer} Writer
|
|
10168
11248
|
*/
|
|
10169
|
-
|
|
11249
|
+
ContentfulContentModelDeleted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
10170
11250
|
return this.encode(message, writer).ldelim();
|
|
10171
11251
|
};
|
|
10172
11252
|
|
|
10173
11253
|
/**
|
|
10174
|
-
* Decodes a
|
|
11254
|
+
* Decodes a ContentfulContentModelDeleted message from the specified reader or buffer.
|
|
10175
11255
|
* @function decode
|
|
10176
|
-
* @memberof
|
|
11256
|
+
* @memberof ContentfulContentModelDeleted
|
|
10177
11257
|
* @static
|
|
10178
11258
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
10179
11259
|
* @param {number} [length] Message length if known beforehand
|
|
10180
|
-
* @returns {
|
|
11260
|
+
* @returns {ContentfulContentModelDeleted} ContentfulContentModelDeleted
|
|
10181
11261
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
10182
11262
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
10183
11263
|
*/
|
|
10184
|
-
|
|
11264
|
+
ContentfulContentModelDeleted.decode = function decode(reader, length) {
|
|
10185
11265
|
if (!(reader instanceof $Reader))
|
|
10186
11266
|
reader = $Reader.create(reader);
|
|
10187
|
-
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();
|
|
10188
11268
|
while (reader.pos < end) {
|
|
10189
11269
|
var tag = reader.uint32();
|
|
10190
11270
|
switch (tag >>> 3) {
|
|
10191
11271
|
case 1:
|
|
10192
|
-
message.
|
|
11272
|
+
message.id = reader.string();
|
|
10193
11273
|
break;
|
|
10194
11274
|
case 2:
|
|
10195
11275
|
message.deletedAt = reader.uint64();
|
|
@@ -10203,35 +11283,35 @@ $root.ContentfulWakeupPlaylistDeleted = (function() {
|
|
|
10203
11283
|
};
|
|
10204
11284
|
|
|
10205
11285
|
/**
|
|
10206
|
-
* Decodes a
|
|
11286
|
+
* Decodes a ContentfulContentModelDeleted message from the specified reader or buffer, length delimited.
|
|
10207
11287
|
* @function decodeDelimited
|
|
10208
|
-
* @memberof
|
|
11288
|
+
* @memberof ContentfulContentModelDeleted
|
|
10209
11289
|
* @static
|
|
10210
11290
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
10211
|
-
* @returns {
|
|
11291
|
+
* @returns {ContentfulContentModelDeleted} ContentfulContentModelDeleted
|
|
10212
11292
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
10213
11293
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
10214
11294
|
*/
|
|
10215
|
-
|
|
11295
|
+
ContentfulContentModelDeleted.decodeDelimited = function decodeDelimited(reader) {
|
|
10216
11296
|
if (!(reader instanceof $Reader))
|
|
10217
11297
|
reader = new $Reader(reader);
|
|
10218
11298
|
return this.decode(reader, reader.uint32());
|
|
10219
11299
|
};
|
|
10220
11300
|
|
|
10221
11301
|
/**
|
|
10222
|
-
* Verifies a
|
|
11302
|
+
* Verifies a ContentfulContentModelDeleted message.
|
|
10223
11303
|
* @function verify
|
|
10224
|
-
* @memberof
|
|
11304
|
+
* @memberof ContentfulContentModelDeleted
|
|
10225
11305
|
* @static
|
|
10226
11306
|
* @param {Object.<string,*>} message Plain object to verify
|
|
10227
11307
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
10228
11308
|
*/
|
|
10229
|
-
|
|
11309
|
+
ContentfulContentModelDeleted.verify = function verify(message) {
|
|
10230
11310
|
if (typeof message !== "object" || message === null)
|
|
10231
11311
|
return "object expected";
|
|
10232
|
-
if (message.
|
|
10233
|
-
if (!$util.isString(message.
|
|
10234
|
-
return "
|
|
11312
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
11313
|
+
if (!$util.isString(message.id))
|
|
11314
|
+
return "id: string expected";
|
|
10235
11315
|
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
10236
11316
|
if (!$util.isInteger(message.deletedAt) && !(message.deletedAt && $util.isInteger(message.deletedAt.low) && $util.isInteger(message.deletedAt.high)))
|
|
10237
11317
|
return "deletedAt: integer|Long expected";
|
|
@@ -10239,19 +11319,19 @@ $root.ContentfulWakeupPlaylistDeleted = (function() {
|
|
|
10239
11319
|
};
|
|
10240
11320
|
|
|
10241
11321
|
/**
|
|
10242
|
-
* Creates a
|
|
11322
|
+
* Creates a ContentfulContentModelDeleted message from a plain object. Also converts values to their respective internal types.
|
|
10243
11323
|
* @function fromObject
|
|
10244
|
-
* @memberof
|
|
11324
|
+
* @memberof ContentfulContentModelDeleted
|
|
10245
11325
|
* @static
|
|
10246
11326
|
* @param {Object.<string,*>} object Plain object
|
|
10247
|
-
* @returns {
|
|
11327
|
+
* @returns {ContentfulContentModelDeleted} ContentfulContentModelDeleted
|
|
10248
11328
|
*/
|
|
10249
|
-
|
|
10250
|
-
if (object instanceof $root.
|
|
11329
|
+
ContentfulContentModelDeleted.fromObject = function fromObject(object) {
|
|
11330
|
+
if (object instanceof $root.ContentfulContentModelDeleted)
|
|
10251
11331
|
return object;
|
|
10252
|
-
var message = new $root.
|
|
10253
|
-
if (object.
|
|
10254
|
-
message.
|
|
11332
|
+
var message = new $root.ContentfulContentModelDeleted();
|
|
11333
|
+
if (object.id != null)
|
|
11334
|
+
message.id = String(object.id);
|
|
10255
11335
|
if (object.deletedAt != null)
|
|
10256
11336
|
if ($util.Long)
|
|
10257
11337
|
(message.deletedAt = $util.Long.fromValue(object.deletedAt)).unsigned = true;
|
|
@@ -10265,28 +11345,28 @@ $root.ContentfulWakeupPlaylistDeleted = (function() {
|
|
|
10265
11345
|
};
|
|
10266
11346
|
|
|
10267
11347
|
/**
|
|
10268
|
-
* Creates a plain object from a
|
|
11348
|
+
* Creates a plain object from a ContentfulContentModelDeleted message. Also converts values to other types if specified.
|
|
10269
11349
|
* @function toObject
|
|
10270
|
-
* @memberof
|
|
11350
|
+
* @memberof ContentfulContentModelDeleted
|
|
10271
11351
|
* @static
|
|
10272
|
-
* @param {
|
|
11352
|
+
* @param {ContentfulContentModelDeleted} message ContentfulContentModelDeleted
|
|
10273
11353
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
10274
11354
|
* @returns {Object.<string,*>} Plain object
|
|
10275
11355
|
*/
|
|
10276
|
-
|
|
11356
|
+
ContentfulContentModelDeleted.toObject = function toObject(message, options) {
|
|
10277
11357
|
if (!options)
|
|
10278
11358
|
options = {};
|
|
10279
11359
|
var object = {};
|
|
10280
11360
|
if (options.defaults) {
|
|
10281
|
-
object.
|
|
11361
|
+
object.id = "";
|
|
10282
11362
|
if ($util.Long) {
|
|
10283
11363
|
var long = new $util.Long(0, 0, true);
|
|
10284
11364
|
object.deletedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
10285
11365
|
} else
|
|
10286
11366
|
object.deletedAt = options.longs === String ? "0" : 0;
|
|
10287
11367
|
}
|
|
10288
|
-
if (message.
|
|
10289
|
-
object.
|
|
11368
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
11369
|
+
object.id = message.id;
|
|
10290
11370
|
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
10291
11371
|
if (typeof message.deletedAt === "number")
|
|
10292
11372
|
object.deletedAt = options.longs === String ? String(message.deletedAt) : message.deletedAt;
|
|
@@ -10296,17 +11376,17 @@ $root.ContentfulWakeupPlaylistDeleted = (function() {
|
|
|
10296
11376
|
};
|
|
10297
11377
|
|
|
10298
11378
|
/**
|
|
10299
|
-
* Converts this
|
|
11379
|
+
* Converts this ContentfulContentModelDeleted to JSON.
|
|
10300
11380
|
* @function toJSON
|
|
10301
|
-
* @memberof
|
|
11381
|
+
* @memberof ContentfulContentModelDeleted
|
|
10302
11382
|
* @instance
|
|
10303
11383
|
* @returns {Object.<string,*>} JSON object
|
|
10304
11384
|
*/
|
|
10305
|
-
|
|
11385
|
+
ContentfulContentModelDeleted.prototype.toJSON = function toJSON() {
|
|
10306
11386
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
10307
11387
|
};
|
|
10308
11388
|
|
|
10309
|
-
return
|
|
11389
|
+
return ContentfulContentModelDeleted;
|
|
10310
11390
|
})();
|
|
10311
11391
|
|
|
10312
11392
|
$root.UserRoleUpdated = (function() {
|
|
@@ -20015,13 +21095,13 @@ $root.WakeupPlaylistCreated = (function() {
|
|
|
20015
21095
|
* @exports IWakeupPlaylistCreated
|
|
20016
21096
|
* @interface IWakeupPlaylistCreated
|
|
20017
21097
|
* @property {string|null} [slug] WakeupPlaylistCreated slug
|
|
21098
|
+
* @property {number|null} [entityId] WakeupPlaylistCreated entityId
|
|
20018
21099
|
* @property {string|null} [entityType] WakeupPlaylistCreated entityType
|
|
20019
21100
|
* @property {number|Long|null} [schedule] WakeupPlaylistCreated schedule
|
|
20020
|
-
* @property {
|
|
21101
|
+
* @property {number|null} [previewMediaId] WakeupPlaylistCreated previewMediaId
|
|
20021
21102
|
* @property {string|null} [previewMediaType] WakeupPlaylistCreated previewMediaType
|
|
20022
21103
|
* @property {Array.<contentful.ISlugReference>|null} [accessGroups] WakeupPlaylistCreated accessGroups
|
|
20023
21104
|
* @property {number|Long|null} [createdAt] WakeupPlaylistCreated createdAt
|
|
20024
|
-
* @property {number|null} [entityId] WakeupPlaylistCreated entityId
|
|
20025
21105
|
*/
|
|
20026
21106
|
|
|
20027
21107
|
/**
|
|
@@ -20048,6 +21128,14 @@ $root.WakeupPlaylistCreated = (function() {
|
|
|
20048
21128
|
*/
|
|
20049
21129
|
WakeupPlaylistCreated.prototype.slug = "";
|
|
20050
21130
|
|
|
21131
|
+
/**
|
|
21132
|
+
* WakeupPlaylistCreated entityId.
|
|
21133
|
+
* @member {number} entityId
|
|
21134
|
+
* @memberof WakeupPlaylistCreated
|
|
21135
|
+
* @instance
|
|
21136
|
+
*/
|
|
21137
|
+
WakeupPlaylistCreated.prototype.entityId = 0;
|
|
21138
|
+
|
|
20051
21139
|
/**
|
|
20052
21140
|
* WakeupPlaylistCreated entityType.
|
|
20053
21141
|
* @member {string} entityType
|
|
@@ -20065,12 +21153,12 @@ $root.WakeupPlaylistCreated = (function() {
|
|
|
20065
21153
|
WakeupPlaylistCreated.prototype.schedule = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
20066
21154
|
|
|
20067
21155
|
/**
|
|
20068
|
-
* WakeupPlaylistCreated
|
|
20069
|
-
* @member {
|
|
21156
|
+
* WakeupPlaylistCreated previewMediaId.
|
|
21157
|
+
* @member {number} previewMediaId
|
|
20070
21158
|
* @memberof WakeupPlaylistCreated
|
|
20071
21159
|
* @instance
|
|
20072
21160
|
*/
|
|
20073
|
-
WakeupPlaylistCreated.prototype.
|
|
21161
|
+
WakeupPlaylistCreated.prototype.previewMediaId = 0;
|
|
20074
21162
|
|
|
20075
21163
|
/**
|
|
20076
21164
|
* WakeupPlaylistCreated previewMediaType.
|
|
@@ -20096,14 +21184,6 @@ $root.WakeupPlaylistCreated = (function() {
|
|
|
20096
21184
|
*/
|
|
20097
21185
|
WakeupPlaylistCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
20098
21186
|
|
|
20099
|
-
/**
|
|
20100
|
-
* WakeupPlaylistCreated entityId.
|
|
20101
|
-
* @member {number} entityId
|
|
20102
|
-
* @memberof WakeupPlaylistCreated
|
|
20103
|
-
* @instance
|
|
20104
|
-
*/
|
|
20105
|
-
WakeupPlaylistCreated.prototype.entityId = 0;
|
|
20106
|
-
|
|
20107
21187
|
/**
|
|
20108
21188
|
* Creates a new WakeupPlaylistCreated instance using the specified properties.
|
|
20109
21189
|
* @function create
|
|
@@ -20130,21 +21210,21 @@ $root.WakeupPlaylistCreated = (function() {
|
|
|
20130
21210
|
writer = $Writer.create();
|
|
20131
21211
|
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
20132
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);
|
|
20133
21215
|
if (message.entityType != null && message.hasOwnProperty("entityType"))
|
|
20134
|
-
writer.uint32(/* id
|
|
21216
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.entityType);
|
|
20135
21217
|
if (message.schedule != null && message.hasOwnProperty("schedule"))
|
|
20136
|
-
writer.uint32(/* id
|
|
20137
|
-
if (message.
|
|
20138
|
-
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);
|
|
20139
21221
|
if (message.previewMediaType != null && message.hasOwnProperty("previewMediaType"))
|
|
20140
|
-
writer.uint32(/* id
|
|
21222
|
+
writer.uint32(/* id 6, wireType 2 =*/50).string(message.previewMediaType);
|
|
20141
21223
|
if (message.accessGroups != null && message.accessGroups.length)
|
|
20142
21224
|
for (var i = 0; i < message.accessGroups.length; ++i)
|
|
20143
|
-
$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();
|
|
20144
21226
|
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
20145
|
-
writer.uint32(/* id
|
|
20146
|
-
if (message.entityId != null && message.hasOwnProperty("entityId"))
|
|
20147
|
-
writer.uint32(/* id 8, wireType 0 =*/64).uint32(message.entityId);
|
|
21227
|
+
writer.uint32(/* id 8, wireType 0 =*/64).uint64(message.createdAt);
|
|
20148
21228
|
return writer;
|
|
20149
21229
|
};
|
|
20150
21230
|
|
|
@@ -20183,27 +21263,27 @@ $root.WakeupPlaylistCreated = (function() {
|
|
|
20183
21263
|
message.slug = reader.string();
|
|
20184
21264
|
break;
|
|
20185
21265
|
case 2:
|
|
20186
|
-
message.
|
|
21266
|
+
message.entityId = reader.uint32();
|
|
20187
21267
|
break;
|
|
20188
21268
|
case 3:
|
|
20189
|
-
message.
|
|
21269
|
+
message.entityType = reader.string();
|
|
20190
21270
|
break;
|
|
20191
21271
|
case 4:
|
|
20192
|
-
message.
|
|
21272
|
+
message.schedule = reader.uint64();
|
|
20193
21273
|
break;
|
|
20194
21274
|
case 5:
|
|
20195
|
-
message.
|
|
21275
|
+
message.previewMediaId = reader.uint32();
|
|
20196
21276
|
break;
|
|
20197
21277
|
case 6:
|
|
21278
|
+
message.previewMediaType = reader.string();
|
|
21279
|
+
break;
|
|
21280
|
+
case 7:
|
|
20198
21281
|
if (!(message.accessGroups && message.accessGroups.length))
|
|
20199
21282
|
message.accessGroups = [];
|
|
20200
21283
|
message.accessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
20201
21284
|
break;
|
|
20202
|
-
case 7:
|
|
20203
|
-
message.createdAt = reader.uint64();
|
|
20204
|
-
break;
|
|
20205
21285
|
case 8:
|
|
20206
|
-
message.
|
|
21286
|
+
message.createdAt = reader.uint64();
|
|
20207
21287
|
break;
|
|
20208
21288
|
default:
|
|
20209
21289
|
reader.skipType(tag & 7);
|
|
@@ -20243,15 +21323,18 @@ $root.WakeupPlaylistCreated = (function() {
|
|
|
20243
21323
|
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
20244
21324
|
if (!$util.isString(message.slug))
|
|
20245
21325
|
return "slug: string expected";
|
|
21326
|
+
if (message.entityId != null && message.hasOwnProperty("entityId"))
|
|
21327
|
+
if (!$util.isInteger(message.entityId))
|
|
21328
|
+
return "entityId: integer expected";
|
|
20246
21329
|
if (message.entityType != null && message.hasOwnProperty("entityType"))
|
|
20247
21330
|
if (!$util.isString(message.entityType))
|
|
20248
21331
|
return "entityType: string expected";
|
|
20249
21332
|
if (message.schedule != null && message.hasOwnProperty("schedule"))
|
|
20250
21333
|
if (!$util.isInteger(message.schedule) && !(message.schedule && $util.isInteger(message.schedule.low) && $util.isInteger(message.schedule.high)))
|
|
20251
21334
|
return "schedule: integer|Long expected";
|
|
20252
|
-
if (message.
|
|
20253
|
-
if (!$util.
|
|
20254
|
-
return "
|
|
21335
|
+
if (message.previewMediaId != null && message.hasOwnProperty("previewMediaId"))
|
|
21336
|
+
if (!$util.isInteger(message.previewMediaId))
|
|
21337
|
+
return "previewMediaId: integer expected";
|
|
20255
21338
|
if (message.previewMediaType != null && message.hasOwnProperty("previewMediaType"))
|
|
20256
21339
|
if (!$util.isString(message.previewMediaType))
|
|
20257
21340
|
return "previewMediaType: string expected";
|
|
@@ -20267,9 +21350,6 @@ $root.WakeupPlaylistCreated = (function() {
|
|
|
20267
21350
|
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
20268
21351
|
if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
|
|
20269
21352
|
return "createdAt: integer|Long expected";
|
|
20270
|
-
if (message.entityId != null && message.hasOwnProperty("entityId"))
|
|
20271
|
-
if (!$util.isInteger(message.entityId))
|
|
20272
|
-
return "entityId: integer expected";
|
|
20273
21353
|
return null;
|
|
20274
21354
|
};
|
|
20275
21355
|
|
|
@@ -20287,6 +21367,8 @@ $root.WakeupPlaylistCreated = (function() {
|
|
|
20287
21367
|
var message = new $root.WakeupPlaylistCreated();
|
|
20288
21368
|
if (object.slug != null)
|
|
20289
21369
|
message.slug = String(object.slug);
|
|
21370
|
+
if (object.entityId != null)
|
|
21371
|
+
message.entityId = object.entityId >>> 0;
|
|
20290
21372
|
if (object.entityType != null)
|
|
20291
21373
|
message.entityType = String(object.entityType);
|
|
20292
21374
|
if (object.schedule != null)
|
|
@@ -20298,8 +21380,8 @@ $root.WakeupPlaylistCreated = (function() {
|
|
|
20298
21380
|
message.schedule = object.schedule;
|
|
20299
21381
|
else if (typeof object.schedule === "object")
|
|
20300
21382
|
message.schedule = new $util.LongBits(object.schedule.low >>> 0, object.schedule.high >>> 0).toNumber(true);
|
|
20301
|
-
if (object.
|
|
20302
|
-
message.
|
|
21383
|
+
if (object.previewMediaId != null)
|
|
21384
|
+
message.previewMediaId = object.previewMediaId >>> 0;
|
|
20303
21385
|
if (object.previewMediaType != null)
|
|
20304
21386
|
message.previewMediaType = String(object.previewMediaType);
|
|
20305
21387
|
if (object.accessGroups) {
|
|
@@ -20321,8 +21403,6 @@ $root.WakeupPlaylistCreated = (function() {
|
|
|
20321
21403
|
message.createdAt = object.createdAt;
|
|
20322
21404
|
else if (typeof object.createdAt === "object")
|
|
20323
21405
|
message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
|
|
20324
|
-
if (object.entityId != null)
|
|
20325
|
-
message.entityId = object.entityId >>> 0;
|
|
20326
21406
|
return message;
|
|
20327
21407
|
};
|
|
20328
21408
|
|
|
@@ -20343,23 +21423,25 @@ $root.WakeupPlaylistCreated = (function() {
|
|
|
20343
21423
|
object.accessGroups = [];
|
|
20344
21424
|
if (options.defaults) {
|
|
20345
21425
|
object.slug = "";
|
|
21426
|
+
object.entityId = 0;
|
|
20346
21427
|
object.entityType = "";
|
|
20347
21428
|
if ($util.Long) {
|
|
20348
21429
|
var long = new $util.Long(0, 0, true);
|
|
20349
21430
|
object.schedule = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
20350
21431
|
} else
|
|
20351
21432
|
object.schedule = options.longs === String ? "0" : 0;
|
|
20352
|
-
object.
|
|
21433
|
+
object.previewMediaId = 0;
|
|
20353
21434
|
object.previewMediaType = "";
|
|
20354
21435
|
if ($util.Long) {
|
|
20355
21436
|
var long = new $util.Long(0, 0, true);
|
|
20356
21437
|
object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
20357
21438
|
} else
|
|
20358
21439
|
object.createdAt = options.longs === String ? "0" : 0;
|
|
20359
|
-
object.entityId = 0;
|
|
20360
21440
|
}
|
|
20361
21441
|
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
20362
21442
|
object.slug = message.slug;
|
|
21443
|
+
if (message.entityId != null && message.hasOwnProperty("entityId"))
|
|
21444
|
+
object.entityId = message.entityId;
|
|
20363
21445
|
if (message.entityType != null && message.hasOwnProperty("entityType"))
|
|
20364
21446
|
object.entityType = message.entityType;
|
|
20365
21447
|
if (message.schedule != null && message.hasOwnProperty("schedule"))
|
|
@@ -20367,8 +21449,8 @@ $root.WakeupPlaylistCreated = (function() {
|
|
|
20367
21449
|
object.schedule = options.longs === String ? String(message.schedule) : message.schedule;
|
|
20368
21450
|
else
|
|
20369
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;
|
|
20370
|
-
if (message.
|
|
20371
|
-
object.
|
|
21452
|
+
if (message.previewMediaId != null && message.hasOwnProperty("previewMediaId"))
|
|
21453
|
+
object.previewMediaId = message.previewMediaId;
|
|
20372
21454
|
if (message.previewMediaType != null && message.hasOwnProperty("previewMediaType"))
|
|
20373
21455
|
object.previewMediaType = message.previewMediaType;
|
|
20374
21456
|
if (message.accessGroups && message.accessGroups.length) {
|
|
@@ -20381,8 +21463,6 @@ $root.WakeupPlaylistCreated = (function() {
|
|
|
20381
21463
|
object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
|
|
20382
21464
|
else
|
|
20383
21465
|
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;
|
|
20384
|
-
if (message.entityId != null && message.hasOwnProperty("entityId"))
|
|
20385
|
-
object.entityId = message.entityId;
|
|
20386
21466
|
return object;
|
|
20387
21467
|
};
|
|
20388
21468
|
|
|
@@ -20407,13 +21487,13 @@ $root.WakeupPlaylistUpdated = (function() {
|
|
|
20407
21487
|
* @exports IWakeupPlaylistUpdated
|
|
20408
21488
|
* @interface IWakeupPlaylistUpdated
|
|
20409
21489
|
* @property {string|null} [slug] WakeupPlaylistUpdated slug
|
|
21490
|
+
* @property {number|null} [entityId] WakeupPlaylistUpdated entityId
|
|
20410
21491
|
* @property {string|null} [entityType] WakeupPlaylistUpdated entityType
|
|
20411
21492
|
* @property {number|Long|null} [schedule] WakeupPlaylistUpdated schedule
|
|
20412
|
-
* @property {
|
|
21493
|
+
* @property {number|null} [previewMediaId] WakeupPlaylistUpdated previewMediaId
|
|
20413
21494
|
* @property {string|null} [previewMediaType] WakeupPlaylistUpdated previewMediaType
|
|
20414
21495
|
* @property {Array.<contentful.ISlugReference>|null} [accessGroups] WakeupPlaylistUpdated accessGroups
|
|
20415
21496
|
* @property {number|Long|null} [updatedAt] WakeupPlaylistUpdated updatedAt
|
|
20416
|
-
* @property {number|null} [entityId] WakeupPlaylistUpdated entityId
|
|
20417
21497
|
*/
|
|
20418
21498
|
|
|
20419
21499
|
/**
|
|
@@ -20440,6 +21520,14 @@ $root.WakeupPlaylistUpdated = (function() {
|
|
|
20440
21520
|
*/
|
|
20441
21521
|
WakeupPlaylistUpdated.prototype.slug = "";
|
|
20442
21522
|
|
|
21523
|
+
/**
|
|
21524
|
+
* WakeupPlaylistUpdated entityId.
|
|
21525
|
+
* @member {number} entityId
|
|
21526
|
+
* @memberof WakeupPlaylistUpdated
|
|
21527
|
+
* @instance
|
|
21528
|
+
*/
|
|
21529
|
+
WakeupPlaylistUpdated.prototype.entityId = 0;
|
|
21530
|
+
|
|
20443
21531
|
/**
|
|
20444
21532
|
* WakeupPlaylistUpdated entityType.
|
|
20445
21533
|
* @member {string} entityType
|
|
@@ -20457,12 +21545,12 @@ $root.WakeupPlaylistUpdated = (function() {
|
|
|
20457
21545
|
WakeupPlaylistUpdated.prototype.schedule = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
20458
21546
|
|
|
20459
21547
|
/**
|
|
20460
|
-
* WakeupPlaylistUpdated
|
|
20461
|
-
* @member {
|
|
21548
|
+
* WakeupPlaylistUpdated previewMediaId.
|
|
21549
|
+
* @member {number} previewMediaId
|
|
20462
21550
|
* @memberof WakeupPlaylistUpdated
|
|
20463
21551
|
* @instance
|
|
20464
21552
|
*/
|
|
20465
|
-
WakeupPlaylistUpdated.prototype.
|
|
21553
|
+
WakeupPlaylistUpdated.prototype.previewMediaId = 0;
|
|
20466
21554
|
|
|
20467
21555
|
/**
|
|
20468
21556
|
* WakeupPlaylistUpdated previewMediaType.
|
|
@@ -20488,14 +21576,6 @@ $root.WakeupPlaylistUpdated = (function() {
|
|
|
20488
21576
|
*/
|
|
20489
21577
|
WakeupPlaylistUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
20490
21578
|
|
|
20491
|
-
/**
|
|
20492
|
-
* WakeupPlaylistUpdated entityId.
|
|
20493
|
-
* @member {number} entityId
|
|
20494
|
-
* @memberof WakeupPlaylistUpdated
|
|
20495
|
-
* @instance
|
|
20496
|
-
*/
|
|
20497
|
-
WakeupPlaylistUpdated.prototype.entityId = 0;
|
|
20498
|
-
|
|
20499
21579
|
/**
|
|
20500
21580
|
* Creates a new WakeupPlaylistUpdated instance using the specified properties.
|
|
20501
21581
|
* @function create
|
|
@@ -20522,21 +21602,21 @@ $root.WakeupPlaylistUpdated = (function() {
|
|
|
20522
21602
|
writer = $Writer.create();
|
|
20523
21603
|
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
20524
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);
|
|
20525
21607
|
if (message.entityType != null && message.hasOwnProperty("entityType"))
|
|
20526
|
-
writer.uint32(/* id
|
|
21608
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.entityType);
|
|
20527
21609
|
if (message.schedule != null && message.hasOwnProperty("schedule"))
|
|
20528
|
-
writer.uint32(/* id
|
|
20529
|
-
if (message.
|
|
20530
|
-
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);
|
|
20531
21613
|
if (message.previewMediaType != null && message.hasOwnProperty("previewMediaType"))
|
|
20532
|
-
writer.uint32(/* id
|
|
21614
|
+
writer.uint32(/* id 6, wireType 2 =*/50).string(message.previewMediaType);
|
|
20533
21615
|
if (message.accessGroups != null && message.accessGroups.length)
|
|
20534
21616
|
for (var i = 0; i < message.accessGroups.length; ++i)
|
|
20535
|
-
$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();
|
|
20536
21618
|
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
20537
|
-
writer.uint32(/* id
|
|
20538
|
-
if (message.entityId != null && message.hasOwnProperty("entityId"))
|
|
20539
|
-
writer.uint32(/* id 8, wireType 0 =*/64).uint32(message.entityId);
|
|
21619
|
+
writer.uint32(/* id 8, wireType 0 =*/64).uint64(message.updatedAt);
|
|
20540
21620
|
return writer;
|
|
20541
21621
|
};
|
|
20542
21622
|
|
|
@@ -20575,27 +21655,27 @@ $root.WakeupPlaylistUpdated = (function() {
|
|
|
20575
21655
|
message.slug = reader.string();
|
|
20576
21656
|
break;
|
|
20577
21657
|
case 2:
|
|
20578
|
-
message.
|
|
21658
|
+
message.entityId = reader.uint32();
|
|
20579
21659
|
break;
|
|
20580
21660
|
case 3:
|
|
20581
|
-
message.
|
|
21661
|
+
message.entityType = reader.string();
|
|
20582
21662
|
break;
|
|
20583
21663
|
case 4:
|
|
20584
|
-
message.
|
|
21664
|
+
message.schedule = reader.uint64();
|
|
20585
21665
|
break;
|
|
20586
21666
|
case 5:
|
|
20587
|
-
message.
|
|
21667
|
+
message.previewMediaId = reader.uint32();
|
|
20588
21668
|
break;
|
|
20589
21669
|
case 6:
|
|
21670
|
+
message.previewMediaType = reader.string();
|
|
21671
|
+
break;
|
|
21672
|
+
case 7:
|
|
20590
21673
|
if (!(message.accessGroups && message.accessGroups.length))
|
|
20591
21674
|
message.accessGroups = [];
|
|
20592
21675
|
message.accessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
20593
21676
|
break;
|
|
20594
|
-
case 7:
|
|
20595
|
-
message.updatedAt = reader.uint64();
|
|
20596
|
-
break;
|
|
20597
21677
|
case 8:
|
|
20598
|
-
message.
|
|
21678
|
+
message.updatedAt = reader.uint64();
|
|
20599
21679
|
break;
|
|
20600
21680
|
default:
|
|
20601
21681
|
reader.skipType(tag & 7);
|
|
@@ -20635,15 +21715,18 @@ $root.WakeupPlaylistUpdated = (function() {
|
|
|
20635
21715
|
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
20636
21716
|
if (!$util.isString(message.slug))
|
|
20637
21717
|
return "slug: string expected";
|
|
21718
|
+
if (message.entityId != null && message.hasOwnProperty("entityId"))
|
|
21719
|
+
if (!$util.isInteger(message.entityId))
|
|
21720
|
+
return "entityId: integer expected";
|
|
20638
21721
|
if (message.entityType != null && message.hasOwnProperty("entityType"))
|
|
20639
21722
|
if (!$util.isString(message.entityType))
|
|
20640
21723
|
return "entityType: string expected";
|
|
20641
21724
|
if (message.schedule != null && message.hasOwnProperty("schedule"))
|
|
20642
21725
|
if (!$util.isInteger(message.schedule) && !(message.schedule && $util.isInteger(message.schedule.low) && $util.isInteger(message.schedule.high)))
|
|
20643
21726
|
return "schedule: integer|Long expected";
|
|
20644
|
-
if (message.
|
|
20645
|
-
if (!$util.
|
|
20646
|
-
return "
|
|
21727
|
+
if (message.previewMediaId != null && message.hasOwnProperty("previewMediaId"))
|
|
21728
|
+
if (!$util.isInteger(message.previewMediaId))
|
|
21729
|
+
return "previewMediaId: integer expected";
|
|
20647
21730
|
if (message.previewMediaType != null && message.hasOwnProperty("previewMediaType"))
|
|
20648
21731
|
if (!$util.isString(message.previewMediaType))
|
|
20649
21732
|
return "previewMediaType: string expected";
|
|
@@ -20659,9 +21742,6 @@ $root.WakeupPlaylistUpdated = (function() {
|
|
|
20659
21742
|
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
20660
21743
|
if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
|
|
20661
21744
|
return "updatedAt: integer|Long expected";
|
|
20662
|
-
if (message.entityId != null && message.hasOwnProperty("entityId"))
|
|
20663
|
-
if (!$util.isInteger(message.entityId))
|
|
20664
|
-
return "entityId: integer expected";
|
|
20665
21745
|
return null;
|
|
20666
21746
|
};
|
|
20667
21747
|
|
|
@@ -20679,6 +21759,8 @@ $root.WakeupPlaylistUpdated = (function() {
|
|
|
20679
21759
|
var message = new $root.WakeupPlaylistUpdated();
|
|
20680
21760
|
if (object.slug != null)
|
|
20681
21761
|
message.slug = String(object.slug);
|
|
21762
|
+
if (object.entityId != null)
|
|
21763
|
+
message.entityId = object.entityId >>> 0;
|
|
20682
21764
|
if (object.entityType != null)
|
|
20683
21765
|
message.entityType = String(object.entityType);
|
|
20684
21766
|
if (object.schedule != null)
|
|
@@ -20690,8 +21772,8 @@ $root.WakeupPlaylistUpdated = (function() {
|
|
|
20690
21772
|
message.schedule = object.schedule;
|
|
20691
21773
|
else if (typeof object.schedule === "object")
|
|
20692
21774
|
message.schedule = new $util.LongBits(object.schedule.low >>> 0, object.schedule.high >>> 0).toNumber(true);
|
|
20693
|
-
if (object.
|
|
20694
|
-
message.
|
|
21775
|
+
if (object.previewMediaId != null)
|
|
21776
|
+
message.previewMediaId = object.previewMediaId >>> 0;
|
|
20695
21777
|
if (object.previewMediaType != null)
|
|
20696
21778
|
message.previewMediaType = String(object.previewMediaType);
|
|
20697
21779
|
if (object.accessGroups) {
|
|
@@ -20713,8 +21795,6 @@ $root.WakeupPlaylistUpdated = (function() {
|
|
|
20713
21795
|
message.updatedAt = object.updatedAt;
|
|
20714
21796
|
else if (typeof object.updatedAt === "object")
|
|
20715
21797
|
message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
|
|
20716
|
-
if (object.entityId != null)
|
|
20717
|
-
message.entityId = object.entityId >>> 0;
|
|
20718
21798
|
return message;
|
|
20719
21799
|
};
|
|
20720
21800
|
|
|
@@ -20735,23 +21815,25 @@ $root.WakeupPlaylistUpdated = (function() {
|
|
|
20735
21815
|
object.accessGroups = [];
|
|
20736
21816
|
if (options.defaults) {
|
|
20737
21817
|
object.slug = "";
|
|
21818
|
+
object.entityId = 0;
|
|
20738
21819
|
object.entityType = "";
|
|
20739
21820
|
if ($util.Long) {
|
|
20740
21821
|
var long = new $util.Long(0, 0, true);
|
|
20741
21822
|
object.schedule = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
20742
21823
|
} else
|
|
20743
21824
|
object.schedule = options.longs === String ? "0" : 0;
|
|
20744
|
-
object.
|
|
21825
|
+
object.previewMediaId = 0;
|
|
20745
21826
|
object.previewMediaType = "";
|
|
20746
21827
|
if ($util.Long) {
|
|
20747
21828
|
var long = new $util.Long(0, 0, true);
|
|
20748
21829
|
object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
20749
21830
|
} else
|
|
20750
21831
|
object.updatedAt = options.longs === String ? "0" : 0;
|
|
20751
|
-
object.entityId = 0;
|
|
20752
21832
|
}
|
|
20753
21833
|
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
20754
21834
|
object.slug = message.slug;
|
|
21835
|
+
if (message.entityId != null && message.hasOwnProperty("entityId"))
|
|
21836
|
+
object.entityId = message.entityId;
|
|
20755
21837
|
if (message.entityType != null && message.hasOwnProperty("entityType"))
|
|
20756
21838
|
object.entityType = message.entityType;
|
|
20757
21839
|
if (message.schedule != null && message.hasOwnProperty("schedule"))
|
|
@@ -20759,8 +21841,8 @@ $root.WakeupPlaylistUpdated = (function() {
|
|
|
20759
21841
|
object.schedule = options.longs === String ? String(message.schedule) : message.schedule;
|
|
20760
21842
|
else
|
|
20761
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;
|
|
20762
|
-
if (message.
|
|
20763
|
-
object.
|
|
21844
|
+
if (message.previewMediaId != null && message.hasOwnProperty("previewMediaId"))
|
|
21845
|
+
object.previewMediaId = message.previewMediaId;
|
|
20764
21846
|
if (message.previewMediaType != null && message.hasOwnProperty("previewMediaType"))
|
|
20765
21847
|
object.previewMediaType = message.previewMediaType;
|
|
20766
21848
|
if (message.accessGroups && message.accessGroups.length) {
|
|
@@ -20773,8 +21855,6 @@ $root.WakeupPlaylistUpdated = (function() {
|
|
|
20773
21855
|
object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
|
|
20774
21856
|
else
|
|
20775
21857
|
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;
|
|
20776
|
-
if (message.entityId != null && message.hasOwnProperty("entityId"))
|
|
20777
|
-
object.entityId = message.entityId;
|
|
20778
21858
|
return object;
|
|
20779
21859
|
};
|
|
20780
21860
|
|
|
@@ -20799,9 +21879,9 @@ $root.WakeupPlaylistDeleted = (function() {
|
|
|
20799
21879
|
* @exports IWakeupPlaylistDeleted
|
|
20800
21880
|
* @interface IWakeupPlaylistDeleted
|
|
20801
21881
|
* @property {string|null} [slug] WakeupPlaylistDeleted slug
|
|
21882
|
+
* @property {number|null} [entityId] WakeupPlaylistDeleted entityId
|
|
20802
21883
|
* @property {string|null} [entityType] WakeupPlaylistDeleted entityType
|
|
20803
21884
|
* @property {number|Long|null} [deletedAt] WakeupPlaylistDeleted deletedAt
|
|
20804
|
-
* @property {number|null} [entityId] WakeupPlaylistDeleted entityId
|
|
20805
21885
|
*/
|
|
20806
21886
|
|
|
20807
21887
|
/**
|
|
@@ -20827,6 +21907,14 @@ $root.WakeupPlaylistDeleted = (function() {
|
|
|
20827
21907
|
*/
|
|
20828
21908
|
WakeupPlaylistDeleted.prototype.slug = "";
|
|
20829
21909
|
|
|
21910
|
+
/**
|
|
21911
|
+
* WakeupPlaylistDeleted entityId.
|
|
21912
|
+
* @member {number} entityId
|
|
21913
|
+
* @memberof WakeupPlaylistDeleted
|
|
21914
|
+
* @instance
|
|
21915
|
+
*/
|
|
21916
|
+
WakeupPlaylistDeleted.prototype.entityId = 0;
|
|
21917
|
+
|
|
20830
21918
|
/**
|
|
20831
21919
|
* WakeupPlaylistDeleted entityType.
|
|
20832
21920
|
* @member {string} entityType
|
|
@@ -20843,14 +21931,6 @@ $root.WakeupPlaylistDeleted = (function() {
|
|
|
20843
21931
|
*/
|
|
20844
21932
|
WakeupPlaylistDeleted.prototype.deletedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
20845
21933
|
|
|
20846
|
-
/**
|
|
20847
|
-
* WakeupPlaylistDeleted entityId.
|
|
20848
|
-
* @member {number} entityId
|
|
20849
|
-
* @memberof WakeupPlaylistDeleted
|
|
20850
|
-
* @instance
|
|
20851
|
-
*/
|
|
20852
|
-
WakeupPlaylistDeleted.prototype.entityId = 0;
|
|
20853
|
-
|
|
20854
21934
|
/**
|
|
20855
21935
|
* Creates a new WakeupPlaylistDeleted instance using the specified properties.
|
|
20856
21936
|
* @function create
|
|
@@ -20877,12 +21957,12 @@ $root.WakeupPlaylistDeleted = (function() {
|
|
|
20877
21957
|
writer = $Writer.create();
|
|
20878
21958
|
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
20879
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);
|
|
20880
21962
|
if (message.entityType != null && message.hasOwnProperty("entityType"))
|
|
20881
|
-
writer.uint32(/* id
|
|
21963
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.entityType);
|
|
20882
21964
|
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
20883
|
-
writer.uint32(/* id
|
|
20884
|
-
if (message.entityId != null && message.hasOwnProperty("entityId"))
|
|
20885
|
-
writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.entityId);
|
|
21965
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.deletedAt);
|
|
20886
21966
|
return writer;
|
|
20887
21967
|
};
|
|
20888
21968
|
|
|
@@ -20921,13 +22001,13 @@ $root.WakeupPlaylistDeleted = (function() {
|
|
|
20921
22001
|
message.slug = reader.string();
|
|
20922
22002
|
break;
|
|
20923
22003
|
case 2:
|
|
20924
|
-
message.
|
|
22004
|
+
message.entityId = reader.uint32();
|
|
20925
22005
|
break;
|
|
20926
22006
|
case 3:
|
|
20927
|
-
message.
|
|
22007
|
+
message.entityType = reader.string();
|
|
20928
22008
|
break;
|
|
20929
22009
|
case 4:
|
|
20930
|
-
message.
|
|
22010
|
+
message.deletedAt = reader.uint64();
|
|
20931
22011
|
break;
|
|
20932
22012
|
default:
|
|
20933
22013
|
reader.skipType(tag & 7);
|
|
@@ -20967,15 +22047,15 @@ $root.WakeupPlaylistDeleted = (function() {
|
|
|
20967
22047
|
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
20968
22048
|
if (!$util.isString(message.slug))
|
|
20969
22049
|
return "slug: string expected";
|
|
22050
|
+
if (message.entityId != null && message.hasOwnProperty("entityId"))
|
|
22051
|
+
if (!$util.isInteger(message.entityId))
|
|
22052
|
+
return "entityId: integer expected";
|
|
20970
22053
|
if (message.entityType != null && message.hasOwnProperty("entityType"))
|
|
20971
22054
|
if (!$util.isString(message.entityType))
|
|
20972
22055
|
return "entityType: string expected";
|
|
20973
22056
|
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
20974
22057
|
if (!$util.isInteger(message.deletedAt) && !(message.deletedAt && $util.isInteger(message.deletedAt.low) && $util.isInteger(message.deletedAt.high)))
|
|
20975
22058
|
return "deletedAt: integer|Long expected";
|
|
20976
|
-
if (message.entityId != null && message.hasOwnProperty("entityId"))
|
|
20977
|
-
if (!$util.isInteger(message.entityId))
|
|
20978
|
-
return "entityId: integer expected";
|
|
20979
22059
|
return null;
|
|
20980
22060
|
};
|
|
20981
22061
|
|
|
@@ -20993,6 +22073,8 @@ $root.WakeupPlaylistDeleted = (function() {
|
|
|
20993
22073
|
var message = new $root.WakeupPlaylistDeleted();
|
|
20994
22074
|
if (object.slug != null)
|
|
20995
22075
|
message.slug = String(object.slug);
|
|
22076
|
+
if (object.entityId != null)
|
|
22077
|
+
message.entityId = object.entityId >>> 0;
|
|
20996
22078
|
if (object.entityType != null)
|
|
20997
22079
|
message.entityType = String(object.entityType);
|
|
20998
22080
|
if (object.deletedAt != null)
|
|
@@ -21004,8 +22086,6 @@ $root.WakeupPlaylistDeleted = (function() {
|
|
|
21004
22086
|
message.deletedAt = object.deletedAt;
|
|
21005
22087
|
else if (typeof object.deletedAt === "object")
|
|
21006
22088
|
message.deletedAt = new $util.LongBits(object.deletedAt.low >>> 0, object.deletedAt.high >>> 0).toNumber(true);
|
|
21007
|
-
if (object.entityId != null)
|
|
21008
|
-
message.entityId = object.entityId >>> 0;
|
|
21009
22089
|
return message;
|
|
21010
22090
|
};
|
|
21011
22091
|
|
|
@@ -21024,16 +22104,18 @@ $root.WakeupPlaylistDeleted = (function() {
|
|
|
21024
22104
|
var object = {};
|
|
21025
22105
|
if (options.defaults) {
|
|
21026
22106
|
object.slug = "";
|
|
22107
|
+
object.entityId = 0;
|
|
21027
22108
|
object.entityType = "";
|
|
21028
22109
|
if ($util.Long) {
|
|
21029
22110
|
var long = new $util.Long(0, 0, true);
|
|
21030
22111
|
object.deletedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
21031
22112
|
} else
|
|
21032
22113
|
object.deletedAt = options.longs === String ? "0" : 0;
|
|
21033
|
-
object.entityId = 0;
|
|
21034
22114
|
}
|
|
21035
22115
|
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
21036
22116
|
object.slug = message.slug;
|
|
22117
|
+
if (message.entityId != null && message.hasOwnProperty("entityId"))
|
|
22118
|
+
object.entityId = message.entityId;
|
|
21037
22119
|
if (message.entityType != null && message.hasOwnProperty("entityType"))
|
|
21038
22120
|
object.entityType = message.entityType;
|
|
21039
22121
|
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
@@ -21041,8 +22123,6 @@ $root.WakeupPlaylistDeleted = (function() {
|
|
|
21041
22123
|
object.deletedAt = options.longs === String ? String(message.deletedAt) : message.deletedAt;
|
|
21042
22124
|
else
|
|
21043
22125
|
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;
|
|
21044
|
-
if (message.entityId != null && message.hasOwnProperty("entityId"))
|
|
21045
|
-
object.entityId = message.entityId;
|
|
21046
22126
|
return object;
|
|
21047
22127
|
};
|
|
21048
22128
|
|