@headspace/protos-events 1.273.0 → 1.275.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 +372 -0
- package/lib/index.js +1076 -0
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -30528,6 +30528,7 @@ $root.ContentfulAccessGroupCreated = (function() {
|
|
|
30528
30528
|
* @property {string|null} [description] ContentfulAccessGroupCreated description
|
|
30529
30529
|
* @property {number|Long|null} [createdAt] ContentfulAccessGroupCreated createdAt
|
|
30530
30530
|
* @property {string|null} [slug] ContentfulAccessGroupCreated slug
|
|
30531
|
+
* @property {string|null} [category] ContentfulAccessGroupCreated category
|
|
30531
30532
|
*/
|
|
30532
30533
|
|
|
30533
30534
|
/**
|
|
@@ -30577,6 +30578,14 @@ $root.ContentfulAccessGroupCreated = (function() {
|
|
|
30577
30578
|
*/
|
|
30578
30579
|
ContentfulAccessGroupCreated.prototype.slug = "";
|
|
30579
30580
|
|
|
30581
|
+
/**
|
|
30582
|
+
* ContentfulAccessGroupCreated category.
|
|
30583
|
+
* @member {string} category
|
|
30584
|
+
* @memberof ContentfulAccessGroupCreated
|
|
30585
|
+
* @instance
|
|
30586
|
+
*/
|
|
30587
|
+
ContentfulAccessGroupCreated.prototype.category = "";
|
|
30588
|
+
|
|
30580
30589
|
/**
|
|
30581
30590
|
* Creates a new ContentfulAccessGroupCreated instance using the specified properties.
|
|
30582
30591
|
* @function create
|
|
@@ -30609,6 +30618,8 @@ $root.ContentfulAccessGroupCreated = (function() {
|
|
|
30609
30618
|
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.createdAt);
|
|
30610
30619
|
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
30611
30620
|
writer.uint32(/* id 4, wireType 2 =*/34).string(message.slug);
|
|
30621
|
+
if (message.category != null && message.hasOwnProperty("category"))
|
|
30622
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.category);
|
|
30612
30623
|
return writer;
|
|
30613
30624
|
};
|
|
30614
30625
|
|
|
@@ -30655,6 +30666,9 @@ $root.ContentfulAccessGroupCreated = (function() {
|
|
|
30655
30666
|
case 4:
|
|
30656
30667
|
message.slug = reader.string();
|
|
30657
30668
|
break;
|
|
30669
|
+
case 5:
|
|
30670
|
+
message.category = reader.string();
|
|
30671
|
+
break;
|
|
30658
30672
|
default:
|
|
30659
30673
|
reader.skipType(tag & 7);
|
|
30660
30674
|
break;
|
|
@@ -30702,6 +30716,9 @@ $root.ContentfulAccessGroupCreated = (function() {
|
|
|
30702
30716
|
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
30703
30717
|
if (!$util.isString(message.slug))
|
|
30704
30718
|
return "slug: string expected";
|
|
30719
|
+
if (message.category != null && message.hasOwnProperty("category"))
|
|
30720
|
+
if (!$util.isString(message.category))
|
|
30721
|
+
return "category: string expected";
|
|
30705
30722
|
return null;
|
|
30706
30723
|
};
|
|
30707
30724
|
|
|
@@ -30732,6 +30749,8 @@ $root.ContentfulAccessGroupCreated = (function() {
|
|
|
30732
30749
|
message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
|
|
30733
30750
|
if (object.slug != null)
|
|
30734
30751
|
message.slug = String(object.slug);
|
|
30752
|
+
if (object.category != null)
|
|
30753
|
+
message.category = String(object.category);
|
|
30735
30754
|
return message;
|
|
30736
30755
|
};
|
|
30737
30756
|
|
|
@@ -30757,6 +30776,7 @@ $root.ContentfulAccessGroupCreated = (function() {
|
|
|
30757
30776
|
} else
|
|
30758
30777
|
object.createdAt = options.longs === String ? "0" : 0;
|
|
30759
30778
|
object.slug = "";
|
|
30779
|
+
object.category = "";
|
|
30760
30780
|
}
|
|
30761
30781
|
if (message.accessGroupName != null && message.hasOwnProperty("accessGroupName"))
|
|
30762
30782
|
object.accessGroupName = message.accessGroupName;
|
|
@@ -30769,6 +30789,8 @@ $root.ContentfulAccessGroupCreated = (function() {
|
|
|
30769
30789
|
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;
|
|
30770
30790
|
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
30771
30791
|
object.slug = message.slug;
|
|
30792
|
+
if (message.category != null && message.hasOwnProperty("category"))
|
|
30793
|
+
object.category = message.category;
|
|
30772
30794
|
return object;
|
|
30773
30795
|
};
|
|
30774
30796
|
|
|
@@ -30796,6 +30818,7 @@ $root.ContentfulAccessGroupUpdated = (function() {
|
|
|
30796
30818
|
* @property {string|null} [description] ContentfulAccessGroupUpdated description
|
|
30797
30819
|
* @property {number|Long|null} [updatedAt] ContentfulAccessGroupUpdated updatedAt
|
|
30798
30820
|
* @property {string|null} [slug] ContentfulAccessGroupUpdated slug
|
|
30821
|
+
* @property {string|null} [category] ContentfulAccessGroupUpdated category
|
|
30799
30822
|
*/
|
|
30800
30823
|
|
|
30801
30824
|
/**
|
|
@@ -30845,6 +30868,14 @@ $root.ContentfulAccessGroupUpdated = (function() {
|
|
|
30845
30868
|
*/
|
|
30846
30869
|
ContentfulAccessGroupUpdated.prototype.slug = "";
|
|
30847
30870
|
|
|
30871
|
+
/**
|
|
30872
|
+
* ContentfulAccessGroupUpdated category.
|
|
30873
|
+
* @member {string} category
|
|
30874
|
+
* @memberof ContentfulAccessGroupUpdated
|
|
30875
|
+
* @instance
|
|
30876
|
+
*/
|
|
30877
|
+
ContentfulAccessGroupUpdated.prototype.category = "";
|
|
30878
|
+
|
|
30848
30879
|
/**
|
|
30849
30880
|
* Creates a new ContentfulAccessGroupUpdated instance using the specified properties.
|
|
30850
30881
|
* @function create
|
|
@@ -30877,6 +30908,8 @@ $root.ContentfulAccessGroupUpdated = (function() {
|
|
|
30877
30908
|
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.updatedAt);
|
|
30878
30909
|
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
30879
30910
|
writer.uint32(/* id 4, wireType 2 =*/34).string(message.slug);
|
|
30911
|
+
if (message.category != null && message.hasOwnProperty("category"))
|
|
30912
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.category);
|
|
30880
30913
|
return writer;
|
|
30881
30914
|
};
|
|
30882
30915
|
|
|
@@ -30923,6 +30956,9 @@ $root.ContentfulAccessGroupUpdated = (function() {
|
|
|
30923
30956
|
case 4:
|
|
30924
30957
|
message.slug = reader.string();
|
|
30925
30958
|
break;
|
|
30959
|
+
case 5:
|
|
30960
|
+
message.category = reader.string();
|
|
30961
|
+
break;
|
|
30926
30962
|
default:
|
|
30927
30963
|
reader.skipType(tag & 7);
|
|
30928
30964
|
break;
|
|
@@ -30970,6 +31006,9 @@ $root.ContentfulAccessGroupUpdated = (function() {
|
|
|
30970
31006
|
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
30971
31007
|
if (!$util.isString(message.slug))
|
|
30972
31008
|
return "slug: string expected";
|
|
31009
|
+
if (message.category != null && message.hasOwnProperty("category"))
|
|
31010
|
+
if (!$util.isString(message.category))
|
|
31011
|
+
return "category: string expected";
|
|
30973
31012
|
return null;
|
|
30974
31013
|
};
|
|
30975
31014
|
|
|
@@ -31000,6 +31039,8 @@ $root.ContentfulAccessGroupUpdated = (function() {
|
|
|
31000
31039
|
message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
|
|
31001
31040
|
if (object.slug != null)
|
|
31002
31041
|
message.slug = String(object.slug);
|
|
31042
|
+
if (object.category != null)
|
|
31043
|
+
message.category = String(object.category);
|
|
31003
31044
|
return message;
|
|
31004
31045
|
};
|
|
31005
31046
|
|
|
@@ -31025,6 +31066,7 @@ $root.ContentfulAccessGroupUpdated = (function() {
|
|
|
31025
31066
|
} else
|
|
31026
31067
|
object.updatedAt = options.longs === String ? "0" : 0;
|
|
31027
31068
|
object.slug = "";
|
|
31069
|
+
object.category = "";
|
|
31028
31070
|
}
|
|
31029
31071
|
if (message.accessGroupName != null && message.hasOwnProperty("accessGroupName"))
|
|
31030
31072
|
object.accessGroupName = message.accessGroupName;
|
|
@@ -31037,6 +31079,8 @@ $root.ContentfulAccessGroupUpdated = (function() {
|
|
|
31037
31079
|
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;
|
|
31038
31080
|
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
31039
31081
|
object.slug = message.slug;
|
|
31082
|
+
if (message.category != null && message.hasOwnProperty("category"))
|
|
31083
|
+
object.category = message.category;
|
|
31040
31084
|
return object;
|
|
31041
31085
|
};
|
|
31042
31086
|
|
|
@@ -43346,6 +43390,1038 @@ $root.ContentfulActivityGroupDeleted = (function() {
|
|
|
43346
43390
|
return ContentfulActivityGroupDeleted;
|
|
43347
43391
|
})();
|
|
43348
43392
|
|
|
43393
|
+
$root.ContentfulActivityGroupLevelCreated = (function() {
|
|
43394
|
+
|
|
43395
|
+
/**
|
|
43396
|
+
* Properties of a ContentfulActivityGroupLevelCreated.
|
|
43397
|
+
* @exports IContentfulActivityGroupLevelCreated
|
|
43398
|
+
* @interface IContentfulActivityGroupLevelCreated
|
|
43399
|
+
* @property {string|null} [internalName] ContentfulActivityGroupLevelCreated internalName
|
|
43400
|
+
* @property {string|null} [slug] ContentfulActivityGroupLevelCreated slug
|
|
43401
|
+
* @property {Object.<string,string>|null} [title] ContentfulActivityGroupLevelCreated title
|
|
43402
|
+
* @property {Object.<string,string>|null} [subtitle] ContentfulActivityGroupLevelCreated subtitle
|
|
43403
|
+
* @property {number|null} [ordinalNumber] ContentfulActivityGroupLevelCreated ordinalNumber
|
|
43404
|
+
* @property {number|null} [sessionsInLevel] ContentfulActivityGroupLevelCreated sessionsInLevel
|
|
43405
|
+
* @property {contentful.ISlugReference|null} [activityGroup] ContentfulActivityGroupLevelCreated activityGroup
|
|
43406
|
+
* @property {number|Long|null} [createdAt] ContentfulActivityGroupLevelCreated createdAt
|
|
43407
|
+
*/
|
|
43408
|
+
|
|
43409
|
+
/**
|
|
43410
|
+
* Constructs a new ContentfulActivityGroupLevelCreated.
|
|
43411
|
+
* @exports ContentfulActivityGroupLevelCreated
|
|
43412
|
+
* @classdesc Represents a ContentfulActivityGroupLevelCreated.
|
|
43413
|
+
* @implements IContentfulActivityGroupLevelCreated
|
|
43414
|
+
* @constructor
|
|
43415
|
+
* @param {IContentfulActivityGroupLevelCreated=} [properties] Properties to set
|
|
43416
|
+
*/
|
|
43417
|
+
function ContentfulActivityGroupLevelCreated(properties) {
|
|
43418
|
+
this.title = {};
|
|
43419
|
+
this.subtitle = {};
|
|
43420
|
+
if (properties)
|
|
43421
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
43422
|
+
if (properties[keys[i]] != null)
|
|
43423
|
+
this[keys[i]] = properties[keys[i]];
|
|
43424
|
+
}
|
|
43425
|
+
|
|
43426
|
+
/**
|
|
43427
|
+
* ContentfulActivityGroupLevelCreated internalName.
|
|
43428
|
+
* @member {string} internalName
|
|
43429
|
+
* @memberof ContentfulActivityGroupLevelCreated
|
|
43430
|
+
* @instance
|
|
43431
|
+
*/
|
|
43432
|
+
ContentfulActivityGroupLevelCreated.prototype.internalName = "";
|
|
43433
|
+
|
|
43434
|
+
/**
|
|
43435
|
+
* ContentfulActivityGroupLevelCreated slug.
|
|
43436
|
+
* @member {string} slug
|
|
43437
|
+
* @memberof ContentfulActivityGroupLevelCreated
|
|
43438
|
+
* @instance
|
|
43439
|
+
*/
|
|
43440
|
+
ContentfulActivityGroupLevelCreated.prototype.slug = "";
|
|
43441
|
+
|
|
43442
|
+
/**
|
|
43443
|
+
* ContentfulActivityGroupLevelCreated title.
|
|
43444
|
+
* @member {Object.<string,string>} title
|
|
43445
|
+
* @memberof ContentfulActivityGroupLevelCreated
|
|
43446
|
+
* @instance
|
|
43447
|
+
*/
|
|
43448
|
+
ContentfulActivityGroupLevelCreated.prototype.title = $util.emptyObject;
|
|
43449
|
+
|
|
43450
|
+
/**
|
|
43451
|
+
* ContentfulActivityGroupLevelCreated subtitle.
|
|
43452
|
+
* @member {Object.<string,string>} subtitle
|
|
43453
|
+
* @memberof ContentfulActivityGroupLevelCreated
|
|
43454
|
+
* @instance
|
|
43455
|
+
*/
|
|
43456
|
+
ContentfulActivityGroupLevelCreated.prototype.subtitle = $util.emptyObject;
|
|
43457
|
+
|
|
43458
|
+
/**
|
|
43459
|
+
* ContentfulActivityGroupLevelCreated ordinalNumber.
|
|
43460
|
+
* @member {number} ordinalNumber
|
|
43461
|
+
* @memberof ContentfulActivityGroupLevelCreated
|
|
43462
|
+
* @instance
|
|
43463
|
+
*/
|
|
43464
|
+
ContentfulActivityGroupLevelCreated.prototype.ordinalNumber = 0;
|
|
43465
|
+
|
|
43466
|
+
/**
|
|
43467
|
+
* ContentfulActivityGroupLevelCreated sessionsInLevel.
|
|
43468
|
+
* @member {number} sessionsInLevel
|
|
43469
|
+
* @memberof ContentfulActivityGroupLevelCreated
|
|
43470
|
+
* @instance
|
|
43471
|
+
*/
|
|
43472
|
+
ContentfulActivityGroupLevelCreated.prototype.sessionsInLevel = 0;
|
|
43473
|
+
|
|
43474
|
+
/**
|
|
43475
|
+
* ContentfulActivityGroupLevelCreated activityGroup.
|
|
43476
|
+
* @member {contentful.ISlugReference|null|undefined} activityGroup
|
|
43477
|
+
* @memberof ContentfulActivityGroupLevelCreated
|
|
43478
|
+
* @instance
|
|
43479
|
+
*/
|
|
43480
|
+
ContentfulActivityGroupLevelCreated.prototype.activityGroup = null;
|
|
43481
|
+
|
|
43482
|
+
/**
|
|
43483
|
+
* ContentfulActivityGroupLevelCreated createdAt.
|
|
43484
|
+
* @member {number|Long} createdAt
|
|
43485
|
+
* @memberof ContentfulActivityGroupLevelCreated
|
|
43486
|
+
* @instance
|
|
43487
|
+
*/
|
|
43488
|
+
ContentfulActivityGroupLevelCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
43489
|
+
|
|
43490
|
+
/**
|
|
43491
|
+
* Creates a new ContentfulActivityGroupLevelCreated instance using the specified properties.
|
|
43492
|
+
* @function create
|
|
43493
|
+
* @memberof ContentfulActivityGroupLevelCreated
|
|
43494
|
+
* @static
|
|
43495
|
+
* @param {IContentfulActivityGroupLevelCreated=} [properties] Properties to set
|
|
43496
|
+
* @returns {ContentfulActivityGroupLevelCreated} ContentfulActivityGroupLevelCreated instance
|
|
43497
|
+
*/
|
|
43498
|
+
ContentfulActivityGroupLevelCreated.create = function create(properties) {
|
|
43499
|
+
return new ContentfulActivityGroupLevelCreated(properties);
|
|
43500
|
+
};
|
|
43501
|
+
|
|
43502
|
+
/**
|
|
43503
|
+
* Encodes the specified ContentfulActivityGroupLevelCreated message. Does not implicitly {@link ContentfulActivityGroupLevelCreated.verify|verify} messages.
|
|
43504
|
+
* @function encode
|
|
43505
|
+
* @memberof ContentfulActivityGroupLevelCreated
|
|
43506
|
+
* @static
|
|
43507
|
+
* @param {IContentfulActivityGroupLevelCreated} message ContentfulActivityGroupLevelCreated message or plain object to encode
|
|
43508
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
43509
|
+
* @returns {$protobuf.Writer} Writer
|
|
43510
|
+
*/
|
|
43511
|
+
ContentfulActivityGroupLevelCreated.encode = function encode(message, writer) {
|
|
43512
|
+
if (!writer)
|
|
43513
|
+
writer = $Writer.create();
|
|
43514
|
+
if (message.internalName != null && message.hasOwnProperty("internalName"))
|
|
43515
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.internalName);
|
|
43516
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
43517
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.slug);
|
|
43518
|
+
if (message.title != null && message.hasOwnProperty("title"))
|
|
43519
|
+
for (var keys = Object.keys(message.title), i = 0; i < keys.length; ++i)
|
|
43520
|
+
writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.title[keys[i]]).ldelim();
|
|
43521
|
+
if (message.subtitle != null && message.hasOwnProperty("subtitle"))
|
|
43522
|
+
for (var keys = Object.keys(message.subtitle), i = 0; i < keys.length; ++i)
|
|
43523
|
+
writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.subtitle[keys[i]]).ldelim();
|
|
43524
|
+
if (message.ordinalNumber != null && message.hasOwnProperty("ordinalNumber"))
|
|
43525
|
+
writer.uint32(/* id 5, wireType 0 =*/40).uint32(message.ordinalNumber);
|
|
43526
|
+
if (message.sessionsInLevel != null && message.hasOwnProperty("sessionsInLevel"))
|
|
43527
|
+
writer.uint32(/* id 6, wireType 0 =*/48).uint32(message.sessionsInLevel);
|
|
43528
|
+
if (message.activityGroup != null && message.hasOwnProperty("activityGroup"))
|
|
43529
|
+
$root.contentful.SlugReference.encode(message.activityGroup, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
|
43530
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
43531
|
+
writer.uint32(/* id 8, wireType 0 =*/64).uint64(message.createdAt);
|
|
43532
|
+
return writer;
|
|
43533
|
+
};
|
|
43534
|
+
|
|
43535
|
+
/**
|
|
43536
|
+
* Encodes the specified ContentfulActivityGroupLevelCreated message, length delimited. Does not implicitly {@link ContentfulActivityGroupLevelCreated.verify|verify} messages.
|
|
43537
|
+
* @function encodeDelimited
|
|
43538
|
+
* @memberof ContentfulActivityGroupLevelCreated
|
|
43539
|
+
* @static
|
|
43540
|
+
* @param {IContentfulActivityGroupLevelCreated} message ContentfulActivityGroupLevelCreated message or plain object to encode
|
|
43541
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
43542
|
+
* @returns {$protobuf.Writer} Writer
|
|
43543
|
+
*/
|
|
43544
|
+
ContentfulActivityGroupLevelCreated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
43545
|
+
return this.encode(message, writer).ldelim();
|
|
43546
|
+
};
|
|
43547
|
+
|
|
43548
|
+
/**
|
|
43549
|
+
* Decodes a ContentfulActivityGroupLevelCreated message from the specified reader or buffer.
|
|
43550
|
+
* @function decode
|
|
43551
|
+
* @memberof ContentfulActivityGroupLevelCreated
|
|
43552
|
+
* @static
|
|
43553
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
43554
|
+
* @param {number} [length] Message length if known beforehand
|
|
43555
|
+
* @returns {ContentfulActivityGroupLevelCreated} ContentfulActivityGroupLevelCreated
|
|
43556
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
43557
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
43558
|
+
*/
|
|
43559
|
+
ContentfulActivityGroupLevelCreated.decode = function decode(reader, length) {
|
|
43560
|
+
if (!(reader instanceof $Reader))
|
|
43561
|
+
reader = $Reader.create(reader);
|
|
43562
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulActivityGroupLevelCreated(), key;
|
|
43563
|
+
while (reader.pos < end) {
|
|
43564
|
+
var tag = reader.uint32();
|
|
43565
|
+
switch (tag >>> 3) {
|
|
43566
|
+
case 1:
|
|
43567
|
+
message.internalName = reader.string();
|
|
43568
|
+
break;
|
|
43569
|
+
case 2:
|
|
43570
|
+
message.slug = reader.string();
|
|
43571
|
+
break;
|
|
43572
|
+
case 3:
|
|
43573
|
+
reader.skip().pos++;
|
|
43574
|
+
if (message.title === $util.emptyObject)
|
|
43575
|
+
message.title = {};
|
|
43576
|
+
key = reader.string();
|
|
43577
|
+
reader.pos++;
|
|
43578
|
+
message.title[key] = reader.string();
|
|
43579
|
+
break;
|
|
43580
|
+
case 4:
|
|
43581
|
+
reader.skip().pos++;
|
|
43582
|
+
if (message.subtitle === $util.emptyObject)
|
|
43583
|
+
message.subtitle = {};
|
|
43584
|
+
key = reader.string();
|
|
43585
|
+
reader.pos++;
|
|
43586
|
+
message.subtitle[key] = reader.string();
|
|
43587
|
+
break;
|
|
43588
|
+
case 5:
|
|
43589
|
+
message.ordinalNumber = reader.uint32();
|
|
43590
|
+
break;
|
|
43591
|
+
case 6:
|
|
43592
|
+
message.sessionsInLevel = reader.uint32();
|
|
43593
|
+
break;
|
|
43594
|
+
case 7:
|
|
43595
|
+
message.activityGroup = $root.contentful.SlugReference.decode(reader, reader.uint32());
|
|
43596
|
+
break;
|
|
43597
|
+
case 8:
|
|
43598
|
+
message.createdAt = reader.uint64();
|
|
43599
|
+
break;
|
|
43600
|
+
default:
|
|
43601
|
+
reader.skipType(tag & 7);
|
|
43602
|
+
break;
|
|
43603
|
+
}
|
|
43604
|
+
}
|
|
43605
|
+
return message;
|
|
43606
|
+
};
|
|
43607
|
+
|
|
43608
|
+
/**
|
|
43609
|
+
* Decodes a ContentfulActivityGroupLevelCreated message from the specified reader or buffer, length delimited.
|
|
43610
|
+
* @function decodeDelimited
|
|
43611
|
+
* @memberof ContentfulActivityGroupLevelCreated
|
|
43612
|
+
* @static
|
|
43613
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
43614
|
+
* @returns {ContentfulActivityGroupLevelCreated} ContentfulActivityGroupLevelCreated
|
|
43615
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
43616
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
43617
|
+
*/
|
|
43618
|
+
ContentfulActivityGroupLevelCreated.decodeDelimited = function decodeDelimited(reader) {
|
|
43619
|
+
if (!(reader instanceof $Reader))
|
|
43620
|
+
reader = new $Reader(reader);
|
|
43621
|
+
return this.decode(reader, reader.uint32());
|
|
43622
|
+
};
|
|
43623
|
+
|
|
43624
|
+
/**
|
|
43625
|
+
* Verifies a ContentfulActivityGroupLevelCreated message.
|
|
43626
|
+
* @function verify
|
|
43627
|
+
* @memberof ContentfulActivityGroupLevelCreated
|
|
43628
|
+
* @static
|
|
43629
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
43630
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
43631
|
+
*/
|
|
43632
|
+
ContentfulActivityGroupLevelCreated.verify = function verify(message) {
|
|
43633
|
+
if (typeof message !== "object" || message === null)
|
|
43634
|
+
return "object expected";
|
|
43635
|
+
if (message.internalName != null && message.hasOwnProperty("internalName"))
|
|
43636
|
+
if (!$util.isString(message.internalName))
|
|
43637
|
+
return "internalName: string expected";
|
|
43638
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
43639
|
+
if (!$util.isString(message.slug))
|
|
43640
|
+
return "slug: string expected";
|
|
43641
|
+
if (message.title != null && message.hasOwnProperty("title")) {
|
|
43642
|
+
if (!$util.isObject(message.title))
|
|
43643
|
+
return "title: object expected";
|
|
43644
|
+
var key = Object.keys(message.title);
|
|
43645
|
+
for (var i = 0; i < key.length; ++i)
|
|
43646
|
+
if (!$util.isString(message.title[key[i]]))
|
|
43647
|
+
return "title: string{k:string} expected";
|
|
43648
|
+
}
|
|
43649
|
+
if (message.subtitle != null && message.hasOwnProperty("subtitle")) {
|
|
43650
|
+
if (!$util.isObject(message.subtitle))
|
|
43651
|
+
return "subtitle: object expected";
|
|
43652
|
+
var key = Object.keys(message.subtitle);
|
|
43653
|
+
for (var i = 0; i < key.length; ++i)
|
|
43654
|
+
if (!$util.isString(message.subtitle[key[i]]))
|
|
43655
|
+
return "subtitle: string{k:string} expected";
|
|
43656
|
+
}
|
|
43657
|
+
if (message.ordinalNumber != null && message.hasOwnProperty("ordinalNumber"))
|
|
43658
|
+
if (!$util.isInteger(message.ordinalNumber))
|
|
43659
|
+
return "ordinalNumber: integer expected";
|
|
43660
|
+
if (message.sessionsInLevel != null && message.hasOwnProperty("sessionsInLevel"))
|
|
43661
|
+
if (!$util.isInteger(message.sessionsInLevel))
|
|
43662
|
+
return "sessionsInLevel: integer expected";
|
|
43663
|
+
if (message.activityGroup != null && message.hasOwnProperty("activityGroup")) {
|
|
43664
|
+
var error = $root.contentful.SlugReference.verify(message.activityGroup);
|
|
43665
|
+
if (error)
|
|
43666
|
+
return "activityGroup." + error;
|
|
43667
|
+
}
|
|
43668
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
43669
|
+
if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
|
|
43670
|
+
return "createdAt: integer|Long expected";
|
|
43671
|
+
return null;
|
|
43672
|
+
};
|
|
43673
|
+
|
|
43674
|
+
/**
|
|
43675
|
+
* Creates a ContentfulActivityGroupLevelCreated message from a plain object. Also converts values to their respective internal types.
|
|
43676
|
+
* @function fromObject
|
|
43677
|
+
* @memberof ContentfulActivityGroupLevelCreated
|
|
43678
|
+
* @static
|
|
43679
|
+
* @param {Object.<string,*>} object Plain object
|
|
43680
|
+
* @returns {ContentfulActivityGroupLevelCreated} ContentfulActivityGroupLevelCreated
|
|
43681
|
+
*/
|
|
43682
|
+
ContentfulActivityGroupLevelCreated.fromObject = function fromObject(object) {
|
|
43683
|
+
if (object instanceof $root.ContentfulActivityGroupLevelCreated)
|
|
43684
|
+
return object;
|
|
43685
|
+
var message = new $root.ContentfulActivityGroupLevelCreated();
|
|
43686
|
+
if (object.internalName != null)
|
|
43687
|
+
message.internalName = String(object.internalName);
|
|
43688
|
+
if (object.slug != null)
|
|
43689
|
+
message.slug = String(object.slug);
|
|
43690
|
+
if (object.title) {
|
|
43691
|
+
if (typeof object.title !== "object")
|
|
43692
|
+
throw TypeError(".ContentfulActivityGroupLevelCreated.title: object expected");
|
|
43693
|
+
message.title = {};
|
|
43694
|
+
for (var keys = Object.keys(object.title), i = 0; i < keys.length; ++i)
|
|
43695
|
+
message.title[keys[i]] = String(object.title[keys[i]]);
|
|
43696
|
+
}
|
|
43697
|
+
if (object.subtitle) {
|
|
43698
|
+
if (typeof object.subtitle !== "object")
|
|
43699
|
+
throw TypeError(".ContentfulActivityGroupLevelCreated.subtitle: object expected");
|
|
43700
|
+
message.subtitle = {};
|
|
43701
|
+
for (var keys = Object.keys(object.subtitle), i = 0; i < keys.length; ++i)
|
|
43702
|
+
message.subtitle[keys[i]] = String(object.subtitle[keys[i]]);
|
|
43703
|
+
}
|
|
43704
|
+
if (object.ordinalNumber != null)
|
|
43705
|
+
message.ordinalNumber = object.ordinalNumber >>> 0;
|
|
43706
|
+
if (object.sessionsInLevel != null)
|
|
43707
|
+
message.sessionsInLevel = object.sessionsInLevel >>> 0;
|
|
43708
|
+
if (object.activityGroup != null) {
|
|
43709
|
+
if (typeof object.activityGroup !== "object")
|
|
43710
|
+
throw TypeError(".ContentfulActivityGroupLevelCreated.activityGroup: object expected");
|
|
43711
|
+
message.activityGroup = $root.contentful.SlugReference.fromObject(object.activityGroup);
|
|
43712
|
+
}
|
|
43713
|
+
if (object.createdAt != null)
|
|
43714
|
+
if ($util.Long)
|
|
43715
|
+
(message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
|
|
43716
|
+
else if (typeof object.createdAt === "string")
|
|
43717
|
+
message.createdAt = parseInt(object.createdAt, 10);
|
|
43718
|
+
else if (typeof object.createdAt === "number")
|
|
43719
|
+
message.createdAt = object.createdAt;
|
|
43720
|
+
else if (typeof object.createdAt === "object")
|
|
43721
|
+
message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
|
|
43722
|
+
return message;
|
|
43723
|
+
};
|
|
43724
|
+
|
|
43725
|
+
/**
|
|
43726
|
+
* Creates a plain object from a ContentfulActivityGroupLevelCreated message. Also converts values to other types if specified.
|
|
43727
|
+
* @function toObject
|
|
43728
|
+
* @memberof ContentfulActivityGroupLevelCreated
|
|
43729
|
+
* @static
|
|
43730
|
+
* @param {ContentfulActivityGroupLevelCreated} message ContentfulActivityGroupLevelCreated
|
|
43731
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
43732
|
+
* @returns {Object.<string,*>} Plain object
|
|
43733
|
+
*/
|
|
43734
|
+
ContentfulActivityGroupLevelCreated.toObject = function toObject(message, options) {
|
|
43735
|
+
if (!options)
|
|
43736
|
+
options = {};
|
|
43737
|
+
var object = {};
|
|
43738
|
+
if (options.objects || options.defaults) {
|
|
43739
|
+
object.title = {};
|
|
43740
|
+
object.subtitle = {};
|
|
43741
|
+
}
|
|
43742
|
+
if (options.defaults) {
|
|
43743
|
+
object.internalName = "";
|
|
43744
|
+
object.slug = "";
|
|
43745
|
+
object.ordinalNumber = 0;
|
|
43746
|
+
object.sessionsInLevel = 0;
|
|
43747
|
+
object.activityGroup = null;
|
|
43748
|
+
if ($util.Long) {
|
|
43749
|
+
var long = new $util.Long(0, 0, true);
|
|
43750
|
+
object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
43751
|
+
} else
|
|
43752
|
+
object.createdAt = options.longs === String ? "0" : 0;
|
|
43753
|
+
}
|
|
43754
|
+
if (message.internalName != null && message.hasOwnProperty("internalName"))
|
|
43755
|
+
object.internalName = message.internalName;
|
|
43756
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
43757
|
+
object.slug = message.slug;
|
|
43758
|
+
var keys2;
|
|
43759
|
+
if (message.title && (keys2 = Object.keys(message.title)).length) {
|
|
43760
|
+
object.title = {};
|
|
43761
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
43762
|
+
object.title[keys2[j]] = message.title[keys2[j]];
|
|
43763
|
+
}
|
|
43764
|
+
if (message.subtitle && (keys2 = Object.keys(message.subtitle)).length) {
|
|
43765
|
+
object.subtitle = {};
|
|
43766
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
43767
|
+
object.subtitle[keys2[j]] = message.subtitle[keys2[j]];
|
|
43768
|
+
}
|
|
43769
|
+
if (message.ordinalNumber != null && message.hasOwnProperty("ordinalNumber"))
|
|
43770
|
+
object.ordinalNumber = message.ordinalNumber;
|
|
43771
|
+
if (message.sessionsInLevel != null && message.hasOwnProperty("sessionsInLevel"))
|
|
43772
|
+
object.sessionsInLevel = message.sessionsInLevel;
|
|
43773
|
+
if (message.activityGroup != null && message.hasOwnProperty("activityGroup"))
|
|
43774
|
+
object.activityGroup = $root.contentful.SlugReference.toObject(message.activityGroup, options);
|
|
43775
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
43776
|
+
if (typeof message.createdAt === "number")
|
|
43777
|
+
object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
|
|
43778
|
+
else
|
|
43779
|
+
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;
|
|
43780
|
+
return object;
|
|
43781
|
+
};
|
|
43782
|
+
|
|
43783
|
+
/**
|
|
43784
|
+
* Converts this ContentfulActivityGroupLevelCreated to JSON.
|
|
43785
|
+
* @function toJSON
|
|
43786
|
+
* @memberof ContentfulActivityGroupLevelCreated
|
|
43787
|
+
* @instance
|
|
43788
|
+
* @returns {Object.<string,*>} JSON object
|
|
43789
|
+
*/
|
|
43790
|
+
ContentfulActivityGroupLevelCreated.prototype.toJSON = function toJSON() {
|
|
43791
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
43792
|
+
};
|
|
43793
|
+
|
|
43794
|
+
return ContentfulActivityGroupLevelCreated;
|
|
43795
|
+
})();
|
|
43796
|
+
|
|
43797
|
+
$root.ContentfulActivityGroupLevelUpdated = (function() {
|
|
43798
|
+
|
|
43799
|
+
/**
|
|
43800
|
+
* Properties of a ContentfulActivityGroupLevelUpdated.
|
|
43801
|
+
* @exports IContentfulActivityGroupLevelUpdated
|
|
43802
|
+
* @interface IContentfulActivityGroupLevelUpdated
|
|
43803
|
+
* @property {string|null} [internalName] ContentfulActivityGroupLevelUpdated internalName
|
|
43804
|
+
* @property {string|null} [slug] ContentfulActivityGroupLevelUpdated slug
|
|
43805
|
+
* @property {Object.<string,string>|null} [title] ContentfulActivityGroupLevelUpdated title
|
|
43806
|
+
* @property {Object.<string,string>|null} [subtitle] ContentfulActivityGroupLevelUpdated subtitle
|
|
43807
|
+
* @property {number|null} [ordinalNumber] ContentfulActivityGroupLevelUpdated ordinalNumber
|
|
43808
|
+
* @property {number|null} [sessionsInLevel] ContentfulActivityGroupLevelUpdated sessionsInLevel
|
|
43809
|
+
* @property {contentful.ISlugReference|null} [activityGroup] ContentfulActivityGroupLevelUpdated activityGroup
|
|
43810
|
+
* @property {number|Long|null} [updatedAt] ContentfulActivityGroupLevelUpdated updatedAt
|
|
43811
|
+
*/
|
|
43812
|
+
|
|
43813
|
+
/**
|
|
43814
|
+
* Constructs a new ContentfulActivityGroupLevelUpdated.
|
|
43815
|
+
* @exports ContentfulActivityGroupLevelUpdated
|
|
43816
|
+
* @classdesc Represents a ContentfulActivityGroupLevelUpdated.
|
|
43817
|
+
* @implements IContentfulActivityGroupLevelUpdated
|
|
43818
|
+
* @constructor
|
|
43819
|
+
* @param {IContentfulActivityGroupLevelUpdated=} [properties] Properties to set
|
|
43820
|
+
*/
|
|
43821
|
+
function ContentfulActivityGroupLevelUpdated(properties) {
|
|
43822
|
+
this.title = {};
|
|
43823
|
+
this.subtitle = {};
|
|
43824
|
+
if (properties)
|
|
43825
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
43826
|
+
if (properties[keys[i]] != null)
|
|
43827
|
+
this[keys[i]] = properties[keys[i]];
|
|
43828
|
+
}
|
|
43829
|
+
|
|
43830
|
+
/**
|
|
43831
|
+
* ContentfulActivityGroupLevelUpdated internalName.
|
|
43832
|
+
* @member {string} internalName
|
|
43833
|
+
* @memberof ContentfulActivityGroupLevelUpdated
|
|
43834
|
+
* @instance
|
|
43835
|
+
*/
|
|
43836
|
+
ContentfulActivityGroupLevelUpdated.prototype.internalName = "";
|
|
43837
|
+
|
|
43838
|
+
/**
|
|
43839
|
+
* ContentfulActivityGroupLevelUpdated slug.
|
|
43840
|
+
* @member {string} slug
|
|
43841
|
+
* @memberof ContentfulActivityGroupLevelUpdated
|
|
43842
|
+
* @instance
|
|
43843
|
+
*/
|
|
43844
|
+
ContentfulActivityGroupLevelUpdated.prototype.slug = "";
|
|
43845
|
+
|
|
43846
|
+
/**
|
|
43847
|
+
* ContentfulActivityGroupLevelUpdated title.
|
|
43848
|
+
* @member {Object.<string,string>} title
|
|
43849
|
+
* @memberof ContentfulActivityGroupLevelUpdated
|
|
43850
|
+
* @instance
|
|
43851
|
+
*/
|
|
43852
|
+
ContentfulActivityGroupLevelUpdated.prototype.title = $util.emptyObject;
|
|
43853
|
+
|
|
43854
|
+
/**
|
|
43855
|
+
* ContentfulActivityGroupLevelUpdated subtitle.
|
|
43856
|
+
* @member {Object.<string,string>} subtitle
|
|
43857
|
+
* @memberof ContentfulActivityGroupLevelUpdated
|
|
43858
|
+
* @instance
|
|
43859
|
+
*/
|
|
43860
|
+
ContentfulActivityGroupLevelUpdated.prototype.subtitle = $util.emptyObject;
|
|
43861
|
+
|
|
43862
|
+
/**
|
|
43863
|
+
* ContentfulActivityGroupLevelUpdated ordinalNumber.
|
|
43864
|
+
* @member {number} ordinalNumber
|
|
43865
|
+
* @memberof ContentfulActivityGroupLevelUpdated
|
|
43866
|
+
* @instance
|
|
43867
|
+
*/
|
|
43868
|
+
ContentfulActivityGroupLevelUpdated.prototype.ordinalNumber = 0;
|
|
43869
|
+
|
|
43870
|
+
/**
|
|
43871
|
+
* ContentfulActivityGroupLevelUpdated sessionsInLevel.
|
|
43872
|
+
* @member {number} sessionsInLevel
|
|
43873
|
+
* @memberof ContentfulActivityGroupLevelUpdated
|
|
43874
|
+
* @instance
|
|
43875
|
+
*/
|
|
43876
|
+
ContentfulActivityGroupLevelUpdated.prototype.sessionsInLevel = 0;
|
|
43877
|
+
|
|
43878
|
+
/**
|
|
43879
|
+
* ContentfulActivityGroupLevelUpdated activityGroup.
|
|
43880
|
+
* @member {contentful.ISlugReference|null|undefined} activityGroup
|
|
43881
|
+
* @memberof ContentfulActivityGroupLevelUpdated
|
|
43882
|
+
* @instance
|
|
43883
|
+
*/
|
|
43884
|
+
ContentfulActivityGroupLevelUpdated.prototype.activityGroup = null;
|
|
43885
|
+
|
|
43886
|
+
/**
|
|
43887
|
+
* ContentfulActivityGroupLevelUpdated updatedAt.
|
|
43888
|
+
* @member {number|Long} updatedAt
|
|
43889
|
+
* @memberof ContentfulActivityGroupLevelUpdated
|
|
43890
|
+
* @instance
|
|
43891
|
+
*/
|
|
43892
|
+
ContentfulActivityGroupLevelUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
43893
|
+
|
|
43894
|
+
/**
|
|
43895
|
+
* Creates a new ContentfulActivityGroupLevelUpdated instance using the specified properties.
|
|
43896
|
+
* @function create
|
|
43897
|
+
* @memberof ContentfulActivityGroupLevelUpdated
|
|
43898
|
+
* @static
|
|
43899
|
+
* @param {IContentfulActivityGroupLevelUpdated=} [properties] Properties to set
|
|
43900
|
+
* @returns {ContentfulActivityGroupLevelUpdated} ContentfulActivityGroupLevelUpdated instance
|
|
43901
|
+
*/
|
|
43902
|
+
ContentfulActivityGroupLevelUpdated.create = function create(properties) {
|
|
43903
|
+
return new ContentfulActivityGroupLevelUpdated(properties);
|
|
43904
|
+
};
|
|
43905
|
+
|
|
43906
|
+
/**
|
|
43907
|
+
* Encodes the specified ContentfulActivityGroupLevelUpdated message. Does not implicitly {@link ContentfulActivityGroupLevelUpdated.verify|verify} messages.
|
|
43908
|
+
* @function encode
|
|
43909
|
+
* @memberof ContentfulActivityGroupLevelUpdated
|
|
43910
|
+
* @static
|
|
43911
|
+
* @param {IContentfulActivityGroupLevelUpdated} message ContentfulActivityGroupLevelUpdated message or plain object to encode
|
|
43912
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
43913
|
+
* @returns {$protobuf.Writer} Writer
|
|
43914
|
+
*/
|
|
43915
|
+
ContentfulActivityGroupLevelUpdated.encode = function encode(message, writer) {
|
|
43916
|
+
if (!writer)
|
|
43917
|
+
writer = $Writer.create();
|
|
43918
|
+
if (message.internalName != null && message.hasOwnProperty("internalName"))
|
|
43919
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.internalName);
|
|
43920
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
43921
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.slug);
|
|
43922
|
+
if (message.title != null && message.hasOwnProperty("title"))
|
|
43923
|
+
for (var keys = Object.keys(message.title), i = 0; i < keys.length; ++i)
|
|
43924
|
+
writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.title[keys[i]]).ldelim();
|
|
43925
|
+
if (message.subtitle != null && message.hasOwnProperty("subtitle"))
|
|
43926
|
+
for (var keys = Object.keys(message.subtitle), i = 0; i < keys.length; ++i)
|
|
43927
|
+
writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.subtitle[keys[i]]).ldelim();
|
|
43928
|
+
if (message.ordinalNumber != null && message.hasOwnProperty("ordinalNumber"))
|
|
43929
|
+
writer.uint32(/* id 5, wireType 0 =*/40).uint32(message.ordinalNumber);
|
|
43930
|
+
if (message.sessionsInLevel != null && message.hasOwnProperty("sessionsInLevel"))
|
|
43931
|
+
writer.uint32(/* id 6, wireType 0 =*/48).uint32(message.sessionsInLevel);
|
|
43932
|
+
if (message.activityGroup != null && message.hasOwnProperty("activityGroup"))
|
|
43933
|
+
$root.contentful.SlugReference.encode(message.activityGroup, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
|
43934
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
43935
|
+
writer.uint32(/* id 8, wireType 0 =*/64).uint64(message.updatedAt);
|
|
43936
|
+
return writer;
|
|
43937
|
+
};
|
|
43938
|
+
|
|
43939
|
+
/**
|
|
43940
|
+
* Encodes the specified ContentfulActivityGroupLevelUpdated message, length delimited. Does not implicitly {@link ContentfulActivityGroupLevelUpdated.verify|verify} messages.
|
|
43941
|
+
* @function encodeDelimited
|
|
43942
|
+
* @memberof ContentfulActivityGroupLevelUpdated
|
|
43943
|
+
* @static
|
|
43944
|
+
* @param {IContentfulActivityGroupLevelUpdated} message ContentfulActivityGroupLevelUpdated message or plain object to encode
|
|
43945
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
43946
|
+
* @returns {$protobuf.Writer} Writer
|
|
43947
|
+
*/
|
|
43948
|
+
ContentfulActivityGroupLevelUpdated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
43949
|
+
return this.encode(message, writer).ldelim();
|
|
43950
|
+
};
|
|
43951
|
+
|
|
43952
|
+
/**
|
|
43953
|
+
* Decodes a ContentfulActivityGroupLevelUpdated message from the specified reader or buffer.
|
|
43954
|
+
* @function decode
|
|
43955
|
+
* @memberof ContentfulActivityGroupLevelUpdated
|
|
43956
|
+
* @static
|
|
43957
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
43958
|
+
* @param {number} [length] Message length if known beforehand
|
|
43959
|
+
* @returns {ContentfulActivityGroupLevelUpdated} ContentfulActivityGroupLevelUpdated
|
|
43960
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
43961
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
43962
|
+
*/
|
|
43963
|
+
ContentfulActivityGroupLevelUpdated.decode = function decode(reader, length) {
|
|
43964
|
+
if (!(reader instanceof $Reader))
|
|
43965
|
+
reader = $Reader.create(reader);
|
|
43966
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulActivityGroupLevelUpdated(), key;
|
|
43967
|
+
while (reader.pos < end) {
|
|
43968
|
+
var tag = reader.uint32();
|
|
43969
|
+
switch (tag >>> 3) {
|
|
43970
|
+
case 1:
|
|
43971
|
+
message.internalName = reader.string();
|
|
43972
|
+
break;
|
|
43973
|
+
case 2:
|
|
43974
|
+
message.slug = reader.string();
|
|
43975
|
+
break;
|
|
43976
|
+
case 3:
|
|
43977
|
+
reader.skip().pos++;
|
|
43978
|
+
if (message.title === $util.emptyObject)
|
|
43979
|
+
message.title = {};
|
|
43980
|
+
key = reader.string();
|
|
43981
|
+
reader.pos++;
|
|
43982
|
+
message.title[key] = reader.string();
|
|
43983
|
+
break;
|
|
43984
|
+
case 4:
|
|
43985
|
+
reader.skip().pos++;
|
|
43986
|
+
if (message.subtitle === $util.emptyObject)
|
|
43987
|
+
message.subtitle = {};
|
|
43988
|
+
key = reader.string();
|
|
43989
|
+
reader.pos++;
|
|
43990
|
+
message.subtitle[key] = reader.string();
|
|
43991
|
+
break;
|
|
43992
|
+
case 5:
|
|
43993
|
+
message.ordinalNumber = reader.uint32();
|
|
43994
|
+
break;
|
|
43995
|
+
case 6:
|
|
43996
|
+
message.sessionsInLevel = reader.uint32();
|
|
43997
|
+
break;
|
|
43998
|
+
case 7:
|
|
43999
|
+
message.activityGroup = $root.contentful.SlugReference.decode(reader, reader.uint32());
|
|
44000
|
+
break;
|
|
44001
|
+
case 8:
|
|
44002
|
+
message.updatedAt = reader.uint64();
|
|
44003
|
+
break;
|
|
44004
|
+
default:
|
|
44005
|
+
reader.skipType(tag & 7);
|
|
44006
|
+
break;
|
|
44007
|
+
}
|
|
44008
|
+
}
|
|
44009
|
+
return message;
|
|
44010
|
+
};
|
|
44011
|
+
|
|
44012
|
+
/**
|
|
44013
|
+
* Decodes a ContentfulActivityGroupLevelUpdated message from the specified reader or buffer, length delimited.
|
|
44014
|
+
* @function decodeDelimited
|
|
44015
|
+
* @memberof ContentfulActivityGroupLevelUpdated
|
|
44016
|
+
* @static
|
|
44017
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
44018
|
+
* @returns {ContentfulActivityGroupLevelUpdated} ContentfulActivityGroupLevelUpdated
|
|
44019
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
44020
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
44021
|
+
*/
|
|
44022
|
+
ContentfulActivityGroupLevelUpdated.decodeDelimited = function decodeDelimited(reader) {
|
|
44023
|
+
if (!(reader instanceof $Reader))
|
|
44024
|
+
reader = new $Reader(reader);
|
|
44025
|
+
return this.decode(reader, reader.uint32());
|
|
44026
|
+
};
|
|
44027
|
+
|
|
44028
|
+
/**
|
|
44029
|
+
* Verifies a ContentfulActivityGroupLevelUpdated message.
|
|
44030
|
+
* @function verify
|
|
44031
|
+
* @memberof ContentfulActivityGroupLevelUpdated
|
|
44032
|
+
* @static
|
|
44033
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
44034
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
44035
|
+
*/
|
|
44036
|
+
ContentfulActivityGroupLevelUpdated.verify = function verify(message) {
|
|
44037
|
+
if (typeof message !== "object" || message === null)
|
|
44038
|
+
return "object expected";
|
|
44039
|
+
if (message.internalName != null && message.hasOwnProperty("internalName"))
|
|
44040
|
+
if (!$util.isString(message.internalName))
|
|
44041
|
+
return "internalName: string expected";
|
|
44042
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
44043
|
+
if (!$util.isString(message.slug))
|
|
44044
|
+
return "slug: string expected";
|
|
44045
|
+
if (message.title != null && message.hasOwnProperty("title")) {
|
|
44046
|
+
if (!$util.isObject(message.title))
|
|
44047
|
+
return "title: object expected";
|
|
44048
|
+
var key = Object.keys(message.title);
|
|
44049
|
+
for (var i = 0; i < key.length; ++i)
|
|
44050
|
+
if (!$util.isString(message.title[key[i]]))
|
|
44051
|
+
return "title: string{k:string} expected";
|
|
44052
|
+
}
|
|
44053
|
+
if (message.subtitle != null && message.hasOwnProperty("subtitle")) {
|
|
44054
|
+
if (!$util.isObject(message.subtitle))
|
|
44055
|
+
return "subtitle: object expected";
|
|
44056
|
+
var key = Object.keys(message.subtitle);
|
|
44057
|
+
for (var i = 0; i < key.length; ++i)
|
|
44058
|
+
if (!$util.isString(message.subtitle[key[i]]))
|
|
44059
|
+
return "subtitle: string{k:string} expected";
|
|
44060
|
+
}
|
|
44061
|
+
if (message.ordinalNumber != null && message.hasOwnProperty("ordinalNumber"))
|
|
44062
|
+
if (!$util.isInteger(message.ordinalNumber))
|
|
44063
|
+
return "ordinalNumber: integer expected";
|
|
44064
|
+
if (message.sessionsInLevel != null && message.hasOwnProperty("sessionsInLevel"))
|
|
44065
|
+
if (!$util.isInteger(message.sessionsInLevel))
|
|
44066
|
+
return "sessionsInLevel: integer expected";
|
|
44067
|
+
if (message.activityGroup != null && message.hasOwnProperty("activityGroup")) {
|
|
44068
|
+
var error = $root.contentful.SlugReference.verify(message.activityGroup);
|
|
44069
|
+
if (error)
|
|
44070
|
+
return "activityGroup." + error;
|
|
44071
|
+
}
|
|
44072
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
44073
|
+
if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
|
|
44074
|
+
return "updatedAt: integer|Long expected";
|
|
44075
|
+
return null;
|
|
44076
|
+
};
|
|
44077
|
+
|
|
44078
|
+
/**
|
|
44079
|
+
* Creates a ContentfulActivityGroupLevelUpdated message from a plain object. Also converts values to their respective internal types.
|
|
44080
|
+
* @function fromObject
|
|
44081
|
+
* @memberof ContentfulActivityGroupLevelUpdated
|
|
44082
|
+
* @static
|
|
44083
|
+
* @param {Object.<string,*>} object Plain object
|
|
44084
|
+
* @returns {ContentfulActivityGroupLevelUpdated} ContentfulActivityGroupLevelUpdated
|
|
44085
|
+
*/
|
|
44086
|
+
ContentfulActivityGroupLevelUpdated.fromObject = function fromObject(object) {
|
|
44087
|
+
if (object instanceof $root.ContentfulActivityGroupLevelUpdated)
|
|
44088
|
+
return object;
|
|
44089
|
+
var message = new $root.ContentfulActivityGroupLevelUpdated();
|
|
44090
|
+
if (object.internalName != null)
|
|
44091
|
+
message.internalName = String(object.internalName);
|
|
44092
|
+
if (object.slug != null)
|
|
44093
|
+
message.slug = String(object.slug);
|
|
44094
|
+
if (object.title) {
|
|
44095
|
+
if (typeof object.title !== "object")
|
|
44096
|
+
throw TypeError(".ContentfulActivityGroupLevelUpdated.title: object expected");
|
|
44097
|
+
message.title = {};
|
|
44098
|
+
for (var keys = Object.keys(object.title), i = 0; i < keys.length; ++i)
|
|
44099
|
+
message.title[keys[i]] = String(object.title[keys[i]]);
|
|
44100
|
+
}
|
|
44101
|
+
if (object.subtitle) {
|
|
44102
|
+
if (typeof object.subtitle !== "object")
|
|
44103
|
+
throw TypeError(".ContentfulActivityGroupLevelUpdated.subtitle: object expected");
|
|
44104
|
+
message.subtitle = {};
|
|
44105
|
+
for (var keys = Object.keys(object.subtitle), i = 0; i < keys.length; ++i)
|
|
44106
|
+
message.subtitle[keys[i]] = String(object.subtitle[keys[i]]);
|
|
44107
|
+
}
|
|
44108
|
+
if (object.ordinalNumber != null)
|
|
44109
|
+
message.ordinalNumber = object.ordinalNumber >>> 0;
|
|
44110
|
+
if (object.sessionsInLevel != null)
|
|
44111
|
+
message.sessionsInLevel = object.sessionsInLevel >>> 0;
|
|
44112
|
+
if (object.activityGroup != null) {
|
|
44113
|
+
if (typeof object.activityGroup !== "object")
|
|
44114
|
+
throw TypeError(".ContentfulActivityGroupLevelUpdated.activityGroup: object expected");
|
|
44115
|
+
message.activityGroup = $root.contentful.SlugReference.fromObject(object.activityGroup);
|
|
44116
|
+
}
|
|
44117
|
+
if (object.updatedAt != null)
|
|
44118
|
+
if ($util.Long)
|
|
44119
|
+
(message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
|
|
44120
|
+
else if (typeof object.updatedAt === "string")
|
|
44121
|
+
message.updatedAt = parseInt(object.updatedAt, 10);
|
|
44122
|
+
else if (typeof object.updatedAt === "number")
|
|
44123
|
+
message.updatedAt = object.updatedAt;
|
|
44124
|
+
else if (typeof object.updatedAt === "object")
|
|
44125
|
+
message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
|
|
44126
|
+
return message;
|
|
44127
|
+
};
|
|
44128
|
+
|
|
44129
|
+
/**
|
|
44130
|
+
* Creates a plain object from a ContentfulActivityGroupLevelUpdated message. Also converts values to other types if specified.
|
|
44131
|
+
* @function toObject
|
|
44132
|
+
* @memberof ContentfulActivityGroupLevelUpdated
|
|
44133
|
+
* @static
|
|
44134
|
+
* @param {ContentfulActivityGroupLevelUpdated} message ContentfulActivityGroupLevelUpdated
|
|
44135
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
44136
|
+
* @returns {Object.<string,*>} Plain object
|
|
44137
|
+
*/
|
|
44138
|
+
ContentfulActivityGroupLevelUpdated.toObject = function toObject(message, options) {
|
|
44139
|
+
if (!options)
|
|
44140
|
+
options = {};
|
|
44141
|
+
var object = {};
|
|
44142
|
+
if (options.objects || options.defaults) {
|
|
44143
|
+
object.title = {};
|
|
44144
|
+
object.subtitle = {};
|
|
44145
|
+
}
|
|
44146
|
+
if (options.defaults) {
|
|
44147
|
+
object.internalName = "";
|
|
44148
|
+
object.slug = "";
|
|
44149
|
+
object.ordinalNumber = 0;
|
|
44150
|
+
object.sessionsInLevel = 0;
|
|
44151
|
+
object.activityGroup = null;
|
|
44152
|
+
if ($util.Long) {
|
|
44153
|
+
var long = new $util.Long(0, 0, true);
|
|
44154
|
+
object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
44155
|
+
} else
|
|
44156
|
+
object.updatedAt = options.longs === String ? "0" : 0;
|
|
44157
|
+
}
|
|
44158
|
+
if (message.internalName != null && message.hasOwnProperty("internalName"))
|
|
44159
|
+
object.internalName = message.internalName;
|
|
44160
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
44161
|
+
object.slug = message.slug;
|
|
44162
|
+
var keys2;
|
|
44163
|
+
if (message.title && (keys2 = Object.keys(message.title)).length) {
|
|
44164
|
+
object.title = {};
|
|
44165
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
44166
|
+
object.title[keys2[j]] = message.title[keys2[j]];
|
|
44167
|
+
}
|
|
44168
|
+
if (message.subtitle && (keys2 = Object.keys(message.subtitle)).length) {
|
|
44169
|
+
object.subtitle = {};
|
|
44170
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
44171
|
+
object.subtitle[keys2[j]] = message.subtitle[keys2[j]];
|
|
44172
|
+
}
|
|
44173
|
+
if (message.ordinalNumber != null && message.hasOwnProperty("ordinalNumber"))
|
|
44174
|
+
object.ordinalNumber = message.ordinalNumber;
|
|
44175
|
+
if (message.sessionsInLevel != null && message.hasOwnProperty("sessionsInLevel"))
|
|
44176
|
+
object.sessionsInLevel = message.sessionsInLevel;
|
|
44177
|
+
if (message.activityGroup != null && message.hasOwnProperty("activityGroup"))
|
|
44178
|
+
object.activityGroup = $root.contentful.SlugReference.toObject(message.activityGroup, options);
|
|
44179
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
44180
|
+
if (typeof message.updatedAt === "number")
|
|
44181
|
+
object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
|
|
44182
|
+
else
|
|
44183
|
+
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;
|
|
44184
|
+
return object;
|
|
44185
|
+
};
|
|
44186
|
+
|
|
44187
|
+
/**
|
|
44188
|
+
* Converts this ContentfulActivityGroupLevelUpdated to JSON.
|
|
44189
|
+
* @function toJSON
|
|
44190
|
+
* @memberof ContentfulActivityGroupLevelUpdated
|
|
44191
|
+
* @instance
|
|
44192
|
+
* @returns {Object.<string,*>} JSON object
|
|
44193
|
+
*/
|
|
44194
|
+
ContentfulActivityGroupLevelUpdated.prototype.toJSON = function toJSON() {
|
|
44195
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
44196
|
+
};
|
|
44197
|
+
|
|
44198
|
+
return ContentfulActivityGroupLevelUpdated;
|
|
44199
|
+
})();
|
|
44200
|
+
|
|
44201
|
+
$root.ContentfulActivityGroupLevelDeleted = (function() {
|
|
44202
|
+
|
|
44203
|
+
/**
|
|
44204
|
+
* Properties of a ContentfulActivityGroupLevelDeleted.
|
|
44205
|
+
* @exports IContentfulActivityGroupLevelDeleted
|
|
44206
|
+
* @interface IContentfulActivityGroupLevelDeleted
|
|
44207
|
+
* @property {string|null} [slug] ContentfulActivityGroupLevelDeleted slug
|
|
44208
|
+
* @property {number|Long|null} [deletedAt] ContentfulActivityGroupLevelDeleted deletedAt
|
|
44209
|
+
*/
|
|
44210
|
+
|
|
44211
|
+
/**
|
|
44212
|
+
* Constructs a new ContentfulActivityGroupLevelDeleted.
|
|
44213
|
+
* @exports ContentfulActivityGroupLevelDeleted
|
|
44214
|
+
* @classdesc Represents a ContentfulActivityGroupLevelDeleted.
|
|
44215
|
+
* @implements IContentfulActivityGroupLevelDeleted
|
|
44216
|
+
* @constructor
|
|
44217
|
+
* @param {IContentfulActivityGroupLevelDeleted=} [properties] Properties to set
|
|
44218
|
+
*/
|
|
44219
|
+
function ContentfulActivityGroupLevelDeleted(properties) {
|
|
44220
|
+
if (properties)
|
|
44221
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
44222
|
+
if (properties[keys[i]] != null)
|
|
44223
|
+
this[keys[i]] = properties[keys[i]];
|
|
44224
|
+
}
|
|
44225
|
+
|
|
44226
|
+
/**
|
|
44227
|
+
* ContentfulActivityGroupLevelDeleted slug.
|
|
44228
|
+
* @member {string} slug
|
|
44229
|
+
* @memberof ContentfulActivityGroupLevelDeleted
|
|
44230
|
+
* @instance
|
|
44231
|
+
*/
|
|
44232
|
+
ContentfulActivityGroupLevelDeleted.prototype.slug = "";
|
|
44233
|
+
|
|
44234
|
+
/**
|
|
44235
|
+
* ContentfulActivityGroupLevelDeleted deletedAt.
|
|
44236
|
+
* @member {number|Long} deletedAt
|
|
44237
|
+
* @memberof ContentfulActivityGroupLevelDeleted
|
|
44238
|
+
* @instance
|
|
44239
|
+
*/
|
|
44240
|
+
ContentfulActivityGroupLevelDeleted.prototype.deletedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
44241
|
+
|
|
44242
|
+
/**
|
|
44243
|
+
* Creates a new ContentfulActivityGroupLevelDeleted instance using the specified properties.
|
|
44244
|
+
* @function create
|
|
44245
|
+
* @memberof ContentfulActivityGroupLevelDeleted
|
|
44246
|
+
* @static
|
|
44247
|
+
* @param {IContentfulActivityGroupLevelDeleted=} [properties] Properties to set
|
|
44248
|
+
* @returns {ContentfulActivityGroupLevelDeleted} ContentfulActivityGroupLevelDeleted instance
|
|
44249
|
+
*/
|
|
44250
|
+
ContentfulActivityGroupLevelDeleted.create = function create(properties) {
|
|
44251
|
+
return new ContentfulActivityGroupLevelDeleted(properties);
|
|
44252
|
+
};
|
|
44253
|
+
|
|
44254
|
+
/**
|
|
44255
|
+
* Encodes the specified ContentfulActivityGroupLevelDeleted message. Does not implicitly {@link ContentfulActivityGroupLevelDeleted.verify|verify} messages.
|
|
44256
|
+
* @function encode
|
|
44257
|
+
* @memberof ContentfulActivityGroupLevelDeleted
|
|
44258
|
+
* @static
|
|
44259
|
+
* @param {IContentfulActivityGroupLevelDeleted} message ContentfulActivityGroupLevelDeleted message or plain object to encode
|
|
44260
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
44261
|
+
* @returns {$protobuf.Writer} Writer
|
|
44262
|
+
*/
|
|
44263
|
+
ContentfulActivityGroupLevelDeleted.encode = function encode(message, writer) {
|
|
44264
|
+
if (!writer)
|
|
44265
|
+
writer = $Writer.create();
|
|
44266
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
44267
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
44268
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
44269
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.deletedAt);
|
|
44270
|
+
return writer;
|
|
44271
|
+
};
|
|
44272
|
+
|
|
44273
|
+
/**
|
|
44274
|
+
* Encodes the specified ContentfulActivityGroupLevelDeleted message, length delimited. Does not implicitly {@link ContentfulActivityGroupLevelDeleted.verify|verify} messages.
|
|
44275
|
+
* @function encodeDelimited
|
|
44276
|
+
* @memberof ContentfulActivityGroupLevelDeleted
|
|
44277
|
+
* @static
|
|
44278
|
+
* @param {IContentfulActivityGroupLevelDeleted} message ContentfulActivityGroupLevelDeleted message or plain object to encode
|
|
44279
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
44280
|
+
* @returns {$protobuf.Writer} Writer
|
|
44281
|
+
*/
|
|
44282
|
+
ContentfulActivityGroupLevelDeleted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
44283
|
+
return this.encode(message, writer).ldelim();
|
|
44284
|
+
};
|
|
44285
|
+
|
|
44286
|
+
/**
|
|
44287
|
+
* Decodes a ContentfulActivityGroupLevelDeleted message from the specified reader or buffer.
|
|
44288
|
+
* @function decode
|
|
44289
|
+
* @memberof ContentfulActivityGroupLevelDeleted
|
|
44290
|
+
* @static
|
|
44291
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
44292
|
+
* @param {number} [length] Message length if known beforehand
|
|
44293
|
+
* @returns {ContentfulActivityGroupLevelDeleted} ContentfulActivityGroupLevelDeleted
|
|
44294
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
44295
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
44296
|
+
*/
|
|
44297
|
+
ContentfulActivityGroupLevelDeleted.decode = function decode(reader, length) {
|
|
44298
|
+
if (!(reader instanceof $Reader))
|
|
44299
|
+
reader = $Reader.create(reader);
|
|
44300
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulActivityGroupLevelDeleted();
|
|
44301
|
+
while (reader.pos < end) {
|
|
44302
|
+
var tag = reader.uint32();
|
|
44303
|
+
switch (tag >>> 3) {
|
|
44304
|
+
case 1:
|
|
44305
|
+
message.slug = reader.string();
|
|
44306
|
+
break;
|
|
44307
|
+
case 2:
|
|
44308
|
+
message.deletedAt = reader.uint64();
|
|
44309
|
+
break;
|
|
44310
|
+
default:
|
|
44311
|
+
reader.skipType(tag & 7);
|
|
44312
|
+
break;
|
|
44313
|
+
}
|
|
44314
|
+
}
|
|
44315
|
+
return message;
|
|
44316
|
+
};
|
|
44317
|
+
|
|
44318
|
+
/**
|
|
44319
|
+
* Decodes a ContentfulActivityGroupLevelDeleted message from the specified reader or buffer, length delimited.
|
|
44320
|
+
* @function decodeDelimited
|
|
44321
|
+
* @memberof ContentfulActivityGroupLevelDeleted
|
|
44322
|
+
* @static
|
|
44323
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
44324
|
+
* @returns {ContentfulActivityGroupLevelDeleted} ContentfulActivityGroupLevelDeleted
|
|
44325
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
44326
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
44327
|
+
*/
|
|
44328
|
+
ContentfulActivityGroupLevelDeleted.decodeDelimited = function decodeDelimited(reader) {
|
|
44329
|
+
if (!(reader instanceof $Reader))
|
|
44330
|
+
reader = new $Reader(reader);
|
|
44331
|
+
return this.decode(reader, reader.uint32());
|
|
44332
|
+
};
|
|
44333
|
+
|
|
44334
|
+
/**
|
|
44335
|
+
* Verifies a ContentfulActivityGroupLevelDeleted message.
|
|
44336
|
+
* @function verify
|
|
44337
|
+
* @memberof ContentfulActivityGroupLevelDeleted
|
|
44338
|
+
* @static
|
|
44339
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
44340
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
44341
|
+
*/
|
|
44342
|
+
ContentfulActivityGroupLevelDeleted.verify = function verify(message) {
|
|
44343
|
+
if (typeof message !== "object" || message === null)
|
|
44344
|
+
return "object expected";
|
|
44345
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
44346
|
+
if (!$util.isString(message.slug))
|
|
44347
|
+
return "slug: string expected";
|
|
44348
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
44349
|
+
if (!$util.isInteger(message.deletedAt) && !(message.deletedAt && $util.isInteger(message.deletedAt.low) && $util.isInteger(message.deletedAt.high)))
|
|
44350
|
+
return "deletedAt: integer|Long expected";
|
|
44351
|
+
return null;
|
|
44352
|
+
};
|
|
44353
|
+
|
|
44354
|
+
/**
|
|
44355
|
+
* Creates a ContentfulActivityGroupLevelDeleted message from a plain object. Also converts values to their respective internal types.
|
|
44356
|
+
* @function fromObject
|
|
44357
|
+
* @memberof ContentfulActivityGroupLevelDeleted
|
|
44358
|
+
* @static
|
|
44359
|
+
* @param {Object.<string,*>} object Plain object
|
|
44360
|
+
* @returns {ContentfulActivityGroupLevelDeleted} ContentfulActivityGroupLevelDeleted
|
|
44361
|
+
*/
|
|
44362
|
+
ContentfulActivityGroupLevelDeleted.fromObject = function fromObject(object) {
|
|
44363
|
+
if (object instanceof $root.ContentfulActivityGroupLevelDeleted)
|
|
44364
|
+
return object;
|
|
44365
|
+
var message = new $root.ContentfulActivityGroupLevelDeleted();
|
|
44366
|
+
if (object.slug != null)
|
|
44367
|
+
message.slug = String(object.slug);
|
|
44368
|
+
if (object.deletedAt != null)
|
|
44369
|
+
if ($util.Long)
|
|
44370
|
+
(message.deletedAt = $util.Long.fromValue(object.deletedAt)).unsigned = true;
|
|
44371
|
+
else if (typeof object.deletedAt === "string")
|
|
44372
|
+
message.deletedAt = parseInt(object.deletedAt, 10);
|
|
44373
|
+
else if (typeof object.deletedAt === "number")
|
|
44374
|
+
message.deletedAt = object.deletedAt;
|
|
44375
|
+
else if (typeof object.deletedAt === "object")
|
|
44376
|
+
message.deletedAt = new $util.LongBits(object.deletedAt.low >>> 0, object.deletedAt.high >>> 0).toNumber(true);
|
|
44377
|
+
return message;
|
|
44378
|
+
};
|
|
44379
|
+
|
|
44380
|
+
/**
|
|
44381
|
+
* Creates a plain object from a ContentfulActivityGroupLevelDeleted message. Also converts values to other types if specified.
|
|
44382
|
+
* @function toObject
|
|
44383
|
+
* @memberof ContentfulActivityGroupLevelDeleted
|
|
44384
|
+
* @static
|
|
44385
|
+
* @param {ContentfulActivityGroupLevelDeleted} message ContentfulActivityGroupLevelDeleted
|
|
44386
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
44387
|
+
* @returns {Object.<string,*>} Plain object
|
|
44388
|
+
*/
|
|
44389
|
+
ContentfulActivityGroupLevelDeleted.toObject = function toObject(message, options) {
|
|
44390
|
+
if (!options)
|
|
44391
|
+
options = {};
|
|
44392
|
+
var object = {};
|
|
44393
|
+
if (options.defaults) {
|
|
44394
|
+
object.slug = "";
|
|
44395
|
+
if ($util.Long) {
|
|
44396
|
+
var long = new $util.Long(0, 0, true);
|
|
44397
|
+
object.deletedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
44398
|
+
} else
|
|
44399
|
+
object.deletedAt = options.longs === String ? "0" : 0;
|
|
44400
|
+
}
|
|
44401
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
44402
|
+
object.slug = message.slug;
|
|
44403
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
44404
|
+
if (typeof message.deletedAt === "number")
|
|
44405
|
+
object.deletedAt = options.longs === String ? String(message.deletedAt) : message.deletedAt;
|
|
44406
|
+
else
|
|
44407
|
+
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;
|
|
44408
|
+
return object;
|
|
44409
|
+
};
|
|
44410
|
+
|
|
44411
|
+
/**
|
|
44412
|
+
* Converts this ContentfulActivityGroupLevelDeleted to JSON.
|
|
44413
|
+
* @function toJSON
|
|
44414
|
+
* @memberof ContentfulActivityGroupLevelDeleted
|
|
44415
|
+
* @instance
|
|
44416
|
+
* @returns {Object.<string,*>} JSON object
|
|
44417
|
+
*/
|
|
44418
|
+
ContentfulActivityGroupLevelDeleted.prototype.toJSON = function toJSON() {
|
|
44419
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
44420
|
+
};
|
|
44421
|
+
|
|
44422
|
+
return ContentfulActivityGroupLevelDeleted;
|
|
44423
|
+
})();
|
|
44424
|
+
|
|
43349
44425
|
$root.ContentfulLayoutCreated = (function() {
|
|
43350
44426
|
|
|
43351
44427
|
/**
|