@headspace/protos-events 1.150.0 → 1.152.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.
Files changed (3) hide show
  1. package/lib/index.d.ts +696 -0
  2. package/lib/index.js +1960 -0
  3. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -45372,6 +45372,1966 @@ $root.GoogleSubscriptionExpired = (function() {
45372
45372
  return GoogleSubscriptionExpired;
45373
45373
  })();
45374
45374
 
45375
+ $root.LayoutCreated = (function() {
45376
+
45377
+ /**
45378
+ * Properties of a LayoutCreated.
45379
+ * @exports ILayoutCreated
45380
+ * @interface ILayoutCreated
45381
+ * @property {string|null} [slug] LayoutCreated slug
45382
+ * @property {string|null} [entityId] LayoutCreated entityId
45383
+ * @property {string|null} [entityType] LayoutCreated entityType
45384
+ * @property {Array.<contentful.ISlugReference>|null} [accessGroups] LayoutCreated accessGroups
45385
+ * @property {Array.<contentful.ISlugReference>|null} [excludedAccessGroups] LayoutCreated excludedAccessGroups
45386
+ * @property {number|Long|null} [createdAt] LayoutCreated createdAt
45387
+ */
45388
+
45389
+ /**
45390
+ * Constructs a new LayoutCreated.
45391
+ * @exports LayoutCreated
45392
+ * @classdesc Represents a LayoutCreated.
45393
+ * @implements ILayoutCreated
45394
+ * @constructor
45395
+ * @param {ILayoutCreated=} [properties] Properties to set
45396
+ */
45397
+ function LayoutCreated(properties) {
45398
+ this.accessGroups = [];
45399
+ this.excludedAccessGroups = [];
45400
+ if (properties)
45401
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
45402
+ if (properties[keys[i]] != null)
45403
+ this[keys[i]] = properties[keys[i]];
45404
+ }
45405
+
45406
+ /**
45407
+ * LayoutCreated slug.
45408
+ * @member {string} slug
45409
+ * @memberof LayoutCreated
45410
+ * @instance
45411
+ */
45412
+ LayoutCreated.prototype.slug = "";
45413
+
45414
+ /**
45415
+ * LayoutCreated entityId.
45416
+ * @member {string} entityId
45417
+ * @memberof LayoutCreated
45418
+ * @instance
45419
+ */
45420
+ LayoutCreated.prototype.entityId = "";
45421
+
45422
+ /**
45423
+ * LayoutCreated entityType.
45424
+ * @member {string} entityType
45425
+ * @memberof LayoutCreated
45426
+ * @instance
45427
+ */
45428
+ LayoutCreated.prototype.entityType = "";
45429
+
45430
+ /**
45431
+ * LayoutCreated accessGroups.
45432
+ * @member {Array.<contentful.ISlugReference>} accessGroups
45433
+ * @memberof LayoutCreated
45434
+ * @instance
45435
+ */
45436
+ LayoutCreated.prototype.accessGroups = $util.emptyArray;
45437
+
45438
+ /**
45439
+ * LayoutCreated excludedAccessGroups.
45440
+ * @member {Array.<contentful.ISlugReference>} excludedAccessGroups
45441
+ * @memberof LayoutCreated
45442
+ * @instance
45443
+ */
45444
+ LayoutCreated.prototype.excludedAccessGroups = $util.emptyArray;
45445
+
45446
+ /**
45447
+ * LayoutCreated createdAt.
45448
+ * @member {number|Long} createdAt
45449
+ * @memberof LayoutCreated
45450
+ * @instance
45451
+ */
45452
+ LayoutCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
45453
+
45454
+ /**
45455
+ * Creates a new LayoutCreated instance using the specified properties.
45456
+ * @function create
45457
+ * @memberof LayoutCreated
45458
+ * @static
45459
+ * @param {ILayoutCreated=} [properties] Properties to set
45460
+ * @returns {LayoutCreated} LayoutCreated instance
45461
+ */
45462
+ LayoutCreated.create = function create(properties) {
45463
+ return new LayoutCreated(properties);
45464
+ };
45465
+
45466
+ /**
45467
+ * Encodes the specified LayoutCreated message. Does not implicitly {@link LayoutCreated.verify|verify} messages.
45468
+ * @function encode
45469
+ * @memberof LayoutCreated
45470
+ * @static
45471
+ * @param {ILayoutCreated} message LayoutCreated message or plain object to encode
45472
+ * @param {$protobuf.Writer} [writer] Writer to encode to
45473
+ * @returns {$protobuf.Writer} Writer
45474
+ */
45475
+ LayoutCreated.encode = function encode(message, writer) {
45476
+ if (!writer)
45477
+ writer = $Writer.create();
45478
+ if (message.slug != null && message.hasOwnProperty("slug"))
45479
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
45480
+ if (message.entityId != null && message.hasOwnProperty("entityId"))
45481
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.entityId);
45482
+ if (message.entityType != null && message.hasOwnProperty("entityType"))
45483
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.entityType);
45484
+ if (message.accessGroups != null && message.accessGroups.length)
45485
+ for (var i = 0; i < message.accessGroups.length; ++i)
45486
+ $root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
45487
+ if (message.excludedAccessGroups != null && message.excludedAccessGroups.length)
45488
+ for (var i = 0; i < message.excludedAccessGroups.length; ++i)
45489
+ $root.contentful.SlugReference.encode(message.excludedAccessGroups[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
45490
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
45491
+ writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.createdAt);
45492
+ return writer;
45493
+ };
45494
+
45495
+ /**
45496
+ * Encodes the specified LayoutCreated message, length delimited. Does not implicitly {@link LayoutCreated.verify|verify} messages.
45497
+ * @function encodeDelimited
45498
+ * @memberof LayoutCreated
45499
+ * @static
45500
+ * @param {ILayoutCreated} message LayoutCreated message or plain object to encode
45501
+ * @param {$protobuf.Writer} [writer] Writer to encode to
45502
+ * @returns {$protobuf.Writer} Writer
45503
+ */
45504
+ LayoutCreated.encodeDelimited = function encodeDelimited(message, writer) {
45505
+ return this.encode(message, writer).ldelim();
45506
+ };
45507
+
45508
+ /**
45509
+ * Decodes a LayoutCreated message from the specified reader or buffer.
45510
+ * @function decode
45511
+ * @memberof LayoutCreated
45512
+ * @static
45513
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
45514
+ * @param {number} [length] Message length if known beforehand
45515
+ * @returns {LayoutCreated} LayoutCreated
45516
+ * @throws {Error} If the payload is not a reader or valid buffer
45517
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
45518
+ */
45519
+ LayoutCreated.decode = function decode(reader, length) {
45520
+ if (!(reader instanceof $Reader))
45521
+ reader = $Reader.create(reader);
45522
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.LayoutCreated();
45523
+ while (reader.pos < end) {
45524
+ var tag = reader.uint32();
45525
+ switch (tag >>> 3) {
45526
+ case 1:
45527
+ message.slug = reader.string();
45528
+ break;
45529
+ case 2:
45530
+ message.entityId = reader.string();
45531
+ break;
45532
+ case 3:
45533
+ message.entityType = reader.string();
45534
+ break;
45535
+ case 4:
45536
+ if (!(message.accessGroups && message.accessGroups.length))
45537
+ message.accessGroups = [];
45538
+ message.accessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
45539
+ break;
45540
+ case 5:
45541
+ if (!(message.excludedAccessGroups && message.excludedAccessGroups.length))
45542
+ message.excludedAccessGroups = [];
45543
+ message.excludedAccessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
45544
+ break;
45545
+ case 6:
45546
+ message.createdAt = reader.uint64();
45547
+ break;
45548
+ default:
45549
+ reader.skipType(tag & 7);
45550
+ break;
45551
+ }
45552
+ }
45553
+ return message;
45554
+ };
45555
+
45556
+ /**
45557
+ * Decodes a LayoutCreated message from the specified reader or buffer, length delimited.
45558
+ * @function decodeDelimited
45559
+ * @memberof LayoutCreated
45560
+ * @static
45561
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
45562
+ * @returns {LayoutCreated} LayoutCreated
45563
+ * @throws {Error} If the payload is not a reader or valid buffer
45564
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
45565
+ */
45566
+ LayoutCreated.decodeDelimited = function decodeDelimited(reader) {
45567
+ if (!(reader instanceof $Reader))
45568
+ reader = new $Reader(reader);
45569
+ return this.decode(reader, reader.uint32());
45570
+ };
45571
+
45572
+ /**
45573
+ * Verifies a LayoutCreated message.
45574
+ * @function verify
45575
+ * @memberof LayoutCreated
45576
+ * @static
45577
+ * @param {Object.<string,*>} message Plain object to verify
45578
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
45579
+ */
45580
+ LayoutCreated.verify = function verify(message) {
45581
+ if (typeof message !== "object" || message === null)
45582
+ return "object expected";
45583
+ if (message.slug != null && message.hasOwnProperty("slug"))
45584
+ if (!$util.isString(message.slug))
45585
+ return "slug: string expected";
45586
+ if (message.entityId != null && message.hasOwnProperty("entityId"))
45587
+ if (!$util.isString(message.entityId))
45588
+ return "entityId: string expected";
45589
+ if (message.entityType != null && message.hasOwnProperty("entityType"))
45590
+ if (!$util.isString(message.entityType))
45591
+ return "entityType: string expected";
45592
+ if (message.accessGroups != null && message.hasOwnProperty("accessGroups")) {
45593
+ if (!Array.isArray(message.accessGroups))
45594
+ return "accessGroups: array expected";
45595
+ for (var i = 0; i < message.accessGroups.length; ++i) {
45596
+ var error = $root.contentful.SlugReference.verify(message.accessGroups[i]);
45597
+ if (error)
45598
+ return "accessGroups." + error;
45599
+ }
45600
+ }
45601
+ if (message.excludedAccessGroups != null && message.hasOwnProperty("excludedAccessGroups")) {
45602
+ if (!Array.isArray(message.excludedAccessGroups))
45603
+ return "excludedAccessGroups: array expected";
45604
+ for (var i = 0; i < message.excludedAccessGroups.length; ++i) {
45605
+ var error = $root.contentful.SlugReference.verify(message.excludedAccessGroups[i]);
45606
+ if (error)
45607
+ return "excludedAccessGroups." + error;
45608
+ }
45609
+ }
45610
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
45611
+ if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
45612
+ return "createdAt: integer|Long expected";
45613
+ return null;
45614
+ };
45615
+
45616
+ /**
45617
+ * Creates a LayoutCreated message from a plain object. Also converts values to their respective internal types.
45618
+ * @function fromObject
45619
+ * @memberof LayoutCreated
45620
+ * @static
45621
+ * @param {Object.<string,*>} object Plain object
45622
+ * @returns {LayoutCreated} LayoutCreated
45623
+ */
45624
+ LayoutCreated.fromObject = function fromObject(object) {
45625
+ if (object instanceof $root.LayoutCreated)
45626
+ return object;
45627
+ var message = new $root.LayoutCreated();
45628
+ if (object.slug != null)
45629
+ message.slug = String(object.slug);
45630
+ if (object.entityId != null)
45631
+ message.entityId = String(object.entityId);
45632
+ if (object.entityType != null)
45633
+ message.entityType = String(object.entityType);
45634
+ if (object.accessGroups) {
45635
+ if (!Array.isArray(object.accessGroups))
45636
+ throw TypeError(".LayoutCreated.accessGroups: array expected");
45637
+ message.accessGroups = [];
45638
+ for (var i = 0; i < object.accessGroups.length; ++i) {
45639
+ if (typeof object.accessGroups[i] !== "object")
45640
+ throw TypeError(".LayoutCreated.accessGroups: object expected");
45641
+ message.accessGroups[i] = $root.contentful.SlugReference.fromObject(object.accessGroups[i]);
45642
+ }
45643
+ }
45644
+ if (object.excludedAccessGroups) {
45645
+ if (!Array.isArray(object.excludedAccessGroups))
45646
+ throw TypeError(".LayoutCreated.excludedAccessGroups: array expected");
45647
+ message.excludedAccessGroups = [];
45648
+ for (var i = 0; i < object.excludedAccessGroups.length; ++i) {
45649
+ if (typeof object.excludedAccessGroups[i] !== "object")
45650
+ throw TypeError(".LayoutCreated.excludedAccessGroups: object expected");
45651
+ message.excludedAccessGroups[i] = $root.contentful.SlugReference.fromObject(object.excludedAccessGroups[i]);
45652
+ }
45653
+ }
45654
+ if (object.createdAt != null)
45655
+ if ($util.Long)
45656
+ (message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
45657
+ else if (typeof object.createdAt === "string")
45658
+ message.createdAt = parseInt(object.createdAt, 10);
45659
+ else if (typeof object.createdAt === "number")
45660
+ message.createdAt = object.createdAt;
45661
+ else if (typeof object.createdAt === "object")
45662
+ message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
45663
+ return message;
45664
+ };
45665
+
45666
+ /**
45667
+ * Creates a plain object from a LayoutCreated message. Also converts values to other types if specified.
45668
+ * @function toObject
45669
+ * @memberof LayoutCreated
45670
+ * @static
45671
+ * @param {LayoutCreated} message LayoutCreated
45672
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
45673
+ * @returns {Object.<string,*>} Plain object
45674
+ */
45675
+ LayoutCreated.toObject = function toObject(message, options) {
45676
+ if (!options)
45677
+ options = {};
45678
+ var object = {};
45679
+ if (options.arrays || options.defaults) {
45680
+ object.accessGroups = [];
45681
+ object.excludedAccessGroups = [];
45682
+ }
45683
+ if (options.defaults) {
45684
+ object.slug = "";
45685
+ object.entityId = "";
45686
+ object.entityType = "";
45687
+ if ($util.Long) {
45688
+ var long = new $util.Long(0, 0, true);
45689
+ object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
45690
+ } else
45691
+ object.createdAt = options.longs === String ? "0" : 0;
45692
+ }
45693
+ if (message.slug != null && message.hasOwnProperty("slug"))
45694
+ object.slug = message.slug;
45695
+ if (message.entityId != null && message.hasOwnProperty("entityId"))
45696
+ object.entityId = message.entityId;
45697
+ if (message.entityType != null && message.hasOwnProperty("entityType"))
45698
+ object.entityType = message.entityType;
45699
+ if (message.accessGroups && message.accessGroups.length) {
45700
+ object.accessGroups = [];
45701
+ for (var j = 0; j < message.accessGroups.length; ++j)
45702
+ object.accessGroups[j] = $root.contentful.SlugReference.toObject(message.accessGroups[j], options);
45703
+ }
45704
+ if (message.excludedAccessGroups && message.excludedAccessGroups.length) {
45705
+ object.excludedAccessGroups = [];
45706
+ for (var j = 0; j < message.excludedAccessGroups.length; ++j)
45707
+ object.excludedAccessGroups[j] = $root.contentful.SlugReference.toObject(message.excludedAccessGroups[j], options);
45708
+ }
45709
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
45710
+ if (typeof message.createdAt === "number")
45711
+ object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
45712
+ else
45713
+ 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;
45714
+ return object;
45715
+ };
45716
+
45717
+ /**
45718
+ * Converts this LayoutCreated to JSON.
45719
+ * @function toJSON
45720
+ * @memberof LayoutCreated
45721
+ * @instance
45722
+ * @returns {Object.<string,*>} JSON object
45723
+ */
45724
+ LayoutCreated.prototype.toJSON = function toJSON() {
45725
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
45726
+ };
45727
+
45728
+ return LayoutCreated;
45729
+ })();
45730
+
45731
+ $root.LayoutUpdated = (function() {
45732
+
45733
+ /**
45734
+ * Properties of a LayoutUpdated.
45735
+ * @exports ILayoutUpdated
45736
+ * @interface ILayoutUpdated
45737
+ * @property {string|null} [slug] LayoutUpdated slug
45738
+ * @property {string|null} [entityId] LayoutUpdated entityId
45739
+ * @property {string|null} [entityType] LayoutUpdated entityType
45740
+ * @property {Array.<contentful.ISlugReference>|null} [accessGroups] LayoutUpdated accessGroups
45741
+ * @property {Array.<contentful.ISlugReference>|null} [excludedAccessGroups] LayoutUpdated excludedAccessGroups
45742
+ * @property {number|Long|null} [updatedAt] LayoutUpdated updatedAt
45743
+ */
45744
+
45745
+ /**
45746
+ * Constructs a new LayoutUpdated.
45747
+ * @exports LayoutUpdated
45748
+ * @classdesc Represents a LayoutUpdated.
45749
+ * @implements ILayoutUpdated
45750
+ * @constructor
45751
+ * @param {ILayoutUpdated=} [properties] Properties to set
45752
+ */
45753
+ function LayoutUpdated(properties) {
45754
+ this.accessGroups = [];
45755
+ this.excludedAccessGroups = [];
45756
+ if (properties)
45757
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
45758
+ if (properties[keys[i]] != null)
45759
+ this[keys[i]] = properties[keys[i]];
45760
+ }
45761
+
45762
+ /**
45763
+ * LayoutUpdated slug.
45764
+ * @member {string} slug
45765
+ * @memberof LayoutUpdated
45766
+ * @instance
45767
+ */
45768
+ LayoutUpdated.prototype.slug = "";
45769
+
45770
+ /**
45771
+ * LayoutUpdated entityId.
45772
+ * @member {string} entityId
45773
+ * @memberof LayoutUpdated
45774
+ * @instance
45775
+ */
45776
+ LayoutUpdated.prototype.entityId = "";
45777
+
45778
+ /**
45779
+ * LayoutUpdated entityType.
45780
+ * @member {string} entityType
45781
+ * @memberof LayoutUpdated
45782
+ * @instance
45783
+ */
45784
+ LayoutUpdated.prototype.entityType = "";
45785
+
45786
+ /**
45787
+ * LayoutUpdated accessGroups.
45788
+ * @member {Array.<contentful.ISlugReference>} accessGroups
45789
+ * @memberof LayoutUpdated
45790
+ * @instance
45791
+ */
45792
+ LayoutUpdated.prototype.accessGroups = $util.emptyArray;
45793
+
45794
+ /**
45795
+ * LayoutUpdated excludedAccessGroups.
45796
+ * @member {Array.<contentful.ISlugReference>} excludedAccessGroups
45797
+ * @memberof LayoutUpdated
45798
+ * @instance
45799
+ */
45800
+ LayoutUpdated.prototype.excludedAccessGroups = $util.emptyArray;
45801
+
45802
+ /**
45803
+ * LayoutUpdated updatedAt.
45804
+ * @member {number|Long} updatedAt
45805
+ * @memberof LayoutUpdated
45806
+ * @instance
45807
+ */
45808
+ LayoutUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
45809
+
45810
+ /**
45811
+ * Creates a new LayoutUpdated instance using the specified properties.
45812
+ * @function create
45813
+ * @memberof LayoutUpdated
45814
+ * @static
45815
+ * @param {ILayoutUpdated=} [properties] Properties to set
45816
+ * @returns {LayoutUpdated} LayoutUpdated instance
45817
+ */
45818
+ LayoutUpdated.create = function create(properties) {
45819
+ return new LayoutUpdated(properties);
45820
+ };
45821
+
45822
+ /**
45823
+ * Encodes the specified LayoutUpdated message. Does not implicitly {@link LayoutUpdated.verify|verify} messages.
45824
+ * @function encode
45825
+ * @memberof LayoutUpdated
45826
+ * @static
45827
+ * @param {ILayoutUpdated} message LayoutUpdated message or plain object to encode
45828
+ * @param {$protobuf.Writer} [writer] Writer to encode to
45829
+ * @returns {$protobuf.Writer} Writer
45830
+ */
45831
+ LayoutUpdated.encode = function encode(message, writer) {
45832
+ if (!writer)
45833
+ writer = $Writer.create();
45834
+ if (message.slug != null && message.hasOwnProperty("slug"))
45835
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
45836
+ if (message.entityId != null && message.hasOwnProperty("entityId"))
45837
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.entityId);
45838
+ if (message.entityType != null && message.hasOwnProperty("entityType"))
45839
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.entityType);
45840
+ if (message.accessGroups != null && message.accessGroups.length)
45841
+ for (var i = 0; i < message.accessGroups.length; ++i)
45842
+ $root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
45843
+ if (message.excludedAccessGroups != null && message.excludedAccessGroups.length)
45844
+ for (var i = 0; i < message.excludedAccessGroups.length; ++i)
45845
+ $root.contentful.SlugReference.encode(message.excludedAccessGroups[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
45846
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
45847
+ writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.updatedAt);
45848
+ return writer;
45849
+ };
45850
+
45851
+ /**
45852
+ * Encodes the specified LayoutUpdated message, length delimited. Does not implicitly {@link LayoutUpdated.verify|verify} messages.
45853
+ * @function encodeDelimited
45854
+ * @memberof LayoutUpdated
45855
+ * @static
45856
+ * @param {ILayoutUpdated} message LayoutUpdated message or plain object to encode
45857
+ * @param {$protobuf.Writer} [writer] Writer to encode to
45858
+ * @returns {$protobuf.Writer} Writer
45859
+ */
45860
+ LayoutUpdated.encodeDelimited = function encodeDelimited(message, writer) {
45861
+ return this.encode(message, writer).ldelim();
45862
+ };
45863
+
45864
+ /**
45865
+ * Decodes a LayoutUpdated message from the specified reader or buffer.
45866
+ * @function decode
45867
+ * @memberof LayoutUpdated
45868
+ * @static
45869
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
45870
+ * @param {number} [length] Message length if known beforehand
45871
+ * @returns {LayoutUpdated} LayoutUpdated
45872
+ * @throws {Error} If the payload is not a reader or valid buffer
45873
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
45874
+ */
45875
+ LayoutUpdated.decode = function decode(reader, length) {
45876
+ if (!(reader instanceof $Reader))
45877
+ reader = $Reader.create(reader);
45878
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.LayoutUpdated();
45879
+ while (reader.pos < end) {
45880
+ var tag = reader.uint32();
45881
+ switch (tag >>> 3) {
45882
+ case 1:
45883
+ message.slug = reader.string();
45884
+ break;
45885
+ case 2:
45886
+ message.entityId = reader.string();
45887
+ break;
45888
+ case 3:
45889
+ message.entityType = reader.string();
45890
+ break;
45891
+ case 4:
45892
+ if (!(message.accessGroups && message.accessGroups.length))
45893
+ message.accessGroups = [];
45894
+ message.accessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
45895
+ break;
45896
+ case 5:
45897
+ if (!(message.excludedAccessGroups && message.excludedAccessGroups.length))
45898
+ message.excludedAccessGroups = [];
45899
+ message.excludedAccessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
45900
+ break;
45901
+ case 6:
45902
+ message.updatedAt = reader.uint64();
45903
+ break;
45904
+ default:
45905
+ reader.skipType(tag & 7);
45906
+ break;
45907
+ }
45908
+ }
45909
+ return message;
45910
+ };
45911
+
45912
+ /**
45913
+ * Decodes a LayoutUpdated message from the specified reader or buffer, length delimited.
45914
+ * @function decodeDelimited
45915
+ * @memberof LayoutUpdated
45916
+ * @static
45917
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
45918
+ * @returns {LayoutUpdated} LayoutUpdated
45919
+ * @throws {Error} If the payload is not a reader or valid buffer
45920
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
45921
+ */
45922
+ LayoutUpdated.decodeDelimited = function decodeDelimited(reader) {
45923
+ if (!(reader instanceof $Reader))
45924
+ reader = new $Reader(reader);
45925
+ return this.decode(reader, reader.uint32());
45926
+ };
45927
+
45928
+ /**
45929
+ * Verifies a LayoutUpdated message.
45930
+ * @function verify
45931
+ * @memberof LayoutUpdated
45932
+ * @static
45933
+ * @param {Object.<string,*>} message Plain object to verify
45934
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
45935
+ */
45936
+ LayoutUpdated.verify = function verify(message) {
45937
+ if (typeof message !== "object" || message === null)
45938
+ return "object expected";
45939
+ if (message.slug != null && message.hasOwnProperty("slug"))
45940
+ if (!$util.isString(message.slug))
45941
+ return "slug: string expected";
45942
+ if (message.entityId != null && message.hasOwnProperty("entityId"))
45943
+ if (!$util.isString(message.entityId))
45944
+ return "entityId: string expected";
45945
+ if (message.entityType != null && message.hasOwnProperty("entityType"))
45946
+ if (!$util.isString(message.entityType))
45947
+ return "entityType: string expected";
45948
+ if (message.accessGroups != null && message.hasOwnProperty("accessGroups")) {
45949
+ if (!Array.isArray(message.accessGroups))
45950
+ return "accessGroups: array expected";
45951
+ for (var i = 0; i < message.accessGroups.length; ++i) {
45952
+ var error = $root.contentful.SlugReference.verify(message.accessGroups[i]);
45953
+ if (error)
45954
+ return "accessGroups." + error;
45955
+ }
45956
+ }
45957
+ if (message.excludedAccessGroups != null && message.hasOwnProperty("excludedAccessGroups")) {
45958
+ if (!Array.isArray(message.excludedAccessGroups))
45959
+ return "excludedAccessGroups: array expected";
45960
+ for (var i = 0; i < message.excludedAccessGroups.length; ++i) {
45961
+ var error = $root.contentful.SlugReference.verify(message.excludedAccessGroups[i]);
45962
+ if (error)
45963
+ return "excludedAccessGroups." + error;
45964
+ }
45965
+ }
45966
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
45967
+ if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
45968
+ return "updatedAt: integer|Long expected";
45969
+ return null;
45970
+ };
45971
+
45972
+ /**
45973
+ * Creates a LayoutUpdated message from a plain object. Also converts values to their respective internal types.
45974
+ * @function fromObject
45975
+ * @memberof LayoutUpdated
45976
+ * @static
45977
+ * @param {Object.<string,*>} object Plain object
45978
+ * @returns {LayoutUpdated} LayoutUpdated
45979
+ */
45980
+ LayoutUpdated.fromObject = function fromObject(object) {
45981
+ if (object instanceof $root.LayoutUpdated)
45982
+ return object;
45983
+ var message = new $root.LayoutUpdated();
45984
+ if (object.slug != null)
45985
+ message.slug = String(object.slug);
45986
+ if (object.entityId != null)
45987
+ message.entityId = String(object.entityId);
45988
+ if (object.entityType != null)
45989
+ message.entityType = String(object.entityType);
45990
+ if (object.accessGroups) {
45991
+ if (!Array.isArray(object.accessGroups))
45992
+ throw TypeError(".LayoutUpdated.accessGroups: array expected");
45993
+ message.accessGroups = [];
45994
+ for (var i = 0; i < object.accessGroups.length; ++i) {
45995
+ if (typeof object.accessGroups[i] !== "object")
45996
+ throw TypeError(".LayoutUpdated.accessGroups: object expected");
45997
+ message.accessGroups[i] = $root.contentful.SlugReference.fromObject(object.accessGroups[i]);
45998
+ }
45999
+ }
46000
+ if (object.excludedAccessGroups) {
46001
+ if (!Array.isArray(object.excludedAccessGroups))
46002
+ throw TypeError(".LayoutUpdated.excludedAccessGroups: array expected");
46003
+ message.excludedAccessGroups = [];
46004
+ for (var i = 0; i < object.excludedAccessGroups.length; ++i) {
46005
+ if (typeof object.excludedAccessGroups[i] !== "object")
46006
+ throw TypeError(".LayoutUpdated.excludedAccessGroups: object expected");
46007
+ message.excludedAccessGroups[i] = $root.contentful.SlugReference.fromObject(object.excludedAccessGroups[i]);
46008
+ }
46009
+ }
46010
+ if (object.updatedAt != null)
46011
+ if ($util.Long)
46012
+ (message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
46013
+ else if (typeof object.updatedAt === "string")
46014
+ message.updatedAt = parseInt(object.updatedAt, 10);
46015
+ else if (typeof object.updatedAt === "number")
46016
+ message.updatedAt = object.updatedAt;
46017
+ else if (typeof object.updatedAt === "object")
46018
+ message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
46019
+ return message;
46020
+ };
46021
+
46022
+ /**
46023
+ * Creates a plain object from a LayoutUpdated message. Also converts values to other types if specified.
46024
+ * @function toObject
46025
+ * @memberof LayoutUpdated
46026
+ * @static
46027
+ * @param {LayoutUpdated} message LayoutUpdated
46028
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
46029
+ * @returns {Object.<string,*>} Plain object
46030
+ */
46031
+ LayoutUpdated.toObject = function toObject(message, options) {
46032
+ if (!options)
46033
+ options = {};
46034
+ var object = {};
46035
+ if (options.arrays || options.defaults) {
46036
+ object.accessGroups = [];
46037
+ object.excludedAccessGroups = [];
46038
+ }
46039
+ if (options.defaults) {
46040
+ object.slug = "";
46041
+ object.entityId = "";
46042
+ object.entityType = "";
46043
+ if ($util.Long) {
46044
+ var long = new $util.Long(0, 0, true);
46045
+ object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
46046
+ } else
46047
+ object.updatedAt = options.longs === String ? "0" : 0;
46048
+ }
46049
+ if (message.slug != null && message.hasOwnProperty("slug"))
46050
+ object.slug = message.slug;
46051
+ if (message.entityId != null && message.hasOwnProperty("entityId"))
46052
+ object.entityId = message.entityId;
46053
+ if (message.entityType != null && message.hasOwnProperty("entityType"))
46054
+ object.entityType = message.entityType;
46055
+ if (message.accessGroups && message.accessGroups.length) {
46056
+ object.accessGroups = [];
46057
+ for (var j = 0; j < message.accessGroups.length; ++j)
46058
+ object.accessGroups[j] = $root.contentful.SlugReference.toObject(message.accessGroups[j], options);
46059
+ }
46060
+ if (message.excludedAccessGroups && message.excludedAccessGroups.length) {
46061
+ object.excludedAccessGroups = [];
46062
+ for (var j = 0; j < message.excludedAccessGroups.length; ++j)
46063
+ object.excludedAccessGroups[j] = $root.contentful.SlugReference.toObject(message.excludedAccessGroups[j], options);
46064
+ }
46065
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
46066
+ if (typeof message.updatedAt === "number")
46067
+ object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
46068
+ else
46069
+ 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;
46070
+ return object;
46071
+ };
46072
+
46073
+ /**
46074
+ * Converts this LayoutUpdated to JSON.
46075
+ * @function toJSON
46076
+ * @memberof LayoutUpdated
46077
+ * @instance
46078
+ * @returns {Object.<string,*>} JSON object
46079
+ */
46080
+ LayoutUpdated.prototype.toJSON = function toJSON() {
46081
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
46082
+ };
46083
+
46084
+ return LayoutUpdated;
46085
+ })();
46086
+
46087
+ $root.LayoutDeleted = (function() {
46088
+
46089
+ /**
46090
+ * Properties of a LayoutDeleted.
46091
+ * @exports ILayoutDeleted
46092
+ * @interface ILayoutDeleted
46093
+ * @property {string|null} [slug] LayoutDeleted slug
46094
+ * @property {string|null} [entityId] LayoutDeleted entityId
46095
+ * @property {string|null} [entityType] LayoutDeleted entityType
46096
+ * @property {number|Long|null} [deletedAt] LayoutDeleted deletedAt
46097
+ */
46098
+
46099
+ /**
46100
+ * Constructs a new LayoutDeleted.
46101
+ * @exports LayoutDeleted
46102
+ * @classdesc Represents a LayoutDeleted.
46103
+ * @implements ILayoutDeleted
46104
+ * @constructor
46105
+ * @param {ILayoutDeleted=} [properties] Properties to set
46106
+ */
46107
+ function LayoutDeleted(properties) {
46108
+ if (properties)
46109
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
46110
+ if (properties[keys[i]] != null)
46111
+ this[keys[i]] = properties[keys[i]];
46112
+ }
46113
+
46114
+ /**
46115
+ * LayoutDeleted slug.
46116
+ * @member {string} slug
46117
+ * @memberof LayoutDeleted
46118
+ * @instance
46119
+ */
46120
+ LayoutDeleted.prototype.slug = "";
46121
+
46122
+ /**
46123
+ * LayoutDeleted entityId.
46124
+ * @member {string} entityId
46125
+ * @memberof LayoutDeleted
46126
+ * @instance
46127
+ */
46128
+ LayoutDeleted.prototype.entityId = "";
46129
+
46130
+ /**
46131
+ * LayoutDeleted entityType.
46132
+ * @member {string} entityType
46133
+ * @memberof LayoutDeleted
46134
+ * @instance
46135
+ */
46136
+ LayoutDeleted.prototype.entityType = "";
46137
+
46138
+ /**
46139
+ * LayoutDeleted deletedAt.
46140
+ * @member {number|Long} deletedAt
46141
+ * @memberof LayoutDeleted
46142
+ * @instance
46143
+ */
46144
+ LayoutDeleted.prototype.deletedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
46145
+
46146
+ /**
46147
+ * Creates a new LayoutDeleted instance using the specified properties.
46148
+ * @function create
46149
+ * @memberof LayoutDeleted
46150
+ * @static
46151
+ * @param {ILayoutDeleted=} [properties] Properties to set
46152
+ * @returns {LayoutDeleted} LayoutDeleted instance
46153
+ */
46154
+ LayoutDeleted.create = function create(properties) {
46155
+ return new LayoutDeleted(properties);
46156
+ };
46157
+
46158
+ /**
46159
+ * Encodes the specified LayoutDeleted message. Does not implicitly {@link LayoutDeleted.verify|verify} messages.
46160
+ * @function encode
46161
+ * @memberof LayoutDeleted
46162
+ * @static
46163
+ * @param {ILayoutDeleted} message LayoutDeleted message or plain object to encode
46164
+ * @param {$protobuf.Writer} [writer] Writer to encode to
46165
+ * @returns {$protobuf.Writer} Writer
46166
+ */
46167
+ LayoutDeleted.encode = function encode(message, writer) {
46168
+ if (!writer)
46169
+ writer = $Writer.create();
46170
+ if (message.slug != null && message.hasOwnProperty("slug"))
46171
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
46172
+ if (message.entityId != null && message.hasOwnProperty("entityId"))
46173
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.entityId);
46174
+ if (message.entityType != null && message.hasOwnProperty("entityType"))
46175
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.entityType);
46176
+ if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
46177
+ writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.deletedAt);
46178
+ return writer;
46179
+ };
46180
+
46181
+ /**
46182
+ * Encodes the specified LayoutDeleted message, length delimited. Does not implicitly {@link LayoutDeleted.verify|verify} messages.
46183
+ * @function encodeDelimited
46184
+ * @memberof LayoutDeleted
46185
+ * @static
46186
+ * @param {ILayoutDeleted} message LayoutDeleted message or plain object to encode
46187
+ * @param {$protobuf.Writer} [writer] Writer to encode to
46188
+ * @returns {$protobuf.Writer} Writer
46189
+ */
46190
+ LayoutDeleted.encodeDelimited = function encodeDelimited(message, writer) {
46191
+ return this.encode(message, writer).ldelim();
46192
+ };
46193
+
46194
+ /**
46195
+ * Decodes a LayoutDeleted message from the specified reader or buffer.
46196
+ * @function decode
46197
+ * @memberof LayoutDeleted
46198
+ * @static
46199
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
46200
+ * @param {number} [length] Message length if known beforehand
46201
+ * @returns {LayoutDeleted} LayoutDeleted
46202
+ * @throws {Error} If the payload is not a reader or valid buffer
46203
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
46204
+ */
46205
+ LayoutDeleted.decode = function decode(reader, length) {
46206
+ if (!(reader instanceof $Reader))
46207
+ reader = $Reader.create(reader);
46208
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.LayoutDeleted();
46209
+ while (reader.pos < end) {
46210
+ var tag = reader.uint32();
46211
+ switch (tag >>> 3) {
46212
+ case 1:
46213
+ message.slug = reader.string();
46214
+ break;
46215
+ case 2:
46216
+ message.entityId = reader.string();
46217
+ break;
46218
+ case 3:
46219
+ message.entityType = reader.string();
46220
+ break;
46221
+ case 4:
46222
+ message.deletedAt = reader.uint64();
46223
+ break;
46224
+ default:
46225
+ reader.skipType(tag & 7);
46226
+ break;
46227
+ }
46228
+ }
46229
+ return message;
46230
+ };
46231
+
46232
+ /**
46233
+ * Decodes a LayoutDeleted message from the specified reader or buffer, length delimited.
46234
+ * @function decodeDelimited
46235
+ * @memberof LayoutDeleted
46236
+ * @static
46237
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
46238
+ * @returns {LayoutDeleted} LayoutDeleted
46239
+ * @throws {Error} If the payload is not a reader or valid buffer
46240
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
46241
+ */
46242
+ LayoutDeleted.decodeDelimited = function decodeDelimited(reader) {
46243
+ if (!(reader instanceof $Reader))
46244
+ reader = new $Reader(reader);
46245
+ return this.decode(reader, reader.uint32());
46246
+ };
46247
+
46248
+ /**
46249
+ * Verifies a LayoutDeleted message.
46250
+ * @function verify
46251
+ * @memberof LayoutDeleted
46252
+ * @static
46253
+ * @param {Object.<string,*>} message Plain object to verify
46254
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
46255
+ */
46256
+ LayoutDeleted.verify = function verify(message) {
46257
+ if (typeof message !== "object" || message === null)
46258
+ return "object expected";
46259
+ if (message.slug != null && message.hasOwnProperty("slug"))
46260
+ if (!$util.isString(message.slug))
46261
+ return "slug: string expected";
46262
+ if (message.entityId != null && message.hasOwnProperty("entityId"))
46263
+ if (!$util.isString(message.entityId))
46264
+ return "entityId: string expected";
46265
+ if (message.entityType != null && message.hasOwnProperty("entityType"))
46266
+ if (!$util.isString(message.entityType))
46267
+ return "entityType: string expected";
46268
+ if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
46269
+ if (!$util.isInteger(message.deletedAt) && !(message.deletedAt && $util.isInteger(message.deletedAt.low) && $util.isInteger(message.deletedAt.high)))
46270
+ return "deletedAt: integer|Long expected";
46271
+ return null;
46272
+ };
46273
+
46274
+ /**
46275
+ * Creates a LayoutDeleted message from a plain object. Also converts values to their respective internal types.
46276
+ * @function fromObject
46277
+ * @memberof LayoutDeleted
46278
+ * @static
46279
+ * @param {Object.<string,*>} object Plain object
46280
+ * @returns {LayoutDeleted} LayoutDeleted
46281
+ */
46282
+ LayoutDeleted.fromObject = function fromObject(object) {
46283
+ if (object instanceof $root.LayoutDeleted)
46284
+ return object;
46285
+ var message = new $root.LayoutDeleted();
46286
+ if (object.slug != null)
46287
+ message.slug = String(object.slug);
46288
+ if (object.entityId != null)
46289
+ message.entityId = String(object.entityId);
46290
+ if (object.entityType != null)
46291
+ message.entityType = String(object.entityType);
46292
+ if (object.deletedAt != null)
46293
+ if ($util.Long)
46294
+ (message.deletedAt = $util.Long.fromValue(object.deletedAt)).unsigned = true;
46295
+ else if (typeof object.deletedAt === "string")
46296
+ message.deletedAt = parseInt(object.deletedAt, 10);
46297
+ else if (typeof object.deletedAt === "number")
46298
+ message.deletedAt = object.deletedAt;
46299
+ else if (typeof object.deletedAt === "object")
46300
+ message.deletedAt = new $util.LongBits(object.deletedAt.low >>> 0, object.deletedAt.high >>> 0).toNumber(true);
46301
+ return message;
46302
+ };
46303
+
46304
+ /**
46305
+ * Creates a plain object from a LayoutDeleted message. Also converts values to other types if specified.
46306
+ * @function toObject
46307
+ * @memberof LayoutDeleted
46308
+ * @static
46309
+ * @param {LayoutDeleted} message LayoutDeleted
46310
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
46311
+ * @returns {Object.<string,*>} Plain object
46312
+ */
46313
+ LayoutDeleted.toObject = function toObject(message, options) {
46314
+ if (!options)
46315
+ options = {};
46316
+ var object = {};
46317
+ if (options.defaults) {
46318
+ object.slug = "";
46319
+ object.entityId = "";
46320
+ object.entityType = "";
46321
+ if ($util.Long) {
46322
+ var long = new $util.Long(0, 0, true);
46323
+ object.deletedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
46324
+ } else
46325
+ object.deletedAt = options.longs === String ? "0" : 0;
46326
+ }
46327
+ if (message.slug != null && message.hasOwnProperty("slug"))
46328
+ object.slug = message.slug;
46329
+ if (message.entityId != null && message.hasOwnProperty("entityId"))
46330
+ object.entityId = message.entityId;
46331
+ if (message.entityType != null && message.hasOwnProperty("entityType"))
46332
+ object.entityType = message.entityType;
46333
+ if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
46334
+ if (typeof message.deletedAt === "number")
46335
+ object.deletedAt = options.longs === String ? String(message.deletedAt) : message.deletedAt;
46336
+ else
46337
+ 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;
46338
+ return object;
46339
+ };
46340
+
46341
+ /**
46342
+ * Converts this LayoutDeleted to JSON.
46343
+ * @function toJSON
46344
+ * @memberof LayoutDeleted
46345
+ * @instance
46346
+ * @returns {Object.<string,*>} JSON object
46347
+ */
46348
+ LayoutDeleted.prototype.toJSON = function toJSON() {
46349
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
46350
+ };
46351
+
46352
+ return LayoutDeleted;
46353
+ })();
46354
+
46355
+ $root.ModuleDescriptorCreated = (function() {
46356
+
46357
+ /**
46358
+ * Properties of a ModuleDescriptorCreated.
46359
+ * @exports IModuleDescriptorCreated
46360
+ * @interface IModuleDescriptorCreated
46361
+ * @property {string|null} [slug] ModuleDescriptorCreated slug
46362
+ * @property {string|null} [entityId] ModuleDescriptorCreated entityId
46363
+ * @property {string|null} [entityType] ModuleDescriptorCreated entityType
46364
+ * @property {Array.<contentful.ISlugReference>|null} [accessGroups] ModuleDescriptorCreated accessGroups
46365
+ * @property {Array.<contentful.ISlugReference>|null} [excludedAccessGroups] ModuleDescriptorCreated excludedAccessGroups
46366
+ * @property {number|Long|null} [createdAt] ModuleDescriptorCreated createdAt
46367
+ */
46368
+
46369
+ /**
46370
+ * Constructs a new ModuleDescriptorCreated.
46371
+ * @exports ModuleDescriptorCreated
46372
+ * @classdesc Represents a ModuleDescriptorCreated.
46373
+ * @implements IModuleDescriptorCreated
46374
+ * @constructor
46375
+ * @param {IModuleDescriptorCreated=} [properties] Properties to set
46376
+ */
46377
+ function ModuleDescriptorCreated(properties) {
46378
+ this.accessGroups = [];
46379
+ this.excludedAccessGroups = [];
46380
+ if (properties)
46381
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
46382
+ if (properties[keys[i]] != null)
46383
+ this[keys[i]] = properties[keys[i]];
46384
+ }
46385
+
46386
+ /**
46387
+ * ModuleDescriptorCreated slug.
46388
+ * @member {string} slug
46389
+ * @memberof ModuleDescriptorCreated
46390
+ * @instance
46391
+ */
46392
+ ModuleDescriptorCreated.prototype.slug = "";
46393
+
46394
+ /**
46395
+ * ModuleDescriptorCreated entityId.
46396
+ * @member {string} entityId
46397
+ * @memberof ModuleDescriptorCreated
46398
+ * @instance
46399
+ */
46400
+ ModuleDescriptorCreated.prototype.entityId = "";
46401
+
46402
+ /**
46403
+ * ModuleDescriptorCreated entityType.
46404
+ * @member {string} entityType
46405
+ * @memberof ModuleDescriptorCreated
46406
+ * @instance
46407
+ */
46408
+ ModuleDescriptorCreated.prototype.entityType = "";
46409
+
46410
+ /**
46411
+ * ModuleDescriptorCreated accessGroups.
46412
+ * @member {Array.<contentful.ISlugReference>} accessGroups
46413
+ * @memberof ModuleDescriptorCreated
46414
+ * @instance
46415
+ */
46416
+ ModuleDescriptorCreated.prototype.accessGroups = $util.emptyArray;
46417
+
46418
+ /**
46419
+ * ModuleDescriptorCreated excludedAccessGroups.
46420
+ * @member {Array.<contentful.ISlugReference>} excludedAccessGroups
46421
+ * @memberof ModuleDescriptorCreated
46422
+ * @instance
46423
+ */
46424
+ ModuleDescriptorCreated.prototype.excludedAccessGroups = $util.emptyArray;
46425
+
46426
+ /**
46427
+ * ModuleDescriptorCreated createdAt.
46428
+ * @member {number|Long} createdAt
46429
+ * @memberof ModuleDescriptorCreated
46430
+ * @instance
46431
+ */
46432
+ ModuleDescriptorCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
46433
+
46434
+ /**
46435
+ * Creates a new ModuleDescriptorCreated instance using the specified properties.
46436
+ * @function create
46437
+ * @memberof ModuleDescriptorCreated
46438
+ * @static
46439
+ * @param {IModuleDescriptorCreated=} [properties] Properties to set
46440
+ * @returns {ModuleDescriptorCreated} ModuleDescriptorCreated instance
46441
+ */
46442
+ ModuleDescriptorCreated.create = function create(properties) {
46443
+ return new ModuleDescriptorCreated(properties);
46444
+ };
46445
+
46446
+ /**
46447
+ * Encodes the specified ModuleDescriptorCreated message. Does not implicitly {@link ModuleDescriptorCreated.verify|verify} messages.
46448
+ * @function encode
46449
+ * @memberof ModuleDescriptorCreated
46450
+ * @static
46451
+ * @param {IModuleDescriptorCreated} message ModuleDescriptorCreated message or plain object to encode
46452
+ * @param {$protobuf.Writer} [writer] Writer to encode to
46453
+ * @returns {$protobuf.Writer} Writer
46454
+ */
46455
+ ModuleDescriptorCreated.encode = function encode(message, writer) {
46456
+ if (!writer)
46457
+ writer = $Writer.create();
46458
+ if (message.slug != null && message.hasOwnProperty("slug"))
46459
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
46460
+ if (message.entityId != null && message.hasOwnProperty("entityId"))
46461
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.entityId);
46462
+ if (message.entityType != null && message.hasOwnProperty("entityType"))
46463
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.entityType);
46464
+ if (message.accessGroups != null && message.accessGroups.length)
46465
+ for (var i = 0; i < message.accessGroups.length; ++i)
46466
+ $root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
46467
+ if (message.excludedAccessGroups != null && message.excludedAccessGroups.length)
46468
+ for (var i = 0; i < message.excludedAccessGroups.length; ++i)
46469
+ $root.contentful.SlugReference.encode(message.excludedAccessGroups[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
46470
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
46471
+ writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.createdAt);
46472
+ return writer;
46473
+ };
46474
+
46475
+ /**
46476
+ * Encodes the specified ModuleDescriptorCreated message, length delimited. Does not implicitly {@link ModuleDescriptorCreated.verify|verify} messages.
46477
+ * @function encodeDelimited
46478
+ * @memberof ModuleDescriptorCreated
46479
+ * @static
46480
+ * @param {IModuleDescriptorCreated} message ModuleDescriptorCreated message or plain object to encode
46481
+ * @param {$protobuf.Writer} [writer] Writer to encode to
46482
+ * @returns {$protobuf.Writer} Writer
46483
+ */
46484
+ ModuleDescriptorCreated.encodeDelimited = function encodeDelimited(message, writer) {
46485
+ return this.encode(message, writer).ldelim();
46486
+ };
46487
+
46488
+ /**
46489
+ * Decodes a ModuleDescriptorCreated message from the specified reader or buffer.
46490
+ * @function decode
46491
+ * @memberof ModuleDescriptorCreated
46492
+ * @static
46493
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
46494
+ * @param {number} [length] Message length if known beforehand
46495
+ * @returns {ModuleDescriptorCreated} ModuleDescriptorCreated
46496
+ * @throws {Error} If the payload is not a reader or valid buffer
46497
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
46498
+ */
46499
+ ModuleDescriptorCreated.decode = function decode(reader, length) {
46500
+ if (!(reader instanceof $Reader))
46501
+ reader = $Reader.create(reader);
46502
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ModuleDescriptorCreated();
46503
+ while (reader.pos < end) {
46504
+ var tag = reader.uint32();
46505
+ switch (tag >>> 3) {
46506
+ case 1:
46507
+ message.slug = reader.string();
46508
+ break;
46509
+ case 2:
46510
+ message.entityId = reader.string();
46511
+ break;
46512
+ case 3:
46513
+ message.entityType = reader.string();
46514
+ break;
46515
+ case 4:
46516
+ if (!(message.accessGroups && message.accessGroups.length))
46517
+ message.accessGroups = [];
46518
+ message.accessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
46519
+ break;
46520
+ case 5:
46521
+ if (!(message.excludedAccessGroups && message.excludedAccessGroups.length))
46522
+ message.excludedAccessGroups = [];
46523
+ message.excludedAccessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
46524
+ break;
46525
+ case 6:
46526
+ message.createdAt = reader.uint64();
46527
+ break;
46528
+ default:
46529
+ reader.skipType(tag & 7);
46530
+ break;
46531
+ }
46532
+ }
46533
+ return message;
46534
+ };
46535
+
46536
+ /**
46537
+ * Decodes a ModuleDescriptorCreated message from the specified reader or buffer, length delimited.
46538
+ * @function decodeDelimited
46539
+ * @memberof ModuleDescriptorCreated
46540
+ * @static
46541
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
46542
+ * @returns {ModuleDescriptorCreated} ModuleDescriptorCreated
46543
+ * @throws {Error} If the payload is not a reader or valid buffer
46544
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
46545
+ */
46546
+ ModuleDescriptorCreated.decodeDelimited = function decodeDelimited(reader) {
46547
+ if (!(reader instanceof $Reader))
46548
+ reader = new $Reader(reader);
46549
+ return this.decode(reader, reader.uint32());
46550
+ };
46551
+
46552
+ /**
46553
+ * Verifies a ModuleDescriptorCreated message.
46554
+ * @function verify
46555
+ * @memberof ModuleDescriptorCreated
46556
+ * @static
46557
+ * @param {Object.<string,*>} message Plain object to verify
46558
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
46559
+ */
46560
+ ModuleDescriptorCreated.verify = function verify(message) {
46561
+ if (typeof message !== "object" || message === null)
46562
+ return "object expected";
46563
+ if (message.slug != null && message.hasOwnProperty("slug"))
46564
+ if (!$util.isString(message.slug))
46565
+ return "slug: string expected";
46566
+ if (message.entityId != null && message.hasOwnProperty("entityId"))
46567
+ if (!$util.isString(message.entityId))
46568
+ return "entityId: string expected";
46569
+ if (message.entityType != null && message.hasOwnProperty("entityType"))
46570
+ if (!$util.isString(message.entityType))
46571
+ return "entityType: string expected";
46572
+ if (message.accessGroups != null && message.hasOwnProperty("accessGroups")) {
46573
+ if (!Array.isArray(message.accessGroups))
46574
+ return "accessGroups: array expected";
46575
+ for (var i = 0; i < message.accessGroups.length; ++i) {
46576
+ var error = $root.contentful.SlugReference.verify(message.accessGroups[i]);
46577
+ if (error)
46578
+ return "accessGroups." + error;
46579
+ }
46580
+ }
46581
+ if (message.excludedAccessGroups != null && message.hasOwnProperty("excludedAccessGroups")) {
46582
+ if (!Array.isArray(message.excludedAccessGroups))
46583
+ return "excludedAccessGroups: array expected";
46584
+ for (var i = 0; i < message.excludedAccessGroups.length; ++i) {
46585
+ var error = $root.contentful.SlugReference.verify(message.excludedAccessGroups[i]);
46586
+ if (error)
46587
+ return "excludedAccessGroups." + error;
46588
+ }
46589
+ }
46590
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
46591
+ if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
46592
+ return "createdAt: integer|Long expected";
46593
+ return null;
46594
+ };
46595
+
46596
+ /**
46597
+ * Creates a ModuleDescriptorCreated message from a plain object. Also converts values to their respective internal types.
46598
+ * @function fromObject
46599
+ * @memberof ModuleDescriptorCreated
46600
+ * @static
46601
+ * @param {Object.<string,*>} object Plain object
46602
+ * @returns {ModuleDescriptorCreated} ModuleDescriptorCreated
46603
+ */
46604
+ ModuleDescriptorCreated.fromObject = function fromObject(object) {
46605
+ if (object instanceof $root.ModuleDescriptorCreated)
46606
+ return object;
46607
+ var message = new $root.ModuleDescriptorCreated();
46608
+ if (object.slug != null)
46609
+ message.slug = String(object.slug);
46610
+ if (object.entityId != null)
46611
+ message.entityId = String(object.entityId);
46612
+ if (object.entityType != null)
46613
+ message.entityType = String(object.entityType);
46614
+ if (object.accessGroups) {
46615
+ if (!Array.isArray(object.accessGroups))
46616
+ throw TypeError(".ModuleDescriptorCreated.accessGroups: array expected");
46617
+ message.accessGroups = [];
46618
+ for (var i = 0; i < object.accessGroups.length; ++i) {
46619
+ if (typeof object.accessGroups[i] !== "object")
46620
+ throw TypeError(".ModuleDescriptorCreated.accessGroups: object expected");
46621
+ message.accessGroups[i] = $root.contentful.SlugReference.fromObject(object.accessGroups[i]);
46622
+ }
46623
+ }
46624
+ if (object.excludedAccessGroups) {
46625
+ if (!Array.isArray(object.excludedAccessGroups))
46626
+ throw TypeError(".ModuleDescriptorCreated.excludedAccessGroups: array expected");
46627
+ message.excludedAccessGroups = [];
46628
+ for (var i = 0; i < object.excludedAccessGroups.length; ++i) {
46629
+ if (typeof object.excludedAccessGroups[i] !== "object")
46630
+ throw TypeError(".ModuleDescriptorCreated.excludedAccessGroups: object expected");
46631
+ message.excludedAccessGroups[i] = $root.contentful.SlugReference.fromObject(object.excludedAccessGroups[i]);
46632
+ }
46633
+ }
46634
+ if (object.createdAt != null)
46635
+ if ($util.Long)
46636
+ (message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
46637
+ else if (typeof object.createdAt === "string")
46638
+ message.createdAt = parseInt(object.createdAt, 10);
46639
+ else if (typeof object.createdAt === "number")
46640
+ message.createdAt = object.createdAt;
46641
+ else if (typeof object.createdAt === "object")
46642
+ message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
46643
+ return message;
46644
+ };
46645
+
46646
+ /**
46647
+ * Creates a plain object from a ModuleDescriptorCreated message. Also converts values to other types if specified.
46648
+ * @function toObject
46649
+ * @memberof ModuleDescriptorCreated
46650
+ * @static
46651
+ * @param {ModuleDescriptorCreated} message ModuleDescriptorCreated
46652
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
46653
+ * @returns {Object.<string,*>} Plain object
46654
+ */
46655
+ ModuleDescriptorCreated.toObject = function toObject(message, options) {
46656
+ if (!options)
46657
+ options = {};
46658
+ var object = {};
46659
+ if (options.arrays || options.defaults) {
46660
+ object.accessGroups = [];
46661
+ object.excludedAccessGroups = [];
46662
+ }
46663
+ if (options.defaults) {
46664
+ object.slug = "";
46665
+ object.entityId = "";
46666
+ object.entityType = "";
46667
+ if ($util.Long) {
46668
+ var long = new $util.Long(0, 0, true);
46669
+ object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
46670
+ } else
46671
+ object.createdAt = options.longs === String ? "0" : 0;
46672
+ }
46673
+ if (message.slug != null && message.hasOwnProperty("slug"))
46674
+ object.slug = message.slug;
46675
+ if (message.entityId != null && message.hasOwnProperty("entityId"))
46676
+ object.entityId = message.entityId;
46677
+ if (message.entityType != null && message.hasOwnProperty("entityType"))
46678
+ object.entityType = message.entityType;
46679
+ if (message.accessGroups && message.accessGroups.length) {
46680
+ object.accessGroups = [];
46681
+ for (var j = 0; j < message.accessGroups.length; ++j)
46682
+ object.accessGroups[j] = $root.contentful.SlugReference.toObject(message.accessGroups[j], options);
46683
+ }
46684
+ if (message.excludedAccessGroups && message.excludedAccessGroups.length) {
46685
+ object.excludedAccessGroups = [];
46686
+ for (var j = 0; j < message.excludedAccessGroups.length; ++j)
46687
+ object.excludedAccessGroups[j] = $root.contentful.SlugReference.toObject(message.excludedAccessGroups[j], options);
46688
+ }
46689
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
46690
+ if (typeof message.createdAt === "number")
46691
+ object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
46692
+ else
46693
+ 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;
46694
+ return object;
46695
+ };
46696
+
46697
+ /**
46698
+ * Converts this ModuleDescriptorCreated to JSON.
46699
+ * @function toJSON
46700
+ * @memberof ModuleDescriptorCreated
46701
+ * @instance
46702
+ * @returns {Object.<string,*>} JSON object
46703
+ */
46704
+ ModuleDescriptorCreated.prototype.toJSON = function toJSON() {
46705
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
46706
+ };
46707
+
46708
+ return ModuleDescriptorCreated;
46709
+ })();
46710
+
46711
+ $root.ModuleDescriptorUpdated = (function() {
46712
+
46713
+ /**
46714
+ * Properties of a ModuleDescriptorUpdated.
46715
+ * @exports IModuleDescriptorUpdated
46716
+ * @interface IModuleDescriptorUpdated
46717
+ * @property {string|null} [slug] ModuleDescriptorUpdated slug
46718
+ * @property {string|null} [entityId] ModuleDescriptorUpdated entityId
46719
+ * @property {string|null} [entityType] ModuleDescriptorUpdated entityType
46720
+ * @property {Array.<contentful.ISlugReference>|null} [accessGroups] ModuleDescriptorUpdated accessGroups
46721
+ * @property {Array.<contentful.ISlugReference>|null} [excludedAccessGroups] ModuleDescriptorUpdated excludedAccessGroups
46722
+ * @property {number|Long|null} [updatedAt] ModuleDescriptorUpdated updatedAt
46723
+ */
46724
+
46725
+ /**
46726
+ * Constructs a new ModuleDescriptorUpdated.
46727
+ * @exports ModuleDescriptorUpdated
46728
+ * @classdesc Represents a ModuleDescriptorUpdated.
46729
+ * @implements IModuleDescriptorUpdated
46730
+ * @constructor
46731
+ * @param {IModuleDescriptorUpdated=} [properties] Properties to set
46732
+ */
46733
+ function ModuleDescriptorUpdated(properties) {
46734
+ this.accessGroups = [];
46735
+ this.excludedAccessGroups = [];
46736
+ if (properties)
46737
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
46738
+ if (properties[keys[i]] != null)
46739
+ this[keys[i]] = properties[keys[i]];
46740
+ }
46741
+
46742
+ /**
46743
+ * ModuleDescriptorUpdated slug.
46744
+ * @member {string} slug
46745
+ * @memberof ModuleDescriptorUpdated
46746
+ * @instance
46747
+ */
46748
+ ModuleDescriptorUpdated.prototype.slug = "";
46749
+
46750
+ /**
46751
+ * ModuleDescriptorUpdated entityId.
46752
+ * @member {string} entityId
46753
+ * @memberof ModuleDescriptorUpdated
46754
+ * @instance
46755
+ */
46756
+ ModuleDescriptorUpdated.prototype.entityId = "";
46757
+
46758
+ /**
46759
+ * ModuleDescriptorUpdated entityType.
46760
+ * @member {string} entityType
46761
+ * @memberof ModuleDescriptorUpdated
46762
+ * @instance
46763
+ */
46764
+ ModuleDescriptorUpdated.prototype.entityType = "";
46765
+
46766
+ /**
46767
+ * ModuleDescriptorUpdated accessGroups.
46768
+ * @member {Array.<contentful.ISlugReference>} accessGroups
46769
+ * @memberof ModuleDescriptorUpdated
46770
+ * @instance
46771
+ */
46772
+ ModuleDescriptorUpdated.prototype.accessGroups = $util.emptyArray;
46773
+
46774
+ /**
46775
+ * ModuleDescriptorUpdated excludedAccessGroups.
46776
+ * @member {Array.<contentful.ISlugReference>} excludedAccessGroups
46777
+ * @memberof ModuleDescriptorUpdated
46778
+ * @instance
46779
+ */
46780
+ ModuleDescriptorUpdated.prototype.excludedAccessGroups = $util.emptyArray;
46781
+
46782
+ /**
46783
+ * ModuleDescriptorUpdated updatedAt.
46784
+ * @member {number|Long} updatedAt
46785
+ * @memberof ModuleDescriptorUpdated
46786
+ * @instance
46787
+ */
46788
+ ModuleDescriptorUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
46789
+
46790
+ /**
46791
+ * Creates a new ModuleDescriptorUpdated instance using the specified properties.
46792
+ * @function create
46793
+ * @memberof ModuleDescriptorUpdated
46794
+ * @static
46795
+ * @param {IModuleDescriptorUpdated=} [properties] Properties to set
46796
+ * @returns {ModuleDescriptorUpdated} ModuleDescriptorUpdated instance
46797
+ */
46798
+ ModuleDescriptorUpdated.create = function create(properties) {
46799
+ return new ModuleDescriptorUpdated(properties);
46800
+ };
46801
+
46802
+ /**
46803
+ * Encodes the specified ModuleDescriptorUpdated message. Does not implicitly {@link ModuleDescriptorUpdated.verify|verify} messages.
46804
+ * @function encode
46805
+ * @memberof ModuleDescriptorUpdated
46806
+ * @static
46807
+ * @param {IModuleDescriptorUpdated} message ModuleDescriptorUpdated message or plain object to encode
46808
+ * @param {$protobuf.Writer} [writer] Writer to encode to
46809
+ * @returns {$protobuf.Writer} Writer
46810
+ */
46811
+ ModuleDescriptorUpdated.encode = function encode(message, writer) {
46812
+ if (!writer)
46813
+ writer = $Writer.create();
46814
+ if (message.slug != null && message.hasOwnProperty("slug"))
46815
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
46816
+ if (message.entityId != null && message.hasOwnProperty("entityId"))
46817
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.entityId);
46818
+ if (message.entityType != null && message.hasOwnProperty("entityType"))
46819
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.entityType);
46820
+ if (message.accessGroups != null && message.accessGroups.length)
46821
+ for (var i = 0; i < message.accessGroups.length; ++i)
46822
+ $root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
46823
+ if (message.excludedAccessGroups != null && message.excludedAccessGroups.length)
46824
+ for (var i = 0; i < message.excludedAccessGroups.length; ++i)
46825
+ $root.contentful.SlugReference.encode(message.excludedAccessGroups[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
46826
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
46827
+ writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.updatedAt);
46828
+ return writer;
46829
+ };
46830
+
46831
+ /**
46832
+ * Encodes the specified ModuleDescriptorUpdated message, length delimited. Does not implicitly {@link ModuleDescriptorUpdated.verify|verify} messages.
46833
+ * @function encodeDelimited
46834
+ * @memberof ModuleDescriptorUpdated
46835
+ * @static
46836
+ * @param {IModuleDescriptorUpdated} message ModuleDescriptorUpdated message or plain object to encode
46837
+ * @param {$protobuf.Writer} [writer] Writer to encode to
46838
+ * @returns {$protobuf.Writer} Writer
46839
+ */
46840
+ ModuleDescriptorUpdated.encodeDelimited = function encodeDelimited(message, writer) {
46841
+ return this.encode(message, writer).ldelim();
46842
+ };
46843
+
46844
+ /**
46845
+ * Decodes a ModuleDescriptorUpdated message from the specified reader or buffer.
46846
+ * @function decode
46847
+ * @memberof ModuleDescriptorUpdated
46848
+ * @static
46849
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
46850
+ * @param {number} [length] Message length if known beforehand
46851
+ * @returns {ModuleDescriptorUpdated} ModuleDescriptorUpdated
46852
+ * @throws {Error} If the payload is not a reader or valid buffer
46853
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
46854
+ */
46855
+ ModuleDescriptorUpdated.decode = function decode(reader, length) {
46856
+ if (!(reader instanceof $Reader))
46857
+ reader = $Reader.create(reader);
46858
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ModuleDescriptorUpdated();
46859
+ while (reader.pos < end) {
46860
+ var tag = reader.uint32();
46861
+ switch (tag >>> 3) {
46862
+ case 1:
46863
+ message.slug = reader.string();
46864
+ break;
46865
+ case 2:
46866
+ message.entityId = reader.string();
46867
+ break;
46868
+ case 3:
46869
+ message.entityType = reader.string();
46870
+ break;
46871
+ case 4:
46872
+ if (!(message.accessGroups && message.accessGroups.length))
46873
+ message.accessGroups = [];
46874
+ message.accessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
46875
+ break;
46876
+ case 5:
46877
+ if (!(message.excludedAccessGroups && message.excludedAccessGroups.length))
46878
+ message.excludedAccessGroups = [];
46879
+ message.excludedAccessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
46880
+ break;
46881
+ case 6:
46882
+ message.updatedAt = reader.uint64();
46883
+ break;
46884
+ default:
46885
+ reader.skipType(tag & 7);
46886
+ break;
46887
+ }
46888
+ }
46889
+ return message;
46890
+ };
46891
+
46892
+ /**
46893
+ * Decodes a ModuleDescriptorUpdated message from the specified reader or buffer, length delimited.
46894
+ * @function decodeDelimited
46895
+ * @memberof ModuleDescriptorUpdated
46896
+ * @static
46897
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
46898
+ * @returns {ModuleDescriptorUpdated} ModuleDescriptorUpdated
46899
+ * @throws {Error} If the payload is not a reader or valid buffer
46900
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
46901
+ */
46902
+ ModuleDescriptorUpdated.decodeDelimited = function decodeDelimited(reader) {
46903
+ if (!(reader instanceof $Reader))
46904
+ reader = new $Reader(reader);
46905
+ return this.decode(reader, reader.uint32());
46906
+ };
46907
+
46908
+ /**
46909
+ * Verifies a ModuleDescriptorUpdated message.
46910
+ * @function verify
46911
+ * @memberof ModuleDescriptorUpdated
46912
+ * @static
46913
+ * @param {Object.<string,*>} message Plain object to verify
46914
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
46915
+ */
46916
+ ModuleDescriptorUpdated.verify = function verify(message) {
46917
+ if (typeof message !== "object" || message === null)
46918
+ return "object expected";
46919
+ if (message.slug != null && message.hasOwnProperty("slug"))
46920
+ if (!$util.isString(message.slug))
46921
+ return "slug: string expected";
46922
+ if (message.entityId != null && message.hasOwnProperty("entityId"))
46923
+ if (!$util.isString(message.entityId))
46924
+ return "entityId: string expected";
46925
+ if (message.entityType != null && message.hasOwnProperty("entityType"))
46926
+ if (!$util.isString(message.entityType))
46927
+ return "entityType: string expected";
46928
+ if (message.accessGroups != null && message.hasOwnProperty("accessGroups")) {
46929
+ if (!Array.isArray(message.accessGroups))
46930
+ return "accessGroups: array expected";
46931
+ for (var i = 0; i < message.accessGroups.length; ++i) {
46932
+ var error = $root.contentful.SlugReference.verify(message.accessGroups[i]);
46933
+ if (error)
46934
+ return "accessGroups." + error;
46935
+ }
46936
+ }
46937
+ if (message.excludedAccessGroups != null && message.hasOwnProperty("excludedAccessGroups")) {
46938
+ if (!Array.isArray(message.excludedAccessGroups))
46939
+ return "excludedAccessGroups: array expected";
46940
+ for (var i = 0; i < message.excludedAccessGroups.length; ++i) {
46941
+ var error = $root.contentful.SlugReference.verify(message.excludedAccessGroups[i]);
46942
+ if (error)
46943
+ return "excludedAccessGroups." + error;
46944
+ }
46945
+ }
46946
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
46947
+ if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
46948
+ return "updatedAt: integer|Long expected";
46949
+ return null;
46950
+ };
46951
+
46952
+ /**
46953
+ * Creates a ModuleDescriptorUpdated message from a plain object. Also converts values to their respective internal types.
46954
+ * @function fromObject
46955
+ * @memberof ModuleDescriptorUpdated
46956
+ * @static
46957
+ * @param {Object.<string,*>} object Plain object
46958
+ * @returns {ModuleDescriptorUpdated} ModuleDescriptorUpdated
46959
+ */
46960
+ ModuleDescriptorUpdated.fromObject = function fromObject(object) {
46961
+ if (object instanceof $root.ModuleDescriptorUpdated)
46962
+ return object;
46963
+ var message = new $root.ModuleDescriptorUpdated();
46964
+ if (object.slug != null)
46965
+ message.slug = String(object.slug);
46966
+ if (object.entityId != null)
46967
+ message.entityId = String(object.entityId);
46968
+ if (object.entityType != null)
46969
+ message.entityType = String(object.entityType);
46970
+ if (object.accessGroups) {
46971
+ if (!Array.isArray(object.accessGroups))
46972
+ throw TypeError(".ModuleDescriptorUpdated.accessGroups: array expected");
46973
+ message.accessGroups = [];
46974
+ for (var i = 0; i < object.accessGroups.length; ++i) {
46975
+ if (typeof object.accessGroups[i] !== "object")
46976
+ throw TypeError(".ModuleDescriptorUpdated.accessGroups: object expected");
46977
+ message.accessGroups[i] = $root.contentful.SlugReference.fromObject(object.accessGroups[i]);
46978
+ }
46979
+ }
46980
+ if (object.excludedAccessGroups) {
46981
+ if (!Array.isArray(object.excludedAccessGroups))
46982
+ throw TypeError(".ModuleDescriptorUpdated.excludedAccessGroups: array expected");
46983
+ message.excludedAccessGroups = [];
46984
+ for (var i = 0; i < object.excludedAccessGroups.length; ++i) {
46985
+ if (typeof object.excludedAccessGroups[i] !== "object")
46986
+ throw TypeError(".ModuleDescriptorUpdated.excludedAccessGroups: object expected");
46987
+ message.excludedAccessGroups[i] = $root.contentful.SlugReference.fromObject(object.excludedAccessGroups[i]);
46988
+ }
46989
+ }
46990
+ if (object.updatedAt != null)
46991
+ if ($util.Long)
46992
+ (message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
46993
+ else if (typeof object.updatedAt === "string")
46994
+ message.updatedAt = parseInt(object.updatedAt, 10);
46995
+ else if (typeof object.updatedAt === "number")
46996
+ message.updatedAt = object.updatedAt;
46997
+ else if (typeof object.updatedAt === "object")
46998
+ message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
46999
+ return message;
47000
+ };
47001
+
47002
+ /**
47003
+ * Creates a plain object from a ModuleDescriptorUpdated message. Also converts values to other types if specified.
47004
+ * @function toObject
47005
+ * @memberof ModuleDescriptorUpdated
47006
+ * @static
47007
+ * @param {ModuleDescriptorUpdated} message ModuleDescriptorUpdated
47008
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
47009
+ * @returns {Object.<string,*>} Plain object
47010
+ */
47011
+ ModuleDescriptorUpdated.toObject = function toObject(message, options) {
47012
+ if (!options)
47013
+ options = {};
47014
+ var object = {};
47015
+ if (options.arrays || options.defaults) {
47016
+ object.accessGroups = [];
47017
+ object.excludedAccessGroups = [];
47018
+ }
47019
+ if (options.defaults) {
47020
+ object.slug = "";
47021
+ object.entityId = "";
47022
+ object.entityType = "";
47023
+ if ($util.Long) {
47024
+ var long = new $util.Long(0, 0, true);
47025
+ object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
47026
+ } else
47027
+ object.updatedAt = options.longs === String ? "0" : 0;
47028
+ }
47029
+ if (message.slug != null && message.hasOwnProperty("slug"))
47030
+ object.slug = message.slug;
47031
+ if (message.entityId != null && message.hasOwnProperty("entityId"))
47032
+ object.entityId = message.entityId;
47033
+ if (message.entityType != null && message.hasOwnProperty("entityType"))
47034
+ object.entityType = message.entityType;
47035
+ if (message.accessGroups && message.accessGroups.length) {
47036
+ object.accessGroups = [];
47037
+ for (var j = 0; j < message.accessGroups.length; ++j)
47038
+ object.accessGroups[j] = $root.contentful.SlugReference.toObject(message.accessGroups[j], options);
47039
+ }
47040
+ if (message.excludedAccessGroups && message.excludedAccessGroups.length) {
47041
+ object.excludedAccessGroups = [];
47042
+ for (var j = 0; j < message.excludedAccessGroups.length; ++j)
47043
+ object.excludedAccessGroups[j] = $root.contentful.SlugReference.toObject(message.excludedAccessGroups[j], options);
47044
+ }
47045
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
47046
+ if (typeof message.updatedAt === "number")
47047
+ object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
47048
+ else
47049
+ 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;
47050
+ return object;
47051
+ };
47052
+
47053
+ /**
47054
+ * Converts this ModuleDescriptorUpdated to JSON.
47055
+ * @function toJSON
47056
+ * @memberof ModuleDescriptorUpdated
47057
+ * @instance
47058
+ * @returns {Object.<string,*>} JSON object
47059
+ */
47060
+ ModuleDescriptorUpdated.prototype.toJSON = function toJSON() {
47061
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
47062
+ };
47063
+
47064
+ return ModuleDescriptorUpdated;
47065
+ })();
47066
+
47067
+ $root.ModuleDescriptorDeleted = (function() {
47068
+
47069
+ /**
47070
+ * Properties of a ModuleDescriptorDeleted.
47071
+ * @exports IModuleDescriptorDeleted
47072
+ * @interface IModuleDescriptorDeleted
47073
+ * @property {string|null} [slug] ModuleDescriptorDeleted slug
47074
+ * @property {string|null} [entityId] ModuleDescriptorDeleted entityId
47075
+ * @property {string|null} [entityType] ModuleDescriptorDeleted entityType
47076
+ * @property {number|Long|null} [deletedAt] ModuleDescriptorDeleted deletedAt
47077
+ */
47078
+
47079
+ /**
47080
+ * Constructs a new ModuleDescriptorDeleted.
47081
+ * @exports ModuleDescriptorDeleted
47082
+ * @classdesc Represents a ModuleDescriptorDeleted.
47083
+ * @implements IModuleDescriptorDeleted
47084
+ * @constructor
47085
+ * @param {IModuleDescriptorDeleted=} [properties] Properties to set
47086
+ */
47087
+ function ModuleDescriptorDeleted(properties) {
47088
+ if (properties)
47089
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
47090
+ if (properties[keys[i]] != null)
47091
+ this[keys[i]] = properties[keys[i]];
47092
+ }
47093
+
47094
+ /**
47095
+ * ModuleDescriptorDeleted slug.
47096
+ * @member {string} slug
47097
+ * @memberof ModuleDescriptorDeleted
47098
+ * @instance
47099
+ */
47100
+ ModuleDescriptorDeleted.prototype.slug = "";
47101
+
47102
+ /**
47103
+ * ModuleDescriptorDeleted entityId.
47104
+ * @member {string} entityId
47105
+ * @memberof ModuleDescriptorDeleted
47106
+ * @instance
47107
+ */
47108
+ ModuleDescriptorDeleted.prototype.entityId = "";
47109
+
47110
+ /**
47111
+ * ModuleDescriptorDeleted entityType.
47112
+ * @member {string} entityType
47113
+ * @memberof ModuleDescriptorDeleted
47114
+ * @instance
47115
+ */
47116
+ ModuleDescriptorDeleted.prototype.entityType = "";
47117
+
47118
+ /**
47119
+ * ModuleDescriptorDeleted deletedAt.
47120
+ * @member {number|Long} deletedAt
47121
+ * @memberof ModuleDescriptorDeleted
47122
+ * @instance
47123
+ */
47124
+ ModuleDescriptorDeleted.prototype.deletedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
47125
+
47126
+ /**
47127
+ * Creates a new ModuleDescriptorDeleted instance using the specified properties.
47128
+ * @function create
47129
+ * @memberof ModuleDescriptorDeleted
47130
+ * @static
47131
+ * @param {IModuleDescriptorDeleted=} [properties] Properties to set
47132
+ * @returns {ModuleDescriptorDeleted} ModuleDescriptorDeleted instance
47133
+ */
47134
+ ModuleDescriptorDeleted.create = function create(properties) {
47135
+ return new ModuleDescriptorDeleted(properties);
47136
+ };
47137
+
47138
+ /**
47139
+ * Encodes the specified ModuleDescriptorDeleted message. Does not implicitly {@link ModuleDescriptorDeleted.verify|verify} messages.
47140
+ * @function encode
47141
+ * @memberof ModuleDescriptorDeleted
47142
+ * @static
47143
+ * @param {IModuleDescriptorDeleted} message ModuleDescriptorDeleted message or plain object to encode
47144
+ * @param {$protobuf.Writer} [writer] Writer to encode to
47145
+ * @returns {$protobuf.Writer} Writer
47146
+ */
47147
+ ModuleDescriptorDeleted.encode = function encode(message, writer) {
47148
+ if (!writer)
47149
+ writer = $Writer.create();
47150
+ if (message.slug != null && message.hasOwnProperty("slug"))
47151
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
47152
+ if (message.entityId != null && message.hasOwnProperty("entityId"))
47153
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.entityId);
47154
+ if (message.entityType != null && message.hasOwnProperty("entityType"))
47155
+ writer.uint32(/* id 3, wireType 2 =*/26).string(message.entityType);
47156
+ if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
47157
+ writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.deletedAt);
47158
+ return writer;
47159
+ };
47160
+
47161
+ /**
47162
+ * Encodes the specified ModuleDescriptorDeleted message, length delimited. Does not implicitly {@link ModuleDescriptorDeleted.verify|verify} messages.
47163
+ * @function encodeDelimited
47164
+ * @memberof ModuleDescriptorDeleted
47165
+ * @static
47166
+ * @param {IModuleDescriptorDeleted} message ModuleDescriptorDeleted message or plain object to encode
47167
+ * @param {$protobuf.Writer} [writer] Writer to encode to
47168
+ * @returns {$protobuf.Writer} Writer
47169
+ */
47170
+ ModuleDescriptorDeleted.encodeDelimited = function encodeDelimited(message, writer) {
47171
+ return this.encode(message, writer).ldelim();
47172
+ };
47173
+
47174
+ /**
47175
+ * Decodes a ModuleDescriptorDeleted message from the specified reader or buffer.
47176
+ * @function decode
47177
+ * @memberof ModuleDescriptorDeleted
47178
+ * @static
47179
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
47180
+ * @param {number} [length] Message length if known beforehand
47181
+ * @returns {ModuleDescriptorDeleted} ModuleDescriptorDeleted
47182
+ * @throws {Error} If the payload is not a reader or valid buffer
47183
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
47184
+ */
47185
+ ModuleDescriptorDeleted.decode = function decode(reader, length) {
47186
+ if (!(reader instanceof $Reader))
47187
+ reader = $Reader.create(reader);
47188
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ModuleDescriptorDeleted();
47189
+ while (reader.pos < end) {
47190
+ var tag = reader.uint32();
47191
+ switch (tag >>> 3) {
47192
+ case 1:
47193
+ message.slug = reader.string();
47194
+ break;
47195
+ case 2:
47196
+ message.entityId = reader.string();
47197
+ break;
47198
+ case 3:
47199
+ message.entityType = reader.string();
47200
+ break;
47201
+ case 4:
47202
+ message.deletedAt = reader.uint64();
47203
+ break;
47204
+ default:
47205
+ reader.skipType(tag & 7);
47206
+ break;
47207
+ }
47208
+ }
47209
+ return message;
47210
+ };
47211
+
47212
+ /**
47213
+ * Decodes a ModuleDescriptorDeleted message from the specified reader or buffer, length delimited.
47214
+ * @function decodeDelimited
47215
+ * @memberof ModuleDescriptorDeleted
47216
+ * @static
47217
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
47218
+ * @returns {ModuleDescriptorDeleted} ModuleDescriptorDeleted
47219
+ * @throws {Error} If the payload is not a reader or valid buffer
47220
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
47221
+ */
47222
+ ModuleDescriptorDeleted.decodeDelimited = function decodeDelimited(reader) {
47223
+ if (!(reader instanceof $Reader))
47224
+ reader = new $Reader(reader);
47225
+ return this.decode(reader, reader.uint32());
47226
+ };
47227
+
47228
+ /**
47229
+ * Verifies a ModuleDescriptorDeleted message.
47230
+ * @function verify
47231
+ * @memberof ModuleDescriptorDeleted
47232
+ * @static
47233
+ * @param {Object.<string,*>} message Plain object to verify
47234
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
47235
+ */
47236
+ ModuleDescriptorDeleted.verify = function verify(message) {
47237
+ if (typeof message !== "object" || message === null)
47238
+ return "object expected";
47239
+ if (message.slug != null && message.hasOwnProperty("slug"))
47240
+ if (!$util.isString(message.slug))
47241
+ return "slug: string expected";
47242
+ if (message.entityId != null && message.hasOwnProperty("entityId"))
47243
+ if (!$util.isString(message.entityId))
47244
+ return "entityId: string expected";
47245
+ if (message.entityType != null && message.hasOwnProperty("entityType"))
47246
+ if (!$util.isString(message.entityType))
47247
+ return "entityType: string expected";
47248
+ if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
47249
+ if (!$util.isInteger(message.deletedAt) && !(message.deletedAt && $util.isInteger(message.deletedAt.low) && $util.isInteger(message.deletedAt.high)))
47250
+ return "deletedAt: integer|Long expected";
47251
+ return null;
47252
+ };
47253
+
47254
+ /**
47255
+ * Creates a ModuleDescriptorDeleted message from a plain object. Also converts values to their respective internal types.
47256
+ * @function fromObject
47257
+ * @memberof ModuleDescriptorDeleted
47258
+ * @static
47259
+ * @param {Object.<string,*>} object Plain object
47260
+ * @returns {ModuleDescriptorDeleted} ModuleDescriptorDeleted
47261
+ */
47262
+ ModuleDescriptorDeleted.fromObject = function fromObject(object) {
47263
+ if (object instanceof $root.ModuleDescriptorDeleted)
47264
+ return object;
47265
+ var message = new $root.ModuleDescriptorDeleted();
47266
+ if (object.slug != null)
47267
+ message.slug = String(object.slug);
47268
+ if (object.entityId != null)
47269
+ message.entityId = String(object.entityId);
47270
+ if (object.entityType != null)
47271
+ message.entityType = String(object.entityType);
47272
+ if (object.deletedAt != null)
47273
+ if ($util.Long)
47274
+ (message.deletedAt = $util.Long.fromValue(object.deletedAt)).unsigned = true;
47275
+ else if (typeof object.deletedAt === "string")
47276
+ message.deletedAt = parseInt(object.deletedAt, 10);
47277
+ else if (typeof object.deletedAt === "number")
47278
+ message.deletedAt = object.deletedAt;
47279
+ else if (typeof object.deletedAt === "object")
47280
+ message.deletedAt = new $util.LongBits(object.deletedAt.low >>> 0, object.deletedAt.high >>> 0).toNumber(true);
47281
+ return message;
47282
+ };
47283
+
47284
+ /**
47285
+ * Creates a plain object from a ModuleDescriptorDeleted message. Also converts values to other types if specified.
47286
+ * @function toObject
47287
+ * @memberof ModuleDescriptorDeleted
47288
+ * @static
47289
+ * @param {ModuleDescriptorDeleted} message ModuleDescriptorDeleted
47290
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
47291
+ * @returns {Object.<string,*>} Plain object
47292
+ */
47293
+ ModuleDescriptorDeleted.toObject = function toObject(message, options) {
47294
+ if (!options)
47295
+ options = {};
47296
+ var object = {};
47297
+ if (options.defaults) {
47298
+ object.slug = "";
47299
+ object.entityId = "";
47300
+ object.entityType = "";
47301
+ if ($util.Long) {
47302
+ var long = new $util.Long(0, 0, true);
47303
+ object.deletedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
47304
+ } else
47305
+ object.deletedAt = options.longs === String ? "0" : 0;
47306
+ }
47307
+ if (message.slug != null && message.hasOwnProperty("slug"))
47308
+ object.slug = message.slug;
47309
+ if (message.entityId != null && message.hasOwnProperty("entityId"))
47310
+ object.entityId = message.entityId;
47311
+ if (message.entityType != null && message.hasOwnProperty("entityType"))
47312
+ object.entityType = message.entityType;
47313
+ if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
47314
+ if (typeof message.deletedAt === "number")
47315
+ object.deletedAt = options.longs === String ? String(message.deletedAt) : message.deletedAt;
47316
+ else
47317
+ 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;
47318
+ return object;
47319
+ };
47320
+
47321
+ /**
47322
+ * Converts this ModuleDescriptorDeleted to JSON.
47323
+ * @function toJSON
47324
+ * @memberof ModuleDescriptorDeleted
47325
+ * @instance
47326
+ * @returns {Object.<string,*>} JSON object
47327
+ */
47328
+ ModuleDescriptorDeleted.prototype.toJSON = function toJSON() {
47329
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
47330
+ };
47331
+
47332
+ return ModuleDescriptorDeleted;
47333
+ })();
47334
+
45375
47335
  $root.WakeupPlaylistCreated = (function() {
45376
47336
 
45377
47337
  /**