@headspace/protos-events 1.126.0 → 1.128.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 +412 -4
  2. package/lib/index.js +1476 -28
  3. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -11503,7 +11503,7 @@ $root.ContentfulCategoryCreated = (function() {
11503
11503
  * Properties of a ContentfulCategoryCreated.
11504
11504
  * @exports IContentfulCategoryCreated
11505
11505
  * @interface IContentfulCategoryCreated
11506
- * @property {string|null} [name] ContentfulCategoryCreated name
11506
+ * @property {Object.<string,string>|null} [name] ContentfulCategoryCreated name
11507
11507
  * @property {string|null} [slug] ContentfulCategoryCreated slug
11508
11508
  * @property {contentful.ISlugReference|null} [topic] ContentfulCategoryCreated topic
11509
11509
  * @property {string|null} [type] ContentfulCategoryCreated type
@@ -11520,6 +11520,7 @@ $root.ContentfulCategoryCreated = (function() {
11520
11520
  * @param {IContentfulCategoryCreated=} [properties] Properties to set
11521
11521
  */
11522
11522
  function ContentfulCategoryCreated(properties) {
11523
+ this.name = {};
11523
11524
  this.content = [];
11524
11525
  if (properties)
11525
11526
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
@@ -11529,11 +11530,11 @@ $root.ContentfulCategoryCreated = (function() {
11529
11530
 
11530
11531
  /**
11531
11532
  * ContentfulCategoryCreated name.
11532
- * @member {string} name
11533
+ * @member {Object.<string,string>} name
11533
11534
  * @memberof ContentfulCategoryCreated
11534
11535
  * @instance
11535
11536
  */
11536
- ContentfulCategoryCreated.prototype.name = "";
11537
+ ContentfulCategoryCreated.prototype.name = $util.emptyObject;
11537
11538
 
11538
11539
  /**
11539
11540
  * ContentfulCategoryCreated slug.
@@ -11600,7 +11601,8 @@ $root.ContentfulCategoryCreated = (function() {
11600
11601
  if (!writer)
11601
11602
  writer = $Writer.create();
11602
11603
  if (message.name != null && message.hasOwnProperty("name"))
11603
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
11604
+ for (var keys = Object.keys(message.name), i = 0; i < keys.length; ++i)
11605
+ writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.name[keys[i]]).ldelim();
11604
11606
  if (message.slug != null && message.hasOwnProperty("slug"))
11605
11607
  writer.uint32(/* id 2, wireType 2 =*/18).string(message.slug);
11606
11608
  if (message.topic != null && message.hasOwnProperty("topic"))
@@ -11642,12 +11644,17 @@ $root.ContentfulCategoryCreated = (function() {
11642
11644
  ContentfulCategoryCreated.decode = function decode(reader, length) {
11643
11645
  if (!(reader instanceof $Reader))
11644
11646
  reader = $Reader.create(reader);
11645
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulCategoryCreated();
11647
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulCategoryCreated(), key;
11646
11648
  while (reader.pos < end) {
11647
11649
  var tag = reader.uint32();
11648
11650
  switch (tag >>> 3) {
11649
11651
  case 1:
11650
- message.name = reader.string();
11652
+ reader.skip().pos++;
11653
+ if (message.name === $util.emptyObject)
11654
+ message.name = {};
11655
+ key = reader.string();
11656
+ reader.pos++;
11657
+ message.name[key] = reader.string();
11651
11658
  break;
11652
11659
  case 2:
11653
11660
  message.slug = reader.string();
@@ -11701,9 +11708,14 @@ $root.ContentfulCategoryCreated = (function() {
11701
11708
  ContentfulCategoryCreated.verify = function verify(message) {
11702
11709
  if (typeof message !== "object" || message === null)
11703
11710
  return "object expected";
11704
- if (message.name != null && message.hasOwnProperty("name"))
11705
- if (!$util.isString(message.name))
11706
- return "name: string expected";
11711
+ if (message.name != null && message.hasOwnProperty("name")) {
11712
+ if (!$util.isObject(message.name))
11713
+ return "name: object expected";
11714
+ var key = Object.keys(message.name);
11715
+ for (var i = 0; i < key.length; ++i)
11716
+ if (!$util.isString(message.name[key[i]]))
11717
+ return "name: string{k:string} expected";
11718
+ }
11707
11719
  if (message.slug != null && message.hasOwnProperty("slug"))
11708
11720
  if (!$util.isString(message.slug))
11709
11721
  return "slug: string expected";
@@ -11742,8 +11754,13 @@ $root.ContentfulCategoryCreated = (function() {
11742
11754
  if (object instanceof $root.ContentfulCategoryCreated)
11743
11755
  return object;
11744
11756
  var message = new $root.ContentfulCategoryCreated();
11745
- if (object.name != null)
11746
- message.name = String(object.name);
11757
+ if (object.name) {
11758
+ if (typeof object.name !== "object")
11759
+ throw TypeError(".ContentfulCategoryCreated.name: object expected");
11760
+ message.name = {};
11761
+ for (var keys = Object.keys(object.name), i = 0; i < keys.length; ++i)
11762
+ message.name[keys[i]] = String(object.name[keys[i]]);
11763
+ }
11747
11764
  if (object.slug != null)
11748
11765
  message.slug = String(object.slug);
11749
11766
  if (object.topic != null) {
@@ -11790,8 +11807,9 @@ $root.ContentfulCategoryCreated = (function() {
11790
11807
  var object = {};
11791
11808
  if (options.arrays || options.defaults)
11792
11809
  object.content = [];
11810
+ if (options.objects || options.defaults)
11811
+ object.name = {};
11793
11812
  if (options.defaults) {
11794
- object.name = "";
11795
11813
  object.slug = "";
11796
11814
  object.topic = null;
11797
11815
  object.type = "";
@@ -11801,8 +11819,12 @@ $root.ContentfulCategoryCreated = (function() {
11801
11819
  } else
11802
11820
  object.createdAt = options.longs === String ? "0" : 0;
11803
11821
  }
11804
- if (message.name != null && message.hasOwnProperty("name"))
11805
- object.name = message.name;
11822
+ var keys2;
11823
+ if (message.name && (keys2 = Object.keys(message.name)).length) {
11824
+ object.name = {};
11825
+ for (var j = 0; j < keys2.length; ++j)
11826
+ object.name[keys2[j]] = message.name[keys2[j]];
11827
+ }
11806
11828
  if (message.slug != null && message.hasOwnProperty("slug"))
11807
11829
  object.slug = message.slug;
11808
11830
  if (message.topic != null && message.hasOwnProperty("topic"))
@@ -11842,7 +11864,7 @@ $root.ContentfulCategoryUpdated = (function() {
11842
11864
  * Properties of a ContentfulCategoryUpdated.
11843
11865
  * @exports IContentfulCategoryUpdated
11844
11866
  * @interface IContentfulCategoryUpdated
11845
- * @property {string|null} [name] ContentfulCategoryUpdated name
11867
+ * @property {Object.<string,string>|null} [name] ContentfulCategoryUpdated name
11846
11868
  * @property {string|null} [slug] ContentfulCategoryUpdated slug
11847
11869
  * @property {contentful.ISlugReference|null} [topic] ContentfulCategoryUpdated topic
11848
11870
  * @property {string|null} [type] ContentfulCategoryUpdated type
@@ -11859,6 +11881,7 @@ $root.ContentfulCategoryUpdated = (function() {
11859
11881
  * @param {IContentfulCategoryUpdated=} [properties] Properties to set
11860
11882
  */
11861
11883
  function ContentfulCategoryUpdated(properties) {
11884
+ this.name = {};
11862
11885
  this.content = [];
11863
11886
  if (properties)
11864
11887
  for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
@@ -11868,11 +11891,11 @@ $root.ContentfulCategoryUpdated = (function() {
11868
11891
 
11869
11892
  /**
11870
11893
  * ContentfulCategoryUpdated name.
11871
- * @member {string} name
11894
+ * @member {Object.<string,string>} name
11872
11895
  * @memberof ContentfulCategoryUpdated
11873
11896
  * @instance
11874
11897
  */
11875
- ContentfulCategoryUpdated.prototype.name = "";
11898
+ ContentfulCategoryUpdated.prototype.name = $util.emptyObject;
11876
11899
 
11877
11900
  /**
11878
11901
  * ContentfulCategoryUpdated slug.
@@ -11939,7 +11962,8 @@ $root.ContentfulCategoryUpdated = (function() {
11939
11962
  if (!writer)
11940
11963
  writer = $Writer.create();
11941
11964
  if (message.name != null && message.hasOwnProperty("name"))
11942
- writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
11965
+ for (var keys = Object.keys(message.name), i = 0; i < keys.length; ++i)
11966
+ writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.name[keys[i]]).ldelim();
11943
11967
  if (message.slug != null && message.hasOwnProperty("slug"))
11944
11968
  writer.uint32(/* id 2, wireType 2 =*/18).string(message.slug);
11945
11969
  if (message.topic != null && message.hasOwnProperty("topic"))
@@ -11981,12 +12005,17 @@ $root.ContentfulCategoryUpdated = (function() {
11981
12005
  ContentfulCategoryUpdated.decode = function decode(reader, length) {
11982
12006
  if (!(reader instanceof $Reader))
11983
12007
  reader = $Reader.create(reader);
11984
- var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulCategoryUpdated();
12008
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulCategoryUpdated(), key;
11985
12009
  while (reader.pos < end) {
11986
12010
  var tag = reader.uint32();
11987
12011
  switch (tag >>> 3) {
11988
12012
  case 1:
11989
- message.name = reader.string();
12013
+ reader.skip().pos++;
12014
+ if (message.name === $util.emptyObject)
12015
+ message.name = {};
12016
+ key = reader.string();
12017
+ reader.pos++;
12018
+ message.name[key] = reader.string();
11990
12019
  break;
11991
12020
  case 2:
11992
12021
  message.slug = reader.string();
@@ -12040,9 +12069,14 @@ $root.ContentfulCategoryUpdated = (function() {
12040
12069
  ContentfulCategoryUpdated.verify = function verify(message) {
12041
12070
  if (typeof message !== "object" || message === null)
12042
12071
  return "object expected";
12043
- if (message.name != null && message.hasOwnProperty("name"))
12044
- if (!$util.isString(message.name))
12045
- return "name: string expected";
12072
+ if (message.name != null && message.hasOwnProperty("name")) {
12073
+ if (!$util.isObject(message.name))
12074
+ return "name: object expected";
12075
+ var key = Object.keys(message.name);
12076
+ for (var i = 0; i < key.length; ++i)
12077
+ if (!$util.isString(message.name[key[i]]))
12078
+ return "name: string{k:string} expected";
12079
+ }
12046
12080
  if (message.slug != null && message.hasOwnProperty("slug"))
12047
12081
  if (!$util.isString(message.slug))
12048
12082
  return "slug: string expected";
@@ -12081,8 +12115,13 @@ $root.ContentfulCategoryUpdated = (function() {
12081
12115
  if (object instanceof $root.ContentfulCategoryUpdated)
12082
12116
  return object;
12083
12117
  var message = new $root.ContentfulCategoryUpdated();
12084
- if (object.name != null)
12085
- message.name = String(object.name);
12118
+ if (object.name) {
12119
+ if (typeof object.name !== "object")
12120
+ throw TypeError(".ContentfulCategoryUpdated.name: object expected");
12121
+ message.name = {};
12122
+ for (var keys = Object.keys(object.name), i = 0; i < keys.length; ++i)
12123
+ message.name[keys[i]] = String(object.name[keys[i]]);
12124
+ }
12086
12125
  if (object.slug != null)
12087
12126
  message.slug = String(object.slug);
12088
12127
  if (object.topic != null) {
@@ -12129,8 +12168,9 @@ $root.ContentfulCategoryUpdated = (function() {
12129
12168
  var object = {};
12130
12169
  if (options.arrays || options.defaults)
12131
12170
  object.content = [];
12171
+ if (options.objects || options.defaults)
12172
+ object.name = {};
12132
12173
  if (options.defaults) {
12133
- object.name = "";
12134
12174
  object.slug = "";
12135
12175
  object.topic = null;
12136
12176
  object.type = "";
@@ -12140,8 +12180,12 @@ $root.ContentfulCategoryUpdated = (function() {
12140
12180
  } else
12141
12181
  object.updatedAt = options.longs === String ? "0" : 0;
12142
12182
  }
12143
- if (message.name != null && message.hasOwnProperty("name"))
12144
- object.name = message.name;
12183
+ var keys2;
12184
+ if (message.name && (keys2 = Object.keys(message.name)).length) {
12185
+ object.name = {};
12186
+ for (var j = 0; j < keys2.length; ++j)
12187
+ object.name[keys2[j]] = message.name[keys2[j]];
12188
+ }
12145
12189
  if (message.slug != null && message.hasOwnProperty("slug"))
12146
12190
  object.slug = message.slug;
12147
12191
  if (message.topic != null && message.hasOwnProperty("topic"))
@@ -12399,6 +12443,1410 @@ $root.ContentfulCategoryDeleted = (function() {
12399
12443
  return ContentfulCategoryDeleted;
12400
12444
  })();
12401
12445
 
12446
+ $root.ContentfulTopicCreated = (function() {
12447
+
12448
+ /**
12449
+ * Properties of a ContentfulTopicCreated.
12450
+ * @exports IContentfulTopicCreated
12451
+ * @interface IContentfulTopicCreated
12452
+ * @property {Object.<string,string>|null} [name] ContentfulTopicCreated name
12453
+ * @property {string|null} [slug] ContentfulTopicCreated slug
12454
+ * @property {Object.<string,string>|null} [description] ContentfulTopicCreated description
12455
+ * @property {string|null} [location] ContentfulTopicCreated location
12456
+ * @property {string|null} [primaryColor] ContentfulTopicCreated primaryColor
12457
+ * @property {string|null} [secondaryColor] ContentfulTopicCreated secondaryColor
12458
+ * @property {string|null} [tertiaryColor] ContentfulTopicCreated tertiaryColor
12459
+ * @property {Object.<string,contentful.IIdReference>|null} [iconMedia] ContentfulTopicCreated iconMedia
12460
+ * @property {Object.<string,contentful.IIdReference>|null} [headerPatternMedia] ContentfulTopicCreated headerPatternMedia
12461
+ * @property {Object.<string,contentful.IIdReference>|null} [menuPatternMedia] ContentfulTopicCreated menuPatternMedia
12462
+ * @property {Array.<contentful.ISlugReference>|null} [accessGroups] ContentfulTopicCreated accessGroups
12463
+ * @property {number|Long|null} [createdAt] ContentfulTopicCreated createdAt
12464
+ */
12465
+
12466
+ /**
12467
+ * Constructs a new ContentfulTopicCreated.
12468
+ * @exports ContentfulTopicCreated
12469
+ * @classdesc Represents a ContentfulTopicCreated.
12470
+ * @implements IContentfulTopicCreated
12471
+ * @constructor
12472
+ * @param {IContentfulTopicCreated=} [properties] Properties to set
12473
+ */
12474
+ function ContentfulTopicCreated(properties) {
12475
+ this.name = {};
12476
+ this.description = {};
12477
+ this.iconMedia = {};
12478
+ this.headerPatternMedia = {};
12479
+ this.menuPatternMedia = {};
12480
+ this.accessGroups = [];
12481
+ if (properties)
12482
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
12483
+ if (properties[keys[i]] != null)
12484
+ this[keys[i]] = properties[keys[i]];
12485
+ }
12486
+
12487
+ /**
12488
+ * ContentfulTopicCreated name.
12489
+ * @member {Object.<string,string>} name
12490
+ * @memberof ContentfulTopicCreated
12491
+ * @instance
12492
+ */
12493
+ ContentfulTopicCreated.prototype.name = $util.emptyObject;
12494
+
12495
+ /**
12496
+ * ContentfulTopicCreated slug.
12497
+ * @member {string} slug
12498
+ * @memberof ContentfulTopicCreated
12499
+ * @instance
12500
+ */
12501
+ ContentfulTopicCreated.prototype.slug = "";
12502
+
12503
+ /**
12504
+ * ContentfulTopicCreated description.
12505
+ * @member {Object.<string,string>} description
12506
+ * @memberof ContentfulTopicCreated
12507
+ * @instance
12508
+ */
12509
+ ContentfulTopicCreated.prototype.description = $util.emptyObject;
12510
+
12511
+ /**
12512
+ * ContentfulTopicCreated location.
12513
+ * @member {string} location
12514
+ * @memberof ContentfulTopicCreated
12515
+ * @instance
12516
+ */
12517
+ ContentfulTopicCreated.prototype.location = "";
12518
+
12519
+ /**
12520
+ * ContentfulTopicCreated primaryColor.
12521
+ * @member {string} primaryColor
12522
+ * @memberof ContentfulTopicCreated
12523
+ * @instance
12524
+ */
12525
+ ContentfulTopicCreated.prototype.primaryColor = "";
12526
+
12527
+ /**
12528
+ * ContentfulTopicCreated secondaryColor.
12529
+ * @member {string} secondaryColor
12530
+ * @memberof ContentfulTopicCreated
12531
+ * @instance
12532
+ */
12533
+ ContentfulTopicCreated.prototype.secondaryColor = "";
12534
+
12535
+ /**
12536
+ * ContentfulTopicCreated tertiaryColor.
12537
+ * @member {string} tertiaryColor
12538
+ * @memberof ContentfulTopicCreated
12539
+ * @instance
12540
+ */
12541
+ ContentfulTopicCreated.prototype.tertiaryColor = "";
12542
+
12543
+ /**
12544
+ * ContentfulTopicCreated iconMedia.
12545
+ * @member {Object.<string,contentful.IIdReference>} iconMedia
12546
+ * @memberof ContentfulTopicCreated
12547
+ * @instance
12548
+ */
12549
+ ContentfulTopicCreated.prototype.iconMedia = $util.emptyObject;
12550
+
12551
+ /**
12552
+ * ContentfulTopicCreated headerPatternMedia.
12553
+ * @member {Object.<string,contentful.IIdReference>} headerPatternMedia
12554
+ * @memberof ContentfulTopicCreated
12555
+ * @instance
12556
+ */
12557
+ ContentfulTopicCreated.prototype.headerPatternMedia = $util.emptyObject;
12558
+
12559
+ /**
12560
+ * ContentfulTopicCreated menuPatternMedia.
12561
+ * @member {Object.<string,contentful.IIdReference>} menuPatternMedia
12562
+ * @memberof ContentfulTopicCreated
12563
+ * @instance
12564
+ */
12565
+ ContentfulTopicCreated.prototype.menuPatternMedia = $util.emptyObject;
12566
+
12567
+ /**
12568
+ * ContentfulTopicCreated accessGroups.
12569
+ * @member {Array.<contentful.ISlugReference>} accessGroups
12570
+ * @memberof ContentfulTopicCreated
12571
+ * @instance
12572
+ */
12573
+ ContentfulTopicCreated.prototype.accessGroups = $util.emptyArray;
12574
+
12575
+ /**
12576
+ * ContentfulTopicCreated createdAt.
12577
+ * @member {number|Long} createdAt
12578
+ * @memberof ContentfulTopicCreated
12579
+ * @instance
12580
+ */
12581
+ ContentfulTopicCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
12582
+
12583
+ /**
12584
+ * Creates a new ContentfulTopicCreated instance using the specified properties.
12585
+ * @function create
12586
+ * @memberof ContentfulTopicCreated
12587
+ * @static
12588
+ * @param {IContentfulTopicCreated=} [properties] Properties to set
12589
+ * @returns {ContentfulTopicCreated} ContentfulTopicCreated instance
12590
+ */
12591
+ ContentfulTopicCreated.create = function create(properties) {
12592
+ return new ContentfulTopicCreated(properties);
12593
+ };
12594
+
12595
+ /**
12596
+ * Encodes the specified ContentfulTopicCreated message. Does not implicitly {@link ContentfulTopicCreated.verify|verify} messages.
12597
+ * @function encode
12598
+ * @memberof ContentfulTopicCreated
12599
+ * @static
12600
+ * @param {IContentfulTopicCreated} message ContentfulTopicCreated message or plain object to encode
12601
+ * @param {$protobuf.Writer} [writer] Writer to encode to
12602
+ * @returns {$protobuf.Writer} Writer
12603
+ */
12604
+ ContentfulTopicCreated.encode = function encode(message, writer) {
12605
+ if (!writer)
12606
+ writer = $Writer.create();
12607
+ if (message.name != null && message.hasOwnProperty("name"))
12608
+ for (var keys = Object.keys(message.name), i = 0; i < keys.length; ++i)
12609
+ writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.name[keys[i]]).ldelim();
12610
+ if (message.slug != null && message.hasOwnProperty("slug"))
12611
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.slug);
12612
+ if (message.description != null && message.hasOwnProperty("description"))
12613
+ for (var keys = Object.keys(message.description), i = 0; i < keys.length; ++i)
12614
+ 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.description[keys[i]]).ldelim();
12615
+ if (message.location != null && message.hasOwnProperty("location"))
12616
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.location);
12617
+ if (message.primaryColor != null && message.hasOwnProperty("primaryColor"))
12618
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.primaryColor);
12619
+ if (message.secondaryColor != null && message.hasOwnProperty("secondaryColor"))
12620
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.secondaryColor);
12621
+ if (message.tertiaryColor != null && message.hasOwnProperty("tertiaryColor"))
12622
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.tertiaryColor);
12623
+ if (message.iconMedia != null && message.hasOwnProperty("iconMedia"))
12624
+ for (var keys = Object.keys(message.iconMedia), i = 0; i < keys.length; ++i) {
12625
+ writer.uint32(/* id 8, wireType 2 =*/66).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
12626
+ $root.contentful.IdReference.encode(message.iconMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
12627
+ }
12628
+ if (message.headerPatternMedia != null && message.hasOwnProperty("headerPatternMedia"))
12629
+ for (var keys = Object.keys(message.headerPatternMedia), i = 0; i < keys.length; ++i) {
12630
+ writer.uint32(/* id 9, wireType 2 =*/74).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
12631
+ $root.contentful.IdReference.encode(message.headerPatternMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
12632
+ }
12633
+ if (message.menuPatternMedia != null && message.hasOwnProperty("menuPatternMedia"))
12634
+ for (var keys = Object.keys(message.menuPatternMedia), i = 0; i < keys.length; ++i) {
12635
+ writer.uint32(/* id 10, wireType 2 =*/82).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
12636
+ $root.contentful.IdReference.encode(message.menuPatternMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
12637
+ }
12638
+ if (message.accessGroups != null && message.accessGroups.length)
12639
+ for (var i = 0; i < message.accessGroups.length; ++i)
12640
+ $root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
12641
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
12642
+ writer.uint32(/* id 12, wireType 0 =*/96).uint64(message.createdAt);
12643
+ return writer;
12644
+ };
12645
+
12646
+ /**
12647
+ * Encodes the specified ContentfulTopicCreated message, length delimited. Does not implicitly {@link ContentfulTopicCreated.verify|verify} messages.
12648
+ * @function encodeDelimited
12649
+ * @memberof ContentfulTopicCreated
12650
+ * @static
12651
+ * @param {IContentfulTopicCreated} message ContentfulTopicCreated message or plain object to encode
12652
+ * @param {$protobuf.Writer} [writer] Writer to encode to
12653
+ * @returns {$protobuf.Writer} Writer
12654
+ */
12655
+ ContentfulTopicCreated.encodeDelimited = function encodeDelimited(message, writer) {
12656
+ return this.encode(message, writer).ldelim();
12657
+ };
12658
+
12659
+ /**
12660
+ * Decodes a ContentfulTopicCreated message from the specified reader or buffer.
12661
+ * @function decode
12662
+ * @memberof ContentfulTopicCreated
12663
+ * @static
12664
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
12665
+ * @param {number} [length] Message length if known beforehand
12666
+ * @returns {ContentfulTopicCreated} ContentfulTopicCreated
12667
+ * @throws {Error} If the payload is not a reader or valid buffer
12668
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
12669
+ */
12670
+ ContentfulTopicCreated.decode = function decode(reader, length) {
12671
+ if (!(reader instanceof $Reader))
12672
+ reader = $Reader.create(reader);
12673
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulTopicCreated(), key;
12674
+ while (reader.pos < end) {
12675
+ var tag = reader.uint32();
12676
+ switch (tag >>> 3) {
12677
+ case 1:
12678
+ reader.skip().pos++;
12679
+ if (message.name === $util.emptyObject)
12680
+ message.name = {};
12681
+ key = reader.string();
12682
+ reader.pos++;
12683
+ message.name[key] = reader.string();
12684
+ break;
12685
+ case 2:
12686
+ message.slug = reader.string();
12687
+ break;
12688
+ case 3:
12689
+ reader.skip().pos++;
12690
+ if (message.description === $util.emptyObject)
12691
+ message.description = {};
12692
+ key = reader.string();
12693
+ reader.pos++;
12694
+ message.description[key] = reader.string();
12695
+ break;
12696
+ case 4:
12697
+ message.location = reader.string();
12698
+ break;
12699
+ case 5:
12700
+ message.primaryColor = reader.string();
12701
+ break;
12702
+ case 6:
12703
+ message.secondaryColor = reader.string();
12704
+ break;
12705
+ case 7:
12706
+ message.tertiaryColor = reader.string();
12707
+ break;
12708
+ case 8:
12709
+ reader.skip().pos++;
12710
+ if (message.iconMedia === $util.emptyObject)
12711
+ message.iconMedia = {};
12712
+ key = reader.string();
12713
+ reader.pos++;
12714
+ message.iconMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
12715
+ break;
12716
+ case 9:
12717
+ reader.skip().pos++;
12718
+ if (message.headerPatternMedia === $util.emptyObject)
12719
+ message.headerPatternMedia = {};
12720
+ key = reader.string();
12721
+ reader.pos++;
12722
+ message.headerPatternMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
12723
+ break;
12724
+ case 10:
12725
+ reader.skip().pos++;
12726
+ if (message.menuPatternMedia === $util.emptyObject)
12727
+ message.menuPatternMedia = {};
12728
+ key = reader.string();
12729
+ reader.pos++;
12730
+ message.menuPatternMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
12731
+ break;
12732
+ case 11:
12733
+ if (!(message.accessGroups && message.accessGroups.length))
12734
+ message.accessGroups = [];
12735
+ message.accessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
12736
+ break;
12737
+ case 12:
12738
+ message.createdAt = reader.uint64();
12739
+ break;
12740
+ default:
12741
+ reader.skipType(tag & 7);
12742
+ break;
12743
+ }
12744
+ }
12745
+ return message;
12746
+ };
12747
+
12748
+ /**
12749
+ * Decodes a ContentfulTopicCreated message from the specified reader or buffer, length delimited.
12750
+ * @function decodeDelimited
12751
+ * @memberof ContentfulTopicCreated
12752
+ * @static
12753
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
12754
+ * @returns {ContentfulTopicCreated} ContentfulTopicCreated
12755
+ * @throws {Error} If the payload is not a reader or valid buffer
12756
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
12757
+ */
12758
+ ContentfulTopicCreated.decodeDelimited = function decodeDelimited(reader) {
12759
+ if (!(reader instanceof $Reader))
12760
+ reader = new $Reader(reader);
12761
+ return this.decode(reader, reader.uint32());
12762
+ };
12763
+
12764
+ /**
12765
+ * Verifies a ContentfulTopicCreated message.
12766
+ * @function verify
12767
+ * @memberof ContentfulTopicCreated
12768
+ * @static
12769
+ * @param {Object.<string,*>} message Plain object to verify
12770
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
12771
+ */
12772
+ ContentfulTopicCreated.verify = function verify(message) {
12773
+ if (typeof message !== "object" || message === null)
12774
+ return "object expected";
12775
+ if (message.name != null && message.hasOwnProperty("name")) {
12776
+ if (!$util.isObject(message.name))
12777
+ return "name: object expected";
12778
+ var key = Object.keys(message.name);
12779
+ for (var i = 0; i < key.length; ++i)
12780
+ if (!$util.isString(message.name[key[i]]))
12781
+ return "name: string{k:string} expected";
12782
+ }
12783
+ if (message.slug != null && message.hasOwnProperty("slug"))
12784
+ if (!$util.isString(message.slug))
12785
+ return "slug: string expected";
12786
+ if (message.description != null && message.hasOwnProperty("description")) {
12787
+ if (!$util.isObject(message.description))
12788
+ return "description: object expected";
12789
+ var key = Object.keys(message.description);
12790
+ for (var i = 0; i < key.length; ++i)
12791
+ if (!$util.isString(message.description[key[i]]))
12792
+ return "description: string{k:string} expected";
12793
+ }
12794
+ if (message.location != null && message.hasOwnProperty("location"))
12795
+ if (!$util.isString(message.location))
12796
+ return "location: string expected";
12797
+ if (message.primaryColor != null && message.hasOwnProperty("primaryColor"))
12798
+ if (!$util.isString(message.primaryColor))
12799
+ return "primaryColor: string expected";
12800
+ if (message.secondaryColor != null && message.hasOwnProperty("secondaryColor"))
12801
+ if (!$util.isString(message.secondaryColor))
12802
+ return "secondaryColor: string expected";
12803
+ if (message.tertiaryColor != null && message.hasOwnProperty("tertiaryColor"))
12804
+ if (!$util.isString(message.tertiaryColor))
12805
+ return "tertiaryColor: string expected";
12806
+ if (message.iconMedia != null && message.hasOwnProperty("iconMedia")) {
12807
+ if (!$util.isObject(message.iconMedia))
12808
+ return "iconMedia: object expected";
12809
+ var key = Object.keys(message.iconMedia);
12810
+ for (var i = 0; i < key.length; ++i) {
12811
+ var error = $root.contentful.IdReference.verify(message.iconMedia[key[i]]);
12812
+ if (error)
12813
+ return "iconMedia." + error;
12814
+ }
12815
+ }
12816
+ if (message.headerPatternMedia != null && message.hasOwnProperty("headerPatternMedia")) {
12817
+ if (!$util.isObject(message.headerPatternMedia))
12818
+ return "headerPatternMedia: object expected";
12819
+ var key = Object.keys(message.headerPatternMedia);
12820
+ for (var i = 0; i < key.length; ++i) {
12821
+ var error = $root.contentful.IdReference.verify(message.headerPatternMedia[key[i]]);
12822
+ if (error)
12823
+ return "headerPatternMedia." + error;
12824
+ }
12825
+ }
12826
+ if (message.menuPatternMedia != null && message.hasOwnProperty("menuPatternMedia")) {
12827
+ if (!$util.isObject(message.menuPatternMedia))
12828
+ return "menuPatternMedia: object expected";
12829
+ var key = Object.keys(message.menuPatternMedia);
12830
+ for (var i = 0; i < key.length; ++i) {
12831
+ var error = $root.contentful.IdReference.verify(message.menuPatternMedia[key[i]]);
12832
+ if (error)
12833
+ return "menuPatternMedia." + error;
12834
+ }
12835
+ }
12836
+ if (message.accessGroups != null && message.hasOwnProperty("accessGroups")) {
12837
+ if (!Array.isArray(message.accessGroups))
12838
+ return "accessGroups: array expected";
12839
+ for (var i = 0; i < message.accessGroups.length; ++i) {
12840
+ var error = $root.contentful.SlugReference.verify(message.accessGroups[i]);
12841
+ if (error)
12842
+ return "accessGroups." + error;
12843
+ }
12844
+ }
12845
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
12846
+ if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
12847
+ return "createdAt: integer|Long expected";
12848
+ return null;
12849
+ };
12850
+
12851
+ /**
12852
+ * Creates a ContentfulTopicCreated message from a plain object. Also converts values to their respective internal types.
12853
+ * @function fromObject
12854
+ * @memberof ContentfulTopicCreated
12855
+ * @static
12856
+ * @param {Object.<string,*>} object Plain object
12857
+ * @returns {ContentfulTopicCreated} ContentfulTopicCreated
12858
+ */
12859
+ ContentfulTopicCreated.fromObject = function fromObject(object) {
12860
+ if (object instanceof $root.ContentfulTopicCreated)
12861
+ return object;
12862
+ var message = new $root.ContentfulTopicCreated();
12863
+ if (object.name) {
12864
+ if (typeof object.name !== "object")
12865
+ throw TypeError(".ContentfulTopicCreated.name: object expected");
12866
+ message.name = {};
12867
+ for (var keys = Object.keys(object.name), i = 0; i < keys.length; ++i)
12868
+ message.name[keys[i]] = String(object.name[keys[i]]);
12869
+ }
12870
+ if (object.slug != null)
12871
+ message.slug = String(object.slug);
12872
+ if (object.description) {
12873
+ if (typeof object.description !== "object")
12874
+ throw TypeError(".ContentfulTopicCreated.description: object expected");
12875
+ message.description = {};
12876
+ for (var keys = Object.keys(object.description), i = 0; i < keys.length; ++i)
12877
+ message.description[keys[i]] = String(object.description[keys[i]]);
12878
+ }
12879
+ if (object.location != null)
12880
+ message.location = String(object.location);
12881
+ if (object.primaryColor != null)
12882
+ message.primaryColor = String(object.primaryColor);
12883
+ if (object.secondaryColor != null)
12884
+ message.secondaryColor = String(object.secondaryColor);
12885
+ if (object.tertiaryColor != null)
12886
+ message.tertiaryColor = String(object.tertiaryColor);
12887
+ if (object.iconMedia) {
12888
+ if (typeof object.iconMedia !== "object")
12889
+ throw TypeError(".ContentfulTopicCreated.iconMedia: object expected");
12890
+ message.iconMedia = {};
12891
+ for (var keys = Object.keys(object.iconMedia), i = 0; i < keys.length; ++i) {
12892
+ if (typeof object.iconMedia[keys[i]] !== "object")
12893
+ throw TypeError(".ContentfulTopicCreated.iconMedia: object expected");
12894
+ message.iconMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.iconMedia[keys[i]]);
12895
+ }
12896
+ }
12897
+ if (object.headerPatternMedia) {
12898
+ if (typeof object.headerPatternMedia !== "object")
12899
+ throw TypeError(".ContentfulTopicCreated.headerPatternMedia: object expected");
12900
+ message.headerPatternMedia = {};
12901
+ for (var keys = Object.keys(object.headerPatternMedia), i = 0; i < keys.length; ++i) {
12902
+ if (typeof object.headerPatternMedia[keys[i]] !== "object")
12903
+ throw TypeError(".ContentfulTopicCreated.headerPatternMedia: object expected");
12904
+ message.headerPatternMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.headerPatternMedia[keys[i]]);
12905
+ }
12906
+ }
12907
+ if (object.menuPatternMedia) {
12908
+ if (typeof object.menuPatternMedia !== "object")
12909
+ throw TypeError(".ContentfulTopicCreated.menuPatternMedia: object expected");
12910
+ message.menuPatternMedia = {};
12911
+ for (var keys = Object.keys(object.menuPatternMedia), i = 0; i < keys.length; ++i) {
12912
+ if (typeof object.menuPatternMedia[keys[i]] !== "object")
12913
+ throw TypeError(".ContentfulTopicCreated.menuPatternMedia: object expected");
12914
+ message.menuPatternMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.menuPatternMedia[keys[i]]);
12915
+ }
12916
+ }
12917
+ if (object.accessGroups) {
12918
+ if (!Array.isArray(object.accessGroups))
12919
+ throw TypeError(".ContentfulTopicCreated.accessGroups: array expected");
12920
+ message.accessGroups = [];
12921
+ for (var i = 0; i < object.accessGroups.length; ++i) {
12922
+ if (typeof object.accessGroups[i] !== "object")
12923
+ throw TypeError(".ContentfulTopicCreated.accessGroups: object expected");
12924
+ message.accessGroups[i] = $root.contentful.SlugReference.fromObject(object.accessGroups[i]);
12925
+ }
12926
+ }
12927
+ if (object.createdAt != null)
12928
+ if ($util.Long)
12929
+ (message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
12930
+ else if (typeof object.createdAt === "string")
12931
+ message.createdAt = parseInt(object.createdAt, 10);
12932
+ else if (typeof object.createdAt === "number")
12933
+ message.createdAt = object.createdAt;
12934
+ else if (typeof object.createdAt === "object")
12935
+ message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
12936
+ return message;
12937
+ };
12938
+
12939
+ /**
12940
+ * Creates a plain object from a ContentfulTopicCreated message. Also converts values to other types if specified.
12941
+ * @function toObject
12942
+ * @memberof ContentfulTopicCreated
12943
+ * @static
12944
+ * @param {ContentfulTopicCreated} message ContentfulTopicCreated
12945
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
12946
+ * @returns {Object.<string,*>} Plain object
12947
+ */
12948
+ ContentfulTopicCreated.toObject = function toObject(message, options) {
12949
+ if (!options)
12950
+ options = {};
12951
+ var object = {};
12952
+ if (options.arrays || options.defaults)
12953
+ object.accessGroups = [];
12954
+ if (options.objects || options.defaults) {
12955
+ object.name = {};
12956
+ object.description = {};
12957
+ object.iconMedia = {};
12958
+ object.headerPatternMedia = {};
12959
+ object.menuPatternMedia = {};
12960
+ }
12961
+ if (options.defaults) {
12962
+ object.slug = "";
12963
+ object.location = "";
12964
+ object.primaryColor = "";
12965
+ object.secondaryColor = "";
12966
+ object.tertiaryColor = "";
12967
+ if ($util.Long) {
12968
+ var long = new $util.Long(0, 0, true);
12969
+ object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
12970
+ } else
12971
+ object.createdAt = options.longs === String ? "0" : 0;
12972
+ }
12973
+ var keys2;
12974
+ if (message.name && (keys2 = Object.keys(message.name)).length) {
12975
+ object.name = {};
12976
+ for (var j = 0; j < keys2.length; ++j)
12977
+ object.name[keys2[j]] = message.name[keys2[j]];
12978
+ }
12979
+ if (message.slug != null && message.hasOwnProperty("slug"))
12980
+ object.slug = message.slug;
12981
+ if (message.description && (keys2 = Object.keys(message.description)).length) {
12982
+ object.description = {};
12983
+ for (var j = 0; j < keys2.length; ++j)
12984
+ object.description[keys2[j]] = message.description[keys2[j]];
12985
+ }
12986
+ if (message.location != null && message.hasOwnProperty("location"))
12987
+ object.location = message.location;
12988
+ if (message.primaryColor != null && message.hasOwnProperty("primaryColor"))
12989
+ object.primaryColor = message.primaryColor;
12990
+ if (message.secondaryColor != null && message.hasOwnProperty("secondaryColor"))
12991
+ object.secondaryColor = message.secondaryColor;
12992
+ if (message.tertiaryColor != null && message.hasOwnProperty("tertiaryColor"))
12993
+ object.tertiaryColor = message.tertiaryColor;
12994
+ if (message.iconMedia && (keys2 = Object.keys(message.iconMedia)).length) {
12995
+ object.iconMedia = {};
12996
+ for (var j = 0; j < keys2.length; ++j)
12997
+ object.iconMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.iconMedia[keys2[j]], options);
12998
+ }
12999
+ if (message.headerPatternMedia && (keys2 = Object.keys(message.headerPatternMedia)).length) {
13000
+ object.headerPatternMedia = {};
13001
+ for (var j = 0; j < keys2.length; ++j)
13002
+ object.headerPatternMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.headerPatternMedia[keys2[j]], options);
13003
+ }
13004
+ if (message.menuPatternMedia && (keys2 = Object.keys(message.menuPatternMedia)).length) {
13005
+ object.menuPatternMedia = {};
13006
+ for (var j = 0; j < keys2.length; ++j)
13007
+ object.menuPatternMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.menuPatternMedia[keys2[j]], options);
13008
+ }
13009
+ if (message.accessGroups && message.accessGroups.length) {
13010
+ object.accessGroups = [];
13011
+ for (var j = 0; j < message.accessGroups.length; ++j)
13012
+ object.accessGroups[j] = $root.contentful.SlugReference.toObject(message.accessGroups[j], options);
13013
+ }
13014
+ if (message.createdAt != null && message.hasOwnProperty("createdAt"))
13015
+ if (typeof message.createdAt === "number")
13016
+ object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
13017
+ else
13018
+ 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;
13019
+ return object;
13020
+ };
13021
+
13022
+ /**
13023
+ * Converts this ContentfulTopicCreated to JSON.
13024
+ * @function toJSON
13025
+ * @memberof ContentfulTopicCreated
13026
+ * @instance
13027
+ * @returns {Object.<string,*>} JSON object
13028
+ */
13029
+ ContentfulTopicCreated.prototype.toJSON = function toJSON() {
13030
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
13031
+ };
13032
+
13033
+ return ContentfulTopicCreated;
13034
+ })();
13035
+
13036
+ $root.ContentfulTopicUpdated = (function() {
13037
+
13038
+ /**
13039
+ * Properties of a ContentfulTopicUpdated.
13040
+ * @exports IContentfulTopicUpdated
13041
+ * @interface IContentfulTopicUpdated
13042
+ * @property {Object.<string,string>|null} [name] ContentfulTopicUpdated name
13043
+ * @property {string|null} [slug] ContentfulTopicUpdated slug
13044
+ * @property {Object.<string,string>|null} [description] ContentfulTopicUpdated description
13045
+ * @property {string|null} [location] ContentfulTopicUpdated location
13046
+ * @property {string|null} [primaryColor] ContentfulTopicUpdated primaryColor
13047
+ * @property {string|null} [secondaryColor] ContentfulTopicUpdated secondaryColor
13048
+ * @property {string|null} [tertiaryColor] ContentfulTopicUpdated tertiaryColor
13049
+ * @property {Object.<string,contentful.IIdReference>|null} [iconMedia] ContentfulTopicUpdated iconMedia
13050
+ * @property {Object.<string,contentful.IIdReference>|null} [headerPatternMedia] ContentfulTopicUpdated headerPatternMedia
13051
+ * @property {Object.<string,contentful.IIdReference>|null} [menuPatternMedia] ContentfulTopicUpdated menuPatternMedia
13052
+ * @property {Array.<contentful.ISlugReference>|null} [accessGroups] ContentfulTopicUpdated accessGroups
13053
+ * @property {number|Long|null} [updatedAt] ContentfulTopicUpdated updatedAt
13054
+ */
13055
+
13056
+ /**
13057
+ * Constructs a new ContentfulTopicUpdated.
13058
+ * @exports ContentfulTopicUpdated
13059
+ * @classdesc Represents a ContentfulTopicUpdated.
13060
+ * @implements IContentfulTopicUpdated
13061
+ * @constructor
13062
+ * @param {IContentfulTopicUpdated=} [properties] Properties to set
13063
+ */
13064
+ function ContentfulTopicUpdated(properties) {
13065
+ this.name = {};
13066
+ this.description = {};
13067
+ this.iconMedia = {};
13068
+ this.headerPatternMedia = {};
13069
+ this.menuPatternMedia = {};
13070
+ this.accessGroups = [];
13071
+ if (properties)
13072
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
13073
+ if (properties[keys[i]] != null)
13074
+ this[keys[i]] = properties[keys[i]];
13075
+ }
13076
+
13077
+ /**
13078
+ * ContentfulTopicUpdated name.
13079
+ * @member {Object.<string,string>} name
13080
+ * @memberof ContentfulTopicUpdated
13081
+ * @instance
13082
+ */
13083
+ ContentfulTopicUpdated.prototype.name = $util.emptyObject;
13084
+
13085
+ /**
13086
+ * ContentfulTopicUpdated slug.
13087
+ * @member {string} slug
13088
+ * @memberof ContentfulTopicUpdated
13089
+ * @instance
13090
+ */
13091
+ ContentfulTopicUpdated.prototype.slug = "";
13092
+
13093
+ /**
13094
+ * ContentfulTopicUpdated description.
13095
+ * @member {Object.<string,string>} description
13096
+ * @memberof ContentfulTopicUpdated
13097
+ * @instance
13098
+ */
13099
+ ContentfulTopicUpdated.prototype.description = $util.emptyObject;
13100
+
13101
+ /**
13102
+ * ContentfulTopicUpdated location.
13103
+ * @member {string} location
13104
+ * @memberof ContentfulTopicUpdated
13105
+ * @instance
13106
+ */
13107
+ ContentfulTopicUpdated.prototype.location = "";
13108
+
13109
+ /**
13110
+ * ContentfulTopicUpdated primaryColor.
13111
+ * @member {string} primaryColor
13112
+ * @memberof ContentfulTopicUpdated
13113
+ * @instance
13114
+ */
13115
+ ContentfulTopicUpdated.prototype.primaryColor = "";
13116
+
13117
+ /**
13118
+ * ContentfulTopicUpdated secondaryColor.
13119
+ * @member {string} secondaryColor
13120
+ * @memberof ContentfulTopicUpdated
13121
+ * @instance
13122
+ */
13123
+ ContentfulTopicUpdated.prototype.secondaryColor = "";
13124
+
13125
+ /**
13126
+ * ContentfulTopicUpdated tertiaryColor.
13127
+ * @member {string} tertiaryColor
13128
+ * @memberof ContentfulTopicUpdated
13129
+ * @instance
13130
+ */
13131
+ ContentfulTopicUpdated.prototype.tertiaryColor = "";
13132
+
13133
+ /**
13134
+ * ContentfulTopicUpdated iconMedia.
13135
+ * @member {Object.<string,contentful.IIdReference>} iconMedia
13136
+ * @memberof ContentfulTopicUpdated
13137
+ * @instance
13138
+ */
13139
+ ContentfulTopicUpdated.prototype.iconMedia = $util.emptyObject;
13140
+
13141
+ /**
13142
+ * ContentfulTopicUpdated headerPatternMedia.
13143
+ * @member {Object.<string,contentful.IIdReference>} headerPatternMedia
13144
+ * @memberof ContentfulTopicUpdated
13145
+ * @instance
13146
+ */
13147
+ ContentfulTopicUpdated.prototype.headerPatternMedia = $util.emptyObject;
13148
+
13149
+ /**
13150
+ * ContentfulTopicUpdated menuPatternMedia.
13151
+ * @member {Object.<string,contentful.IIdReference>} menuPatternMedia
13152
+ * @memberof ContentfulTopicUpdated
13153
+ * @instance
13154
+ */
13155
+ ContentfulTopicUpdated.prototype.menuPatternMedia = $util.emptyObject;
13156
+
13157
+ /**
13158
+ * ContentfulTopicUpdated accessGroups.
13159
+ * @member {Array.<contentful.ISlugReference>} accessGroups
13160
+ * @memberof ContentfulTopicUpdated
13161
+ * @instance
13162
+ */
13163
+ ContentfulTopicUpdated.prototype.accessGroups = $util.emptyArray;
13164
+
13165
+ /**
13166
+ * ContentfulTopicUpdated updatedAt.
13167
+ * @member {number|Long} updatedAt
13168
+ * @memberof ContentfulTopicUpdated
13169
+ * @instance
13170
+ */
13171
+ ContentfulTopicUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
13172
+
13173
+ /**
13174
+ * Creates a new ContentfulTopicUpdated instance using the specified properties.
13175
+ * @function create
13176
+ * @memberof ContentfulTopicUpdated
13177
+ * @static
13178
+ * @param {IContentfulTopicUpdated=} [properties] Properties to set
13179
+ * @returns {ContentfulTopicUpdated} ContentfulTopicUpdated instance
13180
+ */
13181
+ ContentfulTopicUpdated.create = function create(properties) {
13182
+ return new ContentfulTopicUpdated(properties);
13183
+ };
13184
+
13185
+ /**
13186
+ * Encodes the specified ContentfulTopicUpdated message. Does not implicitly {@link ContentfulTopicUpdated.verify|verify} messages.
13187
+ * @function encode
13188
+ * @memberof ContentfulTopicUpdated
13189
+ * @static
13190
+ * @param {IContentfulTopicUpdated} message ContentfulTopicUpdated message or plain object to encode
13191
+ * @param {$protobuf.Writer} [writer] Writer to encode to
13192
+ * @returns {$protobuf.Writer} Writer
13193
+ */
13194
+ ContentfulTopicUpdated.encode = function encode(message, writer) {
13195
+ if (!writer)
13196
+ writer = $Writer.create();
13197
+ if (message.name != null && message.hasOwnProperty("name"))
13198
+ for (var keys = Object.keys(message.name), i = 0; i < keys.length; ++i)
13199
+ writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.name[keys[i]]).ldelim();
13200
+ if (message.slug != null && message.hasOwnProperty("slug"))
13201
+ writer.uint32(/* id 2, wireType 2 =*/18).string(message.slug);
13202
+ if (message.description != null && message.hasOwnProperty("description"))
13203
+ for (var keys = Object.keys(message.description), i = 0; i < keys.length; ++i)
13204
+ 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.description[keys[i]]).ldelim();
13205
+ if (message.location != null && message.hasOwnProperty("location"))
13206
+ writer.uint32(/* id 4, wireType 2 =*/34).string(message.location);
13207
+ if (message.primaryColor != null && message.hasOwnProperty("primaryColor"))
13208
+ writer.uint32(/* id 5, wireType 2 =*/42).string(message.primaryColor);
13209
+ if (message.secondaryColor != null && message.hasOwnProperty("secondaryColor"))
13210
+ writer.uint32(/* id 6, wireType 2 =*/50).string(message.secondaryColor);
13211
+ if (message.tertiaryColor != null && message.hasOwnProperty("tertiaryColor"))
13212
+ writer.uint32(/* id 7, wireType 2 =*/58).string(message.tertiaryColor);
13213
+ if (message.iconMedia != null && message.hasOwnProperty("iconMedia"))
13214
+ for (var keys = Object.keys(message.iconMedia), i = 0; i < keys.length; ++i) {
13215
+ writer.uint32(/* id 8, wireType 2 =*/66).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
13216
+ $root.contentful.IdReference.encode(message.iconMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
13217
+ }
13218
+ if (message.headerPatternMedia != null && message.hasOwnProperty("headerPatternMedia"))
13219
+ for (var keys = Object.keys(message.headerPatternMedia), i = 0; i < keys.length; ++i) {
13220
+ writer.uint32(/* id 9, wireType 2 =*/74).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
13221
+ $root.contentful.IdReference.encode(message.headerPatternMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
13222
+ }
13223
+ if (message.menuPatternMedia != null && message.hasOwnProperty("menuPatternMedia"))
13224
+ for (var keys = Object.keys(message.menuPatternMedia), i = 0; i < keys.length; ++i) {
13225
+ writer.uint32(/* id 10, wireType 2 =*/82).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
13226
+ $root.contentful.IdReference.encode(message.menuPatternMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
13227
+ }
13228
+ if (message.accessGroups != null && message.accessGroups.length)
13229
+ for (var i = 0; i < message.accessGroups.length; ++i)
13230
+ $root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
13231
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
13232
+ writer.uint32(/* id 12, wireType 0 =*/96).uint64(message.updatedAt);
13233
+ return writer;
13234
+ };
13235
+
13236
+ /**
13237
+ * Encodes the specified ContentfulTopicUpdated message, length delimited. Does not implicitly {@link ContentfulTopicUpdated.verify|verify} messages.
13238
+ * @function encodeDelimited
13239
+ * @memberof ContentfulTopicUpdated
13240
+ * @static
13241
+ * @param {IContentfulTopicUpdated} message ContentfulTopicUpdated message or plain object to encode
13242
+ * @param {$protobuf.Writer} [writer] Writer to encode to
13243
+ * @returns {$protobuf.Writer} Writer
13244
+ */
13245
+ ContentfulTopicUpdated.encodeDelimited = function encodeDelimited(message, writer) {
13246
+ return this.encode(message, writer).ldelim();
13247
+ };
13248
+
13249
+ /**
13250
+ * Decodes a ContentfulTopicUpdated message from the specified reader or buffer.
13251
+ * @function decode
13252
+ * @memberof ContentfulTopicUpdated
13253
+ * @static
13254
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
13255
+ * @param {number} [length] Message length if known beforehand
13256
+ * @returns {ContentfulTopicUpdated} ContentfulTopicUpdated
13257
+ * @throws {Error} If the payload is not a reader or valid buffer
13258
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
13259
+ */
13260
+ ContentfulTopicUpdated.decode = function decode(reader, length) {
13261
+ if (!(reader instanceof $Reader))
13262
+ reader = $Reader.create(reader);
13263
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulTopicUpdated(), key;
13264
+ while (reader.pos < end) {
13265
+ var tag = reader.uint32();
13266
+ switch (tag >>> 3) {
13267
+ case 1:
13268
+ reader.skip().pos++;
13269
+ if (message.name === $util.emptyObject)
13270
+ message.name = {};
13271
+ key = reader.string();
13272
+ reader.pos++;
13273
+ message.name[key] = reader.string();
13274
+ break;
13275
+ case 2:
13276
+ message.slug = reader.string();
13277
+ break;
13278
+ case 3:
13279
+ reader.skip().pos++;
13280
+ if (message.description === $util.emptyObject)
13281
+ message.description = {};
13282
+ key = reader.string();
13283
+ reader.pos++;
13284
+ message.description[key] = reader.string();
13285
+ break;
13286
+ case 4:
13287
+ message.location = reader.string();
13288
+ break;
13289
+ case 5:
13290
+ message.primaryColor = reader.string();
13291
+ break;
13292
+ case 6:
13293
+ message.secondaryColor = reader.string();
13294
+ break;
13295
+ case 7:
13296
+ message.tertiaryColor = reader.string();
13297
+ break;
13298
+ case 8:
13299
+ reader.skip().pos++;
13300
+ if (message.iconMedia === $util.emptyObject)
13301
+ message.iconMedia = {};
13302
+ key = reader.string();
13303
+ reader.pos++;
13304
+ message.iconMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
13305
+ break;
13306
+ case 9:
13307
+ reader.skip().pos++;
13308
+ if (message.headerPatternMedia === $util.emptyObject)
13309
+ message.headerPatternMedia = {};
13310
+ key = reader.string();
13311
+ reader.pos++;
13312
+ message.headerPatternMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
13313
+ break;
13314
+ case 10:
13315
+ reader.skip().pos++;
13316
+ if (message.menuPatternMedia === $util.emptyObject)
13317
+ message.menuPatternMedia = {};
13318
+ key = reader.string();
13319
+ reader.pos++;
13320
+ message.menuPatternMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
13321
+ break;
13322
+ case 11:
13323
+ if (!(message.accessGroups && message.accessGroups.length))
13324
+ message.accessGroups = [];
13325
+ message.accessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
13326
+ break;
13327
+ case 12:
13328
+ message.updatedAt = reader.uint64();
13329
+ break;
13330
+ default:
13331
+ reader.skipType(tag & 7);
13332
+ break;
13333
+ }
13334
+ }
13335
+ return message;
13336
+ };
13337
+
13338
+ /**
13339
+ * Decodes a ContentfulTopicUpdated message from the specified reader or buffer, length delimited.
13340
+ * @function decodeDelimited
13341
+ * @memberof ContentfulTopicUpdated
13342
+ * @static
13343
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
13344
+ * @returns {ContentfulTopicUpdated} ContentfulTopicUpdated
13345
+ * @throws {Error} If the payload is not a reader or valid buffer
13346
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
13347
+ */
13348
+ ContentfulTopicUpdated.decodeDelimited = function decodeDelimited(reader) {
13349
+ if (!(reader instanceof $Reader))
13350
+ reader = new $Reader(reader);
13351
+ return this.decode(reader, reader.uint32());
13352
+ };
13353
+
13354
+ /**
13355
+ * Verifies a ContentfulTopicUpdated message.
13356
+ * @function verify
13357
+ * @memberof ContentfulTopicUpdated
13358
+ * @static
13359
+ * @param {Object.<string,*>} message Plain object to verify
13360
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
13361
+ */
13362
+ ContentfulTopicUpdated.verify = function verify(message) {
13363
+ if (typeof message !== "object" || message === null)
13364
+ return "object expected";
13365
+ if (message.name != null && message.hasOwnProperty("name")) {
13366
+ if (!$util.isObject(message.name))
13367
+ return "name: object expected";
13368
+ var key = Object.keys(message.name);
13369
+ for (var i = 0; i < key.length; ++i)
13370
+ if (!$util.isString(message.name[key[i]]))
13371
+ return "name: string{k:string} expected";
13372
+ }
13373
+ if (message.slug != null && message.hasOwnProperty("slug"))
13374
+ if (!$util.isString(message.slug))
13375
+ return "slug: string expected";
13376
+ if (message.description != null && message.hasOwnProperty("description")) {
13377
+ if (!$util.isObject(message.description))
13378
+ return "description: object expected";
13379
+ var key = Object.keys(message.description);
13380
+ for (var i = 0; i < key.length; ++i)
13381
+ if (!$util.isString(message.description[key[i]]))
13382
+ return "description: string{k:string} expected";
13383
+ }
13384
+ if (message.location != null && message.hasOwnProperty("location"))
13385
+ if (!$util.isString(message.location))
13386
+ return "location: string expected";
13387
+ if (message.primaryColor != null && message.hasOwnProperty("primaryColor"))
13388
+ if (!$util.isString(message.primaryColor))
13389
+ return "primaryColor: string expected";
13390
+ if (message.secondaryColor != null && message.hasOwnProperty("secondaryColor"))
13391
+ if (!$util.isString(message.secondaryColor))
13392
+ return "secondaryColor: string expected";
13393
+ if (message.tertiaryColor != null && message.hasOwnProperty("tertiaryColor"))
13394
+ if (!$util.isString(message.tertiaryColor))
13395
+ return "tertiaryColor: string expected";
13396
+ if (message.iconMedia != null && message.hasOwnProperty("iconMedia")) {
13397
+ if (!$util.isObject(message.iconMedia))
13398
+ return "iconMedia: object expected";
13399
+ var key = Object.keys(message.iconMedia);
13400
+ for (var i = 0; i < key.length; ++i) {
13401
+ var error = $root.contentful.IdReference.verify(message.iconMedia[key[i]]);
13402
+ if (error)
13403
+ return "iconMedia." + error;
13404
+ }
13405
+ }
13406
+ if (message.headerPatternMedia != null && message.hasOwnProperty("headerPatternMedia")) {
13407
+ if (!$util.isObject(message.headerPatternMedia))
13408
+ return "headerPatternMedia: object expected";
13409
+ var key = Object.keys(message.headerPatternMedia);
13410
+ for (var i = 0; i < key.length; ++i) {
13411
+ var error = $root.contentful.IdReference.verify(message.headerPatternMedia[key[i]]);
13412
+ if (error)
13413
+ return "headerPatternMedia." + error;
13414
+ }
13415
+ }
13416
+ if (message.menuPatternMedia != null && message.hasOwnProperty("menuPatternMedia")) {
13417
+ if (!$util.isObject(message.menuPatternMedia))
13418
+ return "menuPatternMedia: object expected";
13419
+ var key = Object.keys(message.menuPatternMedia);
13420
+ for (var i = 0; i < key.length; ++i) {
13421
+ var error = $root.contentful.IdReference.verify(message.menuPatternMedia[key[i]]);
13422
+ if (error)
13423
+ return "menuPatternMedia." + error;
13424
+ }
13425
+ }
13426
+ if (message.accessGroups != null && message.hasOwnProperty("accessGroups")) {
13427
+ if (!Array.isArray(message.accessGroups))
13428
+ return "accessGroups: array expected";
13429
+ for (var i = 0; i < message.accessGroups.length; ++i) {
13430
+ var error = $root.contentful.SlugReference.verify(message.accessGroups[i]);
13431
+ if (error)
13432
+ return "accessGroups." + error;
13433
+ }
13434
+ }
13435
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
13436
+ if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
13437
+ return "updatedAt: integer|Long expected";
13438
+ return null;
13439
+ };
13440
+
13441
+ /**
13442
+ * Creates a ContentfulTopicUpdated message from a plain object. Also converts values to their respective internal types.
13443
+ * @function fromObject
13444
+ * @memberof ContentfulTopicUpdated
13445
+ * @static
13446
+ * @param {Object.<string,*>} object Plain object
13447
+ * @returns {ContentfulTopicUpdated} ContentfulTopicUpdated
13448
+ */
13449
+ ContentfulTopicUpdated.fromObject = function fromObject(object) {
13450
+ if (object instanceof $root.ContentfulTopicUpdated)
13451
+ return object;
13452
+ var message = new $root.ContentfulTopicUpdated();
13453
+ if (object.name) {
13454
+ if (typeof object.name !== "object")
13455
+ throw TypeError(".ContentfulTopicUpdated.name: object expected");
13456
+ message.name = {};
13457
+ for (var keys = Object.keys(object.name), i = 0; i < keys.length; ++i)
13458
+ message.name[keys[i]] = String(object.name[keys[i]]);
13459
+ }
13460
+ if (object.slug != null)
13461
+ message.slug = String(object.slug);
13462
+ if (object.description) {
13463
+ if (typeof object.description !== "object")
13464
+ throw TypeError(".ContentfulTopicUpdated.description: object expected");
13465
+ message.description = {};
13466
+ for (var keys = Object.keys(object.description), i = 0; i < keys.length; ++i)
13467
+ message.description[keys[i]] = String(object.description[keys[i]]);
13468
+ }
13469
+ if (object.location != null)
13470
+ message.location = String(object.location);
13471
+ if (object.primaryColor != null)
13472
+ message.primaryColor = String(object.primaryColor);
13473
+ if (object.secondaryColor != null)
13474
+ message.secondaryColor = String(object.secondaryColor);
13475
+ if (object.tertiaryColor != null)
13476
+ message.tertiaryColor = String(object.tertiaryColor);
13477
+ if (object.iconMedia) {
13478
+ if (typeof object.iconMedia !== "object")
13479
+ throw TypeError(".ContentfulTopicUpdated.iconMedia: object expected");
13480
+ message.iconMedia = {};
13481
+ for (var keys = Object.keys(object.iconMedia), i = 0; i < keys.length; ++i) {
13482
+ if (typeof object.iconMedia[keys[i]] !== "object")
13483
+ throw TypeError(".ContentfulTopicUpdated.iconMedia: object expected");
13484
+ message.iconMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.iconMedia[keys[i]]);
13485
+ }
13486
+ }
13487
+ if (object.headerPatternMedia) {
13488
+ if (typeof object.headerPatternMedia !== "object")
13489
+ throw TypeError(".ContentfulTopicUpdated.headerPatternMedia: object expected");
13490
+ message.headerPatternMedia = {};
13491
+ for (var keys = Object.keys(object.headerPatternMedia), i = 0; i < keys.length; ++i) {
13492
+ if (typeof object.headerPatternMedia[keys[i]] !== "object")
13493
+ throw TypeError(".ContentfulTopicUpdated.headerPatternMedia: object expected");
13494
+ message.headerPatternMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.headerPatternMedia[keys[i]]);
13495
+ }
13496
+ }
13497
+ if (object.menuPatternMedia) {
13498
+ if (typeof object.menuPatternMedia !== "object")
13499
+ throw TypeError(".ContentfulTopicUpdated.menuPatternMedia: object expected");
13500
+ message.menuPatternMedia = {};
13501
+ for (var keys = Object.keys(object.menuPatternMedia), i = 0; i < keys.length; ++i) {
13502
+ if (typeof object.menuPatternMedia[keys[i]] !== "object")
13503
+ throw TypeError(".ContentfulTopicUpdated.menuPatternMedia: object expected");
13504
+ message.menuPatternMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.menuPatternMedia[keys[i]]);
13505
+ }
13506
+ }
13507
+ if (object.accessGroups) {
13508
+ if (!Array.isArray(object.accessGroups))
13509
+ throw TypeError(".ContentfulTopicUpdated.accessGroups: array expected");
13510
+ message.accessGroups = [];
13511
+ for (var i = 0; i < object.accessGroups.length; ++i) {
13512
+ if (typeof object.accessGroups[i] !== "object")
13513
+ throw TypeError(".ContentfulTopicUpdated.accessGroups: object expected");
13514
+ message.accessGroups[i] = $root.contentful.SlugReference.fromObject(object.accessGroups[i]);
13515
+ }
13516
+ }
13517
+ if (object.updatedAt != null)
13518
+ if ($util.Long)
13519
+ (message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
13520
+ else if (typeof object.updatedAt === "string")
13521
+ message.updatedAt = parseInt(object.updatedAt, 10);
13522
+ else if (typeof object.updatedAt === "number")
13523
+ message.updatedAt = object.updatedAt;
13524
+ else if (typeof object.updatedAt === "object")
13525
+ message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
13526
+ return message;
13527
+ };
13528
+
13529
+ /**
13530
+ * Creates a plain object from a ContentfulTopicUpdated message. Also converts values to other types if specified.
13531
+ * @function toObject
13532
+ * @memberof ContentfulTopicUpdated
13533
+ * @static
13534
+ * @param {ContentfulTopicUpdated} message ContentfulTopicUpdated
13535
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
13536
+ * @returns {Object.<string,*>} Plain object
13537
+ */
13538
+ ContentfulTopicUpdated.toObject = function toObject(message, options) {
13539
+ if (!options)
13540
+ options = {};
13541
+ var object = {};
13542
+ if (options.arrays || options.defaults)
13543
+ object.accessGroups = [];
13544
+ if (options.objects || options.defaults) {
13545
+ object.name = {};
13546
+ object.description = {};
13547
+ object.iconMedia = {};
13548
+ object.headerPatternMedia = {};
13549
+ object.menuPatternMedia = {};
13550
+ }
13551
+ if (options.defaults) {
13552
+ object.slug = "";
13553
+ object.location = "";
13554
+ object.primaryColor = "";
13555
+ object.secondaryColor = "";
13556
+ object.tertiaryColor = "";
13557
+ if ($util.Long) {
13558
+ var long = new $util.Long(0, 0, true);
13559
+ object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
13560
+ } else
13561
+ object.updatedAt = options.longs === String ? "0" : 0;
13562
+ }
13563
+ var keys2;
13564
+ if (message.name && (keys2 = Object.keys(message.name)).length) {
13565
+ object.name = {};
13566
+ for (var j = 0; j < keys2.length; ++j)
13567
+ object.name[keys2[j]] = message.name[keys2[j]];
13568
+ }
13569
+ if (message.slug != null && message.hasOwnProperty("slug"))
13570
+ object.slug = message.slug;
13571
+ if (message.description && (keys2 = Object.keys(message.description)).length) {
13572
+ object.description = {};
13573
+ for (var j = 0; j < keys2.length; ++j)
13574
+ object.description[keys2[j]] = message.description[keys2[j]];
13575
+ }
13576
+ if (message.location != null && message.hasOwnProperty("location"))
13577
+ object.location = message.location;
13578
+ if (message.primaryColor != null && message.hasOwnProperty("primaryColor"))
13579
+ object.primaryColor = message.primaryColor;
13580
+ if (message.secondaryColor != null && message.hasOwnProperty("secondaryColor"))
13581
+ object.secondaryColor = message.secondaryColor;
13582
+ if (message.tertiaryColor != null && message.hasOwnProperty("tertiaryColor"))
13583
+ object.tertiaryColor = message.tertiaryColor;
13584
+ if (message.iconMedia && (keys2 = Object.keys(message.iconMedia)).length) {
13585
+ object.iconMedia = {};
13586
+ for (var j = 0; j < keys2.length; ++j)
13587
+ object.iconMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.iconMedia[keys2[j]], options);
13588
+ }
13589
+ if (message.headerPatternMedia && (keys2 = Object.keys(message.headerPatternMedia)).length) {
13590
+ object.headerPatternMedia = {};
13591
+ for (var j = 0; j < keys2.length; ++j)
13592
+ object.headerPatternMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.headerPatternMedia[keys2[j]], options);
13593
+ }
13594
+ if (message.menuPatternMedia && (keys2 = Object.keys(message.menuPatternMedia)).length) {
13595
+ object.menuPatternMedia = {};
13596
+ for (var j = 0; j < keys2.length; ++j)
13597
+ object.menuPatternMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.menuPatternMedia[keys2[j]], options);
13598
+ }
13599
+ if (message.accessGroups && message.accessGroups.length) {
13600
+ object.accessGroups = [];
13601
+ for (var j = 0; j < message.accessGroups.length; ++j)
13602
+ object.accessGroups[j] = $root.contentful.SlugReference.toObject(message.accessGroups[j], options);
13603
+ }
13604
+ if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
13605
+ if (typeof message.updatedAt === "number")
13606
+ object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
13607
+ else
13608
+ 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;
13609
+ return object;
13610
+ };
13611
+
13612
+ /**
13613
+ * Converts this ContentfulTopicUpdated to JSON.
13614
+ * @function toJSON
13615
+ * @memberof ContentfulTopicUpdated
13616
+ * @instance
13617
+ * @returns {Object.<string,*>} JSON object
13618
+ */
13619
+ ContentfulTopicUpdated.prototype.toJSON = function toJSON() {
13620
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
13621
+ };
13622
+
13623
+ return ContentfulTopicUpdated;
13624
+ })();
13625
+
13626
+ $root.ContentfulTopicDeleted = (function() {
13627
+
13628
+ /**
13629
+ * Properties of a ContentfulTopicDeleted.
13630
+ * @exports IContentfulTopicDeleted
13631
+ * @interface IContentfulTopicDeleted
13632
+ * @property {string|null} [slug] ContentfulTopicDeleted slug
13633
+ * @property {number|Long|null} [deletedAt] ContentfulTopicDeleted deletedAt
13634
+ */
13635
+
13636
+ /**
13637
+ * Constructs a new ContentfulTopicDeleted.
13638
+ * @exports ContentfulTopicDeleted
13639
+ * @classdesc Represents a ContentfulTopicDeleted.
13640
+ * @implements IContentfulTopicDeleted
13641
+ * @constructor
13642
+ * @param {IContentfulTopicDeleted=} [properties] Properties to set
13643
+ */
13644
+ function ContentfulTopicDeleted(properties) {
13645
+ if (properties)
13646
+ for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
13647
+ if (properties[keys[i]] != null)
13648
+ this[keys[i]] = properties[keys[i]];
13649
+ }
13650
+
13651
+ /**
13652
+ * ContentfulTopicDeleted slug.
13653
+ * @member {string} slug
13654
+ * @memberof ContentfulTopicDeleted
13655
+ * @instance
13656
+ */
13657
+ ContentfulTopicDeleted.prototype.slug = "";
13658
+
13659
+ /**
13660
+ * ContentfulTopicDeleted deletedAt.
13661
+ * @member {number|Long} deletedAt
13662
+ * @memberof ContentfulTopicDeleted
13663
+ * @instance
13664
+ */
13665
+ ContentfulTopicDeleted.prototype.deletedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
13666
+
13667
+ /**
13668
+ * Creates a new ContentfulTopicDeleted instance using the specified properties.
13669
+ * @function create
13670
+ * @memberof ContentfulTopicDeleted
13671
+ * @static
13672
+ * @param {IContentfulTopicDeleted=} [properties] Properties to set
13673
+ * @returns {ContentfulTopicDeleted} ContentfulTopicDeleted instance
13674
+ */
13675
+ ContentfulTopicDeleted.create = function create(properties) {
13676
+ return new ContentfulTopicDeleted(properties);
13677
+ };
13678
+
13679
+ /**
13680
+ * Encodes the specified ContentfulTopicDeleted message. Does not implicitly {@link ContentfulTopicDeleted.verify|verify} messages.
13681
+ * @function encode
13682
+ * @memberof ContentfulTopicDeleted
13683
+ * @static
13684
+ * @param {IContentfulTopicDeleted} message ContentfulTopicDeleted message or plain object to encode
13685
+ * @param {$protobuf.Writer} [writer] Writer to encode to
13686
+ * @returns {$protobuf.Writer} Writer
13687
+ */
13688
+ ContentfulTopicDeleted.encode = function encode(message, writer) {
13689
+ if (!writer)
13690
+ writer = $Writer.create();
13691
+ if (message.slug != null && message.hasOwnProperty("slug"))
13692
+ writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
13693
+ if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
13694
+ writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.deletedAt);
13695
+ return writer;
13696
+ };
13697
+
13698
+ /**
13699
+ * Encodes the specified ContentfulTopicDeleted message, length delimited. Does not implicitly {@link ContentfulTopicDeleted.verify|verify} messages.
13700
+ * @function encodeDelimited
13701
+ * @memberof ContentfulTopicDeleted
13702
+ * @static
13703
+ * @param {IContentfulTopicDeleted} message ContentfulTopicDeleted message or plain object to encode
13704
+ * @param {$protobuf.Writer} [writer] Writer to encode to
13705
+ * @returns {$protobuf.Writer} Writer
13706
+ */
13707
+ ContentfulTopicDeleted.encodeDelimited = function encodeDelimited(message, writer) {
13708
+ return this.encode(message, writer).ldelim();
13709
+ };
13710
+
13711
+ /**
13712
+ * Decodes a ContentfulTopicDeleted message from the specified reader or buffer.
13713
+ * @function decode
13714
+ * @memberof ContentfulTopicDeleted
13715
+ * @static
13716
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
13717
+ * @param {number} [length] Message length if known beforehand
13718
+ * @returns {ContentfulTopicDeleted} ContentfulTopicDeleted
13719
+ * @throws {Error} If the payload is not a reader or valid buffer
13720
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
13721
+ */
13722
+ ContentfulTopicDeleted.decode = function decode(reader, length) {
13723
+ if (!(reader instanceof $Reader))
13724
+ reader = $Reader.create(reader);
13725
+ var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulTopicDeleted();
13726
+ while (reader.pos < end) {
13727
+ var tag = reader.uint32();
13728
+ switch (tag >>> 3) {
13729
+ case 1:
13730
+ message.slug = reader.string();
13731
+ break;
13732
+ case 2:
13733
+ message.deletedAt = reader.uint64();
13734
+ break;
13735
+ default:
13736
+ reader.skipType(tag & 7);
13737
+ break;
13738
+ }
13739
+ }
13740
+ return message;
13741
+ };
13742
+
13743
+ /**
13744
+ * Decodes a ContentfulTopicDeleted message from the specified reader or buffer, length delimited.
13745
+ * @function decodeDelimited
13746
+ * @memberof ContentfulTopicDeleted
13747
+ * @static
13748
+ * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
13749
+ * @returns {ContentfulTopicDeleted} ContentfulTopicDeleted
13750
+ * @throws {Error} If the payload is not a reader or valid buffer
13751
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
13752
+ */
13753
+ ContentfulTopicDeleted.decodeDelimited = function decodeDelimited(reader) {
13754
+ if (!(reader instanceof $Reader))
13755
+ reader = new $Reader(reader);
13756
+ return this.decode(reader, reader.uint32());
13757
+ };
13758
+
13759
+ /**
13760
+ * Verifies a ContentfulTopicDeleted message.
13761
+ * @function verify
13762
+ * @memberof ContentfulTopicDeleted
13763
+ * @static
13764
+ * @param {Object.<string,*>} message Plain object to verify
13765
+ * @returns {string|null} `null` if valid, otherwise the reason why it is not
13766
+ */
13767
+ ContentfulTopicDeleted.verify = function verify(message) {
13768
+ if (typeof message !== "object" || message === null)
13769
+ return "object expected";
13770
+ if (message.slug != null && message.hasOwnProperty("slug"))
13771
+ if (!$util.isString(message.slug))
13772
+ return "slug: string expected";
13773
+ if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
13774
+ if (!$util.isInteger(message.deletedAt) && !(message.deletedAt && $util.isInteger(message.deletedAt.low) && $util.isInteger(message.deletedAt.high)))
13775
+ return "deletedAt: integer|Long expected";
13776
+ return null;
13777
+ };
13778
+
13779
+ /**
13780
+ * Creates a ContentfulTopicDeleted message from a plain object. Also converts values to their respective internal types.
13781
+ * @function fromObject
13782
+ * @memberof ContentfulTopicDeleted
13783
+ * @static
13784
+ * @param {Object.<string,*>} object Plain object
13785
+ * @returns {ContentfulTopicDeleted} ContentfulTopicDeleted
13786
+ */
13787
+ ContentfulTopicDeleted.fromObject = function fromObject(object) {
13788
+ if (object instanceof $root.ContentfulTopicDeleted)
13789
+ return object;
13790
+ var message = new $root.ContentfulTopicDeleted();
13791
+ if (object.slug != null)
13792
+ message.slug = String(object.slug);
13793
+ if (object.deletedAt != null)
13794
+ if ($util.Long)
13795
+ (message.deletedAt = $util.Long.fromValue(object.deletedAt)).unsigned = true;
13796
+ else if (typeof object.deletedAt === "string")
13797
+ message.deletedAt = parseInt(object.deletedAt, 10);
13798
+ else if (typeof object.deletedAt === "number")
13799
+ message.deletedAt = object.deletedAt;
13800
+ else if (typeof object.deletedAt === "object")
13801
+ message.deletedAt = new $util.LongBits(object.deletedAt.low >>> 0, object.deletedAt.high >>> 0).toNumber(true);
13802
+ return message;
13803
+ };
13804
+
13805
+ /**
13806
+ * Creates a plain object from a ContentfulTopicDeleted message. Also converts values to other types if specified.
13807
+ * @function toObject
13808
+ * @memberof ContentfulTopicDeleted
13809
+ * @static
13810
+ * @param {ContentfulTopicDeleted} message ContentfulTopicDeleted
13811
+ * @param {$protobuf.IConversionOptions} [options] Conversion options
13812
+ * @returns {Object.<string,*>} Plain object
13813
+ */
13814
+ ContentfulTopicDeleted.toObject = function toObject(message, options) {
13815
+ if (!options)
13816
+ options = {};
13817
+ var object = {};
13818
+ if (options.defaults) {
13819
+ object.slug = "";
13820
+ if ($util.Long) {
13821
+ var long = new $util.Long(0, 0, true);
13822
+ object.deletedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
13823
+ } else
13824
+ object.deletedAt = options.longs === String ? "0" : 0;
13825
+ }
13826
+ if (message.slug != null && message.hasOwnProperty("slug"))
13827
+ object.slug = message.slug;
13828
+ if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
13829
+ if (typeof message.deletedAt === "number")
13830
+ object.deletedAt = options.longs === String ? String(message.deletedAt) : message.deletedAt;
13831
+ else
13832
+ 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;
13833
+ return object;
13834
+ };
13835
+
13836
+ /**
13837
+ * Converts this ContentfulTopicDeleted to JSON.
13838
+ * @function toJSON
13839
+ * @memberof ContentfulTopicDeleted
13840
+ * @instance
13841
+ * @returns {Object.<string,*>} JSON object
13842
+ */
13843
+ ContentfulTopicDeleted.prototype.toJSON = function toJSON() {
13844
+ return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
13845
+ };
13846
+
13847
+ return ContentfulTopicDeleted;
13848
+ })();
13849
+
12402
13850
  $root.ContentfulContentModelCreated = (function() {
12403
13851
 
12404
13852
  /**