@headspace/protos-events 1.152.0 → 1.154.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 +445 -0
- package/lib/index.js +1180 -0
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -222,6 +222,54 @@ $root.date = (function() {
|
|
|
222
222
|
return date;
|
|
223
223
|
})();
|
|
224
224
|
|
|
225
|
+
$root.auth0 = (function() {
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* Namespace auth0.
|
|
229
|
+
* @exports auth0
|
|
230
|
+
* @namespace
|
|
231
|
+
*/
|
|
232
|
+
var auth0 = {};
|
|
233
|
+
|
|
234
|
+
auth0.connections = (function() {
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* Namespace connections.
|
|
238
|
+
* @memberof auth0
|
|
239
|
+
* @namespace
|
|
240
|
+
*/
|
|
241
|
+
var connections = {};
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* Connection enum.
|
|
245
|
+
* @name auth0.connections.Connection
|
|
246
|
+
* @enum {string}
|
|
247
|
+
* @property {number} UNKNOWN_CONNECTION=0 UNKNOWN_CONNECTION value
|
|
248
|
+
* @property {number} APPLE=1 APPLE value
|
|
249
|
+
* @property {number} FACEBOOK=2 FACEBOOK value
|
|
250
|
+
* @property {number} ONELOGIN=3 ONELOGIN value
|
|
251
|
+
* @property {number} SPOTIFY=4 SPOTIFY value
|
|
252
|
+
* @property {number} USER_PASSWORD_HEADSPACE=5 USER_PASSWORD_HEADSPACE value
|
|
253
|
+
* @property {number} VIRGINPULSE=6 VIRGINPULSE value
|
|
254
|
+
*/
|
|
255
|
+
connections.Connection = (function() {
|
|
256
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
257
|
+
values[valuesById[0] = "UNKNOWN_CONNECTION"] = 0;
|
|
258
|
+
values[valuesById[1] = "APPLE"] = 1;
|
|
259
|
+
values[valuesById[2] = "FACEBOOK"] = 2;
|
|
260
|
+
values[valuesById[3] = "ONELOGIN"] = 3;
|
|
261
|
+
values[valuesById[4] = "SPOTIFY"] = 4;
|
|
262
|
+
values[valuesById[5] = "USER_PASSWORD_HEADSPACE"] = 5;
|
|
263
|
+
values[valuesById[6] = "VIRGINPULSE"] = 6;
|
|
264
|
+
return values;
|
|
265
|
+
})();
|
|
266
|
+
|
|
267
|
+
return connections;
|
|
268
|
+
})();
|
|
269
|
+
|
|
270
|
+
return auth0;
|
|
271
|
+
})();
|
|
272
|
+
|
|
225
273
|
$root.contentful = (function() {
|
|
226
274
|
|
|
227
275
|
/**
|
|
@@ -10409,6 +10457,290 @@ $root.userdomain = (function() {
|
|
|
10409
10457
|
return userdomain;
|
|
10410
10458
|
})();
|
|
10411
10459
|
|
|
10460
|
+
$root.UnlinkedConnection = (function() {
|
|
10461
|
+
|
|
10462
|
+
/**
|
|
10463
|
+
* Properties of an UnlinkedConnection.
|
|
10464
|
+
* @exports IUnlinkedConnection
|
|
10465
|
+
* @interface IUnlinkedConnection
|
|
10466
|
+
* @property {string|null} [hsId] UnlinkedConnection hsId
|
|
10467
|
+
* @property {auth0.connections.Connection|null} [connection] UnlinkedConnection connection
|
|
10468
|
+
* @property {number|Long|null} [unlinkedAt] UnlinkedConnection unlinkedAt
|
|
10469
|
+
*/
|
|
10470
|
+
|
|
10471
|
+
/**
|
|
10472
|
+
* Constructs a new UnlinkedConnection.
|
|
10473
|
+
* @exports UnlinkedConnection
|
|
10474
|
+
* @classdesc Represents an UnlinkedConnection.
|
|
10475
|
+
* @implements IUnlinkedConnection
|
|
10476
|
+
* @constructor
|
|
10477
|
+
* @param {IUnlinkedConnection=} [properties] Properties to set
|
|
10478
|
+
*/
|
|
10479
|
+
function UnlinkedConnection(properties) {
|
|
10480
|
+
if (properties)
|
|
10481
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
10482
|
+
if (properties[keys[i]] != null)
|
|
10483
|
+
this[keys[i]] = properties[keys[i]];
|
|
10484
|
+
}
|
|
10485
|
+
|
|
10486
|
+
/**
|
|
10487
|
+
* UnlinkedConnection hsId.
|
|
10488
|
+
* @member {string} hsId
|
|
10489
|
+
* @memberof UnlinkedConnection
|
|
10490
|
+
* @instance
|
|
10491
|
+
*/
|
|
10492
|
+
UnlinkedConnection.prototype.hsId = "";
|
|
10493
|
+
|
|
10494
|
+
/**
|
|
10495
|
+
* UnlinkedConnection connection.
|
|
10496
|
+
* @member {auth0.connections.Connection} connection
|
|
10497
|
+
* @memberof UnlinkedConnection
|
|
10498
|
+
* @instance
|
|
10499
|
+
*/
|
|
10500
|
+
UnlinkedConnection.prototype.connection = 0;
|
|
10501
|
+
|
|
10502
|
+
/**
|
|
10503
|
+
* UnlinkedConnection unlinkedAt.
|
|
10504
|
+
* @member {number|Long} unlinkedAt
|
|
10505
|
+
* @memberof UnlinkedConnection
|
|
10506
|
+
* @instance
|
|
10507
|
+
*/
|
|
10508
|
+
UnlinkedConnection.prototype.unlinkedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
10509
|
+
|
|
10510
|
+
/**
|
|
10511
|
+
* Creates a new UnlinkedConnection instance using the specified properties.
|
|
10512
|
+
* @function create
|
|
10513
|
+
* @memberof UnlinkedConnection
|
|
10514
|
+
* @static
|
|
10515
|
+
* @param {IUnlinkedConnection=} [properties] Properties to set
|
|
10516
|
+
* @returns {UnlinkedConnection} UnlinkedConnection instance
|
|
10517
|
+
*/
|
|
10518
|
+
UnlinkedConnection.create = function create(properties) {
|
|
10519
|
+
return new UnlinkedConnection(properties);
|
|
10520
|
+
};
|
|
10521
|
+
|
|
10522
|
+
/**
|
|
10523
|
+
* Encodes the specified UnlinkedConnection message. Does not implicitly {@link UnlinkedConnection.verify|verify} messages.
|
|
10524
|
+
* @function encode
|
|
10525
|
+
* @memberof UnlinkedConnection
|
|
10526
|
+
* @static
|
|
10527
|
+
* @param {IUnlinkedConnection} message UnlinkedConnection message or plain object to encode
|
|
10528
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
10529
|
+
* @returns {$protobuf.Writer} Writer
|
|
10530
|
+
*/
|
|
10531
|
+
UnlinkedConnection.encode = function encode(message, writer) {
|
|
10532
|
+
if (!writer)
|
|
10533
|
+
writer = $Writer.create();
|
|
10534
|
+
if (message.hsId != null && message.hasOwnProperty("hsId"))
|
|
10535
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsId);
|
|
10536
|
+
if (message.connection != null && message.hasOwnProperty("connection"))
|
|
10537
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.connection);
|
|
10538
|
+
if (message.unlinkedAt != null && message.hasOwnProperty("unlinkedAt"))
|
|
10539
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.unlinkedAt);
|
|
10540
|
+
return writer;
|
|
10541
|
+
};
|
|
10542
|
+
|
|
10543
|
+
/**
|
|
10544
|
+
* Encodes the specified UnlinkedConnection message, length delimited. Does not implicitly {@link UnlinkedConnection.verify|verify} messages.
|
|
10545
|
+
* @function encodeDelimited
|
|
10546
|
+
* @memberof UnlinkedConnection
|
|
10547
|
+
* @static
|
|
10548
|
+
* @param {IUnlinkedConnection} message UnlinkedConnection message or plain object to encode
|
|
10549
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
10550
|
+
* @returns {$protobuf.Writer} Writer
|
|
10551
|
+
*/
|
|
10552
|
+
UnlinkedConnection.encodeDelimited = function encodeDelimited(message, writer) {
|
|
10553
|
+
return this.encode(message, writer).ldelim();
|
|
10554
|
+
};
|
|
10555
|
+
|
|
10556
|
+
/**
|
|
10557
|
+
* Decodes an UnlinkedConnection message from the specified reader or buffer.
|
|
10558
|
+
* @function decode
|
|
10559
|
+
* @memberof UnlinkedConnection
|
|
10560
|
+
* @static
|
|
10561
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
10562
|
+
* @param {number} [length] Message length if known beforehand
|
|
10563
|
+
* @returns {UnlinkedConnection} UnlinkedConnection
|
|
10564
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
10565
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
10566
|
+
*/
|
|
10567
|
+
UnlinkedConnection.decode = function decode(reader, length) {
|
|
10568
|
+
if (!(reader instanceof $Reader))
|
|
10569
|
+
reader = $Reader.create(reader);
|
|
10570
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UnlinkedConnection();
|
|
10571
|
+
while (reader.pos < end) {
|
|
10572
|
+
var tag = reader.uint32();
|
|
10573
|
+
switch (tag >>> 3) {
|
|
10574
|
+
case 1:
|
|
10575
|
+
message.hsId = reader.string();
|
|
10576
|
+
break;
|
|
10577
|
+
case 2:
|
|
10578
|
+
message.connection = reader.int32();
|
|
10579
|
+
break;
|
|
10580
|
+
case 3:
|
|
10581
|
+
message.unlinkedAt = reader.uint64();
|
|
10582
|
+
break;
|
|
10583
|
+
default:
|
|
10584
|
+
reader.skipType(tag & 7);
|
|
10585
|
+
break;
|
|
10586
|
+
}
|
|
10587
|
+
}
|
|
10588
|
+
return message;
|
|
10589
|
+
};
|
|
10590
|
+
|
|
10591
|
+
/**
|
|
10592
|
+
* Decodes an UnlinkedConnection message from the specified reader or buffer, length delimited.
|
|
10593
|
+
* @function decodeDelimited
|
|
10594
|
+
* @memberof UnlinkedConnection
|
|
10595
|
+
* @static
|
|
10596
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
10597
|
+
* @returns {UnlinkedConnection} UnlinkedConnection
|
|
10598
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
10599
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
10600
|
+
*/
|
|
10601
|
+
UnlinkedConnection.decodeDelimited = function decodeDelimited(reader) {
|
|
10602
|
+
if (!(reader instanceof $Reader))
|
|
10603
|
+
reader = new $Reader(reader);
|
|
10604
|
+
return this.decode(reader, reader.uint32());
|
|
10605
|
+
};
|
|
10606
|
+
|
|
10607
|
+
/**
|
|
10608
|
+
* Verifies an UnlinkedConnection message.
|
|
10609
|
+
* @function verify
|
|
10610
|
+
* @memberof UnlinkedConnection
|
|
10611
|
+
* @static
|
|
10612
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
10613
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
10614
|
+
*/
|
|
10615
|
+
UnlinkedConnection.verify = function verify(message) {
|
|
10616
|
+
if (typeof message !== "object" || message === null)
|
|
10617
|
+
return "object expected";
|
|
10618
|
+
if (message.hsId != null && message.hasOwnProperty("hsId"))
|
|
10619
|
+
if (!$util.isString(message.hsId))
|
|
10620
|
+
return "hsId: string expected";
|
|
10621
|
+
if (message.connection != null && message.hasOwnProperty("connection"))
|
|
10622
|
+
switch (message.connection) {
|
|
10623
|
+
default:
|
|
10624
|
+
return "connection: enum value expected";
|
|
10625
|
+
case 0:
|
|
10626
|
+
case 1:
|
|
10627
|
+
case 2:
|
|
10628
|
+
case 3:
|
|
10629
|
+
case 4:
|
|
10630
|
+
case 5:
|
|
10631
|
+
case 6:
|
|
10632
|
+
break;
|
|
10633
|
+
}
|
|
10634
|
+
if (message.unlinkedAt != null && message.hasOwnProperty("unlinkedAt"))
|
|
10635
|
+
if (!$util.isInteger(message.unlinkedAt) && !(message.unlinkedAt && $util.isInteger(message.unlinkedAt.low) && $util.isInteger(message.unlinkedAt.high)))
|
|
10636
|
+
return "unlinkedAt: integer|Long expected";
|
|
10637
|
+
return null;
|
|
10638
|
+
};
|
|
10639
|
+
|
|
10640
|
+
/**
|
|
10641
|
+
* Creates an UnlinkedConnection message from a plain object. Also converts values to their respective internal types.
|
|
10642
|
+
* @function fromObject
|
|
10643
|
+
* @memberof UnlinkedConnection
|
|
10644
|
+
* @static
|
|
10645
|
+
* @param {Object.<string,*>} object Plain object
|
|
10646
|
+
* @returns {UnlinkedConnection} UnlinkedConnection
|
|
10647
|
+
*/
|
|
10648
|
+
UnlinkedConnection.fromObject = function fromObject(object) {
|
|
10649
|
+
if (object instanceof $root.UnlinkedConnection)
|
|
10650
|
+
return object;
|
|
10651
|
+
var message = new $root.UnlinkedConnection();
|
|
10652
|
+
if (object.hsId != null)
|
|
10653
|
+
message.hsId = String(object.hsId);
|
|
10654
|
+
switch (object.connection) {
|
|
10655
|
+
case "UNKNOWN_CONNECTION":
|
|
10656
|
+
case 0:
|
|
10657
|
+
message.connection = 0;
|
|
10658
|
+
break;
|
|
10659
|
+
case "APPLE":
|
|
10660
|
+
case 1:
|
|
10661
|
+
message.connection = 1;
|
|
10662
|
+
break;
|
|
10663
|
+
case "FACEBOOK":
|
|
10664
|
+
case 2:
|
|
10665
|
+
message.connection = 2;
|
|
10666
|
+
break;
|
|
10667
|
+
case "ONELOGIN":
|
|
10668
|
+
case 3:
|
|
10669
|
+
message.connection = 3;
|
|
10670
|
+
break;
|
|
10671
|
+
case "SPOTIFY":
|
|
10672
|
+
case 4:
|
|
10673
|
+
message.connection = 4;
|
|
10674
|
+
break;
|
|
10675
|
+
case "USER_PASSWORD_HEADSPACE":
|
|
10676
|
+
case 5:
|
|
10677
|
+
message.connection = 5;
|
|
10678
|
+
break;
|
|
10679
|
+
case "VIRGINPULSE":
|
|
10680
|
+
case 6:
|
|
10681
|
+
message.connection = 6;
|
|
10682
|
+
break;
|
|
10683
|
+
}
|
|
10684
|
+
if (object.unlinkedAt != null)
|
|
10685
|
+
if ($util.Long)
|
|
10686
|
+
(message.unlinkedAt = $util.Long.fromValue(object.unlinkedAt)).unsigned = true;
|
|
10687
|
+
else if (typeof object.unlinkedAt === "string")
|
|
10688
|
+
message.unlinkedAt = parseInt(object.unlinkedAt, 10);
|
|
10689
|
+
else if (typeof object.unlinkedAt === "number")
|
|
10690
|
+
message.unlinkedAt = object.unlinkedAt;
|
|
10691
|
+
else if (typeof object.unlinkedAt === "object")
|
|
10692
|
+
message.unlinkedAt = new $util.LongBits(object.unlinkedAt.low >>> 0, object.unlinkedAt.high >>> 0).toNumber(true);
|
|
10693
|
+
return message;
|
|
10694
|
+
};
|
|
10695
|
+
|
|
10696
|
+
/**
|
|
10697
|
+
* Creates a plain object from an UnlinkedConnection message. Also converts values to other types if specified.
|
|
10698
|
+
* @function toObject
|
|
10699
|
+
* @memberof UnlinkedConnection
|
|
10700
|
+
* @static
|
|
10701
|
+
* @param {UnlinkedConnection} message UnlinkedConnection
|
|
10702
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
10703
|
+
* @returns {Object.<string,*>} Plain object
|
|
10704
|
+
*/
|
|
10705
|
+
UnlinkedConnection.toObject = function toObject(message, options) {
|
|
10706
|
+
if (!options)
|
|
10707
|
+
options = {};
|
|
10708
|
+
var object = {};
|
|
10709
|
+
if (options.defaults) {
|
|
10710
|
+
object.hsId = "";
|
|
10711
|
+
object.connection = options.enums === String ? "UNKNOWN_CONNECTION" : 0;
|
|
10712
|
+
if ($util.Long) {
|
|
10713
|
+
var long = new $util.Long(0, 0, true);
|
|
10714
|
+
object.unlinkedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
10715
|
+
} else
|
|
10716
|
+
object.unlinkedAt = options.longs === String ? "0" : 0;
|
|
10717
|
+
}
|
|
10718
|
+
if (message.hsId != null && message.hasOwnProperty("hsId"))
|
|
10719
|
+
object.hsId = message.hsId;
|
|
10720
|
+
if (message.connection != null && message.hasOwnProperty("connection"))
|
|
10721
|
+
object.connection = options.enums === String ? $root.auth0.connections.Connection[message.connection] : message.connection;
|
|
10722
|
+
if (message.unlinkedAt != null && message.hasOwnProperty("unlinkedAt"))
|
|
10723
|
+
if (typeof message.unlinkedAt === "number")
|
|
10724
|
+
object.unlinkedAt = options.longs === String ? String(message.unlinkedAt) : message.unlinkedAt;
|
|
10725
|
+
else
|
|
10726
|
+
object.unlinkedAt = options.longs === String ? $util.Long.prototype.toString.call(message.unlinkedAt) : options.longs === Number ? new $util.LongBits(message.unlinkedAt.low >>> 0, message.unlinkedAt.high >>> 0).toNumber(true) : message.unlinkedAt;
|
|
10727
|
+
return object;
|
|
10728
|
+
};
|
|
10729
|
+
|
|
10730
|
+
/**
|
|
10731
|
+
* Converts this UnlinkedConnection to JSON.
|
|
10732
|
+
* @function toJSON
|
|
10733
|
+
* @memberof UnlinkedConnection
|
|
10734
|
+
* @instance
|
|
10735
|
+
* @returns {Object.<string,*>} JSON object
|
|
10736
|
+
*/
|
|
10737
|
+
UnlinkedConnection.prototype.toJSON = function toJSON() {
|
|
10738
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
10739
|
+
};
|
|
10740
|
+
|
|
10741
|
+
return UnlinkedConnection;
|
|
10742
|
+
})();
|
|
10743
|
+
|
|
10412
10744
|
$root.Auth0PasswordResetCompleted = (function() {
|
|
10413
10745
|
|
|
10414
10746
|
/**
|
|
@@ -25977,6 +26309,854 @@ $root.ContentfulModuleDescriptorDeleted = (function() {
|
|
|
25977
26309
|
return ContentfulModuleDescriptorDeleted;
|
|
25978
26310
|
})();
|
|
25979
26311
|
|
|
26312
|
+
$root.ContentfulFeaturedContentCreated = (function() {
|
|
26313
|
+
|
|
26314
|
+
/**
|
|
26315
|
+
* Properties of a ContentfulFeaturedContentCreated.
|
|
26316
|
+
* @exports IContentfulFeaturedContentCreated
|
|
26317
|
+
* @interface IContentfulFeaturedContentCreated
|
|
26318
|
+
* @property {string|null} [slug] ContentfulFeaturedContentCreated slug
|
|
26319
|
+
* @property {string|null} [featureType] ContentfulFeaturedContentCreated featureType
|
|
26320
|
+
* @property {string|null} [mode] ContentfulFeaturedContentCreated mode
|
|
26321
|
+
* @property {Array.<contentful.ISlugReference>|null} [content] ContentfulFeaturedContentCreated content
|
|
26322
|
+
* @property {number|Long|null} [createdAt] ContentfulFeaturedContentCreated createdAt
|
|
26323
|
+
*/
|
|
26324
|
+
|
|
26325
|
+
/**
|
|
26326
|
+
* Constructs a new ContentfulFeaturedContentCreated.
|
|
26327
|
+
* @exports ContentfulFeaturedContentCreated
|
|
26328
|
+
* @classdesc Represents a ContentfulFeaturedContentCreated.
|
|
26329
|
+
* @implements IContentfulFeaturedContentCreated
|
|
26330
|
+
* @constructor
|
|
26331
|
+
* @param {IContentfulFeaturedContentCreated=} [properties] Properties to set
|
|
26332
|
+
*/
|
|
26333
|
+
function ContentfulFeaturedContentCreated(properties) {
|
|
26334
|
+
this.content = [];
|
|
26335
|
+
if (properties)
|
|
26336
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
26337
|
+
if (properties[keys[i]] != null)
|
|
26338
|
+
this[keys[i]] = properties[keys[i]];
|
|
26339
|
+
}
|
|
26340
|
+
|
|
26341
|
+
/**
|
|
26342
|
+
* ContentfulFeaturedContentCreated slug.
|
|
26343
|
+
* @member {string} slug
|
|
26344
|
+
* @memberof ContentfulFeaturedContentCreated
|
|
26345
|
+
* @instance
|
|
26346
|
+
*/
|
|
26347
|
+
ContentfulFeaturedContentCreated.prototype.slug = "";
|
|
26348
|
+
|
|
26349
|
+
/**
|
|
26350
|
+
* ContentfulFeaturedContentCreated featureType.
|
|
26351
|
+
* @member {string} featureType
|
|
26352
|
+
* @memberof ContentfulFeaturedContentCreated
|
|
26353
|
+
* @instance
|
|
26354
|
+
*/
|
|
26355
|
+
ContentfulFeaturedContentCreated.prototype.featureType = "";
|
|
26356
|
+
|
|
26357
|
+
/**
|
|
26358
|
+
* ContentfulFeaturedContentCreated mode.
|
|
26359
|
+
* @member {string} mode
|
|
26360
|
+
* @memberof ContentfulFeaturedContentCreated
|
|
26361
|
+
* @instance
|
|
26362
|
+
*/
|
|
26363
|
+
ContentfulFeaturedContentCreated.prototype.mode = "";
|
|
26364
|
+
|
|
26365
|
+
/**
|
|
26366
|
+
* ContentfulFeaturedContentCreated content.
|
|
26367
|
+
* @member {Array.<contentful.ISlugReference>} content
|
|
26368
|
+
* @memberof ContentfulFeaturedContentCreated
|
|
26369
|
+
* @instance
|
|
26370
|
+
*/
|
|
26371
|
+
ContentfulFeaturedContentCreated.prototype.content = $util.emptyArray;
|
|
26372
|
+
|
|
26373
|
+
/**
|
|
26374
|
+
* ContentfulFeaturedContentCreated createdAt.
|
|
26375
|
+
* @member {number|Long} createdAt
|
|
26376
|
+
* @memberof ContentfulFeaturedContentCreated
|
|
26377
|
+
* @instance
|
|
26378
|
+
*/
|
|
26379
|
+
ContentfulFeaturedContentCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
26380
|
+
|
|
26381
|
+
/**
|
|
26382
|
+
* Creates a new ContentfulFeaturedContentCreated instance using the specified properties.
|
|
26383
|
+
* @function create
|
|
26384
|
+
* @memberof ContentfulFeaturedContentCreated
|
|
26385
|
+
* @static
|
|
26386
|
+
* @param {IContentfulFeaturedContentCreated=} [properties] Properties to set
|
|
26387
|
+
* @returns {ContentfulFeaturedContentCreated} ContentfulFeaturedContentCreated instance
|
|
26388
|
+
*/
|
|
26389
|
+
ContentfulFeaturedContentCreated.create = function create(properties) {
|
|
26390
|
+
return new ContentfulFeaturedContentCreated(properties);
|
|
26391
|
+
};
|
|
26392
|
+
|
|
26393
|
+
/**
|
|
26394
|
+
* Encodes the specified ContentfulFeaturedContentCreated message. Does not implicitly {@link ContentfulFeaturedContentCreated.verify|verify} messages.
|
|
26395
|
+
* @function encode
|
|
26396
|
+
* @memberof ContentfulFeaturedContentCreated
|
|
26397
|
+
* @static
|
|
26398
|
+
* @param {IContentfulFeaturedContentCreated} message ContentfulFeaturedContentCreated message or plain object to encode
|
|
26399
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
26400
|
+
* @returns {$protobuf.Writer} Writer
|
|
26401
|
+
*/
|
|
26402
|
+
ContentfulFeaturedContentCreated.encode = function encode(message, writer) {
|
|
26403
|
+
if (!writer)
|
|
26404
|
+
writer = $Writer.create();
|
|
26405
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
26406
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
26407
|
+
if (message.featureType != null && message.hasOwnProperty("featureType"))
|
|
26408
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.featureType);
|
|
26409
|
+
if (message.mode != null && message.hasOwnProperty("mode"))
|
|
26410
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.mode);
|
|
26411
|
+
if (message.content != null && message.content.length)
|
|
26412
|
+
for (var i = 0; i < message.content.length; ++i)
|
|
26413
|
+
$root.contentful.SlugReference.encode(message.content[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
26414
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
26415
|
+
writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.createdAt);
|
|
26416
|
+
return writer;
|
|
26417
|
+
};
|
|
26418
|
+
|
|
26419
|
+
/**
|
|
26420
|
+
* Encodes the specified ContentfulFeaturedContentCreated message, length delimited. Does not implicitly {@link ContentfulFeaturedContentCreated.verify|verify} messages.
|
|
26421
|
+
* @function encodeDelimited
|
|
26422
|
+
* @memberof ContentfulFeaturedContentCreated
|
|
26423
|
+
* @static
|
|
26424
|
+
* @param {IContentfulFeaturedContentCreated} message ContentfulFeaturedContentCreated message or plain object to encode
|
|
26425
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
26426
|
+
* @returns {$protobuf.Writer} Writer
|
|
26427
|
+
*/
|
|
26428
|
+
ContentfulFeaturedContentCreated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
26429
|
+
return this.encode(message, writer).ldelim();
|
|
26430
|
+
};
|
|
26431
|
+
|
|
26432
|
+
/**
|
|
26433
|
+
* Decodes a ContentfulFeaturedContentCreated message from the specified reader or buffer.
|
|
26434
|
+
* @function decode
|
|
26435
|
+
* @memberof ContentfulFeaturedContentCreated
|
|
26436
|
+
* @static
|
|
26437
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
26438
|
+
* @param {number} [length] Message length if known beforehand
|
|
26439
|
+
* @returns {ContentfulFeaturedContentCreated} ContentfulFeaturedContentCreated
|
|
26440
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
26441
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
26442
|
+
*/
|
|
26443
|
+
ContentfulFeaturedContentCreated.decode = function decode(reader, length) {
|
|
26444
|
+
if (!(reader instanceof $Reader))
|
|
26445
|
+
reader = $Reader.create(reader);
|
|
26446
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulFeaturedContentCreated();
|
|
26447
|
+
while (reader.pos < end) {
|
|
26448
|
+
var tag = reader.uint32();
|
|
26449
|
+
switch (tag >>> 3) {
|
|
26450
|
+
case 1:
|
|
26451
|
+
message.slug = reader.string();
|
|
26452
|
+
break;
|
|
26453
|
+
case 2:
|
|
26454
|
+
message.featureType = reader.string();
|
|
26455
|
+
break;
|
|
26456
|
+
case 3:
|
|
26457
|
+
message.mode = reader.string();
|
|
26458
|
+
break;
|
|
26459
|
+
case 4:
|
|
26460
|
+
if (!(message.content && message.content.length))
|
|
26461
|
+
message.content = [];
|
|
26462
|
+
message.content.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
26463
|
+
break;
|
|
26464
|
+
case 5:
|
|
26465
|
+
message.createdAt = reader.uint64();
|
|
26466
|
+
break;
|
|
26467
|
+
default:
|
|
26468
|
+
reader.skipType(tag & 7);
|
|
26469
|
+
break;
|
|
26470
|
+
}
|
|
26471
|
+
}
|
|
26472
|
+
return message;
|
|
26473
|
+
};
|
|
26474
|
+
|
|
26475
|
+
/**
|
|
26476
|
+
* Decodes a ContentfulFeaturedContentCreated message from the specified reader or buffer, length delimited.
|
|
26477
|
+
* @function decodeDelimited
|
|
26478
|
+
* @memberof ContentfulFeaturedContentCreated
|
|
26479
|
+
* @static
|
|
26480
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
26481
|
+
* @returns {ContentfulFeaturedContentCreated} ContentfulFeaturedContentCreated
|
|
26482
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
26483
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
26484
|
+
*/
|
|
26485
|
+
ContentfulFeaturedContentCreated.decodeDelimited = function decodeDelimited(reader) {
|
|
26486
|
+
if (!(reader instanceof $Reader))
|
|
26487
|
+
reader = new $Reader(reader);
|
|
26488
|
+
return this.decode(reader, reader.uint32());
|
|
26489
|
+
};
|
|
26490
|
+
|
|
26491
|
+
/**
|
|
26492
|
+
* Verifies a ContentfulFeaturedContentCreated message.
|
|
26493
|
+
* @function verify
|
|
26494
|
+
* @memberof ContentfulFeaturedContentCreated
|
|
26495
|
+
* @static
|
|
26496
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
26497
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
26498
|
+
*/
|
|
26499
|
+
ContentfulFeaturedContentCreated.verify = function verify(message) {
|
|
26500
|
+
if (typeof message !== "object" || message === null)
|
|
26501
|
+
return "object expected";
|
|
26502
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
26503
|
+
if (!$util.isString(message.slug))
|
|
26504
|
+
return "slug: string expected";
|
|
26505
|
+
if (message.featureType != null && message.hasOwnProperty("featureType"))
|
|
26506
|
+
if (!$util.isString(message.featureType))
|
|
26507
|
+
return "featureType: string expected";
|
|
26508
|
+
if (message.mode != null && message.hasOwnProperty("mode"))
|
|
26509
|
+
if (!$util.isString(message.mode))
|
|
26510
|
+
return "mode: string expected";
|
|
26511
|
+
if (message.content != null && message.hasOwnProperty("content")) {
|
|
26512
|
+
if (!Array.isArray(message.content))
|
|
26513
|
+
return "content: array expected";
|
|
26514
|
+
for (var i = 0; i < message.content.length; ++i) {
|
|
26515
|
+
var error = $root.contentful.SlugReference.verify(message.content[i]);
|
|
26516
|
+
if (error)
|
|
26517
|
+
return "content." + error;
|
|
26518
|
+
}
|
|
26519
|
+
}
|
|
26520
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
26521
|
+
if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
|
|
26522
|
+
return "createdAt: integer|Long expected";
|
|
26523
|
+
return null;
|
|
26524
|
+
};
|
|
26525
|
+
|
|
26526
|
+
/**
|
|
26527
|
+
* Creates a ContentfulFeaturedContentCreated message from a plain object. Also converts values to their respective internal types.
|
|
26528
|
+
* @function fromObject
|
|
26529
|
+
* @memberof ContentfulFeaturedContentCreated
|
|
26530
|
+
* @static
|
|
26531
|
+
* @param {Object.<string,*>} object Plain object
|
|
26532
|
+
* @returns {ContentfulFeaturedContentCreated} ContentfulFeaturedContentCreated
|
|
26533
|
+
*/
|
|
26534
|
+
ContentfulFeaturedContentCreated.fromObject = function fromObject(object) {
|
|
26535
|
+
if (object instanceof $root.ContentfulFeaturedContentCreated)
|
|
26536
|
+
return object;
|
|
26537
|
+
var message = new $root.ContentfulFeaturedContentCreated();
|
|
26538
|
+
if (object.slug != null)
|
|
26539
|
+
message.slug = String(object.slug);
|
|
26540
|
+
if (object.featureType != null)
|
|
26541
|
+
message.featureType = String(object.featureType);
|
|
26542
|
+
if (object.mode != null)
|
|
26543
|
+
message.mode = String(object.mode);
|
|
26544
|
+
if (object.content) {
|
|
26545
|
+
if (!Array.isArray(object.content))
|
|
26546
|
+
throw TypeError(".ContentfulFeaturedContentCreated.content: array expected");
|
|
26547
|
+
message.content = [];
|
|
26548
|
+
for (var i = 0; i < object.content.length; ++i) {
|
|
26549
|
+
if (typeof object.content[i] !== "object")
|
|
26550
|
+
throw TypeError(".ContentfulFeaturedContentCreated.content: object expected");
|
|
26551
|
+
message.content[i] = $root.contentful.SlugReference.fromObject(object.content[i]);
|
|
26552
|
+
}
|
|
26553
|
+
}
|
|
26554
|
+
if (object.createdAt != null)
|
|
26555
|
+
if ($util.Long)
|
|
26556
|
+
(message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
|
|
26557
|
+
else if (typeof object.createdAt === "string")
|
|
26558
|
+
message.createdAt = parseInt(object.createdAt, 10);
|
|
26559
|
+
else if (typeof object.createdAt === "number")
|
|
26560
|
+
message.createdAt = object.createdAt;
|
|
26561
|
+
else if (typeof object.createdAt === "object")
|
|
26562
|
+
message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
|
|
26563
|
+
return message;
|
|
26564
|
+
};
|
|
26565
|
+
|
|
26566
|
+
/**
|
|
26567
|
+
* Creates a plain object from a ContentfulFeaturedContentCreated message. Also converts values to other types if specified.
|
|
26568
|
+
* @function toObject
|
|
26569
|
+
* @memberof ContentfulFeaturedContentCreated
|
|
26570
|
+
* @static
|
|
26571
|
+
* @param {ContentfulFeaturedContentCreated} message ContentfulFeaturedContentCreated
|
|
26572
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
26573
|
+
* @returns {Object.<string,*>} Plain object
|
|
26574
|
+
*/
|
|
26575
|
+
ContentfulFeaturedContentCreated.toObject = function toObject(message, options) {
|
|
26576
|
+
if (!options)
|
|
26577
|
+
options = {};
|
|
26578
|
+
var object = {};
|
|
26579
|
+
if (options.arrays || options.defaults)
|
|
26580
|
+
object.content = [];
|
|
26581
|
+
if (options.defaults) {
|
|
26582
|
+
object.slug = "";
|
|
26583
|
+
object.featureType = "";
|
|
26584
|
+
object.mode = "";
|
|
26585
|
+
if ($util.Long) {
|
|
26586
|
+
var long = new $util.Long(0, 0, true);
|
|
26587
|
+
object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
26588
|
+
} else
|
|
26589
|
+
object.createdAt = options.longs === String ? "0" : 0;
|
|
26590
|
+
}
|
|
26591
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
26592
|
+
object.slug = message.slug;
|
|
26593
|
+
if (message.featureType != null && message.hasOwnProperty("featureType"))
|
|
26594
|
+
object.featureType = message.featureType;
|
|
26595
|
+
if (message.mode != null && message.hasOwnProperty("mode"))
|
|
26596
|
+
object.mode = message.mode;
|
|
26597
|
+
if (message.content && message.content.length) {
|
|
26598
|
+
object.content = [];
|
|
26599
|
+
for (var j = 0; j < message.content.length; ++j)
|
|
26600
|
+
object.content[j] = $root.contentful.SlugReference.toObject(message.content[j], options);
|
|
26601
|
+
}
|
|
26602
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
26603
|
+
if (typeof message.createdAt === "number")
|
|
26604
|
+
object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
|
|
26605
|
+
else
|
|
26606
|
+
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;
|
|
26607
|
+
return object;
|
|
26608
|
+
};
|
|
26609
|
+
|
|
26610
|
+
/**
|
|
26611
|
+
* Converts this ContentfulFeaturedContentCreated to JSON.
|
|
26612
|
+
* @function toJSON
|
|
26613
|
+
* @memberof ContentfulFeaturedContentCreated
|
|
26614
|
+
* @instance
|
|
26615
|
+
* @returns {Object.<string,*>} JSON object
|
|
26616
|
+
*/
|
|
26617
|
+
ContentfulFeaturedContentCreated.prototype.toJSON = function toJSON() {
|
|
26618
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
26619
|
+
};
|
|
26620
|
+
|
|
26621
|
+
return ContentfulFeaturedContentCreated;
|
|
26622
|
+
})();
|
|
26623
|
+
|
|
26624
|
+
$root.ContentfulFeaturedContentUpdated = (function() {
|
|
26625
|
+
|
|
26626
|
+
/**
|
|
26627
|
+
* Properties of a ContentfulFeaturedContentUpdated.
|
|
26628
|
+
* @exports IContentfulFeaturedContentUpdated
|
|
26629
|
+
* @interface IContentfulFeaturedContentUpdated
|
|
26630
|
+
* @property {string|null} [slug] ContentfulFeaturedContentUpdated slug
|
|
26631
|
+
* @property {string|null} [featureType] ContentfulFeaturedContentUpdated featureType
|
|
26632
|
+
* @property {string|null} [mode] ContentfulFeaturedContentUpdated mode
|
|
26633
|
+
* @property {Array.<contentful.ISlugReference>|null} [content] ContentfulFeaturedContentUpdated content
|
|
26634
|
+
* @property {number|Long|null} [updatedAt] ContentfulFeaturedContentUpdated updatedAt
|
|
26635
|
+
*/
|
|
26636
|
+
|
|
26637
|
+
/**
|
|
26638
|
+
* Constructs a new ContentfulFeaturedContentUpdated.
|
|
26639
|
+
* @exports ContentfulFeaturedContentUpdated
|
|
26640
|
+
* @classdesc Represents a ContentfulFeaturedContentUpdated.
|
|
26641
|
+
* @implements IContentfulFeaturedContentUpdated
|
|
26642
|
+
* @constructor
|
|
26643
|
+
* @param {IContentfulFeaturedContentUpdated=} [properties] Properties to set
|
|
26644
|
+
*/
|
|
26645
|
+
function ContentfulFeaturedContentUpdated(properties) {
|
|
26646
|
+
this.content = [];
|
|
26647
|
+
if (properties)
|
|
26648
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
26649
|
+
if (properties[keys[i]] != null)
|
|
26650
|
+
this[keys[i]] = properties[keys[i]];
|
|
26651
|
+
}
|
|
26652
|
+
|
|
26653
|
+
/**
|
|
26654
|
+
* ContentfulFeaturedContentUpdated slug.
|
|
26655
|
+
* @member {string} slug
|
|
26656
|
+
* @memberof ContentfulFeaturedContentUpdated
|
|
26657
|
+
* @instance
|
|
26658
|
+
*/
|
|
26659
|
+
ContentfulFeaturedContentUpdated.prototype.slug = "";
|
|
26660
|
+
|
|
26661
|
+
/**
|
|
26662
|
+
* ContentfulFeaturedContentUpdated featureType.
|
|
26663
|
+
* @member {string} featureType
|
|
26664
|
+
* @memberof ContentfulFeaturedContentUpdated
|
|
26665
|
+
* @instance
|
|
26666
|
+
*/
|
|
26667
|
+
ContentfulFeaturedContentUpdated.prototype.featureType = "";
|
|
26668
|
+
|
|
26669
|
+
/**
|
|
26670
|
+
* ContentfulFeaturedContentUpdated mode.
|
|
26671
|
+
* @member {string} mode
|
|
26672
|
+
* @memberof ContentfulFeaturedContentUpdated
|
|
26673
|
+
* @instance
|
|
26674
|
+
*/
|
|
26675
|
+
ContentfulFeaturedContentUpdated.prototype.mode = "";
|
|
26676
|
+
|
|
26677
|
+
/**
|
|
26678
|
+
* ContentfulFeaturedContentUpdated content.
|
|
26679
|
+
* @member {Array.<contentful.ISlugReference>} content
|
|
26680
|
+
* @memberof ContentfulFeaturedContentUpdated
|
|
26681
|
+
* @instance
|
|
26682
|
+
*/
|
|
26683
|
+
ContentfulFeaturedContentUpdated.prototype.content = $util.emptyArray;
|
|
26684
|
+
|
|
26685
|
+
/**
|
|
26686
|
+
* ContentfulFeaturedContentUpdated updatedAt.
|
|
26687
|
+
* @member {number|Long} updatedAt
|
|
26688
|
+
* @memberof ContentfulFeaturedContentUpdated
|
|
26689
|
+
* @instance
|
|
26690
|
+
*/
|
|
26691
|
+
ContentfulFeaturedContentUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
26692
|
+
|
|
26693
|
+
/**
|
|
26694
|
+
* Creates a new ContentfulFeaturedContentUpdated instance using the specified properties.
|
|
26695
|
+
* @function create
|
|
26696
|
+
* @memberof ContentfulFeaturedContentUpdated
|
|
26697
|
+
* @static
|
|
26698
|
+
* @param {IContentfulFeaturedContentUpdated=} [properties] Properties to set
|
|
26699
|
+
* @returns {ContentfulFeaturedContentUpdated} ContentfulFeaturedContentUpdated instance
|
|
26700
|
+
*/
|
|
26701
|
+
ContentfulFeaturedContentUpdated.create = function create(properties) {
|
|
26702
|
+
return new ContentfulFeaturedContentUpdated(properties);
|
|
26703
|
+
};
|
|
26704
|
+
|
|
26705
|
+
/**
|
|
26706
|
+
* Encodes the specified ContentfulFeaturedContentUpdated message. Does not implicitly {@link ContentfulFeaturedContentUpdated.verify|verify} messages.
|
|
26707
|
+
* @function encode
|
|
26708
|
+
* @memberof ContentfulFeaturedContentUpdated
|
|
26709
|
+
* @static
|
|
26710
|
+
* @param {IContentfulFeaturedContentUpdated} message ContentfulFeaturedContentUpdated message or plain object to encode
|
|
26711
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
26712
|
+
* @returns {$protobuf.Writer} Writer
|
|
26713
|
+
*/
|
|
26714
|
+
ContentfulFeaturedContentUpdated.encode = function encode(message, writer) {
|
|
26715
|
+
if (!writer)
|
|
26716
|
+
writer = $Writer.create();
|
|
26717
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
26718
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
26719
|
+
if (message.featureType != null && message.hasOwnProperty("featureType"))
|
|
26720
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.featureType);
|
|
26721
|
+
if (message.mode != null && message.hasOwnProperty("mode"))
|
|
26722
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.mode);
|
|
26723
|
+
if (message.content != null && message.content.length)
|
|
26724
|
+
for (var i = 0; i < message.content.length; ++i)
|
|
26725
|
+
$root.contentful.SlugReference.encode(message.content[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
26726
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
26727
|
+
writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.updatedAt);
|
|
26728
|
+
return writer;
|
|
26729
|
+
};
|
|
26730
|
+
|
|
26731
|
+
/**
|
|
26732
|
+
* Encodes the specified ContentfulFeaturedContentUpdated message, length delimited. Does not implicitly {@link ContentfulFeaturedContentUpdated.verify|verify} messages.
|
|
26733
|
+
* @function encodeDelimited
|
|
26734
|
+
* @memberof ContentfulFeaturedContentUpdated
|
|
26735
|
+
* @static
|
|
26736
|
+
* @param {IContentfulFeaturedContentUpdated} message ContentfulFeaturedContentUpdated message or plain object to encode
|
|
26737
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
26738
|
+
* @returns {$protobuf.Writer} Writer
|
|
26739
|
+
*/
|
|
26740
|
+
ContentfulFeaturedContentUpdated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
26741
|
+
return this.encode(message, writer).ldelim();
|
|
26742
|
+
};
|
|
26743
|
+
|
|
26744
|
+
/**
|
|
26745
|
+
* Decodes a ContentfulFeaturedContentUpdated message from the specified reader or buffer.
|
|
26746
|
+
* @function decode
|
|
26747
|
+
* @memberof ContentfulFeaturedContentUpdated
|
|
26748
|
+
* @static
|
|
26749
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
26750
|
+
* @param {number} [length] Message length if known beforehand
|
|
26751
|
+
* @returns {ContentfulFeaturedContentUpdated} ContentfulFeaturedContentUpdated
|
|
26752
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
26753
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
26754
|
+
*/
|
|
26755
|
+
ContentfulFeaturedContentUpdated.decode = function decode(reader, length) {
|
|
26756
|
+
if (!(reader instanceof $Reader))
|
|
26757
|
+
reader = $Reader.create(reader);
|
|
26758
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulFeaturedContentUpdated();
|
|
26759
|
+
while (reader.pos < end) {
|
|
26760
|
+
var tag = reader.uint32();
|
|
26761
|
+
switch (tag >>> 3) {
|
|
26762
|
+
case 1:
|
|
26763
|
+
message.slug = reader.string();
|
|
26764
|
+
break;
|
|
26765
|
+
case 2:
|
|
26766
|
+
message.featureType = reader.string();
|
|
26767
|
+
break;
|
|
26768
|
+
case 3:
|
|
26769
|
+
message.mode = reader.string();
|
|
26770
|
+
break;
|
|
26771
|
+
case 4:
|
|
26772
|
+
if (!(message.content && message.content.length))
|
|
26773
|
+
message.content = [];
|
|
26774
|
+
message.content.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
26775
|
+
break;
|
|
26776
|
+
case 5:
|
|
26777
|
+
message.updatedAt = reader.uint64();
|
|
26778
|
+
break;
|
|
26779
|
+
default:
|
|
26780
|
+
reader.skipType(tag & 7);
|
|
26781
|
+
break;
|
|
26782
|
+
}
|
|
26783
|
+
}
|
|
26784
|
+
return message;
|
|
26785
|
+
};
|
|
26786
|
+
|
|
26787
|
+
/**
|
|
26788
|
+
* Decodes a ContentfulFeaturedContentUpdated message from the specified reader or buffer, length delimited.
|
|
26789
|
+
* @function decodeDelimited
|
|
26790
|
+
* @memberof ContentfulFeaturedContentUpdated
|
|
26791
|
+
* @static
|
|
26792
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
26793
|
+
* @returns {ContentfulFeaturedContentUpdated} ContentfulFeaturedContentUpdated
|
|
26794
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
26795
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
26796
|
+
*/
|
|
26797
|
+
ContentfulFeaturedContentUpdated.decodeDelimited = function decodeDelimited(reader) {
|
|
26798
|
+
if (!(reader instanceof $Reader))
|
|
26799
|
+
reader = new $Reader(reader);
|
|
26800
|
+
return this.decode(reader, reader.uint32());
|
|
26801
|
+
};
|
|
26802
|
+
|
|
26803
|
+
/**
|
|
26804
|
+
* Verifies a ContentfulFeaturedContentUpdated message.
|
|
26805
|
+
* @function verify
|
|
26806
|
+
* @memberof ContentfulFeaturedContentUpdated
|
|
26807
|
+
* @static
|
|
26808
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
26809
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
26810
|
+
*/
|
|
26811
|
+
ContentfulFeaturedContentUpdated.verify = function verify(message) {
|
|
26812
|
+
if (typeof message !== "object" || message === null)
|
|
26813
|
+
return "object expected";
|
|
26814
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
26815
|
+
if (!$util.isString(message.slug))
|
|
26816
|
+
return "slug: string expected";
|
|
26817
|
+
if (message.featureType != null && message.hasOwnProperty("featureType"))
|
|
26818
|
+
if (!$util.isString(message.featureType))
|
|
26819
|
+
return "featureType: string expected";
|
|
26820
|
+
if (message.mode != null && message.hasOwnProperty("mode"))
|
|
26821
|
+
if (!$util.isString(message.mode))
|
|
26822
|
+
return "mode: string expected";
|
|
26823
|
+
if (message.content != null && message.hasOwnProperty("content")) {
|
|
26824
|
+
if (!Array.isArray(message.content))
|
|
26825
|
+
return "content: array expected";
|
|
26826
|
+
for (var i = 0; i < message.content.length; ++i) {
|
|
26827
|
+
var error = $root.contentful.SlugReference.verify(message.content[i]);
|
|
26828
|
+
if (error)
|
|
26829
|
+
return "content." + error;
|
|
26830
|
+
}
|
|
26831
|
+
}
|
|
26832
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
26833
|
+
if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
|
|
26834
|
+
return "updatedAt: integer|Long expected";
|
|
26835
|
+
return null;
|
|
26836
|
+
};
|
|
26837
|
+
|
|
26838
|
+
/**
|
|
26839
|
+
* Creates a ContentfulFeaturedContentUpdated message from a plain object. Also converts values to their respective internal types.
|
|
26840
|
+
* @function fromObject
|
|
26841
|
+
* @memberof ContentfulFeaturedContentUpdated
|
|
26842
|
+
* @static
|
|
26843
|
+
* @param {Object.<string,*>} object Plain object
|
|
26844
|
+
* @returns {ContentfulFeaturedContentUpdated} ContentfulFeaturedContentUpdated
|
|
26845
|
+
*/
|
|
26846
|
+
ContentfulFeaturedContentUpdated.fromObject = function fromObject(object) {
|
|
26847
|
+
if (object instanceof $root.ContentfulFeaturedContentUpdated)
|
|
26848
|
+
return object;
|
|
26849
|
+
var message = new $root.ContentfulFeaturedContentUpdated();
|
|
26850
|
+
if (object.slug != null)
|
|
26851
|
+
message.slug = String(object.slug);
|
|
26852
|
+
if (object.featureType != null)
|
|
26853
|
+
message.featureType = String(object.featureType);
|
|
26854
|
+
if (object.mode != null)
|
|
26855
|
+
message.mode = String(object.mode);
|
|
26856
|
+
if (object.content) {
|
|
26857
|
+
if (!Array.isArray(object.content))
|
|
26858
|
+
throw TypeError(".ContentfulFeaturedContentUpdated.content: array expected");
|
|
26859
|
+
message.content = [];
|
|
26860
|
+
for (var i = 0; i < object.content.length; ++i) {
|
|
26861
|
+
if (typeof object.content[i] !== "object")
|
|
26862
|
+
throw TypeError(".ContentfulFeaturedContentUpdated.content: object expected");
|
|
26863
|
+
message.content[i] = $root.contentful.SlugReference.fromObject(object.content[i]);
|
|
26864
|
+
}
|
|
26865
|
+
}
|
|
26866
|
+
if (object.updatedAt != null)
|
|
26867
|
+
if ($util.Long)
|
|
26868
|
+
(message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
|
|
26869
|
+
else if (typeof object.updatedAt === "string")
|
|
26870
|
+
message.updatedAt = parseInt(object.updatedAt, 10);
|
|
26871
|
+
else if (typeof object.updatedAt === "number")
|
|
26872
|
+
message.updatedAt = object.updatedAt;
|
|
26873
|
+
else if (typeof object.updatedAt === "object")
|
|
26874
|
+
message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
|
|
26875
|
+
return message;
|
|
26876
|
+
};
|
|
26877
|
+
|
|
26878
|
+
/**
|
|
26879
|
+
* Creates a plain object from a ContentfulFeaturedContentUpdated message. Also converts values to other types if specified.
|
|
26880
|
+
* @function toObject
|
|
26881
|
+
* @memberof ContentfulFeaturedContentUpdated
|
|
26882
|
+
* @static
|
|
26883
|
+
* @param {ContentfulFeaturedContentUpdated} message ContentfulFeaturedContentUpdated
|
|
26884
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
26885
|
+
* @returns {Object.<string,*>} Plain object
|
|
26886
|
+
*/
|
|
26887
|
+
ContentfulFeaturedContentUpdated.toObject = function toObject(message, options) {
|
|
26888
|
+
if (!options)
|
|
26889
|
+
options = {};
|
|
26890
|
+
var object = {};
|
|
26891
|
+
if (options.arrays || options.defaults)
|
|
26892
|
+
object.content = [];
|
|
26893
|
+
if (options.defaults) {
|
|
26894
|
+
object.slug = "";
|
|
26895
|
+
object.featureType = "";
|
|
26896
|
+
object.mode = "";
|
|
26897
|
+
if ($util.Long) {
|
|
26898
|
+
var long = new $util.Long(0, 0, true);
|
|
26899
|
+
object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
26900
|
+
} else
|
|
26901
|
+
object.updatedAt = options.longs === String ? "0" : 0;
|
|
26902
|
+
}
|
|
26903
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
26904
|
+
object.slug = message.slug;
|
|
26905
|
+
if (message.featureType != null && message.hasOwnProperty("featureType"))
|
|
26906
|
+
object.featureType = message.featureType;
|
|
26907
|
+
if (message.mode != null && message.hasOwnProperty("mode"))
|
|
26908
|
+
object.mode = message.mode;
|
|
26909
|
+
if (message.content && message.content.length) {
|
|
26910
|
+
object.content = [];
|
|
26911
|
+
for (var j = 0; j < message.content.length; ++j)
|
|
26912
|
+
object.content[j] = $root.contentful.SlugReference.toObject(message.content[j], options);
|
|
26913
|
+
}
|
|
26914
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
26915
|
+
if (typeof message.updatedAt === "number")
|
|
26916
|
+
object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
|
|
26917
|
+
else
|
|
26918
|
+
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;
|
|
26919
|
+
return object;
|
|
26920
|
+
};
|
|
26921
|
+
|
|
26922
|
+
/**
|
|
26923
|
+
* Converts this ContentfulFeaturedContentUpdated to JSON.
|
|
26924
|
+
* @function toJSON
|
|
26925
|
+
* @memberof ContentfulFeaturedContentUpdated
|
|
26926
|
+
* @instance
|
|
26927
|
+
* @returns {Object.<string,*>} JSON object
|
|
26928
|
+
*/
|
|
26929
|
+
ContentfulFeaturedContentUpdated.prototype.toJSON = function toJSON() {
|
|
26930
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
26931
|
+
};
|
|
26932
|
+
|
|
26933
|
+
return ContentfulFeaturedContentUpdated;
|
|
26934
|
+
})();
|
|
26935
|
+
|
|
26936
|
+
$root.ContentfulFeaturedContentDeleted = (function() {
|
|
26937
|
+
|
|
26938
|
+
/**
|
|
26939
|
+
* Properties of a ContentfulFeaturedContentDeleted.
|
|
26940
|
+
* @exports IContentfulFeaturedContentDeleted
|
|
26941
|
+
* @interface IContentfulFeaturedContentDeleted
|
|
26942
|
+
* @property {string|null} [slug] ContentfulFeaturedContentDeleted slug
|
|
26943
|
+
* @property {number|Long|null} [deletedAt] ContentfulFeaturedContentDeleted deletedAt
|
|
26944
|
+
*/
|
|
26945
|
+
|
|
26946
|
+
/**
|
|
26947
|
+
* Constructs a new ContentfulFeaturedContentDeleted.
|
|
26948
|
+
* @exports ContentfulFeaturedContentDeleted
|
|
26949
|
+
* @classdesc Represents a ContentfulFeaturedContentDeleted.
|
|
26950
|
+
* @implements IContentfulFeaturedContentDeleted
|
|
26951
|
+
* @constructor
|
|
26952
|
+
* @param {IContentfulFeaturedContentDeleted=} [properties] Properties to set
|
|
26953
|
+
*/
|
|
26954
|
+
function ContentfulFeaturedContentDeleted(properties) {
|
|
26955
|
+
if (properties)
|
|
26956
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
26957
|
+
if (properties[keys[i]] != null)
|
|
26958
|
+
this[keys[i]] = properties[keys[i]];
|
|
26959
|
+
}
|
|
26960
|
+
|
|
26961
|
+
/**
|
|
26962
|
+
* ContentfulFeaturedContentDeleted slug.
|
|
26963
|
+
* @member {string} slug
|
|
26964
|
+
* @memberof ContentfulFeaturedContentDeleted
|
|
26965
|
+
* @instance
|
|
26966
|
+
*/
|
|
26967
|
+
ContentfulFeaturedContentDeleted.prototype.slug = "";
|
|
26968
|
+
|
|
26969
|
+
/**
|
|
26970
|
+
* ContentfulFeaturedContentDeleted deletedAt.
|
|
26971
|
+
* @member {number|Long} deletedAt
|
|
26972
|
+
* @memberof ContentfulFeaturedContentDeleted
|
|
26973
|
+
* @instance
|
|
26974
|
+
*/
|
|
26975
|
+
ContentfulFeaturedContentDeleted.prototype.deletedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
26976
|
+
|
|
26977
|
+
/**
|
|
26978
|
+
* Creates a new ContentfulFeaturedContentDeleted instance using the specified properties.
|
|
26979
|
+
* @function create
|
|
26980
|
+
* @memberof ContentfulFeaturedContentDeleted
|
|
26981
|
+
* @static
|
|
26982
|
+
* @param {IContentfulFeaturedContentDeleted=} [properties] Properties to set
|
|
26983
|
+
* @returns {ContentfulFeaturedContentDeleted} ContentfulFeaturedContentDeleted instance
|
|
26984
|
+
*/
|
|
26985
|
+
ContentfulFeaturedContentDeleted.create = function create(properties) {
|
|
26986
|
+
return new ContentfulFeaturedContentDeleted(properties);
|
|
26987
|
+
};
|
|
26988
|
+
|
|
26989
|
+
/**
|
|
26990
|
+
* Encodes the specified ContentfulFeaturedContentDeleted message. Does not implicitly {@link ContentfulFeaturedContentDeleted.verify|verify} messages.
|
|
26991
|
+
* @function encode
|
|
26992
|
+
* @memberof ContentfulFeaturedContentDeleted
|
|
26993
|
+
* @static
|
|
26994
|
+
* @param {IContentfulFeaturedContentDeleted} message ContentfulFeaturedContentDeleted message or plain object to encode
|
|
26995
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
26996
|
+
* @returns {$protobuf.Writer} Writer
|
|
26997
|
+
*/
|
|
26998
|
+
ContentfulFeaturedContentDeleted.encode = function encode(message, writer) {
|
|
26999
|
+
if (!writer)
|
|
27000
|
+
writer = $Writer.create();
|
|
27001
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
27002
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
27003
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
27004
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.deletedAt);
|
|
27005
|
+
return writer;
|
|
27006
|
+
};
|
|
27007
|
+
|
|
27008
|
+
/**
|
|
27009
|
+
* Encodes the specified ContentfulFeaturedContentDeleted message, length delimited. Does not implicitly {@link ContentfulFeaturedContentDeleted.verify|verify} messages.
|
|
27010
|
+
* @function encodeDelimited
|
|
27011
|
+
* @memberof ContentfulFeaturedContentDeleted
|
|
27012
|
+
* @static
|
|
27013
|
+
* @param {IContentfulFeaturedContentDeleted} message ContentfulFeaturedContentDeleted message or plain object to encode
|
|
27014
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
27015
|
+
* @returns {$protobuf.Writer} Writer
|
|
27016
|
+
*/
|
|
27017
|
+
ContentfulFeaturedContentDeleted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
27018
|
+
return this.encode(message, writer).ldelim();
|
|
27019
|
+
};
|
|
27020
|
+
|
|
27021
|
+
/**
|
|
27022
|
+
* Decodes a ContentfulFeaturedContentDeleted message from the specified reader or buffer.
|
|
27023
|
+
* @function decode
|
|
27024
|
+
* @memberof ContentfulFeaturedContentDeleted
|
|
27025
|
+
* @static
|
|
27026
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
27027
|
+
* @param {number} [length] Message length if known beforehand
|
|
27028
|
+
* @returns {ContentfulFeaturedContentDeleted} ContentfulFeaturedContentDeleted
|
|
27029
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
27030
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
27031
|
+
*/
|
|
27032
|
+
ContentfulFeaturedContentDeleted.decode = function decode(reader, length) {
|
|
27033
|
+
if (!(reader instanceof $Reader))
|
|
27034
|
+
reader = $Reader.create(reader);
|
|
27035
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulFeaturedContentDeleted();
|
|
27036
|
+
while (reader.pos < end) {
|
|
27037
|
+
var tag = reader.uint32();
|
|
27038
|
+
switch (tag >>> 3) {
|
|
27039
|
+
case 1:
|
|
27040
|
+
message.slug = reader.string();
|
|
27041
|
+
break;
|
|
27042
|
+
case 2:
|
|
27043
|
+
message.deletedAt = reader.uint64();
|
|
27044
|
+
break;
|
|
27045
|
+
default:
|
|
27046
|
+
reader.skipType(tag & 7);
|
|
27047
|
+
break;
|
|
27048
|
+
}
|
|
27049
|
+
}
|
|
27050
|
+
return message;
|
|
27051
|
+
};
|
|
27052
|
+
|
|
27053
|
+
/**
|
|
27054
|
+
* Decodes a ContentfulFeaturedContentDeleted message from the specified reader or buffer, length delimited.
|
|
27055
|
+
* @function decodeDelimited
|
|
27056
|
+
* @memberof ContentfulFeaturedContentDeleted
|
|
27057
|
+
* @static
|
|
27058
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
27059
|
+
* @returns {ContentfulFeaturedContentDeleted} ContentfulFeaturedContentDeleted
|
|
27060
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
27061
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
27062
|
+
*/
|
|
27063
|
+
ContentfulFeaturedContentDeleted.decodeDelimited = function decodeDelimited(reader) {
|
|
27064
|
+
if (!(reader instanceof $Reader))
|
|
27065
|
+
reader = new $Reader(reader);
|
|
27066
|
+
return this.decode(reader, reader.uint32());
|
|
27067
|
+
};
|
|
27068
|
+
|
|
27069
|
+
/**
|
|
27070
|
+
* Verifies a ContentfulFeaturedContentDeleted message.
|
|
27071
|
+
* @function verify
|
|
27072
|
+
* @memberof ContentfulFeaturedContentDeleted
|
|
27073
|
+
* @static
|
|
27074
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
27075
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
27076
|
+
*/
|
|
27077
|
+
ContentfulFeaturedContentDeleted.verify = function verify(message) {
|
|
27078
|
+
if (typeof message !== "object" || message === null)
|
|
27079
|
+
return "object expected";
|
|
27080
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
27081
|
+
if (!$util.isString(message.slug))
|
|
27082
|
+
return "slug: string expected";
|
|
27083
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
27084
|
+
if (!$util.isInteger(message.deletedAt) && !(message.deletedAt && $util.isInteger(message.deletedAt.low) && $util.isInteger(message.deletedAt.high)))
|
|
27085
|
+
return "deletedAt: integer|Long expected";
|
|
27086
|
+
return null;
|
|
27087
|
+
};
|
|
27088
|
+
|
|
27089
|
+
/**
|
|
27090
|
+
* Creates a ContentfulFeaturedContentDeleted message from a plain object. Also converts values to their respective internal types.
|
|
27091
|
+
* @function fromObject
|
|
27092
|
+
* @memberof ContentfulFeaturedContentDeleted
|
|
27093
|
+
* @static
|
|
27094
|
+
* @param {Object.<string,*>} object Plain object
|
|
27095
|
+
* @returns {ContentfulFeaturedContentDeleted} ContentfulFeaturedContentDeleted
|
|
27096
|
+
*/
|
|
27097
|
+
ContentfulFeaturedContentDeleted.fromObject = function fromObject(object) {
|
|
27098
|
+
if (object instanceof $root.ContentfulFeaturedContentDeleted)
|
|
27099
|
+
return object;
|
|
27100
|
+
var message = new $root.ContentfulFeaturedContentDeleted();
|
|
27101
|
+
if (object.slug != null)
|
|
27102
|
+
message.slug = String(object.slug);
|
|
27103
|
+
if (object.deletedAt != null)
|
|
27104
|
+
if ($util.Long)
|
|
27105
|
+
(message.deletedAt = $util.Long.fromValue(object.deletedAt)).unsigned = true;
|
|
27106
|
+
else if (typeof object.deletedAt === "string")
|
|
27107
|
+
message.deletedAt = parseInt(object.deletedAt, 10);
|
|
27108
|
+
else if (typeof object.deletedAt === "number")
|
|
27109
|
+
message.deletedAt = object.deletedAt;
|
|
27110
|
+
else if (typeof object.deletedAt === "object")
|
|
27111
|
+
message.deletedAt = new $util.LongBits(object.deletedAt.low >>> 0, object.deletedAt.high >>> 0).toNumber(true);
|
|
27112
|
+
return message;
|
|
27113
|
+
};
|
|
27114
|
+
|
|
27115
|
+
/**
|
|
27116
|
+
* Creates a plain object from a ContentfulFeaturedContentDeleted message. Also converts values to other types if specified.
|
|
27117
|
+
* @function toObject
|
|
27118
|
+
* @memberof ContentfulFeaturedContentDeleted
|
|
27119
|
+
* @static
|
|
27120
|
+
* @param {ContentfulFeaturedContentDeleted} message ContentfulFeaturedContentDeleted
|
|
27121
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
27122
|
+
* @returns {Object.<string,*>} Plain object
|
|
27123
|
+
*/
|
|
27124
|
+
ContentfulFeaturedContentDeleted.toObject = function toObject(message, options) {
|
|
27125
|
+
if (!options)
|
|
27126
|
+
options = {};
|
|
27127
|
+
var object = {};
|
|
27128
|
+
if (options.defaults) {
|
|
27129
|
+
object.slug = "";
|
|
27130
|
+
if ($util.Long) {
|
|
27131
|
+
var long = new $util.Long(0, 0, true);
|
|
27132
|
+
object.deletedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
27133
|
+
} else
|
|
27134
|
+
object.deletedAt = options.longs === String ? "0" : 0;
|
|
27135
|
+
}
|
|
27136
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
27137
|
+
object.slug = message.slug;
|
|
27138
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
27139
|
+
if (typeof message.deletedAt === "number")
|
|
27140
|
+
object.deletedAt = options.longs === String ? String(message.deletedAt) : message.deletedAt;
|
|
27141
|
+
else
|
|
27142
|
+
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;
|
|
27143
|
+
return object;
|
|
27144
|
+
};
|
|
27145
|
+
|
|
27146
|
+
/**
|
|
27147
|
+
* Converts this ContentfulFeaturedContentDeleted to JSON.
|
|
27148
|
+
* @function toJSON
|
|
27149
|
+
* @memberof ContentfulFeaturedContentDeleted
|
|
27150
|
+
* @instance
|
|
27151
|
+
* @returns {Object.<string,*>} JSON object
|
|
27152
|
+
*/
|
|
27153
|
+
ContentfulFeaturedContentDeleted.prototype.toJSON = function toJSON() {
|
|
27154
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
27155
|
+
};
|
|
27156
|
+
|
|
27157
|
+
return ContentfulFeaturedContentDeleted;
|
|
27158
|
+
})();
|
|
27159
|
+
|
|
25980
27160
|
$root.ContentfulContentModelCreated = (function() {
|
|
25981
27161
|
|
|
25982
27162
|
/**
|