@headspace/protos-events 1.146.0 → 1.148.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 +462 -0
- package/lib/index.js +1344 -0
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -10409,6 +10409,252 @@ $root.userdomain = (function() {
|
|
|
10409
10409
|
return userdomain;
|
|
10410
10410
|
})();
|
|
10411
10411
|
|
|
10412
|
+
$root.Auth0PasswordResetCompleted = (function() {
|
|
10413
|
+
|
|
10414
|
+
/**
|
|
10415
|
+
* Properties of an Auth0PasswordResetCompleted.
|
|
10416
|
+
* @exports IAuth0PasswordResetCompleted
|
|
10417
|
+
* @interface IAuth0PasswordResetCompleted
|
|
10418
|
+
* @property {string|null} [hsId] Auth0PasswordResetCompleted hsId
|
|
10419
|
+
* @property {string|null} [email] Auth0PasswordResetCompleted email
|
|
10420
|
+
* @property {number|Long|null} [timestampMillis] Auth0PasswordResetCompleted timestampMillis
|
|
10421
|
+
*/
|
|
10422
|
+
|
|
10423
|
+
/**
|
|
10424
|
+
* Constructs a new Auth0PasswordResetCompleted.
|
|
10425
|
+
* @exports Auth0PasswordResetCompleted
|
|
10426
|
+
* @classdesc Represents an Auth0PasswordResetCompleted.
|
|
10427
|
+
* @implements IAuth0PasswordResetCompleted
|
|
10428
|
+
* @constructor
|
|
10429
|
+
* @param {IAuth0PasswordResetCompleted=} [properties] Properties to set
|
|
10430
|
+
*/
|
|
10431
|
+
function Auth0PasswordResetCompleted(properties) {
|
|
10432
|
+
if (properties)
|
|
10433
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
10434
|
+
if (properties[keys[i]] != null)
|
|
10435
|
+
this[keys[i]] = properties[keys[i]];
|
|
10436
|
+
}
|
|
10437
|
+
|
|
10438
|
+
/**
|
|
10439
|
+
* Auth0PasswordResetCompleted hsId.
|
|
10440
|
+
* @member {string} hsId
|
|
10441
|
+
* @memberof Auth0PasswordResetCompleted
|
|
10442
|
+
* @instance
|
|
10443
|
+
*/
|
|
10444
|
+
Auth0PasswordResetCompleted.prototype.hsId = "";
|
|
10445
|
+
|
|
10446
|
+
/**
|
|
10447
|
+
* Auth0PasswordResetCompleted email.
|
|
10448
|
+
* @member {string} email
|
|
10449
|
+
* @memberof Auth0PasswordResetCompleted
|
|
10450
|
+
* @instance
|
|
10451
|
+
*/
|
|
10452
|
+
Auth0PasswordResetCompleted.prototype.email = "";
|
|
10453
|
+
|
|
10454
|
+
/**
|
|
10455
|
+
* Auth0PasswordResetCompleted timestampMillis.
|
|
10456
|
+
* @member {number|Long} timestampMillis
|
|
10457
|
+
* @memberof Auth0PasswordResetCompleted
|
|
10458
|
+
* @instance
|
|
10459
|
+
*/
|
|
10460
|
+
Auth0PasswordResetCompleted.prototype.timestampMillis = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
10461
|
+
|
|
10462
|
+
/**
|
|
10463
|
+
* Creates a new Auth0PasswordResetCompleted instance using the specified properties.
|
|
10464
|
+
* @function create
|
|
10465
|
+
* @memberof Auth0PasswordResetCompleted
|
|
10466
|
+
* @static
|
|
10467
|
+
* @param {IAuth0PasswordResetCompleted=} [properties] Properties to set
|
|
10468
|
+
* @returns {Auth0PasswordResetCompleted} Auth0PasswordResetCompleted instance
|
|
10469
|
+
*/
|
|
10470
|
+
Auth0PasswordResetCompleted.create = function create(properties) {
|
|
10471
|
+
return new Auth0PasswordResetCompleted(properties);
|
|
10472
|
+
};
|
|
10473
|
+
|
|
10474
|
+
/**
|
|
10475
|
+
* Encodes the specified Auth0PasswordResetCompleted message. Does not implicitly {@link Auth0PasswordResetCompleted.verify|verify} messages.
|
|
10476
|
+
* @function encode
|
|
10477
|
+
* @memberof Auth0PasswordResetCompleted
|
|
10478
|
+
* @static
|
|
10479
|
+
* @param {IAuth0PasswordResetCompleted} message Auth0PasswordResetCompleted message or plain object to encode
|
|
10480
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
10481
|
+
* @returns {$protobuf.Writer} Writer
|
|
10482
|
+
*/
|
|
10483
|
+
Auth0PasswordResetCompleted.encode = function encode(message, writer) {
|
|
10484
|
+
if (!writer)
|
|
10485
|
+
writer = $Writer.create();
|
|
10486
|
+
if (message.hsId != null && message.hasOwnProperty("hsId"))
|
|
10487
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsId);
|
|
10488
|
+
if (message.email != null && message.hasOwnProperty("email"))
|
|
10489
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.email);
|
|
10490
|
+
if (message.timestampMillis != null && message.hasOwnProperty("timestampMillis"))
|
|
10491
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.timestampMillis);
|
|
10492
|
+
return writer;
|
|
10493
|
+
};
|
|
10494
|
+
|
|
10495
|
+
/**
|
|
10496
|
+
* Encodes the specified Auth0PasswordResetCompleted message, length delimited. Does not implicitly {@link Auth0PasswordResetCompleted.verify|verify} messages.
|
|
10497
|
+
* @function encodeDelimited
|
|
10498
|
+
* @memberof Auth0PasswordResetCompleted
|
|
10499
|
+
* @static
|
|
10500
|
+
* @param {IAuth0PasswordResetCompleted} message Auth0PasswordResetCompleted message or plain object to encode
|
|
10501
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
10502
|
+
* @returns {$protobuf.Writer} Writer
|
|
10503
|
+
*/
|
|
10504
|
+
Auth0PasswordResetCompleted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
10505
|
+
return this.encode(message, writer).ldelim();
|
|
10506
|
+
};
|
|
10507
|
+
|
|
10508
|
+
/**
|
|
10509
|
+
* Decodes an Auth0PasswordResetCompleted message from the specified reader or buffer.
|
|
10510
|
+
* @function decode
|
|
10511
|
+
* @memberof Auth0PasswordResetCompleted
|
|
10512
|
+
* @static
|
|
10513
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
10514
|
+
* @param {number} [length] Message length if known beforehand
|
|
10515
|
+
* @returns {Auth0PasswordResetCompleted} Auth0PasswordResetCompleted
|
|
10516
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
10517
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
10518
|
+
*/
|
|
10519
|
+
Auth0PasswordResetCompleted.decode = function decode(reader, length) {
|
|
10520
|
+
if (!(reader instanceof $Reader))
|
|
10521
|
+
reader = $Reader.create(reader);
|
|
10522
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.Auth0PasswordResetCompleted();
|
|
10523
|
+
while (reader.pos < end) {
|
|
10524
|
+
var tag = reader.uint32();
|
|
10525
|
+
switch (tag >>> 3) {
|
|
10526
|
+
case 1:
|
|
10527
|
+
message.hsId = reader.string();
|
|
10528
|
+
break;
|
|
10529
|
+
case 2:
|
|
10530
|
+
message.email = reader.string();
|
|
10531
|
+
break;
|
|
10532
|
+
case 3:
|
|
10533
|
+
message.timestampMillis = reader.uint64();
|
|
10534
|
+
break;
|
|
10535
|
+
default:
|
|
10536
|
+
reader.skipType(tag & 7);
|
|
10537
|
+
break;
|
|
10538
|
+
}
|
|
10539
|
+
}
|
|
10540
|
+
return message;
|
|
10541
|
+
};
|
|
10542
|
+
|
|
10543
|
+
/**
|
|
10544
|
+
* Decodes an Auth0PasswordResetCompleted message from the specified reader or buffer, length delimited.
|
|
10545
|
+
* @function decodeDelimited
|
|
10546
|
+
* @memberof Auth0PasswordResetCompleted
|
|
10547
|
+
* @static
|
|
10548
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
10549
|
+
* @returns {Auth0PasswordResetCompleted} Auth0PasswordResetCompleted
|
|
10550
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
10551
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
10552
|
+
*/
|
|
10553
|
+
Auth0PasswordResetCompleted.decodeDelimited = function decodeDelimited(reader) {
|
|
10554
|
+
if (!(reader instanceof $Reader))
|
|
10555
|
+
reader = new $Reader(reader);
|
|
10556
|
+
return this.decode(reader, reader.uint32());
|
|
10557
|
+
};
|
|
10558
|
+
|
|
10559
|
+
/**
|
|
10560
|
+
* Verifies an Auth0PasswordResetCompleted message.
|
|
10561
|
+
* @function verify
|
|
10562
|
+
* @memberof Auth0PasswordResetCompleted
|
|
10563
|
+
* @static
|
|
10564
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
10565
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
10566
|
+
*/
|
|
10567
|
+
Auth0PasswordResetCompleted.verify = function verify(message) {
|
|
10568
|
+
if (typeof message !== "object" || message === null)
|
|
10569
|
+
return "object expected";
|
|
10570
|
+
if (message.hsId != null && message.hasOwnProperty("hsId"))
|
|
10571
|
+
if (!$util.isString(message.hsId))
|
|
10572
|
+
return "hsId: string expected";
|
|
10573
|
+
if (message.email != null && message.hasOwnProperty("email"))
|
|
10574
|
+
if (!$util.isString(message.email))
|
|
10575
|
+
return "email: string expected";
|
|
10576
|
+
if (message.timestampMillis != null && message.hasOwnProperty("timestampMillis"))
|
|
10577
|
+
if (!$util.isInteger(message.timestampMillis) && !(message.timestampMillis && $util.isInteger(message.timestampMillis.low) && $util.isInteger(message.timestampMillis.high)))
|
|
10578
|
+
return "timestampMillis: integer|Long expected";
|
|
10579
|
+
return null;
|
|
10580
|
+
};
|
|
10581
|
+
|
|
10582
|
+
/**
|
|
10583
|
+
* Creates an Auth0PasswordResetCompleted message from a plain object. Also converts values to their respective internal types.
|
|
10584
|
+
* @function fromObject
|
|
10585
|
+
* @memberof Auth0PasswordResetCompleted
|
|
10586
|
+
* @static
|
|
10587
|
+
* @param {Object.<string,*>} object Plain object
|
|
10588
|
+
* @returns {Auth0PasswordResetCompleted} Auth0PasswordResetCompleted
|
|
10589
|
+
*/
|
|
10590
|
+
Auth0PasswordResetCompleted.fromObject = function fromObject(object) {
|
|
10591
|
+
if (object instanceof $root.Auth0PasswordResetCompleted)
|
|
10592
|
+
return object;
|
|
10593
|
+
var message = new $root.Auth0PasswordResetCompleted();
|
|
10594
|
+
if (object.hsId != null)
|
|
10595
|
+
message.hsId = String(object.hsId);
|
|
10596
|
+
if (object.email != null)
|
|
10597
|
+
message.email = String(object.email);
|
|
10598
|
+
if (object.timestampMillis != null)
|
|
10599
|
+
if ($util.Long)
|
|
10600
|
+
(message.timestampMillis = $util.Long.fromValue(object.timestampMillis)).unsigned = true;
|
|
10601
|
+
else if (typeof object.timestampMillis === "string")
|
|
10602
|
+
message.timestampMillis = parseInt(object.timestampMillis, 10);
|
|
10603
|
+
else if (typeof object.timestampMillis === "number")
|
|
10604
|
+
message.timestampMillis = object.timestampMillis;
|
|
10605
|
+
else if (typeof object.timestampMillis === "object")
|
|
10606
|
+
message.timestampMillis = new $util.LongBits(object.timestampMillis.low >>> 0, object.timestampMillis.high >>> 0).toNumber(true);
|
|
10607
|
+
return message;
|
|
10608
|
+
};
|
|
10609
|
+
|
|
10610
|
+
/**
|
|
10611
|
+
* Creates a plain object from an Auth0PasswordResetCompleted message. Also converts values to other types if specified.
|
|
10612
|
+
* @function toObject
|
|
10613
|
+
* @memberof Auth0PasswordResetCompleted
|
|
10614
|
+
* @static
|
|
10615
|
+
* @param {Auth0PasswordResetCompleted} message Auth0PasswordResetCompleted
|
|
10616
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
10617
|
+
* @returns {Object.<string,*>} Plain object
|
|
10618
|
+
*/
|
|
10619
|
+
Auth0PasswordResetCompleted.toObject = function toObject(message, options) {
|
|
10620
|
+
if (!options)
|
|
10621
|
+
options = {};
|
|
10622
|
+
var object = {};
|
|
10623
|
+
if (options.defaults) {
|
|
10624
|
+
object.hsId = "";
|
|
10625
|
+
object.email = "";
|
|
10626
|
+
if ($util.Long) {
|
|
10627
|
+
var long = new $util.Long(0, 0, true);
|
|
10628
|
+
object.timestampMillis = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
10629
|
+
} else
|
|
10630
|
+
object.timestampMillis = options.longs === String ? "0" : 0;
|
|
10631
|
+
}
|
|
10632
|
+
if (message.hsId != null && message.hasOwnProperty("hsId"))
|
|
10633
|
+
object.hsId = message.hsId;
|
|
10634
|
+
if (message.email != null && message.hasOwnProperty("email"))
|
|
10635
|
+
object.email = message.email;
|
|
10636
|
+
if (message.timestampMillis != null && message.hasOwnProperty("timestampMillis"))
|
|
10637
|
+
if (typeof message.timestampMillis === "number")
|
|
10638
|
+
object.timestampMillis = options.longs === String ? String(message.timestampMillis) : message.timestampMillis;
|
|
10639
|
+
else
|
|
10640
|
+
object.timestampMillis = options.longs === String ? $util.Long.prototype.toString.call(message.timestampMillis) : options.longs === Number ? new $util.LongBits(message.timestampMillis.low >>> 0, message.timestampMillis.high >>> 0).toNumber(true) : message.timestampMillis;
|
|
10641
|
+
return object;
|
|
10642
|
+
};
|
|
10643
|
+
|
|
10644
|
+
/**
|
|
10645
|
+
* Converts this Auth0PasswordResetCompleted to JSON.
|
|
10646
|
+
* @function toJSON
|
|
10647
|
+
* @memberof Auth0PasswordResetCompleted
|
|
10648
|
+
* @instance
|
|
10649
|
+
* @returns {Object.<string,*>} JSON object
|
|
10650
|
+
*/
|
|
10651
|
+
Auth0PasswordResetCompleted.prototype.toJSON = function toJSON() {
|
|
10652
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
10653
|
+
};
|
|
10654
|
+
|
|
10655
|
+
return Auth0PasswordResetCompleted;
|
|
10656
|
+
})();
|
|
10657
|
+
|
|
10412
10658
|
$root.ContentfulAssetCreated = (function() {
|
|
10413
10659
|
|
|
10414
10660
|
/**
|
|
@@ -23257,6 +23503,1104 @@ $root.ContentfulActivityGroupDeleted = (function() {
|
|
|
23257
23503
|
return ContentfulActivityGroupDeleted;
|
|
23258
23504
|
})();
|
|
23259
23505
|
|
|
23506
|
+
$root.ContentfulLayoutCreated = (function() {
|
|
23507
|
+
|
|
23508
|
+
/**
|
|
23509
|
+
* Properties of a ContentfulLayoutCreated.
|
|
23510
|
+
* @exports IContentfulLayoutCreated
|
|
23511
|
+
* @interface IContentfulLayoutCreated
|
|
23512
|
+
* @property {string|null} [name] ContentfulLayoutCreated name
|
|
23513
|
+
* @property {string|null} [slug] ContentfulLayoutCreated slug
|
|
23514
|
+
* @property {string|null} [theme] ContentfulLayoutCreated theme
|
|
23515
|
+
* @property {Array.<string>|null} [languageExclusions] ContentfulLayoutCreated languageExclusions
|
|
23516
|
+
* @property {Array.<contentful.ISlugReference>|null} [moduleDescriptors] ContentfulLayoutCreated moduleDescriptors
|
|
23517
|
+
* @property {Array.<contentful.ISlugReference>|null} [accessGroups] ContentfulLayoutCreated accessGroups
|
|
23518
|
+
* @property {Array.<contentful.ISlugReference>|null} [excludedAccessGroups] ContentfulLayoutCreated excludedAccessGroups
|
|
23519
|
+
* @property {number|Long|null} [createdAt] ContentfulLayoutCreated createdAt
|
|
23520
|
+
*/
|
|
23521
|
+
|
|
23522
|
+
/**
|
|
23523
|
+
* Constructs a new ContentfulLayoutCreated.
|
|
23524
|
+
* @exports ContentfulLayoutCreated
|
|
23525
|
+
* @classdesc Represents a ContentfulLayoutCreated.
|
|
23526
|
+
* @implements IContentfulLayoutCreated
|
|
23527
|
+
* @constructor
|
|
23528
|
+
* @param {IContentfulLayoutCreated=} [properties] Properties to set
|
|
23529
|
+
*/
|
|
23530
|
+
function ContentfulLayoutCreated(properties) {
|
|
23531
|
+
this.languageExclusions = [];
|
|
23532
|
+
this.moduleDescriptors = [];
|
|
23533
|
+
this.accessGroups = [];
|
|
23534
|
+
this.excludedAccessGroups = [];
|
|
23535
|
+
if (properties)
|
|
23536
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
23537
|
+
if (properties[keys[i]] != null)
|
|
23538
|
+
this[keys[i]] = properties[keys[i]];
|
|
23539
|
+
}
|
|
23540
|
+
|
|
23541
|
+
/**
|
|
23542
|
+
* ContentfulLayoutCreated name.
|
|
23543
|
+
* @member {string} name
|
|
23544
|
+
* @memberof ContentfulLayoutCreated
|
|
23545
|
+
* @instance
|
|
23546
|
+
*/
|
|
23547
|
+
ContentfulLayoutCreated.prototype.name = "";
|
|
23548
|
+
|
|
23549
|
+
/**
|
|
23550
|
+
* ContentfulLayoutCreated slug.
|
|
23551
|
+
* @member {string} slug
|
|
23552
|
+
* @memberof ContentfulLayoutCreated
|
|
23553
|
+
* @instance
|
|
23554
|
+
*/
|
|
23555
|
+
ContentfulLayoutCreated.prototype.slug = "";
|
|
23556
|
+
|
|
23557
|
+
/**
|
|
23558
|
+
* ContentfulLayoutCreated theme.
|
|
23559
|
+
* @member {string} theme
|
|
23560
|
+
* @memberof ContentfulLayoutCreated
|
|
23561
|
+
* @instance
|
|
23562
|
+
*/
|
|
23563
|
+
ContentfulLayoutCreated.prototype.theme = "";
|
|
23564
|
+
|
|
23565
|
+
/**
|
|
23566
|
+
* ContentfulLayoutCreated languageExclusions.
|
|
23567
|
+
* @member {Array.<string>} languageExclusions
|
|
23568
|
+
* @memberof ContentfulLayoutCreated
|
|
23569
|
+
* @instance
|
|
23570
|
+
*/
|
|
23571
|
+
ContentfulLayoutCreated.prototype.languageExclusions = $util.emptyArray;
|
|
23572
|
+
|
|
23573
|
+
/**
|
|
23574
|
+
* ContentfulLayoutCreated moduleDescriptors.
|
|
23575
|
+
* @member {Array.<contentful.ISlugReference>} moduleDescriptors
|
|
23576
|
+
* @memberof ContentfulLayoutCreated
|
|
23577
|
+
* @instance
|
|
23578
|
+
*/
|
|
23579
|
+
ContentfulLayoutCreated.prototype.moduleDescriptors = $util.emptyArray;
|
|
23580
|
+
|
|
23581
|
+
/**
|
|
23582
|
+
* ContentfulLayoutCreated accessGroups.
|
|
23583
|
+
* @member {Array.<contentful.ISlugReference>} accessGroups
|
|
23584
|
+
* @memberof ContentfulLayoutCreated
|
|
23585
|
+
* @instance
|
|
23586
|
+
*/
|
|
23587
|
+
ContentfulLayoutCreated.prototype.accessGroups = $util.emptyArray;
|
|
23588
|
+
|
|
23589
|
+
/**
|
|
23590
|
+
* ContentfulLayoutCreated excludedAccessGroups.
|
|
23591
|
+
* @member {Array.<contentful.ISlugReference>} excludedAccessGroups
|
|
23592
|
+
* @memberof ContentfulLayoutCreated
|
|
23593
|
+
* @instance
|
|
23594
|
+
*/
|
|
23595
|
+
ContentfulLayoutCreated.prototype.excludedAccessGroups = $util.emptyArray;
|
|
23596
|
+
|
|
23597
|
+
/**
|
|
23598
|
+
* ContentfulLayoutCreated createdAt.
|
|
23599
|
+
* @member {number|Long} createdAt
|
|
23600
|
+
* @memberof ContentfulLayoutCreated
|
|
23601
|
+
* @instance
|
|
23602
|
+
*/
|
|
23603
|
+
ContentfulLayoutCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
23604
|
+
|
|
23605
|
+
/**
|
|
23606
|
+
* Creates a new ContentfulLayoutCreated instance using the specified properties.
|
|
23607
|
+
* @function create
|
|
23608
|
+
* @memberof ContentfulLayoutCreated
|
|
23609
|
+
* @static
|
|
23610
|
+
* @param {IContentfulLayoutCreated=} [properties] Properties to set
|
|
23611
|
+
* @returns {ContentfulLayoutCreated} ContentfulLayoutCreated instance
|
|
23612
|
+
*/
|
|
23613
|
+
ContentfulLayoutCreated.create = function create(properties) {
|
|
23614
|
+
return new ContentfulLayoutCreated(properties);
|
|
23615
|
+
};
|
|
23616
|
+
|
|
23617
|
+
/**
|
|
23618
|
+
* Encodes the specified ContentfulLayoutCreated message. Does not implicitly {@link ContentfulLayoutCreated.verify|verify} messages.
|
|
23619
|
+
* @function encode
|
|
23620
|
+
* @memberof ContentfulLayoutCreated
|
|
23621
|
+
* @static
|
|
23622
|
+
* @param {IContentfulLayoutCreated} message ContentfulLayoutCreated message or plain object to encode
|
|
23623
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
23624
|
+
* @returns {$protobuf.Writer} Writer
|
|
23625
|
+
*/
|
|
23626
|
+
ContentfulLayoutCreated.encode = function encode(message, writer) {
|
|
23627
|
+
if (!writer)
|
|
23628
|
+
writer = $Writer.create();
|
|
23629
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
23630
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
|
|
23631
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
23632
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.slug);
|
|
23633
|
+
if (message.theme != null && message.hasOwnProperty("theme"))
|
|
23634
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.theme);
|
|
23635
|
+
if (message.languageExclusions != null && message.languageExclusions.length)
|
|
23636
|
+
for (var i = 0; i < message.languageExclusions.length; ++i)
|
|
23637
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.languageExclusions[i]);
|
|
23638
|
+
if (message.moduleDescriptors != null && message.moduleDescriptors.length)
|
|
23639
|
+
for (var i = 0; i < message.moduleDescriptors.length; ++i)
|
|
23640
|
+
$root.contentful.SlugReference.encode(message.moduleDescriptors[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
23641
|
+
if (message.accessGroups != null && message.accessGroups.length)
|
|
23642
|
+
for (var i = 0; i < message.accessGroups.length; ++i)
|
|
23643
|
+
$root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
23644
|
+
if (message.excludedAccessGroups != null && message.excludedAccessGroups.length)
|
|
23645
|
+
for (var i = 0; i < message.excludedAccessGroups.length; ++i)
|
|
23646
|
+
$root.contentful.SlugReference.encode(message.excludedAccessGroups[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
|
23647
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
23648
|
+
writer.uint32(/* id 8, wireType 0 =*/64).uint64(message.createdAt);
|
|
23649
|
+
return writer;
|
|
23650
|
+
};
|
|
23651
|
+
|
|
23652
|
+
/**
|
|
23653
|
+
* Encodes the specified ContentfulLayoutCreated message, length delimited. Does not implicitly {@link ContentfulLayoutCreated.verify|verify} messages.
|
|
23654
|
+
* @function encodeDelimited
|
|
23655
|
+
* @memberof ContentfulLayoutCreated
|
|
23656
|
+
* @static
|
|
23657
|
+
* @param {IContentfulLayoutCreated} message ContentfulLayoutCreated message or plain object to encode
|
|
23658
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
23659
|
+
* @returns {$protobuf.Writer} Writer
|
|
23660
|
+
*/
|
|
23661
|
+
ContentfulLayoutCreated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
23662
|
+
return this.encode(message, writer).ldelim();
|
|
23663
|
+
};
|
|
23664
|
+
|
|
23665
|
+
/**
|
|
23666
|
+
* Decodes a ContentfulLayoutCreated message from the specified reader or buffer.
|
|
23667
|
+
* @function decode
|
|
23668
|
+
* @memberof ContentfulLayoutCreated
|
|
23669
|
+
* @static
|
|
23670
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
23671
|
+
* @param {number} [length] Message length if known beforehand
|
|
23672
|
+
* @returns {ContentfulLayoutCreated} ContentfulLayoutCreated
|
|
23673
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
23674
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
23675
|
+
*/
|
|
23676
|
+
ContentfulLayoutCreated.decode = function decode(reader, length) {
|
|
23677
|
+
if (!(reader instanceof $Reader))
|
|
23678
|
+
reader = $Reader.create(reader);
|
|
23679
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulLayoutCreated();
|
|
23680
|
+
while (reader.pos < end) {
|
|
23681
|
+
var tag = reader.uint32();
|
|
23682
|
+
switch (tag >>> 3) {
|
|
23683
|
+
case 1:
|
|
23684
|
+
message.name = reader.string();
|
|
23685
|
+
break;
|
|
23686
|
+
case 2:
|
|
23687
|
+
message.slug = reader.string();
|
|
23688
|
+
break;
|
|
23689
|
+
case 3:
|
|
23690
|
+
message.theme = reader.string();
|
|
23691
|
+
break;
|
|
23692
|
+
case 4:
|
|
23693
|
+
if (!(message.languageExclusions && message.languageExclusions.length))
|
|
23694
|
+
message.languageExclusions = [];
|
|
23695
|
+
message.languageExclusions.push(reader.string());
|
|
23696
|
+
break;
|
|
23697
|
+
case 5:
|
|
23698
|
+
if (!(message.moduleDescriptors && message.moduleDescriptors.length))
|
|
23699
|
+
message.moduleDescriptors = [];
|
|
23700
|
+
message.moduleDescriptors.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
23701
|
+
break;
|
|
23702
|
+
case 6:
|
|
23703
|
+
if (!(message.accessGroups && message.accessGroups.length))
|
|
23704
|
+
message.accessGroups = [];
|
|
23705
|
+
message.accessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
23706
|
+
break;
|
|
23707
|
+
case 7:
|
|
23708
|
+
if (!(message.excludedAccessGroups && message.excludedAccessGroups.length))
|
|
23709
|
+
message.excludedAccessGroups = [];
|
|
23710
|
+
message.excludedAccessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
23711
|
+
break;
|
|
23712
|
+
case 8:
|
|
23713
|
+
message.createdAt = reader.uint64();
|
|
23714
|
+
break;
|
|
23715
|
+
default:
|
|
23716
|
+
reader.skipType(tag & 7);
|
|
23717
|
+
break;
|
|
23718
|
+
}
|
|
23719
|
+
}
|
|
23720
|
+
return message;
|
|
23721
|
+
};
|
|
23722
|
+
|
|
23723
|
+
/**
|
|
23724
|
+
* Decodes a ContentfulLayoutCreated message from the specified reader or buffer, length delimited.
|
|
23725
|
+
* @function decodeDelimited
|
|
23726
|
+
* @memberof ContentfulLayoutCreated
|
|
23727
|
+
* @static
|
|
23728
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
23729
|
+
* @returns {ContentfulLayoutCreated} ContentfulLayoutCreated
|
|
23730
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
23731
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
23732
|
+
*/
|
|
23733
|
+
ContentfulLayoutCreated.decodeDelimited = function decodeDelimited(reader) {
|
|
23734
|
+
if (!(reader instanceof $Reader))
|
|
23735
|
+
reader = new $Reader(reader);
|
|
23736
|
+
return this.decode(reader, reader.uint32());
|
|
23737
|
+
};
|
|
23738
|
+
|
|
23739
|
+
/**
|
|
23740
|
+
* Verifies a ContentfulLayoutCreated message.
|
|
23741
|
+
* @function verify
|
|
23742
|
+
* @memberof ContentfulLayoutCreated
|
|
23743
|
+
* @static
|
|
23744
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
23745
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
23746
|
+
*/
|
|
23747
|
+
ContentfulLayoutCreated.verify = function verify(message) {
|
|
23748
|
+
if (typeof message !== "object" || message === null)
|
|
23749
|
+
return "object expected";
|
|
23750
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
23751
|
+
if (!$util.isString(message.name))
|
|
23752
|
+
return "name: string expected";
|
|
23753
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
23754
|
+
if (!$util.isString(message.slug))
|
|
23755
|
+
return "slug: string expected";
|
|
23756
|
+
if (message.theme != null && message.hasOwnProperty("theme"))
|
|
23757
|
+
if (!$util.isString(message.theme))
|
|
23758
|
+
return "theme: string expected";
|
|
23759
|
+
if (message.languageExclusions != null && message.hasOwnProperty("languageExclusions")) {
|
|
23760
|
+
if (!Array.isArray(message.languageExclusions))
|
|
23761
|
+
return "languageExclusions: array expected";
|
|
23762
|
+
for (var i = 0; i < message.languageExclusions.length; ++i)
|
|
23763
|
+
if (!$util.isString(message.languageExclusions[i]))
|
|
23764
|
+
return "languageExclusions: string[] expected";
|
|
23765
|
+
}
|
|
23766
|
+
if (message.moduleDescriptors != null && message.hasOwnProperty("moduleDescriptors")) {
|
|
23767
|
+
if (!Array.isArray(message.moduleDescriptors))
|
|
23768
|
+
return "moduleDescriptors: array expected";
|
|
23769
|
+
for (var i = 0; i < message.moduleDescriptors.length; ++i) {
|
|
23770
|
+
var error = $root.contentful.SlugReference.verify(message.moduleDescriptors[i]);
|
|
23771
|
+
if (error)
|
|
23772
|
+
return "moduleDescriptors." + error;
|
|
23773
|
+
}
|
|
23774
|
+
}
|
|
23775
|
+
if (message.accessGroups != null && message.hasOwnProperty("accessGroups")) {
|
|
23776
|
+
if (!Array.isArray(message.accessGroups))
|
|
23777
|
+
return "accessGroups: array expected";
|
|
23778
|
+
for (var i = 0; i < message.accessGroups.length; ++i) {
|
|
23779
|
+
var error = $root.contentful.SlugReference.verify(message.accessGroups[i]);
|
|
23780
|
+
if (error)
|
|
23781
|
+
return "accessGroups." + error;
|
|
23782
|
+
}
|
|
23783
|
+
}
|
|
23784
|
+
if (message.excludedAccessGroups != null && message.hasOwnProperty("excludedAccessGroups")) {
|
|
23785
|
+
if (!Array.isArray(message.excludedAccessGroups))
|
|
23786
|
+
return "excludedAccessGroups: array expected";
|
|
23787
|
+
for (var i = 0; i < message.excludedAccessGroups.length; ++i) {
|
|
23788
|
+
var error = $root.contentful.SlugReference.verify(message.excludedAccessGroups[i]);
|
|
23789
|
+
if (error)
|
|
23790
|
+
return "excludedAccessGroups." + error;
|
|
23791
|
+
}
|
|
23792
|
+
}
|
|
23793
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
23794
|
+
if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
|
|
23795
|
+
return "createdAt: integer|Long expected";
|
|
23796
|
+
return null;
|
|
23797
|
+
};
|
|
23798
|
+
|
|
23799
|
+
/**
|
|
23800
|
+
* Creates a ContentfulLayoutCreated message from a plain object. Also converts values to their respective internal types.
|
|
23801
|
+
* @function fromObject
|
|
23802
|
+
* @memberof ContentfulLayoutCreated
|
|
23803
|
+
* @static
|
|
23804
|
+
* @param {Object.<string,*>} object Plain object
|
|
23805
|
+
* @returns {ContentfulLayoutCreated} ContentfulLayoutCreated
|
|
23806
|
+
*/
|
|
23807
|
+
ContentfulLayoutCreated.fromObject = function fromObject(object) {
|
|
23808
|
+
if (object instanceof $root.ContentfulLayoutCreated)
|
|
23809
|
+
return object;
|
|
23810
|
+
var message = new $root.ContentfulLayoutCreated();
|
|
23811
|
+
if (object.name != null)
|
|
23812
|
+
message.name = String(object.name);
|
|
23813
|
+
if (object.slug != null)
|
|
23814
|
+
message.slug = String(object.slug);
|
|
23815
|
+
if (object.theme != null)
|
|
23816
|
+
message.theme = String(object.theme);
|
|
23817
|
+
if (object.languageExclusions) {
|
|
23818
|
+
if (!Array.isArray(object.languageExclusions))
|
|
23819
|
+
throw TypeError(".ContentfulLayoutCreated.languageExclusions: array expected");
|
|
23820
|
+
message.languageExclusions = [];
|
|
23821
|
+
for (var i = 0; i < object.languageExclusions.length; ++i)
|
|
23822
|
+
message.languageExclusions[i] = String(object.languageExclusions[i]);
|
|
23823
|
+
}
|
|
23824
|
+
if (object.moduleDescriptors) {
|
|
23825
|
+
if (!Array.isArray(object.moduleDescriptors))
|
|
23826
|
+
throw TypeError(".ContentfulLayoutCreated.moduleDescriptors: array expected");
|
|
23827
|
+
message.moduleDescriptors = [];
|
|
23828
|
+
for (var i = 0; i < object.moduleDescriptors.length; ++i) {
|
|
23829
|
+
if (typeof object.moduleDescriptors[i] !== "object")
|
|
23830
|
+
throw TypeError(".ContentfulLayoutCreated.moduleDescriptors: object expected");
|
|
23831
|
+
message.moduleDescriptors[i] = $root.contentful.SlugReference.fromObject(object.moduleDescriptors[i]);
|
|
23832
|
+
}
|
|
23833
|
+
}
|
|
23834
|
+
if (object.accessGroups) {
|
|
23835
|
+
if (!Array.isArray(object.accessGroups))
|
|
23836
|
+
throw TypeError(".ContentfulLayoutCreated.accessGroups: array expected");
|
|
23837
|
+
message.accessGroups = [];
|
|
23838
|
+
for (var i = 0; i < object.accessGroups.length; ++i) {
|
|
23839
|
+
if (typeof object.accessGroups[i] !== "object")
|
|
23840
|
+
throw TypeError(".ContentfulLayoutCreated.accessGroups: object expected");
|
|
23841
|
+
message.accessGroups[i] = $root.contentful.SlugReference.fromObject(object.accessGroups[i]);
|
|
23842
|
+
}
|
|
23843
|
+
}
|
|
23844
|
+
if (object.excludedAccessGroups) {
|
|
23845
|
+
if (!Array.isArray(object.excludedAccessGroups))
|
|
23846
|
+
throw TypeError(".ContentfulLayoutCreated.excludedAccessGroups: array expected");
|
|
23847
|
+
message.excludedAccessGroups = [];
|
|
23848
|
+
for (var i = 0; i < object.excludedAccessGroups.length; ++i) {
|
|
23849
|
+
if (typeof object.excludedAccessGroups[i] !== "object")
|
|
23850
|
+
throw TypeError(".ContentfulLayoutCreated.excludedAccessGroups: object expected");
|
|
23851
|
+
message.excludedAccessGroups[i] = $root.contentful.SlugReference.fromObject(object.excludedAccessGroups[i]);
|
|
23852
|
+
}
|
|
23853
|
+
}
|
|
23854
|
+
if (object.createdAt != null)
|
|
23855
|
+
if ($util.Long)
|
|
23856
|
+
(message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
|
|
23857
|
+
else if (typeof object.createdAt === "string")
|
|
23858
|
+
message.createdAt = parseInt(object.createdAt, 10);
|
|
23859
|
+
else if (typeof object.createdAt === "number")
|
|
23860
|
+
message.createdAt = object.createdAt;
|
|
23861
|
+
else if (typeof object.createdAt === "object")
|
|
23862
|
+
message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
|
|
23863
|
+
return message;
|
|
23864
|
+
};
|
|
23865
|
+
|
|
23866
|
+
/**
|
|
23867
|
+
* Creates a plain object from a ContentfulLayoutCreated message. Also converts values to other types if specified.
|
|
23868
|
+
* @function toObject
|
|
23869
|
+
* @memberof ContentfulLayoutCreated
|
|
23870
|
+
* @static
|
|
23871
|
+
* @param {ContentfulLayoutCreated} message ContentfulLayoutCreated
|
|
23872
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
23873
|
+
* @returns {Object.<string,*>} Plain object
|
|
23874
|
+
*/
|
|
23875
|
+
ContentfulLayoutCreated.toObject = function toObject(message, options) {
|
|
23876
|
+
if (!options)
|
|
23877
|
+
options = {};
|
|
23878
|
+
var object = {};
|
|
23879
|
+
if (options.arrays || options.defaults) {
|
|
23880
|
+
object.languageExclusions = [];
|
|
23881
|
+
object.moduleDescriptors = [];
|
|
23882
|
+
object.accessGroups = [];
|
|
23883
|
+
object.excludedAccessGroups = [];
|
|
23884
|
+
}
|
|
23885
|
+
if (options.defaults) {
|
|
23886
|
+
object.name = "";
|
|
23887
|
+
object.slug = "";
|
|
23888
|
+
object.theme = "";
|
|
23889
|
+
if ($util.Long) {
|
|
23890
|
+
var long = new $util.Long(0, 0, true);
|
|
23891
|
+
object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
23892
|
+
} else
|
|
23893
|
+
object.createdAt = options.longs === String ? "0" : 0;
|
|
23894
|
+
}
|
|
23895
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
23896
|
+
object.name = message.name;
|
|
23897
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
23898
|
+
object.slug = message.slug;
|
|
23899
|
+
if (message.theme != null && message.hasOwnProperty("theme"))
|
|
23900
|
+
object.theme = message.theme;
|
|
23901
|
+
if (message.languageExclusions && message.languageExclusions.length) {
|
|
23902
|
+
object.languageExclusions = [];
|
|
23903
|
+
for (var j = 0; j < message.languageExclusions.length; ++j)
|
|
23904
|
+
object.languageExclusions[j] = message.languageExclusions[j];
|
|
23905
|
+
}
|
|
23906
|
+
if (message.moduleDescriptors && message.moduleDescriptors.length) {
|
|
23907
|
+
object.moduleDescriptors = [];
|
|
23908
|
+
for (var j = 0; j < message.moduleDescriptors.length; ++j)
|
|
23909
|
+
object.moduleDescriptors[j] = $root.contentful.SlugReference.toObject(message.moduleDescriptors[j], options);
|
|
23910
|
+
}
|
|
23911
|
+
if (message.accessGroups && message.accessGroups.length) {
|
|
23912
|
+
object.accessGroups = [];
|
|
23913
|
+
for (var j = 0; j < message.accessGroups.length; ++j)
|
|
23914
|
+
object.accessGroups[j] = $root.contentful.SlugReference.toObject(message.accessGroups[j], options);
|
|
23915
|
+
}
|
|
23916
|
+
if (message.excludedAccessGroups && message.excludedAccessGroups.length) {
|
|
23917
|
+
object.excludedAccessGroups = [];
|
|
23918
|
+
for (var j = 0; j < message.excludedAccessGroups.length; ++j)
|
|
23919
|
+
object.excludedAccessGroups[j] = $root.contentful.SlugReference.toObject(message.excludedAccessGroups[j], options);
|
|
23920
|
+
}
|
|
23921
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
23922
|
+
if (typeof message.createdAt === "number")
|
|
23923
|
+
object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
|
|
23924
|
+
else
|
|
23925
|
+
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;
|
|
23926
|
+
return object;
|
|
23927
|
+
};
|
|
23928
|
+
|
|
23929
|
+
/**
|
|
23930
|
+
* Converts this ContentfulLayoutCreated to JSON.
|
|
23931
|
+
* @function toJSON
|
|
23932
|
+
* @memberof ContentfulLayoutCreated
|
|
23933
|
+
* @instance
|
|
23934
|
+
* @returns {Object.<string,*>} JSON object
|
|
23935
|
+
*/
|
|
23936
|
+
ContentfulLayoutCreated.prototype.toJSON = function toJSON() {
|
|
23937
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
23938
|
+
};
|
|
23939
|
+
|
|
23940
|
+
return ContentfulLayoutCreated;
|
|
23941
|
+
})();
|
|
23942
|
+
|
|
23943
|
+
$root.ContentfulLayoutUpdated = (function() {
|
|
23944
|
+
|
|
23945
|
+
/**
|
|
23946
|
+
* Properties of a ContentfulLayoutUpdated.
|
|
23947
|
+
* @exports IContentfulLayoutUpdated
|
|
23948
|
+
* @interface IContentfulLayoutUpdated
|
|
23949
|
+
* @property {string|null} [name] ContentfulLayoutUpdated name
|
|
23950
|
+
* @property {string|null} [slug] ContentfulLayoutUpdated slug
|
|
23951
|
+
* @property {string|null} [theme] ContentfulLayoutUpdated theme
|
|
23952
|
+
* @property {Array.<string>|null} [languageExclusions] ContentfulLayoutUpdated languageExclusions
|
|
23953
|
+
* @property {Array.<contentful.ISlugReference>|null} [moduleDescriptors] ContentfulLayoutUpdated moduleDescriptors
|
|
23954
|
+
* @property {Array.<contentful.ISlugReference>|null} [accessGroups] ContentfulLayoutUpdated accessGroups
|
|
23955
|
+
* @property {Array.<contentful.ISlugReference>|null} [excludedAccessGroups] ContentfulLayoutUpdated excludedAccessGroups
|
|
23956
|
+
* @property {number|Long|null} [updatedAt] ContentfulLayoutUpdated updatedAt
|
|
23957
|
+
*/
|
|
23958
|
+
|
|
23959
|
+
/**
|
|
23960
|
+
* Constructs a new ContentfulLayoutUpdated.
|
|
23961
|
+
* @exports ContentfulLayoutUpdated
|
|
23962
|
+
* @classdesc Represents a ContentfulLayoutUpdated.
|
|
23963
|
+
* @implements IContentfulLayoutUpdated
|
|
23964
|
+
* @constructor
|
|
23965
|
+
* @param {IContentfulLayoutUpdated=} [properties] Properties to set
|
|
23966
|
+
*/
|
|
23967
|
+
function ContentfulLayoutUpdated(properties) {
|
|
23968
|
+
this.languageExclusions = [];
|
|
23969
|
+
this.moduleDescriptors = [];
|
|
23970
|
+
this.accessGroups = [];
|
|
23971
|
+
this.excludedAccessGroups = [];
|
|
23972
|
+
if (properties)
|
|
23973
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
23974
|
+
if (properties[keys[i]] != null)
|
|
23975
|
+
this[keys[i]] = properties[keys[i]];
|
|
23976
|
+
}
|
|
23977
|
+
|
|
23978
|
+
/**
|
|
23979
|
+
* ContentfulLayoutUpdated name.
|
|
23980
|
+
* @member {string} name
|
|
23981
|
+
* @memberof ContentfulLayoutUpdated
|
|
23982
|
+
* @instance
|
|
23983
|
+
*/
|
|
23984
|
+
ContentfulLayoutUpdated.prototype.name = "";
|
|
23985
|
+
|
|
23986
|
+
/**
|
|
23987
|
+
* ContentfulLayoutUpdated slug.
|
|
23988
|
+
* @member {string} slug
|
|
23989
|
+
* @memberof ContentfulLayoutUpdated
|
|
23990
|
+
* @instance
|
|
23991
|
+
*/
|
|
23992
|
+
ContentfulLayoutUpdated.prototype.slug = "";
|
|
23993
|
+
|
|
23994
|
+
/**
|
|
23995
|
+
* ContentfulLayoutUpdated theme.
|
|
23996
|
+
* @member {string} theme
|
|
23997
|
+
* @memberof ContentfulLayoutUpdated
|
|
23998
|
+
* @instance
|
|
23999
|
+
*/
|
|
24000
|
+
ContentfulLayoutUpdated.prototype.theme = "";
|
|
24001
|
+
|
|
24002
|
+
/**
|
|
24003
|
+
* ContentfulLayoutUpdated languageExclusions.
|
|
24004
|
+
* @member {Array.<string>} languageExclusions
|
|
24005
|
+
* @memberof ContentfulLayoutUpdated
|
|
24006
|
+
* @instance
|
|
24007
|
+
*/
|
|
24008
|
+
ContentfulLayoutUpdated.prototype.languageExclusions = $util.emptyArray;
|
|
24009
|
+
|
|
24010
|
+
/**
|
|
24011
|
+
* ContentfulLayoutUpdated moduleDescriptors.
|
|
24012
|
+
* @member {Array.<contentful.ISlugReference>} moduleDescriptors
|
|
24013
|
+
* @memberof ContentfulLayoutUpdated
|
|
24014
|
+
* @instance
|
|
24015
|
+
*/
|
|
24016
|
+
ContentfulLayoutUpdated.prototype.moduleDescriptors = $util.emptyArray;
|
|
24017
|
+
|
|
24018
|
+
/**
|
|
24019
|
+
* ContentfulLayoutUpdated accessGroups.
|
|
24020
|
+
* @member {Array.<contentful.ISlugReference>} accessGroups
|
|
24021
|
+
* @memberof ContentfulLayoutUpdated
|
|
24022
|
+
* @instance
|
|
24023
|
+
*/
|
|
24024
|
+
ContentfulLayoutUpdated.prototype.accessGroups = $util.emptyArray;
|
|
24025
|
+
|
|
24026
|
+
/**
|
|
24027
|
+
* ContentfulLayoutUpdated excludedAccessGroups.
|
|
24028
|
+
* @member {Array.<contentful.ISlugReference>} excludedAccessGroups
|
|
24029
|
+
* @memberof ContentfulLayoutUpdated
|
|
24030
|
+
* @instance
|
|
24031
|
+
*/
|
|
24032
|
+
ContentfulLayoutUpdated.prototype.excludedAccessGroups = $util.emptyArray;
|
|
24033
|
+
|
|
24034
|
+
/**
|
|
24035
|
+
* ContentfulLayoutUpdated updatedAt.
|
|
24036
|
+
* @member {number|Long} updatedAt
|
|
24037
|
+
* @memberof ContentfulLayoutUpdated
|
|
24038
|
+
* @instance
|
|
24039
|
+
*/
|
|
24040
|
+
ContentfulLayoutUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
24041
|
+
|
|
24042
|
+
/**
|
|
24043
|
+
* Creates a new ContentfulLayoutUpdated instance using the specified properties.
|
|
24044
|
+
* @function create
|
|
24045
|
+
* @memberof ContentfulLayoutUpdated
|
|
24046
|
+
* @static
|
|
24047
|
+
* @param {IContentfulLayoutUpdated=} [properties] Properties to set
|
|
24048
|
+
* @returns {ContentfulLayoutUpdated} ContentfulLayoutUpdated instance
|
|
24049
|
+
*/
|
|
24050
|
+
ContentfulLayoutUpdated.create = function create(properties) {
|
|
24051
|
+
return new ContentfulLayoutUpdated(properties);
|
|
24052
|
+
};
|
|
24053
|
+
|
|
24054
|
+
/**
|
|
24055
|
+
* Encodes the specified ContentfulLayoutUpdated message. Does not implicitly {@link ContentfulLayoutUpdated.verify|verify} messages.
|
|
24056
|
+
* @function encode
|
|
24057
|
+
* @memberof ContentfulLayoutUpdated
|
|
24058
|
+
* @static
|
|
24059
|
+
* @param {IContentfulLayoutUpdated} message ContentfulLayoutUpdated message or plain object to encode
|
|
24060
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
24061
|
+
* @returns {$protobuf.Writer} Writer
|
|
24062
|
+
*/
|
|
24063
|
+
ContentfulLayoutUpdated.encode = function encode(message, writer) {
|
|
24064
|
+
if (!writer)
|
|
24065
|
+
writer = $Writer.create();
|
|
24066
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
24067
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
|
|
24068
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
24069
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.slug);
|
|
24070
|
+
if (message.theme != null && message.hasOwnProperty("theme"))
|
|
24071
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.theme);
|
|
24072
|
+
if (message.languageExclusions != null && message.languageExclusions.length)
|
|
24073
|
+
for (var i = 0; i < message.languageExclusions.length; ++i)
|
|
24074
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.languageExclusions[i]);
|
|
24075
|
+
if (message.moduleDescriptors != null && message.moduleDescriptors.length)
|
|
24076
|
+
for (var i = 0; i < message.moduleDescriptors.length; ++i)
|
|
24077
|
+
$root.contentful.SlugReference.encode(message.moduleDescriptors[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
24078
|
+
if (message.accessGroups != null && message.accessGroups.length)
|
|
24079
|
+
for (var i = 0; i < message.accessGroups.length; ++i)
|
|
24080
|
+
$root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
24081
|
+
if (message.excludedAccessGroups != null && message.excludedAccessGroups.length)
|
|
24082
|
+
for (var i = 0; i < message.excludedAccessGroups.length; ++i)
|
|
24083
|
+
$root.contentful.SlugReference.encode(message.excludedAccessGroups[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
|
24084
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
24085
|
+
writer.uint32(/* id 8, wireType 0 =*/64).uint64(message.updatedAt);
|
|
24086
|
+
return writer;
|
|
24087
|
+
};
|
|
24088
|
+
|
|
24089
|
+
/**
|
|
24090
|
+
* Encodes the specified ContentfulLayoutUpdated message, length delimited. Does not implicitly {@link ContentfulLayoutUpdated.verify|verify} messages.
|
|
24091
|
+
* @function encodeDelimited
|
|
24092
|
+
* @memberof ContentfulLayoutUpdated
|
|
24093
|
+
* @static
|
|
24094
|
+
* @param {IContentfulLayoutUpdated} message ContentfulLayoutUpdated message or plain object to encode
|
|
24095
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
24096
|
+
* @returns {$protobuf.Writer} Writer
|
|
24097
|
+
*/
|
|
24098
|
+
ContentfulLayoutUpdated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
24099
|
+
return this.encode(message, writer).ldelim();
|
|
24100
|
+
};
|
|
24101
|
+
|
|
24102
|
+
/**
|
|
24103
|
+
* Decodes a ContentfulLayoutUpdated message from the specified reader or buffer.
|
|
24104
|
+
* @function decode
|
|
24105
|
+
* @memberof ContentfulLayoutUpdated
|
|
24106
|
+
* @static
|
|
24107
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
24108
|
+
* @param {number} [length] Message length if known beforehand
|
|
24109
|
+
* @returns {ContentfulLayoutUpdated} ContentfulLayoutUpdated
|
|
24110
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
24111
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
24112
|
+
*/
|
|
24113
|
+
ContentfulLayoutUpdated.decode = function decode(reader, length) {
|
|
24114
|
+
if (!(reader instanceof $Reader))
|
|
24115
|
+
reader = $Reader.create(reader);
|
|
24116
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulLayoutUpdated();
|
|
24117
|
+
while (reader.pos < end) {
|
|
24118
|
+
var tag = reader.uint32();
|
|
24119
|
+
switch (tag >>> 3) {
|
|
24120
|
+
case 1:
|
|
24121
|
+
message.name = reader.string();
|
|
24122
|
+
break;
|
|
24123
|
+
case 2:
|
|
24124
|
+
message.slug = reader.string();
|
|
24125
|
+
break;
|
|
24126
|
+
case 3:
|
|
24127
|
+
message.theme = reader.string();
|
|
24128
|
+
break;
|
|
24129
|
+
case 4:
|
|
24130
|
+
if (!(message.languageExclusions && message.languageExclusions.length))
|
|
24131
|
+
message.languageExclusions = [];
|
|
24132
|
+
message.languageExclusions.push(reader.string());
|
|
24133
|
+
break;
|
|
24134
|
+
case 5:
|
|
24135
|
+
if (!(message.moduleDescriptors && message.moduleDescriptors.length))
|
|
24136
|
+
message.moduleDescriptors = [];
|
|
24137
|
+
message.moduleDescriptors.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
24138
|
+
break;
|
|
24139
|
+
case 6:
|
|
24140
|
+
if (!(message.accessGroups && message.accessGroups.length))
|
|
24141
|
+
message.accessGroups = [];
|
|
24142
|
+
message.accessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
24143
|
+
break;
|
|
24144
|
+
case 7:
|
|
24145
|
+
if (!(message.excludedAccessGroups && message.excludedAccessGroups.length))
|
|
24146
|
+
message.excludedAccessGroups = [];
|
|
24147
|
+
message.excludedAccessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
24148
|
+
break;
|
|
24149
|
+
case 8:
|
|
24150
|
+
message.updatedAt = reader.uint64();
|
|
24151
|
+
break;
|
|
24152
|
+
default:
|
|
24153
|
+
reader.skipType(tag & 7);
|
|
24154
|
+
break;
|
|
24155
|
+
}
|
|
24156
|
+
}
|
|
24157
|
+
return message;
|
|
24158
|
+
};
|
|
24159
|
+
|
|
24160
|
+
/**
|
|
24161
|
+
* Decodes a ContentfulLayoutUpdated message from the specified reader or buffer, length delimited.
|
|
24162
|
+
* @function decodeDelimited
|
|
24163
|
+
* @memberof ContentfulLayoutUpdated
|
|
24164
|
+
* @static
|
|
24165
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
24166
|
+
* @returns {ContentfulLayoutUpdated} ContentfulLayoutUpdated
|
|
24167
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
24168
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
24169
|
+
*/
|
|
24170
|
+
ContentfulLayoutUpdated.decodeDelimited = function decodeDelimited(reader) {
|
|
24171
|
+
if (!(reader instanceof $Reader))
|
|
24172
|
+
reader = new $Reader(reader);
|
|
24173
|
+
return this.decode(reader, reader.uint32());
|
|
24174
|
+
};
|
|
24175
|
+
|
|
24176
|
+
/**
|
|
24177
|
+
* Verifies a ContentfulLayoutUpdated message.
|
|
24178
|
+
* @function verify
|
|
24179
|
+
* @memberof ContentfulLayoutUpdated
|
|
24180
|
+
* @static
|
|
24181
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
24182
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
24183
|
+
*/
|
|
24184
|
+
ContentfulLayoutUpdated.verify = function verify(message) {
|
|
24185
|
+
if (typeof message !== "object" || message === null)
|
|
24186
|
+
return "object expected";
|
|
24187
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
24188
|
+
if (!$util.isString(message.name))
|
|
24189
|
+
return "name: string expected";
|
|
24190
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
24191
|
+
if (!$util.isString(message.slug))
|
|
24192
|
+
return "slug: string expected";
|
|
24193
|
+
if (message.theme != null && message.hasOwnProperty("theme"))
|
|
24194
|
+
if (!$util.isString(message.theme))
|
|
24195
|
+
return "theme: string expected";
|
|
24196
|
+
if (message.languageExclusions != null && message.hasOwnProperty("languageExclusions")) {
|
|
24197
|
+
if (!Array.isArray(message.languageExclusions))
|
|
24198
|
+
return "languageExclusions: array expected";
|
|
24199
|
+
for (var i = 0; i < message.languageExclusions.length; ++i)
|
|
24200
|
+
if (!$util.isString(message.languageExclusions[i]))
|
|
24201
|
+
return "languageExclusions: string[] expected";
|
|
24202
|
+
}
|
|
24203
|
+
if (message.moduleDescriptors != null && message.hasOwnProperty("moduleDescriptors")) {
|
|
24204
|
+
if (!Array.isArray(message.moduleDescriptors))
|
|
24205
|
+
return "moduleDescriptors: array expected";
|
|
24206
|
+
for (var i = 0; i < message.moduleDescriptors.length; ++i) {
|
|
24207
|
+
var error = $root.contentful.SlugReference.verify(message.moduleDescriptors[i]);
|
|
24208
|
+
if (error)
|
|
24209
|
+
return "moduleDescriptors." + error;
|
|
24210
|
+
}
|
|
24211
|
+
}
|
|
24212
|
+
if (message.accessGroups != null && message.hasOwnProperty("accessGroups")) {
|
|
24213
|
+
if (!Array.isArray(message.accessGroups))
|
|
24214
|
+
return "accessGroups: array expected";
|
|
24215
|
+
for (var i = 0; i < message.accessGroups.length; ++i) {
|
|
24216
|
+
var error = $root.contentful.SlugReference.verify(message.accessGroups[i]);
|
|
24217
|
+
if (error)
|
|
24218
|
+
return "accessGroups." + error;
|
|
24219
|
+
}
|
|
24220
|
+
}
|
|
24221
|
+
if (message.excludedAccessGroups != null && message.hasOwnProperty("excludedAccessGroups")) {
|
|
24222
|
+
if (!Array.isArray(message.excludedAccessGroups))
|
|
24223
|
+
return "excludedAccessGroups: array expected";
|
|
24224
|
+
for (var i = 0; i < message.excludedAccessGroups.length; ++i) {
|
|
24225
|
+
var error = $root.contentful.SlugReference.verify(message.excludedAccessGroups[i]);
|
|
24226
|
+
if (error)
|
|
24227
|
+
return "excludedAccessGroups." + error;
|
|
24228
|
+
}
|
|
24229
|
+
}
|
|
24230
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
24231
|
+
if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
|
|
24232
|
+
return "updatedAt: integer|Long expected";
|
|
24233
|
+
return null;
|
|
24234
|
+
};
|
|
24235
|
+
|
|
24236
|
+
/**
|
|
24237
|
+
* Creates a ContentfulLayoutUpdated message from a plain object. Also converts values to their respective internal types.
|
|
24238
|
+
* @function fromObject
|
|
24239
|
+
* @memberof ContentfulLayoutUpdated
|
|
24240
|
+
* @static
|
|
24241
|
+
* @param {Object.<string,*>} object Plain object
|
|
24242
|
+
* @returns {ContentfulLayoutUpdated} ContentfulLayoutUpdated
|
|
24243
|
+
*/
|
|
24244
|
+
ContentfulLayoutUpdated.fromObject = function fromObject(object) {
|
|
24245
|
+
if (object instanceof $root.ContentfulLayoutUpdated)
|
|
24246
|
+
return object;
|
|
24247
|
+
var message = new $root.ContentfulLayoutUpdated();
|
|
24248
|
+
if (object.name != null)
|
|
24249
|
+
message.name = String(object.name);
|
|
24250
|
+
if (object.slug != null)
|
|
24251
|
+
message.slug = String(object.slug);
|
|
24252
|
+
if (object.theme != null)
|
|
24253
|
+
message.theme = String(object.theme);
|
|
24254
|
+
if (object.languageExclusions) {
|
|
24255
|
+
if (!Array.isArray(object.languageExclusions))
|
|
24256
|
+
throw TypeError(".ContentfulLayoutUpdated.languageExclusions: array expected");
|
|
24257
|
+
message.languageExclusions = [];
|
|
24258
|
+
for (var i = 0; i < object.languageExclusions.length; ++i)
|
|
24259
|
+
message.languageExclusions[i] = String(object.languageExclusions[i]);
|
|
24260
|
+
}
|
|
24261
|
+
if (object.moduleDescriptors) {
|
|
24262
|
+
if (!Array.isArray(object.moduleDescriptors))
|
|
24263
|
+
throw TypeError(".ContentfulLayoutUpdated.moduleDescriptors: array expected");
|
|
24264
|
+
message.moduleDescriptors = [];
|
|
24265
|
+
for (var i = 0; i < object.moduleDescriptors.length; ++i) {
|
|
24266
|
+
if (typeof object.moduleDescriptors[i] !== "object")
|
|
24267
|
+
throw TypeError(".ContentfulLayoutUpdated.moduleDescriptors: object expected");
|
|
24268
|
+
message.moduleDescriptors[i] = $root.contentful.SlugReference.fromObject(object.moduleDescriptors[i]);
|
|
24269
|
+
}
|
|
24270
|
+
}
|
|
24271
|
+
if (object.accessGroups) {
|
|
24272
|
+
if (!Array.isArray(object.accessGroups))
|
|
24273
|
+
throw TypeError(".ContentfulLayoutUpdated.accessGroups: array expected");
|
|
24274
|
+
message.accessGroups = [];
|
|
24275
|
+
for (var i = 0; i < object.accessGroups.length; ++i) {
|
|
24276
|
+
if (typeof object.accessGroups[i] !== "object")
|
|
24277
|
+
throw TypeError(".ContentfulLayoutUpdated.accessGroups: object expected");
|
|
24278
|
+
message.accessGroups[i] = $root.contentful.SlugReference.fromObject(object.accessGroups[i]);
|
|
24279
|
+
}
|
|
24280
|
+
}
|
|
24281
|
+
if (object.excludedAccessGroups) {
|
|
24282
|
+
if (!Array.isArray(object.excludedAccessGroups))
|
|
24283
|
+
throw TypeError(".ContentfulLayoutUpdated.excludedAccessGroups: array expected");
|
|
24284
|
+
message.excludedAccessGroups = [];
|
|
24285
|
+
for (var i = 0; i < object.excludedAccessGroups.length; ++i) {
|
|
24286
|
+
if (typeof object.excludedAccessGroups[i] !== "object")
|
|
24287
|
+
throw TypeError(".ContentfulLayoutUpdated.excludedAccessGroups: object expected");
|
|
24288
|
+
message.excludedAccessGroups[i] = $root.contentful.SlugReference.fromObject(object.excludedAccessGroups[i]);
|
|
24289
|
+
}
|
|
24290
|
+
}
|
|
24291
|
+
if (object.updatedAt != null)
|
|
24292
|
+
if ($util.Long)
|
|
24293
|
+
(message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
|
|
24294
|
+
else if (typeof object.updatedAt === "string")
|
|
24295
|
+
message.updatedAt = parseInt(object.updatedAt, 10);
|
|
24296
|
+
else if (typeof object.updatedAt === "number")
|
|
24297
|
+
message.updatedAt = object.updatedAt;
|
|
24298
|
+
else if (typeof object.updatedAt === "object")
|
|
24299
|
+
message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
|
|
24300
|
+
return message;
|
|
24301
|
+
};
|
|
24302
|
+
|
|
24303
|
+
/**
|
|
24304
|
+
* Creates a plain object from a ContentfulLayoutUpdated message. Also converts values to other types if specified.
|
|
24305
|
+
* @function toObject
|
|
24306
|
+
* @memberof ContentfulLayoutUpdated
|
|
24307
|
+
* @static
|
|
24308
|
+
* @param {ContentfulLayoutUpdated} message ContentfulLayoutUpdated
|
|
24309
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
24310
|
+
* @returns {Object.<string,*>} Plain object
|
|
24311
|
+
*/
|
|
24312
|
+
ContentfulLayoutUpdated.toObject = function toObject(message, options) {
|
|
24313
|
+
if (!options)
|
|
24314
|
+
options = {};
|
|
24315
|
+
var object = {};
|
|
24316
|
+
if (options.arrays || options.defaults) {
|
|
24317
|
+
object.languageExclusions = [];
|
|
24318
|
+
object.moduleDescriptors = [];
|
|
24319
|
+
object.accessGroups = [];
|
|
24320
|
+
object.excludedAccessGroups = [];
|
|
24321
|
+
}
|
|
24322
|
+
if (options.defaults) {
|
|
24323
|
+
object.name = "";
|
|
24324
|
+
object.slug = "";
|
|
24325
|
+
object.theme = "";
|
|
24326
|
+
if ($util.Long) {
|
|
24327
|
+
var long = new $util.Long(0, 0, true);
|
|
24328
|
+
object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
24329
|
+
} else
|
|
24330
|
+
object.updatedAt = options.longs === String ? "0" : 0;
|
|
24331
|
+
}
|
|
24332
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
24333
|
+
object.name = message.name;
|
|
24334
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
24335
|
+
object.slug = message.slug;
|
|
24336
|
+
if (message.theme != null && message.hasOwnProperty("theme"))
|
|
24337
|
+
object.theme = message.theme;
|
|
24338
|
+
if (message.languageExclusions && message.languageExclusions.length) {
|
|
24339
|
+
object.languageExclusions = [];
|
|
24340
|
+
for (var j = 0; j < message.languageExclusions.length; ++j)
|
|
24341
|
+
object.languageExclusions[j] = message.languageExclusions[j];
|
|
24342
|
+
}
|
|
24343
|
+
if (message.moduleDescriptors && message.moduleDescriptors.length) {
|
|
24344
|
+
object.moduleDescriptors = [];
|
|
24345
|
+
for (var j = 0; j < message.moduleDescriptors.length; ++j)
|
|
24346
|
+
object.moduleDescriptors[j] = $root.contentful.SlugReference.toObject(message.moduleDescriptors[j], options);
|
|
24347
|
+
}
|
|
24348
|
+
if (message.accessGroups && message.accessGroups.length) {
|
|
24349
|
+
object.accessGroups = [];
|
|
24350
|
+
for (var j = 0; j < message.accessGroups.length; ++j)
|
|
24351
|
+
object.accessGroups[j] = $root.contentful.SlugReference.toObject(message.accessGroups[j], options);
|
|
24352
|
+
}
|
|
24353
|
+
if (message.excludedAccessGroups && message.excludedAccessGroups.length) {
|
|
24354
|
+
object.excludedAccessGroups = [];
|
|
24355
|
+
for (var j = 0; j < message.excludedAccessGroups.length; ++j)
|
|
24356
|
+
object.excludedAccessGroups[j] = $root.contentful.SlugReference.toObject(message.excludedAccessGroups[j], options);
|
|
24357
|
+
}
|
|
24358
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
24359
|
+
if (typeof message.updatedAt === "number")
|
|
24360
|
+
object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
|
|
24361
|
+
else
|
|
24362
|
+
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;
|
|
24363
|
+
return object;
|
|
24364
|
+
};
|
|
24365
|
+
|
|
24366
|
+
/**
|
|
24367
|
+
* Converts this ContentfulLayoutUpdated to JSON.
|
|
24368
|
+
* @function toJSON
|
|
24369
|
+
* @memberof ContentfulLayoutUpdated
|
|
24370
|
+
* @instance
|
|
24371
|
+
* @returns {Object.<string,*>} JSON object
|
|
24372
|
+
*/
|
|
24373
|
+
ContentfulLayoutUpdated.prototype.toJSON = function toJSON() {
|
|
24374
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
24375
|
+
};
|
|
24376
|
+
|
|
24377
|
+
return ContentfulLayoutUpdated;
|
|
24378
|
+
})();
|
|
24379
|
+
|
|
24380
|
+
$root.ContentfulLayoutDeleted = (function() {
|
|
24381
|
+
|
|
24382
|
+
/**
|
|
24383
|
+
* Properties of a ContentfulLayoutDeleted.
|
|
24384
|
+
* @exports IContentfulLayoutDeleted
|
|
24385
|
+
* @interface IContentfulLayoutDeleted
|
|
24386
|
+
* @property {string|null} [slug] ContentfulLayoutDeleted slug
|
|
24387
|
+
* @property {number|Long|null} [deletedAt] ContentfulLayoutDeleted deletedAt
|
|
24388
|
+
*/
|
|
24389
|
+
|
|
24390
|
+
/**
|
|
24391
|
+
* Constructs a new ContentfulLayoutDeleted.
|
|
24392
|
+
* @exports ContentfulLayoutDeleted
|
|
24393
|
+
* @classdesc Represents a ContentfulLayoutDeleted.
|
|
24394
|
+
* @implements IContentfulLayoutDeleted
|
|
24395
|
+
* @constructor
|
|
24396
|
+
* @param {IContentfulLayoutDeleted=} [properties] Properties to set
|
|
24397
|
+
*/
|
|
24398
|
+
function ContentfulLayoutDeleted(properties) {
|
|
24399
|
+
if (properties)
|
|
24400
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
24401
|
+
if (properties[keys[i]] != null)
|
|
24402
|
+
this[keys[i]] = properties[keys[i]];
|
|
24403
|
+
}
|
|
24404
|
+
|
|
24405
|
+
/**
|
|
24406
|
+
* ContentfulLayoutDeleted slug.
|
|
24407
|
+
* @member {string} slug
|
|
24408
|
+
* @memberof ContentfulLayoutDeleted
|
|
24409
|
+
* @instance
|
|
24410
|
+
*/
|
|
24411
|
+
ContentfulLayoutDeleted.prototype.slug = "";
|
|
24412
|
+
|
|
24413
|
+
/**
|
|
24414
|
+
* ContentfulLayoutDeleted deletedAt.
|
|
24415
|
+
* @member {number|Long} deletedAt
|
|
24416
|
+
* @memberof ContentfulLayoutDeleted
|
|
24417
|
+
* @instance
|
|
24418
|
+
*/
|
|
24419
|
+
ContentfulLayoutDeleted.prototype.deletedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
24420
|
+
|
|
24421
|
+
/**
|
|
24422
|
+
* Creates a new ContentfulLayoutDeleted instance using the specified properties.
|
|
24423
|
+
* @function create
|
|
24424
|
+
* @memberof ContentfulLayoutDeleted
|
|
24425
|
+
* @static
|
|
24426
|
+
* @param {IContentfulLayoutDeleted=} [properties] Properties to set
|
|
24427
|
+
* @returns {ContentfulLayoutDeleted} ContentfulLayoutDeleted instance
|
|
24428
|
+
*/
|
|
24429
|
+
ContentfulLayoutDeleted.create = function create(properties) {
|
|
24430
|
+
return new ContentfulLayoutDeleted(properties);
|
|
24431
|
+
};
|
|
24432
|
+
|
|
24433
|
+
/**
|
|
24434
|
+
* Encodes the specified ContentfulLayoutDeleted message. Does not implicitly {@link ContentfulLayoutDeleted.verify|verify} messages.
|
|
24435
|
+
* @function encode
|
|
24436
|
+
* @memberof ContentfulLayoutDeleted
|
|
24437
|
+
* @static
|
|
24438
|
+
* @param {IContentfulLayoutDeleted} message ContentfulLayoutDeleted message or plain object to encode
|
|
24439
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
24440
|
+
* @returns {$protobuf.Writer} Writer
|
|
24441
|
+
*/
|
|
24442
|
+
ContentfulLayoutDeleted.encode = function encode(message, writer) {
|
|
24443
|
+
if (!writer)
|
|
24444
|
+
writer = $Writer.create();
|
|
24445
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
24446
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
24447
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
24448
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.deletedAt);
|
|
24449
|
+
return writer;
|
|
24450
|
+
};
|
|
24451
|
+
|
|
24452
|
+
/**
|
|
24453
|
+
* Encodes the specified ContentfulLayoutDeleted message, length delimited. Does not implicitly {@link ContentfulLayoutDeleted.verify|verify} messages.
|
|
24454
|
+
* @function encodeDelimited
|
|
24455
|
+
* @memberof ContentfulLayoutDeleted
|
|
24456
|
+
* @static
|
|
24457
|
+
* @param {IContentfulLayoutDeleted} message ContentfulLayoutDeleted message or plain object to encode
|
|
24458
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
24459
|
+
* @returns {$protobuf.Writer} Writer
|
|
24460
|
+
*/
|
|
24461
|
+
ContentfulLayoutDeleted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
24462
|
+
return this.encode(message, writer).ldelim();
|
|
24463
|
+
};
|
|
24464
|
+
|
|
24465
|
+
/**
|
|
24466
|
+
* Decodes a ContentfulLayoutDeleted message from the specified reader or buffer.
|
|
24467
|
+
* @function decode
|
|
24468
|
+
* @memberof ContentfulLayoutDeleted
|
|
24469
|
+
* @static
|
|
24470
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
24471
|
+
* @param {number} [length] Message length if known beforehand
|
|
24472
|
+
* @returns {ContentfulLayoutDeleted} ContentfulLayoutDeleted
|
|
24473
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
24474
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
24475
|
+
*/
|
|
24476
|
+
ContentfulLayoutDeleted.decode = function decode(reader, length) {
|
|
24477
|
+
if (!(reader instanceof $Reader))
|
|
24478
|
+
reader = $Reader.create(reader);
|
|
24479
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulLayoutDeleted();
|
|
24480
|
+
while (reader.pos < end) {
|
|
24481
|
+
var tag = reader.uint32();
|
|
24482
|
+
switch (tag >>> 3) {
|
|
24483
|
+
case 1:
|
|
24484
|
+
message.slug = reader.string();
|
|
24485
|
+
break;
|
|
24486
|
+
case 2:
|
|
24487
|
+
message.deletedAt = reader.uint64();
|
|
24488
|
+
break;
|
|
24489
|
+
default:
|
|
24490
|
+
reader.skipType(tag & 7);
|
|
24491
|
+
break;
|
|
24492
|
+
}
|
|
24493
|
+
}
|
|
24494
|
+
return message;
|
|
24495
|
+
};
|
|
24496
|
+
|
|
24497
|
+
/**
|
|
24498
|
+
* Decodes a ContentfulLayoutDeleted message from the specified reader or buffer, length delimited.
|
|
24499
|
+
* @function decodeDelimited
|
|
24500
|
+
* @memberof ContentfulLayoutDeleted
|
|
24501
|
+
* @static
|
|
24502
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
24503
|
+
* @returns {ContentfulLayoutDeleted} ContentfulLayoutDeleted
|
|
24504
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
24505
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
24506
|
+
*/
|
|
24507
|
+
ContentfulLayoutDeleted.decodeDelimited = function decodeDelimited(reader) {
|
|
24508
|
+
if (!(reader instanceof $Reader))
|
|
24509
|
+
reader = new $Reader(reader);
|
|
24510
|
+
return this.decode(reader, reader.uint32());
|
|
24511
|
+
};
|
|
24512
|
+
|
|
24513
|
+
/**
|
|
24514
|
+
* Verifies a ContentfulLayoutDeleted message.
|
|
24515
|
+
* @function verify
|
|
24516
|
+
* @memberof ContentfulLayoutDeleted
|
|
24517
|
+
* @static
|
|
24518
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
24519
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
24520
|
+
*/
|
|
24521
|
+
ContentfulLayoutDeleted.verify = function verify(message) {
|
|
24522
|
+
if (typeof message !== "object" || message === null)
|
|
24523
|
+
return "object expected";
|
|
24524
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
24525
|
+
if (!$util.isString(message.slug))
|
|
24526
|
+
return "slug: string expected";
|
|
24527
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
24528
|
+
if (!$util.isInteger(message.deletedAt) && !(message.deletedAt && $util.isInteger(message.deletedAt.low) && $util.isInteger(message.deletedAt.high)))
|
|
24529
|
+
return "deletedAt: integer|Long expected";
|
|
24530
|
+
return null;
|
|
24531
|
+
};
|
|
24532
|
+
|
|
24533
|
+
/**
|
|
24534
|
+
* Creates a ContentfulLayoutDeleted message from a plain object. Also converts values to their respective internal types.
|
|
24535
|
+
* @function fromObject
|
|
24536
|
+
* @memberof ContentfulLayoutDeleted
|
|
24537
|
+
* @static
|
|
24538
|
+
* @param {Object.<string,*>} object Plain object
|
|
24539
|
+
* @returns {ContentfulLayoutDeleted} ContentfulLayoutDeleted
|
|
24540
|
+
*/
|
|
24541
|
+
ContentfulLayoutDeleted.fromObject = function fromObject(object) {
|
|
24542
|
+
if (object instanceof $root.ContentfulLayoutDeleted)
|
|
24543
|
+
return object;
|
|
24544
|
+
var message = new $root.ContentfulLayoutDeleted();
|
|
24545
|
+
if (object.slug != null)
|
|
24546
|
+
message.slug = String(object.slug);
|
|
24547
|
+
if (object.deletedAt != null)
|
|
24548
|
+
if ($util.Long)
|
|
24549
|
+
(message.deletedAt = $util.Long.fromValue(object.deletedAt)).unsigned = true;
|
|
24550
|
+
else if (typeof object.deletedAt === "string")
|
|
24551
|
+
message.deletedAt = parseInt(object.deletedAt, 10);
|
|
24552
|
+
else if (typeof object.deletedAt === "number")
|
|
24553
|
+
message.deletedAt = object.deletedAt;
|
|
24554
|
+
else if (typeof object.deletedAt === "object")
|
|
24555
|
+
message.deletedAt = new $util.LongBits(object.deletedAt.low >>> 0, object.deletedAt.high >>> 0).toNumber(true);
|
|
24556
|
+
return message;
|
|
24557
|
+
};
|
|
24558
|
+
|
|
24559
|
+
/**
|
|
24560
|
+
* Creates a plain object from a ContentfulLayoutDeleted message. Also converts values to other types if specified.
|
|
24561
|
+
* @function toObject
|
|
24562
|
+
* @memberof ContentfulLayoutDeleted
|
|
24563
|
+
* @static
|
|
24564
|
+
* @param {ContentfulLayoutDeleted} message ContentfulLayoutDeleted
|
|
24565
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
24566
|
+
* @returns {Object.<string,*>} Plain object
|
|
24567
|
+
*/
|
|
24568
|
+
ContentfulLayoutDeleted.toObject = function toObject(message, options) {
|
|
24569
|
+
if (!options)
|
|
24570
|
+
options = {};
|
|
24571
|
+
var object = {};
|
|
24572
|
+
if (options.defaults) {
|
|
24573
|
+
object.slug = "";
|
|
24574
|
+
if ($util.Long) {
|
|
24575
|
+
var long = new $util.Long(0, 0, true);
|
|
24576
|
+
object.deletedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
24577
|
+
} else
|
|
24578
|
+
object.deletedAt = options.longs === String ? "0" : 0;
|
|
24579
|
+
}
|
|
24580
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
24581
|
+
object.slug = message.slug;
|
|
24582
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
24583
|
+
if (typeof message.deletedAt === "number")
|
|
24584
|
+
object.deletedAt = options.longs === String ? String(message.deletedAt) : message.deletedAt;
|
|
24585
|
+
else
|
|
24586
|
+
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;
|
|
24587
|
+
return object;
|
|
24588
|
+
};
|
|
24589
|
+
|
|
24590
|
+
/**
|
|
24591
|
+
* Converts this ContentfulLayoutDeleted to JSON.
|
|
24592
|
+
* @function toJSON
|
|
24593
|
+
* @memberof ContentfulLayoutDeleted
|
|
24594
|
+
* @instance
|
|
24595
|
+
* @returns {Object.<string,*>} JSON object
|
|
24596
|
+
*/
|
|
24597
|
+
ContentfulLayoutDeleted.prototype.toJSON = function toJSON() {
|
|
24598
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
24599
|
+
};
|
|
24600
|
+
|
|
24601
|
+
return ContentfulLayoutDeleted;
|
|
24602
|
+
})();
|
|
24603
|
+
|
|
23260
24604
|
$root.ContentfulContentModelCreated = (function() {
|
|
23261
24605
|
|
|
23262
24606
|
/**
|