@headspace/protos-events 1.202.0 → 1.204.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 +316 -16
- package/lib/index.js +890 -116
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -29768,8 +29768,8 @@ $root.ContentfulSleepcastCreated = (function() {
|
|
|
29768
29768
|
* @property {boolean|null} [isEnabled] ContentfulSleepcastCreated isEnabled
|
|
29769
29769
|
* @property {Object.<string,number>|null} [duration] ContentfulSleepcastCreated duration
|
|
29770
29770
|
* @property {Object.<string,string>|null} [narratorGender] ContentfulSleepcastCreated narratorGender
|
|
29771
|
-
* @property {Object.<string,contentful.IIdReferences>|null} [
|
|
29772
|
-
* @property {Object.<string,contentful.IIdReferences>|null} [
|
|
29771
|
+
* @property {Object.<string,contentful.IIdReferences>|null} [ambientAudioMedia] ContentfulSleepcastCreated ambientAudioMedia
|
|
29772
|
+
* @property {Object.<string,contentful.IIdReferences>|null} [voiceAudioMedia] ContentfulSleepcastCreated voiceAudioMedia
|
|
29773
29773
|
* @property {Object.<string,contentful.IIdReferences>|null} [mixedAudioMedia] ContentfulSleepcastCreated mixedAudioMedia
|
|
29774
29774
|
* @property {Array.<contentful.ISlugReference>|null} [accessGroup] ContentfulSleepcastCreated accessGroup
|
|
29775
29775
|
* @property {number|Long|null} [createdAt] ContentfulSleepcastCreated createdAt
|
|
@@ -29791,8 +29791,8 @@ $root.ContentfulSleepcastCreated = (function() {
|
|
|
29791
29791
|
this.playerBackgroundMedia = {};
|
|
29792
29792
|
this.duration = {};
|
|
29793
29793
|
this.narratorGender = {};
|
|
29794
|
-
this.
|
|
29795
|
-
this.
|
|
29794
|
+
this.ambientAudioMedia = {};
|
|
29795
|
+
this.voiceAudioMedia = {};
|
|
29796
29796
|
this.mixedAudioMedia = {};
|
|
29797
29797
|
this.accessGroup = [];
|
|
29798
29798
|
if (properties)
|
|
@@ -29890,20 +29890,20 @@ $root.ContentfulSleepcastCreated = (function() {
|
|
|
29890
29890
|
ContentfulSleepcastCreated.prototype.narratorGender = $util.emptyObject;
|
|
29891
29891
|
|
|
29892
29892
|
/**
|
|
29893
|
-
* ContentfulSleepcastCreated
|
|
29894
|
-
* @member {Object.<string,contentful.IIdReferences>}
|
|
29893
|
+
* ContentfulSleepcastCreated ambientAudioMedia.
|
|
29894
|
+
* @member {Object.<string,contentful.IIdReferences>} ambientAudioMedia
|
|
29895
29895
|
* @memberof ContentfulSleepcastCreated
|
|
29896
29896
|
* @instance
|
|
29897
29897
|
*/
|
|
29898
|
-
ContentfulSleepcastCreated.prototype.
|
|
29898
|
+
ContentfulSleepcastCreated.prototype.ambientAudioMedia = $util.emptyObject;
|
|
29899
29899
|
|
|
29900
29900
|
/**
|
|
29901
|
-
* ContentfulSleepcastCreated
|
|
29902
|
-
* @member {Object.<string,contentful.IIdReferences>}
|
|
29901
|
+
* ContentfulSleepcastCreated voiceAudioMedia.
|
|
29902
|
+
* @member {Object.<string,contentful.IIdReferences>} voiceAudioMedia
|
|
29903
29903
|
* @memberof ContentfulSleepcastCreated
|
|
29904
29904
|
* @instance
|
|
29905
29905
|
*/
|
|
29906
|
-
ContentfulSleepcastCreated.prototype.
|
|
29906
|
+
ContentfulSleepcastCreated.prototype.voiceAudioMedia = $util.emptyObject;
|
|
29907
29907
|
|
|
29908
29908
|
/**
|
|
29909
29909
|
* ContentfulSleepcastCreated mixedAudioMedia.
|
|
@@ -29986,15 +29986,15 @@ $root.ContentfulSleepcastCreated = (function() {
|
|
|
29986
29986
|
if (message.narratorGender != null && message.hasOwnProperty("narratorGender"))
|
|
29987
29987
|
for (var keys = Object.keys(message.narratorGender), i = 0; i < keys.length; ++i)
|
|
29988
29988
|
writer.uint32(/* id 11, wireType 2 =*/90).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.narratorGender[keys[i]]).ldelim();
|
|
29989
|
-
if (message.
|
|
29990
|
-
for (var keys = Object.keys(message.
|
|
29989
|
+
if (message.ambientAudioMedia != null && message.hasOwnProperty("ambientAudioMedia"))
|
|
29990
|
+
for (var keys = Object.keys(message.ambientAudioMedia), i = 0; i < keys.length; ++i) {
|
|
29991
29991
|
writer.uint32(/* id 12, wireType 2 =*/98).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
29992
|
-
$root.contentful.IdReferences.encode(message.
|
|
29992
|
+
$root.contentful.IdReferences.encode(message.ambientAudioMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
29993
29993
|
}
|
|
29994
|
-
if (message.
|
|
29995
|
-
for (var keys = Object.keys(message.
|
|
29994
|
+
if (message.voiceAudioMedia != null && message.hasOwnProperty("voiceAudioMedia"))
|
|
29995
|
+
for (var keys = Object.keys(message.voiceAudioMedia), i = 0; i < keys.length; ++i) {
|
|
29996
29996
|
writer.uint32(/* id 13, wireType 2 =*/106).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
29997
|
-
$root.contentful.IdReferences.encode(message.
|
|
29997
|
+
$root.contentful.IdReferences.encode(message.voiceAudioMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
29998
29998
|
}
|
|
29999
29999
|
if (message.mixedAudioMedia != null && message.hasOwnProperty("mixedAudioMedia"))
|
|
30000
30000
|
for (var keys = Object.keys(message.mixedAudioMedia), i = 0; i < keys.length; ++i) {
|
|
@@ -30110,19 +30110,19 @@ $root.ContentfulSleepcastCreated = (function() {
|
|
|
30110
30110
|
break;
|
|
30111
30111
|
case 12:
|
|
30112
30112
|
reader.skip().pos++;
|
|
30113
|
-
if (message.
|
|
30114
|
-
message.
|
|
30113
|
+
if (message.ambientAudioMedia === $util.emptyObject)
|
|
30114
|
+
message.ambientAudioMedia = {};
|
|
30115
30115
|
key = reader.string();
|
|
30116
30116
|
reader.pos++;
|
|
30117
|
-
message.
|
|
30117
|
+
message.ambientAudioMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
|
|
30118
30118
|
break;
|
|
30119
30119
|
case 13:
|
|
30120
30120
|
reader.skip().pos++;
|
|
30121
|
-
if (message.
|
|
30122
|
-
message.
|
|
30121
|
+
if (message.voiceAudioMedia === $util.emptyObject)
|
|
30122
|
+
message.voiceAudioMedia = {};
|
|
30123
30123
|
key = reader.string();
|
|
30124
30124
|
reader.pos++;
|
|
30125
|
-
message.
|
|
30125
|
+
message.voiceAudioMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
|
|
30126
30126
|
break;
|
|
30127
30127
|
case 14:
|
|
30128
30128
|
reader.skip().pos++;
|
|
@@ -30249,24 +30249,24 @@ $root.ContentfulSleepcastCreated = (function() {
|
|
|
30249
30249
|
if (!$util.isString(message.narratorGender[key[i]]))
|
|
30250
30250
|
return "narratorGender: string{k:string} expected";
|
|
30251
30251
|
}
|
|
30252
|
-
if (message.
|
|
30253
|
-
if (!$util.isObject(message.
|
|
30254
|
-
return "
|
|
30255
|
-
var key = Object.keys(message.
|
|
30252
|
+
if (message.ambientAudioMedia != null && message.hasOwnProperty("ambientAudioMedia")) {
|
|
30253
|
+
if (!$util.isObject(message.ambientAudioMedia))
|
|
30254
|
+
return "ambientAudioMedia: object expected";
|
|
30255
|
+
var key = Object.keys(message.ambientAudioMedia);
|
|
30256
30256
|
for (var i = 0; i < key.length; ++i) {
|
|
30257
|
-
var error = $root.contentful.IdReferences.verify(message.
|
|
30257
|
+
var error = $root.contentful.IdReferences.verify(message.ambientAudioMedia[key[i]]);
|
|
30258
30258
|
if (error)
|
|
30259
|
-
return "
|
|
30259
|
+
return "ambientAudioMedia." + error;
|
|
30260
30260
|
}
|
|
30261
30261
|
}
|
|
30262
|
-
if (message.
|
|
30263
|
-
if (!$util.isObject(message.
|
|
30264
|
-
return "
|
|
30265
|
-
var key = Object.keys(message.
|
|
30262
|
+
if (message.voiceAudioMedia != null && message.hasOwnProperty("voiceAudioMedia")) {
|
|
30263
|
+
if (!$util.isObject(message.voiceAudioMedia))
|
|
30264
|
+
return "voiceAudioMedia: object expected";
|
|
30265
|
+
var key = Object.keys(message.voiceAudioMedia);
|
|
30266
30266
|
for (var i = 0; i < key.length; ++i) {
|
|
30267
|
-
var error = $root.contentful.IdReferences.verify(message.
|
|
30267
|
+
var error = $root.contentful.IdReferences.verify(message.voiceAudioMedia[key[i]]);
|
|
30268
30268
|
if (error)
|
|
30269
|
-
return "
|
|
30269
|
+
return "voiceAudioMedia." + error;
|
|
30270
30270
|
}
|
|
30271
30271
|
}
|
|
30272
30272
|
if (message.mixedAudioMedia != null && message.hasOwnProperty("mixedAudioMedia")) {
|
|
@@ -30372,24 +30372,24 @@ $root.ContentfulSleepcastCreated = (function() {
|
|
|
30372
30372
|
for (var keys = Object.keys(object.narratorGender), i = 0; i < keys.length; ++i)
|
|
30373
30373
|
message.narratorGender[keys[i]] = String(object.narratorGender[keys[i]]);
|
|
30374
30374
|
}
|
|
30375
|
-
if (object.
|
|
30376
|
-
if (typeof object.
|
|
30377
|
-
throw TypeError(".ContentfulSleepcastCreated.
|
|
30378
|
-
message.
|
|
30379
|
-
for (var keys = Object.keys(object.
|
|
30380
|
-
if (typeof object.
|
|
30381
|
-
throw TypeError(".ContentfulSleepcastCreated.
|
|
30382
|
-
message.
|
|
30375
|
+
if (object.ambientAudioMedia) {
|
|
30376
|
+
if (typeof object.ambientAudioMedia !== "object")
|
|
30377
|
+
throw TypeError(".ContentfulSleepcastCreated.ambientAudioMedia: object expected");
|
|
30378
|
+
message.ambientAudioMedia = {};
|
|
30379
|
+
for (var keys = Object.keys(object.ambientAudioMedia), i = 0; i < keys.length; ++i) {
|
|
30380
|
+
if (typeof object.ambientAudioMedia[keys[i]] !== "object")
|
|
30381
|
+
throw TypeError(".ContentfulSleepcastCreated.ambientAudioMedia: object expected");
|
|
30382
|
+
message.ambientAudioMedia[keys[i]] = $root.contentful.IdReferences.fromObject(object.ambientAudioMedia[keys[i]]);
|
|
30383
30383
|
}
|
|
30384
30384
|
}
|
|
30385
|
-
if (object.
|
|
30386
|
-
if (typeof object.
|
|
30387
|
-
throw TypeError(".ContentfulSleepcastCreated.
|
|
30388
|
-
message.
|
|
30389
|
-
for (var keys = Object.keys(object.
|
|
30390
|
-
if (typeof object.
|
|
30391
|
-
throw TypeError(".ContentfulSleepcastCreated.
|
|
30392
|
-
message.
|
|
30385
|
+
if (object.voiceAudioMedia) {
|
|
30386
|
+
if (typeof object.voiceAudioMedia !== "object")
|
|
30387
|
+
throw TypeError(".ContentfulSleepcastCreated.voiceAudioMedia: object expected");
|
|
30388
|
+
message.voiceAudioMedia = {};
|
|
30389
|
+
for (var keys = Object.keys(object.voiceAudioMedia), i = 0; i < keys.length; ++i) {
|
|
30390
|
+
if (typeof object.voiceAudioMedia[keys[i]] !== "object")
|
|
30391
|
+
throw TypeError(".ContentfulSleepcastCreated.voiceAudioMedia: object expected");
|
|
30392
|
+
message.voiceAudioMedia[keys[i]] = $root.contentful.IdReferences.fromObject(object.voiceAudioMedia[keys[i]]);
|
|
30393
30393
|
}
|
|
30394
30394
|
}
|
|
30395
30395
|
if (object.mixedAudioMedia) {
|
|
@@ -30447,8 +30447,8 @@ $root.ContentfulSleepcastCreated = (function() {
|
|
|
30447
30447
|
object.playerBackgroundMedia = {};
|
|
30448
30448
|
object.duration = {};
|
|
30449
30449
|
object.narratorGender = {};
|
|
30450
|
-
object.
|
|
30451
|
-
object.
|
|
30450
|
+
object.ambientAudioMedia = {};
|
|
30451
|
+
object.voiceAudioMedia = {};
|
|
30452
30452
|
object.mixedAudioMedia = {};
|
|
30453
30453
|
}
|
|
30454
30454
|
if (options.defaults) {
|
|
@@ -30506,15 +30506,15 @@ $root.ContentfulSleepcastCreated = (function() {
|
|
|
30506
30506
|
for (var j = 0; j < keys2.length; ++j)
|
|
30507
30507
|
object.narratorGender[keys2[j]] = message.narratorGender[keys2[j]];
|
|
30508
30508
|
}
|
|
30509
|
-
if (message.
|
|
30510
|
-
object.
|
|
30509
|
+
if (message.ambientAudioMedia && (keys2 = Object.keys(message.ambientAudioMedia)).length) {
|
|
30510
|
+
object.ambientAudioMedia = {};
|
|
30511
30511
|
for (var j = 0; j < keys2.length; ++j)
|
|
30512
|
-
object.
|
|
30512
|
+
object.ambientAudioMedia[keys2[j]] = $root.contentful.IdReferences.toObject(message.ambientAudioMedia[keys2[j]], options);
|
|
30513
30513
|
}
|
|
30514
|
-
if (message.
|
|
30515
|
-
object.
|
|
30514
|
+
if (message.voiceAudioMedia && (keys2 = Object.keys(message.voiceAudioMedia)).length) {
|
|
30515
|
+
object.voiceAudioMedia = {};
|
|
30516
30516
|
for (var j = 0; j < keys2.length; ++j)
|
|
30517
|
-
object.
|
|
30517
|
+
object.voiceAudioMedia[keys2[j]] = $root.contentful.IdReferences.toObject(message.voiceAudioMedia[keys2[j]], options);
|
|
30518
30518
|
}
|
|
30519
30519
|
if (message.mixedAudioMedia && (keys2 = Object.keys(message.mixedAudioMedia)).length) {
|
|
30520
30520
|
object.mixedAudioMedia = {};
|
|
@@ -30565,8 +30565,8 @@ $root.ContentfulSleepcastUpdated = (function() {
|
|
|
30565
30565
|
* @property {boolean|null} [isEnabled] ContentfulSleepcastUpdated isEnabled
|
|
30566
30566
|
* @property {Object.<string,number>|null} [duration] ContentfulSleepcastUpdated duration
|
|
30567
30567
|
* @property {Object.<string,string>|null} [narratorGender] ContentfulSleepcastUpdated narratorGender
|
|
30568
|
-
* @property {Object.<string,contentful.IIdReferences>|null} [
|
|
30569
|
-
* @property {Object.<string,contentful.IIdReferences>|null} [
|
|
30568
|
+
* @property {Object.<string,contentful.IIdReferences>|null} [ambientAudioMedia] ContentfulSleepcastUpdated ambientAudioMedia
|
|
30569
|
+
* @property {Object.<string,contentful.IIdReferences>|null} [voiceAudioMedia] ContentfulSleepcastUpdated voiceAudioMedia
|
|
30570
30570
|
* @property {Object.<string,contentful.IIdReferences>|null} [mixedAudioMedia] ContentfulSleepcastUpdated mixedAudioMedia
|
|
30571
30571
|
* @property {Array.<contentful.ISlugReference>|null} [accessGroup] ContentfulSleepcastUpdated accessGroup
|
|
30572
30572
|
* @property {number|Long|null} [updatedAt] ContentfulSleepcastUpdated updatedAt
|
|
@@ -30588,8 +30588,8 @@ $root.ContentfulSleepcastUpdated = (function() {
|
|
|
30588
30588
|
this.playerBackgroundMedia = {};
|
|
30589
30589
|
this.duration = {};
|
|
30590
30590
|
this.narratorGender = {};
|
|
30591
|
-
this.
|
|
30592
|
-
this.
|
|
30591
|
+
this.ambientAudioMedia = {};
|
|
30592
|
+
this.voiceAudioMedia = {};
|
|
30593
30593
|
this.mixedAudioMedia = {};
|
|
30594
30594
|
this.accessGroup = [];
|
|
30595
30595
|
if (properties)
|
|
@@ -30687,20 +30687,20 @@ $root.ContentfulSleepcastUpdated = (function() {
|
|
|
30687
30687
|
ContentfulSleepcastUpdated.prototype.narratorGender = $util.emptyObject;
|
|
30688
30688
|
|
|
30689
30689
|
/**
|
|
30690
|
-
* ContentfulSleepcastUpdated
|
|
30691
|
-
* @member {Object.<string,contentful.IIdReferences>}
|
|
30690
|
+
* ContentfulSleepcastUpdated ambientAudioMedia.
|
|
30691
|
+
* @member {Object.<string,contentful.IIdReferences>} ambientAudioMedia
|
|
30692
30692
|
* @memberof ContentfulSleepcastUpdated
|
|
30693
30693
|
* @instance
|
|
30694
30694
|
*/
|
|
30695
|
-
ContentfulSleepcastUpdated.prototype.
|
|
30695
|
+
ContentfulSleepcastUpdated.prototype.ambientAudioMedia = $util.emptyObject;
|
|
30696
30696
|
|
|
30697
30697
|
/**
|
|
30698
|
-
* ContentfulSleepcastUpdated
|
|
30699
|
-
* @member {Object.<string,contentful.IIdReferences>}
|
|
30698
|
+
* ContentfulSleepcastUpdated voiceAudioMedia.
|
|
30699
|
+
* @member {Object.<string,contentful.IIdReferences>} voiceAudioMedia
|
|
30700
30700
|
* @memberof ContentfulSleepcastUpdated
|
|
30701
30701
|
* @instance
|
|
30702
30702
|
*/
|
|
30703
|
-
ContentfulSleepcastUpdated.prototype.
|
|
30703
|
+
ContentfulSleepcastUpdated.prototype.voiceAudioMedia = $util.emptyObject;
|
|
30704
30704
|
|
|
30705
30705
|
/**
|
|
30706
30706
|
* ContentfulSleepcastUpdated mixedAudioMedia.
|
|
@@ -30783,15 +30783,15 @@ $root.ContentfulSleepcastUpdated = (function() {
|
|
|
30783
30783
|
if (message.narratorGender != null && message.hasOwnProperty("narratorGender"))
|
|
30784
30784
|
for (var keys = Object.keys(message.narratorGender), i = 0; i < keys.length; ++i)
|
|
30785
30785
|
writer.uint32(/* id 11, wireType 2 =*/90).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.narratorGender[keys[i]]).ldelim();
|
|
30786
|
-
if (message.
|
|
30787
|
-
for (var keys = Object.keys(message.
|
|
30786
|
+
if (message.ambientAudioMedia != null && message.hasOwnProperty("ambientAudioMedia"))
|
|
30787
|
+
for (var keys = Object.keys(message.ambientAudioMedia), i = 0; i < keys.length; ++i) {
|
|
30788
30788
|
writer.uint32(/* id 12, wireType 2 =*/98).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
30789
|
-
$root.contentful.IdReferences.encode(message.
|
|
30789
|
+
$root.contentful.IdReferences.encode(message.ambientAudioMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
30790
30790
|
}
|
|
30791
|
-
if (message.
|
|
30792
|
-
for (var keys = Object.keys(message.
|
|
30791
|
+
if (message.voiceAudioMedia != null && message.hasOwnProperty("voiceAudioMedia"))
|
|
30792
|
+
for (var keys = Object.keys(message.voiceAudioMedia), i = 0; i < keys.length; ++i) {
|
|
30793
30793
|
writer.uint32(/* id 13, wireType 2 =*/106).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
30794
|
-
$root.contentful.IdReferences.encode(message.
|
|
30794
|
+
$root.contentful.IdReferences.encode(message.voiceAudioMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
30795
30795
|
}
|
|
30796
30796
|
if (message.mixedAudioMedia != null && message.hasOwnProperty("mixedAudioMedia"))
|
|
30797
30797
|
for (var keys = Object.keys(message.mixedAudioMedia), i = 0; i < keys.length; ++i) {
|
|
@@ -30907,19 +30907,19 @@ $root.ContentfulSleepcastUpdated = (function() {
|
|
|
30907
30907
|
break;
|
|
30908
30908
|
case 12:
|
|
30909
30909
|
reader.skip().pos++;
|
|
30910
|
-
if (message.
|
|
30911
|
-
message.
|
|
30910
|
+
if (message.ambientAudioMedia === $util.emptyObject)
|
|
30911
|
+
message.ambientAudioMedia = {};
|
|
30912
30912
|
key = reader.string();
|
|
30913
30913
|
reader.pos++;
|
|
30914
|
-
message.
|
|
30914
|
+
message.ambientAudioMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
|
|
30915
30915
|
break;
|
|
30916
30916
|
case 13:
|
|
30917
30917
|
reader.skip().pos++;
|
|
30918
|
-
if (message.
|
|
30919
|
-
message.
|
|
30918
|
+
if (message.voiceAudioMedia === $util.emptyObject)
|
|
30919
|
+
message.voiceAudioMedia = {};
|
|
30920
30920
|
key = reader.string();
|
|
30921
30921
|
reader.pos++;
|
|
30922
|
-
message.
|
|
30922
|
+
message.voiceAudioMedia[key] = $root.contentful.IdReferences.decode(reader, reader.uint32());
|
|
30923
30923
|
break;
|
|
30924
30924
|
case 14:
|
|
30925
30925
|
reader.skip().pos++;
|
|
@@ -31046,24 +31046,24 @@ $root.ContentfulSleepcastUpdated = (function() {
|
|
|
31046
31046
|
if (!$util.isString(message.narratorGender[key[i]]))
|
|
31047
31047
|
return "narratorGender: string{k:string} expected";
|
|
31048
31048
|
}
|
|
31049
|
-
if (message.
|
|
31050
|
-
if (!$util.isObject(message.
|
|
31051
|
-
return "
|
|
31052
|
-
var key = Object.keys(message.
|
|
31049
|
+
if (message.ambientAudioMedia != null && message.hasOwnProperty("ambientAudioMedia")) {
|
|
31050
|
+
if (!$util.isObject(message.ambientAudioMedia))
|
|
31051
|
+
return "ambientAudioMedia: object expected";
|
|
31052
|
+
var key = Object.keys(message.ambientAudioMedia);
|
|
31053
31053
|
for (var i = 0; i < key.length; ++i) {
|
|
31054
|
-
var error = $root.contentful.IdReferences.verify(message.
|
|
31054
|
+
var error = $root.contentful.IdReferences.verify(message.ambientAudioMedia[key[i]]);
|
|
31055
31055
|
if (error)
|
|
31056
|
-
return "
|
|
31056
|
+
return "ambientAudioMedia." + error;
|
|
31057
31057
|
}
|
|
31058
31058
|
}
|
|
31059
|
-
if (message.
|
|
31060
|
-
if (!$util.isObject(message.
|
|
31061
|
-
return "
|
|
31062
|
-
var key = Object.keys(message.
|
|
31059
|
+
if (message.voiceAudioMedia != null && message.hasOwnProperty("voiceAudioMedia")) {
|
|
31060
|
+
if (!$util.isObject(message.voiceAudioMedia))
|
|
31061
|
+
return "voiceAudioMedia: object expected";
|
|
31062
|
+
var key = Object.keys(message.voiceAudioMedia);
|
|
31063
31063
|
for (var i = 0; i < key.length; ++i) {
|
|
31064
|
-
var error = $root.contentful.IdReferences.verify(message.
|
|
31064
|
+
var error = $root.contentful.IdReferences.verify(message.voiceAudioMedia[key[i]]);
|
|
31065
31065
|
if (error)
|
|
31066
|
-
return "
|
|
31066
|
+
return "voiceAudioMedia." + error;
|
|
31067
31067
|
}
|
|
31068
31068
|
}
|
|
31069
31069
|
if (message.mixedAudioMedia != null && message.hasOwnProperty("mixedAudioMedia")) {
|
|
@@ -31169,24 +31169,24 @@ $root.ContentfulSleepcastUpdated = (function() {
|
|
|
31169
31169
|
for (var keys = Object.keys(object.narratorGender), i = 0; i < keys.length; ++i)
|
|
31170
31170
|
message.narratorGender[keys[i]] = String(object.narratorGender[keys[i]]);
|
|
31171
31171
|
}
|
|
31172
|
-
if (object.
|
|
31173
|
-
if (typeof object.
|
|
31174
|
-
throw TypeError(".ContentfulSleepcastUpdated.
|
|
31175
|
-
message.
|
|
31176
|
-
for (var keys = Object.keys(object.
|
|
31177
|
-
if (typeof object.
|
|
31178
|
-
throw TypeError(".ContentfulSleepcastUpdated.
|
|
31179
|
-
message.
|
|
31172
|
+
if (object.ambientAudioMedia) {
|
|
31173
|
+
if (typeof object.ambientAudioMedia !== "object")
|
|
31174
|
+
throw TypeError(".ContentfulSleepcastUpdated.ambientAudioMedia: object expected");
|
|
31175
|
+
message.ambientAudioMedia = {};
|
|
31176
|
+
for (var keys = Object.keys(object.ambientAudioMedia), i = 0; i < keys.length; ++i) {
|
|
31177
|
+
if (typeof object.ambientAudioMedia[keys[i]] !== "object")
|
|
31178
|
+
throw TypeError(".ContentfulSleepcastUpdated.ambientAudioMedia: object expected");
|
|
31179
|
+
message.ambientAudioMedia[keys[i]] = $root.contentful.IdReferences.fromObject(object.ambientAudioMedia[keys[i]]);
|
|
31180
31180
|
}
|
|
31181
31181
|
}
|
|
31182
|
-
if (object.
|
|
31183
|
-
if (typeof object.
|
|
31184
|
-
throw TypeError(".ContentfulSleepcastUpdated.
|
|
31185
|
-
message.
|
|
31186
|
-
for (var keys = Object.keys(object.
|
|
31187
|
-
if (typeof object.
|
|
31188
|
-
throw TypeError(".ContentfulSleepcastUpdated.
|
|
31189
|
-
message.
|
|
31182
|
+
if (object.voiceAudioMedia) {
|
|
31183
|
+
if (typeof object.voiceAudioMedia !== "object")
|
|
31184
|
+
throw TypeError(".ContentfulSleepcastUpdated.voiceAudioMedia: object expected");
|
|
31185
|
+
message.voiceAudioMedia = {};
|
|
31186
|
+
for (var keys = Object.keys(object.voiceAudioMedia), i = 0; i < keys.length; ++i) {
|
|
31187
|
+
if (typeof object.voiceAudioMedia[keys[i]] !== "object")
|
|
31188
|
+
throw TypeError(".ContentfulSleepcastUpdated.voiceAudioMedia: object expected");
|
|
31189
|
+
message.voiceAudioMedia[keys[i]] = $root.contentful.IdReferences.fromObject(object.voiceAudioMedia[keys[i]]);
|
|
31190
31190
|
}
|
|
31191
31191
|
}
|
|
31192
31192
|
if (object.mixedAudioMedia) {
|
|
@@ -31244,8 +31244,8 @@ $root.ContentfulSleepcastUpdated = (function() {
|
|
|
31244
31244
|
object.playerBackgroundMedia = {};
|
|
31245
31245
|
object.duration = {};
|
|
31246
31246
|
object.narratorGender = {};
|
|
31247
|
-
object.
|
|
31248
|
-
object.
|
|
31247
|
+
object.ambientAudioMedia = {};
|
|
31248
|
+
object.voiceAudioMedia = {};
|
|
31249
31249
|
object.mixedAudioMedia = {};
|
|
31250
31250
|
}
|
|
31251
31251
|
if (options.defaults) {
|
|
@@ -31303,15 +31303,15 @@ $root.ContentfulSleepcastUpdated = (function() {
|
|
|
31303
31303
|
for (var j = 0; j < keys2.length; ++j)
|
|
31304
31304
|
object.narratorGender[keys2[j]] = message.narratorGender[keys2[j]];
|
|
31305
31305
|
}
|
|
31306
|
-
if (message.
|
|
31307
|
-
object.
|
|
31306
|
+
if (message.ambientAudioMedia && (keys2 = Object.keys(message.ambientAudioMedia)).length) {
|
|
31307
|
+
object.ambientAudioMedia = {};
|
|
31308
31308
|
for (var j = 0; j < keys2.length; ++j)
|
|
31309
|
-
object.
|
|
31309
|
+
object.ambientAudioMedia[keys2[j]] = $root.contentful.IdReferences.toObject(message.ambientAudioMedia[keys2[j]], options);
|
|
31310
31310
|
}
|
|
31311
|
-
if (message.
|
|
31312
|
-
object.
|
|
31311
|
+
if (message.voiceAudioMedia && (keys2 = Object.keys(message.voiceAudioMedia)).length) {
|
|
31312
|
+
object.voiceAudioMedia = {};
|
|
31313
31313
|
for (var j = 0; j < keys2.length; ++j)
|
|
31314
|
-
object.
|
|
31314
|
+
object.voiceAudioMedia[keys2[j]] = $root.contentful.IdReferences.toObject(message.voiceAudioMedia[keys2[j]], options);
|
|
31315
31315
|
}
|
|
31316
31316
|
if (message.mixedAudioMedia && (keys2 = Object.keys(message.mixedAudioMedia)).length) {
|
|
31317
31317
|
object.mixedAudioMedia = {};
|
|
@@ -31569,6 +31569,780 @@ $root.ContentfulSleepcastDeleted = (function() {
|
|
|
31569
31569
|
return ContentfulSleepcastDeleted;
|
|
31570
31570
|
})();
|
|
31571
31571
|
|
|
31572
|
+
$root.ContentfulVariationContainerCreated = (function() {
|
|
31573
|
+
|
|
31574
|
+
/**
|
|
31575
|
+
* Properties of a ContentfulVariationContainerCreated.
|
|
31576
|
+
* @exports IContentfulVariationContainerCreated
|
|
31577
|
+
* @interface IContentfulVariationContainerCreated
|
|
31578
|
+
* @property {string|null} [slug] ContentfulVariationContainerCreated slug
|
|
31579
|
+
* @property {Object.<string,contentful.ISlugReference>|null} [variations] ContentfulVariationContainerCreated variations
|
|
31580
|
+
* @property {number|Long|null} [createdAt] ContentfulVariationContainerCreated createdAt
|
|
31581
|
+
*/
|
|
31582
|
+
|
|
31583
|
+
/**
|
|
31584
|
+
* Constructs a new ContentfulVariationContainerCreated.
|
|
31585
|
+
* @exports ContentfulVariationContainerCreated
|
|
31586
|
+
* @classdesc Represents a ContentfulVariationContainerCreated.
|
|
31587
|
+
* @implements IContentfulVariationContainerCreated
|
|
31588
|
+
* @constructor
|
|
31589
|
+
* @param {IContentfulVariationContainerCreated=} [properties] Properties to set
|
|
31590
|
+
*/
|
|
31591
|
+
function ContentfulVariationContainerCreated(properties) {
|
|
31592
|
+
this.variations = {};
|
|
31593
|
+
if (properties)
|
|
31594
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
31595
|
+
if (properties[keys[i]] != null)
|
|
31596
|
+
this[keys[i]] = properties[keys[i]];
|
|
31597
|
+
}
|
|
31598
|
+
|
|
31599
|
+
/**
|
|
31600
|
+
* ContentfulVariationContainerCreated slug.
|
|
31601
|
+
* @member {string} slug
|
|
31602
|
+
* @memberof ContentfulVariationContainerCreated
|
|
31603
|
+
* @instance
|
|
31604
|
+
*/
|
|
31605
|
+
ContentfulVariationContainerCreated.prototype.slug = "";
|
|
31606
|
+
|
|
31607
|
+
/**
|
|
31608
|
+
* ContentfulVariationContainerCreated variations.
|
|
31609
|
+
* @member {Object.<string,contentful.ISlugReference>} variations
|
|
31610
|
+
* @memberof ContentfulVariationContainerCreated
|
|
31611
|
+
* @instance
|
|
31612
|
+
*/
|
|
31613
|
+
ContentfulVariationContainerCreated.prototype.variations = $util.emptyObject;
|
|
31614
|
+
|
|
31615
|
+
/**
|
|
31616
|
+
* ContentfulVariationContainerCreated createdAt.
|
|
31617
|
+
* @member {number|Long} createdAt
|
|
31618
|
+
* @memberof ContentfulVariationContainerCreated
|
|
31619
|
+
* @instance
|
|
31620
|
+
*/
|
|
31621
|
+
ContentfulVariationContainerCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
31622
|
+
|
|
31623
|
+
/**
|
|
31624
|
+
* Creates a new ContentfulVariationContainerCreated instance using the specified properties.
|
|
31625
|
+
* @function create
|
|
31626
|
+
* @memberof ContentfulVariationContainerCreated
|
|
31627
|
+
* @static
|
|
31628
|
+
* @param {IContentfulVariationContainerCreated=} [properties] Properties to set
|
|
31629
|
+
* @returns {ContentfulVariationContainerCreated} ContentfulVariationContainerCreated instance
|
|
31630
|
+
*/
|
|
31631
|
+
ContentfulVariationContainerCreated.create = function create(properties) {
|
|
31632
|
+
return new ContentfulVariationContainerCreated(properties);
|
|
31633
|
+
};
|
|
31634
|
+
|
|
31635
|
+
/**
|
|
31636
|
+
* Encodes the specified ContentfulVariationContainerCreated message. Does not implicitly {@link ContentfulVariationContainerCreated.verify|verify} messages.
|
|
31637
|
+
* @function encode
|
|
31638
|
+
* @memberof ContentfulVariationContainerCreated
|
|
31639
|
+
* @static
|
|
31640
|
+
* @param {IContentfulVariationContainerCreated} message ContentfulVariationContainerCreated message or plain object to encode
|
|
31641
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
31642
|
+
* @returns {$protobuf.Writer} Writer
|
|
31643
|
+
*/
|
|
31644
|
+
ContentfulVariationContainerCreated.encode = function encode(message, writer) {
|
|
31645
|
+
if (!writer)
|
|
31646
|
+
writer = $Writer.create();
|
|
31647
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
31648
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
31649
|
+
if (message.variations != null && message.hasOwnProperty("variations"))
|
|
31650
|
+
for (var keys = Object.keys(message.variations), i = 0; i < keys.length; ++i) {
|
|
31651
|
+
writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
31652
|
+
$root.contentful.SlugReference.encode(message.variations[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
31653
|
+
}
|
|
31654
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
31655
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.createdAt);
|
|
31656
|
+
return writer;
|
|
31657
|
+
};
|
|
31658
|
+
|
|
31659
|
+
/**
|
|
31660
|
+
* Encodes the specified ContentfulVariationContainerCreated message, length delimited. Does not implicitly {@link ContentfulVariationContainerCreated.verify|verify} messages.
|
|
31661
|
+
* @function encodeDelimited
|
|
31662
|
+
* @memberof ContentfulVariationContainerCreated
|
|
31663
|
+
* @static
|
|
31664
|
+
* @param {IContentfulVariationContainerCreated} message ContentfulVariationContainerCreated message or plain object to encode
|
|
31665
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
31666
|
+
* @returns {$protobuf.Writer} Writer
|
|
31667
|
+
*/
|
|
31668
|
+
ContentfulVariationContainerCreated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
31669
|
+
return this.encode(message, writer).ldelim();
|
|
31670
|
+
};
|
|
31671
|
+
|
|
31672
|
+
/**
|
|
31673
|
+
* Decodes a ContentfulVariationContainerCreated message from the specified reader or buffer.
|
|
31674
|
+
* @function decode
|
|
31675
|
+
* @memberof ContentfulVariationContainerCreated
|
|
31676
|
+
* @static
|
|
31677
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
31678
|
+
* @param {number} [length] Message length if known beforehand
|
|
31679
|
+
* @returns {ContentfulVariationContainerCreated} ContentfulVariationContainerCreated
|
|
31680
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
31681
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
31682
|
+
*/
|
|
31683
|
+
ContentfulVariationContainerCreated.decode = function decode(reader, length) {
|
|
31684
|
+
if (!(reader instanceof $Reader))
|
|
31685
|
+
reader = $Reader.create(reader);
|
|
31686
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulVariationContainerCreated(), key;
|
|
31687
|
+
while (reader.pos < end) {
|
|
31688
|
+
var tag = reader.uint32();
|
|
31689
|
+
switch (tag >>> 3) {
|
|
31690
|
+
case 1:
|
|
31691
|
+
message.slug = reader.string();
|
|
31692
|
+
break;
|
|
31693
|
+
case 2:
|
|
31694
|
+
reader.skip().pos++;
|
|
31695
|
+
if (message.variations === $util.emptyObject)
|
|
31696
|
+
message.variations = {};
|
|
31697
|
+
key = reader.string();
|
|
31698
|
+
reader.pos++;
|
|
31699
|
+
message.variations[key] = $root.contentful.SlugReference.decode(reader, reader.uint32());
|
|
31700
|
+
break;
|
|
31701
|
+
case 3:
|
|
31702
|
+
message.createdAt = reader.uint64();
|
|
31703
|
+
break;
|
|
31704
|
+
default:
|
|
31705
|
+
reader.skipType(tag & 7);
|
|
31706
|
+
break;
|
|
31707
|
+
}
|
|
31708
|
+
}
|
|
31709
|
+
return message;
|
|
31710
|
+
};
|
|
31711
|
+
|
|
31712
|
+
/**
|
|
31713
|
+
* Decodes a ContentfulVariationContainerCreated message from the specified reader or buffer, length delimited.
|
|
31714
|
+
* @function decodeDelimited
|
|
31715
|
+
* @memberof ContentfulVariationContainerCreated
|
|
31716
|
+
* @static
|
|
31717
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
31718
|
+
* @returns {ContentfulVariationContainerCreated} ContentfulVariationContainerCreated
|
|
31719
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
31720
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
31721
|
+
*/
|
|
31722
|
+
ContentfulVariationContainerCreated.decodeDelimited = function decodeDelimited(reader) {
|
|
31723
|
+
if (!(reader instanceof $Reader))
|
|
31724
|
+
reader = new $Reader(reader);
|
|
31725
|
+
return this.decode(reader, reader.uint32());
|
|
31726
|
+
};
|
|
31727
|
+
|
|
31728
|
+
/**
|
|
31729
|
+
* Verifies a ContentfulVariationContainerCreated message.
|
|
31730
|
+
* @function verify
|
|
31731
|
+
* @memberof ContentfulVariationContainerCreated
|
|
31732
|
+
* @static
|
|
31733
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
31734
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
31735
|
+
*/
|
|
31736
|
+
ContentfulVariationContainerCreated.verify = function verify(message) {
|
|
31737
|
+
if (typeof message !== "object" || message === null)
|
|
31738
|
+
return "object expected";
|
|
31739
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
31740
|
+
if (!$util.isString(message.slug))
|
|
31741
|
+
return "slug: string expected";
|
|
31742
|
+
if (message.variations != null && message.hasOwnProperty("variations")) {
|
|
31743
|
+
if (!$util.isObject(message.variations))
|
|
31744
|
+
return "variations: object expected";
|
|
31745
|
+
var key = Object.keys(message.variations);
|
|
31746
|
+
for (var i = 0; i < key.length; ++i) {
|
|
31747
|
+
var error = $root.contentful.SlugReference.verify(message.variations[key[i]]);
|
|
31748
|
+
if (error)
|
|
31749
|
+
return "variations." + error;
|
|
31750
|
+
}
|
|
31751
|
+
}
|
|
31752
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
31753
|
+
if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
|
|
31754
|
+
return "createdAt: integer|Long expected";
|
|
31755
|
+
return null;
|
|
31756
|
+
};
|
|
31757
|
+
|
|
31758
|
+
/**
|
|
31759
|
+
* Creates a ContentfulVariationContainerCreated message from a plain object. Also converts values to their respective internal types.
|
|
31760
|
+
* @function fromObject
|
|
31761
|
+
* @memberof ContentfulVariationContainerCreated
|
|
31762
|
+
* @static
|
|
31763
|
+
* @param {Object.<string,*>} object Plain object
|
|
31764
|
+
* @returns {ContentfulVariationContainerCreated} ContentfulVariationContainerCreated
|
|
31765
|
+
*/
|
|
31766
|
+
ContentfulVariationContainerCreated.fromObject = function fromObject(object) {
|
|
31767
|
+
if (object instanceof $root.ContentfulVariationContainerCreated)
|
|
31768
|
+
return object;
|
|
31769
|
+
var message = new $root.ContentfulVariationContainerCreated();
|
|
31770
|
+
if (object.slug != null)
|
|
31771
|
+
message.slug = String(object.slug);
|
|
31772
|
+
if (object.variations) {
|
|
31773
|
+
if (typeof object.variations !== "object")
|
|
31774
|
+
throw TypeError(".ContentfulVariationContainerCreated.variations: object expected");
|
|
31775
|
+
message.variations = {};
|
|
31776
|
+
for (var keys = Object.keys(object.variations), i = 0; i < keys.length; ++i) {
|
|
31777
|
+
if (typeof object.variations[keys[i]] !== "object")
|
|
31778
|
+
throw TypeError(".ContentfulVariationContainerCreated.variations: object expected");
|
|
31779
|
+
message.variations[keys[i]] = $root.contentful.SlugReference.fromObject(object.variations[keys[i]]);
|
|
31780
|
+
}
|
|
31781
|
+
}
|
|
31782
|
+
if (object.createdAt != null)
|
|
31783
|
+
if ($util.Long)
|
|
31784
|
+
(message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
|
|
31785
|
+
else if (typeof object.createdAt === "string")
|
|
31786
|
+
message.createdAt = parseInt(object.createdAt, 10);
|
|
31787
|
+
else if (typeof object.createdAt === "number")
|
|
31788
|
+
message.createdAt = object.createdAt;
|
|
31789
|
+
else if (typeof object.createdAt === "object")
|
|
31790
|
+
message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
|
|
31791
|
+
return message;
|
|
31792
|
+
};
|
|
31793
|
+
|
|
31794
|
+
/**
|
|
31795
|
+
* Creates a plain object from a ContentfulVariationContainerCreated message. Also converts values to other types if specified.
|
|
31796
|
+
* @function toObject
|
|
31797
|
+
* @memberof ContentfulVariationContainerCreated
|
|
31798
|
+
* @static
|
|
31799
|
+
* @param {ContentfulVariationContainerCreated} message ContentfulVariationContainerCreated
|
|
31800
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
31801
|
+
* @returns {Object.<string,*>} Plain object
|
|
31802
|
+
*/
|
|
31803
|
+
ContentfulVariationContainerCreated.toObject = function toObject(message, options) {
|
|
31804
|
+
if (!options)
|
|
31805
|
+
options = {};
|
|
31806
|
+
var object = {};
|
|
31807
|
+
if (options.objects || options.defaults)
|
|
31808
|
+
object.variations = {};
|
|
31809
|
+
if (options.defaults) {
|
|
31810
|
+
object.slug = "";
|
|
31811
|
+
if ($util.Long) {
|
|
31812
|
+
var long = new $util.Long(0, 0, true);
|
|
31813
|
+
object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
31814
|
+
} else
|
|
31815
|
+
object.createdAt = options.longs === String ? "0" : 0;
|
|
31816
|
+
}
|
|
31817
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
31818
|
+
object.slug = message.slug;
|
|
31819
|
+
var keys2;
|
|
31820
|
+
if (message.variations && (keys2 = Object.keys(message.variations)).length) {
|
|
31821
|
+
object.variations = {};
|
|
31822
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
31823
|
+
object.variations[keys2[j]] = $root.contentful.SlugReference.toObject(message.variations[keys2[j]], options);
|
|
31824
|
+
}
|
|
31825
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
31826
|
+
if (typeof message.createdAt === "number")
|
|
31827
|
+
object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
|
|
31828
|
+
else
|
|
31829
|
+
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;
|
|
31830
|
+
return object;
|
|
31831
|
+
};
|
|
31832
|
+
|
|
31833
|
+
/**
|
|
31834
|
+
* Converts this ContentfulVariationContainerCreated to JSON.
|
|
31835
|
+
* @function toJSON
|
|
31836
|
+
* @memberof ContentfulVariationContainerCreated
|
|
31837
|
+
* @instance
|
|
31838
|
+
* @returns {Object.<string,*>} JSON object
|
|
31839
|
+
*/
|
|
31840
|
+
ContentfulVariationContainerCreated.prototype.toJSON = function toJSON() {
|
|
31841
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
31842
|
+
};
|
|
31843
|
+
|
|
31844
|
+
return ContentfulVariationContainerCreated;
|
|
31845
|
+
})();
|
|
31846
|
+
|
|
31847
|
+
$root.ContentfulVariationContainerUpdated = (function() {
|
|
31848
|
+
|
|
31849
|
+
/**
|
|
31850
|
+
* Properties of a ContentfulVariationContainerUpdated.
|
|
31851
|
+
* @exports IContentfulVariationContainerUpdated
|
|
31852
|
+
* @interface IContentfulVariationContainerUpdated
|
|
31853
|
+
* @property {string|null} [slug] ContentfulVariationContainerUpdated slug
|
|
31854
|
+
* @property {Object.<string,contentful.ISlugReference>|null} [variations] ContentfulVariationContainerUpdated variations
|
|
31855
|
+
* @property {number|Long|null} [updatedAt] ContentfulVariationContainerUpdated updatedAt
|
|
31856
|
+
*/
|
|
31857
|
+
|
|
31858
|
+
/**
|
|
31859
|
+
* Constructs a new ContentfulVariationContainerUpdated.
|
|
31860
|
+
* @exports ContentfulVariationContainerUpdated
|
|
31861
|
+
* @classdesc Represents a ContentfulVariationContainerUpdated.
|
|
31862
|
+
* @implements IContentfulVariationContainerUpdated
|
|
31863
|
+
* @constructor
|
|
31864
|
+
* @param {IContentfulVariationContainerUpdated=} [properties] Properties to set
|
|
31865
|
+
*/
|
|
31866
|
+
function ContentfulVariationContainerUpdated(properties) {
|
|
31867
|
+
this.variations = {};
|
|
31868
|
+
if (properties)
|
|
31869
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
31870
|
+
if (properties[keys[i]] != null)
|
|
31871
|
+
this[keys[i]] = properties[keys[i]];
|
|
31872
|
+
}
|
|
31873
|
+
|
|
31874
|
+
/**
|
|
31875
|
+
* ContentfulVariationContainerUpdated slug.
|
|
31876
|
+
* @member {string} slug
|
|
31877
|
+
* @memberof ContentfulVariationContainerUpdated
|
|
31878
|
+
* @instance
|
|
31879
|
+
*/
|
|
31880
|
+
ContentfulVariationContainerUpdated.prototype.slug = "";
|
|
31881
|
+
|
|
31882
|
+
/**
|
|
31883
|
+
* ContentfulVariationContainerUpdated variations.
|
|
31884
|
+
* @member {Object.<string,contentful.ISlugReference>} variations
|
|
31885
|
+
* @memberof ContentfulVariationContainerUpdated
|
|
31886
|
+
* @instance
|
|
31887
|
+
*/
|
|
31888
|
+
ContentfulVariationContainerUpdated.prototype.variations = $util.emptyObject;
|
|
31889
|
+
|
|
31890
|
+
/**
|
|
31891
|
+
* ContentfulVariationContainerUpdated updatedAt.
|
|
31892
|
+
* @member {number|Long} updatedAt
|
|
31893
|
+
* @memberof ContentfulVariationContainerUpdated
|
|
31894
|
+
* @instance
|
|
31895
|
+
*/
|
|
31896
|
+
ContentfulVariationContainerUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
31897
|
+
|
|
31898
|
+
/**
|
|
31899
|
+
* Creates a new ContentfulVariationContainerUpdated instance using the specified properties.
|
|
31900
|
+
* @function create
|
|
31901
|
+
* @memberof ContentfulVariationContainerUpdated
|
|
31902
|
+
* @static
|
|
31903
|
+
* @param {IContentfulVariationContainerUpdated=} [properties] Properties to set
|
|
31904
|
+
* @returns {ContentfulVariationContainerUpdated} ContentfulVariationContainerUpdated instance
|
|
31905
|
+
*/
|
|
31906
|
+
ContentfulVariationContainerUpdated.create = function create(properties) {
|
|
31907
|
+
return new ContentfulVariationContainerUpdated(properties);
|
|
31908
|
+
};
|
|
31909
|
+
|
|
31910
|
+
/**
|
|
31911
|
+
* Encodes the specified ContentfulVariationContainerUpdated message. Does not implicitly {@link ContentfulVariationContainerUpdated.verify|verify} messages.
|
|
31912
|
+
* @function encode
|
|
31913
|
+
* @memberof ContentfulVariationContainerUpdated
|
|
31914
|
+
* @static
|
|
31915
|
+
* @param {IContentfulVariationContainerUpdated} message ContentfulVariationContainerUpdated message or plain object to encode
|
|
31916
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
31917
|
+
* @returns {$protobuf.Writer} Writer
|
|
31918
|
+
*/
|
|
31919
|
+
ContentfulVariationContainerUpdated.encode = function encode(message, writer) {
|
|
31920
|
+
if (!writer)
|
|
31921
|
+
writer = $Writer.create();
|
|
31922
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
31923
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
31924
|
+
if (message.variations != null && message.hasOwnProperty("variations"))
|
|
31925
|
+
for (var keys = Object.keys(message.variations), i = 0; i < keys.length; ++i) {
|
|
31926
|
+
writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
31927
|
+
$root.contentful.SlugReference.encode(message.variations[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
31928
|
+
}
|
|
31929
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
31930
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.updatedAt);
|
|
31931
|
+
return writer;
|
|
31932
|
+
};
|
|
31933
|
+
|
|
31934
|
+
/**
|
|
31935
|
+
* Encodes the specified ContentfulVariationContainerUpdated message, length delimited. Does not implicitly {@link ContentfulVariationContainerUpdated.verify|verify} messages.
|
|
31936
|
+
* @function encodeDelimited
|
|
31937
|
+
* @memberof ContentfulVariationContainerUpdated
|
|
31938
|
+
* @static
|
|
31939
|
+
* @param {IContentfulVariationContainerUpdated} message ContentfulVariationContainerUpdated message or plain object to encode
|
|
31940
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
31941
|
+
* @returns {$protobuf.Writer} Writer
|
|
31942
|
+
*/
|
|
31943
|
+
ContentfulVariationContainerUpdated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
31944
|
+
return this.encode(message, writer).ldelim();
|
|
31945
|
+
};
|
|
31946
|
+
|
|
31947
|
+
/**
|
|
31948
|
+
* Decodes a ContentfulVariationContainerUpdated message from the specified reader or buffer.
|
|
31949
|
+
* @function decode
|
|
31950
|
+
* @memberof ContentfulVariationContainerUpdated
|
|
31951
|
+
* @static
|
|
31952
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
31953
|
+
* @param {number} [length] Message length if known beforehand
|
|
31954
|
+
* @returns {ContentfulVariationContainerUpdated} ContentfulVariationContainerUpdated
|
|
31955
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
31956
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
31957
|
+
*/
|
|
31958
|
+
ContentfulVariationContainerUpdated.decode = function decode(reader, length) {
|
|
31959
|
+
if (!(reader instanceof $Reader))
|
|
31960
|
+
reader = $Reader.create(reader);
|
|
31961
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulVariationContainerUpdated(), key;
|
|
31962
|
+
while (reader.pos < end) {
|
|
31963
|
+
var tag = reader.uint32();
|
|
31964
|
+
switch (tag >>> 3) {
|
|
31965
|
+
case 1:
|
|
31966
|
+
message.slug = reader.string();
|
|
31967
|
+
break;
|
|
31968
|
+
case 2:
|
|
31969
|
+
reader.skip().pos++;
|
|
31970
|
+
if (message.variations === $util.emptyObject)
|
|
31971
|
+
message.variations = {};
|
|
31972
|
+
key = reader.string();
|
|
31973
|
+
reader.pos++;
|
|
31974
|
+
message.variations[key] = $root.contentful.SlugReference.decode(reader, reader.uint32());
|
|
31975
|
+
break;
|
|
31976
|
+
case 3:
|
|
31977
|
+
message.updatedAt = reader.uint64();
|
|
31978
|
+
break;
|
|
31979
|
+
default:
|
|
31980
|
+
reader.skipType(tag & 7);
|
|
31981
|
+
break;
|
|
31982
|
+
}
|
|
31983
|
+
}
|
|
31984
|
+
return message;
|
|
31985
|
+
};
|
|
31986
|
+
|
|
31987
|
+
/**
|
|
31988
|
+
* Decodes a ContentfulVariationContainerUpdated message from the specified reader or buffer, length delimited.
|
|
31989
|
+
* @function decodeDelimited
|
|
31990
|
+
* @memberof ContentfulVariationContainerUpdated
|
|
31991
|
+
* @static
|
|
31992
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
31993
|
+
* @returns {ContentfulVariationContainerUpdated} ContentfulVariationContainerUpdated
|
|
31994
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
31995
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
31996
|
+
*/
|
|
31997
|
+
ContentfulVariationContainerUpdated.decodeDelimited = function decodeDelimited(reader) {
|
|
31998
|
+
if (!(reader instanceof $Reader))
|
|
31999
|
+
reader = new $Reader(reader);
|
|
32000
|
+
return this.decode(reader, reader.uint32());
|
|
32001
|
+
};
|
|
32002
|
+
|
|
32003
|
+
/**
|
|
32004
|
+
* Verifies a ContentfulVariationContainerUpdated message.
|
|
32005
|
+
* @function verify
|
|
32006
|
+
* @memberof ContentfulVariationContainerUpdated
|
|
32007
|
+
* @static
|
|
32008
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
32009
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
32010
|
+
*/
|
|
32011
|
+
ContentfulVariationContainerUpdated.verify = function verify(message) {
|
|
32012
|
+
if (typeof message !== "object" || message === null)
|
|
32013
|
+
return "object expected";
|
|
32014
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
32015
|
+
if (!$util.isString(message.slug))
|
|
32016
|
+
return "slug: string expected";
|
|
32017
|
+
if (message.variations != null && message.hasOwnProperty("variations")) {
|
|
32018
|
+
if (!$util.isObject(message.variations))
|
|
32019
|
+
return "variations: object expected";
|
|
32020
|
+
var key = Object.keys(message.variations);
|
|
32021
|
+
for (var i = 0; i < key.length; ++i) {
|
|
32022
|
+
var error = $root.contentful.SlugReference.verify(message.variations[key[i]]);
|
|
32023
|
+
if (error)
|
|
32024
|
+
return "variations." + error;
|
|
32025
|
+
}
|
|
32026
|
+
}
|
|
32027
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
32028
|
+
if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
|
|
32029
|
+
return "updatedAt: integer|Long expected";
|
|
32030
|
+
return null;
|
|
32031
|
+
};
|
|
32032
|
+
|
|
32033
|
+
/**
|
|
32034
|
+
* Creates a ContentfulVariationContainerUpdated message from a plain object. Also converts values to their respective internal types.
|
|
32035
|
+
* @function fromObject
|
|
32036
|
+
* @memberof ContentfulVariationContainerUpdated
|
|
32037
|
+
* @static
|
|
32038
|
+
* @param {Object.<string,*>} object Plain object
|
|
32039
|
+
* @returns {ContentfulVariationContainerUpdated} ContentfulVariationContainerUpdated
|
|
32040
|
+
*/
|
|
32041
|
+
ContentfulVariationContainerUpdated.fromObject = function fromObject(object) {
|
|
32042
|
+
if (object instanceof $root.ContentfulVariationContainerUpdated)
|
|
32043
|
+
return object;
|
|
32044
|
+
var message = new $root.ContentfulVariationContainerUpdated();
|
|
32045
|
+
if (object.slug != null)
|
|
32046
|
+
message.slug = String(object.slug);
|
|
32047
|
+
if (object.variations) {
|
|
32048
|
+
if (typeof object.variations !== "object")
|
|
32049
|
+
throw TypeError(".ContentfulVariationContainerUpdated.variations: object expected");
|
|
32050
|
+
message.variations = {};
|
|
32051
|
+
for (var keys = Object.keys(object.variations), i = 0; i < keys.length; ++i) {
|
|
32052
|
+
if (typeof object.variations[keys[i]] !== "object")
|
|
32053
|
+
throw TypeError(".ContentfulVariationContainerUpdated.variations: object expected");
|
|
32054
|
+
message.variations[keys[i]] = $root.contentful.SlugReference.fromObject(object.variations[keys[i]]);
|
|
32055
|
+
}
|
|
32056
|
+
}
|
|
32057
|
+
if (object.updatedAt != null)
|
|
32058
|
+
if ($util.Long)
|
|
32059
|
+
(message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
|
|
32060
|
+
else if (typeof object.updatedAt === "string")
|
|
32061
|
+
message.updatedAt = parseInt(object.updatedAt, 10);
|
|
32062
|
+
else if (typeof object.updatedAt === "number")
|
|
32063
|
+
message.updatedAt = object.updatedAt;
|
|
32064
|
+
else if (typeof object.updatedAt === "object")
|
|
32065
|
+
message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
|
|
32066
|
+
return message;
|
|
32067
|
+
};
|
|
32068
|
+
|
|
32069
|
+
/**
|
|
32070
|
+
* Creates a plain object from a ContentfulVariationContainerUpdated message. Also converts values to other types if specified.
|
|
32071
|
+
* @function toObject
|
|
32072
|
+
* @memberof ContentfulVariationContainerUpdated
|
|
32073
|
+
* @static
|
|
32074
|
+
* @param {ContentfulVariationContainerUpdated} message ContentfulVariationContainerUpdated
|
|
32075
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
32076
|
+
* @returns {Object.<string,*>} Plain object
|
|
32077
|
+
*/
|
|
32078
|
+
ContentfulVariationContainerUpdated.toObject = function toObject(message, options) {
|
|
32079
|
+
if (!options)
|
|
32080
|
+
options = {};
|
|
32081
|
+
var object = {};
|
|
32082
|
+
if (options.objects || options.defaults)
|
|
32083
|
+
object.variations = {};
|
|
32084
|
+
if (options.defaults) {
|
|
32085
|
+
object.slug = "";
|
|
32086
|
+
if ($util.Long) {
|
|
32087
|
+
var long = new $util.Long(0, 0, true);
|
|
32088
|
+
object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
32089
|
+
} else
|
|
32090
|
+
object.updatedAt = options.longs === String ? "0" : 0;
|
|
32091
|
+
}
|
|
32092
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
32093
|
+
object.slug = message.slug;
|
|
32094
|
+
var keys2;
|
|
32095
|
+
if (message.variations && (keys2 = Object.keys(message.variations)).length) {
|
|
32096
|
+
object.variations = {};
|
|
32097
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
32098
|
+
object.variations[keys2[j]] = $root.contentful.SlugReference.toObject(message.variations[keys2[j]], options);
|
|
32099
|
+
}
|
|
32100
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
32101
|
+
if (typeof message.updatedAt === "number")
|
|
32102
|
+
object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
|
|
32103
|
+
else
|
|
32104
|
+
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;
|
|
32105
|
+
return object;
|
|
32106
|
+
};
|
|
32107
|
+
|
|
32108
|
+
/**
|
|
32109
|
+
* Converts this ContentfulVariationContainerUpdated to JSON.
|
|
32110
|
+
* @function toJSON
|
|
32111
|
+
* @memberof ContentfulVariationContainerUpdated
|
|
32112
|
+
* @instance
|
|
32113
|
+
* @returns {Object.<string,*>} JSON object
|
|
32114
|
+
*/
|
|
32115
|
+
ContentfulVariationContainerUpdated.prototype.toJSON = function toJSON() {
|
|
32116
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
32117
|
+
};
|
|
32118
|
+
|
|
32119
|
+
return ContentfulVariationContainerUpdated;
|
|
32120
|
+
})();
|
|
32121
|
+
|
|
32122
|
+
$root.ContentfulVariationContainerDeleted = (function() {
|
|
32123
|
+
|
|
32124
|
+
/**
|
|
32125
|
+
* Properties of a ContentfulVariationContainerDeleted.
|
|
32126
|
+
* @exports IContentfulVariationContainerDeleted
|
|
32127
|
+
* @interface IContentfulVariationContainerDeleted
|
|
32128
|
+
* @property {string|null} [slug] ContentfulVariationContainerDeleted slug
|
|
32129
|
+
* @property {number|Long|null} [deletedAt] ContentfulVariationContainerDeleted deletedAt
|
|
32130
|
+
*/
|
|
32131
|
+
|
|
32132
|
+
/**
|
|
32133
|
+
* Constructs a new ContentfulVariationContainerDeleted.
|
|
32134
|
+
* @exports ContentfulVariationContainerDeleted
|
|
32135
|
+
* @classdesc Represents a ContentfulVariationContainerDeleted.
|
|
32136
|
+
* @implements IContentfulVariationContainerDeleted
|
|
32137
|
+
* @constructor
|
|
32138
|
+
* @param {IContentfulVariationContainerDeleted=} [properties] Properties to set
|
|
32139
|
+
*/
|
|
32140
|
+
function ContentfulVariationContainerDeleted(properties) {
|
|
32141
|
+
if (properties)
|
|
32142
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
32143
|
+
if (properties[keys[i]] != null)
|
|
32144
|
+
this[keys[i]] = properties[keys[i]];
|
|
32145
|
+
}
|
|
32146
|
+
|
|
32147
|
+
/**
|
|
32148
|
+
* ContentfulVariationContainerDeleted slug.
|
|
32149
|
+
* @member {string} slug
|
|
32150
|
+
* @memberof ContentfulVariationContainerDeleted
|
|
32151
|
+
* @instance
|
|
32152
|
+
*/
|
|
32153
|
+
ContentfulVariationContainerDeleted.prototype.slug = "";
|
|
32154
|
+
|
|
32155
|
+
/**
|
|
32156
|
+
* ContentfulVariationContainerDeleted deletedAt.
|
|
32157
|
+
* @member {number|Long} deletedAt
|
|
32158
|
+
* @memberof ContentfulVariationContainerDeleted
|
|
32159
|
+
* @instance
|
|
32160
|
+
*/
|
|
32161
|
+
ContentfulVariationContainerDeleted.prototype.deletedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
32162
|
+
|
|
32163
|
+
/**
|
|
32164
|
+
* Creates a new ContentfulVariationContainerDeleted instance using the specified properties.
|
|
32165
|
+
* @function create
|
|
32166
|
+
* @memberof ContentfulVariationContainerDeleted
|
|
32167
|
+
* @static
|
|
32168
|
+
* @param {IContentfulVariationContainerDeleted=} [properties] Properties to set
|
|
32169
|
+
* @returns {ContentfulVariationContainerDeleted} ContentfulVariationContainerDeleted instance
|
|
32170
|
+
*/
|
|
32171
|
+
ContentfulVariationContainerDeleted.create = function create(properties) {
|
|
32172
|
+
return new ContentfulVariationContainerDeleted(properties);
|
|
32173
|
+
};
|
|
32174
|
+
|
|
32175
|
+
/**
|
|
32176
|
+
* Encodes the specified ContentfulVariationContainerDeleted message. Does not implicitly {@link ContentfulVariationContainerDeleted.verify|verify} messages.
|
|
32177
|
+
* @function encode
|
|
32178
|
+
* @memberof ContentfulVariationContainerDeleted
|
|
32179
|
+
* @static
|
|
32180
|
+
* @param {IContentfulVariationContainerDeleted} message ContentfulVariationContainerDeleted message or plain object to encode
|
|
32181
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
32182
|
+
* @returns {$protobuf.Writer} Writer
|
|
32183
|
+
*/
|
|
32184
|
+
ContentfulVariationContainerDeleted.encode = function encode(message, writer) {
|
|
32185
|
+
if (!writer)
|
|
32186
|
+
writer = $Writer.create();
|
|
32187
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
32188
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
32189
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
32190
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.deletedAt);
|
|
32191
|
+
return writer;
|
|
32192
|
+
};
|
|
32193
|
+
|
|
32194
|
+
/**
|
|
32195
|
+
* Encodes the specified ContentfulVariationContainerDeleted message, length delimited. Does not implicitly {@link ContentfulVariationContainerDeleted.verify|verify} messages.
|
|
32196
|
+
* @function encodeDelimited
|
|
32197
|
+
* @memberof ContentfulVariationContainerDeleted
|
|
32198
|
+
* @static
|
|
32199
|
+
* @param {IContentfulVariationContainerDeleted} message ContentfulVariationContainerDeleted message or plain object to encode
|
|
32200
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
32201
|
+
* @returns {$protobuf.Writer} Writer
|
|
32202
|
+
*/
|
|
32203
|
+
ContentfulVariationContainerDeleted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
32204
|
+
return this.encode(message, writer).ldelim();
|
|
32205
|
+
};
|
|
32206
|
+
|
|
32207
|
+
/**
|
|
32208
|
+
* Decodes a ContentfulVariationContainerDeleted message from the specified reader or buffer.
|
|
32209
|
+
* @function decode
|
|
32210
|
+
* @memberof ContentfulVariationContainerDeleted
|
|
32211
|
+
* @static
|
|
32212
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
32213
|
+
* @param {number} [length] Message length if known beforehand
|
|
32214
|
+
* @returns {ContentfulVariationContainerDeleted} ContentfulVariationContainerDeleted
|
|
32215
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
32216
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
32217
|
+
*/
|
|
32218
|
+
ContentfulVariationContainerDeleted.decode = function decode(reader, length) {
|
|
32219
|
+
if (!(reader instanceof $Reader))
|
|
32220
|
+
reader = $Reader.create(reader);
|
|
32221
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulVariationContainerDeleted();
|
|
32222
|
+
while (reader.pos < end) {
|
|
32223
|
+
var tag = reader.uint32();
|
|
32224
|
+
switch (tag >>> 3) {
|
|
32225
|
+
case 1:
|
|
32226
|
+
message.slug = reader.string();
|
|
32227
|
+
break;
|
|
32228
|
+
case 2:
|
|
32229
|
+
message.deletedAt = reader.uint64();
|
|
32230
|
+
break;
|
|
32231
|
+
default:
|
|
32232
|
+
reader.skipType(tag & 7);
|
|
32233
|
+
break;
|
|
32234
|
+
}
|
|
32235
|
+
}
|
|
32236
|
+
return message;
|
|
32237
|
+
};
|
|
32238
|
+
|
|
32239
|
+
/**
|
|
32240
|
+
* Decodes a ContentfulVariationContainerDeleted message from the specified reader or buffer, length delimited.
|
|
32241
|
+
* @function decodeDelimited
|
|
32242
|
+
* @memberof ContentfulVariationContainerDeleted
|
|
32243
|
+
* @static
|
|
32244
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
32245
|
+
* @returns {ContentfulVariationContainerDeleted} ContentfulVariationContainerDeleted
|
|
32246
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
32247
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
32248
|
+
*/
|
|
32249
|
+
ContentfulVariationContainerDeleted.decodeDelimited = function decodeDelimited(reader) {
|
|
32250
|
+
if (!(reader instanceof $Reader))
|
|
32251
|
+
reader = new $Reader(reader);
|
|
32252
|
+
return this.decode(reader, reader.uint32());
|
|
32253
|
+
};
|
|
32254
|
+
|
|
32255
|
+
/**
|
|
32256
|
+
* Verifies a ContentfulVariationContainerDeleted message.
|
|
32257
|
+
* @function verify
|
|
32258
|
+
* @memberof ContentfulVariationContainerDeleted
|
|
32259
|
+
* @static
|
|
32260
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
32261
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
32262
|
+
*/
|
|
32263
|
+
ContentfulVariationContainerDeleted.verify = function verify(message) {
|
|
32264
|
+
if (typeof message !== "object" || message === null)
|
|
32265
|
+
return "object expected";
|
|
32266
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
32267
|
+
if (!$util.isString(message.slug))
|
|
32268
|
+
return "slug: string expected";
|
|
32269
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
32270
|
+
if (!$util.isInteger(message.deletedAt) && !(message.deletedAt && $util.isInteger(message.deletedAt.low) && $util.isInteger(message.deletedAt.high)))
|
|
32271
|
+
return "deletedAt: integer|Long expected";
|
|
32272
|
+
return null;
|
|
32273
|
+
};
|
|
32274
|
+
|
|
32275
|
+
/**
|
|
32276
|
+
* Creates a ContentfulVariationContainerDeleted message from a plain object. Also converts values to their respective internal types.
|
|
32277
|
+
* @function fromObject
|
|
32278
|
+
* @memberof ContentfulVariationContainerDeleted
|
|
32279
|
+
* @static
|
|
32280
|
+
* @param {Object.<string,*>} object Plain object
|
|
32281
|
+
* @returns {ContentfulVariationContainerDeleted} ContentfulVariationContainerDeleted
|
|
32282
|
+
*/
|
|
32283
|
+
ContentfulVariationContainerDeleted.fromObject = function fromObject(object) {
|
|
32284
|
+
if (object instanceof $root.ContentfulVariationContainerDeleted)
|
|
32285
|
+
return object;
|
|
32286
|
+
var message = new $root.ContentfulVariationContainerDeleted();
|
|
32287
|
+
if (object.slug != null)
|
|
32288
|
+
message.slug = String(object.slug);
|
|
32289
|
+
if (object.deletedAt != null)
|
|
32290
|
+
if ($util.Long)
|
|
32291
|
+
(message.deletedAt = $util.Long.fromValue(object.deletedAt)).unsigned = true;
|
|
32292
|
+
else if (typeof object.deletedAt === "string")
|
|
32293
|
+
message.deletedAt = parseInt(object.deletedAt, 10);
|
|
32294
|
+
else if (typeof object.deletedAt === "number")
|
|
32295
|
+
message.deletedAt = object.deletedAt;
|
|
32296
|
+
else if (typeof object.deletedAt === "object")
|
|
32297
|
+
message.deletedAt = new $util.LongBits(object.deletedAt.low >>> 0, object.deletedAt.high >>> 0).toNumber(true);
|
|
32298
|
+
return message;
|
|
32299
|
+
};
|
|
32300
|
+
|
|
32301
|
+
/**
|
|
32302
|
+
* Creates a plain object from a ContentfulVariationContainerDeleted message. Also converts values to other types if specified.
|
|
32303
|
+
* @function toObject
|
|
32304
|
+
* @memberof ContentfulVariationContainerDeleted
|
|
32305
|
+
* @static
|
|
32306
|
+
* @param {ContentfulVariationContainerDeleted} message ContentfulVariationContainerDeleted
|
|
32307
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
32308
|
+
* @returns {Object.<string,*>} Plain object
|
|
32309
|
+
*/
|
|
32310
|
+
ContentfulVariationContainerDeleted.toObject = function toObject(message, options) {
|
|
32311
|
+
if (!options)
|
|
32312
|
+
options = {};
|
|
32313
|
+
var object = {};
|
|
32314
|
+
if (options.defaults) {
|
|
32315
|
+
object.slug = "";
|
|
32316
|
+
if ($util.Long) {
|
|
32317
|
+
var long = new $util.Long(0, 0, true);
|
|
32318
|
+
object.deletedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
32319
|
+
} else
|
|
32320
|
+
object.deletedAt = options.longs === String ? "0" : 0;
|
|
32321
|
+
}
|
|
32322
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
32323
|
+
object.slug = message.slug;
|
|
32324
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
32325
|
+
if (typeof message.deletedAt === "number")
|
|
32326
|
+
object.deletedAt = options.longs === String ? String(message.deletedAt) : message.deletedAt;
|
|
32327
|
+
else
|
|
32328
|
+
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;
|
|
32329
|
+
return object;
|
|
32330
|
+
};
|
|
32331
|
+
|
|
32332
|
+
/**
|
|
32333
|
+
* Converts this ContentfulVariationContainerDeleted to JSON.
|
|
32334
|
+
* @function toJSON
|
|
32335
|
+
* @memberof ContentfulVariationContainerDeleted
|
|
32336
|
+
* @instance
|
|
32337
|
+
* @returns {Object.<string,*>} JSON object
|
|
32338
|
+
*/
|
|
32339
|
+
ContentfulVariationContainerDeleted.prototype.toJSON = function toJSON() {
|
|
32340
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
32341
|
+
};
|
|
32342
|
+
|
|
32343
|
+
return ContentfulVariationContainerDeleted;
|
|
32344
|
+
})();
|
|
32345
|
+
|
|
31572
32346
|
$root.ContentfulContentModelCreated = (function() {
|
|
31573
32347
|
|
|
31574
32348
|
/**
|