@headspace/protos-events 1.149.0 → 1.150.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 +420 -0
- package/lib/index.js +1376 -0
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -24601,6 +24601,1382 @@ $root.ContentfulLayoutDeleted = (function() {
|
|
|
24601
24601
|
return ContentfulLayoutDeleted;
|
|
24602
24602
|
})();
|
|
24603
24603
|
|
|
24604
|
+
$root.ContentfulModuleDescriptorCreated = (function() {
|
|
24605
|
+
|
|
24606
|
+
/**
|
|
24607
|
+
* Properties of a ContentfulModuleDescriptorCreated.
|
|
24608
|
+
* @exports IContentfulModuleDescriptorCreated
|
|
24609
|
+
* @interface IContentfulModuleDescriptorCreated
|
|
24610
|
+
* @property {Object.<string,string>|null} [title] ContentfulModuleDescriptorCreated title
|
|
24611
|
+
* @property {string|null} [slug] ContentfulModuleDescriptorCreated slug
|
|
24612
|
+
* @property {string|null} [description] ContentfulModuleDescriptorCreated description
|
|
24613
|
+
* @property {string|null} [layoutType] ContentfulModuleDescriptorCreated layoutType
|
|
24614
|
+
* @property {string|null} [url] ContentfulModuleDescriptorCreated url
|
|
24615
|
+
* @property {Array.<string>|null} [languageExclusions] ContentfulModuleDescriptorCreated languageExclusions
|
|
24616
|
+
* @property {string|null} [theme] ContentfulModuleDescriptorCreated theme
|
|
24617
|
+
* @property {Object.<string,contentful.IIdReference>|null} [tabAsset] ContentfulModuleDescriptorCreated tabAsset
|
|
24618
|
+
* @property {string|null} [analyticsId] ContentfulModuleDescriptorCreated analyticsId
|
|
24619
|
+
* @property {string|null} [marketingId] ContentfulModuleDescriptorCreated marketingId
|
|
24620
|
+
* @property {Array.<contentful.ISlugReference>|null} [accessGroups] ContentfulModuleDescriptorCreated accessGroups
|
|
24621
|
+
* @property {Array.<contentful.ISlugReference>|null} [excludedAccessGroups] ContentfulModuleDescriptorCreated excludedAccessGroups
|
|
24622
|
+
* @property {number|Long|null} [createdAt] ContentfulModuleDescriptorCreated createdAt
|
|
24623
|
+
*/
|
|
24624
|
+
|
|
24625
|
+
/**
|
|
24626
|
+
* Constructs a new ContentfulModuleDescriptorCreated.
|
|
24627
|
+
* @exports ContentfulModuleDescriptorCreated
|
|
24628
|
+
* @classdesc Represents a ContentfulModuleDescriptorCreated.
|
|
24629
|
+
* @implements IContentfulModuleDescriptorCreated
|
|
24630
|
+
* @constructor
|
|
24631
|
+
* @param {IContentfulModuleDescriptorCreated=} [properties] Properties to set
|
|
24632
|
+
*/
|
|
24633
|
+
function ContentfulModuleDescriptorCreated(properties) {
|
|
24634
|
+
this.title = {};
|
|
24635
|
+
this.languageExclusions = [];
|
|
24636
|
+
this.tabAsset = {};
|
|
24637
|
+
this.accessGroups = [];
|
|
24638
|
+
this.excludedAccessGroups = [];
|
|
24639
|
+
if (properties)
|
|
24640
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
24641
|
+
if (properties[keys[i]] != null)
|
|
24642
|
+
this[keys[i]] = properties[keys[i]];
|
|
24643
|
+
}
|
|
24644
|
+
|
|
24645
|
+
/**
|
|
24646
|
+
* ContentfulModuleDescriptorCreated title.
|
|
24647
|
+
* @member {Object.<string,string>} title
|
|
24648
|
+
* @memberof ContentfulModuleDescriptorCreated
|
|
24649
|
+
* @instance
|
|
24650
|
+
*/
|
|
24651
|
+
ContentfulModuleDescriptorCreated.prototype.title = $util.emptyObject;
|
|
24652
|
+
|
|
24653
|
+
/**
|
|
24654
|
+
* ContentfulModuleDescriptorCreated slug.
|
|
24655
|
+
* @member {string} slug
|
|
24656
|
+
* @memberof ContentfulModuleDescriptorCreated
|
|
24657
|
+
* @instance
|
|
24658
|
+
*/
|
|
24659
|
+
ContentfulModuleDescriptorCreated.prototype.slug = "";
|
|
24660
|
+
|
|
24661
|
+
/**
|
|
24662
|
+
* ContentfulModuleDescriptorCreated description.
|
|
24663
|
+
* @member {string} description
|
|
24664
|
+
* @memberof ContentfulModuleDescriptorCreated
|
|
24665
|
+
* @instance
|
|
24666
|
+
*/
|
|
24667
|
+
ContentfulModuleDescriptorCreated.prototype.description = "";
|
|
24668
|
+
|
|
24669
|
+
/**
|
|
24670
|
+
* ContentfulModuleDescriptorCreated layoutType.
|
|
24671
|
+
* @member {string} layoutType
|
|
24672
|
+
* @memberof ContentfulModuleDescriptorCreated
|
|
24673
|
+
* @instance
|
|
24674
|
+
*/
|
|
24675
|
+
ContentfulModuleDescriptorCreated.prototype.layoutType = "";
|
|
24676
|
+
|
|
24677
|
+
/**
|
|
24678
|
+
* ContentfulModuleDescriptorCreated url.
|
|
24679
|
+
* @member {string} url
|
|
24680
|
+
* @memberof ContentfulModuleDescriptorCreated
|
|
24681
|
+
* @instance
|
|
24682
|
+
*/
|
|
24683
|
+
ContentfulModuleDescriptorCreated.prototype.url = "";
|
|
24684
|
+
|
|
24685
|
+
/**
|
|
24686
|
+
* ContentfulModuleDescriptorCreated languageExclusions.
|
|
24687
|
+
* @member {Array.<string>} languageExclusions
|
|
24688
|
+
* @memberof ContentfulModuleDescriptorCreated
|
|
24689
|
+
* @instance
|
|
24690
|
+
*/
|
|
24691
|
+
ContentfulModuleDescriptorCreated.prototype.languageExclusions = $util.emptyArray;
|
|
24692
|
+
|
|
24693
|
+
/**
|
|
24694
|
+
* ContentfulModuleDescriptorCreated theme.
|
|
24695
|
+
* @member {string} theme
|
|
24696
|
+
* @memberof ContentfulModuleDescriptorCreated
|
|
24697
|
+
* @instance
|
|
24698
|
+
*/
|
|
24699
|
+
ContentfulModuleDescriptorCreated.prototype.theme = "";
|
|
24700
|
+
|
|
24701
|
+
/**
|
|
24702
|
+
* ContentfulModuleDescriptorCreated tabAsset.
|
|
24703
|
+
* @member {Object.<string,contentful.IIdReference>} tabAsset
|
|
24704
|
+
* @memberof ContentfulModuleDescriptorCreated
|
|
24705
|
+
* @instance
|
|
24706
|
+
*/
|
|
24707
|
+
ContentfulModuleDescriptorCreated.prototype.tabAsset = $util.emptyObject;
|
|
24708
|
+
|
|
24709
|
+
/**
|
|
24710
|
+
* ContentfulModuleDescriptorCreated analyticsId.
|
|
24711
|
+
* @member {string} analyticsId
|
|
24712
|
+
* @memberof ContentfulModuleDescriptorCreated
|
|
24713
|
+
* @instance
|
|
24714
|
+
*/
|
|
24715
|
+
ContentfulModuleDescriptorCreated.prototype.analyticsId = "";
|
|
24716
|
+
|
|
24717
|
+
/**
|
|
24718
|
+
* ContentfulModuleDescriptorCreated marketingId.
|
|
24719
|
+
* @member {string} marketingId
|
|
24720
|
+
* @memberof ContentfulModuleDescriptorCreated
|
|
24721
|
+
* @instance
|
|
24722
|
+
*/
|
|
24723
|
+
ContentfulModuleDescriptorCreated.prototype.marketingId = "";
|
|
24724
|
+
|
|
24725
|
+
/**
|
|
24726
|
+
* ContentfulModuleDescriptorCreated accessGroups.
|
|
24727
|
+
* @member {Array.<contentful.ISlugReference>} accessGroups
|
|
24728
|
+
* @memberof ContentfulModuleDescriptorCreated
|
|
24729
|
+
* @instance
|
|
24730
|
+
*/
|
|
24731
|
+
ContentfulModuleDescriptorCreated.prototype.accessGroups = $util.emptyArray;
|
|
24732
|
+
|
|
24733
|
+
/**
|
|
24734
|
+
* ContentfulModuleDescriptorCreated excludedAccessGroups.
|
|
24735
|
+
* @member {Array.<contentful.ISlugReference>} excludedAccessGroups
|
|
24736
|
+
* @memberof ContentfulModuleDescriptorCreated
|
|
24737
|
+
* @instance
|
|
24738
|
+
*/
|
|
24739
|
+
ContentfulModuleDescriptorCreated.prototype.excludedAccessGroups = $util.emptyArray;
|
|
24740
|
+
|
|
24741
|
+
/**
|
|
24742
|
+
* ContentfulModuleDescriptorCreated createdAt.
|
|
24743
|
+
* @member {number|Long} createdAt
|
|
24744
|
+
* @memberof ContentfulModuleDescriptorCreated
|
|
24745
|
+
* @instance
|
|
24746
|
+
*/
|
|
24747
|
+
ContentfulModuleDescriptorCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
24748
|
+
|
|
24749
|
+
/**
|
|
24750
|
+
* Creates a new ContentfulModuleDescriptorCreated instance using the specified properties.
|
|
24751
|
+
* @function create
|
|
24752
|
+
* @memberof ContentfulModuleDescriptorCreated
|
|
24753
|
+
* @static
|
|
24754
|
+
* @param {IContentfulModuleDescriptorCreated=} [properties] Properties to set
|
|
24755
|
+
* @returns {ContentfulModuleDescriptorCreated} ContentfulModuleDescriptorCreated instance
|
|
24756
|
+
*/
|
|
24757
|
+
ContentfulModuleDescriptorCreated.create = function create(properties) {
|
|
24758
|
+
return new ContentfulModuleDescriptorCreated(properties);
|
|
24759
|
+
};
|
|
24760
|
+
|
|
24761
|
+
/**
|
|
24762
|
+
* Encodes the specified ContentfulModuleDescriptorCreated message. Does not implicitly {@link ContentfulModuleDescriptorCreated.verify|verify} messages.
|
|
24763
|
+
* @function encode
|
|
24764
|
+
* @memberof ContentfulModuleDescriptorCreated
|
|
24765
|
+
* @static
|
|
24766
|
+
* @param {IContentfulModuleDescriptorCreated} message ContentfulModuleDescriptorCreated message or plain object to encode
|
|
24767
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
24768
|
+
* @returns {$protobuf.Writer} Writer
|
|
24769
|
+
*/
|
|
24770
|
+
ContentfulModuleDescriptorCreated.encode = function encode(message, writer) {
|
|
24771
|
+
if (!writer)
|
|
24772
|
+
writer = $Writer.create();
|
|
24773
|
+
if (message.title != null && message.hasOwnProperty("title"))
|
|
24774
|
+
for (var keys = Object.keys(message.title), i = 0; i < keys.length; ++i)
|
|
24775
|
+
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.title[keys[i]]).ldelim();
|
|
24776
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
24777
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.slug);
|
|
24778
|
+
if (message.description != null && message.hasOwnProperty("description"))
|
|
24779
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.description);
|
|
24780
|
+
if (message.layoutType != null && message.hasOwnProperty("layoutType"))
|
|
24781
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.layoutType);
|
|
24782
|
+
if (message.url != null && message.hasOwnProperty("url"))
|
|
24783
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.url);
|
|
24784
|
+
if (message.languageExclusions != null && message.languageExclusions.length)
|
|
24785
|
+
for (var i = 0; i < message.languageExclusions.length; ++i)
|
|
24786
|
+
writer.uint32(/* id 6, wireType 2 =*/50).string(message.languageExclusions[i]);
|
|
24787
|
+
if (message.theme != null && message.hasOwnProperty("theme"))
|
|
24788
|
+
writer.uint32(/* id 7, wireType 2 =*/58).string(message.theme);
|
|
24789
|
+
if (message.tabAsset != null && message.hasOwnProperty("tabAsset"))
|
|
24790
|
+
for (var keys = Object.keys(message.tabAsset), i = 0; i < keys.length; ++i) {
|
|
24791
|
+
writer.uint32(/* id 8, wireType 2 =*/66).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
24792
|
+
$root.contentful.IdReference.encode(message.tabAsset[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
24793
|
+
}
|
|
24794
|
+
if (message.analyticsId != null && message.hasOwnProperty("analyticsId"))
|
|
24795
|
+
writer.uint32(/* id 9, wireType 2 =*/74).string(message.analyticsId);
|
|
24796
|
+
if (message.marketingId != null && message.hasOwnProperty("marketingId"))
|
|
24797
|
+
writer.uint32(/* id 10, wireType 2 =*/82).string(message.marketingId);
|
|
24798
|
+
if (message.accessGroups != null && message.accessGroups.length)
|
|
24799
|
+
for (var i = 0; i < message.accessGroups.length; ++i)
|
|
24800
|
+
$root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
|
|
24801
|
+
if (message.excludedAccessGroups != null && message.excludedAccessGroups.length)
|
|
24802
|
+
for (var i = 0; i < message.excludedAccessGroups.length; ++i)
|
|
24803
|
+
$root.contentful.SlugReference.encode(message.excludedAccessGroups[i], writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
|
|
24804
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
24805
|
+
writer.uint32(/* id 13, wireType 0 =*/104).uint64(message.createdAt);
|
|
24806
|
+
return writer;
|
|
24807
|
+
};
|
|
24808
|
+
|
|
24809
|
+
/**
|
|
24810
|
+
* Encodes the specified ContentfulModuleDescriptorCreated message, length delimited. Does not implicitly {@link ContentfulModuleDescriptorCreated.verify|verify} messages.
|
|
24811
|
+
* @function encodeDelimited
|
|
24812
|
+
* @memberof ContentfulModuleDescriptorCreated
|
|
24813
|
+
* @static
|
|
24814
|
+
* @param {IContentfulModuleDescriptorCreated} message ContentfulModuleDescriptorCreated message or plain object to encode
|
|
24815
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
24816
|
+
* @returns {$protobuf.Writer} Writer
|
|
24817
|
+
*/
|
|
24818
|
+
ContentfulModuleDescriptorCreated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
24819
|
+
return this.encode(message, writer).ldelim();
|
|
24820
|
+
};
|
|
24821
|
+
|
|
24822
|
+
/**
|
|
24823
|
+
* Decodes a ContentfulModuleDescriptorCreated message from the specified reader or buffer.
|
|
24824
|
+
* @function decode
|
|
24825
|
+
* @memberof ContentfulModuleDescriptorCreated
|
|
24826
|
+
* @static
|
|
24827
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
24828
|
+
* @param {number} [length] Message length if known beforehand
|
|
24829
|
+
* @returns {ContentfulModuleDescriptorCreated} ContentfulModuleDescriptorCreated
|
|
24830
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
24831
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
24832
|
+
*/
|
|
24833
|
+
ContentfulModuleDescriptorCreated.decode = function decode(reader, length) {
|
|
24834
|
+
if (!(reader instanceof $Reader))
|
|
24835
|
+
reader = $Reader.create(reader);
|
|
24836
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulModuleDescriptorCreated(), key;
|
|
24837
|
+
while (reader.pos < end) {
|
|
24838
|
+
var tag = reader.uint32();
|
|
24839
|
+
switch (tag >>> 3) {
|
|
24840
|
+
case 1:
|
|
24841
|
+
reader.skip().pos++;
|
|
24842
|
+
if (message.title === $util.emptyObject)
|
|
24843
|
+
message.title = {};
|
|
24844
|
+
key = reader.string();
|
|
24845
|
+
reader.pos++;
|
|
24846
|
+
message.title[key] = reader.string();
|
|
24847
|
+
break;
|
|
24848
|
+
case 2:
|
|
24849
|
+
message.slug = reader.string();
|
|
24850
|
+
break;
|
|
24851
|
+
case 3:
|
|
24852
|
+
message.description = reader.string();
|
|
24853
|
+
break;
|
|
24854
|
+
case 4:
|
|
24855
|
+
message.layoutType = reader.string();
|
|
24856
|
+
break;
|
|
24857
|
+
case 5:
|
|
24858
|
+
message.url = reader.string();
|
|
24859
|
+
break;
|
|
24860
|
+
case 6:
|
|
24861
|
+
if (!(message.languageExclusions && message.languageExclusions.length))
|
|
24862
|
+
message.languageExclusions = [];
|
|
24863
|
+
message.languageExclusions.push(reader.string());
|
|
24864
|
+
break;
|
|
24865
|
+
case 7:
|
|
24866
|
+
message.theme = reader.string();
|
|
24867
|
+
break;
|
|
24868
|
+
case 8:
|
|
24869
|
+
reader.skip().pos++;
|
|
24870
|
+
if (message.tabAsset === $util.emptyObject)
|
|
24871
|
+
message.tabAsset = {};
|
|
24872
|
+
key = reader.string();
|
|
24873
|
+
reader.pos++;
|
|
24874
|
+
message.tabAsset[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
|
|
24875
|
+
break;
|
|
24876
|
+
case 9:
|
|
24877
|
+
message.analyticsId = reader.string();
|
|
24878
|
+
break;
|
|
24879
|
+
case 10:
|
|
24880
|
+
message.marketingId = reader.string();
|
|
24881
|
+
break;
|
|
24882
|
+
case 11:
|
|
24883
|
+
if (!(message.accessGroups && message.accessGroups.length))
|
|
24884
|
+
message.accessGroups = [];
|
|
24885
|
+
message.accessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
24886
|
+
break;
|
|
24887
|
+
case 12:
|
|
24888
|
+
if (!(message.excludedAccessGroups && message.excludedAccessGroups.length))
|
|
24889
|
+
message.excludedAccessGroups = [];
|
|
24890
|
+
message.excludedAccessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
24891
|
+
break;
|
|
24892
|
+
case 13:
|
|
24893
|
+
message.createdAt = reader.uint64();
|
|
24894
|
+
break;
|
|
24895
|
+
default:
|
|
24896
|
+
reader.skipType(tag & 7);
|
|
24897
|
+
break;
|
|
24898
|
+
}
|
|
24899
|
+
}
|
|
24900
|
+
return message;
|
|
24901
|
+
};
|
|
24902
|
+
|
|
24903
|
+
/**
|
|
24904
|
+
* Decodes a ContentfulModuleDescriptorCreated message from the specified reader or buffer, length delimited.
|
|
24905
|
+
* @function decodeDelimited
|
|
24906
|
+
* @memberof ContentfulModuleDescriptorCreated
|
|
24907
|
+
* @static
|
|
24908
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
24909
|
+
* @returns {ContentfulModuleDescriptorCreated} ContentfulModuleDescriptorCreated
|
|
24910
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
24911
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
24912
|
+
*/
|
|
24913
|
+
ContentfulModuleDescriptorCreated.decodeDelimited = function decodeDelimited(reader) {
|
|
24914
|
+
if (!(reader instanceof $Reader))
|
|
24915
|
+
reader = new $Reader(reader);
|
|
24916
|
+
return this.decode(reader, reader.uint32());
|
|
24917
|
+
};
|
|
24918
|
+
|
|
24919
|
+
/**
|
|
24920
|
+
* Verifies a ContentfulModuleDescriptorCreated message.
|
|
24921
|
+
* @function verify
|
|
24922
|
+
* @memberof ContentfulModuleDescriptorCreated
|
|
24923
|
+
* @static
|
|
24924
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
24925
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
24926
|
+
*/
|
|
24927
|
+
ContentfulModuleDescriptorCreated.verify = function verify(message) {
|
|
24928
|
+
if (typeof message !== "object" || message === null)
|
|
24929
|
+
return "object expected";
|
|
24930
|
+
if (message.title != null && message.hasOwnProperty("title")) {
|
|
24931
|
+
if (!$util.isObject(message.title))
|
|
24932
|
+
return "title: object expected";
|
|
24933
|
+
var key = Object.keys(message.title);
|
|
24934
|
+
for (var i = 0; i < key.length; ++i)
|
|
24935
|
+
if (!$util.isString(message.title[key[i]]))
|
|
24936
|
+
return "title: string{k:string} expected";
|
|
24937
|
+
}
|
|
24938
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
24939
|
+
if (!$util.isString(message.slug))
|
|
24940
|
+
return "slug: string expected";
|
|
24941
|
+
if (message.description != null && message.hasOwnProperty("description"))
|
|
24942
|
+
if (!$util.isString(message.description))
|
|
24943
|
+
return "description: string expected";
|
|
24944
|
+
if (message.layoutType != null && message.hasOwnProperty("layoutType"))
|
|
24945
|
+
if (!$util.isString(message.layoutType))
|
|
24946
|
+
return "layoutType: string expected";
|
|
24947
|
+
if (message.url != null && message.hasOwnProperty("url"))
|
|
24948
|
+
if (!$util.isString(message.url))
|
|
24949
|
+
return "url: string expected";
|
|
24950
|
+
if (message.languageExclusions != null && message.hasOwnProperty("languageExclusions")) {
|
|
24951
|
+
if (!Array.isArray(message.languageExclusions))
|
|
24952
|
+
return "languageExclusions: array expected";
|
|
24953
|
+
for (var i = 0; i < message.languageExclusions.length; ++i)
|
|
24954
|
+
if (!$util.isString(message.languageExclusions[i]))
|
|
24955
|
+
return "languageExclusions: string[] expected";
|
|
24956
|
+
}
|
|
24957
|
+
if (message.theme != null && message.hasOwnProperty("theme"))
|
|
24958
|
+
if (!$util.isString(message.theme))
|
|
24959
|
+
return "theme: string expected";
|
|
24960
|
+
if (message.tabAsset != null && message.hasOwnProperty("tabAsset")) {
|
|
24961
|
+
if (!$util.isObject(message.tabAsset))
|
|
24962
|
+
return "tabAsset: object expected";
|
|
24963
|
+
var key = Object.keys(message.tabAsset);
|
|
24964
|
+
for (var i = 0; i < key.length; ++i) {
|
|
24965
|
+
var error = $root.contentful.IdReference.verify(message.tabAsset[key[i]]);
|
|
24966
|
+
if (error)
|
|
24967
|
+
return "tabAsset." + error;
|
|
24968
|
+
}
|
|
24969
|
+
}
|
|
24970
|
+
if (message.analyticsId != null && message.hasOwnProperty("analyticsId"))
|
|
24971
|
+
if (!$util.isString(message.analyticsId))
|
|
24972
|
+
return "analyticsId: string expected";
|
|
24973
|
+
if (message.marketingId != null && message.hasOwnProperty("marketingId"))
|
|
24974
|
+
if (!$util.isString(message.marketingId))
|
|
24975
|
+
return "marketingId: string expected";
|
|
24976
|
+
if (message.accessGroups != null && message.hasOwnProperty("accessGroups")) {
|
|
24977
|
+
if (!Array.isArray(message.accessGroups))
|
|
24978
|
+
return "accessGroups: array expected";
|
|
24979
|
+
for (var i = 0; i < message.accessGroups.length; ++i) {
|
|
24980
|
+
var error = $root.contentful.SlugReference.verify(message.accessGroups[i]);
|
|
24981
|
+
if (error)
|
|
24982
|
+
return "accessGroups." + error;
|
|
24983
|
+
}
|
|
24984
|
+
}
|
|
24985
|
+
if (message.excludedAccessGroups != null && message.hasOwnProperty("excludedAccessGroups")) {
|
|
24986
|
+
if (!Array.isArray(message.excludedAccessGroups))
|
|
24987
|
+
return "excludedAccessGroups: array expected";
|
|
24988
|
+
for (var i = 0; i < message.excludedAccessGroups.length; ++i) {
|
|
24989
|
+
var error = $root.contentful.SlugReference.verify(message.excludedAccessGroups[i]);
|
|
24990
|
+
if (error)
|
|
24991
|
+
return "excludedAccessGroups." + error;
|
|
24992
|
+
}
|
|
24993
|
+
}
|
|
24994
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
24995
|
+
if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
|
|
24996
|
+
return "createdAt: integer|Long expected";
|
|
24997
|
+
return null;
|
|
24998
|
+
};
|
|
24999
|
+
|
|
25000
|
+
/**
|
|
25001
|
+
* Creates a ContentfulModuleDescriptorCreated message from a plain object. Also converts values to their respective internal types.
|
|
25002
|
+
* @function fromObject
|
|
25003
|
+
* @memberof ContentfulModuleDescriptorCreated
|
|
25004
|
+
* @static
|
|
25005
|
+
* @param {Object.<string,*>} object Plain object
|
|
25006
|
+
* @returns {ContentfulModuleDescriptorCreated} ContentfulModuleDescriptorCreated
|
|
25007
|
+
*/
|
|
25008
|
+
ContentfulModuleDescriptorCreated.fromObject = function fromObject(object) {
|
|
25009
|
+
if (object instanceof $root.ContentfulModuleDescriptorCreated)
|
|
25010
|
+
return object;
|
|
25011
|
+
var message = new $root.ContentfulModuleDescriptorCreated();
|
|
25012
|
+
if (object.title) {
|
|
25013
|
+
if (typeof object.title !== "object")
|
|
25014
|
+
throw TypeError(".ContentfulModuleDescriptorCreated.title: object expected");
|
|
25015
|
+
message.title = {};
|
|
25016
|
+
for (var keys = Object.keys(object.title), i = 0; i < keys.length; ++i)
|
|
25017
|
+
message.title[keys[i]] = String(object.title[keys[i]]);
|
|
25018
|
+
}
|
|
25019
|
+
if (object.slug != null)
|
|
25020
|
+
message.slug = String(object.slug);
|
|
25021
|
+
if (object.description != null)
|
|
25022
|
+
message.description = String(object.description);
|
|
25023
|
+
if (object.layoutType != null)
|
|
25024
|
+
message.layoutType = String(object.layoutType);
|
|
25025
|
+
if (object.url != null)
|
|
25026
|
+
message.url = String(object.url);
|
|
25027
|
+
if (object.languageExclusions) {
|
|
25028
|
+
if (!Array.isArray(object.languageExclusions))
|
|
25029
|
+
throw TypeError(".ContentfulModuleDescriptorCreated.languageExclusions: array expected");
|
|
25030
|
+
message.languageExclusions = [];
|
|
25031
|
+
for (var i = 0; i < object.languageExclusions.length; ++i)
|
|
25032
|
+
message.languageExclusions[i] = String(object.languageExclusions[i]);
|
|
25033
|
+
}
|
|
25034
|
+
if (object.theme != null)
|
|
25035
|
+
message.theme = String(object.theme);
|
|
25036
|
+
if (object.tabAsset) {
|
|
25037
|
+
if (typeof object.tabAsset !== "object")
|
|
25038
|
+
throw TypeError(".ContentfulModuleDescriptorCreated.tabAsset: object expected");
|
|
25039
|
+
message.tabAsset = {};
|
|
25040
|
+
for (var keys = Object.keys(object.tabAsset), i = 0; i < keys.length; ++i) {
|
|
25041
|
+
if (typeof object.tabAsset[keys[i]] !== "object")
|
|
25042
|
+
throw TypeError(".ContentfulModuleDescriptorCreated.tabAsset: object expected");
|
|
25043
|
+
message.tabAsset[keys[i]] = $root.contentful.IdReference.fromObject(object.tabAsset[keys[i]]);
|
|
25044
|
+
}
|
|
25045
|
+
}
|
|
25046
|
+
if (object.analyticsId != null)
|
|
25047
|
+
message.analyticsId = String(object.analyticsId);
|
|
25048
|
+
if (object.marketingId != null)
|
|
25049
|
+
message.marketingId = String(object.marketingId);
|
|
25050
|
+
if (object.accessGroups) {
|
|
25051
|
+
if (!Array.isArray(object.accessGroups))
|
|
25052
|
+
throw TypeError(".ContentfulModuleDescriptorCreated.accessGroups: array expected");
|
|
25053
|
+
message.accessGroups = [];
|
|
25054
|
+
for (var i = 0; i < object.accessGroups.length; ++i) {
|
|
25055
|
+
if (typeof object.accessGroups[i] !== "object")
|
|
25056
|
+
throw TypeError(".ContentfulModuleDescriptorCreated.accessGroups: object expected");
|
|
25057
|
+
message.accessGroups[i] = $root.contentful.SlugReference.fromObject(object.accessGroups[i]);
|
|
25058
|
+
}
|
|
25059
|
+
}
|
|
25060
|
+
if (object.excludedAccessGroups) {
|
|
25061
|
+
if (!Array.isArray(object.excludedAccessGroups))
|
|
25062
|
+
throw TypeError(".ContentfulModuleDescriptorCreated.excludedAccessGroups: array expected");
|
|
25063
|
+
message.excludedAccessGroups = [];
|
|
25064
|
+
for (var i = 0; i < object.excludedAccessGroups.length; ++i) {
|
|
25065
|
+
if (typeof object.excludedAccessGroups[i] !== "object")
|
|
25066
|
+
throw TypeError(".ContentfulModuleDescriptorCreated.excludedAccessGroups: object expected");
|
|
25067
|
+
message.excludedAccessGroups[i] = $root.contentful.SlugReference.fromObject(object.excludedAccessGroups[i]);
|
|
25068
|
+
}
|
|
25069
|
+
}
|
|
25070
|
+
if (object.createdAt != null)
|
|
25071
|
+
if ($util.Long)
|
|
25072
|
+
(message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
|
|
25073
|
+
else if (typeof object.createdAt === "string")
|
|
25074
|
+
message.createdAt = parseInt(object.createdAt, 10);
|
|
25075
|
+
else if (typeof object.createdAt === "number")
|
|
25076
|
+
message.createdAt = object.createdAt;
|
|
25077
|
+
else if (typeof object.createdAt === "object")
|
|
25078
|
+
message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
|
|
25079
|
+
return message;
|
|
25080
|
+
};
|
|
25081
|
+
|
|
25082
|
+
/**
|
|
25083
|
+
* Creates a plain object from a ContentfulModuleDescriptorCreated message. Also converts values to other types if specified.
|
|
25084
|
+
* @function toObject
|
|
25085
|
+
* @memberof ContentfulModuleDescriptorCreated
|
|
25086
|
+
* @static
|
|
25087
|
+
* @param {ContentfulModuleDescriptorCreated} message ContentfulModuleDescriptorCreated
|
|
25088
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
25089
|
+
* @returns {Object.<string,*>} Plain object
|
|
25090
|
+
*/
|
|
25091
|
+
ContentfulModuleDescriptorCreated.toObject = function toObject(message, options) {
|
|
25092
|
+
if (!options)
|
|
25093
|
+
options = {};
|
|
25094
|
+
var object = {};
|
|
25095
|
+
if (options.arrays || options.defaults) {
|
|
25096
|
+
object.languageExclusions = [];
|
|
25097
|
+
object.accessGroups = [];
|
|
25098
|
+
object.excludedAccessGroups = [];
|
|
25099
|
+
}
|
|
25100
|
+
if (options.objects || options.defaults) {
|
|
25101
|
+
object.title = {};
|
|
25102
|
+
object.tabAsset = {};
|
|
25103
|
+
}
|
|
25104
|
+
if (options.defaults) {
|
|
25105
|
+
object.slug = "";
|
|
25106
|
+
object.description = "";
|
|
25107
|
+
object.layoutType = "";
|
|
25108
|
+
object.url = "";
|
|
25109
|
+
object.theme = "";
|
|
25110
|
+
object.analyticsId = "";
|
|
25111
|
+
object.marketingId = "";
|
|
25112
|
+
if ($util.Long) {
|
|
25113
|
+
var long = new $util.Long(0, 0, true);
|
|
25114
|
+
object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
25115
|
+
} else
|
|
25116
|
+
object.createdAt = options.longs === String ? "0" : 0;
|
|
25117
|
+
}
|
|
25118
|
+
var keys2;
|
|
25119
|
+
if (message.title && (keys2 = Object.keys(message.title)).length) {
|
|
25120
|
+
object.title = {};
|
|
25121
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
25122
|
+
object.title[keys2[j]] = message.title[keys2[j]];
|
|
25123
|
+
}
|
|
25124
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
25125
|
+
object.slug = message.slug;
|
|
25126
|
+
if (message.description != null && message.hasOwnProperty("description"))
|
|
25127
|
+
object.description = message.description;
|
|
25128
|
+
if (message.layoutType != null && message.hasOwnProperty("layoutType"))
|
|
25129
|
+
object.layoutType = message.layoutType;
|
|
25130
|
+
if (message.url != null && message.hasOwnProperty("url"))
|
|
25131
|
+
object.url = message.url;
|
|
25132
|
+
if (message.languageExclusions && message.languageExclusions.length) {
|
|
25133
|
+
object.languageExclusions = [];
|
|
25134
|
+
for (var j = 0; j < message.languageExclusions.length; ++j)
|
|
25135
|
+
object.languageExclusions[j] = message.languageExclusions[j];
|
|
25136
|
+
}
|
|
25137
|
+
if (message.theme != null && message.hasOwnProperty("theme"))
|
|
25138
|
+
object.theme = message.theme;
|
|
25139
|
+
if (message.tabAsset && (keys2 = Object.keys(message.tabAsset)).length) {
|
|
25140
|
+
object.tabAsset = {};
|
|
25141
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
25142
|
+
object.tabAsset[keys2[j]] = $root.contentful.IdReference.toObject(message.tabAsset[keys2[j]], options);
|
|
25143
|
+
}
|
|
25144
|
+
if (message.analyticsId != null && message.hasOwnProperty("analyticsId"))
|
|
25145
|
+
object.analyticsId = message.analyticsId;
|
|
25146
|
+
if (message.marketingId != null && message.hasOwnProperty("marketingId"))
|
|
25147
|
+
object.marketingId = message.marketingId;
|
|
25148
|
+
if (message.accessGroups && message.accessGroups.length) {
|
|
25149
|
+
object.accessGroups = [];
|
|
25150
|
+
for (var j = 0; j < message.accessGroups.length; ++j)
|
|
25151
|
+
object.accessGroups[j] = $root.contentful.SlugReference.toObject(message.accessGroups[j], options);
|
|
25152
|
+
}
|
|
25153
|
+
if (message.excludedAccessGroups && message.excludedAccessGroups.length) {
|
|
25154
|
+
object.excludedAccessGroups = [];
|
|
25155
|
+
for (var j = 0; j < message.excludedAccessGroups.length; ++j)
|
|
25156
|
+
object.excludedAccessGroups[j] = $root.contentful.SlugReference.toObject(message.excludedAccessGroups[j], options);
|
|
25157
|
+
}
|
|
25158
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
25159
|
+
if (typeof message.createdAt === "number")
|
|
25160
|
+
object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
|
|
25161
|
+
else
|
|
25162
|
+
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;
|
|
25163
|
+
return object;
|
|
25164
|
+
};
|
|
25165
|
+
|
|
25166
|
+
/**
|
|
25167
|
+
* Converts this ContentfulModuleDescriptorCreated to JSON.
|
|
25168
|
+
* @function toJSON
|
|
25169
|
+
* @memberof ContentfulModuleDescriptorCreated
|
|
25170
|
+
* @instance
|
|
25171
|
+
* @returns {Object.<string,*>} JSON object
|
|
25172
|
+
*/
|
|
25173
|
+
ContentfulModuleDescriptorCreated.prototype.toJSON = function toJSON() {
|
|
25174
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
25175
|
+
};
|
|
25176
|
+
|
|
25177
|
+
return ContentfulModuleDescriptorCreated;
|
|
25178
|
+
})();
|
|
25179
|
+
|
|
25180
|
+
$root.ContentfulModuleDescriptorUpdated = (function() {
|
|
25181
|
+
|
|
25182
|
+
/**
|
|
25183
|
+
* Properties of a ContentfulModuleDescriptorUpdated.
|
|
25184
|
+
* @exports IContentfulModuleDescriptorUpdated
|
|
25185
|
+
* @interface IContentfulModuleDescriptorUpdated
|
|
25186
|
+
* @property {Object.<string,string>|null} [title] ContentfulModuleDescriptorUpdated title
|
|
25187
|
+
* @property {string|null} [slug] ContentfulModuleDescriptorUpdated slug
|
|
25188
|
+
* @property {string|null} [description] ContentfulModuleDescriptorUpdated description
|
|
25189
|
+
* @property {string|null} [layoutType] ContentfulModuleDescriptorUpdated layoutType
|
|
25190
|
+
* @property {string|null} [url] ContentfulModuleDescriptorUpdated url
|
|
25191
|
+
* @property {Array.<string>|null} [languageExclusions] ContentfulModuleDescriptorUpdated languageExclusions
|
|
25192
|
+
* @property {string|null} [theme] ContentfulModuleDescriptorUpdated theme
|
|
25193
|
+
* @property {Object.<string,contentful.IIdReference>|null} [tabAsset] ContentfulModuleDescriptorUpdated tabAsset
|
|
25194
|
+
* @property {string|null} [analyticsId] ContentfulModuleDescriptorUpdated analyticsId
|
|
25195
|
+
* @property {string|null} [marketingId] ContentfulModuleDescriptorUpdated marketingId
|
|
25196
|
+
* @property {Array.<contentful.ISlugReference>|null} [accessGroups] ContentfulModuleDescriptorUpdated accessGroups
|
|
25197
|
+
* @property {Array.<contentful.ISlugReference>|null} [excludedAccessGroups] ContentfulModuleDescriptorUpdated excludedAccessGroups
|
|
25198
|
+
* @property {number|Long|null} [updatedAt] ContentfulModuleDescriptorUpdated updatedAt
|
|
25199
|
+
*/
|
|
25200
|
+
|
|
25201
|
+
/**
|
|
25202
|
+
* Constructs a new ContentfulModuleDescriptorUpdated.
|
|
25203
|
+
* @exports ContentfulModuleDescriptorUpdated
|
|
25204
|
+
* @classdesc Represents a ContentfulModuleDescriptorUpdated.
|
|
25205
|
+
* @implements IContentfulModuleDescriptorUpdated
|
|
25206
|
+
* @constructor
|
|
25207
|
+
* @param {IContentfulModuleDescriptorUpdated=} [properties] Properties to set
|
|
25208
|
+
*/
|
|
25209
|
+
function ContentfulModuleDescriptorUpdated(properties) {
|
|
25210
|
+
this.title = {};
|
|
25211
|
+
this.languageExclusions = [];
|
|
25212
|
+
this.tabAsset = {};
|
|
25213
|
+
this.accessGroups = [];
|
|
25214
|
+
this.excludedAccessGroups = [];
|
|
25215
|
+
if (properties)
|
|
25216
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
25217
|
+
if (properties[keys[i]] != null)
|
|
25218
|
+
this[keys[i]] = properties[keys[i]];
|
|
25219
|
+
}
|
|
25220
|
+
|
|
25221
|
+
/**
|
|
25222
|
+
* ContentfulModuleDescriptorUpdated title.
|
|
25223
|
+
* @member {Object.<string,string>} title
|
|
25224
|
+
* @memberof ContentfulModuleDescriptorUpdated
|
|
25225
|
+
* @instance
|
|
25226
|
+
*/
|
|
25227
|
+
ContentfulModuleDescriptorUpdated.prototype.title = $util.emptyObject;
|
|
25228
|
+
|
|
25229
|
+
/**
|
|
25230
|
+
* ContentfulModuleDescriptorUpdated slug.
|
|
25231
|
+
* @member {string} slug
|
|
25232
|
+
* @memberof ContentfulModuleDescriptorUpdated
|
|
25233
|
+
* @instance
|
|
25234
|
+
*/
|
|
25235
|
+
ContentfulModuleDescriptorUpdated.prototype.slug = "";
|
|
25236
|
+
|
|
25237
|
+
/**
|
|
25238
|
+
* ContentfulModuleDescriptorUpdated description.
|
|
25239
|
+
* @member {string} description
|
|
25240
|
+
* @memberof ContentfulModuleDescriptorUpdated
|
|
25241
|
+
* @instance
|
|
25242
|
+
*/
|
|
25243
|
+
ContentfulModuleDescriptorUpdated.prototype.description = "";
|
|
25244
|
+
|
|
25245
|
+
/**
|
|
25246
|
+
* ContentfulModuleDescriptorUpdated layoutType.
|
|
25247
|
+
* @member {string} layoutType
|
|
25248
|
+
* @memberof ContentfulModuleDescriptorUpdated
|
|
25249
|
+
* @instance
|
|
25250
|
+
*/
|
|
25251
|
+
ContentfulModuleDescriptorUpdated.prototype.layoutType = "";
|
|
25252
|
+
|
|
25253
|
+
/**
|
|
25254
|
+
* ContentfulModuleDescriptorUpdated url.
|
|
25255
|
+
* @member {string} url
|
|
25256
|
+
* @memberof ContentfulModuleDescriptorUpdated
|
|
25257
|
+
* @instance
|
|
25258
|
+
*/
|
|
25259
|
+
ContentfulModuleDescriptorUpdated.prototype.url = "";
|
|
25260
|
+
|
|
25261
|
+
/**
|
|
25262
|
+
* ContentfulModuleDescriptorUpdated languageExclusions.
|
|
25263
|
+
* @member {Array.<string>} languageExclusions
|
|
25264
|
+
* @memberof ContentfulModuleDescriptorUpdated
|
|
25265
|
+
* @instance
|
|
25266
|
+
*/
|
|
25267
|
+
ContentfulModuleDescriptorUpdated.prototype.languageExclusions = $util.emptyArray;
|
|
25268
|
+
|
|
25269
|
+
/**
|
|
25270
|
+
* ContentfulModuleDescriptorUpdated theme.
|
|
25271
|
+
* @member {string} theme
|
|
25272
|
+
* @memberof ContentfulModuleDescriptorUpdated
|
|
25273
|
+
* @instance
|
|
25274
|
+
*/
|
|
25275
|
+
ContentfulModuleDescriptorUpdated.prototype.theme = "";
|
|
25276
|
+
|
|
25277
|
+
/**
|
|
25278
|
+
* ContentfulModuleDescriptorUpdated tabAsset.
|
|
25279
|
+
* @member {Object.<string,contentful.IIdReference>} tabAsset
|
|
25280
|
+
* @memberof ContentfulModuleDescriptorUpdated
|
|
25281
|
+
* @instance
|
|
25282
|
+
*/
|
|
25283
|
+
ContentfulModuleDescriptorUpdated.prototype.tabAsset = $util.emptyObject;
|
|
25284
|
+
|
|
25285
|
+
/**
|
|
25286
|
+
* ContentfulModuleDescriptorUpdated analyticsId.
|
|
25287
|
+
* @member {string} analyticsId
|
|
25288
|
+
* @memberof ContentfulModuleDescriptorUpdated
|
|
25289
|
+
* @instance
|
|
25290
|
+
*/
|
|
25291
|
+
ContentfulModuleDescriptorUpdated.prototype.analyticsId = "";
|
|
25292
|
+
|
|
25293
|
+
/**
|
|
25294
|
+
* ContentfulModuleDescriptorUpdated marketingId.
|
|
25295
|
+
* @member {string} marketingId
|
|
25296
|
+
* @memberof ContentfulModuleDescriptorUpdated
|
|
25297
|
+
* @instance
|
|
25298
|
+
*/
|
|
25299
|
+
ContentfulModuleDescriptorUpdated.prototype.marketingId = "";
|
|
25300
|
+
|
|
25301
|
+
/**
|
|
25302
|
+
* ContentfulModuleDescriptorUpdated accessGroups.
|
|
25303
|
+
* @member {Array.<contentful.ISlugReference>} accessGroups
|
|
25304
|
+
* @memberof ContentfulModuleDescriptorUpdated
|
|
25305
|
+
* @instance
|
|
25306
|
+
*/
|
|
25307
|
+
ContentfulModuleDescriptorUpdated.prototype.accessGroups = $util.emptyArray;
|
|
25308
|
+
|
|
25309
|
+
/**
|
|
25310
|
+
* ContentfulModuleDescriptorUpdated excludedAccessGroups.
|
|
25311
|
+
* @member {Array.<contentful.ISlugReference>} excludedAccessGroups
|
|
25312
|
+
* @memberof ContentfulModuleDescriptorUpdated
|
|
25313
|
+
* @instance
|
|
25314
|
+
*/
|
|
25315
|
+
ContentfulModuleDescriptorUpdated.prototype.excludedAccessGroups = $util.emptyArray;
|
|
25316
|
+
|
|
25317
|
+
/**
|
|
25318
|
+
* ContentfulModuleDescriptorUpdated updatedAt.
|
|
25319
|
+
* @member {number|Long} updatedAt
|
|
25320
|
+
* @memberof ContentfulModuleDescriptorUpdated
|
|
25321
|
+
* @instance
|
|
25322
|
+
*/
|
|
25323
|
+
ContentfulModuleDescriptorUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
25324
|
+
|
|
25325
|
+
/**
|
|
25326
|
+
* Creates a new ContentfulModuleDescriptorUpdated instance using the specified properties.
|
|
25327
|
+
* @function create
|
|
25328
|
+
* @memberof ContentfulModuleDescriptorUpdated
|
|
25329
|
+
* @static
|
|
25330
|
+
* @param {IContentfulModuleDescriptorUpdated=} [properties] Properties to set
|
|
25331
|
+
* @returns {ContentfulModuleDescriptorUpdated} ContentfulModuleDescriptorUpdated instance
|
|
25332
|
+
*/
|
|
25333
|
+
ContentfulModuleDescriptorUpdated.create = function create(properties) {
|
|
25334
|
+
return new ContentfulModuleDescriptorUpdated(properties);
|
|
25335
|
+
};
|
|
25336
|
+
|
|
25337
|
+
/**
|
|
25338
|
+
* Encodes the specified ContentfulModuleDescriptorUpdated message. Does not implicitly {@link ContentfulModuleDescriptorUpdated.verify|verify} messages.
|
|
25339
|
+
* @function encode
|
|
25340
|
+
* @memberof ContentfulModuleDescriptorUpdated
|
|
25341
|
+
* @static
|
|
25342
|
+
* @param {IContentfulModuleDescriptorUpdated} message ContentfulModuleDescriptorUpdated message or plain object to encode
|
|
25343
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
25344
|
+
* @returns {$protobuf.Writer} Writer
|
|
25345
|
+
*/
|
|
25346
|
+
ContentfulModuleDescriptorUpdated.encode = function encode(message, writer) {
|
|
25347
|
+
if (!writer)
|
|
25348
|
+
writer = $Writer.create();
|
|
25349
|
+
if (message.title != null && message.hasOwnProperty("title"))
|
|
25350
|
+
for (var keys = Object.keys(message.title), i = 0; i < keys.length; ++i)
|
|
25351
|
+
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.title[keys[i]]).ldelim();
|
|
25352
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
25353
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.slug);
|
|
25354
|
+
if (message.description != null && message.hasOwnProperty("description"))
|
|
25355
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.description);
|
|
25356
|
+
if (message.layoutType != null && message.hasOwnProperty("layoutType"))
|
|
25357
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.layoutType);
|
|
25358
|
+
if (message.url != null && message.hasOwnProperty("url"))
|
|
25359
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.url);
|
|
25360
|
+
if (message.languageExclusions != null && message.languageExclusions.length)
|
|
25361
|
+
for (var i = 0; i < message.languageExclusions.length; ++i)
|
|
25362
|
+
writer.uint32(/* id 6, wireType 2 =*/50).string(message.languageExclusions[i]);
|
|
25363
|
+
if (message.theme != null && message.hasOwnProperty("theme"))
|
|
25364
|
+
writer.uint32(/* id 7, wireType 2 =*/58).string(message.theme);
|
|
25365
|
+
if (message.tabAsset != null && message.hasOwnProperty("tabAsset"))
|
|
25366
|
+
for (var keys = Object.keys(message.tabAsset), i = 0; i < keys.length; ++i) {
|
|
25367
|
+
writer.uint32(/* id 8, wireType 2 =*/66).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
25368
|
+
$root.contentful.IdReference.encode(message.tabAsset[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
25369
|
+
}
|
|
25370
|
+
if (message.analyticsId != null && message.hasOwnProperty("analyticsId"))
|
|
25371
|
+
writer.uint32(/* id 9, wireType 2 =*/74).string(message.analyticsId);
|
|
25372
|
+
if (message.marketingId != null && message.hasOwnProperty("marketingId"))
|
|
25373
|
+
writer.uint32(/* id 10, wireType 2 =*/82).string(message.marketingId);
|
|
25374
|
+
if (message.accessGroups != null && message.accessGroups.length)
|
|
25375
|
+
for (var i = 0; i < message.accessGroups.length; ++i)
|
|
25376
|
+
$root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
|
|
25377
|
+
if (message.excludedAccessGroups != null && message.excludedAccessGroups.length)
|
|
25378
|
+
for (var i = 0; i < message.excludedAccessGroups.length; ++i)
|
|
25379
|
+
$root.contentful.SlugReference.encode(message.excludedAccessGroups[i], writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
|
|
25380
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
25381
|
+
writer.uint32(/* id 13, wireType 0 =*/104).uint64(message.updatedAt);
|
|
25382
|
+
return writer;
|
|
25383
|
+
};
|
|
25384
|
+
|
|
25385
|
+
/**
|
|
25386
|
+
* Encodes the specified ContentfulModuleDescriptorUpdated message, length delimited. Does not implicitly {@link ContentfulModuleDescriptorUpdated.verify|verify} messages.
|
|
25387
|
+
* @function encodeDelimited
|
|
25388
|
+
* @memberof ContentfulModuleDescriptorUpdated
|
|
25389
|
+
* @static
|
|
25390
|
+
* @param {IContentfulModuleDescriptorUpdated} message ContentfulModuleDescriptorUpdated message or plain object to encode
|
|
25391
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
25392
|
+
* @returns {$protobuf.Writer} Writer
|
|
25393
|
+
*/
|
|
25394
|
+
ContentfulModuleDescriptorUpdated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
25395
|
+
return this.encode(message, writer).ldelim();
|
|
25396
|
+
};
|
|
25397
|
+
|
|
25398
|
+
/**
|
|
25399
|
+
* Decodes a ContentfulModuleDescriptorUpdated message from the specified reader or buffer.
|
|
25400
|
+
* @function decode
|
|
25401
|
+
* @memberof ContentfulModuleDescriptorUpdated
|
|
25402
|
+
* @static
|
|
25403
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
25404
|
+
* @param {number} [length] Message length if known beforehand
|
|
25405
|
+
* @returns {ContentfulModuleDescriptorUpdated} ContentfulModuleDescriptorUpdated
|
|
25406
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
25407
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
25408
|
+
*/
|
|
25409
|
+
ContentfulModuleDescriptorUpdated.decode = function decode(reader, length) {
|
|
25410
|
+
if (!(reader instanceof $Reader))
|
|
25411
|
+
reader = $Reader.create(reader);
|
|
25412
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulModuleDescriptorUpdated(), key;
|
|
25413
|
+
while (reader.pos < end) {
|
|
25414
|
+
var tag = reader.uint32();
|
|
25415
|
+
switch (tag >>> 3) {
|
|
25416
|
+
case 1:
|
|
25417
|
+
reader.skip().pos++;
|
|
25418
|
+
if (message.title === $util.emptyObject)
|
|
25419
|
+
message.title = {};
|
|
25420
|
+
key = reader.string();
|
|
25421
|
+
reader.pos++;
|
|
25422
|
+
message.title[key] = reader.string();
|
|
25423
|
+
break;
|
|
25424
|
+
case 2:
|
|
25425
|
+
message.slug = reader.string();
|
|
25426
|
+
break;
|
|
25427
|
+
case 3:
|
|
25428
|
+
message.description = reader.string();
|
|
25429
|
+
break;
|
|
25430
|
+
case 4:
|
|
25431
|
+
message.layoutType = reader.string();
|
|
25432
|
+
break;
|
|
25433
|
+
case 5:
|
|
25434
|
+
message.url = reader.string();
|
|
25435
|
+
break;
|
|
25436
|
+
case 6:
|
|
25437
|
+
if (!(message.languageExclusions && message.languageExclusions.length))
|
|
25438
|
+
message.languageExclusions = [];
|
|
25439
|
+
message.languageExclusions.push(reader.string());
|
|
25440
|
+
break;
|
|
25441
|
+
case 7:
|
|
25442
|
+
message.theme = reader.string();
|
|
25443
|
+
break;
|
|
25444
|
+
case 8:
|
|
25445
|
+
reader.skip().pos++;
|
|
25446
|
+
if (message.tabAsset === $util.emptyObject)
|
|
25447
|
+
message.tabAsset = {};
|
|
25448
|
+
key = reader.string();
|
|
25449
|
+
reader.pos++;
|
|
25450
|
+
message.tabAsset[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
|
|
25451
|
+
break;
|
|
25452
|
+
case 9:
|
|
25453
|
+
message.analyticsId = reader.string();
|
|
25454
|
+
break;
|
|
25455
|
+
case 10:
|
|
25456
|
+
message.marketingId = reader.string();
|
|
25457
|
+
break;
|
|
25458
|
+
case 11:
|
|
25459
|
+
if (!(message.accessGroups && message.accessGroups.length))
|
|
25460
|
+
message.accessGroups = [];
|
|
25461
|
+
message.accessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
25462
|
+
break;
|
|
25463
|
+
case 12:
|
|
25464
|
+
if (!(message.excludedAccessGroups && message.excludedAccessGroups.length))
|
|
25465
|
+
message.excludedAccessGroups = [];
|
|
25466
|
+
message.excludedAccessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
25467
|
+
break;
|
|
25468
|
+
case 13:
|
|
25469
|
+
message.updatedAt = reader.uint64();
|
|
25470
|
+
break;
|
|
25471
|
+
default:
|
|
25472
|
+
reader.skipType(tag & 7);
|
|
25473
|
+
break;
|
|
25474
|
+
}
|
|
25475
|
+
}
|
|
25476
|
+
return message;
|
|
25477
|
+
};
|
|
25478
|
+
|
|
25479
|
+
/**
|
|
25480
|
+
* Decodes a ContentfulModuleDescriptorUpdated message from the specified reader or buffer, length delimited.
|
|
25481
|
+
* @function decodeDelimited
|
|
25482
|
+
* @memberof ContentfulModuleDescriptorUpdated
|
|
25483
|
+
* @static
|
|
25484
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
25485
|
+
* @returns {ContentfulModuleDescriptorUpdated} ContentfulModuleDescriptorUpdated
|
|
25486
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
25487
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
25488
|
+
*/
|
|
25489
|
+
ContentfulModuleDescriptorUpdated.decodeDelimited = function decodeDelimited(reader) {
|
|
25490
|
+
if (!(reader instanceof $Reader))
|
|
25491
|
+
reader = new $Reader(reader);
|
|
25492
|
+
return this.decode(reader, reader.uint32());
|
|
25493
|
+
};
|
|
25494
|
+
|
|
25495
|
+
/**
|
|
25496
|
+
* Verifies a ContentfulModuleDescriptorUpdated message.
|
|
25497
|
+
* @function verify
|
|
25498
|
+
* @memberof ContentfulModuleDescriptorUpdated
|
|
25499
|
+
* @static
|
|
25500
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
25501
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
25502
|
+
*/
|
|
25503
|
+
ContentfulModuleDescriptorUpdated.verify = function verify(message) {
|
|
25504
|
+
if (typeof message !== "object" || message === null)
|
|
25505
|
+
return "object expected";
|
|
25506
|
+
if (message.title != null && message.hasOwnProperty("title")) {
|
|
25507
|
+
if (!$util.isObject(message.title))
|
|
25508
|
+
return "title: object expected";
|
|
25509
|
+
var key = Object.keys(message.title);
|
|
25510
|
+
for (var i = 0; i < key.length; ++i)
|
|
25511
|
+
if (!$util.isString(message.title[key[i]]))
|
|
25512
|
+
return "title: string{k:string} expected";
|
|
25513
|
+
}
|
|
25514
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
25515
|
+
if (!$util.isString(message.slug))
|
|
25516
|
+
return "slug: string expected";
|
|
25517
|
+
if (message.description != null && message.hasOwnProperty("description"))
|
|
25518
|
+
if (!$util.isString(message.description))
|
|
25519
|
+
return "description: string expected";
|
|
25520
|
+
if (message.layoutType != null && message.hasOwnProperty("layoutType"))
|
|
25521
|
+
if (!$util.isString(message.layoutType))
|
|
25522
|
+
return "layoutType: string expected";
|
|
25523
|
+
if (message.url != null && message.hasOwnProperty("url"))
|
|
25524
|
+
if (!$util.isString(message.url))
|
|
25525
|
+
return "url: string expected";
|
|
25526
|
+
if (message.languageExclusions != null && message.hasOwnProperty("languageExclusions")) {
|
|
25527
|
+
if (!Array.isArray(message.languageExclusions))
|
|
25528
|
+
return "languageExclusions: array expected";
|
|
25529
|
+
for (var i = 0; i < message.languageExclusions.length; ++i)
|
|
25530
|
+
if (!$util.isString(message.languageExclusions[i]))
|
|
25531
|
+
return "languageExclusions: string[] expected";
|
|
25532
|
+
}
|
|
25533
|
+
if (message.theme != null && message.hasOwnProperty("theme"))
|
|
25534
|
+
if (!$util.isString(message.theme))
|
|
25535
|
+
return "theme: string expected";
|
|
25536
|
+
if (message.tabAsset != null && message.hasOwnProperty("tabAsset")) {
|
|
25537
|
+
if (!$util.isObject(message.tabAsset))
|
|
25538
|
+
return "tabAsset: object expected";
|
|
25539
|
+
var key = Object.keys(message.tabAsset);
|
|
25540
|
+
for (var i = 0; i < key.length; ++i) {
|
|
25541
|
+
var error = $root.contentful.IdReference.verify(message.tabAsset[key[i]]);
|
|
25542
|
+
if (error)
|
|
25543
|
+
return "tabAsset." + error;
|
|
25544
|
+
}
|
|
25545
|
+
}
|
|
25546
|
+
if (message.analyticsId != null && message.hasOwnProperty("analyticsId"))
|
|
25547
|
+
if (!$util.isString(message.analyticsId))
|
|
25548
|
+
return "analyticsId: string expected";
|
|
25549
|
+
if (message.marketingId != null && message.hasOwnProperty("marketingId"))
|
|
25550
|
+
if (!$util.isString(message.marketingId))
|
|
25551
|
+
return "marketingId: string expected";
|
|
25552
|
+
if (message.accessGroups != null && message.hasOwnProperty("accessGroups")) {
|
|
25553
|
+
if (!Array.isArray(message.accessGroups))
|
|
25554
|
+
return "accessGroups: array expected";
|
|
25555
|
+
for (var i = 0; i < message.accessGroups.length; ++i) {
|
|
25556
|
+
var error = $root.contentful.SlugReference.verify(message.accessGroups[i]);
|
|
25557
|
+
if (error)
|
|
25558
|
+
return "accessGroups." + error;
|
|
25559
|
+
}
|
|
25560
|
+
}
|
|
25561
|
+
if (message.excludedAccessGroups != null && message.hasOwnProperty("excludedAccessGroups")) {
|
|
25562
|
+
if (!Array.isArray(message.excludedAccessGroups))
|
|
25563
|
+
return "excludedAccessGroups: array expected";
|
|
25564
|
+
for (var i = 0; i < message.excludedAccessGroups.length; ++i) {
|
|
25565
|
+
var error = $root.contentful.SlugReference.verify(message.excludedAccessGroups[i]);
|
|
25566
|
+
if (error)
|
|
25567
|
+
return "excludedAccessGroups." + error;
|
|
25568
|
+
}
|
|
25569
|
+
}
|
|
25570
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
25571
|
+
if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
|
|
25572
|
+
return "updatedAt: integer|Long expected";
|
|
25573
|
+
return null;
|
|
25574
|
+
};
|
|
25575
|
+
|
|
25576
|
+
/**
|
|
25577
|
+
* Creates a ContentfulModuleDescriptorUpdated message from a plain object. Also converts values to their respective internal types.
|
|
25578
|
+
* @function fromObject
|
|
25579
|
+
* @memberof ContentfulModuleDescriptorUpdated
|
|
25580
|
+
* @static
|
|
25581
|
+
* @param {Object.<string,*>} object Plain object
|
|
25582
|
+
* @returns {ContentfulModuleDescriptorUpdated} ContentfulModuleDescriptorUpdated
|
|
25583
|
+
*/
|
|
25584
|
+
ContentfulModuleDescriptorUpdated.fromObject = function fromObject(object) {
|
|
25585
|
+
if (object instanceof $root.ContentfulModuleDescriptorUpdated)
|
|
25586
|
+
return object;
|
|
25587
|
+
var message = new $root.ContentfulModuleDescriptorUpdated();
|
|
25588
|
+
if (object.title) {
|
|
25589
|
+
if (typeof object.title !== "object")
|
|
25590
|
+
throw TypeError(".ContentfulModuleDescriptorUpdated.title: object expected");
|
|
25591
|
+
message.title = {};
|
|
25592
|
+
for (var keys = Object.keys(object.title), i = 0; i < keys.length; ++i)
|
|
25593
|
+
message.title[keys[i]] = String(object.title[keys[i]]);
|
|
25594
|
+
}
|
|
25595
|
+
if (object.slug != null)
|
|
25596
|
+
message.slug = String(object.slug);
|
|
25597
|
+
if (object.description != null)
|
|
25598
|
+
message.description = String(object.description);
|
|
25599
|
+
if (object.layoutType != null)
|
|
25600
|
+
message.layoutType = String(object.layoutType);
|
|
25601
|
+
if (object.url != null)
|
|
25602
|
+
message.url = String(object.url);
|
|
25603
|
+
if (object.languageExclusions) {
|
|
25604
|
+
if (!Array.isArray(object.languageExclusions))
|
|
25605
|
+
throw TypeError(".ContentfulModuleDescriptorUpdated.languageExclusions: array expected");
|
|
25606
|
+
message.languageExclusions = [];
|
|
25607
|
+
for (var i = 0; i < object.languageExclusions.length; ++i)
|
|
25608
|
+
message.languageExclusions[i] = String(object.languageExclusions[i]);
|
|
25609
|
+
}
|
|
25610
|
+
if (object.theme != null)
|
|
25611
|
+
message.theme = String(object.theme);
|
|
25612
|
+
if (object.tabAsset) {
|
|
25613
|
+
if (typeof object.tabAsset !== "object")
|
|
25614
|
+
throw TypeError(".ContentfulModuleDescriptorUpdated.tabAsset: object expected");
|
|
25615
|
+
message.tabAsset = {};
|
|
25616
|
+
for (var keys = Object.keys(object.tabAsset), i = 0; i < keys.length; ++i) {
|
|
25617
|
+
if (typeof object.tabAsset[keys[i]] !== "object")
|
|
25618
|
+
throw TypeError(".ContentfulModuleDescriptorUpdated.tabAsset: object expected");
|
|
25619
|
+
message.tabAsset[keys[i]] = $root.contentful.IdReference.fromObject(object.tabAsset[keys[i]]);
|
|
25620
|
+
}
|
|
25621
|
+
}
|
|
25622
|
+
if (object.analyticsId != null)
|
|
25623
|
+
message.analyticsId = String(object.analyticsId);
|
|
25624
|
+
if (object.marketingId != null)
|
|
25625
|
+
message.marketingId = String(object.marketingId);
|
|
25626
|
+
if (object.accessGroups) {
|
|
25627
|
+
if (!Array.isArray(object.accessGroups))
|
|
25628
|
+
throw TypeError(".ContentfulModuleDescriptorUpdated.accessGroups: array expected");
|
|
25629
|
+
message.accessGroups = [];
|
|
25630
|
+
for (var i = 0; i < object.accessGroups.length; ++i) {
|
|
25631
|
+
if (typeof object.accessGroups[i] !== "object")
|
|
25632
|
+
throw TypeError(".ContentfulModuleDescriptorUpdated.accessGroups: object expected");
|
|
25633
|
+
message.accessGroups[i] = $root.contentful.SlugReference.fromObject(object.accessGroups[i]);
|
|
25634
|
+
}
|
|
25635
|
+
}
|
|
25636
|
+
if (object.excludedAccessGroups) {
|
|
25637
|
+
if (!Array.isArray(object.excludedAccessGroups))
|
|
25638
|
+
throw TypeError(".ContentfulModuleDescriptorUpdated.excludedAccessGroups: array expected");
|
|
25639
|
+
message.excludedAccessGroups = [];
|
|
25640
|
+
for (var i = 0; i < object.excludedAccessGroups.length; ++i) {
|
|
25641
|
+
if (typeof object.excludedAccessGroups[i] !== "object")
|
|
25642
|
+
throw TypeError(".ContentfulModuleDescriptorUpdated.excludedAccessGroups: object expected");
|
|
25643
|
+
message.excludedAccessGroups[i] = $root.contentful.SlugReference.fromObject(object.excludedAccessGroups[i]);
|
|
25644
|
+
}
|
|
25645
|
+
}
|
|
25646
|
+
if (object.updatedAt != null)
|
|
25647
|
+
if ($util.Long)
|
|
25648
|
+
(message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
|
|
25649
|
+
else if (typeof object.updatedAt === "string")
|
|
25650
|
+
message.updatedAt = parseInt(object.updatedAt, 10);
|
|
25651
|
+
else if (typeof object.updatedAt === "number")
|
|
25652
|
+
message.updatedAt = object.updatedAt;
|
|
25653
|
+
else if (typeof object.updatedAt === "object")
|
|
25654
|
+
message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
|
|
25655
|
+
return message;
|
|
25656
|
+
};
|
|
25657
|
+
|
|
25658
|
+
/**
|
|
25659
|
+
* Creates a plain object from a ContentfulModuleDescriptorUpdated message. Also converts values to other types if specified.
|
|
25660
|
+
* @function toObject
|
|
25661
|
+
* @memberof ContentfulModuleDescriptorUpdated
|
|
25662
|
+
* @static
|
|
25663
|
+
* @param {ContentfulModuleDescriptorUpdated} message ContentfulModuleDescriptorUpdated
|
|
25664
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
25665
|
+
* @returns {Object.<string,*>} Plain object
|
|
25666
|
+
*/
|
|
25667
|
+
ContentfulModuleDescriptorUpdated.toObject = function toObject(message, options) {
|
|
25668
|
+
if (!options)
|
|
25669
|
+
options = {};
|
|
25670
|
+
var object = {};
|
|
25671
|
+
if (options.arrays || options.defaults) {
|
|
25672
|
+
object.languageExclusions = [];
|
|
25673
|
+
object.accessGroups = [];
|
|
25674
|
+
object.excludedAccessGroups = [];
|
|
25675
|
+
}
|
|
25676
|
+
if (options.objects || options.defaults) {
|
|
25677
|
+
object.title = {};
|
|
25678
|
+
object.tabAsset = {};
|
|
25679
|
+
}
|
|
25680
|
+
if (options.defaults) {
|
|
25681
|
+
object.slug = "";
|
|
25682
|
+
object.description = "";
|
|
25683
|
+
object.layoutType = "";
|
|
25684
|
+
object.url = "";
|
|
25685
|
+
object.theme = "";
|
|
25686
|
+
object.analyticsId = "";
|
|
25687
|
+
object.marketingId = "";
|
|
25688
|
+
if ($util.Long) {
|
|
25689
|
+
var long = new $util.Long(0, 0, true);
|
|
25690
|
+
object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
25691
|
+
} else
|
|
25692
|
+
object.updatedAt = options.longs === String ? "0" : 0;
|
|
25693
|
+
}
|
|
25694
|
+
var keys2;
|
|
25695
|
+
if (message.title && (keys2 = Object.keys(message.title)).length) {
|
|
25696
|
+
object.title = {};
|
|
25697
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
25698
|
+
object.title[keys2[j]] = message.title[keys2[j]];
|
|
25699
|
+
}
|
|
25700
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
25701
|
+
object.slug = message.slug;
|
|
25702
|
+
if (message.description != null && message.hasOwnProperty("description"))
|
|
25703
|
+
object.description = message.description;
|
|
25704
|
+
if (message.layoutType != null && message.hasOwnProperty("layoutType"))
|
|
25705
|
+
object.layoutType = message.layoutType;
|
|
25706
|
+
if (message.url != null && message.hasOwnProperty("url"))
|
|
25707
|
+
object.url = message.url;
|
|
25708
|
+
if (message.languageExclusions && message.languageExclusions.length) {
|
|
25709
|
+
object.languageExclusions = [];
|
|
25710
|
+
for (var j = 0; j < message.languageExclusions.length; ++j)
|
|
25711
|
+
object.languageExclusions[j] = message.languageExclusions[j];
|
|
25712
|
+
}
|
|
25713
|
+
if (message.theme != null && message.hasOwnProperty("theme"))
|
|
25714
|
+
object.theme = message.theme;
|
|
25715
|
+
if (message.tabAsset && (keys2 = Object.keys(message.tabAsset)).length) {
|
|
25716
|
+
object.tabAsset = {};
|
|
25717
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
25718
|
+
object.tabAsset[keys2[j]] = $root.contentful.IdReference.toObject(message.tabAsset[keys2[j]], options);
|
|
25719
|
+
}
|
|
25720
|
+
if (message.analyticsId != null && message.hasOwnProperty("analyticsId"))
|
|
25721
|
+
object.analyticsId = message.analyticsId;
|
|
25722
|
+
if (message.marketingId != null && message.hasOwnProperty("marketingId"))
|
|
25723
|
+
object.marketingId = message.marketingId;
|
|
25724
|
+
if (message.accessGroups && message.accessGroups.length) {
|
|
25725
|
+
object.accessGroups = [];
|
|
25726
|
+
for (var j = 0; j < message.accessGroups.length; ++j)
|
|
25727
|
+
object.accessGroups[j] = $root.contentful.SlugReference.toObject(message.accessGroups[j], options);
|
|
25728
|
+
}
|
|
25729
|
+
if (message.excludedAccessGroups && message.excludedAccessGroups.length) {
|
|
25730
|
+
object.excludedAccessGroups = [];
|
|
25731
|
+
for (var j = 0; j < message.excludedAccessGroups.length; ++j)
|
|
25732
|
+
object.excludedAccessGroups[j] = $root.contentful.SlugReference.toObject(message.excludedAccessGroups[j], options);
|
|
25733
|
+
}
|
|
25734
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
25735
|
+
if (typeof message.updatedAt === "number")
|
|
25736
|
+
object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
|
|
25737
|
+
else
|
|
25738
|
+
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;
|
|
25739
|
+
return object;
|
|
25740
|
+
};
|
|
25741
|
+
|
|
25742
|
+
/**
|
|
25743
|
+
* Converts this ContentfulModuleDescriptorUpdated to JSON.
|
|
25744
|
+
* @function toJSON
|
|
25745
|
+
* @memberof ContentfulModuleDescriptorUpdated
|
|
25746
|
+
* @instance
|
|
25747
|
+
* @returns {Object.<string,*>} JSON object
|
|
25748
|
+
*/
|
|
25749
|
+
ContentfulModuleDescriptorUpdated.prototype.toJSON = function toJSON() {
|
|
25750
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
25751
|
+
};
|
|
25752
|
+
|
|
25753
|
+
return ContentfulModuleDescriptorUpdated;
|
|
25754
|
+
})();
|
|
25755
|
+
|
|
25756
|
+
$root.ContentfulModuleDescriptorDeleted = (function() {
|
|
25757
|
+
|
|
25758
|
+
/**
|
|
25759
|
+
* Properties of a ContentfulModuleDescriptorDeleted.
|
|
25760
|
+
* @exports IContentfulModuleDescriptorDeleted
|
|
25761
|
+
* @interface IContentfulModuleDescriptorDeleted
|
|
25762
|
+
* @property {string|null} [slug] ContentfulModuleDescriptorDeleted slug
|
|
25763
|
+
* @property {number|Long|null} [deletedAt] ContentfulModuleDescriptorDeleted deletedAt
|
|
25764
|
+
*/
|
|
25765
|
+
|
|
25766
|
+
/**
|
|
25767
|
+
* Constructs a new ContentfulModuleDescriptorDeleted.
|
|
25768
|
+
* @exports ContentfulModuleDescriptorDeleted
|
|
25769
|
+
* @classdesc Represents a ContentfulModuleDescriptorDeleted.
|
|
25770
|
+
* @implements IContentfulModuleDescriptorDeleted
|
|
25771
|
+
* @constructor
|
|
25772
|
+
* @param {IContentfulModuleDescriptorDeleted=} [properties] Properties to set
|
|
25773
|
+
*/
|
|
25774
|
+
function ContentfulModuleDescriptorDeleted(properties) {
|
|
25775
|
+
if (properties)
|
|
25776
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
25777
|
+
if (properties[keys[i]] != null)
|
|
25778
|
+
this[keys[i]] = properties[keys[i]];
|
|
25779
|
+
}
|
|
25780
|
+
|
|
25781
|
+
/**
|
|
25782
|
+
* ContentfulModuleDescriptorDeleted slug.
|
|
25783
|
+
* @member {string} slug
|
|
25784
|
+
* @memberof ContentfulModuleDescriptorDeleted
|
|
25785
|
+
* @instance
|
|
25786
|
+
*/
|
|
25787
|
+
ContentfulModuleDescriptorDeleted.prototype.slug = "";
|
|
25788
|
+
|
|
25789
|
+
/**
|
|
25790
|
+
* ContentfulModuleDescriptorDeleted deletedAt.
|
|
25791
|
+
* @member {number|Long} deletedAt
|
|
25792
|
+
* @memberof ContentfulModuleDescriptorDeleted
|
|
25793
|
+
* @instance
|
|
25794
|
+
*/
|
|
25795
|
+
ContentfulModuleDescriptorDeleted.prototype.deletedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
25796
|
+
|
|
25797
|
+
/**
|
|
25798
|
+
* Creates a new ContentfulModuleDescriptorDeleted instance using the specified properties.
|
|
25799
|
+
* @function create
|
|
25800
|
+
* @memberof ContentfulModuleDescriptorDeleted
|
|
25801
|
+
* @static
|
|
25802
|
+
* @param {IContentfulModuleDescriptorDeleted=} [properties] Properties to set
|
|
25803
|
+
* @returns {ContentfulModuleDescriptorDeleted} ContentfulModuleDescriptorDeleted instance
|
|
25804
|
+
*/
|
|
25805
|
+
ContentfulModuleDescriptorDeleted.create = function create(properties) {
|
|
25806
|
+
return new ContentfulModuleDescriptorDeleted(properties);
|
|
25807
|
+
};
|
|
25808
|
+
|
|
25809
|
+
/**
|
|
25810
|
+
* Encodes the specified ContentfulModuleDescriptorDeleted message. Does not implicitly {@link ContentfulModuleDescriptorDeleted.verify|verify} messages.
|
|
25811
|
+
* @function encode
|
|
25812
|
+
* @memberof ContentfulModuleDescriptorDeleted
|
|
25813
|
+
* @static
|
|
25814
|
+
* @param {IContentfulModuleDescriptorDeleted} message ContentfulModuleDescriptorDeleted message or plain object to encode
|
|
25815
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
25816
|
+
* @returns {$protobuf.Writer} Writer
|
|
25817
|
+
*/
|
|
25818
|
+
ContentfulModuleDescriptorDeleted.encode = function encode(message, writer) {
|
|
25819
|
+
if (!writer)
|
|
25820
|
+
writer = $Writer.create();
|
|
25821
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
25822
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
25823
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
25824
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.deletedAt);
|
|
25825
|
+
return writer;
|
|
25826
|
+
};
|
|
25827
|
+
|
|
25828
|
+
/**
|
|
25829
|
+
* Encodes the specified ContentfulModuleDescriptorDeleted message, length delimited. Does not implicitly {@link ContentfulModuleDescriptorDeleted.verify|verify} messages.
|
|
25830
|
+
* @function encodeDelimited
|
|
25831
|
+
* @memberof ContentfulModuleDescriptorDeleted
|
|
25832
|
+
* @static
|
|
25833
|
+
* @param {IContentfulModuleDescriptorDeleted} message ContentfulModuleDescriptorDeleted message or plain object to encode
|
|
25834
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
25835
|
+
* @returns {$protobuf.Writer} Writer
|
|
25836
|
+
*/
|
|
25837
|
+
ContentfulModuleDescriptorDeleted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
25838
|
+
return this.encode(message, writer).ldelim();
|
|
25839
|
+
};
|
|
25840
|
+
|
|
25841
|
+
/**
|
|
25842
|
+
* Decodes a ContentfulModuleDescriptorDeleted message from the specified reader or buffer.
|
|
25843
|
+
* @function decode
|
|
25844
|
+
* @memberof ContentfulModuleDescriptorDeleted
|
|
25845
|
+
* @static
|
|
25846
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
25847
|
+
* @param {number} [length] Message length if known beforehand
|
|
25848
|
+
* @returns {ContentfulModuleDescriptorDeleted} ContentfulModuleDescriptorDeleted
|
|
25849
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
25850
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
25851
|
+
*/
|
|
25852
|
+
ContentfulModuleDescriptorDeleted.decode = function decode(reader, length) {
|
|
25853
|
+
if (!(reader instanceof $Reader))
|
|
25854
|
+
reader = $Reader.create(reader);
|
|
25855
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulModuleDescriptorDeleted();
|
|
25856
|
+
while (reader.pos < end) {
|
|
25857
|
+
var tag = reader.uint32();
|
|
25858
|
+
switch (tag >>> 3) {
|
|
25859
|
+
case 1:
|
|
25860
|
+
message.slug = reader.string();
|
|
25861
|
+
break;
|
|
25862
|
+
case 2:
|
|
25863
|
+
message.deletedAt = reader.uint64();
|
|
25864
|
+
break;
|
|
25865
|
+
default:
|
|
25866
|
+
reader.skipType(tag & 7);
|
|
25867
|
+
break;
|
|
25868
|
+
}
|
|
25869
|
+
}
|
|
25870
|
+
return message;
|
|
25871
|
+
};
|
|
25872
|
+
|
|
25873
|
+
/**
|
|
25874
|
+
* Decodes a ContentfulModuleDescriptorDeleted message from the specified reader or buffer, length delimited.
|
|
25875
|
+
* @function decodeDelimited
|
|
25876
|
+
* @memberof ContentfulModuleDescriptorDeleted
|
|
25877
|
+
* @static
|
|
25878
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
25879
|
+
* @returns {ContentfulModuleDescriptorDeleted} ContentfulModuleDescriptorDeleted
|
|
25880
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
25881
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
25882
|
+
*/
|
|
25883
|
+
ContentfulModuleDescriptorDeleted.decodeDelimited = function decodeDelimited(reader) {
|
|
25884
|
+
if (!(reader instanceof $Reader))
|
|
25885
|
+
reader = new $Reader(reader);
|
|
25886
|
+
return this.decode(reader, reader.uint32());
|
|
25887
|
+
};
|
|
25888
|
+
|
|
25889
|
+
/**
|
|
25890
|
+
* Verifies a ContentfulModuleDescriptorDeleted message.
|
|
25891
|
+
* @function verify
|
|
25892
|
+
* @memberof ContentfulModuleDescriptorDeleted
|
|
25893
|
+
* @static
|
|
25894
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
25895
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
25896
|
+
*/
|
|
25897
|
+
ContentfulModuleDescriptorDeleted.verify = function verify(message) {
|
|
25898
|
+
if (typeof message !== "object" || message === null)
|
|
25899
|
+
return "object expected";
|
|
25900
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
25901
|
+
if (!$util.isString(message.slug))
|
|
25902
|
+
return "slug: string expected";
|
|
25903
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
25904
|
+
if (!$util.isInteger(message.deletedAt) && !(message.deletedAt && $util.isInteger(message.deletedAt.low) && $util.isInteger(message.deletedAt.high)))
|
|
25905
|
+
return "deletedAt: integer|Long expected";
|
|
25906
|
+
return null;
|
|
25907
|
+
};
|
|
25908
|
+
|
|
25909
|
+
/**
|
|
25910
|
+
* Creates a ContentfulModuleDescriptorDeleted message from a plain object. Also converts values to their respective internal types.
|
|
25911
|
+
* @function fromObject
|
|
25912
|
+
* @memberof ContentfulModuleDescriptorDeleted
|
|
25913
|
+
* @static
|
|
25914
|
+
* @param {Object.<string,*>} object Plain object
|
|
25915
|
+
* @returns {ContentfulModuleDescriptorDeleted} ContentfulModuleDescriptorDeleted
|
|
25916
|
+
*/
|
|
25917
|
+
ContentfulModuleDescriptorDeleted.fromObject = function fromObject(object) {
|
|
25918
|
+
if (object instanceof $root.ContentfulModuleDescriptorDeleted)
|
|
25919
|
+
return object;
|
|
25920
|
+
var message = new $root.ContentfulModuleDescriptorDeleted();
|
|
25921
|
+
if (object.slug != null)
|
|
25922
|
+
message.slug = String(object.slug);
|
|
25923
|
+
if (object.deletedAt != null)
|
|
25924
|
+
if ($util.Long)
|
|
25925
|
+
(message.deletedAt = $util.Long.fromValue(object.deletedAt)).unsigned = true;
|
|
25926
|
+
else if (typeof object.deletedAt === "string")
|
|
25927
|
+
message.deletedAt = parseInt(object.deletedAt, 10);
|
|
25928
|
+
else if (typeof object.deletedAt === "number")
|
|
25929
|
+
message.deletedAt = object.deletedAt;
|
|
25930
|
+
else if (typeof object.deletedAt === "object")
|
|
25931
|
+
message.deletedAt = new $util.LongBits(object.deletedAt.low >>> 0, object.deletedAt.high >>> 0).toNumber(true);
|
|
25932
|
+
return message;
|
|
25933
|
+
};
|
|
25934
|
+
|
|
25935
|
+
/**
|
|
25936
|
+
* Creates a plain object from a ContentfulModuleDescriptorDeleted message. Also converts values to other types if specified.
|
|
25937
|
+
* @function toObject
|
|
25938
|
+
* @memberof ContentfulModuleDescriptorDeleted
|
|
25939
|
+
* @static
|
|
25940
|
+
* @param {ContentfulModuleDescriptorDeleted} message ContentfulModuleDescriptorDeleted
|
|
25941
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
25942
|
+
* @returns {Object.<string,*>} Plain object
|
|
25943
|
+
*/
|
|
25944
|
+
ContentfulModuleDescriptorDeleted.toObject = function toObject(message, options) {
|
|
25945
|
+
if (!options)
|
|
25946
|
+
options = {};
|
|
25947
|
+
var object = {};
|
|
25948
|
+
if (options.defaults) {
|
|
25949
|
+
object.slug = "";
|
|
25950
|
+
if ($util.Long) {
|
|
25951
|
+
var long = new $util.Long(0, 0, true);
|
|
25952
|
+
object.deletedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
25953
|
+
} else
|
|
25954
|
+
object.deletedAt = options.longs === String ? "0" : 0;
|
|
25955
|
+
}
|
|
25956
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
25957
|
+
object.slug = message.slug;
|
|
25958
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
25959
|
+
if (typeof message.deletedAt === "number")
|
|
25960
|
+
object.deletedAt = options.longs === String ? String(message.deletedAt) : message.deletedAt;
|
|
25961
|
+
else
|
|
25962
|
+
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;
|
|
25963
|
+
return object;
|
|
25964
|
+
};
|
|
25965
|
+
|
|
25966
|
+
/**
|
|
25967
|
+
* Converts this ContentfulModuleDescriptorDeleted to JSON.
|
|
25968
|
+
* @function toJSON
|
|
25969
|
+
* @memberof ContentfulModuleDescriptorDeleted
|
|
25970
|
+
* @instance
|
|
25971
|
+
* @returns {Object.<string,*>} JSON object
|
|
25972
|
+
*/
|
|
25973
|
+
ContentfulModuleDescriptorDeleted.prototype.toJSON = function toJSON() {
|
|
25974
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
25975
|
+
};
|
|
25976
|
+
|
|
25977
|
+
return ContentfulModuleDescriptorDeleted;
|
|
25978
|
+
})();
|
|
25979
|
+
|
|
24604
25980
|
$root.ContentfulContentModelCreated = (function() {
|
|
24605
25981
|
|
|
24606
25982
|
/**
|