@headspace/protos-events 1.135.0 → 1.137.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 +750 -0
- package/lib/index.js +2104 -0
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -864,6 +864,214 @@ $root.contentful = (function() {
|
|
|
864
864
|
return SlugReference;
|
|
865
865
|
})();
|
|
866
866
|
|
|
867
|
+
contentful.SlugReferences = (function() {
|
|
868
|
+
|
|
869
|
+
/**
|
|
870
|
+
* Properties of a SlugReferences.
|
|
871
|
+
* @memberof contentful
|
|
872
|
+
* @interface ISlugReferences
|
|
873
|
+
* @property {Array.<contentful.ISlugReference>|null} [refs] SlugReferences refs
|
|
874
|
+
*/
|
|
875
|
+
|
|
876
|
+
/**
|
|
877
|
+
* Constructs a new SlugReferences.
|
|
878
|
+
* @memberof contentful
|
|
879
|
+
* @classdesc Represents a SlugReferences.
|
|
880
|
+
* @implements ISlugReferences
|
|
881
|
+
* @constructor
|
|
882
|
+
* @param {contentful.ISlugReferences=} [properties] Properties to set
|
|
883
|
+
*/
|
|
884
|
+
function SlugReferences(properties) {
|
|
885
|
+
this.refs = [];
|
|
886
|
+
if (properties)
|
|
887
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
888
|
+
if (properties[keys[i]] != null)
|
|
889
|
+
this[keys[i]] = properties[keys[i]];
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
/**
|
|
893
|
+
* SlugReferences refs.
|
|
894
|
+
* @member {Array.<contentful.ISlugReference>} refs
|
|
895
|
+
* @memberof contentful.SlugReferences
|
|
896
|
+
* @instance
|
|
897
|
+
*/
|
|
898
|
+
SlugReferences.prototype.refs = $util.emptyArray;
|
|
899
|
+
|
|
900
|
+
/**
|
|
901
|
+
* Creates a new SlugReferences instance using the specified properties.
|
|
902
|
+
* @function create
|
|
903
|
+
* @memberof contentful.SlugReferences
|
|
904
|
+
* @static
|
|
905
|
+
* @param {contentful.ISlugReferences=} [properties] Properties to set
|
|
906
|
+
* @returns {contentful.SlugReferences} SlugReferences instance
|
|
907
|
+
*/
|
|
908
|
+
SlugReferences.create = function create(properties) {
|
|
909
|
+
return new SlugReferences(properties);
|
|
910
|
+
};
|
|
911
|
+
|
|
912
|
+
/**
|
|
913
|
+
* Encodes the specified SlugReferences message. Does not implicitly {@link contentful.SlugReferences.verify|verify} messages.
|
|
914
|
+
* @function encode
|
|
915
|
+
* @memberof contentful.SlugReferences
|
|
916
|
+
* @static
|
|
917
|
+
* @param {contentful.ISlugReferences} message SlugReferences message or plain object to encode
|
|
918
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
919
|
+
* @returns {$protobuf.Writer} Writer
|
|
920
|
+
*/
|
|
921
|
+
SlugReferences.encode = function encode(message, writer) {
|
|
922
|
+
if (!writer)
|
|
923
|
+
writer = $Writer.create();
|
|
924
|
+
if (message.refs != null && message.refs.length)
|
|
925
|
+
for (var i = 0; i < message.refs.length; ++i)
|
|
926
|
+
$root.contentful.SlugReference.encode(message.refs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
927
|
+
return writer;
|
|
928
|
+
};
|
|
929
|
+
|
|
930
|
+
/**
|
|
931
|
+
* Encodes the specified SlugReferences message, length delimited. Does not implicitly {@link contentful.SlugReferences.verify|verify} messages.
|
|
932
|
+
* @function encodeDelimited
|
|
933
|
+
* @memberof contentful.SlugReferences
|
|
934
|
+
* @static
|
|
935
|
+
* @param {contentful.ISlugReferences} message SlugReferences message or plain object to encode
|
|
936
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
937
|
+
* @returns {$protobuf.Writer} Writer
|
|
938
|
+
*/
|
|
939
|
+
SlugReferences.encodeDelimited = function encodeDelimited(message, writer) {
|
|
940
|
+
return this.encode(message, writer).ldelim();
|
|
941
|
+
};
|
|
942
|
+
|
|
943
|
+
/**
|
|
944
|
+
* Decodes a SlugReferences message from the specified reader or buffer.
|
|
945
|
+
* @function decode
|
|
946
|
+
* @memberof contentful.SlugReferences
|
|
947
|
+
* @static
|
|
948
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
949
|
+
* @param {number} [length] Message length if known beforehand
|
|
950
|
+
* @returns {contentful.SlugReferences} SlugReferences
|
|
951
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
952
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
953
|
+
*/
|
|
954
|
+
SlugReferences.decode = function decode(reader, length) {
|
|
955
|
+
if (!(reader instanceof $Reader))
|
|
956
|
+
reader = $Reader.create(reader);
|
|
957
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.contentful.SlugReferences();
|
|
958
|
+
while (reader.pos < end) {
|
|
959
|
+
var tag = reader.uint32();
|
|
960
|
+
switch (tag >>> 3) {
|
|
961
|
+
case 1:
|
|
962
|
+
if (!(message.refs && message.refs.length))
|
|
963
|
+
message.refs = [];
|
|
964
|
+
message.refs.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
965
|
+
break;
|
|
966
|
+
default:
|
|
967
|
+
reader.skipType(tag & 7);
|
|
968
|
+
break;
|
|
969
|
+
}
|
|
970
|
+
}
|
|
971
|
+
return message;
|
|
972
|
+
};
|
|
973
|
+
|
|
974
|
+
/**
|
|
975
|
+
* Decodes a SlugReferences message from the specified reader or buffer, length delimited.
|
|
976
|
+
* @function decodeDelimited
|
|
977
|
+
* @memberof contentful.SlugReferences
|
|
978
|
+
* @static
|
|
979
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
980
|
+
* @returns {contentful.SlugReferences} SlugReferences
|
|
981
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
982
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
983
|
+
*/
|
|
984
|
+
SlugReferences.decodeDelimited = function decodeDelimited(reader) {
|
|
985
|
+
if (!(reader instanceof $Reader))
|
|
986
|
+
reader = new $Reader(reader);
|
|
987
|
+
return this.decode(reader, reader.uint32());
|
|
988
|
+
};
|
|
989
|
+
|
|
990
|
+
/**
|
|
991
|
+
* Verifies a SlugReferences message.
|
|
992
|
+
* @function verify
|
|
993
|
+
* @memberof contentful.SlugReferences
|
|
994
|
+
* @static
|
|
995
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
996
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
997
|
+
*/
|
|
998
|
+
SlugReferences.verify = function verify(message) {
|
|
999
|
+
if (typeof message !== "object" || message === null)
|
|
1000
|
+
return "object expected";
|
|
1001
|
+
if (message.refs != null && message.hasOwnProperty("refs")) {
|
|
1002
|
+
if (!Array.isArray(message.refs))
|
|
1003
|
+
return "refs: array expected";
|
|
1004
|
+
for (var i = 0; i < message.refs.length; ++i) {
|
|
1005
|
+
var error = $root.contentful.SlugReference.verify(message.refs[i]);
|
|
1006
|
+
if (error)
|
|
1007
|
+
return "refs." + error;
|
|
1008
|
+
}
|
|
1009
|
+
}
|
|
1010
|
+
return null;
|
|
1011
|
+
};
|
|
1012
|
+
|
|
1013
|
+
/**
|
|
1014
|
+
* Creates a SlugReferences message from a plain object. Also converts values to their respective internal types.
|
|
1015
|
+
* @function fromObject
|
|
1016
|
+
* @memberof contentful.SlugReferences
|
|
1017
|
+
* @static
|
|
1018
|
+
* @param {Object.<string,*>} object Plain object
|
|
1019
|
+
* @returns {contentful.SlugReferences} SlugReferences
|
|
1020
|
+
*/
|
|
1021
|
+
SlugReferences.fromObject = function fromObject(object) {
|
|
1022
|
+
if (object instanceof $root.contentful.SlugReferences)
|
|
1023
|
+
return object;
|
|
1024
|
+
var message = new $root.contentful.SlugReferences();
|
|
1025
|
+
if (object.refs) {
|
|
1026
|
+
if (!Array.isArray(object.refs))
|
|
1027
|
+
throw TypeError(".contentful.SlugReferences.refs: array expected");
|
|
1028
|
+
message.refs = [];
|
|
1029
|
+
for (var i = 0; i < object.refs.length; ++i) {
|
|
1030
|
+
if (typeof object.refs[i] !== "object")
|
|
1031
|
+
throw TypeError(".contentful.SlugReferences.refs: object expected");
|
|
1032
|
+
message.refs[i] = $root.contentful.SlugReference.fromObject(object.refs[i]);
|
|
1033
|
+
}
|
|
1034
|
+
}
|
|
1035
|
+
return message;
|
|
1036
|
+
};
|
|
1037
|
+
|
|
1038
|
+
/**
|
|
1039
|
+
* Creates a plain object from a SlugReferences message. Also converts values to other types if specified.
|
|
1040
|
+
* @function toObject
|
|
1041
|
+
* @memberof contentful.SlugReferences
|
|
1042
|
+
* @static
|
|
1043
|
+
* @param {contentful.SlugReferences} message SlugReferences
|
|
1044
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
1045
|
+
* @returns {Object.<string,*>} Plain object
|
|
1046
|
+
*/
|
|
1047
|
+
SlugReferences.toObject = function toObject(message, options) {
|
|
1048
|
+
if (!options)
|
|
1049
|
+
options = {};
|
|
1050
|
+
var object = {};
|
|
1051
|
+
if (options.arrays || options.defaults)
|
|
1052
|
+
object.refs = [];
|
|
1053
|
+
if (message.refs && message.refs.length) {
|
|
1054
|
+
object.refs = [];
|
|
1055
|
+
for (var j = 0; j < message.refs.length; ++j)
|
|
1056
|
+
object.refs[j] = $root.contentful.SlugReference.toObject(message.refs[j], options);
|
|
1057
|
+
}
|
|
1058
|
+
return object;
|
|
1059
|
+
};
|
|
1060
|
+
|
|
1061
|
+
/**
|
|
1062
|
+
* Converts this SlugReferences to JSON.
|
|
1063
|
+
* @function toJSON
|
|
1064
|
+
* @memberof contentful.SlugReferences
|
|
1065
|
+
* @instance
|
|
1066
|
+
* @returns {Object.<string,*>} JSON object
|
|
1067
|
+
*/
|
|
1068
|
+
SlugReferences.prototype.toJSON = function toJSON() {
|
|
1069
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
1070
|
+
};
|
|
1071
|
+
|
|
1072
|
+
return SlugReferences;
|
|
1073
|
+
})();
|
|
1074
|
+
|
|
867
1075
|
contentful.IdReference = (function() {
|
|
868
1076
|
|
|
869
1077
|
/**
|
|
@@ -16625,6 +16833,1902 @@ $root.ContentfulOrderedCategoriesUpdated = (function() {
|
|
|
16625
16833
|
return ContentfulOrderedCategoriesUpdated;
|
|
16626
16834
|
})();
|
|
16627
16835
|
|
|
16836
|
+
$root.ContentfulActivityVariationCreated = (function() {
|
|
16837
|
+
|
|
16838
|
+
/**
|
|
16839
|
+
* Properties of a ContentfulActivityVariationCreated.
|
|
16840
|
+
* @exports IContentfulActivityVariationCreated
|
|
16841
|
+
* @interface IContentfulActivityVariationCreated
|
|
16842
|
+
* @property {string|null} [slug] ContentfulActivityVariationCreated slug
|
|
16843
|
+
* @property {Object.<string,number>|null} [duration] ContentfulActivityVariationCreated duration
|
|
16844
|
+
* @property {Object.<string,contentful.IIdReference>|null} [media] ContentfulActivityVariationCreated media
|
|
16845
|
+
* @property {number|Long|null} [createdAt] ContentfulActivityVariationCreated createdAt
|
|
16846
|
+
*/
|
|
16847
|
+
|
|
16848
|
+
/**
|
|
16849
|
+
* Constructs a new ContentfulActivityVariationCreated.
|
|
16850
|
+
* @exports ContentfulActivityVariationCreated
|
|
16851
|
+
* @classdesc Represents a ContentfulActivityVariationCreated.
|
|
16852
|
+
* @implements IContentfulActivityVariationCreated
|
|
16853
|
+
* @constructor
|
|
16854
|
+
* @param {IContentfulActivityVariationCreated=} [properties] Properties to set
|
|
16855
|
+
*/
|
|
16856
|
+
function ContentfulActivityVariationCreated(properties) {
|
|
16857
|
+
this.duration = {};
|
|
16858
|
+
this.media = {};
|
|
16859
|
+
if (properties)
|
|
16860
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
16861
|
+
if (properties[keys[i]] != null)
|
|
16862
|
+
this[keys[i]] = properties[keys[i]];
|
|
16863
|
+
}
|
|
16864
|
+
|
|
16865
|
+
/**
|
|
16866
|
+
* ContentfulActivityVariationCreated slug.
|
|
16867
|
+
* @member {string} slug
|
|
16868
|
+
* @memberof ContentfulActivityVariationCreated
|
|
16869
|
+
* @instance
|
|
16870
|
+
*/
|
|
16871
|
+
ContentfulActivityVariationCreated.prototype.slug = "";
|
|
16872
|
+
|
|
16873
|
+
/**
|
|
16874
|
+
* ContentfulActivityVariationCreated duration.
|
|
16875
|
+
* @member {Object.<string,number>} duration
|
|
16876
|
+
* @memberof ContentfulActivityVariationCreated
|
|
16877
|
+
* @instance
|
|
16878
|
+
*/
|
|
16879
|
+
ContentfulActivityVariationCreated.prototype.duration = $util.emptyObject;
|
|
16880
|
+
|
|
16881
|
+
/**
|
|
16882
|
+
* ContentfulActivityVariationCreated media.
|
|
16883
|
+
* @member {Object.<string,contentful.IIdReference>} media
|
|
16884
|
+
* @memberof ContentfulActivityVariationCreated
|
|
16885
|
+
* @instance
|
|
16886
|
+
*/
|
|
16887
|
+
ContentfulActivityVariationCreated.prototype.media = $util.emptyObject;
|
|
16888
|
+
|
|
16889
|
+
/**
|
|
16890
|
+
* ContentfulActivityVariationCreated createdAt.
|
|
16891
|
+
* @member {number|Long} createdAt
|
|
16892
|
+
* @memberof ContentfulActivityVariationCreated
|
|
16893
|
+
* @instance
|
|
16894
|
+
*/
|
|
16895
|
+
ContentfulActivityVariationCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
16896
|
+
|
|
16897
|
+
/**
|
|
16898
|
+
* Creates a new ContentfulActivityVariationCreated instance using the specified properties.
|
|
16899
|
+
* @function create
|
|
16900
|
+
* @memberof ContentfulActivityVariationCreated
|
|
16901
|
+
* @static
|
|
16902
|
+
* @param {IContentfulActivityVariationCreated=} [properties] Properties to set
|
|
16903
|
+
* @returns {ContentfulActivityVariationCreated} ContentfulActivityVariationCreated instance
|
|
16904
|
+
*/
|
|
16905
|
+
ContentfulActivityVariationCreated.create = function create(properties) {
|
|
16906
|
+
return new ContentfulActivityVariationCreated(properties);
|
|
16907
|
+
};
|
|
16908
|
+
|
|
16909
|
+
/**
|
|
16910
|
+
* Encodes the specified ContentfulActivityVariationCreated message. Does not implicitly {@link ContentfulActivityVariationCreated.verify|verify} messages.
|
|
16911
|
+
* @function encode
|
|
16912
|
+
* @memberof ContentfulActivityVariationCreated
|
|
16913
|
+
* @static
|
|
16914
|
+
* @param {IContentfulActivityVariationCreated} message ContentfulActivityVariationCreated message or plain object to encode
|
|
16915
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
16916
|
+
* @returns {$protobuf.Writer} Writer
|
|
16917
|
+
*/
|
|
16918
|
+
ContentfulActivityVariationCreated.encode = function encode(message, writer) {
|
|
16919
|
+
if (!writer)
|
|
16920
|
+
writer = $Writer.create();
|
|
16921
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
16922
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
16923
|
+
if (message.duration != null && message.hasOwnProperty("duration"))
|
|
16924
|
+
for (var keys = Object.keys(message.duration), i = 0; i < keys.length; ++i)
|
|
16925
|
+
writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 0 =*/16).int32(message.duration[keys[i]]).ldelim();
|
|
16926
|
+
if (message.media != null && message.hasOwnProperty("media"))
|
|
16927
|
+
for (var keys = Object.keys(message.media), i = 0; i < keys.length; ++i) {
|
|
16928
|
+
writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
16929
|
+
$root.contentful.IdReference.encode(message.media[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
16930
|
+
}
|
|
16931
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
16932
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.createdAt);
|
|
16933
|
+
return writer;
|
|
16934
|
+
};
|
|
16935
|
+
|
|
16936
|
+
/**
|
|
16937
|
+
* Encodes the specified ContentfulActivityVariationCreated message, length delimited. Does not implicitly {@link ContentfulActivityVariationCreated.verify|verify} messages.
|
|
16938
|
+
* @function encodeDelimited
|
|
16939
|
+
* @memberof ContentfulActivityVariationCreated
|
|
16940
|
+
* @static
|
|
16941
|
+
* @param {IContentfulActivityVariationCreated} message ContentfulActivityVariationCreated message or plain object to encode
|
|
16942
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
16943
|
+
* @returns {$protobuf.Writer} Writer
|
|
16944
|
+
*/
|
|
16945
|
+
ContentfulActivityVariationCreated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
16946
|
+
return this.encode(message, writer).ldelim();
|
|
16947
|
+
};
|
|
16948
|
+
|
|
16949
|
+
/**
|
|
16950
|
+
* Decodes a ContentfulActivityVariationCreated message from the specified reader or buffer.
|
|
16951
|
+
* @function decode
|
|
16952
|
+
* @memberof ContentfulActivityVariationCreated
|
|
16953
|
+
* @static
|
|
16954
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
16955
|
+
* @param {number} [length] Message length if known beforehand
|
|
16956
|
+
* @returns {ContentfulActivityVariationCreated} ContentfulActivityVariationCreated
|
|
16957
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
16958
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
16959
|
+
*/
|
|
16960
|
+
ContentfulActivityVariationCreated.decode = function decode(reader, length) {
|
|
16961
|
+
if (!(reader instanceof $Reader))
|
|
16962
|
+
reader = $Reader.create(reader);
|
|
16963
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulActivityVariationCreated(), key;
|
|
16964
|
+
while (reader.pos < end) {
|
|
16965
|
+
var tag = reader.uint32();
|
|
16966
|
+
switch (tag >>> 3) {
|
|
16967
|
+
case 1:
|
|
16968
|
+
message.slug = reader.string();
|
|
16969
|
+
break;
|
|
16970
|
+
case 2:
|
|
16971
|
+
reader.skip().pos++;
|
|
16972
|
+
if (message.duration === $util.emptyObject)
|
|
16973
|
+
message.duration = {};
|
|
16974
|
+
key = reader.string();
|
|
16975
|
+
reader.pos++;
|
|
16976
|
+
message.duration[key] = reader.int32();
|
|
16977
|
+
break;
|
|
16978
|
+
case 3:
|
|
16979
|
+
reader.skip().pos++;
|
|
16980
|
+
if (message.media === $util.emptyObject)
|
|
16981
|
+
message.media = {};
|
|
16982
|
+
key = reader.string();
|
|
16983
|
+
reader.pos++;
|
|
16984
|
+
message.media[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
|
|
16985
|
+
break;
|
|
16986
|
+
case 4:
|
|
16987
|
+
message.createdAt = reader.uint64();
|
|
16988
|
+
break;
|
|
16989
|
+
default:
|
|
16990
|
+
reader.skipType(tag & 7);
|
|
16991
|
+
break;
|
|
16992
|
+
}
|
|
16993
|
+
}
|
|
16994
|
+
return message;
|
|
16995
|
+
};
|
|
16996
|
+
|
|
16997
|
+
/**
|
|
16998
|
+
* Decodes a ContentfulActivityVariationCreated message from the specified reader or buffer, length delimited.
|
|
16999
|
+
* @function decodeDelimited
|
|
17000
|
+
* @memberof ContentfulActivityVariationCreated
|
|
17001
|
+
* @static
|
|
17002
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
17003
|
+
* @returns {ContentfulActivityVariationCreated} ContentfulActivityVariationCreated
|
|
17004
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
17005
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
17006
|
+
*/
|
|
17007
|
+
ContentfulActivityVariationCreated.decodeDelimited = function decodeDelimited(reader) {
|
|
17008
|
+
if (!(reader instanceof $Reader))
|
|
17009
|
+
reader = new $Reader(reader);
|
|
17010
|
+
return this.decode(reader, reader.uint32());
|
|
17011
|
+
};
|
|
17012
|
+
|
|
17013
|
+
/**
|
|
17014
|
+
* Verifies a ContentfulActivityVariationCreated message.
|
|
17015
|
+
* @function verify
|
|
17016
|
+
* @memberof ContentfulActivityVariationCreated
|
|
17017
|
+
* @static
|
|
17018
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
17019
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
17020
|
+
*/
|
|
17021
|
+
ContentfulActivityVariationCreated.verify = function verify(message) {
|
|
17022
|
+
if (typeof message !== "object" || message === null)
|
|
17023
|
+
return "object expected";
|
|
17024
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
17025
|
+
if (!$util.isString(message.slug))
|
|
17026
|
+
return "slug: string expected";
|
|
17027
|
+
if (message.duration != null && message.hasOwnProperty("duration")) {
|
|
17028
|
+
if (!$util.isObject(message.duration))
|
|
17029
|
+
return "duration: object expected";
|
|
17030
|
+
var key = Object.keys(message.duration);
|
|
17031
|
+
for (var i = 0; i < key.length; ++i)
|
|
17032
|
+
if (!$util.isInteger(message.duration[key[i]]))
|
|
17033
|
+
return "duration: integer{k:string} expected";
|
|
17034
|
+
}
|
|
17035
|
+
if (message.media != null && message.hasOwnProperty("media")) {
|
|
17036
|
+
if (!$util.isObject(message.media))
|
|
17037
|
+
return "media: object expected";
|
|
17038
|
+
var key = Object.keys(message.media);
|
|
17039
|
+
for (var i = 0; i < key.length; ++i) {
|
|
17040
|
+
var error = $root.contentful.IdReference.verify(message.media[key[i]]);
|
|
17041
|
+
if (error)
|
|
17042
|
+
return "media." + error;
|
|
17043
|
+
}
|
|
17044
|
+
}
|
|
17045
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
17046
|
+
if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
|
|
17047
|
+
return "createdAt: integer|Long expected";
|
|
17048
|
+
return null;
|
|
17049
|
+
};
|
|
17050
|
+
|
|
17051
|
+
/**
|
|
17052
|
+
* Creates a ContentfulActivityVariationCreated message from a plain object. Also converts values to their respective internal types.
|
|
17053
|
+
* @function fromObject
|
|
17054
|
+
* @memberof ContentfulActivityVariationCreated
|
|
17055
|
+
* @static
|
|
17056
|
+
* @param {Object.<string,*>} object Plain object
|
|
17057
|
+
* @returns {ContentfulActivityVariationCreated} ContentfulActivityVariationCreated
|
|
17058
|
+
*/
|
|
17059
|
+
ContentfulActivityVariationCreated.fromObject = function fromObject(object) {
|
|
17060
|
+
if (object instanceof $root.ContentfulActivityVariationCreated)
|
|
17061
|
+
return object;
|
|
17062
|
+
var message = new $root.ContentfulActivityVariationCreated();
|
|
17063
|
+
if (object.slug != null)
|
|
17064
|
+
message.slug = String(object.slug);
|
|
17065
|
+
if (object.duration) {
|
|
17066
|
+
if (typeof object.duration !== "object")
|
|
17067
|
+
throw TypeError(".ContentfulActivityVariationCreated.duration: object expected");
|
|
17068
|
+
message.duration = {};
|
|
17069
|
+
for (var keys = Object.keys(object.duration), i = 0; i < keys.length; ++i)
|
|
17070
|
+
message.duration[keys[i]] = object.duration[keys[i]] | 0;
|
|
17071
|
+
}
|
|
17072
|
+
if (object.media) {
|
|
17073
|
+
if (typeof object.media !== "object")
|
|
17074
|
+
throw TypeError(".ContentfulActivityVariationCreated.media: object expected");
|
|
17075
|
+
message.media = {};
|
|
17076
|
+
for (var keys = Object.keys(object.media), i = 0; i < keys.length; ++i) {
|
|
17077
|
+
if (typeof object.media[keys[i]] !== "object")
|
|
17078
|
+
throw TypeError(".ContentfulActivityVariationCreated.media: object expected");
|
|
17079
|
+
message.media[keys[i]] = $root.contentful.IdReference.fromObject(object.media[keys[i]]);
|
|
17080
|
+
}
|
|
17081
|
+
}
|
|
17082
|
+
if (object.createdAt != null)
|
|
17083
|
+
if ($util.Long)
|
|
17084
|
+
(message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
|
|
17085
|
+
else if (typeof object.createdAt === "string")
|
|
17086
|
+
message.createdAt = parseInt(object.createdAt, 10);
|
|
17087
|
+
else if (typeof object.createdAt === "number")
|
|
17088
|
+
message.createdAt = object.createdAt;
|
|
17089
|
+
else if (typeof object.createdAt === "object")
|
|
17090
|
+
message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
|
|
17091
|
+
return message;
|
|
17092
|
+
};
|
|
17093
|
+
|
|
17094
|
+
/**
|
|
17095
|
+
* Creates a plain object from a ContentfulActivityVariationCreated message. Also converts values to other types if specified.
|
|
17096
|
+
* @function toObject
|
|
17097
|
+
* @memberof ContentfulActivityVariationCreated
|
|
17098
|
+
* @static
|
|
17099
|
+
* @param {ContentfulActivityVariationCreated} message ContentfulActivityVariationCreated
|
|
17100
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
17101
|
+
* @returns {Object.<string,*>} Plain object
|
|
17102
|
+
*/
|
|
17103
|
+
ContentfulActivityVariationCreated.toObject = function toObject(message, options) {
|
|
17104
|
+
if (!options)
|
|
17105
|
+
options = {};
|
|
17106
|
+
var object = {};
|
|
17107
|
+
if (options.objects || options.defaults) {
|
|
17108
|
+
object.duration = {};
|
|
17109
|
+
object.media = {};
|
|
17110
|
+
}
|
|
17111
|
+
if (options.defaults) {
|
|
17112
|
+
object.slug = "";
|
|
17113
|
+
if ($util.Long) {
|
|
17114
|
+
var long = new $util.Long(0, 0, true);
|
|
17115
|
+
object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
17116
|
+
} else
|
|
17117
|
+
object.createdAt = options.longs === String ? "0" : 0;
|
|
17118
|
+
}
|
|
17119
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
17120
|
+
object.slug = message.slug;
|
|
17121
|
+
var keys2;
|
|
17122
|
+
if (message.duration && (keys2 = Object.keys(message.duration)).length) {
|
|
17123
|
+
object.duration = {};
|
|
17124
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
17125
|
+
object.duration[keys2[j]] = message.duration[keys2[j]];
|
|
17126
|
+
}
|
|
17127
|
+
if (message.media && (keys2 = Object.keys(message.media)).length) {
|
|
17128
|
+
object.media = {};
|
|
17129
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
17130
|
+
object.media[keys2[j]] = $root.contentful.IdReference.toObject(message.media[keys2[j]], options);
|
|
17131
|
+
}
|
|
17132
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
17133
|
+
if (typeof message.createdAt === "number")
|
|
17134
|
+
object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
|
|
17135
|
+
else
|
|
17136
|
+
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;
|
|
17137
|
+
return object;
|
|
17138
|
+
};
|
|
17139
|
+
|
|
17140
|
+
/**
|
|
17141
|
+
* Converts this ContentfulActivityVariationCreated to JSON.
|
|
17142
|
+
* @function toJSON
|
|
17143
|
+
* @memberof ContentfulActivityVariationCreated
|
|
17144
|
+
* @instance
|
|
17145
|
+
* @returns {Object.<string,*>} JSON object
|
|
17146
|
+
*/
|
|
17147
|
+
ContentfulActivityVariationCreated.prototype.toJSON = function toJSON() {
|
|
17148
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
17149
|
+
};
|
|
17150
|
+
|
|
17151
|
+
return ContentfulActivityVariationCreated;
|
|
17152
|
+
})();
|
|
17153
|
+
|
|
17154
|
+
$root.ContentfulActivityVariationUpdated = (function() {
|
|
17155
|
+
|
|
17156
|
+
/**
|
|
17157
|
+
* Properties of a ContentfulActivityVariationUpdated.
|
|
17158
|
+
* @exports IContentfulActivityVariationUpdated
|
|
17159
|
+
* @interface IContentfulActivityVariationUpdated
|
|
17160
|
+
* @property {string|null} [slug] ContentfulActivityVariationUpdated slug
|
|
17161
|
+
* @property {Object.<string,number>|null} [duration] ContentfulActivityVariationUpdated duration
|
|
17162
|
+
* @property {Object.<string,contentful.IIdReference>|null} [media] ContentfulActivityVariationUpdated media
|
|
17163
|
+
* @property {number|Long|null} [updatedAt] ContentfulActivityVariationUpdated updatedAt
|
|
17164
|
+
*/
|
|
17165
|
+
|
|
17166
|
+
/**
|
|
17167
|
+
* Constructs a new ContentfulActivityVariationUpdated.
|
|
17168
|
+
* @exports ContentfulActivityVariationUpdated
|
|
17169
|
+
* @classdesc Represents a ContentfulActivityVariationUpdated.
|
|
17170
|
+
* @implements IContentfulActivityVariationUpdated
|
|
17171
|
+
* @constructor
|
|
17172
|
+
* @param {IContentfulActivityVariationUpdated=} [properties] Properties to set
|
|
17173
|
+
*/
|
|
17174
|
+
function ContentfulActivityVariationUpdated(properties) {
|
|
17175
|
+
this.duration = {};
|
|
17176
|
+
this.media = {};
|
|
17177
|
+
if (properties)
|
|
17178
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
17179
|
+
if (properties[keys[i]] != null)
|
|
17180
|
+
this[keys[i]] = properties[keys[i]];
|
|
17181
|
+
}
|
|
17182
|
+
|
|
17183
|
+
/**
|
|
17184
|
+
* ContentfulActivityVariationUpdated slug.
|
|
17185
|
+
* @member {string} slug
|
|
17186
|
+
* @memberof ContentfulActivityVariationUpdated
|
|
17187
|
+
* @instance
|
|
17188
|
+
*/
|
|
17189
|
+
ContentfulActivityVariationUpdated.prototype.slug = "";
|
|
17190
|
+
|
|
17191
|
+
/**
|
|
17192
|
+
* ContentfulActivityVariationUpdated duration.
|
|
17193
|
+
* @member {Object.<string,number>} duration
|
|
17194
|
+
* @memberof ContentfulActivityVariationUpdated
|
|
17195
|
+
* @instance
|
|
17196
|
+
*/
|
|
17197
|
+
ContentfulActivityVariationUpdated.prototype.duration = $util.emptyObject;
|
|
17198
|
+
|
|
17199
|
+
/**
|
|
17200
|
+
* ContentfulActivityVariationUpdated media.
|
|
17201
|
+
* @member {Object.<string,contentful.IIdReference>} media
|
|
17202
|
+
* @memberof ContentfulActivityVariationUpdated
|
|
17203
|
+
* @instance
|
|
17204
|
+
*/
|
|
17205
|
+
ContentfulActivityVariationUpdated.prototype.media = $util.emptyObject;
|
|
17206
|
+
|
|
17207
|
+
/**
|
|
17208
|
+
* ContentfulActivityVariationUpdated updatedAt.
|
|
17209
|
+
* @member {number|Long} updatedAt
|
|
17210
|
+
* @memberof ContentfulActivityVariationUpdated
|
|
17211
|
+
* @instance
|
|
17212
|
+
*/
|
|
17213
|
+
ContentfulActivityVariationUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
17214
|
+
|
|
17215
|
+
/**
|
|
17216
|
+
* Creates a new ContentfulActivityVariationUpdated instance using the specified properties.
|
|
17217
|
+
* @function create
|
|
17218
|
+
* @memberof ContentfulActivityVariationUpdated
|
|
17219
|
+
* @static
|
|
17220
|
+
* @param {IContentfulActivityVariationUpdated=} [properties] Properties to set
|
|
17221
|
+
* @returns {ContentfulActivityVariationUpdated} ContentfulActivityVariationUpdated instance
|
|
17222
|
+
*/
|
|
17223
|
+
ContentfulActivityVariationUpdated.create = function create(properties) {
|
|
17224
|
+
return new ContentfulActivityVariationUpdated(properties);
|
|
17225
|
+
};
|
|
17226
|
+
|
|
17227
|
+
/**
|
|
17228
|
+
* Encodes the specified ContentfulActivityVariationUpdated message. Does not implicitly {@link ContentfulActivityVariationUpdated.verify|verify} messages.
|
|
17229
|
+
* @function encode
|
|
17230
|
+
* @memberof ContentfulActivityVariationUpdated
|
|
17231
|
+
* @static
|
|
17232
|
+
* @param {IContentfulActivityVariationUpdated} message ContentfulActivityVariationUpdated message or plain object to encode
|
|
17233
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
17234
|
+
* @returns {$protobuf.Writer} Writer
|
|
17235
|
+
*/
|
|
17236
|
+
ContentfulActivityVariationUpdated.encode = function encode(message, writer) {
|
|
17237
|
+
if (!writer)
|
|
17238
|
+
writer = $Writer.create();
|
|
17239
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
17240
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
17241
|
+
if (message.duration != null && message.hasOwnProperty("duration"))
|
|
17242
|
+
for (var keys = Object.keys(message.duration), i = 0; i < keys.length; ++i)
|
|
17243
|
+
writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 0 =*/16).int32(message.duration[keys[i]]).ldelim();
|
|
17244
|
+
if (message.media != null && message.hasOwnProperty("media"))
|
|
17245
|
+
for (var keys = Object.keys(message.media), i = 0; i < keys.length; ++i) {
|
|
17246
|
+
writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
17247
|
+
$root.contentful.IdReference.encode(message.media[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
17248
|
+
}
|
|
17249
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
17250
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint64(message.updatedAt);
|
|
17251
|
+
return writer;
|
|
17252
|
+
};
|
|
17253
|
+
|
|
17254
|
+
/**
|
|
17255
|
+
* Encodes the specified ContentfulActivityVariationUpdated message, length delimited. Does not implicitly {@link ContentfulActivityVariationUpdated.verify|verify} messages.
|
|
17256
|
+
* @function encodeDelimited
|
|
17257
|
+
* @memberof ContentfulActivityVariationUpdated
|
|
17258
|
+
* @static
|
|
17259
|
+
* @param {IContentfulActivityVariationUpdated} message ContentfulActivityVariationUpdated message or plain object to encode
|
|
17260
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
17261
|
+
* @returns {$protobuf.Writer} Writer
|
|
17262
|
+
*/
|
|
17263
|
+
ContentfulActivityVariationUpdated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
17264
|
+
return this.encode(message, writer).ldelim();
|
|
17265
|
+
};
|
|
17266
|
+
|
|
17267
|
+
/**
|
|
17268
|
+
* Decodes a ContentfulActivityVariationUpdated message from the specified reader or buffer.
|
|
17269
|
+
* @function decode
|
|
17270
|
+
* @memberof ContentfulActivityVariationUpdated
|
|
17271
|
+
* @static
|
|
17272
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
17273
|
+
* @param {number} [length] Message length if known beforehand
|
|
17274
|
+
* @returns {ContentfulActivityVariationUpdated} ContentfulActivityVariationUpdated
|
|
17275
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
17276
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
17277
|
+
*/
|
|
17278
|
+
ContentfulActivityVariationUpdated.decode = function decode(reader, length) {
|
|
17279
|
+
if (!(reader instanceof $Reader))
|
|
17280
|
+
reader = $Reader.create(reader);
|
|
17281
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulActivityVariationUpdated(), key;
|
|
17282
|
+
while (reader.pos < end) {
|
|
17283
|
+
var tag = reader.uint32();
|
|
17284
|
+
switch (tag >>> 3) {
|
|
17285
|
+
case 1:
|
|
17286
|
+
message.slug = reader.string();
|
|
17287
|
+
break;
|
|
17288
|
+
case 2:
|
|
17289
|
+
reader.skip().pos++;
|
|
17290
|
+
if (message.duration === $util.emptyObject)
|
|
17291
|
+
message.duration = {};
|
|
17292
|
+
key = reader.string();
|
|
17293
|
+
reader.pos++;
|
|
17294
|
+
message.duration[key] = reader.int32();
|
|
17295
|
+
break;
|
|
17296
|
+
case 3:
|
|
17297
|
+
reader.skip().pos++;
|
|
17298
|
+
if (message.media === $util.emptyObject)
|
|
17299
|
+
message.media = {};
|
|
17300
|
+
key = reader.string();
|
|
17301
|
+
reader.pos++;
|
|
17302
|
+
message.media[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
|
|
17303
|
+
break;
|
|
17304
|
+
case 4:
|
|
17305
|
+
message.updatedAt = reader.uint64();
|
|
17306
|
+
break;
|
|
17307
|
+
default:
|
|
17308
|
+
reader.skipType(tag & 7);
|
|
17309
|
+
break;
|
|
17310
|
+
}
|
|
17311
|
+
}
|
|
17312
|
+
return message;
|
|
17313
|
+
};
|
|
17314
|
+
|
|
17315
|
+
/**
|
|
17316
|
+
* Decodes a ContentfulActivityVariationUpdated message from the specified reader or buffer, length delimited.
|
|
17317
|
+
* @function decodeDelimited
|
|
17318
|
+
* @memberof ContentfulActivityVariationUpdated
|
|
17319
|
+
* @static
|
|
17320
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
17321
|
+
* @returns {ContentfulActivityVariationUpdated} ContentfulActivityVariationUpdated
|
|
17322
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
17323
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
17324
|
+
*/
|
|
17325
|
+
ContentfulActivityVariationUpdated.decodeDelimited = function decodeDelimited(reader) {
|
|
17326
|
+
if (!(reader instanceof $Reader))
|
|
17327
|
+
reader = new $Reader(reader);
|
|
17328
|
+
return this.decode(reader, reader.uint32());
|
|
17329
|
+
};
|
|
17330
|
+
|
|
17331
|
+
/**
|
|
17332
|
+
* Verifies a ContentfulActivityVariationUpdated message.
|
|
17333
|
+
* @function verify
|
|
17334
|
+
* @memberof ContentfulActivityVariationUpdated
|
|
17335
|
+
* @static
|
|
17336
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
17337
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
17338
|
+
*/
|
|
17339
|
+
ContentfulActivityVariationUpdated.verify = function verify(message) {
|
|
17340
|
+
if (typeof message !== "object" || message === null)
|
|
17341
|
+
return "object expected";
|
|
17342
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
17343
|
+
if (!$util.isString(message.slug))
|
|
17344
|
+
return "slug: string expected";
|
|
17345
|
+
if (message.duration != null && message.hasOwnProperty("duration")) {
|
|
17346
|
+
if (!$util.isObject(message.duration))
|
|
17347
|
+
return "duration: object expected";
|
|
17348
|
+
var key = Object.keys(message.duration);
|
|
17349
|
+
for (var i = 0; i < key.length; ++i)
|
|
17350
|
+
if (!$util.isInteger(message.duration[key[i]]))
|
|
17351
|
+
return "duration: integer{k:string} expected";
|
|
17352
|
+
}
|
|
17353
|
+
if (message.media != null && message.hasOwnProperty("media")) {
|
|
17354
|
+
if (!$util.isObject(message.media))
|
|
17355
|
+
return "media: object expected";
|
|
17356
|
+
var key = Object.keys(message.media);
|
|
17357
|
+
for (var i = 0; i < key.length; ++i) {
|
|
17358
|
+
var error = $root.contentful.IdReference.verify(message.media[key[i]]);
|
|
17359
|
+
if (error)
|
|
17360
|
+
return "media." + error;
|
|
17361
|
+
}
|
|
17362
|
+
}
|
|
17363
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
17364
|
+
if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
|
|
17365
|
+
return "updatedAt: integer|Long expected";
|
|
17366
|
+
return null;
|
|
17367
|
+
};
|
|
17368
|
+
|
|
17369
|
+
/**
|
|
17370
|
+
* Creates a ContentfulActivityVariationUpdated message from a plain object. Also converts values to their respective internal types.
|
|
17371
|
+
* @function fromObject
|
|
17372
|
+
* @memberof ContentfulActivityVariationUpdated
|
|
17373
|
+
* @static
|
|
17374
|
+
* @param {Object.<string,*>} object Plain object
|
|
17375
|
+
* @returns {ContentfulActivityVariationUpdated} ContentfulActivityVariationUpdated
|
|
17376
|
+
*/
|
|
17377
|
+
ContentfulActivityVariationUpdated.fromObject = function fromObject(object) {
|
|
17378
|
+
if (object instanceof $root.ContentfulActivityVariationUpdated)
|
|
17379
|
+
return object;
|
|
17380
|
+
var message = new $root.ContentfulActivityVariationUpdated();
|
|
17381
|
+
if (object.slug != null)
|
|
17382
|
+
message.slug = String(object.slug);
|
|
17383
|
+
if (object.duration) {
|
|
17384
|
+
if (typeof object.duration !== "object")
|
|
17385
|
+
throw TypeError(".ContentfulActivityVariationUpdated.duration: object expected");
|
|
17386
|
+
message.duration = {};
|
|
17387
|
+
for (var keys = Object.keys(object.duration), i = 0; i < keys.length; ++i)
|
|
17388
|
+
message.duration[keys[i]] = object.duration[keys[i]] | 0;
|
|
17389
|
+
}
|
|
17390
|
+
if (object.media) {
|
|
17391
|
+
if (typeof object.media !== "object")
|
|
17392
|
+
throw TypeError(".ContentfulActivityVariationUpdated.media: object expected");
|
|
17393
|
+
message.media = {};
|
|
17394
|
+
for (var keys = Object.keys(object.media), i = 0; i < keys.length; ++i) {
|
|
17395
|
+
if (typeof object.media[keys[i]] !== "object")
|
|
17396
|
+
throw TypeError(".ContentfulActivityVariationUpdated.media: object expected");
|
|
17397
|
+
message.media[keys[i]] = $root.contentful.IdReference.fromObject(object.media[keys[i]]);
|
|
17398
|
+
}
|
|
17399
|
+
}
|
|
17400
|
+
if (object.updatedAt != null)
|
|
17401
|
+
if ($util.Long)
|
|
17402
|
+
(message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
|
|
17403
|
+
else if (typeof object.updatedAt === "string")
|
|
17404
|
+
message.updatedAt = parseInt(object.updatedAt, 10);
|
|
17405
|
+
else if (typeof object.updatedAt === "number")
|
|
17406
|
+
message.updatedAt = object.updatedAt;
|
|
17407
|
+
else if (typeof object.updatedAt === "object")
|
|
17408
|
+
message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
|
|
17409
|
+
return message;
|
|
17410
|
+
};
|
|
17411
|
+
|
|
17412
|
+
/**
|
|
17413
|
+
* Creates a plain object from a ContentfulActivityVariationUpdated message. Also converts values to other types if specified.
|
|
17414
|
+
* @function toObject
|
|
17415
|
+
* @memberof ContentfulActivityVariationUpdated
|
|
17416
|
+
* @static
|
|
17417
|
+
* @param {ContentfulActivityVariationUpdated} message ContentfulActivityVariationUpdated
|
|
17418
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
17419
|
+
* @returns {Object.<string,*>} Plain object
|
|
17420
|
+
*/
|
|
17421
|
+
ContentfulActivityVariationUpdated.toObject = function toObject(message, options) {
|
|
17422
|
+
if (!options)
|
|
17423
|
+
options = {};
|
|
17424
|
+
var object = {};
|
|
17425
|
+
if (options.objects || options.defaults) {
|
|
17426
|
+
object.duration = {};
|
|
17427
|
+
object.media = {};
|
|
17428
|
+
}
|
|
17429
|
+
if (options.defaults) {
|
|
17430
|
+
object.slug = "";
|
|
17431
|
+
if ($util.Long) {
|
|
17432
|
+
var long = new $util.Long(0, 0, true);
|
|
17433
|
+
object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
17434
|
+
} else
|
|
17435
|
+
object.updatedAt = options.longs === String ? "0" : 0;
|
|
17436
|
+
}
|
|
17437
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
17438
|
+
object.slug = message.slug;
|
|
17439
|
+
var keys2;
|
|
17440
|
+
if (message.duration && (keys2 = Object.keys(message.duration)).length) {
|
|
17441
|
+
object.duration = {};
|
|
17442
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
17443
|
+
object.duration[keys2[j]] = message.duration[keys2[j]];
|
|
17444
|
+
}
|
|
17445
|
+
if (message.media && (keys2 = Object.keys(message.media)).length) {
|
|
17446
|
+
object.media = {};
|
|
17447
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
17448
|
+
object.media[keys2[j]] = $root.contentful.IdReference.toObject(message.media[keys2[j]], options);
|
|
17449
|
+
}
|
|
17450
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
17451
|
+
if (typeof message.updatedAt === "number")
|
|
17452
|
+
object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
|
|
17453
|
+
else
|
|
17454
|
+
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;
|
|
17455
|
+
return object;
|
|
17456
|
+
};
|
|
17457
|
+
|
|
17458
|
+
/**
|
|
17459
|
+
* Converts this ContentfulActivityVariationUpdated to JSON.
|
|
17460
|
+
* @function toJSON
|
|
17461
|
+
* @memberof ContentfulActivityVariationUpdated
|
|
17462
|
+
* @instance
|
|
17463
|
+
* @returns {Object.<string,*>} JSON object
|
|
17464
|
+
*/
|
|
17465
|
+
ContentfulActivityVariationUpdated.prototype.toJSON = function toJSON() {
|
|
17466
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
17467
|
+
};
|
|
17468
|
+
|
|
17469
|
+
return ContentfulActivityVariationUpdated;
|
|
17470
|
+
})();
|
|
17471
|
+
|
|
17472
|
+
$root.ContentfulActivityVariationDeleted = (function() {
|
|
17473
|
+
|
|
17474
|
+
/**
|
|
17475
|
+
* Properties of a ContentfulActivityVariationDeleted.
|
|
17476
|
+
* @exports IContentfulActivityVariationDeleted
|
|
17477
|
+
* @interface IContentfulActivityVariationDeleted
|
|
17478
|
+
* @property {string|null} [slug] ContentfulActivityVariationDeleted slug
|
|
17479
|
+
* @property {number|Long|null} [deletedAt] ContentfulActivityVariationDeleted deletedAt
|
|
17480
|
+
*/
|
|
17481
|
+
|
|
17482
|
+
/**
|
|
17483
|
+
* Constructs a new ContentfulActivityVariationDeleted.
|
|
17484
|
+
* @exports ContentfulActivityVariationDeleted
|
|
17485
|
+
* @classdesc Represents a ContentfulActivityVariationDeleted.
|
|
17486
|
+
* @implements IContentfulActivityVariationDeleted
|
|
17487
|
+
* @constructor
|
|
17488
|
+
* @param {IContentfulActivityVariationDeleted=} [properties] Properties to set
|
|
17489
|
+
*/
|
|
17490
|
+
function ContentfulActivityVariationDeleted(properties) {
|
|
17491
|
+
if (properties)
|
|
17492
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
17493
|
+
if (properties[keys[i]] != null)
|
|
17494
|
+
this[keys[i]] = properties[keys[i]];
|
|
17495
|
+
}
|
|
17496
|
+
|
|
17497
|
+
/**
|
|
17498
|
+
* ContentfulActivityVariationDeleted slug.
|
|
17499
|
+
* @member {string} slug
|
|
17500
|
+
* @memberof ContentfulActivityVariationDeleted
|
|
17501
|
+
* @instance
|
|
17502
|
+
*/
|
|
17503
|
+
ContentfulActivityVariationDeleted.prototype.slug = "";
|
|
17504
|
+
|
|
17505
|
+
/**
|
|
17506
|
+
* ContentfulActivityVariationDeleted deletedAt.
|
|
17507
|
+
* @member {number|Long} deletedAt
|
|
17508
|
+
* @memberof ContentfulActivityVariationDeleted
|
|
17509
|
+
* @instance
|
|
17510
|
+
*/
|
|
17511
|
+
ContentfulActivityVariationDeleted.prototype.deletedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
17512
|
+
|
|
17513
|
+
/**
|
|
17514
|
+
* Creates a new ContentfulActivityVariationDeleted instance using the specified properties.
|
|
17515
|
+
* @function create
|
|
17516
|
+
* @memberof ContentfulActivityVariationDeleted
|
|
17517
|
+
* @static
|
|
17518
|
+
* @param {IContentfulActivityVariationDeleted=} [properties] Properties to set
|
|
17519
|
+
* @returns {ContentfulActivityVariationDeleted} ContentfulActivityVariationDeleted instance
|
|
17520
|
+
*/
|
|
17521
|
+
ContentfulActivityVariationDeleted.create = function create(properties) {
|
|
17522
|
+
return new ContentfulActivityVariationDeleted(properties);
|
|
17523
|
+
};
|
|
17524
|
+
|
|
17525
|
+
/**
|
|
17526
|
+
* Encodes the specified ContentfulActivityVariationDeleted message. Does not implicitly {@link ContentfulActivityVariationDeleted.verify|verify} messages.
|
|
17527
|
+
* @function encode
|
|
17528
|
+
* @memberof ContentfulActivityVariationDeleted
|
|
17529
|
+
* @static
|
|
17530
|
+
* @param {IContentfulActivityVariationDeleted} message ContentfulActivityVariationDeleted message or plain object to encode
|
|
17531
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
17532
|
+
* @returns {$protobuf.Writer} Writer
|
|
17533
|
+
*/
|
|
17534
|
+
ContentfulActivityVariationDeleted.encode = function encode(message, writer) {
|
|
17535
|
+
if (!writer)
|
|
17536
|
+
writer = $Writer.create();
|
|
17537
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
17538
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
17539
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
17540
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.deletedAt);
|
|
17541
|
+
return writer;
|
|
17542
|
+
};
|
|
17543
|
+
|
|
17544
|
+
/**
|
|
17545
|
+
* Encodes the specified ContentfulActivityVariationDeleted message, length delimited. Does not implicitly {@link ContentfulActivityVariationDeleted.verify|verify} messages.
|
|
17546
|
+
* @function encodeDelimited
|
|
17547
|
+
* @memberof ContentfulActivityVariationDeleted
|
|
17548
|
+
* @static
|
|
17549
|
+
* @param {IContentfulActivityVariationDeleted} message ContentfulActivityVariationDeleted message or plain object to encode
|
|
17550
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
17551
|
+
* @returns {$protobuf.Writer} Writer
|
|
17552
|
+
*/
|
|
17553
|
+
ContentfulActivityVariationDeleted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
17554
|
+
return this.encode(message, writer).ldelim();
|
|
17555
|
+
};
|
|
17556
|
+
|
|
17557
|
+
/**
|
|
17558
|
+
* Decodes a ContentfulActivityVariationDeleted message from the specified reader or buffer.
|
|
17559
|
+
* @function decode
|
|
17560
|
+
* @memberof ContentfulActivityVariationDeleted
|
|
17561
|
+
* @static
|
|
17562
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
17563
|
+
* @param {number} [length] Message length if known beforehand
|
|
17564
|
+
* @returns {ContentfulActivityVariationDeleted} ContentfulActivityVariationDeleted
|
|
17565
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
17566
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
17567
|
+
*/
|
|
17568
|
+
ContentfulActivityVariationDeleted.decode = function decode(reader, length) {
|
|
17569
|
+
if (!(reader instanceof $Reader))
|
|
17570
|
+
reader = $Reader.create(reader);
|
|
17571
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulActivityVariationDeleted();
|
|
17572
|
+
while (reader.pos < end) {
|
|
17573
|
+
var tag = reader.uint32();
|
|
17574
|
+
switch (tag >>> 3) {
|
|
17575
|
+
case 1:
|
|
17576
|
+
message.slug = reader.string();
|
|
17577
|
+
break;
|
|
17578
|
+
case 2:
|
|
17579
|
+
message.deletedAt = reader.uint64();
|
|
17580
|
+
break;
|
|
17581
|
+
default:
|
|
17582
|
+
reader.skipType(tag & 7);
|
|
17583
|
+
break;
|
|
17584
|
+
}
|
|
17585
|
+
}
|
|
17586
|
+
return message;
|
|
17587
|
+
};
|
|
17588
|
+
|
|
17589
|
+
/**
|
|
17590
|
+
* Decodes a ContentfulActivityVariationDeleted message from the specified reader or buffer, length delimited.
|
|
17591
|
+
* @function decodeDelimited
|
|
17592
|
+
* @memberof ContentfulActivityVariationDeleted
|
|
17593
|
+
* @static
|
|
17594
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
17595
|
+
* @returns {ContentfulActivityVariationDeleted} ContentfulActivityVariationDeleted
|
|
17596
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
17597
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
17598
|
+
*/
|
|
17599
|
+
ContentfulActivityVariationDeleted.decodeDelimited = function decodeDelimited(reader) {
|
|
17600
|
+
if (!(reader instanceof $Reader))
|
|
17601
|
+
reader = new $Reader(reader);
|
|
17602
|
+
return this.decode(reader, reader.uint32());
|
|
17603
|
+
};
|
|
17604
|
+
|
|
17605
|
+
/**
|
|
17606
|
+
* Verifies a ContentfulActivityVariationDeleted message.
|
|
17607
|
+
* @function verify
|
|
17608
|
+
* @memberof ContentfulActivityVariationDeleted
|
|
17609
|
+
* @static
|
|
17610
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
17611
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
17612
|
+
*/
|
|
17613
|
+
ContentfulActivityVariationDeleted.verify = function verify(message) {
|
|
17614
|
+
if (typeof message !== "object" || message === null)
|
|
17615
|
+
return "object expected";
|
|
17616
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
17617
|
+
if (!$util.isString(message.slug))
|
|
17618
|
+
return "slug: string expected";
|
|
17619
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
17620
|
+
if (!$util.isInteger(message.deletedAt) && !(message.deletedAt && $util.isInteger(message.deletedAt.low) && $util.isInteger(message.deletedAt.high)))
|
|
17621
|
+
return "deletedAt: integer|Long expected";
|
|
17622
|
+
return null;
|
|
17623
|
+
};
|
|
17624
|
+
|
|
17625
|
+
/**
|
|
17626
|
+
* Creates a ContentfulActivityVariationDeleted message from a plain object. Also converts values to their respective internal types.
|
|
17627
|
+
* @function fromObject
|
|
17628
|
+
* @memberof ContentfulActivityVariationDeleted
|
|
17629
|
+
* @static
|
|
17630
|
+
* @param {Object.<string,*>} object Plain object
|
|
17631
|
+
* @returns {ContentfulActivityVariationDeleted} ContentfulActivityVariationDeleted
|
|
17632
|
+
*/
|
|
17633
|
+
ContentfulActivityVariationDeleted.fromObject = function fromObject(object) {
|
|
17634
|
+
if (object instanceof $root.ContentfulActivityVariationDeleted)
|
|
17635
|
+
return object;
|
|
17636
|
+
var message = new $root.ContentfulActivityVariationDeleted();
|
|
17637
|
+
if (object.slug != null)
|
|
17638
|
+
message.slug = String(object.slug);
|
|
17639
|
+
if (object.deletedAt != null)
|
|
17640
|
+
if ($util.Long)
|
|
17641
|
+
(message.deletedAt = $util.Long.fromValue(object.deletedAt)).unsigned = true;
|
|
17642
|
+
else if (typeof object.deletedAt === "string")
|
|
17643
|
+
message.deletedAt = parseInt(object.deletedAt, 10);
|
|
17644
|
+
else if (typeof object.deletedAt === "number")
|
|
17645
|
+
message.deletedAt = object.deletedAt;
|
|
17646
|
+
else if (typeof object.deletedAt === "object")
|
|
17647
|
+
message.deletedAt = new $util.LongBits(object.deletedAt.low >>> 0, object.deletedAt.high >>> 0).toNumber(true);
|
|
17648
|
+
return message;
|
|
17649
|
+
};
|
|
17650
|
+
|
|
17651
|
+
/**
|
|
17652
|
+
* Creates a plain object from a ContentfulActivityVariationDeleted message. Also converts values to other types if specified.
|
|
17653
|
+
* @function toObject
|
|
17654
|
+
* @memberof ContentfulActivityVariationDeleted
|
|
17655
|
+
* @static
|
|
17656
|
+
* @param {ContentfulActivityVariationDeleted} message ContentfulActivityVariationDeleted
|
|
17657
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
17658
|
+
* @returns {Object.<string,*>} Plain object
|
|
17659
|
+
*/
|
|
17660
|
+
ContentfulActivityVariationDeleted.toObject = function toObject(message, options) {
|
|
17661
|
+
if (!options)
|
|
17662
|
+
options = {};
|
|
17663
|
+
var object = {};
|
|
17664
|
+
if (options.defaults) {
|
|
17665
|
+
object.slug = "";
|
|
17666
|
+
if ($util.Long) {
|
|
17667
|
+
var long = new $util.Long(0, 0, true);
|
|
17668
|
+
object.deletedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
17669
|
+
} else
|
|
17670
|
+
object.deletedAt = options.longs === String ? "0" : 0;
|
|
17671
|
+
}
|
|
17672
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
17673
|
+
object.slug = message.slug;
|
|
17674
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
17675
|
+
if (typeof message.deletedAt === "number")
|
|
17676
|
+
object.deletedAt = options.longs === String ? String(message.deletedAt) : message.deletedAt;
|
|
17677
|
+
else
|
|
17678
|
+
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;
|
|
17679
|
+
return object;
|
|
17680
|
+
};
|
|
17681
|
+
|
|
17682
|
+
/**
|
|
17683
|
+
* Converts this ContentfulActivityVariationDeleted to JSON.
|
|
17684
|
+
* @function toJSON
|
|
17685
|
+
* @memberof ContentfulActivityVariationDeleted
|
|
17686
|
+
* @instance
|
|
17687
|
+
* @returns {Object.<string,*>} JSON object
|
|
17688
|
+
*/
|
|
17689
|
+
ContentfulActivityVariationDeleted.prototype.toJSON = function toJSON() {
|
|
17690
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
17691
|
+
};
|
|
17692
|
+
|
|
17693
|
+
return ContentfulActivityVariationDeleted;
|
|
17694
|
+
})();
|
|
17695
|
+
|
|
17696
|
+
$root.ContentfulActivityCreated = (function() {
|
|
17697
|
+
|
|
17698
|
+
/**
|
|
17699
|
+
* Properties of a ContentfulActivityCreated.
|
|
17700
|
+
* @exports IContentfulActivityCreated
|
|
17701
|
+
* @interface IContentfulActivityCreated
|
|
17702
|
+
* @property {Object.<string,string>|null} [name] ContentfulActivityCreated name
|
|
17703
|
+
* @property {string|null} [slug] ContentfulActivityCreated slug
|
|
17704
|
+
* @property {string|null} [format] ContentfulActivityCreated format
|
|
17705
|
+
* @property {string|null} [enabled] ContentfulActivityCreated enabled
|
|
17706
|
+
* @property {Object.<string,contentful.ISlugReferences>|null} [variations] ContentfulActivityCreated variations
|
|
17707
|
+
* @property {Array.<contentful.ISlugReference>|null} [accessGroup] ContentfulActivityCreated accessGroup
|
|
17708
|
+
* @property {number|Long|null} [createdAt] ContentfulActivityCreated createdAt
|
|
17709
|
+
*/
|
|
17710
|
+
|
|
17711
|
+
/**
|
|
17712
|
+
* Constructs a new ContentfulActivityCreated.
|
|
17713
|
+
* @exports ContentfulActivityCreated
|
|
17714
|
+
* @classdesc Represents a ContentfulActivityCreated.
|
|
17715
|
+
* @implements IContentfulActivityCreated
|
|
17716
|
+
* @constructor
|
|
17717
|
+
* @param {IContentfulActivityCreated=} [properties] Properties to set
|
|
17718
|
+
*/
|
|
17719
|
+
function ContentfulActivityCreated(properties) {
|
|
17720
|
+
this.name = {};
|
|
17721
|
+
this.variations = {};
|
|
17722
|
+
this.accessGroup = [];
|
|
17723
|
+
if (properties)
|
|
17724
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
17725
|
+
if (properties[keys[i]] != null)
|
|
17726
|
+
this[keys[i]] = properties[keys[i]];
|
|
17727
|
+
}
|
|
17728
|
+
|
|
17729
|
+
/**
|
|
17730
|
+
* ContentfulActivityCreated name.
|
|
17731
|
+
* @member {Object.<string,string>} name
|
|
17732
|
+
* @memberof ContentfulActivityCreated
|
|
17733
|
+
* @instance
|
|
17734
|
+
*/
|
|
17735
|
+
ContentfulActivityCreated.prototype.name = $util.emptyObject;
|
|
17736
|
+
|
|
17737
|
+
/**
|
|
17738
|
+
* ContentfulActivityCreated slug.
|
|
17739
|
+
* @member {string} slug
|
|
17740
|
+
* @memberof ContentfulActivityCreated
|
|
17741
|
+
* @instance
|
|
17742
|
+
*/
|
|
17743
|
+
ContentfulActivityCreated.prototype.slug = "";
|
|
17744
|
+
|
|
17745
|
+
/**
|
|
17746
|
+
* ContentfulActivityCreated format.
|
|
17747
|
+
* @member {string} format
|
|
17748
|
+
* @memberof ContentfulActivityCreated
|
|
17749
|
+
* @instance
|
|
17750
|
+
*/
|
|
17751
|
+
ContentfulActivityCreated.prototype.format = "";
|
|
17752
|
+
|
|
17753
|
+
/**
|
|
17754
|
+
* ContentfulActivityCreated enabled.
|
|
17755
|
+
* @member {string} enabled
|
|
17756
|
+
* @memberof ContentfulActivityCreated
|
|
17757
|
+
* @instance
|
|
17758
|
+
*/
|
|
17759
|
+
ContentfulActivityCreated.prototype.enabled = "";
|
|
17760
|
+
|
|
17761
|
+
/**
|
|
17762
|
+
* ContentfulActivityCreated variations.
|
|
17763
|
+
* @member {Object.<string,contentful.ISlugReferences>} variations
|
|
17764
|
+
* @memberof ContentfulActivityCreated
|
|
17765
|
+
* @instance
|
|
17766
|
+
*/
|
|
17767
|
+
ContentfulActivityCreated.prototype.variations = $util.emptyObject;
|
|
17768
|
+
|
|
17769
|
+
/**
|
|
17770
|
+
* ContentfulActivityCreated accessGroup.
|
|
17771
|
+
* @member {Array.<contentful.ISlugReference>} accessGroup
|
|
17772
|
+
* @memberof ContentfulActivityCreated
|
|
17773
|
+
* @instance
|
|
17774
|
+
*/
|
|
17775
|
+
ContentfulActivityCreated.prototype.accessGroup = $util.emptyArray;
|
|
17776
|
+
|
|
17777
|
+
/**
|
|
17778
|
+
* ContentfulActivityCreated createdAt.
|
|
17779
|
+
* @member {number|Long} createdAt
|
|
17780
|
+
* @memberof ContentfulActivityCreated
|
|
17781
|
+
* @instance
|
|
17782
|
+
*/
|
|
17783
|
+
ContentfulActivityCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
17784
|
+
|
|
17785
|
+
/**
|
|
17786
|
+
* Creates a new ContentfulActivityCreated instance using the specified properties.
|
|
17787
|
+
* @function create
|
|
17788
|
+
* @memberof ContentfulActivityCreated
|
|
17789
|
+
* @static
|
|
17790
|
+
* @param {IContentfulActivityCreated=} [properties] Properties to set
|
|
17791
|
+
* @returns {ContentfulActivityCreated} ContentfulActivityCreated instance
|
|
17792
|
+
*/
|
|
17793
|
+
ContentfulActivityCreated.create = function create(properties) {
|
|
17794
|
+
return new ContentfulActivityCreated(properties);
|
|
17795
|
+
};
|
|
17796
|
+
|
|
17797
|
+
/**
|
|
17798
|
+
* Encodes the specified ContentfulActivityCreated message. Does not implicitly {@link ContentfulActivityCreated.verify|verify} messages.
|
|
17799
|
+
* @function encode
|
|
17800
|
+
* @memberof ContentfulActivityCreated
|
|
17801
|
+
* @static
|
|
17802
|
+
* @param {IContentfulActivityCreated} message ContentfulActivityCreated message or plain object to encode
|
|
17803
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
17804
|
+
* @returns {$protobuf.Writer} Writer
|
|
17805
|
+
*/
|
|
17806
|
+
ContentfulActivityCreated.encode = function encode(message, writer) {
|
|
17807
|
+
if (!writer)
|
|
17808
|
+
writer = $Writer.create();
|
|
17809
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
17810
|
+
for (var keys = Object.keys(message.name), i = 0; i < keys.length; ++i)
|
|
17811
|
+
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();
|
|
17812
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
17813
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.slug);
|
|
17814
|
+
if (message.format != null && message.hasOwnProperty("format"))
|
|
17815
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.format);
|
|
17816
|
+
if (message.enabled != null && message.hasOwnProperty("enabled"))
|
|
17817
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.enabled);
|
|
17818
|
+
if (message.variations != null && message.hasOwnProperty("variations"))
|
|
17819
|
+
for (var keys = Object.keys(message.variations), i = 0; i < keys.length; ++i) {
|
|
17820
|
+
writer.uint32(/* id 5, wireType 2 =*/42).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
17821
|
+
$root.contentful.SlugReferences.encode(message.variations[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
17822
|
+
}
|
|
17823
|
+
if (message.accessGroup != null && message.accessGroup.length)
|
|
17824
|
+
for (var i = 0; i < message.accessGroup.length; ++i)
|
|
17825
|
+
$root.contentful.SlugReference.encode(message.accessGroup[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
17826
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
17827
|
+
writer.uint32(/* id 7, wireType 0 =*/56).uint64(message.createdAt);
|
|
17828
|
+
return writer;
|
|
17829
|
+
};
|
|
17830
|
+
|
|
17831
|
+
/**
|
|
17832
|
+
* Encodes the specified ContentfulActivityCreated message, length delimited. Does not implicitly {@link ContentfulActivityCreated.verify|verify} messages.
|
|
17833
|
+
* @function encodeDelimited
|
|
17834
|
+
* @memberof ContentfulActivityCreated
|
|
17835
|
+
* @static
|
|
17836
|
+
* @param {IContentfulActivityCreated} message ContentfulActivityCreated message or plain object to encode
|
|
17837
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
17838
|
+
* @returns {$protobuf.Writer} Writer
|
|
17839
|
+
*/
|
|
17840
|
+
ContentfulActivityCreated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
17841
|
+
return this.encode(message, writer).ldelim();
|
|
17842
|
+
};
|
|
17843
|
+
|
|
17844
|
+
/**
|
|
17845
|
+
* Decodes a ContentfulActivityCreated message from the specified reader or buffer.
|
|
17846
|
+
* @function decode
|
|
17847
|
+
* @memberof ContentfulActivityCreated
|
|
17848
|
+
* @static
|
|
17849
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
17850
|
+
* @param {number} [length] Message length if known beforehand
|
|
17851
|
+
* @returns {ContentfulActivityCreated} ContentfulActivityCreated
|
|
17852
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
17853
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
17854
|
+
*/
|
|
17855
|
+
ContentfulActivityCreated.decode = function decode(reader, length) {
|
|
17856
|
+
if (!(reader instanceof $Reader))
|
|
17857
|
+
reader = $Reader.create(reader);
|
|
17858
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulActivityCreated(), key;
|
|
17859
|
+
while (reader.pos < end) {
|
|
17860
|
+
var tag = reader.uint32();
|
|
17861
|
+
switch (tag >>> 3) {
|
|
17862
|
+
case 1:
|
|
17863
|
+
reader.skip().pos++;
|
|
17864
|
+
if (message.name === $util.emptyObject)
|
|
17865
|
+
message.name = {};
|
|
17866
|
+
key = reader.string();
|
|
17867
|
+
reader.pos++;
|
|
17868
|
+
message.name[key] = reader.string();
|
|
17869
|
+
break;
|
|
17870
|
+
case 2:
|
|
17871
|
+
message.slug = reader.string();
|
|
17872
|
+
break;
|
|
17873
|
+
case 3:
|
|
17874
|
+
message.format = reader.string();
|
|
17875
|
+
break;
|
|
17876
|
+
case 4:
|
|
17877
|
+
message.enabled = reader.string();
|
|
17878
|
+
break;
|
|
17879
|
+
case 5:
|
|
17880
|
+
reader.skip().pos++;
|
|
17881
|
+
if (message.variations === $util.emptyObject)
|
|
17882
|
+
message.variations = {};
|
|
17883
|
+
key = reader.string();
|
|
17884
|
+
reader.pos++;
|
|
17885
|
+
message.variations[key] = $root.contentful.SlugReferences.decode(reader, reader.uint32());
|
|
17886
|
+
break;
|
|
17887
|
+
case 6:
|
|
17888
|
+
if (!(message.accessGroup && message.accessGroup.length))
|
|
17889
|
+
message.accessGroup = [];
|
|
17890
|
+
message.accessGroup.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
17891
|
+
break;
|
|
17892
|
+
case 7:
|
|
17893
|
+
message.createdAt = reader.uint64();
|
|
17894
|
+
break;
|
|
17895
|
+
default:
|
|
17896
|
+
reader.skipType(tag & 7);
|
|
17897
|
+
break;
|
|
17898
|
+
}
|
|
17899
|
+
}
|
|
17900
|
+
return message;
|
|
17901
|
+
};
|
|
17902
|
+
|
|
17903
|
+
/**
|
|
17904
|
+
* Decodes a ContentfulActivityCreated message from the specified reader or buffer, length delimited.
|
|
17905
|
+
* @function decodeDelimited
|
|
17906
|
+
* @memberof ContentfulActivityCreated
|
|
17907
|
+
* @static
|
|
17908
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
17909
|
+
* @returns {ContentfulActivityCreated} ContentfulActivityCreated
|
|
17910
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
17911
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
17912
|
+
*/
|
|
17913
|
+
ContentfulActivityCreated.decodeDelimited = function decodeDelimited(reader) {
|
|
17914
|
+
if (!(reader instanceof $Reader))
|
|
17915
|
+
reader = new $Reader(reader);
|
|
17916
|
+
return this.decode(reader, reader.uint32());
|
|
17917
|
+
};
|
|
17918
|
+
|
|
17919
|
+
/**
|
|
17920
|
+
* Verifies a ContentfulActivityCreated message.
|
|
17921
|
+
* @function verify
|
|
17922
|
+
* @memberof ContentfulActivityCreated
|
|
17923
|
+
* @static
|
|
17924
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
17925
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
17926
|
+
*/
|
|
17927
|
+
ContentfulActivityCreated.verify = function verify(message) {
|
|
17928
|
+
if (typeof message !== "object" || message === null)
|
|
17929
|
+
return "object expected";
|
|
17930
|
+
if (message.name != null && message.hasOwnProperty("name")) {
|
|
17931
|
+
if (!$util.isObject(message.name))
|
|
17932
|
+
return "name: object expected";
|
|
17933
|
+
var key = Object.keys(message.name);
|
|
17934
|
+
for (var i = 0; i < key.length; ++i)
|
|
17935
|
+
if (!$util.isString(message.name[key[i]]))
|
|
17936
|
+
return "name: string{k:string} expected";
|
|
17937
|
+
}
|
|
17938
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
17939
|
+
if (!$util.isString(message.slug))
|
|
17940
|
+
return "slug: string expected";
|
|
17941
|
+
if (message.format != null && message.hasOwnProperty("format"))
|
|
17942
|
+
if (!$util.isString(message.format))
|
|
17943
|
+
return "format: string expected";
|
|
17944
|
+
if (message.enabled != null && message.hasOwnProperty("enabled"))
|
|
17945
|
+
if (!$util.isString(message.enabled))
|
|
17946
|
+
return "enabled: string expected";
|
|
17947
|
+
if (message.variations != null && message.hasOwnProperty("variations")) {
|
|
17948
|
+
if (!$util.isObject(message.variations))
|
|
17949
|
+
return "variations: object expected";
|
|
17950
|
+
var key = Object.keys(message.variations);
|
|
17951
|
+
for (var i = 0; i < key.length; ++i) {
|
|
17952
|
+
var error = $root.contentful.SlugReferences.verify(message.variations[key[i]]);
|
|
17953
|
+
if (error)
|
|
17954
|
+
return "variations." + error;
|
|
17955
|
+
}
|
|
17956
|
+
}
|
|
17957
|
+
if (message.accessGroup != null && message.hasOwnProperty("accessGroup")) {
|
|
17958
|
+
if (!Array.isArray(message.accessGroup))
|
|
17959
|
+
return "accessGroup: array expected";
|
|
17960
|
+
for (var i = 0; i < message.accessGroup.length; ++i) {
|
|
17961
|
+
var error = $root.contentful.SlugReference.verify(message.accessGroup[i]);
|
|
17962
|
+
if (error)
|
|
17963
|
+
return "accessGroup." + error;
|
|
17964
|
+
}
|
|
17965
|
+
}
|
|
17966
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
17967
|
+
if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
|
|
17968
|
+
return "createdAt: integer|Long expected";
|
|
17969
|
+
return null;
|
|
17970
|
+
};
|
|
17971
|
+
|
|
17972
|
+
/**
|
|
17973
|
+
* Creates a ContentfulActivityCreated message from a plain object. Also converts values to their respective internal types.
|
|
17974
|
+
* @function fromObject
|
|
17975
|
+
* @memberof ContentfulActivityCreated
|
|
17976
|
+
* @static
|
|
17977
|
+
* @param {Object.<string,*>} object Plain object
|
|
17978
|
+
* @returns {ContentfulActivityCreated} ContentfulActivityCreated
|
|
17979
|
+
*/
|
|
17980
|
+
ContentfulActivityCreated.fromObject = function fromObject(object) {
|
|
17981
|
+
if (object instanceof $root.ContentfulActivityCreated)
|
|
17982
|
+
return object;
|
|
17983
|
+
var message = new $root.ContentfulActivityCreated();
|
|
17984
|
+
if (object.name) {
|
|
17985
|
+
if (typeof object.name !== "object")
|
|
17986
|
+
throw TypeError(".ContentfulActivityCreated.name: object expected");
|
|
17987
|
+
message.name = {};
|
|
17988
|
+
for (var keys = Object.keys(object.name), i = 0; i < keys.length; ++i)
|
|
17989
|
+
message.name[keys[i]] = String(object.name[keys[i]]);
|
|
17990
|
+
}
|
|
17991
|
+
if (object.slug != null)
|
|
17992
|
+
message.slug = String(object.slug);
|
|
17993
|
+
if (object.format != null)
|
|
17994
|
+
message.format = String(object.format);
|
|
17995
|
+
if (object.enabled != null)
|
|
17996
|
+
message.enabled = String(object.enabled);
|
|
17997
|
+
if (object.variations) {
|
|
17998
|
+
if (typeof object.variations !== "object")
|
|
17999
|
+
throw TypeError(".ContentfulActivityCreated.variations: object expected");
|
|
18000
|
+
message.variations = {};
|
|
18001
|
+
for (var keys = Object.keys(object.variations), i = 0; i < keys.length; ++i) {
|
|
18002
|
+
if (typeof object.variations[keys[i]] !== "object")
|
|
18003
|
+
throw TypeError(".ContentfulActivityCreated.variations: object expected");
|
|
18004
|
+
message.variations[keys[i]] = $root.contentful.SlugReferences.fromObject(object.variations[keys[i]]);
|
|
18005
|
+
}
|
|
18006
|
+
}
|
|
18007
|
+
if (object.accessGroup) {
|
|
18008
|
+
if (!Array.isArray(object.accessGroup))
|
|
18009
|
+
throw TypeError(".ContentfulActivityCreated.accessGroup: array expected");
|
|
18010
|
+
message.accessGroup = [];
|
|
18011
|
+
for (var i = 0; i < object.accessGroup.length; ++i) {
|
|
18012
|
+
if (typeof object.accessGroup[i] !== "object")
|
|
18013
|
+
throw TypeError(".ContentfulActivityCreated.accessGroup: object expected");
|
|
18014
|
+
message.accessGroup[i] = $root.contentful.SlugReference.fromObject(object.accessGroup[i]);
|
|
18015
|
+
}
|
|
18016
|
+
}
|
|
18017
|
+
if (object.createdAt != null)
|
|
18018
|
+
if ($util.Long)
|
|
18019
|
+
(message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
|
|
18020
|
+
else if (typeof object.createdAt === "string")
|
|
18021
|
+
message.createdAt = parseInt(object.createdAt, 10);
|
|
18022
|
+
else if (typeof object.createdAt === "number")
|
|
18023
|
+
message.createdAt = object.createdAt;
|
|
18024
|
+
else if (typeof object.createdAt === "object")
|
|
18025
|
+
message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
|
|
18026
|
+
return message;
|
|
18027
|
+
};
|
|
18028
|
+
|
|
18029
|
+
/**
|
|
18030
|
+
* Creates a plain object from a ContentfulActivityCreated message. Also converts values to other types if specified.
|
|
18031
|
+
* @function toObject
|
|
18032
|
+
* @memberof ContentfulActivityCreated
|
|
18033
|
+
* @static
|
|
18034
|
+
* @param {ContentfulActivityCreated} message ContentfulActivityCreated
|
|
18035
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
18036
|
+
* @returns {Object.<string,*>} Plain object
|
|
18037
|
+
*/
|
|
18038
|
+
ContentfulActivityCreated.toObject = function toObject(message, options) {
|
|
18039
|
+
if (!options)
|
|
18040
|
+
options = {};
|
|
18041
|
+
var object = {};
|
|
18042
|
+
if (options.arrays || options.defaults)
|
|
18043
|
+
object.accessGroup = [];
|
|
18044
|
+
if (options.objects || options.defaults) {
|
|
18045
|
+
object.name = {};
|
|
18046
|
+
object.variations = {};
|
|
18047
|
+
}
|
|
18048
|
+
if (options.defaults) {
|
|
18049
|
+
object.slug = "";
|
|
18050
|
+
object.format = "";
|
|
18051
|
+
object.enabled = "";
|
|
18052
|
+
if ($util.Long) {
|
|
18053
|
+
var long = new $util.Long(0, 0, true);
|
|
18054
|
+
object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
18055
|
+
} else
|
|
18056
|
+
object.createdAt = options.longs === String ? "0" : 0;
|
|
18057
|
+
}
|
|
18058
|
+
var keys2;
|
|
18059
|
+
if (message.name && (keys2 = Object.keys(message.name)).length) {
|
|
18060
|
+
object.name = {};
|
|
18061
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
18062
|
+
object.name[keys2[j]] = message.name[keys2[j]];
|
|
18063
|
+
}
|
|
18064
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
18065
|
+
object.slug = message.slug;
|
|
18066
|
+
if (message.format != null && message.hasOwnProperty("format"))
|
|
18067
|
+
object.format = message.format;
|
|
18068
|
+
if (message.enabled != null && message.hasOwnProperty("enabled"))
|
|
18069
|
+
object.enabled = message.enabled;
|
|
18070
|
+
if (message.variations && (keys2 = Object.keys(message.variations)).length) {
|
|
18071
|
+
object.variations = {};
|
|
18072
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
18073
|
+
object.variations[keys2[j]] = $root.contentful.SlugReferences.toObject(message.variations[keys2[j]], options);
|
|
18074
|
+
}
|
|
18075
|
+
if (message.accessGroup && message.accessGroup.length) {
|
|
18076
|
+
object.accessGroup = [];
|
|
18077
|
+
for (var j = 0; j < message.accessGroup.length; ++j)
|
|
18078
|
+
object.accessGroup[j] = $root.contentful.SlugReference.toObject(message.accessGroup[j], options);
|
|
18079
|
+
}
|
|
18080
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
18081
|
+
if (typeof message.createdAt === "number")
|
|
18082
|
+
object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
|
|
18083
|
+
else
|
|
18084
|
+
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;
|
|
18085
|
+
return object;
|
|
18086
|
+
};
|
|
18087
|
+
|
|
18088
|
+
/**
|
|
18089
|
+
* Converts this ContentfulActivityCreated to JSON.
|
|
18090
|
+
* @function toJSON
|
|
18091
|
+
* @memberof ContentfulActivityCreated
|
|
18092
|
+
* @instance
|
|
18093
|
+
* @returns {Object.<string,*>} JSON object
|
|
18094
|
+
*/
|
|
18095
|
+
ContentfulActivityCreated.prototype.toJSON = function toJSON() {
|
|
18096
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
18097
|
+
};
|
|
18098
|
+
|
|
18099
|
+
return ContentfulActivityCreated;
|
|
18100
|
+
})();
|
|
18101
|
+
|
|
18102
|
+
$root.ContentfulActivityUpdated = (function() {
|
|
18103
|
+
|
|
18104
|
+
/**
|
|
18105
|
+
* Properties of a ContentfulActivityUpdated.
|
|
18106
|
+
* @exports IContentfulActivityUpdated
|
|
18107
|
+
* @interface IContentfulActivityUpdated
|
|
18108
|
+
* @property {Object.<string,string>|null} [name] ContentfulActivityUpdated name
|
|
18109
|
+
* @property {string|null} [slug] ContentfulActivityUpdated slug
|
|
18110
|
+
* @property {string|null} [format] ContentfulActivityUpdated format
|
|
18111
|
+
* @property {string|null} [enabled] ContentfulActivityUpdated enabled
|
|
18112
|
+
* @property {Object.<string,contentful.ISlugReferences>|null} [variations] ContentfulActivityUpdated variations
|
|
18113
|
+
* @property {Array.<contentful.ISlugReference>|null} [accessGroup] ContentfulActivityUpdated accessGroup
|
|
18114
|
+
* @property {number|Long|null} [updatedAt] ContentfulActivityUpdated updatedAt
|
|
18115
|
+
*/
|
|
18116
|
+
|
|
18117
|
+
/**
|
|
18118
|
+
* Constructs a new ContentfulActivityUpdated.
|
|
18119
|
+
* @exports ContentfulActivityUpdated
|
|
18120
|
+
* @classdesc Represents a ContentfulActivityUpdated.
|
|
18121
|
+
* @implements IContentfulActivityUpdated
|
|
18122
|
+
* @constructor
|
|
18123
|
+
* @param {IContentfulActivityUpdated=} [properties] Properties to set
|
|
18124
|
+
*/
|
|
18125
|
+
function ContentfulActivityUpdated(properties) {
|
|
18126
|
+
this.name = {};
|
|
18127
|
+
this.variations = {};
|
|
18128
|
+
this.accessGroup = [];
|
|
18129
|
+
if (properties)
|
|
18130
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
18131
|
+
if (properties[keys[i]] != null)
|
|
18132
|
+
this[keys[i]] = properties[keys[i]];
|
|
18133
|
+
}
|
|
18134
|
+
|
|
18135
|
+
/**
|
|
18136
|
+
* ContentfulActivityUpdated name.
|
|
18137
|
+
* @member {Object.<string,string>} name
|
|
18138
|
+
* @memberof ContentfulActivityUpdated
|
|
18139
|
+
* @instance
|
|
18140
|
+
*/
|
|
18141
|
+
ContentfulActivityUpdated.prototype.name = $util.emptyObject;
|
|
18142
|
+
|
|
18143
|
+
/**
|
|
18144
|
+
* ContentfulActivityUpdated slug.
|
|
18145
|
+
* @member {string} slug
|
|
18146
|
+
* @memberof ContentfulActivityUpdated
|
|
18147
|
+
* @instance
|
|
18148
|
+
*/
|
|
18149
|
+
ContentfulActivityUpdated.prototype.slug = "";
|
|
18150
|
+
|
|
18151
|
+
/**
|
|
18152
|
+
* ContentfulActivityUpdated format.
|
|
18153
|
+
* @member {string} format
|
|
18154
|
+
* @memberof ContentfulActivityUpdated
|
|
18155
|
+
* @instance
|
|
18156
|
+
*/
|
|
18157
|
+
ContentfulActivityUpdated.prototype.format = "";
|
|
18158
|
+
|
|
18159
|
+
/**
|
|
18160
|
+
* ContentfulActivityUpdated enabled.
|
|
18161
|
+
* @member {string} enabled
|
|
18162
|
+
* @memberof ContentfulActivityUpdated
|
|
18163
|
+
* @instance
|
|
18164
|
+
*/
|
|
18165
|
+
ContentfulActivityUpdated.prototype.enabled = "";
|
|
18166
|
+
|
|
18167
|
+
/**
|
|
18168
|
+
* ContentfulActivityUpdated variations.
|
|
18169
|
+
* @member {Object.<string,contentful.ISlugReferences>} variations
|
|
18170
|
+
* @memberof ContentfulActivityUpdated
|
|
18171
|
+
* @instance
|
|
18172
|
+
*/
|
|
18173
|
+
ContentfulActivityUpdated.prototype.variations = $util.emptyObject;
|
|
18174
|
+
|
|
18175
|
+
/**
|
|
18176
|
+
* ContentfulActivityUpdated accessGroup.
|
|
18177
|
+
* @member {Array.<contentful.ISlugReference>} accessGroup
|
|
18178
|
+
* @memberof ContentfulActivityUpdated
|
|
18179
|
+
* @instance
|
|
18180
|
+
*/
|
|
18181
|
+
ContentfulActivityUpdated.prototype.accessGroup = $util.emptyArray;
|
|
18182
|
+
|
|
18183
|
+
/**
|
|
18184
|
+
* ContentfulActivityUpdated updatedAt.
|
|
18185
|
+
* @member {number|Long} updatedAt
|
|
18186
|
+
* @memberof ContentfulActivityUpdated
|
|
18187
|
+
* @instance
|
|
18188
|
+
*/
|
|
18189
|
+
ContentfulActivityUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
18190
|
+
|
|
18191
|
+
/**
|
|
18192
|
+
* Creates a new ContentfulActivityUpdated instance using the specified properties.
|
|
18193
|
+
* @function create
|
|
18194
|
+
* @memberof ContentfulActivityUpdated
|
|
18195
|
+
* @static
|
|
18196
|
+
* @param {IContentfulActivityUpdated=} [properties] Properties to set
|
|
18197
|
+
* @returns {ContentfulActivityUpdated} ContentfulActivityUpdated instance
|
|
18198
|
+
*/
|
|
18199
|
+
ContentfulActivityUpdated.create = function create(properties) {
|
|
18200
|
+
return new ContentfulActivityUpdated(properties);
|
|
18201
|
+
};
|
|
18202
|
+
|
|
18203
|
+
/**
|
|
18204
|
+
* Encodes the specified ContentfulActivityUpdated message. Does not implicitly {@link ContentfulActivityUpdated.verify|verify} messages.
|
|
18205
|
+
* @function encode
|
|
18206
|
+
* @memberof ContentfulActivityUpdated
|
|
18207
|
+
* @static
|
|
18208
|
+
* @param {IContentfulActivityUpdated} message ContentfulActivityUpdated message or plain object to encode
|
|
18209
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
18210
|
+
* @returns {$protobuf.Writer} Writer
|
|
18211
|
+
*/
|
|
18212
|
+
ContentfulActivityUpdated.encode = function encode(message, writer) {
|
|
18213
|
+
if (!writer)
|
|
18214
|
+
writer = $Writer.create();
|
|
18215
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
18216
|
+
for (var keys = Object.keys(message.name), i = 0; i < keys.length; ++i)
|
|
18217
|
+
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();
|
|
18218
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
18219
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.slug);
|
|
18220
|
+
if (message.format != null && message.hasOwnProperty("format"))
|
|
18221
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.format);
|
|
18222
|
+
if (message.enabled != null && message.hasOwnProperty("enabled"))
|
|
18223
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.enabled);
|
|
18224
|
+
if (message.variations != null && message.hasOwnProperty("variations"))
|
|
18225
|
+
for (var keys = Object.keys(message.variations), i = 0; i < keys.length; ++i) {
|
|
18226
|
+
writer.uint32(/* id 5, wireType 2 =*/42).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
18227
|
+
$root.contentful.SlugReferences.encode(message.variations[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
18228
|
+
}
|
|
18229
|
+
if (message.accessGroup != null && message.accessGroup.length)
|
|
18230
|
+
for (var i = 0; i < message.accessGroup.length; ++i)
|
|
18231
|
+
$root.contentful.SlugReference.encode(message.accessGroup[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
18232
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
18233
|
+
writer.uint32(/* id 7, wireType 0 =*/56).uint64(message.updatedAt);
|
|
18234
|
+
return writer;
|
|
18235
|
+
};
|
|
18236
|
+
|
|
18237
|
+
/**
|
|
18238
|
+
* Encodes the specified ContentfulActivityUpdated message, length delimited. Does not implicitly {@link ContentfulActivityUpdated.verify|verify} messages.
|
|
18239
|
+
* @function encodeDelimited
|
|
18240
|
+
* @memberof ContentfulActivityUpdated
|
|
18241
|
+
* @static
|
|
18242
|
+
* @param {IContentfulActivityUpdated} message ContentfulActivityUpdated message or plain object to encode
|
|
18243
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
18244
|
+
* @returns {$protobuf.Writer} Writer
|
|
18245
|
+
*/
|
|
18246
|
+
ContentfulActivityUpdated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
18247
|
+
return this.encode(message, writer).ldelim();
|
|
18248
|
+
};
|
|
18249
|
+
|
|
18250
|
+
/**
|
|
18251
|
+
* Decodes a ContentfulActivityUpdated message from the specified reader or buffer.
|
|
18252
|
+
* @function decode
|
|
18253
|
+
* @memberof ContentfulActivityUpdated
|
|
18254
|
+
* @static
|
|
18255
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
18256
|
+
* @param {number} [length] Message length if known beforehand
|
|
18257
|
+
* @returns {ContentfulActivityUpdated} ContentfulActivityUpdated
|
|
18258
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
18259
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
18260
|
+
*/
|
|
18261
|
+
ContentfulActivityUpdated.decode = function decode(reader, length) {
|
|
18262
|
+
if (!(reader instanceof $Reader))
|
|
18263
|
+
reader = $Reader.create(reader);
|
|
18264
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulActivityUpdated(), key;
|
|
18265
|
+
while (reader.pos < end) {
|
|
18266
|
+
var tag = reader.uint32();
|
|
18267
|
+
switch (tag >>> 3) {
|
|
18268
|
+
case 1:
|
|
18269
|
+
reader.skip().pos++;
|
|
18270
|
+
if (message.name === $util.emptyObject)
|
|
18271
|
+
message.name = {};
|
|
18272
|
+
key = reader.string();
|
|
18273
|
+
reader.pos++;
|
|
18274
|
+
message.name[key] = reader.string();
|
|
18275
|
+
break;
|
|
18276
|
+
case 2:
|
|
18277
|
+
message.slug = reader.string();
|
|
18278
|
+
break;
|
|
18279
|
+
case 3:
|
|
18280
|
+
message.format = reader.string();
|
|
18281
|
+
break;
|
|
18282
|
+
case 4:
|
|
18283
|
+
message.enabled = reader.string();
|
|
18284
|
+
break;
|
|
18285
|
+
case 5:
|
|
18286
|
+
reader.skip().pos++;
|
|
18287
|
+
if (message.variations === $util.emptyObject)
|
|
18288
|
+
message.variations = {};
|
|
18289
|
+
key = reader.string();
|
|
18290
|
+
reader.pos++;
|
|
18291
|
+
message.variations[key] = $root.contentful.SlugReferences.decode(reader, reader.uint32());
|
|
18292
|
+
break;
|
|
18293
|
+
case 6:
|
|
18294
|
+
if (!(message.accessGroup && message.accessGroup.length))
|
|
18295
|
+
message.accessGroup = [];
|
|
18296
|
+
message.accessGroup.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
18297
|
+
break;
|
|
18298
|
+
case 7:
|
|
18299
|
+
message.updatedAt = reader.uint64();
|
|
18300
|
+
break;
|
|
18301
|
+
default:
|
|
18302
|
+
reader.skipType(tag & 7);
|
|
18303
|
+
break;
|
|
18304
|
+
}
|
|
18305
|
+
}
|
|
18306
|
+
return message;
|
|
18307
|
+
};
|
|
18308
|
+
|
|
18309
|
+
/**
|
|
18310
|
+
* Decodes a ContentfulActivityUpdated message from the specified reader or buffer, length delimited.
|
|
18311
|
+
* @function decodeDelimited
|
|
18312
|
+
* @memberof ContentfulActivityUpdated
|
|
18313
|
+
* @static
|
|
18314
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
18315
|
+
* @returns {ContentfulActivityUpdated} ContentfulActivityUpdated
|
|
18316
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
18317
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
18318
|
+
*/
|
|
18319
|
+
ContentfulActivityUpdated.decodeDelimited = function decodeDelimited(reader) {
|
|
18320
|
+
if (!(reader instanceof $Reader))
|
|
18321
|
+
reader = new $Reader(reader);
|
|
18322
|
+
return this.decode(reader, reader.uint32());
|
|
18323
|
+
};
|
|
18324
|
+
|
|
18325
|
+
/**
|
|
18326
|
+
* Verifies a ContentfulActivityUpdated message.
|
|
18327
|
+
* @function verify
|
|
18328
|
+
* @memberof ContentfulActivityUpdated
|
|
18329
|
+
* @static
|
|
18330
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
18331
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
18332
|
+
*/
|
|
18333
|
+
ContentfulActivityUpdated.verify = function verify(message) {
|
|
18334
|
+
if (typeof message !== "object" || message === null)
|
|
18335
|
+
return "object expected";
|
|
18336
|
+
if (message.name != null && message.hasOwnProperty("name")) {
|
|
18337
|
+
if (!$util.isObject(message.name))
|
|
18338
|
+
return "name: object expected";
|
|
18339
|
+
var key = Object.keys(message.name);
|
|
18340
|
+
for (var i = 0; i < key.length; ++i)
|
|
18341
|
+
if (!$util.isString(message.name[key[i]]))
|
|
18342
|
+
return "name: string{k:string} expected";
|
|
18343
|
+
}
|
|
18344
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
18345
|
+
if (!$util.isString(message.slug))
|
|
18346
|
+
return "slug: string expected";
|
|
18347
|
+
if (message.format != null && message.hasOwnProperty("format"))
|
|
18348
|
+
if (!$util.isString(message.format))
|
|
18349
|
+
return "format: string expected";
|
|
18350
|
+
if (message.enabled != null && message.hasOwnProperty("enabled"))
|
|
18351
|
+
if (!$util.isString(message.enabled))
|
|
18352
|
+
return "enabled: string expected";
|
|
18353
|
+
if (message.variations != null && message.hasOwnProperty("variations")) {
|
|
18354
|
+
if (!$util.isObject(message.variations))
|
|
18355
|
+
return "variations: object expected";
|
|
18356
|
+
var key = Object.keys(message.variations);
|
|
18357
|
+
for (var i = 0; i < key.length; ++i) {
|
|
18358
|
+
var error = $root.contentful.SlugReferences.verify(message.variations[key[i]]);
|
|
18359
|
+
if (error)
|
|
18360
|
+
return "variations." + error;
|
|
18361
|
+
}
|
|
18362
|
+
}
|
|
18363
|
+
if (message.accessGroup != null && message.hasOwnProperty("accessGroup")) {
|
|
18364
|
+
if (!Array.isArray(message.accessGroup))
|
|
18365
|
+
return "accessGroup: array expected";
|
|
18366
|
+
for (var i = 0; i < message.accessGroup.length; ++i) {
|
|
18367
|
+
var error = $root.contentful.SlugReference.verify(message.accessGroup[i]);
|
|
18368
|
+
if (error)
|
|
18369
|
+
return "accessGroup." + error;
|
|
18370
|
+
}
|
|
18371
|
+
}
|
|
18372
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
18373
|
+
if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
|
|
18374
|
+
return "updatedAt: integer|Long expected";
|
|
18375
|
+
return null;
|
|
18376
|
+
};
|
|
18377
|
+
|
|
18378
|
+
/**
|
|
18379
|
+
* Creates a ContentfulActivityUpdated message from a plain object. Also converts values to their respective internal types.
|
|
18380
|
+
* @function fromObject
|
|
18381
|
+
* @memberof ContentfulActivityUpdated
|
|
18382
|
+
* @static
|
|
18383
|
+
* @param {Object.<string,*>} object Plain object
|
|
18384
|
+
* @returns {ContentfulActivityUpdated} ContentfulActivityUpdated
|
|
18385
|
+
*/
|
|
18386
|
+
ContentfulActivityUpdated.fromObject = function fromObject(object) {
|
|
18387
|
+
if (object instanceof $root.ContentfulActivityUpdated)
|
|
18388
|
+
return object;
|
|
18389
|
+
var message = new $root.ContentfulActivityUpdated();
|
|
18390
|
+
if (object.name) {
|
|
18391
|
+
if (typeof object.name !== "object")
|
|
18392
|
+
throw TypeError(".ContentfulActivityUpdated.name: object expected");
|
|
18393
|
+
message.name = {};
|
|
18394
|
+
for (var keys = Object.keys(object.name), i = 0; i < keys.length; ++i)
|
|
18395
|
+
message.name[keys[i]] = String(object.name[keys[i]]);
|
|
18396
|
+
}
|
|
18397
|
+
if (object.slug != null)
|
|
18398
|
+
message.slug = String(object.slug);
|
|
18399
|
+
if (object.format != null)
|
|
18400
|
+
message.format = String(object.format);
|
|
18401
|
+
if (object.enabled != null)
|
|
18402
|
+
message.enabled = String(object.enabled);
|
|
18403
|
+
if (object.variations) {
|
|
18404
|
+
if (typeof object.variations !== "object")
|
|
18405
|
+
throw TypeError(".ContentfulActivityUpdated.variations: object expected");
|
|
18406
|
+
message.variations = {};
|
|
18407
|
+
for (var keys = Object.keys(object.variations), i = 0; i < keys.length; ++i) {
|
|
18408
|
+
if (typeof object.variations[keys[i]] !== "object")
|
|
18409
|
+
throw TypeError(".ContentfulActivityUpdated.variations: object expected");
|
|
18410
|
+
message.variations[keys[i]] = $root.contentful.SlugReferences.fromObject(object.variations[keys[i]]);
|
|
18411
|
+
}
|
|
18412
|
+
}
|
|
18413
|
+
if (object.accessGroup) {
|
|
18414
|
+
if (!Array.isArray(object.accessGroup))
|
|
18415
|
+
throw TypeError(".ContentfulActivityUpdated.accessGroup: array expected");
|
|
18416
|
+
message.accessGroup = [];
|
|
18417
|
+
for (var i = 0; i < object.accessGroup.length; ++i) {
|
|
18418
|
+
if (typeof object.accessGroup[i] !== "object")
|
|
18419
|
+
throw TypeError(".ContentfulActivityUpdated.accessGroup: object expected");
|
|
18420
|
+
message.accessGroup[i] = $root.contentful.SlugReference.fromObject(object.accessGroup[i]);
|
|
18421
|
+
}
|
|
18422
|
+
}
|
|
18423
|
+
if (object.updatedAt != null)
|
|
18424
|
+
if ($util.Long)
|
|
18425
|
+
(message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
|
|
18426
|
+
else if (typeof object.updatedAt === "string")
|
|
18427
|
+
message.updatedAt = parseInt(object.updatedAt, 10);
|
|
18428
|
+
else if (typeof object.updatedAt === "number")
|
|
18429
|
+
message.updatedAt = object.updatedAt;
|
|
18430
|
+
else if (typeof object.updatedAt === "object")
|
|
18431
|
+
message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
|
|
18432
|
+
return message;
|
|
18433
|
+
};
|
|
18434
|
+
|
|
18435
|
+
/**
|
|
18436
|
+
* Creates a plain object from a ContentfulActivityUpdated message. Also converts values to other types if specified.
|
|
18437
|
+
* @function toObject
|
|
18438
|
+
* @memberof ContentfulActivityUpdated
|
|
18439
|
+
* @static
|
|
18440
|
+
* @param {ContentfulActivityUpdated} message ContentfulActivityUpdated
|
|
18441
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
18442
|
+
* @returns {Object.<string,*>} Plain object
|
|
18443
|
+
*/
|
|
18444
|
+
ContentfulActivityUpdated.toObject = function toObject(message, options) {
|
|
18445
|
+
if (!options)
|
|
18446
|
+
options = {};
|
|
18447
|
+
var object = {};
|
|
18448
|
+
if (options.arrays || options.defaults)
|
|
18449
|
+
object.accessGroup = [];
|
|
18450
|
+
if (options.objects || options.defaults) {
|
|
18451
|
+
object.name = {};
|
|
18452
|
+
object.variations = {};
|
|
18453
|
+
}
|
|
18454
|
+
if (options.defaults) {
|
|
18455
|
+
object.slug = "";
|
|
18456
|
+
object.format = "";
|
|
18457
|
+
object.enabled = "";
|
|
18458
|
+
if ($util.Long) {
|
|
18459
|
+
var long = new $util.Long(0, 0, true);
|
|
18460
|
+
object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
18461
|
+
} else
|
|
18462
|
+
object.updatedAt = options.longs === String ? "0" : 0;
|
|
18463
|
+
}
|
|
18464
|
+
var keys2;
|
|
18465
|
+
if (message.name && (keys2 = Object.keys(message.name)).length) {
|
|
18466
|
+
object.name = {};
|
|
18467
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
18468
|
+
object.name[keys2[j]] = message.name[keys2[j]];
|
|
18469
|
+
}
|
|
18470
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
18471
|
+
object.slug = message.slug;
|
|
18472
|
+
if (message.format != null && message.hasOwnProperty("format"))
|
|
18473
|
+
object.format = message.format;
|
|
18474
|
+
if (message.enabled != null && message.hasOwnProperty("enabled"))
|
|
18475
|
+
object.enabled = message.enabled;
|
|
18476
|
+
if (message.variations && (keys2 = Object.keys(message.variations)).length) {
|
|
18477
|
+
object.variations = {};
|
|
18478
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
18479
|
+
object.variations[keys2[j]] = $root.contentful.SlugReferences.toObject(message.variations[keys2[j]], options);
|
|
18480
|
+
}
|
|
18481
|
+
if (message.accessGroup && message.accessGroup.length) {
|
|
18482
|
+
object.accessGroup = [];
|
|
18483
|
+
for (var j = 0; j < message.accessGroup.length; ++j)
|
|
18484
|
+
object.accessGroup[j] = $root.contentful.SlugReference.toObject(message.accessGroup[j], options);
|
|
18485
|
+
}
|
|
18486
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
18487
|
+
if (typeof message.updatedAt === "number")
|
|
18488
|
+
object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
|
|
18489
|
+
else
|
|
18490
|
+
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;
|
|
18491
|
+
return object;
|
|
18492
|
+
};
|
|
18493
|
+
|
|
18494
|
+
/**
|
|
18495
|
+
* Converts this ContentfulActivityUpdated to JSON.
|
|
18496
|
+
* @function toJSON
|
|
18497
|
+
* @memberof ContentfulActivityUpdated
|
|
18498
|
+
* @instance
|
|
18499
|
+
* @returns {Object.<string,*>} JSON object
|
|
18500
|
+
*/
|
|
18501
|
+
ContentfulActivityUpdated.prototype.toJSON = function toJSON() {
|
|
18502
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
18503
|
+
};
|
|
18504
|
+
|
|
18505
|
+
return ContentfulActivityUpdated;
|
|
18506
|
+
})();
|
|
18507
|
+
|
|
18508
|
+
$root.ContentfulActivityDeleted = (function() {
|
|
18509
|
+
|
|
18510
|
+
/**
|
|
18511
|
+
* Properties of a ContentfulActivityDeleted.
|
|
18512
|
+
* @exports IContentfulActivityDeleted
|
|
18513
|
+
* @interface IContentfulActivityDeleted
|
|
18514
|
+
* @property {string|null} [slug] ContentfulActivityDeleted slug
|
|
18515
|
+
* @property {number|Long|null} [deletedAt] ContentfulActivityDeleted deletedAt
|
|
18516
|
+
*/
|
|
18517
|
+
|
|
18518
|
+
/**
|
|
18519
|
+
* Constructs a new ContentfulActivityDeleted.
|
|
18520
|
+
* @exports ContentfulActivityDeleted
|
|
18521
|
+
* @classdesc Represents a ContentfulActivityDeleted.
|
|
18522
|
+
* @implements IContentfulActivityDeleted
|
|
18523
|
+
* @constructor
|
|
18524
|
+
* @param {IContentfulActivityDeleted=} [properties] Properties to set
|
|
18525
|
+
*/
|
|
18526
|
+
function ContentfulActivityDeleted(properties) {
|
|
18527
|
+
if (properties)
|
|
18528
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
18529
|
+
if (properties[keys[i]] != null)
|
|
18530
|
+
this[keys[i]] = properties[keys[i]];
|
|
18531
|
+
}
|
|
18532
|
+
|
|
18533
|
+
/**
|
|
18534
|
+
* ContentfulActivityDeleted slug.
|
|
18535
|
+
* @member {string} slug
|
|
18536
|
+
* @memberof ContentfulActivityDeleted
|
|
18537
|
+
* @instance
|
|
18538
|
+
*/
|
|
18539
|
+
ContentfulActivityDeleted.prototype.slug = "";
|
|
18540
|
+
|
|
18541
|
+
/**
|
|
18542
|
+
* ContentfulActivityDeleted deletedAt.
|
|
18543
|
+
* @member {number|Long} deletedAt
|
|
18544
|
+
* @memberof ContentfulActivityDeleted
|
|
18545
|
+
* @instance
|
|
18546
|
+
*/
|
|
18547
|
+
ContentfulActivityDeleted.prototype.deletedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
18548
|
+
|
|
18549
|
+
/**
|
|
18550
|
+
* Creates a new ContentfulActivityDeleted instance using the specified properties.
|
|
18551
|
+
* @function create
|
|
18552
|
+
* @memberof ContentfulActivityDeleted
|
|
18553
|
+
* @static
|
|
18554
|
+
* @param {IContentfulActivityDeleted=} [properties] Properties to set
|
|
18555
|
+
* @returns {ContentfulActivityDeleted} ContentfulActivityDeleted instance
|
|
18556
|
+
*/
|
|
18557
|
+
ContentfulActivityDeleted.create = function create(properties) {
|
|
18558
|
+
return new ContentfulActivityDeleted(properties);
|
|
18559
|
+
};
|
|
18560
|
+
|
|
18561
|
+
/**
|
|
18562
|
+
* Encodes the specified ContentfulActivityDeleted message. Does not implicitly {@link ContentfulActivityDeleted.verify|verify} messages.
|
|
18563
|
+
* @function encode
|
|
18564
|
+
* @memberof ContentfulActivityDeleted
|
|
18565
|
+
* @static
|
|
18566
|
+
* @param {IContentfulActivityDeleted} message ContentfulActivityDeleted message or plain object to encode
|
|
18567
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
18568
|
+
* @returns {$protobuf.Writer} Writer
|
|
18569
|
+
*/
|
|
18570
|
+
ContentfulActivityDeleted.encode = function encode(message, writer) {
|
|
18571
|
+
if (!writer)
|
|
18572
|
+
writer = $Writer.create();
|
|
18573
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
18574
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
18575
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
18576
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.deletedAt);
|
|
18577
|
+
return writer;
|
|
18578
|
+
};
|
|
18579
|
+
|
|
18580
|
+
/**
|
|
18581
|
+
* Encodes the specified ContentfulActivityDeleted message, length delimited. Does not implicitly {@link ContentfulActivityDeleted.verify|verify} messages.
|
|
18582
|
+
* @function encodeDelimited
|
|
18583
|
+
* @memberof ContentfulActivityDeleted
|
|
18584
|
+
* @static
|
|
18585
|
+
* @param {IContentfulActivityDeleted} message ContentfulActivityDeleted message or plain object to encode
|
|
18586
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
18587
|
+
* @returns {$protobuf.Writer} Writer
|
|
18588
|
+
*/
|
|
18589
|
+
ContentfulActivityDeleted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
18590
|
+
return this.encode(message, writer).ldelim();
|
|
18591
|
+
};
|
|
18592
|
+
|
|
18593
|
+
/**
|
|
18594
|
+
* Decodes a ContentfulActivityDeleted message from the specified reader or buffer.
|
|
18595
|
+
* @function decode
|
|
18596
|
+
* @memberof ContentfulActivityDeleted
|
|
18597
|
+
* @static
|
|
18598
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
18599
|
+
* @param {number} [length] Message length if known beforehand
|
|
18600
|
+
* @returns {ContentfulActivityDeleted} ContentfulActivityDeleted
|
|
18601
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
18602
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
18603
|
+
*/
|
|
18604
|
+
ContentfulActivityDeleted.decode = function decode(reader, length) {
|
|
18605
|
+
if (!(reader instanceof $Reader))
|
|
18606
|
+
reader = $Reader.create(reader);
|
|
18607
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulActivityDeleted();
|
|
18608
|
+
while (reader.pos < end) {
|
|
18609
|
+
var tag = reader.uint32();
|
|
18610
|
+
switch (tag >>> 3) {
|
|
18611
|
+
case 1:
|
|
18612
|
+
message.slug = reader.string();
|
|
18613
|
+
break;
|
|
18614
|
+
case 2:
|
|
18615
|
+
message.deletedAt = reader.uint64();
|
|
18616
|
+
break;
|
|
18617
|
+
default:
|
|
18618
|
+
reader.skipType(tag & 7);
|
|
18619
|
+
break;
|
|
18620
|
+
}
|
|
18621
|
+
}
|
|
18622
|
+
return message;
|
|
18623
|
+
};
|
|
18624
|
+
|
|
18625
|
+
/**
|
|
18626
|
+
* Decodes a ContentfulActivityDeleted message from the specified reader or buffer, length delimited.
|
|
18627
|
+
* @function decodeDelimited
|
|
18628
|
+
* @memberof ContentfulActivityDeleted
|
|
18629
|
+
* @static
|
|
18630
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
18631
|
+
* @returns {ContentfulActivityDeleted} ContentfulActivityDeleted
|
|
18632
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
18633
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
18634
|
+
*/
|
|
18635
|
+
ContentfulActivityDeleted.decodeDelimited = function decodeDelimited(reader) {
|
|
18636
|
+
if (!(reader instanceof $Reader))
|
|
18637
|
+
reader = new $Reader(reader);
|
|
18638
|
+
return this.decode(reader, reader.uint32());
|
|
18639
|
+
};
|
|
18640
|
+
|
|
18641
|
+
/**
|
|
18642
|
+
* Verifies a ContentfulActivityDeleted message.
|
|
18643
|
+
* @function verify
|
|
18644
|
+
* @memberof ContentfulActivityDeleted
|
|
18645
|
+
* @static
|
|
18646
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
18647
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
18648
|
+
*/
|
|
18649
|
+
ContentfulActivityDeleted.verify = function verify(message) {
|
|
18650
|
+
if (typeof message !== "object" || message === null)
|
|
18651
|
+
return "object expected";
|
|
18652
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
18653
|
+
if (!$util.isString(message.slug))
|
|
18654
|
+
return "slug: string expected";
|
|
18655
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
18656
|
+
if (!$util.isInteger(message.deletedAt) && !(message.deletedAt && $util.isInteger(message.deletedAt.low) && $util.isInteger(message.deletedAt.high)))
|
|
18657
|
+
return "deletedAt: integer|Long expected";
|
|
18658
|
+
return null;
|
|
18659
|
+
};
|
|
18660
|
+
|
|
18661
|
+
/**
|
|
18662
|
+
* Creates a ContentfulActivityDeleted message from a plain object. Also converts values to their respective internal types.
|
|
18663
|
+
* @function fromObject
|
|
18664
|
+
* @memberof ContentfulActivityDeleted
|
|
18665
|
+
* @static
|
|
18666
|
+
* @param {Object.<string,*>} object Plain object
|
|
18667
|
+
* @returns {ContentfulActivityDeleted} ContentfulActivityDeleted
|
|
18668
|
+
*/
|
|
18669
|
+
ContentfulActivityDeleted.fromObject = function fromObject(object) {
|
|
18670
|
+
if (object instanceof $root.ContentfulActivityDeleted)
|
|
18671
|
+
return object;
|
|
18672
|
+
var message = new $root.ContentfulActivityDeleted();
|
|
18673
|
+
if (object.slug != null)
|
|
18674
|
+
message.slug = String(object.slug);
|
|
18675
|
+
if (object.deletedAt != null)
|
|
18676
|
+
if ($util.Long)
|
|
18677
|
+
(message.deletedAt = $util.Long.fromValue(object.deletedAt)).unsigned = true;
|
|
18678
|
+
else if (typeof object.deletedAt === "string")
|
|
18679
|
+
message.deletedAt = parseInt(object.deletedAt, 10);
|
|
18680
|
+
else if (typeof object.deletedAt === "number")
|
|
18681
|
+
message.deletedAt = object.deletedAt;
|
|
18682
|
+
else if (typeof object.deletedAt === "object")
|
|
18683
|
+
message.deletedAt = new $util.LongBits(object.deletedAt.low >>> 0, object.deletedAt.high >>> 0).toNumber(true);
|
|
18684
|
+
return message;
|
|
18685
|
+
};
|
|
18686
|
+
|
|
18687
|
+
/**
|
|
18688
|
+
* Creates a plain object from a ContentfulActivityDeleted message. Also converts values to other types if specified.
|
|
18689
|
+
* @function toObject
|
|
18690
|
+
* @memberof ContentfulActivityDeleted
|
|
18691
|
+
* @static
|
|
18692
|
+
* @param {ContentfulActivityDeleted} message ContentfulActivityDeleted
|
|
18693
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
18694
|
+
* @returns {Object.<string,*>} Plain object
|
|
18695
|
+
*/
|
|
18696
|
+
ContentfulActivityDeleted.toObject = function toObject(message, options) {
|
|
18697
|
+
if (!options)
|
|
18698
|
+
options = {};
|
|
18699
|
+
var object = {};
|
|
18700
|
+
if (options.defaults) {
|
|
18701
|
+
object.slug = "";
|
|
18702
|
+
if ($util.Long) {
|
|
18703
|
+
var long = new $util.Long(0, 0, true);
|
|
18704
|
+
object.deletedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
18705
|
+
} else
|
|
18706
|
+
object.deletedAt = options.longs === String ? "0" : 0;
|
|
18707
|
+
}
|
|
18708
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
18709
|
+
object.slug = message.slug;
|
|
18710
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
18711
|
+
if (typeof message.deletedAt === "number")
|
|
18712
|
+
object.deletedAt = options.longs === String ? String(message.deletedAt) : message.deletedAt;
|
|
18713
|
+
else
|
|
18714
|
+
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;
|
|
18715
|
+
return object;
|
|
18716
|
+
};
|
|
18717
|
+
|
|
18718
|
+
/**
|
|
18719
|
+
* Converts this ContentfulActivityDeleted to JSON.
|
|
18720
|
+
* @function toJSON
|
|
18721
|
+
* @memberof ContentfulActivityDeleted
|
|
18722
|
+
* @instance
|
|
18723
|
+
* @returns {Object.<string,*>} JSON object
|
|
18724
|
+
*/
|
|
18725
|
+
ContentfulActivityDeleted.prototype.toJSON = function toJSON() {
|
|
18726
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
18727
|
+
};
|
|
18728
|
+
|
|
18729
|
+
return ContentfulActivityDeleted;
|
|
18730
|
+
})();
|
|
18731
|
+
|
|
16628
18732
|
$root.ContentfulContentModelCreated = (function() {
|
|
16629
18733
|
|
|
16630
18734
|
/**
|