@headspace/protos-events 1.138.0 → 1.139.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 +504 -0
- package/lib/index.js +1870 -0
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -18813,6 +18813,1876 @@ $root.ContentfulActivityDeleted = (function() {
|
|
|
18813
18813
|
return ContentfulActivityDeleted;
|
|
18814
18814
|
})();
|
|
18815
18815
|
|
|
18816
|
+
$root.ContentfulActivityGroupCreated = (function() {
|
|
18817
|
+
|
|
18818
|
+
/**
|
|
18819
|
+
* Properties of a ContentfulActivityGroupCreated.
|
|
18820
|
+
* @exports IContentfulActivityGroupCreated
|
|
18821
|
+
* @interface IContentfulActivityGroupCreated
|
|
18822
|
+
* @property {Object.<string,string>|null} [name] ContentfulActivityGroupCreated name
|
|
18823
|
+
* @property {string|null} [slug] ContentfulActivityGroupCreated slug
|
|
18824
|
+
* @property {Object.<string,string>|null} [teaser] ContentfulActivityGroupCreated teaser
|
|
18825
|
+
* @property {Object.<string,string>|null} [description] ContentfulActivityGroupCreated description
|
|
18826
|
+
* @property {string|null} [enabled] ContentfulActivityGroupCreated enabled
|
|
18827
|
+
* @property {Object.<string,contentful.IIdReference>|null} [bannerMedia] ContentfulActivityGroupCreated bannerMedia
|
|
18828
|
+
* @property {Object.<string,contentful.IIdReference>|null} [patternMedia] ContentfulActivityGroupCreated patternMedia
|
|
18829
|
+
* @property {string|null} [colorTheme] ContentfulActivityGroupCreated colorTheme
|
|
18830
|
+
* @property {string|null} [primaryColor] ContentfulActivityGroupCreated primaryColor
|
|
18831
|
+
* @property {string|null} [secondaryColor] ContentfulActivityGroupCreated secondaryColor
|
|
18832
|
+
* @property {string|null} [tertiaryColor] ContentfulActivityGroupCreated tertiaryColor
|
|
18833
|
+
* @property {Array.<contentful.ISlugReference>|null} [activities] ContentfulActivityGroupCreated activities
|
|
18834
|
+
* @property {string|null} [featuredLabelColor] ContentfulActivityGroupCreated featuredLabelColor
|
|
18835
|
+
* @property {string|null} [contentInfoScreenTheme] ContentfulActivityGroupCreated contentInfoScreenTheme
|
|
18836
|
+
* @property {string|null} [contentType] ContentfulActivityGroupCreated contentType
|
|
18837
|
+
* @property {string|null} [contentTypeDisplayValue] ContentfulActivityGroupCreated contentTypeDisplayValue
|
|
18838
|
+
* @property {Array.<contentful.ISlugReference>|null} [techniques] ContentfulActivityGroupCreated techniques
|
|
18839
|
+
* @property {Array.<contentful.ISlugReference>|null} [related] ContentfulActivityGroupCreated related
|
|
18840
|
+
* @property {Array.<contentful.ISlugReference>|null} [accessGroup] ContentfulActivityGroupCreated accessGroup
|
|
18841
|
+
* @property {number|Long|null} [createdAt] ContentfulActivityGroupCreated createdAt
|
|
18842
|
+
*/
|
|
18843
|
+
|
|
18844
|
+
/**
|
|
18845
|
+
* Constructs a new ContentfulActivityGroupCreated.
|
|
18846
|
+
* @exports ContentfulActivityGroupCreated
|
|
18847
|
+
* @classdesc Represents a ContentfulActivityGroupCreated.
|
|
18848
|
+
* @implements IContentfulActivityGroupCreated
|
|
18849
|
+
* @constructor
|
|
18850
|
+
* @param {IContentfulActivityGroupCreated=} [properties] Properties to set
|
|
18851
|
+
*/
|
|
18852
|
+
function ContentfulActivityGroupCreated(properties) {
|
|
18853
|
+
this.name = {};
|
|
18854
|
+
this.teaser = {};
|
|
18855
|
+
this.description = {};
|
|
18856
|
+
this.bannerMedia = {};
|
|
18857
|
+
this.patternMedia = {};
|
|
18858
|
+
this.activities = [];
|
|
18859
|
+
this.techniques = [];
|
|
18860
|
+
this.related = [];
|
|
18861
|
+
this.accessGroup = [];
|
|
18862
|
+
if (properties)
|
|
18863
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
18864
|
+
if (properties[keys[i]] != null)
|
|
18865
|
+
this[keys[i]] = properties[keys[i]];
|
|
18866
|
+
}
|
|
18867
|
+
|
|
18868
|
+
/**
|
|
18869
|
+
* ContentfulActivityGroupCreated name.
|
|
18870
|
+
* @member {Object.<string,string>} name
|
|
18871
|
+
* @memberof ContentfulActivityGroupCreated
|
|
18872
|
+
* @instance
|
|
18873
|
+
*/
|
|
18874
|
+
ContentfulActivityGroupCreated.prototype.name = $util.emptyObject;
|
|
18875
|
+
|
|
18876
|
+
/**
|
|
18877
|
+
* ContentfulActivityGroupCreated slug.
|
|
18878
|
+
* @member {string} slug
|
|
18879
|
+
* @memberof ContentfulActivityGroupCreated
|
|
18880
|
+
* @instance
|
|
18881
|
+
*/
|
|
18882
|
+
ContentfulActivityGroupCreated.prototype.slug = "";
|
|
18883
|
+
|
|
18884
|
+
/**
|
|
18885
|
+
* ContentfulActivityGroupCreated teaser.
|
|
18886
|
+
* @member {Object.<string,string>} teaser
|
|
18887
|
+
* @memberof ContentfulActivityGroupCreated
|
|
18888
|
+
* @instance
|
|
18889
|
+
*/
|
|
18890
|
+
ContentfulActivityGroupCreated.prototype.teaser = $util.emptyObject;
|
|
18891
|
+
|
|
18892
|
+
/**
|
|
18893
|
+
* ContentfulActivityGroupCreated description.
|
|
18894
|
+
* @member {Object.<string,string>} description
|
|
18895
|
+
* @memberof ContentfulActivityGroupCreated
|
|
18896
|
+
* @instance
|
|
18897
|
+
*/
|
|
18898
|
+
ContentfulActivityGroupCreated.prototype.description = $util.emptyObject;
|
|
18899
|
+
|
|
18900
|
+
/**
|
|
18901
|
+
* ContentfulActivityGroupCreated enabled.
|
|
18902
|
+
* @member {string} enabled
|
|
18903
|
+
* @memberof ContentfulActivityGroupCreated
|
|
18904
|
+
* @instance
|
|
18905
|
+
*/
|
|
18906
|
+
ContentfulActivityGroupCreated.prototype.enabled = "";
|
|
18907
|
+
|
|
18908
|
+
/**
|
|
18909
|
+
* ContentfulActivityGroupCreated bannerMedia.
|
|
18910
|
+
* @member {Object.<string,contentful.IIdReference>} bannerMedia
|
|
18911
|
+
* @memberof ContentfulActivityGroupCreated
|
|
18912
|
+
* @instance
|
|
18913
|
+
*/
|
|
18914
|
+
ContentfulActivityGroupCreated.prototype.bannerMedia = $util.emptyObject;
|
|
18915
|
+
|
|
18916
|
+
/**
|
|
18917
|
+
* ContentfulActivityGroupCreated patternMedia.
|
|
18918
|
+
* @member {Object.<string,contentful.IIdReference>} patternMedia
|
|
18919
|
+
* @memberof ContentfulActivityGroupCreated
|
|
18920
|
+
* @instance
|
|
18921
|
+
*/
|
|
18922
|
+
ContentfulActivityGroupCreated.prototype.patternMedia = $util.emptyObject;
|
|
18923
|
+
|
|
18924
|
+
/**
|
|
18925
|
+
* ContentfulActivityGroupCreated colorTheme.
|
|
18926
|
+
* @member {string} colorTheme
|
|
18927
|
+
* @memberof ContentfulActivityGroupCreated
|
|
18928
|
+
* @instance
|
|
18929
|
+
*/
|
|
18930
|
+
ContentfulActivityGroupCreated.prototype.colorTheme = "";
|
|
18931
|
+
|
|
18932
|
+
/**
|
|
18933
|
+
* ContentfulActivityGroupCreated primaryColor.
|
|
18934
|
+
* @member {string} primaryColor
|
|
18935
|
+
* @memberof ContentfulActivityGroupCreated
|
|
18936
|
+
* @instance
|
|
18937
|
+
*/
|
|
18938
|
+
ContentfulActivityGroupCreated.prototype.primaryColor = "";
|
|
18939
|
+
|
|
18940
|
+
/**
|
|
18941
|
+
* ContentfulActivityGroupCreated secondaryColor.
|
|
18942
|
+
* @member {string} secondaryColor
|
|
18943
|
+
* @memberof ContentfulActivityGroupCreated
|
|
18944
|
+
* @instance
|
|
18945
|
+
*/
|
|
18946
|
+
ContentfulActivityGroupCreated.prototype.secondaryColor = "";
|
|
18947
|
+
|
|
18948
|
+
/**
|
|
18949
|
+
* ContentfulActivityGroupCreated tertiaryColor.
|
|
18950
|
+
* @member {string} tertiaryColor
|
|
18951
|
+
* @memberof ContentfulActivityGroupCreated
|
|
18952
|
+
* @instance
|
|
18953
|
+
*/
|
|
18954
|
+
ContentfulActivityGroupCreated.prototype.tertiaryColor = "";
|
|
18955
|
+
|
|
18956
|
+
/**
|
|
18957
|
+
* ContentfulActivityGroupCreated activities.
|
|
18958
|
+
* @member {Array.<contentful.ISlugReference>} activities
|
|
18959
|
+
* @memberof ContentfulActivityGroupCreated
|
|
18960
|
+
* @instance
|
|
18961
|
+
*/
|
|
18962
|
+
ContentfulActivityGroupCreated.prototype.activities = $util.emptyArray;
|
|
18963
|
+
|
|
18964
|
+
/**
|
|
18965
|
+
* ContentfulActivityGroupCreated featuredLabelColor.
|
|
18966
|
+
* @member {string} featuredLabelColor
|
|
18967
|
+
* @memberof ContentfulActivityGroupCreated
|
|
18968
|
+
* @instance
|
|
18969
|
+
*/
|
|
18970
|
+
ContentfulActivityGroupCreated.prototype.featuredLabelColor = "";
|
|
18971
|
+
|
|
18972
|
+
/**
|
|
18973
|
+
* ContentfulActivityGroupCreated contentInfoScreenTheme.
|
|
18974
|
+
* @member {string} contentInfoScreenTheme
|
|
18975
|
+
* @memberof ContentfulActivityGroupCreated
|
|
18976
|
+
* @instance
|
|
18977
|
+
*/
|
|
18978
|
+
ContentfulActivityGroupCreated.prototype.contentInfoScreenTheme = "";
|
|
18979
|
+
|
|
18980
|
+
/**
|
|
18981
|
+
* ContentfulActivityGroupCreated contentType.
|
|
18982
|
+
* @member {string} contentType
|
|
18983
|
+
* @memberof ContentfulActivityGroupCreated
|
|
18984
|
+
* @instance
|
|
18985
|
+
*/
|
|
18986
|
+
ContentfulActivityGroupCreated.prototype.contentType = "";
|
|
18987
|
+
|
|
18988
|
+
/**
|
|
18989
|
+
* ContentfulActivityGroupCreated contentTypeDisplayValue.
|
|
18990
|
+
* @member {string} contentTypeDisplayValue
|
|
18991
|
+
* @memberof ContentfulActivityGroupCreated
|
|
18992
|
+
* @instance
|
|
18993
|
+
*/
|
|
18994
|
+
ContentfulActivityGroupCreated.prototype.contentTypeDisplayValue = "";
|
|
18995
|
+
|
|
18996
|
+
/**
|
|
18997
|
+
* ContentfulActivityGroupCreated techniques.
|
|
18998
|
+
* @member {Array.<contentful.ISlugReference>} techniques
|
|
18999
|
+
* @memberof ContentfulActivityGroupCreated
|
|
19000
|
+
* @instance
|
|
19001
|
+
*/
|
|
19002
|
+
ContentfulActivityGroupCreated.prototype.techniques = $util.emptyArray;
|
|
19003
|
+
|
|
19004
|
+
/**
|
|
19005
|
+
* ContentfulActivityGroupCreated related.
|
|
19006
|
+
* @member {Array.<contentful.ISlugReference>} related
|
|
19007
|
+
* @memberof ContentfulActivityGroupCreated
|
|
19008
|
+
* @instance
|
|
19009
|
+
*/
|
|
19010
|
+
ContentfulActivityGroupCreated.prototype.related = $util.emptyArray;
|
|
19011
|
+
|
|
19012
|
+
/**
|
|
19013
|
+
* ContentfulActivityGroupCreated accessGroup.
|
|
19014
|
+
* @member {Array.<contentful.ISlugReference>} accessGroup
|
|
19015
|
+
* @memberof ContentfulActivityGroupCreated
|
|
19016
|
+
* @instance
|
|
19017
|
+
*/
|
|
19018
|
+
ContentfulActivityGroupCreated.prototype.accessGroup = $util.emptyArray;
|
|
19019
|
+
|
|
19020
|
+
/**
|
|
19021
|
+
* ContentfulActivityGroupCreated createdAt.
|
|
19022
|
+
* @member {number|Long} createdAt
|
|
19023
|
+
* @memberof ContentfulActivityGroupCreated
|
|
19024
|
+
* @instance
|
|
19025
|
+
*/
|
|
19026
|
+
ContentfulActivityGroupCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
19027
|
+
|
|
19028
|
+
/**
|
|
19029
|
+
* Creates a new ContentfulActivityGroupCreated instance using the specified properties.
|
|
19030
|
+
* @function create
|
|
19031
|
+
* @memberof ContentfulActivityGroupCreated
|
|
19032
|
+
* @static
|
|
19033
|
+
* @param {IContentfulActivityGroupCreated=} [properties] Properties to set
|
|
19034
|
+
* @returns {ContentfulActivityGroupCreated} ContentfulActivityGroupCreated instance
|
|
19035
|
+
*/
|
|
19036
|
+
ContentfulActivityGroupCreated.create = function create(properties) {
|
|
19037
|
+
return new ContentfulActivityGroupCreated(properties);
|
|
19038
|
+
};
|
|
19039
|
+
|
|
19040
|
+
/**
|
|
19041
|
+
* Encodes the specified ContentfulActivityGroupCreated message. Does not implicitly {@link ContentfulActivityGroupCreated.verify|verify} messages.
|
|
19042
|
+
* @function encode
|
|
19043
|
+
* @memberof ContentfulActivityGroupCreated
|
|
19044
|
+
* @static
|
|
19045
|
+
* @param {IContentfulActivityGroupCreated} message ContentfulActivityGroupCreated message or plain object to encode
|
|
19046
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
19047
|
+
* @returns {$protobuf.Writer} Writer
|
|
19048
|
+
*/
|
|
19049
|
+
ContentfulActivityGroupCreated.encode = function encode(message, writer) {
|
|
19050
|
+
if (!writer)
|
|
19051
|
+
writer = $Writer.create();
|
|
19052
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
19053
|
+
for (var keys = Object.keys(message.name), i = 0; i < keys.length; ++i)
|
|
19054
|
+
writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.name[keys[i]]).ldelim();
|
|
19055
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
19056
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.slug);
|
|
19057
|
+
if (message.teaser != null && message.hasOwnProperty("teaser"))
|
|
19058
|
+
for (var keys = Object.keys(message.teaser), i = 0; i < keys.length; ++i)
|
|
19059
|
+
writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.teaser[keys[i]]).ldelim();
|
|
19060
|
+
if (message.description != null && message.hasOwnProperty("description"))
|
|
19061
|
+
for (var keys = Object.keys(message.description), i = 0; i < keys.length; ++i)
|
|
19062
|
+
writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.description[keys[i]]).ldelim();
|
|
19063
|
+
if (message.enabled != null && message.hasOwnProperty("enabled"))
|
|
19064
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.enabled);
|
|
19065
|
+
if (message.bannerMedia != null && message.hasOwnProperty("bannerMedia"))
|
|
19066
|
+
for (var keys = Object.keys(message.bannerMedia), i = 0; i < keys.length; ++i) {
|
|
19067
|
+
writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
19068
|
+
$root.contentful.IdReference.encode(message.bannerMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
19069
|
+
}
|
|
19070
|
+
if (message.patternMedia != null && message.hasOwnProperty("patternMedia"))
|
|
19071
|
+
for (var keys = Object.keys(message.patternMedia), i = 0; i < keys.length; ++i) {
|
|
19072
|
+
writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
19073
|
+
$root.contentful.IdReference.encode(message.patternMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
19074
|
+
}
|
|
19075
|
+
if (message.colorTheme != null && message.hasOwnProperty("colorTheme"))
|
|
19076
|
+
writer.uint32(/* id 8, wireType 2 =*/66).string(message.colorTheme);
|
|
19077
|
+
if (message.primaryColor != null && message.hasOwnProperty("primaryColor"))
|
|
19078
|
+
writer.uint32(/* id 9, wireType 2 =*/74).string(message.primaryColor);
|
|
19079
|
+
if (message.secondaryColor != null && message.hasOwnProperty("secondaryColor"))
|
|
19080
|
+
writer.uint32(/* id 10, wireType 2 =*/82).string(message.secondaryColor);
|
|
19081
|
+
if (message.tertiaryColor != null && message.hasOwnProperty("tertiaryColor"))
|
|
19082
|
+
writer.uint32(/* id 11, wireType 2 =*/90).string(message.tertiaryColor);
|
|
19083
|
+
if (message.activities != null && message.activities.length)
|
|
19084
|
+
for (var i = 0; i < message.activities.length; ++i)
|
|
19085
|
+
$root.contentful.SlugReference.encode(message.activities[i], writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
|
|
19086
|
+
if (message.featuredLabelColor != null && message.hasOwnProperty("featuredLabelColor"))
|
|
19087
|
+
writer.uint32(/* id 13, wireType 2 =*/106).string(message.featuredLabelColor);
|
|
19088
|
+
if (message.contentInfoScreenTheme != null && message.hasOwnProperty("contentInfoScreenTheme"))
|
|
19089
|
+
writer.uint32(/* id 14, wireType 2 =*/114).string(message.contentInfoScreenTheme);
|
|
19090
|
+
if (message.contentType != null && message.hasOwnProperty("contentType"))
|
|
19091
|
+
writer.uint32(/* id 15, wireType 2 =*/122).string(message.contentType);
|
|
19092
|
+
if (message.contentTypeDisplayValue != null && message.hasOwnProperty("contentTypeDisplayValue"))
|
|
19093
|
+
writer.uint32(/* id 16, wireType 2 =*/130).string(message.contentTypeDisplayValue);
|
|
19094
|
+
if (message.techniques != null && message.techniques.length)
|
|
19095
|
+
for (var i = 0; i < message.techniques.length; ++i)
|
|
19096
|
+
$root.contentful.SlugReference.encode(message.techniques[i], writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim();
|
|
19097
|
+
if (message.related != null && message.related.length)
|
|
19098
|
+
for (var i = 0; i < message.related.length; ++i)
|
|
19099
|
+
$root.contentful.SlugReference.encode(message.related[i], writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim();
|
|
19100
|
+
if (message.accessGroup != null && message.accessGroup.length)
|
|
19101
|
+
for (var i = 0; i < message.accessGroup.length; ++i)
|
|
19102
|
+
$root.contentful.SlugReference.encode(message.accessGroup[i], writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim();
|
|
19103
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
19104
|
+
writer.uint32(/* id 20, wireType 0 =*/160).uint64(message.createdAt);
|
|
19105
|
+
return writer;
|
|
19106
|
+
};
|
|
19107
|
+
|
|
19108
|
+
/**
|
|
19109
|
+
* Encodes the specified ContentfulActivityGroupCreated message, length delimited. Does not implicitly {@link ContentfulActivityGroupCreated.verify|verify} messages.
|
|
19110
|
+
* @function encodeDelimited
|
|
19111
|
+
* @memberof ContentfulActivityGroupCreated
|
|
19112
|
+
* @static
|
|
19113
|
+
* @param {IContentfulActivityGroupCreated} message ContentfulActivityGroupCreated message or plain object to encode
|
|
19114
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
19115
|
+
* @returns {$protobuf.Writer} Writer
|
|
19116
|
+
*/
|
|
19117
|
+
ContentfulActivityGroupCreated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
19118
|
+
return this.encode(message, writer).ldelim();
|
|
19119
|
+
};
|
|
19120
|
+
|
|
19121
|
+
/**
|
|
19122
|
+
* Decodes a ContentfulActivityGroupCreated message from the specified reader or buffer.
|
|
19123
|
+
* @function decode
|
|
19124
|
+
* @memberof ContentfulActivityGroupCreated
|
|
19125
|
+
* @static
|
|
19126
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
19127
|
+
* @param {number} [length] Message length if known beforehand
|
|
19128
|
+
* @returns {ContentfulActivityGroupCreated} ContentfulActivityGroupCreated
|
|
19129
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
19130
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
19131
|
+
*/
|
|
19132
|
+
ContentfulActivityGroupCreated.decode = function decode(reader, length) {
|
|
19133
|
+
if (!(reader instanceof $Reader))
|
|
19134
|
+
reader = $Reader.create(reader);
|
|
19135
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulActivityGroupCreated(), key;
|
|
19136
|
+
while (reader.pos < end) {
|
|
19137
|
+
var tag = reader.uint32();
|
|
19138
|
+
switch (tag >>> 3) {
|
|
19139
|
+
case 1:
|
|
19140
|
+
reader.skip().pos++;
|
|
19141
|
+
if (message.name === $util.emptyObject)
|
|
19142
|
+
message.name = {};
|
|
19143
|
+
key = reader.string();
|
|
19144
|
+
reader.pos++;
|
|
19145
|
+
message.name[key] = reader.string();
|
|
19146
|
+
break;
|
|
19147
|
+
case 2:
|
|
19148
|
+
message.slug = reader.string();
|
|
19149
|
+
break;
|
|
19150
|
+
case 3:
|
|
19151
|
+
reader.skip().pos++;
|
|
19152
|
+
if (message.teaser === $util.emptyObject)
|
|
19153
|
+
message.teaser = {};
|
|
19154
|
+
key = reader.string();
|
|
19155
|
+
reader.pos++;
|
|
19156
|
+
message.teaser[key] = reader.string();
|
|
19157
|
+
break;
|
|
19158
|
+
case 4:
|
|
19159
|
+
reader.skip().pos++;
|
|
19160
|
+
if (message.description === $util.emptyObject)
|
|
19161
|
+
message.description = {};
|
|
19162
|
+
key = reader.string();
|
|
19163
|
+
reader.pos++;
|
|
19164
|
+
message.description[key] = reader.string();
|
|
19165
|
+
break;
|
|
19166
|
+
case 5:
|
|
19167
|
+
message.enabled = reader.string();
|
|
19168
|
+
break;
|
|
19169
|
+
case 6:
|
|
19170
|
+
reader.skip().pos++;
|
|
19171
|
+
if (message.bannerMedia === $util.emptyObject)
|
|
19172
|
+
message.bannerMedia = {};
|
|
19173
|
+
key = reader.string();
|
|
19174
|
+
reader.pos++;
|
|
19175
|
+
message.bannerMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
|
|
19176
|
+
break;
|
|
19177
|
+
case 7:
|
|
19178
|
+
reader.skip().pos++;
|
|
19179
|
+
if (message.patternMedia === $util.emptyObject)
|
|
19180
|
+
message.patternMedia = {};
|
|
19181
|
+
key = reader.string();
|
|
19182
|
+
reader.pos++;
|
|
19183
|
+
message.patternMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
|
|
19184
|
+
break;
|
|
19185
|
+
case 8:
|
|
19186
|
+
message.colorTheme = reader.string();
|
|
19187
|
+
break;
|
|
19188
|
+
case 9:
|
|
19189
|
+
message.primaryColor = reader.string();
|
|
19190
|
+
break;
|
|
19191
|
+
case 10:
|
|
19192
|
+
message.secondaryColor = reader.string();
|
|
19193
|
+
break;
|
|
19194
|
+
case 11:
|
|
19195
|
+
message.tertiaryColor = reader.string();
|
|
19196
|
+
break;
|
|
19197
|
+
case 12:
|
|
19198
|
+
if (!(message.activities && message.activities.length))
|
|
19199
|
+
message.activities = [];
|
|
19200
|
+
message.activities.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
19201
|
+
break;
|
|
19202
|
+
case 13:
|
|
19203
|
+
message.featuredLabelColor = reader.string();
|
|
19204
|
+
break;
|
|
19205
|
+
case 14:
|
|
19206
|
+
message.contentInfoScreenTheme = reader.string();
|
|
19207
|
+
break;
|
|
19208
|
+
case 15:
|
|
19209
|
+
message.contentType = reader.string();
|
|
19210
|
+
break;
|
|
19211
|
+
case 16:
|
|
19212
|
+
message.contentTypeDisplayValue = reader.string();
|
|
19213
|
+
break;
|
|
19214
|
+
case 17:
|
|
19215
|
+
if (!(message.techniques && message.techniques.length))
|
|
19216
|
+
message.techniques = [];
|
|
19217
|
+
message.techniques.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
19218
|
+
break;
|
|
19219
|
+
case 18:
|
|
19220
|
+
if (!(message.related && message.related.length))
|
|
19221
|
+
message.related = [];
|
|
19222
|
+
message.related.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
19223
|
+
break;
|
|
19224
|
+
case 19:
|
|
19225
|
+
if (!(message.accessGroup && message.accessGroup.length))
|
|
19226
|
+
message.accessGroup = [];
|
|
19227
|
+
message.accessGroup.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
19228
|
+
break;
|
|
19229
|
+
case 20:
|
|
19230
|
+
message.createdAt = reader.uint64();
|
|
19231
|
+
break;
|
|
19232
|
+
default:
|
|
19233
|
+
reader.skipType(tag & 7);
|
|
19234
|
+
break;
|
|
19235
|
+
}
|
|
19236
|
+
}
|
|
19237
|
+
return message;
|
|
19238
|
+
};
|
|
19239
|
+
|
|
19240
|
+
/**
|
|
19241
|
+
* Decodes a ContentfulActivityGroupCreated message from the specified reader or buffer, length delimited.
|
|
19242
|
+
* @function decodeDelimited
|
|
19243
|
+
* @memberof ContentfulActivityGroupCreated
|
|
19244
|
+
* @static
|
|
19245
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
19246
|
+
* @returns {ContentfulActivityGroupCreated} ContentfulActivityGroupCreated
|
|
19247
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
19248
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
19249
|
+
*/
|
|
19250
|
+
ContentfulActivityGroupCreated.decodeDelimited = function decodeDelimited(reader) {
|
|
19251
|
+
if (!(reader instanceof $Reader))
|
|
19252
|
+
reader = new $Reader(reader);
|
|
19253
|
+
return this.decode(reader, reader.uint32());
|
|
19254
|
+
};
|
|
19255
|
+
|
|
19256
|
+
/**
|
|
19257
|
+
* Verifies a ContentfulActivityGroupCreated message.
|
|
19258
|
+
* @function verify
|
|
19259
|
+
* @memberof ContentfulActivityGroupCreated
|
|
19260
|
+
* @static
|
|
19261
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
19262
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
19263
|
+
*/
|
|
19264
|
+
ContentfulActivityGroupCreated.verify = function verify(message) {
|
|
19265
|
+
if (typeof message !== "object" || message === null)
|
|
19266
|
+
return "object expected";
|
|
19267
|
+
if (message.name != null && message.hasOwnProperty("name")) {
|
|
19268
|
+
if (!$util.isObject(message.name))
|
|
19269
|
+
return "name: object expected";
|
|
19270
|
+
var key = Object.keys(message.name);
|
|
19271
|
+
for (var i = 0; i < key.length; ++i)
|
|
19272
|
+
if (!$util.isString(message.name[key[i]]))
|
|
19273
|
+
return "name: string{k:string} expected";
|
|
19274
|
+
}
|
|
19275
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
19276
|
+
if (!$util.isString(message.slug))
|
|
19277
|
+
return "slug: string expected";
|
|
19278
|
+
if (message.teaser != null && message.hasOwnProperty("teaser")) {
|
|
19279
|
+
if (!$util.isObject(message.teaser))
|
|
19280
|
+
return "teaser: object expected";
|
|
19281
|
+
var key = Object.keys(message.teaser);
|
|
19282
|
+
for (var i = 0; i < key.length; ++i)
|
|
19283
|
+
if (!$util.isString(message.teaser[key[i]]))
|
|
19284
|
+
return "teaser: string{k:string} expected";
|
|
19285
|
+
}
|
|
19286
|
+
if (message.description != null && message.hasOwnProperty("description")) {
|
|
19287
|
+
if (!$util.isObject(message.description))
|
|
19288
|
+
return "description: object expected";
|
|
19289
|
+
var key = Object.keys(message.description);
|
|
19290
|
+
for (var i = 0; i < key.length; ++i)
|
|
19291
|
+
if (!$util.isString(message.description[key[i]]))
|
|
19292
|
+
return "description: string{k:string} expected";
|
|
19293
|
+
}
|
|
19294
|
+
if (message.enabled != null && message.hasOwnProperty("enabled"))
|
|
19295
|
+
if (!$util.isString(message.enabled))
|
|
19296
|
+
return "enabled: string expected";
|
|
19297
|
+
if (message.bannerMedia != null && message.hasOwnProperty("bannerMedia")) {
|
|
19298
|
+
if (!$util.isObject(message.bannerMedia))
|
|
19299
|
+
return "bannerMedia: object expected";
|
|
19300
|
+
var key = Object.keys(message.bannerMedia);
|
|
19301
|
+
for (var i = 0; i < key.length; ++i) {
|
|
19302
|
+
var error = $root.contentful.IdReference.verify(message.bannerMedia[key[i]]);
|
|
19303
|
+
if (error)
|
|
19304
|
+
return "bannerMedia." + error;
|
|
19305
|
+
}
|
|
19306
|
+
}
|
|
19307
|
+
if (message.patternMedia != null && message.hasOwnProperty("patternMedia")) {
|
|
19308
|
+
if (!$util.isObject(message.patternMedia))
|
|
19309
|
+
return "patternMedia: object expected";
|
|
19310
|
+
var key = Object.keys(message.patternMedia);
|
|
19311
|
+
for (var i = 0; i < key.length; ++i) {
|
|
19312
|
+
var error = $root.contentful.IdReference.verify(message.patternMedia[key[i]]);
|
|
19313
|
+
if (error)
|
|
19314
|
+
return "patternMedia." + error;
|
|
19315
|
+
}
|
|
19316
|
+
}
|
|
19317
|
+
if (message.colorTheme != null && message.hasOwnProperty("colorTheme"))
|
|
19318
|
+
if (!$util.isString(message.colorTheme))
|
|
19319
|
+
return "colorTheme: string expected";
|
|
19320
|
+
if (message.primaryColor != null && message.hasOwnProperty("primaryColor"))
|
|
19321
|
+
if (!$util.isString(message.primaryColor))
|
|
19322
|
+
return "primaryColor: string expected";
|
|
19323
|
+
if (message.secondaryColor != null && message.hasOwnProperty("secondaryColor"))
|
|
19324
|
+
if (!$util.isString(message.secondaryColor))
|
|
19325
|
+
return "secondaryColor: string expected";
|
|
19326
|
+
if (message.tertiaryColor != null && message.hasOwnProperty("tertiaryColor"))
|
|
19327
|
+
if (!$util.isString(message.tertiaryColor))
|
|
19328
|
+
return "tertiaryColor: string expected";
|
|
19329
|
+
if (message.activities != null && message.hasOwnProperty("activities")) {
|
|
19330
|
+
if (!Array.isArray(message.activities))
|
|
19331
|
+
return "activities: array expected";
|
|
19332
|
+
for (var i = 0; i < message.activities.length; ++i) {
|
|
19333
|
+
var error = $root.contentful.SlugReference.verify(message.activities[i]);
|
|
19334
|
+
if (error)
|
|
19335
|
+
return "activities." + error;
|
|
19336
|
+
}
|
|
19337
|
+
}
|
|
19338
|
+
if (message.featuredLabelColor != null && message.hasOwnProperty("featuredLabelColor"))
|
|
19339
|
+
if (!$util.isString(message.featuredLabelColor))
|
|
19340
|
+
return "featuredLabelColor: string expected";
|
|
19341
|
+
if (message.contentInfoScreenTheme != null && message.hasOwnProperty("contentInfoScreenTheme"))
|
|
19342
|
+
if (!$util.isString(message.contentInfoScreenTheme))
|
|
19343
|
+
return "contentInfoScreenTheme: string expected";
|
|
19344
|
+
if (message.contentType != null && message.hasOwnProperty("contentType"))
|
|
19345
|
+
if (!$util.isString(message.contentType))
|
|
19346
|
+
return "contentType: string expected";
|
|
19347
|
+
if (message.contentTypeDisplayValue != null && message.hasOwnProperty("contentTypeDisplayValue"))
|
|
19348
|
+
if (!$util.isString(message.contentTypeDisplayValue))
|
|
19349
|
+
return "contentTypeDisplayValue: string expected";
|
|
19350
|
+
if (message.techniques != null && message.hasOwnProperty("techniques")) {
|
|
19351
|
+
if (!Array.isArray(message.techniques))
|
|
19352
|
+
return "techniques: array expected";
|
|
19353
|
+
for (var i = 0; i < message.techniques.length; ++i) {
|
|
19354
|
+
var error = $root.contentful.SlugReference.verify(message.techniques[i]);
|
|
19355
|
+
if (error)
|
|
19356
|
+
return "techniques." + error;
|
|
19357
|
+
}
|
|
19358
|
+
}
|
|
19359
|
+
if (message.related != null && message.hasOwnProperty("related")) {
|
|
19360
|
+
if (!Array.isArray(message.related))
|
|
19361
|
+
return "related: array expected";
|
|
19362
|
+
for (var i = 0; i < message.related.length; ++i) {
|
|
19363
|
+
var error = $root.contentful.SlugReference.verify(message.related[i]);
|
|
19364
|
+
if (error)
|
|
19365
|
+
return "related." + error;
|
|
19366
|
+
}
|
|
19367
|
+
}
|
|
19368
|
+
if (message.accessGroup != null && message.hasOwnProperty("accessGroup")) {
|
|
19369
|
+
if (!Array.isArray(message.accessGroup))
|
|
19370
|
+
return "accessGroup: array expected";
|
|
19371
|
+
for (var i = 0; i < message.accessGroup.length; ++i) {
|
|
19372
|
+
var error = $root.contentful.SlugReference.verify(message.accessGroup[i]);
|
|
19373
|
+
if (error)
|
|
19374
|
+
return "accessGroup." + error;
|
|
19375
|
+
}
|
|
19376
|
+
}
|
|
19377
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
19378
|
+
if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
|
|
19379
|
+
return "createdAt: integer|Long expected";
|
|
19380
|
+
return null;
|
|
19381
|
+
};
|
|
19382
|
+
|
|
19383
|
+
/**
|
|
19384
|
+
* Creates a ContentfulActivityGroupCreated message from a plain object. Also converts values to their respective internal types.
|
|
19385
|
+
* @function fromObject
|
|
19386
|
+
* @memberof ContentfulActivityGroupCreated
|
|
19387
|
+
* @static
|
|
19388
|
+
* @param {Object.<string,*>} object Plain object
|
|
19389
|
+
* @returns {ContentfulActivityGroupCreated} ContentfulActivityGroupCreated
|
|
19390
|
+
*/
|
|
19391
|
+
ContentfulActivityGroupCreated.fromObject = function fromObject(object) {
|
|
19392
|
+
if (object instanceof $root.ContentfulActivityGroupCreated)
|
|
19393
|
+
return object;
|
|
19394
|
+
var message = new $root.ContentfulActivityGroupCreated();
|
|
19395
|
+
if (object.name) {
|
|
19396
|
+
if (typeof object.name !== "object")
|
|
19397
|
+
throw TypeError(".ContentfulActivityGroupCreated.name: object expected");
|
|
19398
|
+
message.name = {};
|
|
19399
|
+
for (var keys = Object.keys(object.name), i = 0; i < keys.length; ++i)
|
|
19400
|
+
message.name[keys[i]] = String(object.name[keys[i]]);
|
|
19401
|
+
}
|
|
19402
|
+
if (object.slug != null)
|
|
19403
|
+
message.slug = String(object.slug);
|
|
19404
|
+
if (object.teaser) {
|
|
19405
|
+
if (typeof object.teaser !== "object")
|
|
19406
|
+
throw TypeError(".ContentfulActivityGroupCreated.teaser: object expected");
|
|
19407
|
+
message.teaser = {};
|
|
19408
|
+
for (var keys = Object.keys(object.teaser), i = 0; i < keys.length; ++i)
|
|
19409
|
+
message.teaser[keys[i]] = String(object.teaser[keys[i]]);
|
|
19410
|
+
}
|
|
19411
|
+
if (object.description) {
|
|
19412
|
+
if (typeof object.description !== "object")
|
|
19413
|
+
throw TypeError(".ContentfulActivityGroupCreated.description: object expected");
|
|
19414
|
+
message.description = {};
|
|
19415
|
+
for (var keys = Object.keys(object.description), i = 0; i < keys.length; ++i)
|
|
19416
|
+
message.description[keys[i]] = String(object.description[keys[i]]);
|
|
19417
|
+
}
|
|
19418
|
+
if (object.enabled != null)
|
|
19419
|
+
message.enabled = String(object.enabled);
|
|
19420
|
+
if (object.bannerMedia) {
|
|
19421
|
+
if (typeof object.bannerMedia !== "object")
|
|
19422
|
+
throw TypeError(".ContentfulActivityGroupCreated.bannerMedia: object expected");
|
|
19423
|
+
message.bannerMedia = {};
|
|
19424
|
+
for (var keys = Object.keys(object.bannerMedia), i = 0; i < keys.length; ++i) {
|
|
19425
|
+
if (typeof object.bannerMedia[keys[i]] !== "object")
|
|
19426
|
+
throw TypeError(".ContentfulActivityGroupCreated.bannerMedia: object expected");
|
|
19427
|
+
message.bannerMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.bannerMedia[keys[i]]);
|
|
19428
|
+
}
|
|
19429
|
+
}
|
|
19430
|
+
if (object.patternMedia) {
|
|
19431
|
+
if (typeof object.patternMedia !== "object")
|
|
19432
|
+
throw TypeError(".ContentfulActivityGroupCreated.patternMedia: object expected");
|
|
19433
|
+
message.patternMedia = {};
|
|
19434
|
+
for (var keys = Object.keys(object.patternMedia), i = 0; i < keys.length; ++i) {
|
|
19435
|
+
if (typeof object.patternMedia[keys[i]] !== "object")
|
|
19436
|
+
throw TypeError(".ContentfulActivityGroupCreated.patternMedia: object expected");
|
|
19437
|
+
message.patternMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.patternMedia[keys[i]]);
|
|
19438
|
+
}
|
|
19439
|
+
}
|
|
19440
|
+
if (object.colorTheme != null)
|
|
19441
|
+
message.colorTheme = String(object.colorTheme);
|
|
19442
|
+
if (object.primaryColor != null)
|
|
19443
|
+
message.primaryColor = String(object.primaryColor);
|
|
19444
|
+
if (object.secondaryColor != null)
|
|
19445
|
+
message.secondaryColor = String(object.secondaryColor);
|
|
19446
|
+
if (object.tertiaryColor != null)
|
|
19447
|
+
message.tertiaryColor = String(object.tertiaryColor);
|
|
19448
|
+
if (object.activities) {
|
|
19449
|
+
if (!Array.isArray(object.activities))
|
|
19450
|
+
throw TypeError(".ContentfulActivityGroupCreated.activities: array expected");
|
|
19451
|
+
message.activities = [];
|
|
19452
|
+
for (var i = 0; i < object.activities.length; ++i) {
|
|
19453
|
+
if (typeof object.activities[i] !== "object")
|
|
19454
|
+
throw TypeError(".ContentfulActivityGroupCreated.activities: object expected");
|
|
19455
|
+
message.activities[i] = $root.contentful.SlugReference.fromObject(object.activities[i]);
|
|
19456
|
+
}
|
|
19457
|
+
}
|
|
19458
|
+
if (object.featuredLabelColor != null)
|
|
19459
|
+
message.featuredLabelColor = String(object.featuredLabelColor);
|
|
19460
|
+
if (object.contentInfoScreenTheme != null)
|
|
19461
|
+
message.contentInfoScreenTheme = String(object.contentInfoScreenTheme);
|
|
19462
|
+
if (object.contentType != null)
|
|
19463
|
+
message.contentType = String(object.contentType);
|
|
19464
|
+
if (object.contentTypeDisplayValue != null)
|
|
19465
|
+
message.contentTypeDisplayValue = String(object.contentTypeDisplayValue);
|
|
19466
|
+
if (object.techniques) {
|
|
19467
|
+
if (!Array.isArray(object.techniques))
|
|
19468
|
+
throw TypeError(".ContentfulActivityGroupCreated.techniques: array expected");
|
|
19469
|
+
message.techniques = [];
|
|
19470
|
+
for (var i = 0; i < object.techniques.length; ++i) {
|
|
19471
|
+
if (typeof object.techniques[i] !== "object")
|
|
19472
|
+
throw TypeError(".ContentfulActivityGroupCreated.techniques: object expected");
|
|
19473
|
+
message.techniques[i] = $root.contentful.SlugReference.fromObject(object.techniques[i]);
|
|
19474
|
+
}
|
|
19475
|
+
}
|
|
19476
|
+
if (object.related) {
|
|
19477
|
+
if (!Array.isArray(object.related))
|
|
19478
|
+
throw TypeError(".ContentfulActivityGroupCreated.related: array expected");
|
|
19479
|
+
message.related = [];
|
|
19480
|
+
for (var i = 0; i < object.related.length; ++i) {
|
|
19481
|
+
if (typeof object.related[i] !== "object")
|
|
19482
|
+
throw TypeError(".ContentfulActivityGroupCreated.related: object expected");
|
|
19483
|
+
message.related[i] = $root.contentful.SlugReference.fromObject(object.related[i]);
|
|
19484
|
+
}
|
|
19485
|
+
}
|
|
19486
|
+
if (object.accessGroup) {
|
|
19487
|
+
if (!Array.isArray(object.accessGroup))
|
|
19488
|
+
throw TypeError(".ContentfulActivityGroupCreated.accessGroup: array expected");
|
|
19489
|
+
message.accessGroup = [];
|
|
19490
|
+
for (var i = 0; i < object.accessGroup.length; ++i) {
|
|
19491
|
+
if (typeof object.accessGroup[i] !== "object")
|
|
19492
|
+
throw TypeError(".ContentfulActivityGroupCreated.accessGroup: object expected");
|
|
19493
|
+
message.accessGroup[i] = $root.contentful.SlugReference.fromObject(object.accessGroup[i]);
|
|
19494
|
+
}
|
|
19495
|
+
}
|
|
19496
|
+
if (object.createdAt != null)
|
|
19497
|
+
if ($util.Long)
|
|
19498
|
+
(message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
|
|
19499
|
+
else if (typeof object.createdAt === "string")
|
|
19500
|
+
message.createdAt = parseInt(object.createdAt, 10);
|
|
19501
|
+
else if (typeof object.createdAt === "number")
|
|
19502
|
+
message.createdAt = object.createdAt;
|
|
19503
|
+
else if (typeof object.createdAt === "object")
|
|
19504
|
+
message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
|
|
19505
|
+
return message;
|
|
19506
|
+
};
|
|
19507
|
+
|
|
19508
|
+
/**
|
|
19509
|
+
* Creates a plain object from a ContentfulActivityGroupCreated message. Also converts values to other types if specified.
|
|
19510
|
+
* @function toObject
|
|
19511
|
+
* @memberof ContentfulActivityGroupCreated
|
|
19512
|
+
* @static
|
|
19513
|
+
* @param {ContentfulActivityGroupCreated} message ContentfulActivityGroupCreated
|
|
19514
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
19515
|
+
* @returns {Object.<string,*>} Plain object
|
|
19516
|
+
*/
|
|
19517
|
+
ContentfulActivityGroupCreated.toObject = function toObject(message, options) {
|
|
19518
|
+
if (!options)
|
|
19519
|
+
options = {};
|
|
19520
|
+
var object = {};
|
|
19521
|
+
if (options.arrays || options.defaults) {
|
|
19522
|
+
object.activities = [];
|
|
19523
|
+
object.techniques = [];
|
|
19524
|
+
object.related = [];
|
|
19525
|
+
object.accessGroup = [];
|
|
19526
|
+
}
|
|
19527
|
+
if (options.objects || options.defaults) {
|
|
19528
|
+
object.name = {};
|
|
19529
|
+
object.teaser = {};
|
|
19530
|
+
object.description = {};
|
|
19531
|
+
object.bannerMedia = {};
|
|
19532
|
+
object.patternMedia = {};
|
|
19533
|
+
}
|
|
19534
|
+
if (options.defaults) {
|
|
19535
|
+
object.slug = "";
|
|
19536
|
+
object.enabled = "";
|
|
19537
|
+
object.colorTheme = "";
|
|
19538
|
+
object.primaryColor = "";
|
|
19539
|
+
object.secondaryColor = "";
|
|
19540
|
+
object.tertiaryColor = "";
|
|
19541
|
+
object.featuredLabelColor = "";
|
|
19542
|
+
object.contentInfoScreenTheme = "";
|
|
19543
|
+
object.contentType = "";
|
|
19544
|
+
object.contentTypeDisplayValue = "";
|
|
19545
|
+
if ($util.Long) {
|
|
19546
|
+
var long = new $util.Long(0, 0, true);
|
|
19547
|
+
object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
19548
|
+
} else
|
|
19549
|
+
object.createdAt = options.longs === String ? "0" : 0;
|
|
19550
|
+
}
|
|
19551
|
+
var keys2;
|
|
19552
|
+
if (message.name && (keys2 = Object.keys(message.name)).length) {
|
|
19553
|
+
object.name = {};
|
|
19554
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
19555
|
+
object.name[keys2[j]] = message.name[keys2[j]];
|
|
19556
|
+
}
|
|
19557
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
19558
|
+
object.slug = message.slug;
|
|
19559
|
+
if (message.teaser && (keys2 = Object.keys(message.teaser)).length) {
|
|
19560
|
+
object.teaser = {};
|
|
19561
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
19562
|
+
object.teaser[keys2[j]] = message.teaser[keys2[j]];
|
|
19563
|
+
}
|
|
19564
|
+
if (message.description && (keys2 = Object.keys(message.description)).length) {
|
|
19565
|
+
object.description = {};
|
|
19566
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
19567
|
+
object.description[keys2[j]] = message.description[keys2[j]];
|
|
19568
|
+
}
|
|
19569
|
+
if (message.enabled != null && message.hasOwnProperty("enabled"))
|
|
19570
|
+
object.enabled = message.enabled;
|
|
19571
|
+
if (message.bannerMedia && (keys2 = Object.keys(message.bannerMedia)).length) {
|
|
19572
|
+
object.bannerMedia = {};
|
|
19573
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
19574
|
+
object.bannerMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.bannerMedia[keys2[j]], options);
|
|
19575
|
+
}
|
|
19576
|
+
if (message.patternMedia && (keys2 = Object.keys(message.patternMedia)).length) {
|
|
19577
|
+
object.patternMedia = {};
|
|
19578
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
19579
|
+
object.patternMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.patternMedia[keys2[j]], options);
|
|
19580
|
+
}
|
|
19581
|
+
if (message.colorTheme != null && message.hasOwnProperty("colorTheme"))
|
|
19582
|
+
object.colorTheme = message.colorTheme;
|
|
19583
|
+
if (message.primaryColor != null && message.hasOwnProperty("primaryColor"))
|
|
19584
|
+
object.primaryColor = message.primaryColor;
|
|
19585
|
+
if (message.secondaryColor != null && message.hasOwnProperty("secondaryColor"))
|
|
19586
|
+
object.secondaryColor = message.secondaryColor;
|
|
19587
|
+
if (message.tertiaryColor != null && message.hasOwnProperty("tertiaryColor"))
|
|
19588
|
+
object.tertiaryColor = message.tertiaryColor;
|
|
19589
|
+
if (message.activities && message.activities.length) {
|
|
19590
|
+
object.activities = [];
|
|
19591
|
+
for (var j = 0; j < message.activities.length; ++j)
|
|
19592
|
+
object.activities[j] = $root.contentful.SlugReference.toObject(message.activities[j], options);
|
|
19593
|
+
}
|
|
19594
|
+
if (message.featuredLabelColor != null && message.hasOwnProperty("featuredLabelColor"))
|
|
19595
|
+
object.featuredLabelColor = message.featuredLabelColor;
|
|
19596
|
+
if (message.contentInfoScreenTheme != null && message.hasOwnProperty("contentInfoScreenTheme"))
|
|
19597
|
+
object.contentInfoScreenTheme = message.contentInfoScreenTheme;
|
|
19598
|
+
if (message.contentType != null && message.hasOwnProperty("contentType"))
|
|
19599
|
+
object.contentType = message.contentType;
|
|
19600
|
+
if (message.contentTypeDisplayValue != null && message.hasOwnProperty("contentTypeDisplayValue"))
|
|
19601
|
+
object.contentTypeDisplayValue = message.contentTypeDisplayValue;
|
|
19602
|
+
if (message.techniques && message.techniques.length) {
|
|
19603
|
+
object.techniques = [];
|
|
19604
|
+
for (var j = 0; j < message.techniques.length; ++j)
|
|
19605
|
+
object.techniques[j] = $root.contentful.SlugReference.toObject(message.techniques[j], options);
|
|
19606
|
+
}
|
|
19607
|
+
if (message.related && message.related.length) {
|
|
19608
|
+
object.related = [];
|
|
19609
|
+
for (var j = 0; j < message.related.length; ++j)
|
|
19610
|
+
object.related[j] = $root.contentful.SlugReference.toObject(message.related[j], options);
|
|
19611
|
+
}
|
|
19612
|
+
if (message.accessGroup && message.accessGroup.length) {
|
|
19613
|
+
object.accessGroup = [];
|
|
19614
|
+
for (var j = 0; j < message.accessGroup.length; ++j)
|
|
19615
|
+
object.accessGroup[j] = $root.contentful.SlugReference.toObject(message.accessGroup[j], options);
|
|
19616
|
+
}
|
|
19617
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
19618
|
+
if (typeof message.createdAt === "number")
|
|
19619
|
+
object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
|
|
19620
|
+
else
|
|
19621
|
+
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;
|
|
19622
|
+
return object;
|
|
19623
|
+
};
|
|
19624
|
+
|
|
19625
|
+
/**
|
|
19626
|
+
* Converts this ContentfulActivityGroupCreated to JSON.
|
|
19627
|
+
* @function toJSON
|
|
19628
|
+
* @memberof ContentfulActivityGroupCreated
|
|
19629
|
+
* @instance
|
|
19630
|
+
* @returns {Object.<string,*>} JSON object
|
|
19631
|
+
*/
|
|
19632
|
+
ContentfulActivityGroupCreated.prototype.toJSON = function toJSON() {
|
|
19633
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
19634
|
+
};
|
|
19635
|
+
|
|
19636
|
+
return ContentfulActivityGroupCreated;
|
|
19637
|
+
})();
|
|
19638
|
+
|
|
19639
|
+
$root.ContentfulActivityGroupUpdated = (function() {
|
|
19640
|
+
|
|
19641
|
+
/**
|
|
19642
|
+
* Properties of a ContentfulActivityGroupUpdated.
|
|
19643
|
+
* @exports IContentfulActivityGroupUpdated
|
|
19644
|
+
* @interface IContentfulActivityGroupUpdated
|
|
19645
|
+
* @property {Object.<string,string>|null} [name] ContentfulActivityGroupUpdated name
|
|
19646
|
+
* @property {string|null} [slug] ContentfulActivityGroupUpdated slug
|
|
19647
|
+
* @property {Object.<string,string>|null} [teaser] ContentfulActivityGroupUpdated teaser
|
|
19648
|
+
* @property {Object.<string,string>|null} [description] ContentfulActivityGroupUpdated description
|
|
19649
|
+
* @property {string|null} [enabled] ContentfulActivityGroupUpdated enabled
|
|
19650
|
+
* @property {Object.<string,contentful.IIdReference>|null} [bannerMedia] ContentfulActivityGroupUpdated bannerMedia
|
|
19651
|
+
* @property {Object.<string,contentful.IIdReference>|null} [patternMedia] ContentfulActivityGroupUpdated patternMedia
|
|
19652
|
+
* @property {string|null} [colorTheme] ContentfulActivityGroupUpdated colorTheme
|
|
19653
|
+
* @property {string|null} [primaryColor] ContentfulActivityGroupUpdated primaryColor
|
|
19654
|
+
* @property {string|null} [secondaryColor] ContentfulActivityGroupUpdated secondaryColor
|
|
19655
|
+
* @property {string|null} [tertiaryColor] ContentfulActivityGroupUpdated tertiaryColor
|
|
19656
|
+
* @property {Array.<contentful.ISlugReference>|null} [activities] ContentfulActivityGroupUpdated activities
|
|
19657
|
+
* @property {string|null} [featuredLabelColor] ContentfulActivityGroupUpdated featuredLabelColor
|
|
19658
|
+
* @property {string|null} [contentInfoScreenTheme] ContentfulActivityGroupUpdated contentInfoScreenTheme
|
|
19659
|
+
* @property {string|null} [contentType] ContentfulActivityGroupUpdated contentType
|
|
19660
|
+
* @property {string|null} [contentTypeDisplayValue] ContentfulActivityGroupUpdated contentTypeDisplayValue
|
|
19661
|
+
* @property {Array.<contentful.ISlugReference>|null} [techniques] ContentfulActivityGroupUpdated techniques
|
|
19662
|
+
* @property {Array.<contentful.ISlugReference>|null} [related] ContentfulActivityGroupUpdated related
|
|
19663
|
+
* @property {Array.<contentful.ISlugReference>|null} [accessGroup] ContentfulActivityGroupUpdated accessGroup
|
|
19664
|
+
* @property {number|Long|null} [updatedAt] ContentfulActivityGroupUpdated updatedAt
|
|
19665
|
+
*/
|
|
19666
|
+
|
|
19667
|
+
/**
|
|
19668
|
+
* Constructs a new ContentfulActivityGroupUpdated.
|
|
19669
|
+
* @exports ContentfulActivityGroupUpdated
|
|
19670
|
+
* @classdesc Represents a ContentfulActivityGroupUpdated.
|
|
19671
|
+
* @implements IContentfulActivityGroupUpdated
|
|
19672
|
+
* @constructor
|
|
19673
|
+
* @param {IContentfulActivityGroupUpdated=} [properties] Properties to set
|
|
19674
|
+
*/
|
|
19675
|
+
function ContentfulActivityGroupUpdated(properties) {
|
|
19676
|
+
this.name = {};
|
|
19677
|
+
this.teaser = {};
|
|
19678
|
+
this.description = {};
|
|
19679
|
+
this.bannerMedia = {};
|
|
19680
|
+
this.patternMedia = {};
|
|
19681
|
+
this.activities = [];
|
|
19682
|
+
this.techniques = [];
|
|
19683
|
+
this.related = [];
|
|
19684
|
+
this.accessGroup = [];
|
|
19685
|
+
if (properties)
|
|
19686
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
19687
|
+
if (properties[keys[i]] != null)
|
|
19688
|
+
this[keys[i]] = properties[keys[i]];
|
|
19689
|
+
}
|
|
19690
|
+
|
|
19691
|
+
/**
|
|
19692
|
+
* ContentfulActivityGroupUpdated name.
|
|
19693
|
+
* @member {Object.<string,string>} name
|
|
19694
|
+
* @memberof ContentfulActivityGroupUpdated
|
|
19695
|
+
* @instance
|
|
19696
|
+
*/
|
|
19697
|
+
ContentfulActivityGroupUpdated.prototype.name = $util.emptyObject;
|
|
19698
|
+
|
|
19699
|
+
/**
|
|
19700
|
+
* ContentfulActivityGroupUpdated slug.
|
|
19701
|
+
* @member {string} slug
|
|
19702
|
+
* @memberof ContentfulActivityGroupUpdated
|
|
19703
|
+
* @instance
|
|
19704
|
+
*/
|
|
19705
|
+
ContentfulActivityGroupUpdated.prototype.slug = "";
|
|
19706
|
+
|
|
19707
|
+
/**
|
|
19708
|
+
* ContentfulActivityGroupUpdated teaser.
|
|
19709
|
+
* @member {Object.<string,string>} teaser
|
|
19710
|
+
* @memberof ContentfulActivityGroupUpdated
|
|
19711
|
+
* @instance
|
|
19712
|
+
*/
|
|
19713
|
+
ContentfulActivityGroupUpdated.prototype.teaser = $util.emptyObject;
|
|
19714
|
+
|
|
19715
|
+
/**
|
|
19716
|
+
* ContentfulActivityGroupUpdated description.
|
|
19717
|
+
* @member {Object.<string,string>} description
|
|
19718
|
+
* @memberof ContentfulActivityGroupUpdated
|
|
19719
|
+
* @instance
|
|
19720
|
+
*/
|
|
19721
|
+
ContentfulActivityGroupUpdated.prototype.description = $util.emptyObject;
|
|
19722
|
+
|
|
19723
|
+
/**
|
|
19724
|
+
* ContentfulActivityGroupUpdated enabled.
|
|
19725
|
+
* @member {string} enabled
|
|
19726
|
+
* @memberof ContentfulActivityGroupUpdated
|
|
19727
|
+
* @instance
|
|
19728
|
+
*/
|
|
19729
|
+
ContentfulActivityGroupUpdated.prototype.enabled = "";
|
|
19730
|
+
|
|
19731
|
+
/**
|
|
19732
|
+
* ContentfulActivityGroupUpdated bannerMedia.
|
|
19733
|
+
* @member {Object.<string,contentful.IIdReference>} bannerMedia
|
|
19734
|
+
* @memberof ContentfulActivityGroupUpdated
|
|
19735
|
+
* @instance
|
|
19736
|
+
*/
|
|
19737
|
+
ContentfulActivityGroupUpdated.prototype.bannerMedia = $util.emptyObject;
|
|
19738
|
+
|
|
19739
|
+
/**
|
|
19740
|
+
* ContentfulActivityGroupUpdated patternMedia.
|
|
19741
|
+
* @member {Object.<string,contentful.IIdReference>} patternMedia
|
|
19742
|
+
* @memberof ContentfulActivityGroupUpdated
|
|
19743
|
+
* @instance
|
|
19744
|
+
*/
|
|
19745
|
+
ContentfulActivityGroupUpdated.prototype.patternMedia = $util.emptyObject;
|
|
19746
|
+
|
|
19747
|
+
/**
|
|
19748
|
+
* ContentfulActivityGroupUpdated colorTheme.
|
|
19749
|
+
* @member {string} colorTheme
|
|
19750
|
+
* @memberof ContentfulActivityGroupUpdated
|
|
19751
|
+
* @instance
|
|
19752
|
+
*/
|
|
19753
|
+
ContentfulActivityGroupUpdated.prototype.colorTheme = "";
|
|
19754
|
+
|
|
19755
|
+
/**
|
|
19756
|
+
* ContentfulActivityGroupUpdated primaryColor.
|
|
19757
|
+
* @member {string} primaryColor
|
|
19758
|
+
* @memberof ContentfulActivityGroupUpdated
|
|
19759
|
+
* @instance
|
|
19760
|
+
*/
|
|
19761
|
+
ContentfulActivityGroupUpdated.prototype.primaryColor = "";
|
|
19762
|
+
|
|
19763
|
+
/**
|
|
19764
|
+
* ContentfulActivityGroupUpdated secondaryColor.
|
|
19765
|
+
* @member {string} secondaryColor
|
|
19766
|
+
* @memberof ContentfulActivityGroupUpdated
|
|
19767
|
+
* @instance
|
|
19768
|
+
*/
|
|
19769
|
+
ContentfulActivityGroupUpdated.prototype.secondaryColor = "";
|
|
19770
|
+
|
|
19771
|
+
/**
|
|
19772
|
+
* ContentfulActivityGroupUpdated tertiaryColor.
|
|
19773
|
+
* @member {string} tertiaryColor
|
|
19774
|
+
* @memberof ContentfulActivityGroupUpdated
|
|
19775
|
+
* @instance
|
|
19776
|
+
*/
|
|
19777
|
+
ContentfulActivityGroupUpdated.prototype.tertiaryColor = "";
|
|
19778
|
+
|
|
19779
|
+
/**
|
|
19780
|
+
* ContentfulActivityGroupUpdated activities.
|
|
19781
|
+
* @member {Array.<contentful.ISlugReference>} activities
|
|
19782
|
+
* @memberof ContentfulActivityGroupUpdated
|
|
19783
|
+
* @instance
|
|
19784
|
+
*/
|
|
19785
|
+
ContentfulActivityGroupUpdated.prototype.activities = $util.emptyArray;
|
|
19786
|
+
|
|
19787
|
+
/**
|
|
19788
|
+
* ContentfulActivityGroupUpdated featuredLabelColor.
|
|
19789
|
+
* @member {string} featuredLabelColor
|
|
19790
|
+
* @memberof ContentfulActivityGroupUpdated
|
|
19791
|
+
* @instance
|
|
19792
|
+
*/
|
|
19793
|
+
ContentfulActivityGroupUpdated.prototype.featuredLabelColor = "";
|
|
19794
|
+
|
|
19795
|
+
/**
|
|
19796
|
+
* ContentfulActivityGroupUpdated contentInfoScreenTheme.
|
|
19797
|
+
* @member {string} contentInfoScreenTheme
|
|
19798
|
+
* @memberof ContentfulActivityGroupUpdated
|
|
19799
|
+
* @instance
|
|
19800
|
+
*/
|
|
19801
|
+
ContentfulActivityGroupUpdated.prototype.contentInfoScreenTheme = "";
|
|
19802
|
+
|
|
19803
|
+
/**
|
|
19804
|
+
* ContentfulActivityGroupUpdated contentType.
|
|
19805
|
+
* @member {string} contentType
|
|
19806
|
+
* @memberof ContentfulActivityGroupUpdated
|
|
19807
|
+
* @instance
|
|
19808
|
+
*/
|
|
19809
|
+
ContentfulActivityGroupUpdated.prototype.contentType = "";
|
|
19810
|
+
|
|
19811
|
+
/**
|
|
19812
|
+
* ContentfulActivityGroupUpdated contentTypeDisplayValue.
|
|
19813
|
+
* @member {string} contentTypeDisplayValue
|
|
19814
|
+
* @memberof ContentfulActivityGroupUpdated
|
|
19815
|
+
* @instance
|
|
19816
|
+
*/
|
|
19817
|
+
ContentfulActivityGroupUpdated.prototype.contentTypeDisplayValue = "";
|
|
19818
|
+
|
|
19819
|
+
/**
|
|
19820
|
+
* ContentfulActivityGroupUpdated techniques.
|
|
19821
|
+
* @member {Array.<contentful.ISlugReference>} techniques
|
|
19822
|
+
* @memberof ContentfulActivityGroupUpdated
|
|
19823
|
+
* @instance
|
|
19824
|
+
*/
|
|
19825
|
+
ContentfulActivityGroupUpdated.prototype.techniques = $util.emptyArray;
|
|
19826
|
+
|
|
19827
|
+
/**
|
|
19828
|
+
* ContentfulActivityGroupUpdated related.
|
|
19829
|
+
* @member {Array.<contentful.ISlugReference>} related
|
|
19830
|
+
* @memberof ContentfulActivityGroupUpdated
|
|
19831
|
+
* @instance
|
|
19832
|
+
*/
|
|
19833
|
+
ContentfulActivityGroupUpdated.prototype.related = $util.emptyArray;
|
|
19834
|
+
|
|
19835
|
+
/**
|
|
19836
|
+
* ContentfulActivityGroupUpdated accessGroup.
|
|
19837
|
+
* @member {Array.<contentful.ISlugReference>} accessGroup
|
|
19838
|
+
* @memberof ContentfulActivityGroupUpdated
|
|
19839
|
+
* @instance
|
|
19840
|
+
*/
|
|
19841
|
+
ContentfulActivityGroupUpdated.prototype.accessGroup = $util.emptyArray;
|
|
19842
|
+
|
|
19843
|
+
/**
|
|
19844
|
+
* ContentfulActivityGroupUpdated updatedAt.
|
|
19845
|
+
* @member {number|Long} updatedAt
|
|
19846
|
+
* @memberof ContentfulActivityGroupUpdated
|
|
19847
|
+
* @instance
|
|
19848
|
+
*/
|
|
19849
|
+
ContentfulActivityGroupUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
19850
|
+
|
|
19851
|
+
/**
|
|
19852
|
+
* Creates a new ContentfulActivityGroupUpdated instance using the specified properties.
|
|
19853
|
+
* @function create
|
|
19854
|
+
* @memberof ContentfulActivityGroupUpdated
|
|
19855
|
+
* @static
|
|
19856
|
+
* @param {IContentfulActivityGroupUpdated=} [properties] Properties to set
|
|
19857
|
+
* @returns {ContentfulActivityGroupUpdated} ContentfulActivityGroupUpdated instance
|
|
19858
|
+
*/
|
|
19859
|
+
ContentfulActivityGroupUpdated.create = function create(properties) {
|
|
19860
|
+
return new ContentfulActivityGroupUpdated(properties);
|
|
19861
|
+
};
|
|
19862
|
+
|
|
19863
|
+
/**
|
|
19864
|
+
* Encodes the specified ContentfulActivityGroupUpdated message. Does not implicitly {@link ContentfulActivityGroupUpdated.verify|verify} messages.
|
|
19865
|
+
* @function encode
|
|
19866
|
+
* @memberof ContentfulActivityGroupUpdated
|
|
19867
|
+
* @static
|
|
19868
|
+
* @param {IContentfulActivityGroupUpdated} message ContentfulActivityGroupUpdated message or plain object to encode
|
|
19869
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
19870
|
+
* @returns {$protobuf.Writer} Writer
|
|
19871
|
+
*/
|
|
19872
|
+
ContentfulActivityGroupUpdated.encode = function encode(message, writer) {
|
|
19873
|
+
if (!writer)
|
|
19874
|
+
writer = $Writer.create();
|
|
19875
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
19876
|
+
for (var keys = Object.keys(message.name), i = 0; i < keys.length; ++i)
|
|
19877
|
+
writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.name[keys[i]]).ldelim();
|
|
19878
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
19879
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.slug);
|
|
19880
|
+
if (message.teaser != null && message.hasOwnProperty("teaser"))
|
|
19881
|
+
for (var keys = Object.keys(message.teaser), i = 0; i < keys.length; ++i)
|
|
19882
|
+
writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.teaser[keys[i]]).ldelim();
|
|
19883
|
+
if (message.description != null && message.hasOwnProperty("description"))
|
|
19884
|
+
for (var keys = Object.keys(message.description), i = 0; i < keys.length; ++i)
|
|
19885
|
+
writer.uint32(/* id 4, wireType 2 =*/34).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.description[keys[i]]).ldelim();
|
|
19886
|
+
if (message.enabled != null && message.hasOwnProperty("enabled"))
|
|
19887
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.enabled);
|
|
19888
|
+
if (message.bannerMedia != null && message.hasOwnProperty("bannerMedia"))
|
|
19889
|
+
for (var keys = Object.keys(message.bannerMedia), i = 0; i < keys.length; ++i) {
|
|
19890
|
+
writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
19891
|
+
$root.contentful.IdReference.encode(message.bannerMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
19892
|
+
}
|
|
19893
|
+
if (message.patternMedia != null && message.hasOwnProperty("patternMedia"))
|
|
19894
|
+
for (var keys = Object.keys(message.patternMedia), i = 0; i < keys.length; ++i) {
|
|
19895
|
+
writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
19896
|
+
$root.contentful.IdReference.encode(message.patternMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
19897
|
+
}
|
|
19898
|
+
if (message.colorTheme != null && message.hasOwnProperty("colorTheme"))
|
|
19899
|
+
writer.uint32(/* id 8, wireType 2 =*/66).string(message.colorTheme);
|
|
19900
|
+
if (message.primaryColor != null && message.hasOwnProperty("primaryColor"))
|
|
19901
|
+
writer.uint32(/* id 9, wireType 2 =*/74).string(message.primaryColor);
|
|
19902
|
+
if (message.secondaryColor != null && message.hasOwnProperty("secondaryColor"))
|
|
19903
|
+
writer.uint32(/* id 10, wireType 2 =*/82).string(message.secondaryColor);
|
|
19904
|
+
if (message.tertiaryColor != null && message.hasOwnProperty("tertiaryColor"))
|
|
19905
|
+
writer.uint32(/* id 11, wireType 2 =*/90).string(message.tertiaryColor);
|
|
19906
|
+
if (message.activities != null && message.activities.length)
|
|
19907
|
+
for (var i = 0; i < message.activities.length; ++i)
|
|
19908
|
+
$root.contentful.SlugReference.encode(message.activities[i], writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
|
|
19909
|
+
if (message.featuredLabelColor != null && message.hasOwnProperty("featuredLabelColor"))
|
|
19910
|
+
writer.uint32(/* id 13, wireType 2 =*/106).string(message.featuredLabelColor);
|
|
19911
|
+
if (message.contentInfoScreenTheme != null && message.hasOwnProperty("contentInfoScreenTheme"))
|
|
19912
|
+
writer.uint32(/* id 14, wireType 2 =*/114).string(message.contentInfoScreenTheme);
|
|
19913
|
+
if (message.contentType != null && message.hasOwnProperty("contentType"))
|
|
19914
|
+
writer.uint32(/* id 15, wireType 2 =*/122).string(message.contentType);
|
|
19915
|
+
if (message.contentTypeDisplayValue != null && message.hasOwnProperty("contentTypeDisplayValue"))
|
|
19916
|
+
writer.uint32(/* id 16, wireType 2 =*/130).string(message.contentTypeDisplayValue);
|
|
19917
|
+
if (message.techniques != null && message.techniques.length)
|
|
19918
|
+
for (var i = 0; i < message.techniques.length; ++i)
|
|
19919
|
+
$root.contentful.SlugReference.encode(message.techniques[i], writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim();
|
|
19920
|
+
if (message.related != null && message.related.length)
|
|
19921
|
+
for (var i = 0; i < message.related.length; ++i)
|
|
19922
|
+
$root.contentful.SlugReference.encode(message.related[i], writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim();
|
|
19923
|
+
if (message.accessGroup != null && message.accessGroup.length)
|
|
19924
|
+
for (var i = 0; i < message.accessGroup.length; ++i)
|
|
19925
|
+
$root.contentful.SlugReference.encode(message.accessGroup[i], writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim();
|
|
19926
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
19927
|
+
writer.uint32(/* id 20, wireType 0 =*/160).uint64(message.updatedAt);
|
|
19928
|
+
return writer;
|
|
19929
|
+
};
|
|
19930
|
+
|
|
19931
|
+
/**
|
|
19932
|
+
* Encodes the specified ContentfulActivityGroupUpdated message, length delimited. Does not implicitly {@link ContentfulActivityGroupUpdated.verify|verify} messages.
|
|
19933
|
+
* @function encodeDelimited
|
|
19934
|
+
* @memberof ContentfulActivityGroupUpdated
|
|
19935
|
+
* @static
|
|
19936
|
+
* @param {IContentfulActivityGroupUpdated} message ContentfulActivityGroupUpdated message or plain object to encode
|
|
19937
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
19938
|
+
* @returns {$protobuf.Writer} Writer
|
|
19939
|
+
*/
|
|
19940
|
+
ContentfulActivityGroupUpdated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
19941
|
+
return this.encode(message, writer).ldelim();
|
|
19942
|
+
};
|
|
19943
|
+
|
|
19944
|
+
/**
|
|
19945
|
+
* Decodes a ContentfulActivityGroupUpdated message from the specified reader or buffer.
|
|
19946
|
+
* @function decode
|
|
19947
|
+
* @memberof ContentfulActivityGroupUpdated
|
|
19948
|
+
* @static
|
|
19949
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
19950
|
+
* @param {number} [length] Message length if known beforehand
|
|
19951
|
+
* @returns {ContentfulActivityGroupUpdated} ContentfulActivityGroupUpdated
|
|
19952
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
19953
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
19954
|
+
*/
|
|
19955
|
+
ContentfulActivityGroupUpdated.decode = function decode(reader, length) {
|
|
19956
|
+
if (!(reader instanceof $Reader))
|
|
19957
|
+
reader = $Reader.create(reader);
|
|
19958
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulActivityGroupUpdated(), key;
|
|
19959
|
+
while (reader.pos < end) {
|
|
19960
|
+
var tag = reader.uint32();
|
|
19961
|
+
switch (tag >>> 3) {
|
|
19962
|
+
case 1:
|
|
19963
|
+
reader.skip().pos++;
|
|
19964
|
+
if (message.name === $util.emptyObject)
|
|
19965
|
+
message.name = {};
|
|
19966
|
+
key = reader.string();
|
|
19967
|
+
reader.pos++;
|
|
19968
|
+
message.name[key] = reader.string();
|
|
19969
|
+
break;
|
|
19970
|
+
case 2:
|
|
19971
|
+
message.slug = reader.string();
|
|
19972
|
+
break;
|
|
19973
|
+
case 3:
|
|
19974
|
+
reader.skip().pos++;
|
|
19975
|
+
if (message.teaser === $util.emptyObject)
|
|
19976
|
+
message.teaser = {};
|
|
19977
|
+
key = reader.string();
|
|
19978
|
+
reader.pos++;
|
|
19979
|
+
message.teaser[key] = reader.string();
|
|
19980
|
+
break;
|
|
19981
|
+
case 4:
|
|
19982
|
+
reader.skip().pos++;
|
|
19983
|
+
if (message.description === $util.emptyObject)
|
|
19984
|
+
message.description = {};
|
|
19985
|
+
key = reader.string();
|
|
19986
|
+
reader.pos++;
|
|
19987
|
+
message.description[key] = reader.string();
|
|
19988
|
+
break;
|
|
19989
|
+
case 5:
|
|
19990
|
+
message.enabled = reader.string();
|
|
19991
|
+
break;
|
|
19992
|
+
case 6:
|
|
19993
|
+
reader.skip().pos++;
|
|
19994
|
+
if (message.bannerMedia === $util.emptyObject)
|
|
19995
|
+
message.bannerMedia = {};
|
|
19996
|
+
key = reader.string();
|
|
19997
|
+
reader.pos++;
|
|
19998
|
+
message.bannerMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
|
|
19999
|
+
break;
|
|
20000
|
+
case 7:
|
|
20001
|
+
reader.skip().pos++;
|
|
20002
|
+
if (message.patternMedia === $util.emptyObject)
|
|
20003
|
+
message.patternMedia = {};
|
|
20004
|
+
key = reader.string();
|
|
20005
|
+
reader.pos++;
|
|
20006
|
+
message.patternMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
|
|
20007
|
+
break;
|
|
20008
|
+
case 8:
|
|
20009
|
+
message.colorTheme = reader.string();
|
|
20010
|
+
break;
|
|
20011
|
+
case 9:
|
|
20012
|
+
message.primaryColor = reader.string();
|
|
20013
|
+
break;
|
|
20014
|
+
case 10:
|
|
20015
|
+
message.secondaryColor = reader.string();
|
|
20016
|
+
break;
|
|
20017
|
+
case 11:
|
|
20018
|
+
message.tertiaryColor = reader.string();
|
|
20019
|
+
break;
|
|
20020
|
+
case 12:
|
|
20021
|
+
if (!(message.activities && message.activities.length))
|
|
20022
|
+
message.activities = [];
|
|
20023
|
+
message.activities.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
20024
|
+
break;
|
|
20025
|
+
case 13:
|
|
20026
|
+
message.featuredLabelColor = reader.string();
|
|
20027
|
+
break;
|
|
20028
|
+
case 14:
|
|
20029
|
+
message.contentInfoScreenTheme = reader.string();
|
|
20030
|
+
break;
|
|
20031
|
+
case 15:
|
|
20032
|
+
message.contentType = reader.string();
|
|
20033
|
+
break;
|
|
20034
|
+
case 16:
|
|
20035
|
+
message.contentTypeDisplayValue = reader.string();
|
|
20036
|
+
break;
|
|
20037
|
+
case 17:
|
|
20038
|
+
if (!(message.techniques && message.techniques.length))
|
|
20039
|
+
message.techniques = [];
|
|
20040
|
+
message.techniques.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
20041
|
+
break;
|
|
20042
|
+
case 18:
|
|
20043
|
+
if (!(message.related && message.related.length))
|
|
20044
|
+
message.related = [];
|
|
20045
|
+
message.related.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
20046
|
+
break;
|
|
20047
|
+
case 19:
|
|
20048
|
+
if (!(message.accessGroup && message.accessGroup.length))
|
|
20049
|
+
message.accessGroup = [];
|
|
20050
|
+
message.accessGroup.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
20051
|
+
break;
|
|
20052
|
+
case 20:
|
|
20053
|
+
message.updatedAt = reader.uint64();
|
|
20054
|
+
break;
|
|
20055
|
+
default:
|
|
20056
|
+
reader.skipType(tag & 7);
|
|
20057
|
+
break;
|
|
20058
|
+
}
|
|
20059
|
+
}
|
|
20060
|
+
return message;
|
|
20061
|
+
};
|
|
20062
|
+
|
|
20063
|
+
/**
|
|
20064
|
+
* Decodes a ContentfulActivityGroupUpdated message from the specified reader or buffer, length delimited.
|
|
20065
|
+
* @function decodeDelimited
|
|
20066
|
+
* @memberof ContentfulActivityGroupUpdated
|
|
20067
|
+
* @static
|
|
20068
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
20069
|
+
* @returns {ContentfulActivityGroupUpdated} ContentfulActivityGroupUpdated
|
|
20070
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
20071
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
20072
|
+
*/
|
|
20073
|
+
ContentfulActivityGroupUpdated.decodeDelimited = function decodeDelimited(reader) {
|
|
20074
|
+
if (!(reader instanceof $Reader))
|
|
20075
|
+
reader = new $Reader(reader);
|
|
20076
|
+
return this.decode(reader, reader.uint32());
|
|
20077
|
+
};
|
|
20078
|
+
|
|
20079
|
+
/**
|
|
20080
|
+
* Verifies a ContentfulActivityGroupUpdated message.
|
|
20081
|
+
* @function verify
|
|
20082
|
+
* @memberof ContentfulActivityGroupUpdated
|
|
20083
|
+
* @static
|
|
20084
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
20085
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
20086
|
+
*/
|
|
20087
|
+
ContentfulActivityGroupUpdated.verify = function verify(message) {
|
|
20088
|
+
if (typeof message !== "object" || message === null)
|
|
20089
|
+
return "object expected";
|
|
20090
|
+
if (message.name != null && message.hasOwnProperty("name")) {
|
|
20091
|
+
if (!$util.isObject(message.name))
|
|
20092
|
+
return "name: object expected";
|
|
20093
|
+
var key = Object.keys(message.name);
|
|
20094
|
+
for (var i = 0; i < key.length; ++i)
|
|
20095
|
+
if (!$util.isString(message.name[key[i]]))
|
|
20096
|
+
return "name: string{k:string} expected";
|
|
20097
|
+
}
|
|
20098
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
20099
|
+
if (!$util.isString(message.slug))
|
|
20100
|
+
return "slug: string expected";
|
|
20101
|
+
if (message.teaser != null && message.hasOwnProperty("teaser")) {
|
|
20102
|
+
if (!$util.isObject(message.teaser))
|
|
20103
|
+
return "teaser: object expected";
|
|
20104
|
+
var key = Object.keys(message.teaser);
|
|
20105
|
+
for (var i = 0; i < key.length; ++i)
|
|
20106
|
+
if (!$util.isString(message.teaser[key[i]]))
|
|
20107
|
+
return "teaser: string{k:string} expected";
|
|
20108
|
+
}
|
|
20109
|
+
if (message.description != null && message.hasOwnProperty("description")) {
|
|
20110
|
+
if (!$util.isObject(message.description))
|
|
20111
|
+
return "description: object expected";
|
|
20112
|
+
var key = Object.keys(message.description);
|
|
20113
|
+
for (var i = 0; i < key.length; ++i)
|
|
20114
|
+
if (!$util.isString(message.description[key[i]]))
|
|
20115
|
+
return "description: string{k:string} expected";
|
|
20116
|
+
}
|
|
20117
|
+
if (message.enabled != null && message.hasOwnProperty("enabled"))
|
|
20118
|
+
if (!$util.isString(message.enabled))
|
|
20119
|
+
return "enabled: string expected";
|
|
20120
|
+
if (message.bannerMedia != null && message.hasOwnProperty("bannerMedia")) {
|
|
20121
|
+
if (!$util.isObject(message.bannerMedia))
|
|
20122
|
+
return "bannerMedia: object expected";
|
|
20123
|
+
var key = Object.keys(message.bannerMedia);
|
|
20124
|
+
for (var i = 0; i < key.length; ++i) {
|
|
20125
|
+
var error = $root.contentful.IdReference.verify(message.bannerMedia[key[i]]);
|
|
20126
|
+
if (error)
|
|
20127
|
+
return "bannerMedia." + error;
|
|
20128
|
+
}
|
|
20129
|
+
}
|
|
20130
|
+
if (message.patternMedia != null && message.hasOwnProperty("patternMedia")) {
|
|
20131
|
+
if (!$util.isObject(message.patternMedia))
|
|
20132
|
+
return "patternMedia: object expected";
|
|
20133
|
+
var key = Object.keys(message.patternMedia);
|
|
20134
|
+
for (var i = 0; i < key.length; ++i) {
|
|
20135
|
+
var error = $root.contentful.IdReference.verify(message.patternMedia[key[i]]);
|
|
20136
|
+
if (error)
|
|
20137
|
+
return "patternMedia." + error;
|
|
20138
|
+
}
|
|
20139
|
+
}
|
|
20140
|
+
if (message.colorTheme != null && message.hasOwnProperty("colorTheme"))
|
|
20141
|
+
if (!$util.isString(message.colorTheme))
|
|
20142
|
+
return "colorTheme: string expected";
|
|
20143
|
+
if (message.primaryColor != null && message.hasOwnProperty("primaryColor"))
|
|
20144
|
+
if (!$util.isString(message.primaryColor))
|
|
20145
|
+
return "primaryColor: string expected";
|
|
20146
|
+
if (message.secondaryColor != null && message.hasOwnProperty("secondaryColor"))
|
|
20147
|
+
if (!$util.isString(message.secondaryColor))
|
|
20148
|
+
return "secondaryColor: string expected";
|
|
20149
|
+
if (message.tertiaryColor != null && message.hasOwnProperty("tertiaryColor"))
|
|
20150
|
+
if (!$util.isString(message.tertiaryColor))
|
|
20151
|
+
return "tertiaryColor: string expected";
|
|
20152
|
+
if (message.activities != null && message.hasOwnProperty("activities")) {
|
|
20153
|
+
if (!Array.isArray(message.activities))
|
|
20154
|
+
return "activities: array expected";
|
|
20155
|
+
for (var i = 0; i < message.activities.length; ++i) {
|
|
20156
|
+
var error = $root.contentful.SlugReference.verify(message.activities[i]);
|
|
20157
|
+
if (error)
|
|
20158
|
+
return "activities." + error;
|
|
20159
|
+
}
|
|
20160
|
+
}
|
|
20161
|
+
if (message.featuredLabelColor != null && message.hasOwnProperty("featuredLabelColor"))
|
|
20162
|
+
if (!$util.isString(message.featuredLabelColor))
|
|
20163
|
+
return "featuredLabelColor: string expected";
|
|
20164
|
+
if (message.contentInfoScreenTheme != null && message.hasOwnProperty("contentInfoScreenTheme"))
|
|
20165
|
+
if (!$util.isString(message.contentInfoScreenTheme))
|
|
20166
|
+
return "contentInfoScreenTheme: string expected";
|
|
20167
|
+
if (message.contentType != null && message.hasOwnProperty("contentType"))
|
|
20168
|
+
if (!$util.isString(message.contentType))
|
|
20169
|
+
return "contentType: string expected";
|
|
20170
|
+
if (message.contentTypeDisplayValue != null && message.hasOwnProperty("contentTypeDisplayValue"))
|
|
20171
|
+
if (!$util.isString(message.contentTypeDisplayValue))
|
|
20172
|
+
return "contentTypeDisplayValue: string expected";
|
|
20173
|
+
if (message.techniques != null && message.hasOwnProperty("techniques")) {
|
|
20174
|
+
if (!Array.isArray(message.techniques))
|
|
20175
|
+
return "techniques: array expected";
|
|
20176
|
+
for (var i = 0; i < message.techniques.length; ++i) {
|
|
20177
|
+
var error = $root.contentful.SlugReference.verify(message.techniques[i]);
|
|
20178
|
+
if (error)
|
|
20179
|
+
return "techniques." + error;
|
|
20180
|
+
}
|
|
20181
|
+
}
|
|
20182
|
+
if (message.related != null && message.hasOwnProperty("related")) {
|
|
20183
|
+
if (!Array.isArray(message.related))
|
|
20184
|
+
return "related: array expected";
|
|
20185
|
+
for (var i = 0; i < message.related.length; ++i) {
|
|
20186
|
+
var error = $root.contentful.SlugReference.verify(message.related[i]);
|
|
20187
|
+
if (error)
|
|
20188
|
+
return "related." + error;
|
|
20189
|
+
}
|
|
20190
|
+
}
|
|
20191
|
+
if (message.accessGroup != null && message.hasOwnProperty("accessGroup")) {
|
|
20192
|
+
if (!Array.isArray(message.accessGroup))
|
|
20193
|
+
return "accessGroup: array expected";
|
|
20194
|
+
for (var i = 0; i < message.accessGroup.length; ++i) {
|
|
20195
|
+
var error = $root.contentful.SlugReference.verify(message.accessGroup[i]);
|
|
20196
|
+
if (error)
|
|
20197
|
+
return "accessGroup." + error;
|
|
20198
|
+
}
|
|
20199
|
+
}
|
|
20200
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
20201
|
+
if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
|
|
20202
|
+
return "updatedAt: integer|Long expected";
|
|
20203
|
+
return null;
|
|
20204
|
+
};
|
|
20205
|
+
|
|
20206
|
+
/**
|
|
20207
|
+
* Creates a ContentfulActivityGroupUpdated message from a plain object. Also converts values to their respective internal types.
|
|
20208
|
+
* @function fromObject
|
|
20209
|
+
* @memberof ContentfulActivityGroupUpdated
|
|
20210
|
+
* @static
|
|
20211
|
+
* @param {Object.<string,*>} object Plain object
|
|
20212
|
+
* @returns {ContentfulActivityGroupUpdated} ContentfulActivityGroupUpdated
|
|
20213
|
+
*/
|
|
20214
|
+
ContentfulActivityGroupUpdated.fromObject = function fromObject(object) {
|
|
20215
|
+
if (object instanceof $root.ContentfulActivityGroupUpdated)
|
|
20216
|
+
return object;
|
|
20217
|
+
var message = new $root.ContentfulActivityGroupUpdated();
|
|
20218
|
+
if (object.name) {
|
|
20219
|
+
if (typeof object.name !== "object")
|
|
20220
|
+
throw TypeError(".ContentfulActivityGroupUpdated.name: object expected");
|
|
20221
|
+
message.name = {};
|
|
20222
|
+
for (var keys = Object.keys(object.name), i = 0; i < keys.length; ++i)
|
|
20223
|
+
message.name[keys[i]] = String(object.name[keys[i]]);
|
|
20224
|
+
}
|
|
20225
|
+
if (object.slug != null)
|
|
20226
|
+
message.slug = String(object.slug);
|
|
20227
|
+
if (object.teaser) {
|
|
20228
|
+
if (typeof object.teaser !== "object")
|
|
20229
|
+
throw TypeError(".ContentfulActivityGroupUpdated.teaser: object expected");
|
|
20230
|
+
message.teaser = {};
|
|
20231
|
+
for (var keys = Object.keys(object.teaser), i = 0; i < keys.length; ++i)
|
|
20232
|
+
message.teaser[keys[i]] = String(object.teaser[keys[i]]);
|
|
20233
|
+
}
|
|
20234
|
+
if (object.description) {
|
|
20235
|
+
if (typeof object.description !== "object")
|
|
20236
|
+
throw TypeError(".ContentfulActivityGroupUpdated.description: object expected");
|
|
20237
|
+
message.description = {};
|
|
20238
|
+
for (var keys = Object.keys(object.description), i = 0; i < keys.length; ++i)
|
|
20239
|
+
message.description[keys[i]] = String(object.description[keys[i]]);
|
|
20240
|
+
}
|
|
20241
|
+
if (object.enabled != null)
|
|
20242
|
+
message.enabled = String(object.enabled);
|
|
20243
|
+
if (object.bannerMedia) {
|
|
20244
|
+
if (typeof object.bannerMedia !== "object")
|
|
20245
|
+
throw TypeError(".ContentfulActivityGroupUpdated.bannerMedia: object expected");
|
|
20246
|
+
message.bannerMedia = {};
|
|
20247
|
+
for (var keys = Object.keys(object.bannerMedia), i = 0; i < keys.length; ++i) {
|
|
20248
|
+
if (typeof object.bannerMedia[keys[i]] !== "object")
|
|
20249
|
+
throw TypeError(".ContentfulActivityGroupUpdated.bannerMedia: object expected");
|
|
20250
|
+
message.bannerMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.bannerMedia[keys[i]]);
|
|
20251
|
+
}
|
|
20252
|
+
}
|
|
20253
|
+
if (object.patternMedia) {
|
|
20254
|
+
if (typeof object.patternMedia !== "object")
|
|
20255
|
+
throw TypeError(".ContentfulActivityGroupUpdated.patternMedia: object expected");
|
|
20256
|
+
message.patternMedia = {};
|
|
20257
|
+
for (var keys = Object.keys(object.patternMedia), i = 0; i < keys.length; ++i) {
|
|
20258
|
+
if (typeof object.patternMedia[keys[i]] !== "object")
|
|
20259
|
+
throw TypeError(".ContentfulActivityGroupUpdated.patternMedia: object expected");
|
|
20260
|
+
message.patternMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.patternMedia[keys[i]]);
|
|
20261
|
+
}
|
|
20262
|
+
}
|
|
20263
|
+
if (object.colorTheme != null)
|
|
20264
|
+
message.colorTheme = String(object.colorTheme);
|
|
20265
|
+
if (object.primaryColor != null)
|
|
20266
|
+
message.primaryColor = String(object.primaryColor);
|
|
20267
|
+
if (object.secondaryColor != null)
|
|
20268
|
+
message.secondaryColor = String(object.secondaryColor);
|
|
20269
|
+
if (object.tertiaryColor != null)
|
|
20270
|
+
message.tertiaryColor = String(object.tertiaryColor);
|
|
20271
|
+
if (object.activities) {
|
|
20272
|
+
if (!Array.isArray(object.activities))
|
|
20273
|
+
throw TypeError(".ContentfulActivityGroupUpdated.activities: array expected");
|
|
20274
|
+
message.activities = [];
|
|
20275
|
+
for (var i = 0; i < object.activities.length; ++i) {
|
|
20276
|
+
if (typeof object.activities[i] !== "object")
|
|
20277
|
+
throw TypeError(".ContentfulActivityGroupUpdated.activities: object expected");
|
|
20278
|
+
message.activities[i] = $root.contentful.SlugReference.fromObject(object.activities[i]);
|
|
20279
|
+
}
|
|
20280
|
+
}
|
|
20281
|
+
if (object.featuredLabelColor != null)
|
|
20282
|
+
message.featuredLabelColor = String(object.featuredLabelColor);
|
|
20283
|
+
if (object.contentInfoScreenTheme != null)
|
|
20284
|
+
message.contentInfoScreenTheme = String(object.contentInfoScreenTheme);
|
|
20285
|
+
if (object.contentType != null)
|
|
20286
|
+
message.contentType = String(object.contentType);
|
|
20287
|
+
if (object.contentTypeDisplayValue != null)
|
|
20288
|
+
message.contentTypeDisplayValue = String(object.contentTypeDisplayValue);
|
|
20289
|
+
if (object.techniques) {
|
|
20290
|
+
if (!Array.isArray(object.techniques))
|
|
20291
|
+
throw TypeError(".ContentfulActivityGroupUpdated.techniques: array expected");
|
|
20292
|
+
message.techniques = [];
|
|
20293
|
+
for (var i = 0; i < object.techniques.length; ++i) {
|
|
20294
|
+
if (typeof object.techniques[i] !== "object")
|
|
20295
|
+
throw TypeError(".ContentfulActivityGroupUpdated.techniques: object expected");
|
|
20296
|
+
message.techniques[i] = $root.contentful.SlugReference.fromObject(object.techniques[i]);
|
|
20297
|
+
}
|
|
20298
|
+
}
|
|
20299
|
+
if (object.related) {
|
|
20300
|
+
if (!Array.isArray(object.related))
|
|
20301
|
+
throw TypeError(".ContentfulActivityGroupUpdated.related: array expected");
|
|
20302
|
+
message.related = [];
|
|
20303
|
+
for (var i = 0; i < object.related.length; ++i) {
|
|
20304
|
+
if (typeof object.related[i] !== "object")
|
|
20305
|
+
throw TypeError(".ContentfulActivityGroupUpdated.related: object expected");
|
|
20306
|
+
message.related[i] = $root.contentful.SlugReference.fromObject(object.related[i]);
|
|
20307
|
+
}
|
|
20308
|
+
}
|
|
20309
|
+
if (object.accessGroup) {
|
|
20310
|
+
if (!Array.isArray(object.accessGroup))
|
|
20311
|
+
throw TypeError(".ContentfulActivityGroupUpdated.accessGroup: array expected");
|
|
20312
|
+
message.accessGroup = [];
|
|
20313
|
+
for (var i = 0; i < object.accessGroup.length; ++i) {
|
|
20314
|
+
if (typeof object.accessGroup[i] !== "object")
|
|
20315
|
+
throw TypeError(".ContentfulActivityGroupUpdated.accessGroup: object expected");
|
|
20316
|
+
message.accessGroup[i] = $root.contentful.SlugReference.fromObject(object.accessGroup[i]);
|
|
20317
|
+
}
|
|
20318
|
+
}
|
|
20319
|
+
if (object.updatedAt != null)
|
|
20320
|
+
if ($util.Long)
|
|
20321
|
+
(message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
|
|
20322
|
+
else if (typeof object.updatedAt === "string")
|
|
20323
|
+
message.updatedAt = parseInt(object.updatedAt, 10);
|
|
20324
|
+
else if (typeof object.updatedAt === "number")
|
|
20325
|
+
message.updatedAt = object.updatedAt;
|
|
20326
|
+
else if (typeof object.updatedAt === "object")
|
|
20327
|
+
message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
|
|
20328
|
+
return message;
|
|
20329
|
+
};
|
|
20330
|
+
|
|
20331
|
+
/**
|
|
20332
|
+
* Creates a plain object from a ContentfulActivityGroupUpdated message. Also converts values to other types if specified.
|
|
20333
|
+
* @function toObject
|
|
20334
|
+
* @memberof ContentfulActivityGroupUpdated
|
|
20335
|
+
* @static
|
|
20336
|
+
* @param {ContentfulActivityGroupUpdated} message ContentfulActivityGroupUpdated
|
|
20337
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
20338
|
+
* @returns {Object.<string,*>} Plain object
|
|
20339
|
+
*/
|
|
20340
|
+
ContentfulActivityGroupUpdated.toObject = function toObject(message, options) {
|
|
20341
|
+
if (!options)
|
|
20342
|
+
options = {};
|
|
20343
|
+
var object = {};
|
|
20344
|
+
if (options.arrays || options.defaults) {
|
|
20345
|
+
object.activities = [];
|
|
20346
|
+
object.techniques = [];
|
|
20347
|
+
object.related = [];
|
|
20348
|
+
object.accessGroup = [];
|
|
20349
|
+
}
|
|
20350
|
+
if (options.objects || options.defaults) {
|
|
20351
|
+
object.name = {};
|
|
20352
|
+
object.teaser = {};
|
|
20353
|
+
object.description = {};
|
|
20354
|
+
object.bannerMedia = {};
|
|
20355
|
+
object.patternMedia = {};
|
|
20356
|
+
}
|
|
20357
|
+
if (options.defaults) {
|
|
20358
|
+
object.slug = "";
|
|
20359
|
+
object.enabled = "";
|
|
20360
|
+
object.colorTheme = "";
|
|
20361
|
+
object.primaryColor = "";
|
|
20362
|
+
object.secondaryColor = "";
|
|
20363
|
+
object.tertiaryColor = "";
|
|
20364
|
+
object.featuredLabelColor = "";
|
|
20365
|
+
object.contentInfoScreenTheme = "";
|
|
20366
|
+
object.contentType = "";
|
|
20367
|
+
object.contentTypeDisplayValue = "";
|
|
20368
|
+
if ($util.Long) {
|
|
20369
|
+
var long = new $util.Long(0, 0, true);
|
|
20370
|
+
object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
20371
|
+
} else
|
|
20372
|
+
object.updatedAt = options.longs === String ? "0" : 0;
|
|
20373
|
+
}
|
|
20374
|
+
var keys2;
|
|
20375
|
+
if (message.name && (keys2 = Object.keys(message.name)).length) {
|
|
20376
|
+
object.name = {};
|
|
20377
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
20378
|
+
object.name[keys2[j]] = message.name[keys2[j]];
|
|
20379
|
+
}
|
|
20380
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
20381
|
+
object.slug = message.slug;
|
|
20382
|
+
if (message.teaser && (keys2 = Object.keys(message.teaser)).length) {
|
|
20383
|
+
object.teaser = {};
|
|
20384
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
20385
|
+
object.teaser[keys2[j]] = message.teaser[keys2[j]];
|
|
20386
|
+
}
|
|
20387
|
+
if (message.description && (keys2 = Object.keys(message.description)).length) {
|
|
20388
|
+
object.description = {};
|
|
20389
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
20390
|
+
object.description[keys2[j]] = message.description[keys2[j]];
|
|
20391
|
+
}
|
|
20392
|
+
if (message.enabled != null && message.hasOwnProperty("enabled"))
|
|
20393
|
+
object.enabled = message.enabled;
|
|
20394
|
+
if (message.bannerMedia && (keys2 = Object.keys(message.bannerMedia)).length) {
|
|
20395
|
+
object.bannerMedia = {};
|
|
20396
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
20397
|
+
object.bannerMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.bannerMedia[keys2[j]], options);
|
|
20398
|
+
}
|
|
20399
|
+
if (message.patternMedia && (keys2 = Object.keys(message.patternMedia)).length) {
|
|
20400
|
+
object.patternMedia = {};
|
|
20401
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
20402
|
+
object.patternMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.patternMedia[keys2[j]], options);
|
|
20403
|
+
}
|
|
20404
|
+
if (message.colorTheme != null && message.hasOwnProperty("colorTheme"))
|
|
20405
|
+
object.colorTheme = message.colorTheme;
|
|
20406
|
+
if (message.primaryColor != null && message.hasOwnProperty("primaryColor"))
|
|
20407
|
+
object.primaryColor = message.primaryColor;
|
|
20408
|
+
if (message.secondaryColor != null && message.hasOwnProperty("secondaryColor"))
|
|
20409
|
+
object.secondaryColor = message.secondaryColor;
|
|
20410
|
+
if (message.tertiaryColor != null && message.hasOwnProperty("tertiaryColor"))
|
|
20411
|
+
object.tertiaryColor = message.tertiaryColor;
|
|
20412
|
+
if (message.activities && message.activities.length) {
|
|
20413
|
+
object.activities = [];
|
|
20414
|
+
for (var j = 0; j < message.activities.length; ++j)
|
|
20415
|
+
object.activities[j] = $root.contentful.SlugReference.toObject(message.activities[j], options);
|
|
20416
|
+
}
|
|
20417
|
+
if (message.featuredLabelColor != null && message.hasOwnProperty("featuredLabelColor"))
|
|
20418
|
+
object.featuredLabelColor = message.featuredLabelColor;
|
|
20419
|
+
if (message.contentInfoScreenTheme != null && message.hasOwnProperty("contentInfoScreenTheme"))
|
|
20420
|
+
object.contentInfoScreenTheme = message.contentInfoScreenTheme;
|
|
20421
|
+
if (message.contentType != null && message.hasOwnProperty("contentType"))
|
|
20422
|
+
object.contentType = message.contentType;
|
|
20423
|
+
if (message.contentTypeDisplayValue != null && message.hasOwnProperty("contentTypeDisplayValue"))
|
|
20424
|
+
object.contentTypeDisplayValue = message.contentTypeDisplayValue;
|
|
20425
|
+
if (message.techniques && message.techniques.length) {
|
|
20426
|
+
object.techniques = [];
|
|
20427
|
+
for (var j = 0; j < message.techniques.length; ++j)
|
|
20428
|
+
object.techniques[j] = $root.contentful.SlugReference.toObject(message.techniques[j], options);
|
|
20429
|
+
}
|
|
20430
|
+
if (message.related && message.related.length) {
|
|
20431
|
+
object.related = [];
|
|
20432
|
+
for (var j = 0; j < message.related.length; ++j)
|
|
20433
|
+
object.related[j] = $root.contentful.SlugReference.toObject(message.related[j], options);
|
|
20434
|
+
}
|
|
20435
|
+
if (message.accessGroup && message.accessGroup.length) {
|
|
20436
|
+
object.accessGroup = [];
|
|
20437
|
+
for (var j = 0; j < message.accessGroup.length; ++j)
|
|
20438
|
+
object.accessGroup[j] = $root.contentful.SlugReference.toObject(message.accessGroup[j], options);
|
|
20439
|
+
}
|
|
20440
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
20441
|
+
if (typeof message.updatedAt === "number")
|
|
20442
|
+
object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
|
|
20443
|
+
else
|
|
20444
|
+
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;
|
|
20445
|
+
return object;
|
|
20446
|
+
};
|
|
20447
|
+
|
|
20448
|
+
/**
|
|
20449
|
+
* Converts this ContentfulActivityGroupUpdated to JSON.
|
|
20450
|
+
* @function toJSON
|
|
20451
|
+
* @memberof ContentfulActivityGroupUpdated
|
|
20452
|
+
* @instance
|
|
20453
|
+
* @returns {Object.<string,*>} JSON object
|
|
20454
|
+
*/
|
|
20455
|
+
ContentfulActivityGroupUpdated.prototype.toJSON = function toJSON() {
|
|
20456
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
20457
|
+
};
|
|
20458
|
+
|
|
20459
|
+
return ContentfulActivityGroupUpdated;
|
|
20460
|
+
})();
|
|
20461
|
+
|
|
20462
|
+
$root.ContentfulActivityGroupDeleted = (function() {
|
|
20463
|
+
|
|
20464
|
+
/**
|
|
20465
|
+
* Properties of a ContentfulActivityGroupDeleted.
|
|
20466
|
+
* @exports IContentfulActivityGroupDeleted
|
|
20467
|
+
* @interface IContentfulActivityGroupDeleted
|
|
20468
|
+
* @property {string|null} [slug] ContentfulActivityGroupDeleted slug
|
|
20469
|
+
* @property {number|Long|null} [deletedAt] ContentfulActivityGroupDeleted deletedAt
|
|
20470
|
+
*/
|
|
20471
|
+
|
|
20472
|
+
/**
|
|
20473
|
+
* Constructs a new ContentfulActivityGroupDeleted.
|
|
20474
|
+
* @exports ContentfulActivityGroupDeleted
|
|
20475
|
+
* @classdesc Represents a ContentfulActivityGroupDeleted.
|
|
20476
|
+
* @implements IContentfulActivityGroupDeleted
|
|
20477
|
+
* @constructor
|
|
20478
|
+
* @param {IContentfulActivityGroupDeleted=} [properties] Properties to set
|
|
20479
|
+
*/
|
|
20480
|
+
function ContentfulActivityGroupDeleted(properties) {
|
|
20481
|
+
if (properties)
|
|
20482
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
20483
|
+
if (properties[keys[i]] != null)
|
|
20484
|
+
this[keys[i]] = properties[keys[i]];
|
|
20485
|
+
}
|
|
20486
|
+
|
|
20487
|
+
/**
|
|
20488
|
+
* ContentfulActivityGroupDeleted slug.
|
|
20489
|
+
* @member {string} slug
|
|
20490
|
+
* @memberof ContentfulActivityGroupDeleted
|
|
20491
|
+
* @instance
|
|
20492
|
+
*/
|
|
20493
|
+
ContentfulActivityGroupDeleted.prototype.slug = "";
|
|
20494
|
+
|
|
20495
|
+
/**
|
|
20496
|
+
* ContentfulActivityGroupDeleted deletedAt.
|
|
20497
|
+
* @member {number|Long} deletedAt
|
|
20498
|
+
* @memberof ContentfulActivityGroupDeleted
|
|
20499
|
+
* @instance
|
|
20500
|
+
*/
|
|
20501
|
+
ContentfulActivityGroupDeleted.prototype.deletedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
20502
|
+
|
|
20503
|
+
/**
|
|
20504
|
+
* Creates a new ContentfulActivityGroupDeleted instance using the specified properties.
|
|
20505
|
+
* @function create
|
|
20506
|
+
* @memberof ContentfulActivityGroupDeleted
|
|
20507
|
+
* @static
|
|
20508
|
+
* @param {IContentfulActivityGroupDeleted=} [properties] Properties to set
|
|
20509
|
+
* @returns {ContentfulActivityGroupDeleted} ContentfulActivityGroupDeleted instance
|
|
20510
|
+
*/
|
|
20511
|
+
ContentfulActivityGroupDeleted.create = function create(properties) {
|
|
20512
|
+
return new ContentfulActivityGroupDeleted(properties);
|
|
20513
|
+
};
|
|
20514
|
+
|
|
20515
|
+
/**
|
|
20516
|
+
* Encodes the specified ContentfulActivityGroupDeleted message. Does not implicitly {@link ContentfulActivityGroupDeleted.verify|verify} messages.
|
|
20517
|
+
* @function encode
|
|
20518
|
+
* @memberof ContentfulActivityGroupDeleted
|
|
20519
|
+
* @static
|
|
20520
|
+
* @param {IContentfulActivityGroupDeleted} message ContentfulActivityGroupDeleted message or plain object to encode
|
|
20521
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
20522
|
+
* @returns {$protobuf.Writer} Writer
|
|
20523
|
+
*/
|
|
20524
|
+
ContentfulActivityGroupDeleted.encode = function encode(message, writer) {
|
|
20525
|
+
if (!writer)
|
|
20526
|
+
writer = $Writer.create();
|
|
20527
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
20528
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
20529
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
20530
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.deletedAt);
|
|
20531
|
+
return writer;
|
|
20532
|
+
};
|
|
20533
|
+
|
|
20534
|
+
/**
|
|
20535
|
+
* Encodes the specified ContentfulActivityGroupDeleted message, length delimited. Does not implicitly {@link ContentfulActivityGroupDeleted.verify|verify} messages.
|
|
20536
|
+
* @function encodeDelimited
|
|
20537
|
+
* @memberof ContentfulActivityGroupDeleted
|
|
20538
|
+
* @static
|
|
20539
|
+
* @param {IContentfulActivityGroupDeleted} message ContentfulActivityGroupDeleted message or plain object to encode
|
|
20540
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
20541
|
+
* @returns {$protobuf.Writer} Writer
|
|
20542
|
+
*/
|
|
20543
|
+
ContentfulActivityGroupDeleted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
20544
|
+
return this.encode(message, writer).ldelim();
|
|
20545
|
+
};
|
|
20546
|
+
|
|
20547
|
+
/**
|
|
20548
|
+
* Decodes a ContentfulActivityGroupDeleted message from the specified reader or buffer.
|
|
20549
|
+
* @function decode
|
|
20550
|
+
* @memberof ContentfulActivityGroupDeleted
|
|
20551
|
+
* @static
|
|
20552
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
20553
|
+
* @param {number} [length] Message length if known beforehand
|
|
20554
|
+
* @returns {ContentfulActivityGroupDeleted} ContentfulActivityGroupDeleted
|
|
20555
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
20556
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
20557
|
+
*/
|
|
20558
|
+
ContentfulActivityGroupDeleted.decode = function decode(reader, length) {
|
|
20559
|
+
if (!(reader instanceof $Reader))
|
|
20560
|
+
reader = $Reader.create(reader);
|
|
20561
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulActivityGroupDeleted();
|
|
20562
|
+
while (reader.pos < end) {
|
|
20563
|
+
var tag = reader.uint32();
|
|
20564
|
+
switch (tag >>> 3) {
|
|
20565
|
+
case 1:
|
|
20566
|
+
message.slug = reader.string();
|
|
20567
|
+
break;
|
|
20568
|
+
case 2:
|
|
20569
|
+
message.deletedAt = reader.uint64();
|
|
20570
|
+
break;
|
|
20571
|
+
default:
|
|
20572
|
+
reader.skipType(tag & 7);
|
|
20573
|
+
break;
|
|
20574
|
+
}
|
|
20575
|
+
}
|
|
20576
|
+
return message;
|
|
20577
|
+
};
|
|
20578
|
+
|
|
20579
|
+
/**
|
|
20580
|
+
* Decodes a ContentfulActivityGroupDeleted message from the specified reader or buffer, length delimited.
|
|
20581
|
+
* @function decodeDelimited
|
|
20582
|
+
* @memberof ContentfulActivityGroupDeleted
|
|
20583
|
+
* @static
|
|
20584
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
20585
|
+
* @returns {ContentfulActivityGroupDeleted} ContentfulActivityGroupDeleted
|
|
20586
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
20587
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
20588
|
+
*/
|
|
20589
|
+
ContentfulActivityGroupDeleted.decodeDelimited = function decodeDelimited(reader) {
|
|
20590
|
+
if (!(reader instanceof $Reader))
|
|
20591
|
+
reader = new $Reader(reader);
|
|
20592
|
+
return this.decode(reader, reader.uint32());
|
|
20593
|
+
};
|
|
20594
|
+
|
|
20595
|
+
/**
|
|
20596
|
+
* Verifies a ContentfulActivityGroupDeleted message.
|
|
20597
|
+
* @function verify
|
|
20598
|
+
* @memberof ContentfulActivityGroupDeleted
|
|
20599
|
+
* @static
|
|
20600
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
20601
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
20602
|
+
*/
|
|
20603
|
+
ContentfulActivityGroupDeleted.verify = function verify(message) {
|
|
20604
|
+
if (typeof message !== "object" || message === null)
|
|
20605
|
+
return "object expected";
|
|
20606
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
20607
|
+
if (!$util.isString(message.slug))
|
|
20608
|
+
return "slug: string expected";
|
|
20609
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
20610
|
+
if (!$util.isInteger(message.deletedAt) && !(message.deletedAt && $util.isInteger(message.deletedAt.low) && $util.isInteger(message.deletedAt.high)))
|
|
20611
|
+
return "deletedAt: integer|Long expected";
|
|
20612
|
+
return null;
|
|
20613
|
+
};
|
|
20614
|
+
|
|
20615
|
+
/**
|
|
20616
|
+
* Creates a ContentfulActivityGroupDeleted message from a plain object. Also converts values to their respective internal types.
|
|
20617
|
+
* @function fromObject
|
|
20618
|
+
* @memberof ContentfulActivityGroupDeleted
|
|
20619
|
+
* @static
|
|
20620
|
+
* @param {Object.<string,*>} object Plain object
|
|
20621
|
+
* @returns {ContentfulActivityGroupDeleted} ContentfulActivityGroupDeleted
|
|
20622
|
+
*/
|
|
20623
|
+
ContentfulActivityGroupDeleted.fromObject = function fromObject(object) {
|
|
20624
|
+
if (object instanceof $root.ContentfulActivityGroupDeleted)
|
|
20625
|
+
return object;
|
|
20626
|
+
var message = new $root.ContentfulActivityGroupDeleted();
|
|
20627
|
+
if (object.slug != null)
|
|
20628
|
+
message.slug = String(object.slug);
|
|
20629
|
+
if (object.deletedAt != null)
|
|
20630
|
+
if ($util.Long)
|
|
20631
|
+
(message.deletedAt = $util.Long.fromValue(object.deletedAt)).unsigned = true;
|
|
20632
|
+
else if (typeof object.deletedAt === "string")
|
|
20633
|
+
message.deletedAt = parseInt(object.deletedAt, 10);
|
|
20634
|
+
else if (typeof object.deletedAt === "number")
|
|
20635
|
+
message.deletedAt = object.deletedAt;
|
|
20636
|
+
else if (typeof object.deletedAt === "object")
|
|
20637
|
+
message.deletedAt = new $util.LongBits(object.deletedAt.low >>> 0, object.deletedAt.high >>> 0).toNumber(true);
|
|
20638
|
+
return message;
|
|
20639
|
+
};
|
|
20640
|
+
|
|
20641
|
+
/**
|
|
20642
|
+
* Creates a plain object from a ContentfulActivityGroupDeleted message. Also converts values to other types if specified.
|
|
20643
|
+
* @function toObject
|
|
20644
|
+
* @memberof ContentfulActivityGroupDeleted
|
|
20645
|
+
* @static
|
|
20646
|
+
* @param {ContentfulActivityGroupDeleted} message ContentfulActivityGroupDeleted
|
|
20647
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
20648
|
+
* @returns {Object.<string,*>} Plain object
|
|
20649
|
+
*/
|
|
20650
|
+
ContentfulActivityGroupDeleted.toObject = function toObject(message, options) {
|
|
20651
|
+
if (!options)
|
|
20652
|
+
options = {};
|
|
20653
|
+
var object = {};
|
|
20654
|
+
if (options.defaults) {
|
|
20655
|
+
object.slug = "";
|
|
20656
|
+
if ($util.Long) {
|
|
20657
|
+
var long = new $util.Long(0, 0, true);
|
|
20658
|
+
object.deletedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
20659
|
+
} else
|
|
20660
|
+
object.deletedAt = options.longs === String ? "0" : 0;
|
|
20661
|
+
}
|
|
20662
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
20663
|
+
object.slug = message.slug;
|
|
20664
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
20665
|
+
if (typeof message.deletedAt === "number")
|
|
20666
|
+
object.deletedAt = options.longs === String ? String(message.deletedAt) : message.deletedAt;
|
|
20667
|
+
else
|
|
20668
|
+
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;
|
|
20669
|
+
return object;
|
|
20670
|
+
};
|
|
20671
|
+
|
|
20672
|
+
/**
|
|
20673
|
+
* Converts this ContentfulActivityGroupDeleted to JSON.
|
|
20674
|
+
* @function toJSON
|
|
20675
|
+
* @memberof ContentfulActivityGroupDeleted
|
|
20676
|
+
* @instance
|
|
20677
|
+
* @returns {Object.<string,*>} JSON object
|
|
20678
|
+
*/
|
|
20679
|
+
ContentfulActivityGroupDeleted.prototype.toJSON = function toJSON() {
|
|
20680
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
20681
|
+
};
|
|
20682
|
+
|
|
20683
|
+
return ContentfulActivityGroupDeleted;
|
|
20684
|
+
})();
|
|
20685
|
+
|
|
18816
20686
|
$root.ContentfulContentModelCreated = (function() {
|
|
18817
20687
|
|
|
18818
20688
|
/**
|