@headspace/protos-events 1.296.0 → 1.298.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 +624 -0
- package/lib/index.js +2025 -4
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -24892,6 +24892,785 @@ $root.elf = (function() {
|
|
|
24892
24892
|
return ImportJob;
|
|
24893
24893
|
})();
|
|
24894
24894
|
|
|
24895
|
+
elf.NormalizationJob = (function() {
|
|
24896
|
+
|
|
24897
|
+
/**
|
|
24898
|
+
* Properties of a NormalizationJob.
|
|
24899
|
+
* @memberof elf
|
|
24900
|
+
* @interface INormalizationJob
|
|
24901
|
+
* @property {string|null} [s3Bucket] NormalizationJob s3Bucket
|
|
24902
|
+
* @property {string|null} [s3Key] NormalizationJob s3Key
|
|
24903
|
+
* @property {string|null} [elfKeyField] NormalizationJob elfKeyField
|
|
24904
|
+
* @property {Array.<string>|null} [elfRequiredFields] NormalizationJob elfRequiredFields
|
|
24905
|
+
* @property {Object.<string,string>|null} [customVariables] NormalizationJob customVariables
|
|
24906
|
+
*/
|
|
24907
|
+
|
|
24908
|
+
/**
|
|
24909
|
+
* Constructs a new NormalizationJob.
|
|
24910
|
+
* @memberof elf
|
|
24911
|
+
* @classdesc Represents a NormalizationJob.
|
|
24912
|
+
* @implements INormalizationJob
|
|
24913
|
+
* @constructor
|
|
24914
|
+
* @param {elf.INormalizationJob=} [properties] Properties to set
|
|
24915
|
+
*/
|
|
24916
|
+
function NormalizationJob(properties) {
|
|
24917
|
+
this.elfRequiredFields = [];
|
|
24918
|
+
this.customVariables = {};
|
|
24919
|
+
if (properties)
|
|
24920
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
24921
|
+
if (properties[keys[i]] != null)
|
|
24922
|
+
this[keys[i]] = properties[keys[i]];
|
|
24923
|
+
}
|
|
24924
|
+
|
|
24925
|
+
/**
|
|
24926
|
+
* NormalizationJob s3Bucket.
|
|
24927
|
+
* @member {string} s3Bucket
|
|
24928
|
+
* @memberof elf.NormalizationJob
|
|
24929
|
+
* @instance
|
|
24930
|
+
*/
|
|
24931
|
+
NormalizationJob.prototype.s3Bucket = "";
|
|
24932
|
+
|
|
24933
|
+
/**
|
|
24934
|
+
* NormalizationJob s3Key.
|
|
24935
|
+
* @member {string} s3Key
|
|
24936
|
+
* @memberof elf.NormalizationJob
|
|
24937
|
+
* @instance
|
|
24938
|
+
*/
|
|
24939
|
+
NormalizationJob.prototype.s3Key = "";
|
|
24940
|
+
|
|
24941
|
+
/**
|
|
24942
|
+
* NormalizationJob elfKeyField.
|
|
24943
|
+
* @member {string} elfKeyField
|
|
24944
|
+
* @memberof elf.NormalizationJob
|
|
24945
|
+
* @instance
|
|
24946
|
+
*/
|
|
24947
|
+
NormalizationJob.prototype.elfKeyField = "";
|
|
24948
|
+
|
|
24949
|
+
/**
|
|
24950
|
+
* NormalizationJob elfRequiredFields.
|
|
24951
|
+
* @member {Array.<string>} elfRequiredFields
|
|
24952
|
+
* @memberof elf.NormalizationJob
|
|
24953
|
+
* @instance
|
|
24954
|
+
*/
|
|
24955
|
+
NormalizationJob.prototype.elfRequiredFields = $util.emptyArray;
|
|
24956
|
+
|
|
24957
|
+
/**
|
|
24958
|
+
* NormalizationJob customVariables.
|
|
24959
|
+
* @member {Object.<string,string>} customVariables
|
|
24960
|
+
* @memberof elf.NormalizationJob
|
|
24961
|
+
* @instance
|
|
24962
|
+
*/
|
|
24963
|
+
NormalizationJob.prototype.customVariables = $util.emptyObject;
|
|
24964
|
+
|
|
24965
|
+
/**
|
|
24966
|
+
* Creates a new NormalizationJob instance using the specified properties.
|
|
24967
|
+
* @function create
|
|
24968
|
+
* @memberof elf.NormalizationJob
|
|
24969
|
+
* @static
|
|
24970
|
+
* @param {elf.INormalizationJob=} [properties] Properties to set
|
|
24971
|
+
* @returns {elf.NormalizationJob} NormalizationJob instance
|
|
24972
|
+
*/
|
|
24973
|
+
NormalizationJob.create = function create(properties) {
|
|
24974
|
+
return new NormalizationJob(properties);
|
|
24975
|
+
};
|
|
24976
|
+
|
|
24977
|
+
/**
|
|
24978
|
+
* Encodes the specified NormalizationJob message. Does not implicitly {@link elf.NormalizationJob.verify|verify} messages.
|
|
24979
|
+
* @function encode
|
|
24980
|
+
* @memberof elf.NormalizationJob
|
|
24981
|
+
* @static
|
|
24982
|
+
* @param {elf.INormalizationJob} message NormalizationJob message or plain object to encode
|
|
24983
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
24984
|
+
* @returns {$protobuf.Writer} Writer
|
|
24985
|
+
*/
|
|
24986
|
+
NormalizationJob.encode = function encode(message, writer) {
|
|
24987
|
+
if (!writer)
|
|
24988
|
+
writer = $Writer.create();
|
|
24989
|
+
if (message.s3Bucket != null && message.hasOwnProperty("s3Bucket"))
|
|
24990
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.s3Bucket);
|
|
24991
|
+
if (message.s3Key != null && message.hasOwnProperty("s3Key"))
|
|
24992
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.s3Key);
|
|
24993
|
+
if (message.elfKeyField != null && message.hasOwnProperty("elfKeyField"))
|
|
24994
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.elfKeyField);
|
|
24995
|
+
if (message.elfRequiredFields != null && message.elfRequiredFields.length)
|
|
24996
|
+
for (var i = 0; i < message.elfRequiredFields.length; ++i)
|
|
24997
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.elfRequiredFields[i]);
|
|
24998
|
+
if (message.customVariables != null && message.hasOwnProperty("customVariables"))
|
|
24999
|
+
for (var keys = Object.keys(message.customVariables), i = 0; i < keys.length; ++i)
|
|
25000
|
+
writer.uint32(/* id 5, wireType 2 =*/42).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.customVariables[keys[i]]).ldelim();
|
|
25001
|
+
return writer;
|
|
25002
|
+
};
|
|
25003
|
+
|
|
25004
|
+
/**
|
|
25005
|
+
* Encodes the specified NormalizationJob message, length delimited. Does not implicitly {@link elf.NormalizationJob.verify|verify} messages.
|
|
25006
|
+
* @function encodeDelimited
|
|
25007
|
+
* @memberof elf.NormalizationJob
|
|
25008
|
+
* @static
|
|
25009
|
+
* @param {elf.INormalizationJob} message NormalizationJob message or plain object to encode
|
|
25010
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
25011
|
+
* @returns {$protobuf.Writer} Writer
|
|
25012
|
+
*/
|
|
25013
|
+
NormalizationJob.encodeDelimited = function encodeDelimited(message, writer) {
|
|
25014
|
+
return this.encode(message, writer).ldelim();
|
|
25015
|
+
};
|
|
25016
|
+
|
|
25017
|
+
/**
|
|
25018
|
+
* Decodes a NormalizationJob message from the specified reader or buffer.
|
|
25019
|
+
* @function decode
|
|
25020
|
+
* @memberof elf.NormalizationJob
|
|
25021
|
+
* @static
|
|
25022
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
25023
|
+
* @param {number} [length] Message length if known beforehand
|
|
25024
|
+
* @returns {elf.NormalizationJob} NormalizationJob
|
|
25025
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
25026
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
25027
|
+
*/
|
|
25028
|
+
NormalizationJob.decode = function decode(reader, length) {
|
|
25029
|
+
if (!(reader instanceof $Reader))
|
|
25030
|
+
reader = $Reader.create(reader);
|
|
25031
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.elf.NormalizationJob(), key;
|
|
25032
|
+
while (reader.pos < end) {
|
|
25033
|
+
var tag = reader.uint32();
|
|
25034
|
+
switch (tag >>> 3) {
|
|
25035
|
+
case 1:
|
|
25036
|
+
message.s3Bucket = reader.string();
|
|
25037
|
+
break;
|
|
25038
|
+
case 2:
|
|
25039
|
+
message.s3Key = reader.string();
|
|
25040
|
+
break;
|
|
25041
|
+
case 3:
|
|
25042
|
+
message.elfKeyField = reader.string();
|
|
25043
|
+
break;
|
|
25044
|
+
case 4:
|
|
25045
|
+
if (!(message.elfRequiredFields && message.elfRequiredFields.length))
|
|
25046
|
+
message.elfRequiredFields = [];
|
|
25047
|
+
message.elfRequiredFields.push(reader.string());
|
|
25048
|
+
break;
|
|
25049
|
+
case 5:
|
|
25050
|
+
reader.skip().pos++;
|
|
25051
|
+
if (message.customVariables === $util.emptyObject)
|
|
25052
|
+
message.customVariables = {};
|
|
25053
|
+
key = reader.string();
|
|
25054
|
+
reader.pos++;
|
|
25055
|
+
message.customVariables[key] = reader.string();
|
|
25056
|
+
break;
|
|
25057
|
+
default:
|
|
25058
|
+
reader.skipType(tag & 7);
|
|
25059
|
+
break;
|
|
25060
|
+
}
|
|
25061
|
+
}
|
|
25062
|
+
return message;
|
|
25063
|
+
};
|
|
25064
|
+
|
|
25065
|
+
/**
|
|
25066
|
+
* Decodes a NormalizationJob message from the specified reader or buffer, length delimited.
|
|
25067
|
+
* @function decodeDelimited
|
|
25068
|
+
* @memberof elf.NormalizationJob
|
|
25069
|
+
* @static
|
|
25070
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
25071
|
+
* @returns {elf.NormalizationJob} NormalizationJob
|
|
25072
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
25073
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
25074
|
+
*/
|
|
25075
|
+
NormalizationJob.decodeDelimited = function decodeDelimited(reader) {
|
|
25076
|
+
if (!(reader instanceof $Reader))
|
|
25077
|
+
reader = new $Reader(reader);
|
|
25078
|
+
return this.decode(reader, reader.uint32());
|
|
25079
|
+
};
|
|
25080
|
+
|
|
25081
|
+
/**
|
|
25082
|
+
* Verifies a NormalizationJob message.
|
|
25083
|
+
* @function verify
|
|
25084
|
+
* @memberof elf.NormalizationJob
|
|
25085
|
+
* @static
|
|
25086
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
25087
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
25088
|
+
*/
|
|
25089
|
+
NormalizationJob.verify = function verify(message) {
|
|
25090
|
+
if (typeof message !== "object" || message === null)
|
|
25091
|
+
return "object expected";
|
|
25092
|
+
if (message.s3Bucket != null && message.hasOwnProperty("s3Bucket"))
|
|
25093
|
+
if (!$util.isString(message.s3Bucket))
|
|
25094
|
+
return "s3Bucket: string expected";
|
|
25095
|
+
if (message.s3Key != null && message.hasOwnProperty("s3Key"))
|
|
25096
|
+
if (!$util.isString(message.s3Key))
|
|
25097
|
+
return "s3Key: string expected";
|
|
25098
|
+
if (message.elfKeyField != null && message.hasOwnProperty("elfKeyField"))
|
|
25099
|
+
if (!$util.isString(message.elfKeyField))
|
|
25100
|
+
return "elfKeyField: string expected";
|
|
25101
|
+
if (message.elfRequiredFields != null && message.hasOwnProperty("elfRequiredFields")) {
|
|
25102
|
+
if (!Array.isArray(message.elfRequiredFields))
|
|
25103
|
+
return "elfRequiredFields: array expected";
|
|
25104
|
+
for (var i = 0; i < message.elfRequiredFields.length; ++i)
|
|
25105
|
+
if (!$util.isString(message.elfRequiredFields[i]))
|
|
25106
|
+
return "elfRequiredFields: string[] expected";
|
|
25107
|
+
}
|
|
25108
|
+
if (message.customVariables != null && message.hasOwnProperty("customVariables")) {
|
|
25109
|
+
if (!$util.isObject(message.customVariables))
|
|
25110
|
+
return "customVariables: object expected";
|
|
25111
|
+
var key = Object.keys(message.customVariables);
|
|
25112
|
+
for (var i = 0; i < key.length; ++i)
|
|
25113
|
+
if (!$util.isString(message.customVariables[key[i]]))
|
|
25114
|
+
return "customVariables: string{k:string} expected";
|
|
25115
|
+
}
|
|
25116
|
+
return null;
|
|
25117
|
+
};
|
|
25118
|
+
|
|
25119
|
+
/**
|
|
25120
|
+
* Creates a NormalizationJob message from a plain object. Also converts values to their respective internal types.
|
|
25121
|
+
* @function fromObject
|
|
25122
|
+
* @memberof elf.NormalizationJob
|
|
25123
|
+
* @static
|
|
25124
|
+
* @param {Object.<string,*>} object Plain object
|
|
25125
|
+
* @returns {elf.NormalizationJob} NormalizationJob
|
|
25126
|
+
*/
|
|
25127
|
+
NormalizationJob.fromObject = function fromObject(object) {
|
|
25128
|
+
if (object instanceof $root.elf.NormalizationJob)
|
|
25129
|
+
return object;
|
|
25130
|
+
var message = new $root.elf.NormalizationJob();
|
|
25131
|
+
if (object.s3Bucket != null)
|
|
25132
|
+
message.s3Bucket = String(object.s3Bucket);
|
|
25133
|
+
if (object.s3Key != null)
|
|
25134
|
+
message.s3Key = String(object.s3Key);
|
|
25135
|
+
if (object.elfKeyField != null)
|
|
25136
|
+
message.elfKeyField = String(object.elfKeyField);
|
|
25137
|
+
if (object.elfRequiredFields) {
|
|
25138
|
+
if (!Array.isArray(object.elfRequiredFields))
|
|
25139
|
+
throw TypeError(".elf.NormalizationJob.elfRequiredFields: array expected");
|
|
25140
|
+
message.elfRequiredFields = [];
|
|
25141
|
+
for (var i = 0; i < object.elfRequiredFields.length; ++i)
|
|
25142
|
+
message.elfRequiredFields[i] = String(object.elfRequiredFields[i]);
|
|
25143
|
+
}
|
|
25144
|
+
if (object.customVariables) {
|
|
25145
|
+
if (typeof object.customVariables !== "object")
|
|
25146
|
+
throw TypeError(".elf.NormalizationJob.customVariables: object expected");
|
|
25147
|
+
message.customVariables = {};
|
|
25148
|
+
for (var keys = Object.keys(object.customVariables), i = 0; i < keys.length; ++i)
|
|
25149
|
+
message.customVariables[keys[i]] = String(object.customVariables[keys[i]]);
|
|
25150
|
+
}
|
|
25151
|
+
return message;
|
|
25152
|
+
};
|
|
25153
|
+
|
|
25154
|
+
/**
|
|
25155
|
+
* Creates a plain object from a NormalizationJob message. Also converts values to other types if specified.
|
|
25156
|
+
* @function toObject
|
|
25157
|
+
* @memberof elf.NormalizationJob
|
|
25158
|
+
* @static
|
|
25159
|
+
* @param {elf.NormalizationJob} message NormalizationJob
|
|
25160
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
25161
|
+
* @returns {Object.<string,*>} Plain object
|
|
25162
|
+
*/
|
|
25163
|
+
NormalizationJob.toObject = function toObject(message, options) {
|
|
25164
|
+
if (!options)
|
|
25165
|
+
options = {};
|
|
25166
|
+
var object = {};
|
|
25167
|
+
if (options.arrays || options.defaults)
|
|
25168
|
+
object.elfRequiredFields = [];
|
|
25169
|
+
if (options.objects || options.defaults)
|
|
25170
|
+
object.customVariables = {};
|
|
25171
|
+
if (options.defaults) {
|
|
25172
|
+
object.s3Bucket = "";
|
|
25173
|
+
object.s3Key = "";
|
|
25174
|
+
object.elfKeyField = "";
|
|
25175
|
+
}
|
|
25176
|
+
if (message.s3Bucket != null && message.hasOwnProperty("s3Bucket"))
|
|
25177
|
+
object.s3Bucket = message.s3Bucket;
|
|
25178
|
+
if (message.s3Key != null && message.hasOwnProperty("s3Key"))
|
|
25179
|
+
object.s3Key = message.s3Key;
|
|
25180
|
+
if (message.elfKeyField != null && message.hasOwnProperty("elfKeyField"))
|
|
25181
|
+
object.elfKeyField = message.elfKeyField;
|
|
25182
|
+
if (message.elfRequiredFields && message.elfRequiredFields.length) {
|
|
25183
|
+
object.elfRequiredFields = [];
|
|
25184
|
+
for (var j = 0; j < message.elfRequiredFields.length; ++j)
|
|
25185
|
+
object.elfRequiredFields[j] = message.elfRequiredFields[j];
|
|
25186
|
+
}
|
|
25187
|
+
var keys2;
|
|
25188
|
+
if (message.customVariables && (keys2 = Object.keys(message.customVariables)).length) {
|
|
25189
|
+
object.customVariables = {};
|
|
25190
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
25191
|
+
object.customVariables[keys2[j]] = message.customVariables[keys2[j]];
|
|
25192
|
+
}
|
|
25193
|
+
return object;
|
|
25194
|
+
};
|
|
25195
|
+
|
|
25196
|
+
/**
|
|
25197
|
+
* Converts this NormalizationJob to JSON.
|
|
25198
|
+
* @function toJSON
|
|
25199
|
+
* @memberof elf.NormalizationJob
|
|
25200
|
+
* @instance
|
|
25201
|
+
* @returns {Object.<string,*>} JSON object
|
|
25202
|
+
*/
|
|
25203
|
+
NormalizationJob.prototype.toJSON = function toJSON() {
|
|
25204
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
25205
|
+
};
|
|
25206
|
+
|
|
25207
|
+
return NormalizationJob;
|
|
25208
|
+
})();
|
|
25209
|
+
|
|
25210
|
+
elf.NormalizationJobResult = (function() {
|
|
25211
|
+
|
|
25212
|
+
/**
|
|
25213
|
+
* Properties of a NormalizationJobResult.
|
|
25214
|
+
* @memberof elf
|
|
25215
|
+
* @interface INormalizationJobResult
|
|
25216
|
+
* @property {string|null} [s3Bucket] NormalizationJobResult s3Bucket
|
|
25217
|
+
* @property {string|null} [s3Key] NormalizationJobResult s3Key
|
|
25218
|
+
* @property {Object.<string,number>|null} [counters] NormalizationJobResult counters
|
|
25219
|
+
*/
|
|
25220
|
+
|
|
25221
|
+
/**
|
|
25222
|
+
* Constructs a new NormalizationJobResult.
|
|
25223
|
+
* @memberof elf
|
|
25224
|
+
* @classdesc Represents a NormalizationJobResult.
|
|
25225
|
+
* @implements INormalizationJobResult
|
|
25226
|
+
* @constructor
|
|
25227
|
+
* @param {elf.INormalizationJobResult=} [properties] Properties to set
|
|
25228
|
+
*/
|
|
25229
|
+
function NormalizationJobResult(properties) {
|
|
25230
|
+
this.counters = {};
|
|
25231
|
+
if (properties)
|
|
25232
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
25233
|
+
if (properties[keys[i]] != null)
|
|
25234
|
+
this[keys[i]] = properties[keys[i]];
|
|
25235
|
+
}
|
|
25236
|
+
|
|
25237
|
+
/**
|
|
25238
|
+
* NormalizationJobResult s3Bucket.
|
|
25239
|
+
* @member {string} s3Bucket
|
|
25240
|
+
* @memberof elf.NormalizationJobResult
|
|
25241
|
+
* @instance
|
|
25242
|
+
*/
|
|
25243
|
+
NormalizationJobResult.prototype.s3Bucket = "";
|
|
25244
|
+
|
|
25245
|
+
/**
|
|
25246
|
+
* NormalizationJobResult s3Key.
|
|
25247
|
+
* @member {string} s3Key
|
|
25248
|
+
* @memberof elf.NormalizationJobResult
|
|
25249
|
+
* @instance
|
|
25250
|
+
*/
|
|
25251
|
+
NormalizationJobResult.prototype.s3Key = "";
|
|
25252
|
+
|
|
25253
|
+
/**
|
|
25254
|
+
* NormalizationJobResult counters.
|
|
25255
|
+
* @member {Object.<string,number>} counters
|
|
25256
|
+
* @memberof elf.NormalizationJobResult
|
|
25257
|
+
* @instance
|
|
25258
|
+
*/
|
|
25259
|
+
NormalizationJobResult.prototype.counters = $util.emptyObject;
|
|
25260
|
+
|
|
25261
|
+
/**
|
|
25262
|
+
* Creates a new NormalizationJobResult instance using the specified properties.
|
|
25263
|
+
* @function create
|
|
25264
|
+
* @memberof elf.NormalizationJobResult
|
|
25265
|
+
* @static
|
|
25266
|
+
* @param {elf.INormalizationJobResult=} [properties] Properties to set
|
|
25267
|
+
* @returns {elf.NormalizationJobResult} NormalizationJobResult instance
|
|
25268
|
+
*/
|
|
25269
|
+
NormalizationJobResult.create = function create(properties) {
|
|
25270
|
+
return new NormalizationJobResult(properties);
|
|
25271
|
+
};
|
|
25272
|
+
|
|
25273
|
+
/**
|
|
25274
|
+
* Encodes the specified NormalizationJobResult message. Does not implicitly {@link elf.NormalizationJobResult.verify|verify} messages.
|
|
25275
|
+
* @function encode
|
|
25276
|
+
* @memberof elf.NormalizationJobResult
|
|
25277
|
+
* @static
|
|
25278
|
+
* @param {elf.INormalizationJobResult} message NormalizationJobResult message or plain object to encode
|
|
25279
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
25280
|
+
* @returns {$protobuf.Writer} Writer
|
|
25281
|
+
*/
|
|
25282
|
+
NormalizationJobResult.encode = function encode(message, writer) {
|
|
25283
|
+
if (!writer)
|
|
25284
|
+
writer = $Writer.create();
|
|
25285
|
+
if (message.s3Bucket != null && message.hasOwnProperty("s3Bucket"))
|
|
25286
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.s3Bucket);
|
|
25287
|
+
if (message.s3Key != null && message.hasOwnProperty("s3Key"))
|
|
25288
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.s3Key);
|
|
25289
|
+
if (message.counters != null && message.hasOwnProperty("counters"))
|
|
25290
|
+
for (var keys = Object.keys(message.counters), i = 0; i < keys.length; ++i)
|
|
25291
|
+
writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 0 =*/16).int32(message.counters[keys[i]]).ldelim();
|
|
25292
|
+
return writer;
|
|
25293
|
+
};
|
|
25294
|
+
|
|
25295
|
+
/**
|
|
25296
|
+
* Encodes the specified NormalizationJobResult message, length delimited. Does not implicitly {@link elf.NormalizationJobResult.verify|verify} messages.
|
|
25297
|
+
* @function encodeDelimited
|
|
25298
|
+
* @memberof elf.NormalizationJobResult
|
|
25299
|
+
* @static
|
|
25300
|
+
* @param {elf.INormalizationJobResult} message NormalizationJobResult message or plain object to encode
|
|
25301
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
25302
|
+
* @returns {$protobuf.Writer} Writer
|
|
25303
|
+
*/
|
|
25304
|
+
NormalizationJobResult.encodeDelimited = function encodeDelimited(message, writer) {
|
|
25305
|
+
return this.encode(message, writer).ldelim();
|
|
25306
|
+
};
|
|
25307
|
+
|
|
25308
|
+
/**
|
|
25309
|
+
* Decodes a NormalizationJobResult message from the specified reader or buffer.
|
|
25310
|
+
* @function decode
|
|
25311
|
+
* @memberof elf.NormalizationJobResult
|
|
25312
|
+
* @static
|
|
25313
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
25314
|
+
* @param {number} [length] Message length if known beforehand
|
|
25315
|
+
* @returns {elf.NormalizationJobResult} NormalizationJobResult
|
|
25316
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
25317
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
25318
|
+
*/
|
|
25319
|
+
NormalizationJobResult.decode = function decode(reader, length) {
|
|
25320
|
+
if (!(reader instanceof $Reader))
|
|
25321
|
+
reader = $Reader.create(reader);
|
|
25322
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.elf.NormalizationJobResult(), key;
|
|
25323
|
+
while (reader.pos < end) {
|
|
25324
|
+
var tag = reader.uint32();
|
|
25325
|
+
switch (tag >>> 3) {
|
|
25326
|
+
case 1:
|
|
25327
|
+
message.s3Bucket = reader.string();
|
|
25328
|
+
break;
|
|
25329
|
+
case 2:
|
|
25330
|
+
message.s3Key = reader.string();
|
|
25331
|
+
break;
|
|
25332
|
+
case 3:
|
|
25333
|
+
reader.skip().pos++;
|
|
25334
|
+
if (message.counters === $util.emptyObject)
|
|
25335
|
+
message.counters = {};
|
|
25336
|
+
key = reader.string();
|
|
25337
|
+
reader.pos++;
|
|
25338
|
+
message.counters[key] = reader.int32();
|
|
25339
|
+
break;
|
|
25340
|
+
default:
|
|
25341
|
+
reader.skipType(tag & 7);
|
|
25342
|
+
break;
|
|
25343
|
+
}
|
|
25344
|
+
}
|
|
25345
|
+
return message;
|
|
25346
|
+
};
|
|
25347
|
+
|
|
25348
|
+
/**
|
|
25349
|
+
* Decodes a NormalizationJobResult message from the specified reader or buffer, length delimited.
|
|
25350
|
+
* @function decodeDelimited
|
|
25351
|
+
* @memberof elf.NormalizationJobResult
|
|
25352
|
+
* @static
|
|
25353
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
25354
|
+
* @returns {elf.NormalizationJobResult} NormalizationJobResult
|
|
25355
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
25356
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
25357
|
+
*/
|
|
25358
|
+
NormalizationJobResult.decodeDelimited = function decodeDelimited(reader) {
|
|
25359
|
+
if (!(reader instanceof $Reader))
|
|
25360
|
+
reader = new $Reader(reader);
|
|
25361
|
+
return this.decode(reader, reader.uint32());
|
|
25362
|
+
};
|
|
25363
|
+
|
|
25364
|
+
/**
|
|
25365
|
+
* Verifies a NormalizationJobResult message.
|
|
25366
|
+
* @function verify
|
|
25367
|
+
* @memberof elf.NormalizationJobResult
|
|
25368
|
+
* @static
|
|
25369
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
25370
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
25371
|
+
*/
|
|
25372
|
+
NormalizationJobResult.verify = function verify(message) {
|
|
25373
|
+
if (typeof message !== "object" || message === null)
|
|
25374
|
+
return "object expected";
|
|
25375
|
+
if (message.s3Bucket != null && message.hasOwnProperty("s3Bucket"))
|
|
25376
|
+
if (!$util.isString(message.s3Bucket))
|
|
25377
|
+
return "s3Bucket: string expected";
|
|
25378
|
+
if (message.s3Key != null && message.hasOwnProperty("s3Key"))
|
|
25379
|
+
if (!$util.isString(message.s3Key))
|
|
25380
|
+
return "s3Key: string expected";
|
|
25381
|
+
if (message.counters != null && message.hasOwnProperty("counters")) {
|
|
25382
|
+
if (!$util.isObject(message.counters))
|
|
25383
|
+
return "counters: object expected";
|
|
25384
|
+
var key = Object.keys(message.counters);
|
|
25385
|
+
for (var i = 0; i < key.length; ++i)
|
|
25386
|
+
if (!$util.isInteger(message.counters[key[i]]))
|
|
25387
|
+
return "counters: integer{k:string} expected";
|
|
25388
|
+
}
|
|
25389
|
+
return null;
|
|
25390
|
+
};
|
|
25391
|
+
|
|
25392
|
+
/**
|
|
25393
|
+
* Creates a NormalizationJobResult message from a plain object. Also converts values to their respective internal types.
|
|
25394
|
+
* @function fromObject
|
|
25395
|
+
* @memberof elf.NormalizationJobResult
|
|
25396
|
+
* @static
|
|
25397
|
+
* @param {Object.<string,*>} object Plain object
|
|
25398
|
+
* @returns {elf.NormalizationJobResult} NormalizationJobResult
|
|
25399
|
+
*/
|
|
25400
|
+
NormalizationJobResult.fromObject = function fromObject(object) {
|
|
25401
|
+
if (object instanceof $root.elf.NormalizationJobResult)
|
|
25402
|
+
return object;
|
|
25403
|
+
var message = new $root.elf.NormalizationJobResult();
|
|
25404
|
+
if (object.s3Bucket != null)
|
|
25405
|
+
message.s3Bucket = String(object.s3Bucket);
|
|
25406
|
+
if (object.s3Key != null)
|
|
25407
|
+
message.s3Key = String(object.s3Key);
|
|
25408
|
+
if (object.counters) {
|
|
25409
|
+
if (typeof object.counters !== "object")
|
|
25410
|
+
throw TypeError(".elf.NormalizationJobResult.counters: object expected");
|
|
25411
|
+
message.counters = {};
|
|
25412
|
+
for (var keys = Object.keys(object.counters), i = 0; i < keys.length; ++i)
|
|
25413
|
+
message.counters[keys[i]] = object.counters[keys[i]] | 0;
|
|
25414
|
+
}
|
|
25415
|
+
return message;
|
|
25416
|
+
};
|
|
25417
|
+
|
|
25418
|
+
/**
|
|
25419
|
+
* Creates a plain object from a NormalizationJobResult message. Also converts values to other types if specified.
|
|
25420
|
+
* @function toObject
|
|
25421
|
+
* @memberof elf.NormalizationJobResult
|
|
25422
|
+
* @static
|
|
25423
|
+
* @param {elf.NormalizationJobResult} message NormalizationJobResult
|
|
25424
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
25425
|
+
* @returns {Object.<string,*>} Plain object
|
|
25426
|
+
*/
|
|
25427
|
+
NormalizationJobResult.toObject = function toObject(message, options) {
|
|
25428
|
+
if (!options)
|
|
25429
|
+
options = {};
|
|
25430
|
+
var object = {};
|
|
25431
|
+
if (options.objects || options.defaults)
|
|
25432
|
+
object.counters = {};
|
|
25433
|
+
if (options.defaults) {
|
|
25434
|
+
object.s3Bucket = "";
|
|
25435
|
+
object.s3Key = "";
|
|
25436
|
+
}
|
|
25437
|
+
if (message.s3Bucket != null && message.hasOwnProperty("s3Bucket"))
|
|
25438
|
+
object.s3Bucket = message.s3Bucket;
|
|
25439
|
+
if (message.s3Key != null && message.hasOwnProperty("s3Key"))
|
|
25440
|
+
object.s3Key = message.s3Key;
|
|
25441
|
+
var keys2;
|
|
25442
|
+
if (message.counters && (keys2 = Object.keys(message.counters)).length) {
|
|
25443
|
+
object.counters = {};
|
|
25444
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
25445
|
+
object.counters[keys2[j]] = message.counters[keys2[j]];
|
|
25446
|
+
}
|
|
25447
|
+
return object;
|
|
25448
|
+
};
|
|
25449
|
+
|
|
25450
|
+
/**
|
|
25451
|
+
* Converts this NormalizationJobResult to JSON.
|
|
25452
|
+
* @function toJSON
|
|
25453
|
+
* @memberof elf.NormalizationJobResult
|
|
25454
|
+
* @instance
|
|
25455
|
+
* @returns {Object.<string,*>} JSON object
|
|
25456
|
+
*/
|
|
25457
|
+
NormalizationJobResult.prototype.toJSON = function toJSON() {
|
|
25458
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
25459
|
+
};
|
|
25460
|
+
|
|
25461
|
+
return NormalizationJobResult;
|
|
25462
|
+
})();
|
|
25463
|
+
|
|
25464
|
+
elf.NormalizationJobError = (function() {
|
|
25465
|
+
|
|
25466
|
+
/**
|
|
25467
|
+
* Properties of a NormalizationJobError.
|
|
25468
|
+
* @memberof elf
|
|
25469
|
+
* @interface INormalizationJobError
|
|
25470
|
+
* @property {string|null} [code] NormalizationJobError code
|
|
25471
|
+
* @property {string|null} [message] NormalizationJobError message
|
|
25472
|
+
*/
|
|
25473
|
+
|
|
25474
|
+
/**
|
|
25475
|
+
* Constructs a new NormalizationJobError.
|
|
25476
|
+
* @memberof elf
|
|
25477
|
+
* @classdesc Represents a NormalizationJobError.
|
|
25478
|
+
* @implements INormalizationJobError
|
|
25479
|
+
* @constructor
|
|
25480
|
+
* @param {elf.INormalizationJobError=} [properties] Properties to set
|
|
25481
|
+
*/
|
|
25482
|
+
function NormalizationJobError(properties) {
|
|
25483
|
+
if (properties)
|
|
25484
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
25485
|
+
if (properties[keys[i]] != null)
|
|
25486
|
+
this[keys[i]] = properties[keys[i]];
|
|
25487
|
+
}
|
|
25488
|
+
|
|
25489
|
+
/**
|
|
25490
|
+
* NormalizationJobError code.
|
|
25491
|
+
* @member {string} code
|
|
25492
|
+
* @memberof elf.NormalizationJobError
|
|
25493
|
+
* @instance
|
|
25494
|
+
*/
|
|
25495
|
+
NormalizationJobError.prototype.code = "";
|
|
25496
|
+
|
|
25497
|
+
/**
|
|
25498
|
+
* NormalizationJobError message.
|
|
25499
|
+
* @member {string} message
|
|
25500
|
+
* @memberof elf.NormalizationJobError
|
|
25501
|
+
* @instance
|
|
25502
|
+
*/
|
|
25503
|
+
NormalizationJobError.prototype.message = "";
|
|
25504
|
+
|
|
25505
|
+
/**
|
|
25506
|
+
* Creates a new NormalizationJobError instance using the specified properties.
|
|
25507
|
+
* @function create
|
|
25508
|
+
* @memberof elf.NormalizationJobError
|
|
25509
|
+
* @static
|
|
25510
|
+
* @param {elf.INormalizationJobError=} [properties] Properties to set
|
|
25511
|
+
* @returns {elf.NormalizationJobError} NormalizationJobError instance
|
|
25512
|
+
*/
|
|
25513
|
+
NormalizationJobError.create = function create(properties) {
|
|
25514
|
+
return new NormalizationJobError(properties);
|
|
25515
|
+
};
|
|
25516
|
+
|
|
25517
|
+
/**
|
|
25518
|
+
* Encodes the specified NormalizationJobError message. Does not implicitly {@link elf.NormalizationJobError.verify|verify} messages.
|
|
25519
|
+
* @function encode
|
|
25520
|
+
* @memberof elf.NormalizationJobError
|
|
25521
|
+
* @static
|
|
25522
|
+
* @param {elf.INormalizationJobError} message NormalizationJobError message or plain object to encode
|
|
25523
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
25524
|
+
* @returns {$protobuf.Writer} Writer
|
|
25525
|
+
*/
|
|
25526
|
+
NormalizationJobError.encode = function encode(message, writer) {
|
|
25527
|
+
if (!writer)
|
|
25528
|
+
writer = $Writer.create();
|
|
25529
|
+
if (message.code != null && message.hasOwnProperty("code"))
|
|
25530
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.code);
|
|
25531
|
+
if (message.message != null && message.hasOwnProperty("message"))
|
|
25532
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.message);
|
|
25533
|
+
return writer;
|
|
25534
|
+
};
|
|
25535
|
+
|
|
25536
|
+
/**
|
|
25537
|
+
* Encodes the specified NormalizationJobError message, length delimited. Does not implicitly {@link elf.NormalizationJobError.verify|verify} messages.
|
|
25538
|
+
* @function encodeDelimited
|
|
25539
|
+
* @memberof elf.NormalizationJobError
|
|
25540
|
+
* @static
|
|
25541
|
+
* @param {elf.INormalizationJobError} message NormalizationJobError message or plain object to encode
|
|
25542
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
25543
|
+
* @returns {$protobuf.Writer} Writer
|
|
25544
|
+
*/
|
|
25545
|
+
NormalizationJobError.encodeDelimited = function encodeDelimited(message, writer) {
|
|
25546
|
+
return this.encode(message, writer).ldelim();
|
|
25547
|
+
};
|
|
25548
|
+
|
|
25549
|
+
/**
|
|
25550
|
+
* Decodes a NormalizationJobError message from the specified reader or buffer.
|
|
25551
|
+
* @function decode
|
|
25552
|
+
* @memberof elf.NormalizationJobError
|
|
25553
|
+
* @static
|
|
25554
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
25555
|
+
* @param {number} [length] Message length if known beforehand
|
|
25556
|
+
* @returns {elf.NormalizationJobError} NormalizationJobError
|
|
25557
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
25558
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
25559
|
+
*/
|
|
25560
|
+
NormalizationJobError.decode = function decode(reader, length) {
|
|
25561
|
+
if (!(reader instanceof $Reader))
|
|
25562
|
+
reader = $Reader.create(reader);
|
|
25563
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.elf.NormalizationJobError();
|
|
25564
|
+
while (reader.pos < end) {
|
|
25565
|
+
var tag = reader.uint32();
|
|
25566
|
+
switch (tag >>> 3) {
|
|
25567
|
+
case 1:
|
|
25568
|
+
message.code = reader.string();
|
|
25569
|
+
break;
|
|
25570
|
+
case 2:
|
|
25571
|
+
message.message = reader.string();
|
|
25572
|
+
break;
|
|
25573
|
+
default:
|
|
25574
|
+
reader.skipType(tag & 7);
|
|
25575
|
+
break;
|
|
25576
|
+
}
|
|
25577
|
+
}
|
|
25578
|
+
return message;
|
|
25579
|
+
};
|
|
25580
|
+
|
|
25581
|
+
/**
|
|
25582
|
+
* Decodes a NormalizationJobError message from the specified reader or buffer, length delimited.
|
|
25583
|
+
* @function decodeDelimited
|
|
25584
|
+
* @memberof elf.NormalizationJobError
|
|
25585
|
+
* @static
|
|
25586
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
25587
|
+
* @returns {elf.NormalizationJobError} NormalizationJobError
|
|
25588
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
25589
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
25590
|
+
*/
|
|
25591
|
+
NormalizationJobError.decodeDelimited = function decodeDelimited(reader) {
|
|
25592
|
+
if (!(reader instanceof $Reader))
|
|
25593
|
+
reader = new $Reader(reader);
|
|
25594
|
+
return this.decode(reader, reader.uint32());
|
|
25595
|
+
};
|
|
25596
|
+
|
|
25597
|
+
/**
|
|
25598
|
+
* Verifies a NormalizationJobError message.
|
|
25599
|
+
* @function verify
|
|
25600
|
+
* @memberof elf.NormalizationJobError
|
|
25601
|
+
* @static
|
|
25602
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
25603
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
25604
|
+
*/
|
|
25605
|
+
NormalizationJobError.verify = function verify(message) {
|
|
25606
|
+
if (typeof message !== "object" || message === null)
|
|
25607
|
+
return "object expected";
|
|
25608
|
+
if (message.code != null && message.hasOwnProperty("code"))
|
|
25609
|
+
if (!$util.isString(message.code))
|
|
25610
|
+
return "code: string expected";
|
|
25611
|
+
if (message.message != null && message.hasOwnProperty("message"))
|
|
25612
|
+
if (!$util.isString(message.message))
|
|
25613
|
+
return "message: string expected";
|
|
25614
|
+
return null;
|
|
25615
|
+
};
|
|
25616
|
+
|
|
25617
|
+
/**
|
|
25618
|
+
* Creates a NormalizationJobError message from a plain object. Also converts values to their respective internal types.
|
|
25619
|
+
* @function fromObject
|
|
25620
|
+
* @memberof elf.NormalizationJobError
|
|
25621
|
+
* @static
|
|
25622
|
+
* @param {Object.<string,*>} object Plain object
|
|
25623
|
+
* @returns {elf.NormalizationJobError} NormalizationJobError
|
|
25624
|
+
*/
|
|
25625
|
+
NormalizationJobError.fromObject = function fromObject(object) {
|
|
25626
|
+
if (object instanceof $root.elf.NormalizationJobError)
|
|
25627
|
+
return object;
|
|
25628
|
+
var message = new $root.elf.NormalizationJobError();
|
|
25629
|
+
if (object.code != null)
|
|
25630
|
+
message.code = String(object.code);
|
|
25631
|
+
if (object.message != null)
|
|
25632
|
+
message.message = String(object.message);
|
|
25633
|
+
return message;
|
|
25634
|
+
};
|
|
25635
|
+
|
|
25636
|
+
/**
|
|
25637
|
+
* Creates a plain object from a NormalizationJobError message. Also converts values to other types if specified.
|
|
25638
|
+
* @function toObject
|
|
25639
|
+
* @memberof elf.NormalizationJobError
|
|
25640
|
+
* @static
|
|
25641
|
+
* @param {elf.NormalizationJobError} message NormalizationJobError
|
|
25642
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
25643
|
+
* @returns {Object.<string,*>} Plain object
|
|
25644
|
+
*/
|
|
25645
|
+
NormalizationJobError.toObject = function toObject(message, options) {
|
|
25646
|
+
if (!options)
|
|
25647
|
+
options = {};
|
|
25648
|
+
var object = {};
|
|
25649
|
+
if (options.defaults) {
|
|
25650
|
+
object.code = "";
|
|
25651
|
+
object.message = "";
|
|
25652
|
+
}
|
|
25653
|
+
if (message.code != null && message.hasOwnProperty("code"))
|
|
25654
|
+
object.code = message.code;
|
|
25655
|
+
if (message.message != null && message.hasOwnProperty("message"))
|
|
25656
|
+
object.message = message.message;
|
|
25657
|
+
return object;
|
|
25658
|
+
};
|
|
25659
|
+
|
|
25660
|
+
/**
|
|
25661
|
+
* Converts this NormalizationJobError to JSON.
|
|
25662
|
+
* @function toJSON
|
|
25663
|
+
* @memberof elf.NormalizationJobError
|
|
25664
|
+
* @instance
|
|
25665
|
+
* @returns {Object.<string,*>} JSON object
|
|
25666
|
+
*/
|
|
25667
|
+
NormalizationJobError.prototype.toJSON = function toJSON() {
|
|
25668
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
25669
|
+
};
|
|
25670
|
+
|
|
25671
|
+
return NormalizationJobError;
|
|
25672
|
+
})();
|
|
25673
|
+
|
|
24895
25674
|
return elf;
|
|
24896
25675
|
})();
|
|
24897
25676
|
|
|
@@ -61787,6 +62566,16 @@ $root.CollectionCreated = (function() {
|
|
|
61787
62566
|
* @property {ContentCollectionType|null} [collectionType] CollectionCreated collectionType
|
|
61788
62567
|
* @property {Array.<contentful.ISlugReference>|null} [accessGroup] CollectionCreated accessGroup
|
|
61789
62568
|
* @property {number|Long|null} [createdAt] CollectionCreated createdAt
|
|
62569
|
+
* @property {Object.<string,string>|null} [name] CollectionCreated name
|
|
62570
|
+
* @property {Object.<string,string>|null} [teaser] CollectionCreated teaser
|
|
62571
|
+
* @property {Object.<string,string>|null} [description] CollectionCreated description
|
|
62572
|
+
* @property {Object.<string,contentful.IIdReference>|null} [tileMedia] CollectionCreated tileMedia
|
|
62573
|
+
* @property {Array.<contentful.ISlugReference>|null} [collectionContent] CollectionCreated collectionContent
|
|
62574
|
+
* @property {boolean|null} [enabled] CollectionCreated enabled
|
|
62575
|
+
* @property {boolean|null} [isInternationalOnly] CollectionCreated isInternationalOnly
|
|
62576
|
+
* @property {Object.<string,contentful.ITags>|null} [tags] CollectionCreated tags
|
|
62577
|
+
* @property {Array.<contentful.ISlugReference>|null} [techniques] CollectionCreated techniques
|
|
62578
|
+
* @property {Array.<contentful.ISlugReference>|null} [related] CollectionCreated related
|
|
61790
62579
|
*/
|
|
61791
62580
|
|
|
61792
62581
|
/**
|
|
@@ -61799,6 +62588,14 @@ $root.CollectionCreated = (function() {
|
|
|
61799
62588
|
*/
|
|
61800
62589
|
function CollectionCreated(properties) {
|
|
61801
62590
|
this.accessGroup = [];
|
|
62591
|
+
this.name = {};
|
|
62592
|
+
this.teaser = {};
|
|
62593
|
+
this.description = {};
|
|
62594
|
+
this.tileMedia = {};
|
|
62595
|
+
this.collectionContent = [];
|
|
62596
|
+
this.tags = {};
|
|
62597
|
+
this.techniques = [];
|
|
62598
|
+
this.related = [];
|
|
61802
62599
|
if (properties)
|
|
61803
62600
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
61804
62601
|
if (properties[keys[i]] != null)
|
|
@@ -61845,6 +62642,86 @@ $root.CollectionCreated = (function() {
|
|
|
61845
62642
|
*/
|
|
61846
62643
|
CollectionCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
61847
62644
|
|
|
62645
|
+
/**
|
|
62646
|
+
* CollectionCreated name.
|
|
62647
|
+
* @member {Object.<string,string>} name
|
|
62648
|
+
* @memberof CollectionCreated
|
|
62649
|
+
* @instance
|
|
62650
|
+
*/
|
|
62651
|
+
CollectionCreated.prototype.name = $util.emptyObject;
|
|
62652
|
+
|
|
62653
|
+
/**
|
|
62654
|
+
* CollectionCreated teaser.
|
|
62655
|
+
* @member {Object.<string,string>} teaser
|
|
62656
|
+
* @memberof CollectionCreated
|
|
62657
|
+
* @instance
|
|
62658
|
+
*/
|
|
62659
|
+
CollectionCreated.prototype.teaser = $util.emptyObject;
|
|
62660
|
+
|
|
62661
|
+
/**
|
|
62662
|
+
* CollectionCreated description.
|
|
62663
|
+
* @member {Object.<string,string>} description
|
|
62664
|
+
* @memberof CollectionCreated
|
|
62665
|
+
* @instance
|
|
62666
|
+
*/
|
|
62667
|
+
CollectionCreated.prototype.description = $util.emptyObject;
|
|
62668
|
+
|
|
62669
|
+
/**
|
|
62670
|
+
* CollectionCreated tileMedia.
|
|
62671
|
+
* @member {Object.<string,contentful.IIdReference>} tileMedia
|
|
62672
|
+
* @memberof CollectionCreated
|
|
62673
|
+
* @instance
|
|
62674
|
+
*/
|
|
62675
|
+
CollectionCreated.prototype.tileMedia = $util.emptyObject;
|
|
62676
|
+
|
|
62677
|
+
/**
|
|
62678
|
+
* CollectionCreated collectionContent.
|
|
62679
|
+
* @member {Array.<contentful.ISlugReference>} collectionContent
|
|
62680
|
+
* @memberof CollectionCreated
|
|
62681
|
+
* @instance
|
|
62682
|
+
*/
|
|
62683
|
+
CollectionCreated.prototype.collectionContent = $util.emptyArray;
|
|
62684
|
+
|
|
62685
|
+
/**
|
|
62686
|
+
* CollectionCreated enabled.
|
|
62687
|
+
* @member {boolean} enabled
|
|
62688
|
+
* @memberof CollectionCreated
|
|
62689
|
+
* @instance
|
|
62690
|
+
*/
|
|
62691
|
+
CollectionCreated.prototype.enabled = false;
|
|
62692
|
+
|
|
62693
|
+
/**
|
|
62694
|
+
* CollectionCreated isInternationalOnly.
|
|
62695
|
+
* @member {boolean} isInternationalOnly
|
|
62696
|
+
* @memberof CollectionCreated
|
|
62697
|
+
* @instance
|
|
62698
|
+
*/
|
|
62699
|
+
CollectionCreated.prototype.isInternationalOnly = false;
|
|
62700
|
+
|
|
62701
|
+
/**
|
|
62702
|
+
* CollectionCreated tags.
|
|
62703
|
+
* @member {Object.<string,contentful.ITags>} tags
|
|
62704
|
+
* @memberof CollectionCreated
|
|
62705
|
+
* @instance
|
|
62706
|
+
*/
|
|
62707
|
+
CollectionCreated.prototype.tags = $util.emptyObject;
|
|
62708
|
+
|
|
62709
|
+
/**
|
|
62710
|
+
* CollectionCreated techniques.
|
|
62711
|
+
* @member {Array.<contentful.ISlugReference>} techniques
|
|
62712
|
+
* @memberof CollectionCreated
|
|
62713
|
+
* @instance
|
|
62714
|
+
*/
|
|
62715
|
+
CollectionCreated.prototype.techniques = $util.emptyArray;
|
|
62716
|
+
|
|
62717
|
+
/**
|
|
62718
|
+
* CollectionCreated related.
|
|
62719
|
+
* @member {Array.<contentful.ISlugReference>} related
|
|
62720
|
+
* @memberof CollectionCreated
|
|
62721
|
+
* @instance
|
|
62722
|
+
*/
|
|
62723
|
+
CollectionCreated.prototype.related = $util.emptyArray;
|
|
62724
|
+
|
|
61848
62725
|
/**
|
|
61849
62726
|
* Creates a new CollectionCreated instance using the specified properties.
|
|
61850
62727
|
* @function create
|
|
@@ -61880,6 +62757,38 @@ $root.CollectionCreated = (function() {
|
|
|
61880
62757
|
$root.contentful.SlugReference.encode(message.accessGroup[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
61881
62758
|
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
61882
62759
|
writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.createdAt);
|
|
62760
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
62761
|
+
for (var keys = Object.keys(message.name), i = 0; i < keys.length; ++i)
|
|
62762
|
+
writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.name[keys[i]]).ldelim();
|
|
62763
|
+
if (message.teaser != null && message.hasOwnProperty("teaser"))
|
|
62764
|
+
for (var keys = Object.keys(message.teaser), i = 0; i < keys.length; ++i)
|
|
62765
|
+
writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.teaser[keys[i]]).ldelim();
|
|
62766
|
+
if (message.description != null && message.hasOwnProperty("description"))
|
|
62767
|
+
for (var keys = Object.keys(message.description), i = 0; i < keys.length; ++i)
|
|
62768
|
+
writer.uint32(/* id 8, wireType 2 =*/66).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.description[keys[i]]).ldelim();
|
|
62769
|
+
if (message.tileMedia != null && message.hasOwnProperty("tileMedia"))
|
|
62770
|
+
for (var keys = Object.keys(message.tileMedia), i = 0; i < keys.length; ++i) {
|
|
62771
|
+
writer.uint32(/* id 9, wireType 2 =*/74).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
62772
|
+
$root.contentful.IdReference.encode(message.tileMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
62773
|
+
}
|
|
62774
|
+
if (message.collectionContent != null && message.collectionContent.length)
|
|
62775
|
+
for (var i = 0; i < message.collectionContent.length; ++i)
|
|
62776
|
+
$root.contentful.SlugReference.encode(message.collectionContent[i], writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
|
|
62777
|
+
if (message.enabled != null && message.hasOwnProperty("enabled"))
|
|
62778
|
+
writer.uint32(/* id 11, wireType 0 =*/88).bool(message.enabled);
|
|
62779
|
+
if (message.isInternationalOnly != null && message.hasOwnProperty("isInternationalOnly"))
|
|
62780
|
+
writer.uint32(/* id 12, wireType 0 =*/96).bool(message.isInternationalOnly);
|
|
62781
|
+
if (message.tags != null && message.hasOwnProperty("tags"))
|
|
62782
|
+
for (var keys = Object.keys(message.tags), i = 0; i < keys.length; ++i) {
|
|
62783
|
+
writer.uint32(/* id 13, wireType 2 =*/106).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
62784
|
+
$root.contentful.Tags.encode(message.tags[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
62785
|
+
}
|
|
62786
|
+
if (message.techniques != null && message.techniques.length)
|
|
62787
|
+
for (var i = 0; i < message.techniques.length; ++i)
|
|
62788
|
+
$root.contentful.SlugReference.encode(message.techniques[i], writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim();
|
|
62789
|
+
if (message.related != null && message.related.length)
|
|
62790
|
+
for (var i = 0; i < message.related.length; ++i)
|
|
62791
|
+
$root.contentful.SlugReference.encode(message.related[i], writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim();
|
|
61883
62792
|
return writer;
|
|
61884
62793
|
};
|
|
61885
62794
|
|
|
@@ -61910,7 +62819,7 @@ $root.CollectionCreated = (function() {
|
|
|
61910
62819
|
CollectionCreated.decode = function decode(reader, length) {
|
|
61911
62820
|
if (!(reader instanceof $Reader))
|
|
61912
62821
|
reader = $Reader.create(reader);
|
|
61913
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.CollectionCreated();
|
|
62822
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.CollectionCreated(), key;
|
|
61914
62823
|
while (reader.pos < end) {
|
|
61915
62824
|
var tag = reader.uint32();
|
|
61916
62825
|
switch (tag >>> 3) {
|
|
@@ -61931,6 +62840,67 @@ $root.CollectionCreated = (function() {
|
|
|
61931
62840
|
case 5:
|
|
61932
62841
|
message.createdAt = reader.uint64();
|
|
61933
62842
|
break;
|
|
62843
|
+
case 6:
|
|
62844
|
+
reader.skip().pos++;
|
|
62845
|
+
if (message.name === $util.emptyObject)
|
|
62846
|
+
message.name = {};
|
|
62847
|
+
key = reader.string();
|
|
62848
|
+
reader.pos++;
|
|
62849
|
+
message.name[key] = reader.string();
|
|
62850
|
+
break;
|
|
62851
|
+
case 7:
|
|
62852
|
+
reader.skip().pos++;
|
|
62853
|
+
if (message.teaser === $util.emptyObject)
|
|
62854
|
+
message.teaser = {};
|
|
62855
|
+
key = reader.string();
|
|
62856
|
+
reader.pos++;
|
|
62857
|
+
message.teaser[key] = reader.string();
|
|
62858
|
+
break;
|
|
62859
|
+
case 8:
|
|
62860
|
+
reader.skip().pos++;
|
|
62861
|
+
if (message.description === $util.emptyObject)
|
|
62862
|
+
message.description = {};
|
|
62863
|
+
key = reader.string();
|
|
62864
|
+
reader.pos++;
|
|
62865
|
+
message.description[key] = reader.string();
|
|
62866
|
+
break;
|
|
62867
|
+
case 9:
|
|
62868
|
+
reader.skip().pos++;
|
|
62869
|
+
if (message.tileMedia === $util.emptyObject)
|
|
62870
|
+
message.tileMedia = {};
|
|
62871
|
+
key = reader.string();
|
|
62872
|
+
reader.pos++;
|
|
62873
|
+
message.tileMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
|
|
62874
|
+
break;
|
|
62875
|
+
case 10:
|
|
62876
|
+
if (!(message.collectionContent && message.collectionContent.length))
|
|
62877
|
+
message.collectionContent = [];
|
|
62878
|
+
message.collectionContent.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
62879
|
+
break;
|
|
62880
|
+
case 11:
|
|
62881
|
+
message.enabled = reader.bool();
|
|
62882
|
+
break;
|
|
62883
|
+
case 12:
|
|
62884
|
+
message.isInternationalOnly = reader.bool();
|
|
62885
|
+
break;
|
|
62886
|
+
case 13:
|
|
62887
|
+
reader.skip().pos++;
|
|
62888
|
+
if (message.tags === $util.emptyObject)
|
|
62889
|
+
message.tags = {};
|
|
62890
|
+
key = reader.string();
|
|
62891
|
+
reader.pos++;
|
|
62892
|
+
message.tags[key] = $root.contentful.Tags.decode(reader, reader.uint32());
|
|
62893
|
+
break;
|
|
62894
|
+
case 14:
|
|
62895
|
+
if (!(message.techniques && message.techniques.length))
|
|
62896
|
+
message.techniques = [];
|
|
62897
|
+
message.techniques.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
62898
|
+
break;
|
|
62899
|
+
case 15:
|
|
62900
|
+
if (!(message.related && message.related.length))
|
|
62901
|
+
message.related = [];
|
|
62902
|
+
message.related.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
62903
|
+
break;
|
|
61934
62904
|
default:
|
|
61935
62905
|
reader.skipType(tag & 7);
|
|
61936
62906
|
break;
|
|
@@ -61992,6 +62962,83 @@ $root.CollectionCreated = (function() {
|
|
|
61992
62962
|
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
61993
62963
|
if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
|
|
61994
62964
|
return "createdAt: integer|Long expected";
|
|
62965
|
+
if (message.name != null && message.hasOwnProperty("name")) {
|
|
62966
|
+
if (!$util.isObject(message.name))
|
|
62967
|
+
return "name: object expected";
|
|
62968
|
+
var key = Object.keys(message.name);
|
|
62969
|
+
for (var i = 0; i < key.length; ++i)
|
|
62970
|
+
if (!$util.isString(message.name[key[i]]))
|
|
62971
|
+
return "name: string{k:string} expected";
|
|
62972
|
+
}
|
|
62973
|
+
if (message.teaser != null && message.hasOwnProperty("teaser")) {
|
|
62974
|
+
if (!$util.isObject(message.teaser))
|
|
62975
|
+
return "teaser: object expected";
|
|
62976
|
+
var key = Object.keys(message.teaser);
|
|
62977
|
+
for (var i = 0; i < key.length; ++i)
|
|
62978
|
+
if (!$util.isString(message.teaser[key[i]]))
|
|
62979
|
+
return "teaser: string{k:string} expected";
|
|
62980
|
+
}
|
|
62981
|
+
if (message.description != null && message.hasOwnProperty("description")) {
|
|
62982
|
+
if (!$util.isObject(message.description))
|
|
62983
|
+
return "description: object expected";
|
|
62984
|
+
var key = Object.keys(message.description);
|
|
62985
|
+
for (var i = 0; i < key.length; ++i)
|
|
62986
|
+
if (!$util.isString(message.description[key[i]]))
|
|
62987
|
+
return "description: string{k:string} expected";
|
|
62988
|
+
}
|
|
62989
|
+
if (message.tileMedia != null && message.hasOwnProperty("tileMedia")) {
|
|
62990
|
+
if (!$util.isObject(message.tileMedia))
|
|
62991
|
+
return "tileMedia: object expected";
|
|
62992
|
+
var key = Object.keys(message.tileMedia);
|
|
62993
|
+
for (var i = 0; i < key.length; ++i) {
|
|
62994
|
+
var error = $root.contentful.IdReference.verify(message.tileMedia[key[i]]);
|
|
62995
|
+
if (error)
|
|
62996
|
+
return "tileMedia." + error;
|
|
62997
|
+
}
|
|
62998
|
+
}
|
|
62999
|
+
if (message.collectionContent != null && message.hasOwnProperty("collectionContent")) {
|
|
63000
|
+
if (!Array.isArray(message.collectionContent))
|
|
63001
|
+
return "collectionContent: array expected";
|
|
63002
|
+
for (var i = 0; i < message.collectionContent.length; ++i) {
|
|
63003
|
+
var error = $root.contentful.SlugReference.verify(message.collectionContent[i]);
|
|
63004
|
+
if (error)
|
|
63005
|
+
return "collectionContent." + error;
|
|
63006
|
+
}
|
|
63007
|
+
}
|
|
63008
|
+
if (message.enabled != null && message.hasOwnProperty("enabled"))
|
|
63009
|
+
if (typeof message.enabled !== "boolean")
|
|
63010
|
+
return "enabled: boolean expected";
|
|
63011
|
+
if (message.isInternationalOnly != null && message.hasOwnProperty("isInternationalOnly"))
|
|
63012
|
+
if (typeof message.isInternationalOnly !== "boolean")
|
|
63013
|
+
return "isInternationalOnly: boolean expected";
|
|
63014
|
+
if (message.tags != null && message.hasOwnProperty("tags")) {
|
|
63015
|
+
if (!$util.isObject(message.tags))
|
|
63016
|
+
return "tags: object expected";
|
|
63017
|
+
var key = Object.keys(message.tags);
|
|
63018
|
+
for (var i = 0; i < key.length; ++i) {
|
|
63019
|
+
var error = $root.contentful.Tags.verify(message.tags[key[i]]);
|
|
63020
|
+
if (error)
|
|
63021
|
+
return "tags." + error;
|
|
63022
|
+
}
|
|
63023
|
+
}
|
|
63024
|
+
if (message.techniques != null && message.hasOwnProperty("techniques")) {
|
|
63025
|
+
if (!Array.isArray(message.techniques))
|
|
63026
|
+
return "techniques: array expected";
|
|
63027
|
+
for (var i = 0; i < message.techniques.length; ++i) {
|
|
63028
|
+
var error = $root.contentful.SlugReference.verify(message.techniques[i]);
|
|
63029
|
+
if (error)
|
|
63030
|
+
return "techniques." + error;
|
|
63031
|
+
}
|
|
63032
|
+
}
|
|
63033
|
+
if (message.related != null && message.hasOwnProperty("related")) {
|
|
63034
|
+
if (!Array.isArray(message.related))
|
|
63035
|
+
return "related: array expected";
|
|
63036
|
+
for (var i = 0; i < message.related.length; ++i) {
|
|
63037
|
+
var error = $root.contentful.SlugReference.verify(message.related[i]);
|
|
63038
|
+
if (error)
|
|
63039
|
+
return "related." + error;
|
|
63040
|
+
}
|
|
63041
|
+
}
|
|
61995
63042
|
return null;
|
|
61996
63043
|
};
|
|
61997
63044
|
|
|
@@ -62040,6 +63087,81 @@ $root.CollectionCreated = (function() {
|
|
|
62040
63087
|
message.createdAt = object.createdAt;
|
|
62041
63088
|
else if (typeof object.createdAt === "object")
|
|
62042
63089
|
message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
|
|
63090
|
+
if (object.name) {
|
|
63091
|
+
if (typeof object.name !== "object")
|
|
63092
|
+
throw TypeError(".CollectionCreated.name: object expected");
|
|
63093
|
+
message.name = {};
|
|
63094
|
+
for (var keys = Object.keys(object.name), i = 0; i < keys.length; ++i)
|
|
63095
|
+
message.name[keys[i]] = String(object.name[keys[i]]);
|
|
63096
|
+
}
|
|
63097
|
+
if (object.teaser) {
|
|
63098
|
+
if (typeof object.teaser !== "object")
|
|
63099
|
+
throw TypeError(".CollectionCreated.teaser: object expected");
|
|
63100
|
+
message.teaser = {};
|
|
63101
|
+
for (var keys = Object.keys(object.teaser), i = 0; i < keys.length; ++i)
|
|
63102
|
+
message.teaser[keys[i]] = String(object.teaser[keys[i]]);
|
|
63103
|
+
}
|
|
63104
|
+
if (object.description) {
|
|
63105
|
+
if (typeof object.description !== "object")
|
|
63106
|
+
throw TypeError(".CollectionCreated.description: object expected");
|
|
63107
|
+
message.description = {};
|
|
63108
|
+
for (var keys = Object.keys(object.description), i = 0; i < keys.length; ++i)
|
|
63109
|
+
message.description[keys[i]] = String(object.description[keys[i]]);
|
|
63110
|
+
}
|
|
63111
|
+
if (object.tileMedia) {
|
|
63112
|
+
if (typeof object.tileMedia !== "object")
|
|
63113
|
+
throw TypeError(".CollectionCreated.tileMedia: object expected");
|
|
63114
|
+
message.tileMedia = {};
|
|
63115
|
+
for (var keys = Object.keys(object.tileMedia), i = 0; i < keys.length; ++i) {
|
|
63116
|
+
if (typeof object.tileMedia[keys[i]] !== "object")
|
|
63117
|
+
throw TypeError(".CollectionCreated.tileMedia: object expected");
|
|
63118
|
+
message.tileMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.tileMedia[keys[i]]);
|
|
63119
|
+
}
|
|
63120
|
+
}
|
|
63121
|
+
if (object.collectionContent) {
|
|
63122
|
+
if (!Array.isArray(object.collectionContent))
|
|
63123
|
+
throw TypeError(".CollectionCreated.collectionContent: array expected");
|
|
63124
|
+
message.collectionContent = [];
|
|
63125
|
+
for (var i = 0; i < object.collectionContent.length; ++i) {
|
|
63126
|
+
if (typeof object.collectionContent[i] !== "object")
|
|
63127
|
+
throw TypeError(".CollectionCreated.collectionContent: object expected");
|
|
63128
|
+
message.collectionContent[i] = $root.contentful.SlugReference.fromObject(object.collectionContent[i]);
|
|
63129
|
+
}
|
|
63130
|
+
}
|
|
63131
|
+
if (object.enabled != null)
|
|
63132
|
+
message.enabled = Boolean(object.enabled);
|
|
63133
|
+
if (object.isInternationalOnly != null)
|
|
63134
|
+
message.isInternationalOnly = Boolean(object.isInternationalOnly);
|
|
63135
|
+
if (object.tags) {
|
|
63136
|
+
if (typeof object.tags !== "object")
|
|
63137
|
+
throw TypeError(".CollectionCreated.tags: object expected");
|
|
63138
|
+
message.tags = {};
|
|
63139
|
+
for (var keys = Object.keys(object.tags), i = 0; i < keys.length; ++i) {
|
|
63140
|
+
if (typeof object.tags[keys[i]] !== "object")
|
|
63141
|
+
throw TypeError(".CollectionCreated.tags: object expected");
|
|
63142
|
+
message.tags[keys[i]] = $root.contentful.Tags.fromObject(object.tags[keys[i]]);
|
|
63143
|
+
}
|
|
63144
|
+
}
|
|
63145
|
+
if (object.techniques) {
|
|
63146
|
+
if (!Array.isArray(object.techniques))
|
|
63147
|
+
throw TypeError(".CollectionCreated.techniques: array expected");
|
|
63148
|
+
message.techniques = [];
|
|
63149
|
+
for (var i = 0; i < object.techniques.length; ++i) {
|
|
63150
|
+
if (typeof object.techniques[i] !== "object")
|
|
63151
|
+
throw TypeError(".CollectionCreated.techniques: object expected");
|
|
63152
|
+
message.techniques[i] = $root.contentful.SlugReference.fromObject(object.techniques[i]);
|
|
63153
|
+
}
|
|
63154
|
+
}
|
|
63155
|
+
if (object.related) {
|
|
63156
|
+
if (!Array.isArray(object.related))
|
|
63157
|
+
throw TypeError(".CollectionCreated.related: array expected");
|
|
63158
|
+
message.related = [];
|
|
63159
|
+
for (var i = 0; i < object.related.length; ++i) {
|
|
63160
|
+
if (typeof object.related[i] !== "object")
|
|
63161
|
+
throw TypeError(".CollectionCreated.related: object expected");
|
|
63162
|
+
message.related[i] = $root.contentful.SlugReference.fromObject(object.related[i]);
|
|
63163
|
+
}
|
|
63164
|
+
}
|
|
62043
63165
|
return message;
|
|
62044
63166
|
};
|
|
62045
63167
|
|
|
@@ -62056,8 +63178,19 @@ $root.CollectionCreated = (function() {
|
|
|
62056
63178
|
if (!options)
|
|
62057
63179
|
options = {};
|
|
62058
63180
|
var object = {};
|
|
62059
|
-
if (options.arrays || options.defaults)
|
|
63181
|
+
if (options.arrays || options.defaults) {
|
|
62060
63182
|
object.accessGroup = [];
|
|
63183
|
+
object.collectionContent = [];
|
|
63184
|
+
object.techniques = [];
|
|
63185
|
+
object.related = [];
|
|
63186
|
+
}
|
|
63187
|
+
if (options.objects || options.defaults) {
|
|
63188
|
+
object.name = {};
|
|
63189
|
+
object.teaser = {};
|
|
63190
|
+
object.description = {};
|
|
63191
|
+
object.tileMedia = {};
|
|
63192
|
+
object.tags = {};
|
|
63193
|
+
}
|
|
62061
63194
|
if (options.defaults) {
|
|
62062
63195
|
object.slug = "";
|
|
62063
63196
|
object.contentType = "";
|
|
@@ -62067,6 +63200,8 @@ $root.CollectionCreated = (function() {
|
|
|
62067
63200
|
object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
62068
63201
|
} else
|
|
62069
63202
|
object.createdAt = options.longs === String ? "0" : 0;
|
|
63203
|
+
object.enabled = false;
|
|
63204
|
+
object.isInternationalOnly = false;
|
|
62070
63205
|
}
|
|
62071
63206
|
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
62072
63207
|
object.slug = message.slug;
|
|
@@ -62084,6 +63219,51 @@ $root.CollectionCreated = (function() {
|
|
|
62084
63219
|
object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
|
|
62085
63220
|
else
|
|
62086
63221
|
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;
|
|
63222
|
+
var keys2;
|
|
63223
|
+
if (message.name && (keys2 = Object.keys(message.name)).length) {
|
|
63224
|
+
object.name = {};
|
|
63225
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
63226
|
+
object.name[keys2[j]] = message.name[keys2[j]];
|
|
63227
|
+
}
|
|
63228
|
+
if (message.teaser && (keys2 = Object.keys(message.teaser)).length) {
|
|
63229
|
+
object.teaser = {};
|
|
63230
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
63231
|
+
object.teaser[keys2[j]] = message.teaser[keys2[j]];
|
|
63232
|
+
}
|
|
63233
|
+
if (message.description && (keys2 = Object.keys(message.description)).length) {
|
|
63234
|
+
object.description = {};
|
|
63235
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
63236
|
+
object.description[keys2[j]] = message.description[keys2[j]];
|
|
63237
|
+
}
|
|
63238
|
+
if (message.tileMedia && (keys2 = Object.keys(message.tileMedia)).length) {
|
|
63239
|
+
object.tileMedia = {};
|
|
63240
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
63241
|
+
object.tileMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.tileMedia[keys2[j]], options);
|
|
63242
|
+
}
|
|
63243
|
+
if (message.collectionContent && message.collectionContent.length) {
|
|
63244
|
+
object.collectionContent = [];
|
|
63245
|
+
for (var j = 0; j < message.collectionContent.length; ++j)
|
|
63246
|
+
object.collectionContent[j] = $root.contentful.SlugReference.toObject(message.collectionContent[j], options);
|
|
63247
|
+
}
|
|
63248
|
+
if (message.enabled != null && message.hasOwnProperty("enabled"))
|
|
63249
|
+
object.enabled = message.enabled;
|
|
63250
|
+
if (message.isInternationalOnly != null && message.hasOwnProperty("isInternationalOnly"))
|
|
63251
|
+
object.isInternationalOnly = message.isInternationalOnly;
|
|
63252
|
+
if (message.tags && (keys2 = Object.keys(message.tags)).length) {
|
|
63253
|
+
object.tags = {};
|
|
63254
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
63255
|
+
object.tags[keys2[j]] = $root.contentful.Tags.toObject(message.tags[keys2[j]], options);
|
|
63256
|
+
}
|
|
63257
|
+
if (message.techniques && message.techniques.length) {
|
|
63258
|
+
object.techniques = [];
|
|
63259
|
+
for (var j = 0; j < message.techniques.length; ++j)
|
|
63260
|
+
object.techniques[j] = $root.contentful.SlugReference.toObject(message.techniques[j], options);
|
|
63261
|
+
}
|
|
63262
|
+
if (message.related && message.related.length) {
|
|
63263
|
+
object.related = [];
|
|
63264
|
+
for (var j = 0; j < message.related.length; ++j)
|
|
63265
|
+
object.related[j] = $root.contentful.SlugReference.toObject(message.related[j], options);
|
|
63266
|
+
}
|
|
62087
63267
|
return object;
|
|
62088
63268
|
};
|
|
62089
63269
|
|
|
@@ -62112,6 +63292,16 @@ $root.CollectionUpdated = (function() {
|
|
|
62112
63292
|
* @property {ContentCollectionType|null} [collectionType] CollectionUpdated collectionType
|
|
62113
63293
|
* @property {Array.<contentful.ISlugReference>|null} [accessGroup] CollectionUpdated accessGroup
|
|
62114
63294
|
* @property {number|Long|null} [updatedAt] CollectionUpdated updatedAt
|
|
63295
|
+
* @property {Object.<string,string>|null} [name] CollectionUpdated name
|
|
63296
|
+
* @property {Object.<string,string>|null} [teaser] CollectionUpdated teaser
|
|
63297
|
+
* @property {Object.<string,string>|null} [description] CollectionUpdated description
|
|
63298
|
+
* @property {Object.<string,contentful.IIdReference>|null} [tileMedia] CollectionUpdated tileMedia
|
|
63299
|
+
* @property {Array.<contentful.ISlugReference>|null} [collectionContent] CollectionUpdated collectionContent
|
|
63300
|
+
* @property {boolean|null} [enabled] CollectionUpdated enabled
|
|
63301
|
+
* @property {boolean|null} [isInternationalOnly] CollectionUpdated isInternationalOnly
|
|
63302
|
+
* @property {Object.<string,contentful.ITags>|null} [tags] CollectionUpdated tags
|
|
63303
|
+
* @property {Array.<contentful.ISlugReference>|null} [techniques] CollectionUpdated techniques
|
|
63304
|
+
* @property {Array.<contentful.ISlugReference>|null} [related] CollectionUpdated related
|
|
62115
63305
|
*/
|
|
62116
63306
|
|
|
62117
63307
|
/**
|
|
@@ -62124,6 +63314,14 @@ $root.CollectionUpdated = (function() {
|
|
|
62124
63314
|
*/
|
|
62125
63315
|
function CollectionUpdated(properties) {
|
|
62126
63316
|
this.accessGroup = [];
|
|
63317
|
+
this.name = {};
|
|
63318
|
+
this.teaser = {};
|
|
63319
|
+
this.description = {};
|
|
63320
|
+
this.tileMedia = {};
|
|
63321
|
+
this.collectionContent = [];
|
|
63322
|
+
this.tags = {};
|
|
63323
|
+
this.techniques = [];
|
|
63324
|
+
this.related = [];
|
|
62127
63325
|
if (properties)
|
|
62128
63326
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
62129
63327
|
if (properties[keys[i]] != null)
|
|
@@ -62170,6 +63368,86 @@ $root.CollectionUpdated = (function() {
|
|
|
62170
63368
|
*/
|
|
62171
63369
|
CollectionUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
62172
63370
|
|
|
63371
|
+
/**
|
|
63372
|
+
* CollectionUpdated name.
|
|
63373
|
+
* @member {Object.<string,string>} name
|
|
63374
|
+
* @memberof CollectionUpdated
|
|
63375
|
+
* @instance
|
|
63376
|
+
*/
|
|
63377
|
+
CollectionUpdated.prototype.name = $util.emptyObject;
|
|
63378
|
+
|
|
63379
|
+
/**
|
|
63380
|
+
* CollectionUpdated teaser.
|
|
63381
|
+
* @member {Object.<string,string>} teaser
|
|
63382
|
+
* @memberof CollectionUpdated
|
|
63383
|
+
* @instance
|
|
63384
|
+
*/
|
|
63385
|
+
CollectionUpdated.prototype.teaser = $util.emptyObject;
|
|
63386
|
+
|
|
63387
|
+
/**
|
|
63388
|
+
* CollectionUpdated description.
|
|
63389
|
+
* @member {Object.<string,string>} description
|
|
63390
|
+
* @memberof CollectionUpdated
|
|
63391
|
+
* @instance
|
|
63392
|
+
*/
|
|
63393
|
+
CollectionUpdated.prototype.description = $util.emptyObject;
|
|
63394
|
+
|
|
63395
|
+
/**
|
|
63396
|
+
* CollectionUpdated tileMedia.
|
|
63397
|
+
* @member {Object.<string,contentful.IIdReference>} tileMedia
|
|
63398
|
+
* @memberof CollectionUpdated
|
|
63399
|
+
* @instance
|
|
63400
|
+
*/
|
|
63401
|
+
CollectionUpdated.prototype.tileMedia = $util.emptyObject;
|
|
63402
|
+
|
|
63403
|
+
/**
|
|
63404
|
+
* CollectionUpdated collectionContent.
|
|
63405
|
+
* @member {Array.<contentful.ISlugReference>} collectionContent
|
|
63406
|
+
* @memberof CollectionUpdated
|
|
63407
|
+
* @instance
|
|
63408
|
+
*/
|
|
63409
|
+
CollectionUpdated.prototype.collectionContent = $util.emptyArray;
|
|
63410
|
+
|
|
63411
|
+
/**
|
|
63412
|
+
* CollectionUpdated enabled.
|
|
63413
|
+
* @member {boolean} enabled
|
|
63414
|
+
* @memberof CollectionUpdated
|
|
63415
|
+
* @instance
|
|
63416
|
+
*/
|
|
63417
|
+
CollectionUpdated.prototype.enabled = false;
|
|
63418
|
+
|
|
63419
|
+
/**
|
|
63420
|
+
* CollectionUpdated isInternationalOnly.
|
|
63421
|
+
* @member {boolean} isInternationalOnly
|
|
63422
|
+
* @memberof CollectionUpdated
|
|
63423
|
+
* @instance
|
|
63424
|
+
*/
|
|
63425
|
+
CollectionUpdated.prototype.isInternationalOnly = false;
|
|
63426
|
+
|
|
63427
|
+
/**
|
|
63428
|
+
* CollectionUpdated tags.
|
|
63429
|
+
* @member {Object.<string,contentful.ITags>} tags
|
|
63430
|
+
* @memberof CollectionUpdated
|
|
63431
|
+
* @instance
|
|
63432
|
+
*/
|
|
63433
|
+
CollectionUpdated.prototype.tags = $util.emptyObject;
|
|
63434
|
+
|
|
63435
|
+
/**
|
|
63436
|
+
* CollectionUpdated techniques.
|
|
63437
|
+
* @member {Array.<contentful.ISlugReference>} techniques
|
|
63438
|
+
* @memberof CollectionUpdated
|
|
63439
|
+
* @instance
|
|
63440
|
+
*/
|
|
63441
|
+
CollectionUpdated.prototype.techniques = $util.emptyArray;
|
|
63442
|
+
|
|
63443
|
+
/**
|
|
63444
|
+
* CollectionUpdated related.
|
|
63445
|
+
* @member {Array.<contentful.ISlugReference>} related
|
|
63446
|
+
* @memberof CollectionUpdated
|
|
63447
|
+
* @instance
|
|
63448
|
+
*/
|
|
63449
|
+
CollectionUpdated.prototype.related = $util.emptyArray;
|
|
63450
|
+
|
|
62173
63451
|
/**
|
|
62174
63452
|
* Creates a new CollectionUpdated instance using the specified properties.
|
|
62175
63453
|
* @function create
|
|
@@ -62205,6 +63483,38 @@ $root.CollectionUpdated = (function() {
|
|
|
62205
63483
|
$root.contentful.SlugReference.encode(message.accessGroup[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
62206
63484
|
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
62207
63485
|
writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.updatedAt);
|
|
63486
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
63487
|
+
for (var keys = Object.keys(message.name), i = 0; i < keys.length; ++i)
|
|
63488
|
+
writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.name[keys[i]]).ldelim();
|
|
63489
|
+
if (message.teaser != null && message.hasOwnProperty("teaser"))
|
|
63490
|
+
for (var keys = Object.keys(message.teaser), i = 0; i < keys.length; ++i)
|
|
63491
|
+
writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.teaser[keys[i]]).ldelim();
|
|
63492
|
+
if (message.description != null && message.hasOwnProperty("description"))
|
|
63493
|
+
for (var keys = Object.keys(message.description), i = 0; i < keys.length; ++i)
|
|
63494
|
+
writer.uint32(/* id 8, wireType 2 =*/66).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.description[keys[i]]).ldelim();
|
|
63495
|
+
if (message.tileMedia != null && message.hasOwnProperty("tileMedia"))
|
|
63496
|
+
for (var keys = Object.keys(message.tileMedia), i = 0; i < keys.length; ++i) {
|
|
63497
|
+
writer.uint32(/* id 9, wireType 2 =*/74).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
63498
|
+
$root.contentful.IdReference.encode(message.tileMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
63499
|
+
}
|
|
63500
|
+
if (message.collectionContent != null && message.collectionContent.length)
|
|
63501
|
+
for (var i = 0; i < message.collectionContent.length; ++i)
|
|
63502
|
+
$root.contentful.SlugReference.encode(message.collectionContent[i], writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
|
|
63503
|
+
if (message.enabled != null && message.hasOwnProperty("enabled"))
|
|
63504
|
+
writer.uint32(/* id 11, wireType 0 =*/88).bool(message.enabled);
|
|
63505
|
+
if (message.isInternationalOnly != null && message.hasOwnProperty("isInternationalOnly"))
|
|
63506
|
+
writer.uint32(/* id 12, wireType 0 =*/96).bool(message.isInternationalOnly);
|
|
63507
|
+
if (message.tags != null && message.hasOwnProperty("tags"))
|
|
63508
|
+
for (var keys = Object.keys(message.tags), i = 0; i < keys.length; ++i) {
|
|
63509
|
+
writer.uint32(/* id 13, wireType 2 =*/106).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
63510
|
+
$root.contentful.Tags.encode(message.tags[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
63511
|
+
}
|
|
63512
|
+
if (message.techniques != null && message.techniques.length)
|
|
63513
|
+
for (var i = 0; i < message.techniques.length; ++i)
|
|
63514
|
+
$root.contentful.SlugReference.encode(message.techniques[i], writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim();
|
|
63515
|
+
if (message.related != null && message.related.length)
|
|
63516
|
+
for (var i = 0; i < message.related.length; ++i)
|
|
63517
|
+
$root.contentful.SlugReference.encode(message.related[i], writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim();
|
|
62208
63518
|
return writer;
|
|
62209
63519
|
};
|
|
62210
63520
|
|
|
@@ -62235,7 +63545,7 @@ $root.CollectionUpdated = (function() {
|
|
|
62235
63545
|
CollectionUpdated.decode = function decode(reader, length) {
|
|
62236
63546
|
if (!(reader instanceof $Reader))
|
|
62237
63547
|
reader = $Reader.create(reader);
|
|
62238
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.CollectionUpdated();
|
|
63548
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.CollectionUpdated(), key;
|
|
62239
63549
|
while (reader.pos < end) {
|
|
62240
63550
|
var tag = reader.uint32();
|
|
62241
63551
|
switch (tag >>> 3) {
|
|
@@ -62256,6 +63566,67 @@ $root.CollectionUpdated = (function() {
|
|
|
62256
63566
|
case 5:
|
|
62257
63567
|
message.updatedAt = reader.uint64();
|
|
62258
63568
|
break;
|
|
63569
|
+
case 6:
|
|
63570
|
+
reader.skip().pos++;
|
|
63571
|
+
if (message.name === $util.emptyObject)
|
|
63572
|
+
message.name = {};
|
|
63573
|
+
key = reader.string();
|
|
63574
|
+
reader.pos++;
|
|
63575
|
+
message.name[key] = reader.string();
|
|
63576
|
+
break;
|
|
63577
|
+
case 7:
|
|
63578
|
+
reader.skip().pos++;
|
|
63579
|
+
if (message.teaser === $util.emptyObject)
|
|
63580
|
+
message.teaser = {};
|
|
63581
|
+
key = reader.string();
|
|
63582
|
+
reader.pos++;
|
|
63583
|
+
message.teaser[key] = reader.string();
|
|
63584
|
+
break;
|
|
63585
|
+
case 8:
|
|
63586
|
+
reader.skip().pos++;
|
|
63587
|
+
if (message.description === $util.emptyObject)
|
|
63588
|
+
message.description = {};
|
|
63589
|
+
key = reader.string();
|
|
63590
|
+
reader.pos++;
|
|
63591
|
+
message.description[key] = reader.string();
|
|
63592
|
+
break;
|
|
63593
|
+
case 9:
|
|
63594
|
+
reader.skip().pos++;
|
|
63595
|
+
if (message.tileMedia === $util.emptyObject)
|
|
63596
|
+
message.tileMedia = {};
|
|
63597
|
+
key = reader.string();
|
|
63598
|
+
reader.pos++;
|
|
63599
|
+
message.tileMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
|
|
63600
|
+
break;
|
|
63601
|
+
case 10:
|
|
63602
|
+
if (!(message.collectionContent && message.collectionContent.length))
|
|
63603
|
+
message.collectionContent = [];
|
|
63604
|
+
message.collectionContent.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
63605
|
+
break;
|
|
63606
|
+
case 11:
|
|
63607
|
+
message.enabled = reader.bool();
|
|
63608
|
+
break;
|
|
63609
|
+
case 12:
|
|
63610
|
+
message.isInternationalOnly = reader.bool();
|
|
63611
|
+
break;
|
|
63612
|
+
case 13:
|
|
63613
|
+
reader.skip().pos++;
|
|
63614
|
+
if (message.tags === $util.emptyObject)
|
|
63615
|
+
message.tags = {};
|
|
63616
|
+
key = reader.string();
|
|
63617
|
+
reader.pos++;
|
|
63618
|
+
message.tags[key] = $root.contentful.Tags.decode(reader, reader.uint32());
|
|
63619
|
+
break;
|
|
63620
|
+
case 14:
|
|
63621
|
+
if (!(message.techniques && message.techniques.length))
|
|
63622
|
+
message.techniques = [];
|
|
63623
|
+
message.techniques.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
63624
|
+
break;
|
|
63625
|
+
case 15:
|
|
63626
|
+
if (!(message.related && message.related.length))
|
|
63627
|
+
message.related = [];
|
|
63628
|
+
message.related.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
63629
|
+
break;
|
|
62259
63630
|
default:
|
|
62260
63631
|
reader.skipType(tag & 7);
|
|
62261
63632
|
break;
|
|
@@ -62317,6 +63688,83 @@ $root.CollectionUpdated = (function() {
|
|
|
62317
63688
|
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
62318
63689
|
if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
|
|
62319
63690
|
return "updatedAt: integer|Long expected";
|
|
63691
|
+
if (message.name != null && message.hasOwnProperty("name")) {
|
|
63692
|
+
if (!$util.isObject(message.name))
|
|
63693
|
+
return "name: object expected";
|
|
63694
|
+
var key = Object.keys(message.name);
|
|
63695
|
+
for (var i = 0; i < key.length; ++i)
|
|
63696
|
+
if (!$util.isString(message.name[key[i]]))
|
|
63697
|
+
return "name: string{k:string} expected";
|
|
63698
|
+
}
|
|
63699
|
+
if (message.teaser != null && message.hasOwnProperty("teaser")) {
|
|
63700
|
+
if (!$util.isObject(message.teaser))
|
|
63701
|
+
return "teaser: object expected";
|
|
63702
|
+
var key = Object.keys(message.teaser);
|
|
63703
|
+
for (var i = 0; i < key.length; ++i)
|
|
63704
|
+
if (!$util.isString(message.teaser[key[i]]))
|
|
63705
|
+
return "teaser: string{k:string} expected";
|
|
63706
|
+
}
|
|
63707
|
+
if (message.description != null && message.hasOwnProperty("description")) {
|
|
63708
|
+
if (!$util.isObject(message.description))
|
|
63709
|
+
return "description: object expected";
|
|
63710
|
+
var key = Object.keys(message.description);
|
|
63711
|
+
for (var i = 0; i < key.length; ++i)
|
|
63712
|
+
if (!$util.isString(message.description[key[i]]))
|
|
63713
|
+
return "description: string{k:string} expected";
|
|
63714
|
+
}
|
|
63715
|
+
if (message.tileMedia != null && message.hasOwnProperty("tileMedia")) {
|
|
63716
|
+
if (!$util.isObject(message.tileMedia))
|
|
63717
|
+
return "tileMedia: object expected";
|
|
63718
|
+
var key = Object.keys(message.tileMedia);
|
|
63719
|
+
for (var i = 0; i < key.length; ++i) {
|
|
63720
|
+
var error = $root.contentful.IdReference.verify(message.tileMedia[key[i]]);
|
|
63721
|
+
if (error)
|
|
63722
|
+
return "tileMedia." + error;
|
|
63723
|
+
}
|
|
63724
|
+
}
|
|
63725
|
+
if (message.collectionContent != null && message.hasOwnProperty("collectionContent")) {
|
|
63726
|
+
if (!Array.isArray(message.collectionContent))
|
|
63727
|
+
return "collectionContent: array expected";
|
|
63728
|
+
for (var i = 0; i < message.collectionContent.length; ++i) {
|
|
63729
|
+
var error = $root.contentful.SlugReference.verify(message.collectionContent[i]);
|
|
63730
|
+
if (error)
|
|
63731
|
+
return "collectionContent." + error;
|
|
63732
|
+
}
|
|
63733
|
+
}
|
|
63734
|
+
if (message.enabled != null && message.hasOwnProperty("enabled"))
|
|
63735
|
+
if (typeof message.enabled !== "boolean")
|
|
63736
|
+
return "enabled: boolean expected";
|
|
63737
|
+
if (message.isInternationalOnly != null && message.hasOwnProperty("isInternationalOnly"))
|
|
63738
|
+
if (typeof message.isInternationalOnly !== "boolean")
|
|
63739
|
+
return "isInternationalOnly: boolean expected";
|
|
63740
|
+
if (message.tags != null && message.hasOwnProperty("tags")) {
|
|
63741
|
+
if (!$util.isObject(message.tags))
|
|
63742
|
+
return "tags: object expected";
|
|
63743
|
+
var key = Object.keys(message.tags);
|
|
63744
|
+
for (var i = 0; i < key.length; ++i) {
|
|
63745
|
+
var error = $root.contentful.Tags.verify(message.tags[key[i]]);
|
|
63746
|
+
if (error)
|
|
63747
|
+
return "tags." + error;
|
|
63748
|
+
}
|
|
63749
|
+
}
|
|
63750
|
+
if (message.techniques != null && message.hasOwnProperty("techniques")) {
|
|
63751
|
+
if (!Array.isArray(message.techniques))
|
|
63752
|
+
return "techniques: array expected";
|
|
63753
|
+
for (var i = 0; i < message.techniques.length; ++i) {
|
|
63754
|
+
var error = $root.contentful.SlugReference.verify(message.techniques[i]);
|
|
63755
|
+
if (error)
|
|
63756
|
+
return "techniques." + error;
|
|
63757
|
+
}
|
|
63758
|
+
}
|
|
63759
|
+
if (message.related != null && message.hasOwnProperty("related")) {
|
|
63760
|
+
if (!Array.isArray(message.related))
|
|
63761
|
+
return "related: array expected";
|
|
63762
|
+
for (var i = 0; i < message.related.length; ++i) {
|
|
63763
|
+
var error = $root.contentful.SlugReference.verify(message.related[i]);
|
|
63764
|
+
if (error)
|
|
63765
|
+
return "related." + error;
|
|
63766
|
+
}
|
|
63767
|
+
}
|
|
62320
63768
|
return null;
|
|
62321
63769
|
};
|
|
62322
63770
|
|
|
@@ -62365,6 +63813,81 @@ $root.CollectionUpdated = (function() {
|
|
|
62365
63813
|
message.updatedAt = object.updatedAt;
|
|
62366
63814
|
else if (typeof object.updatedAt === "object")
|
|
62367
63815
|
message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
|
|
63816
|
+
if (object.name) {
|
|
63817
|
+
if (typeof object.name !== "object")
|
|
63818
|
+
throw TypeError(".CollectionUpdated.name: object expected");
|
|
63819
|
+
message.name = {};
|
|
63820
|
+
for (var keys = Object.keys(object.name), i = 0; i < keys.length; ++i)
|
|
63821
|
+
message.name[keys[i]] = String(object.name[keys[i]]);
|
|
63822
|
+
}
|
|
63823
|
+
if (object.teaser) {
|
|
63824
|
+
if (typeof object.teaser !== "object")
|
|
63825
|
+
throw TypeError(".CollectionUpdated.teaser: object expected");
|
|
63826
|
+
message.teaser = {};
|
|
63827
|
+
for (var keys = Object.keys(object.teaser), i = 0; i < keys.length; ++i)
|
|
63828
|
+
message.teaser[keys[i]] = String(object.teaser[keys[i]]);
|
|
63829
|
+
}
|
|
63830
|
+
if (object.description) {
|
|
63831
|
+
if (typeof object.description !== "object")
|
|
63832
|
+
throw TypeError(".CollectionUpdated.description: object expected");
|
|
63833
|
+
message.description = {};
|
|
63834
|
+
for (var keys = Object.keys(object.description), i = 0; i < keys.length; ++i)
|
|
63835
|
+
message.description[keys[i]] = String(object.description[keys[i]]);
|
|
63836
|
+
}
|
|
63837
|
+
if (object.tileMedia) {
|
|
63838
|
+
if (typeof object.tileMedia !== "object")
|
|
63839
|
+
throw TypeError(".CollectionUpdated.tileMedia: object expected");
|
|
63840
|
+
message.tileMedia = {};
|
|
63841
|
+
for (var keys = Object.keys(object.tileMedia), i = 0; i < keys.length; ++i) {
|
|
63842
|
+
if (typeof object.tileMedia[keys[i]] !== "object")
|
|
63843
|
+
throw TypeError(".CollectionUpdated.tileMedia: object expected");
|
|
63844
|
+
message.tileMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.tileMedia[keys[i]]);
|
|
63845
|
+
}
|
|
63846
|
+
}
|
|
63847
|
+
if (object.collectionContent) {
|
|
63848
|
+
if (!Array.isArray(object.collectionContent))
|
|
63849
|
+
throw TypeError(".CollectionUpdated.collectionContent: array expected");
|
|
63850
|
+
message.collectionContent = [];
|
|
63851
|
+
for (var i = 0; i < object.collectionContent.length; ++i) {
|
|
63852
|
+
if (typeof object.collectionContent[i] !== "object")
|
|
63853
|
+
throw TypeError(".CollectionUpdated.collectionContent: object expected");
|
|
63854
|
+
message.collectionContent[i] = $root.contentful.SlugReference.fromObject(object.collectionContent[i]);
|
|
63855
|
+
}
|
|
63856
|
+
}
|
|
63857
|
+
if (object.enabled != null)
|
|
63858
|
+
message.enabled = Boolean(object.enabled);
|
|
63859
|
+
if (object.isInternationalOnly != null)
|
|
63860
|
+
message.isInternationalOnly = Boolean(object.isInternationalOnly);
|
|
63861
|
+
if (object.tags) {
|
|
63862
|
+
if (typeof object.tags !== "object")
|
|
63863
|
+
throw TypeError(".CollectionUpdated.tags: object expected");
|
|
63864
|
+
message.tags = {};
|
|
63865
|
+
for (var keys = Object.keys(object.tags), i = 0; i < keys.length; ++i) {
|
|
63866
|
+
if (typeof object.tags[keys[i]] !== "object")
|
|
63867
|
+
throw TypeError(".CollectionUpdated.tags: object expected");
|
|
63868
|
+
message.tags[keys[i]] = $root.contentful.Tags.fromObject(object.tags[keys[i]]);
|
|
63869
|
+
}
|
|
63870
|
+
}
|
|
63871
|
+
if (object.techniques) {
|
|
63872
|
+
if (!Array.isArray(object.techniques))
|
|
63873
|
+
throw TypeError(".CollectionUpdated.techniques: array expected");
|
|
63874
|
+
message.techniques = [];
|
|
63875
|
+
for (var i = 0; i < object.techniques.length; ++i) {
|
|
63876
|
+
if (typeof object.techniques[i] !== "object")
|
|
63877
|
+
throw TypeError(".CollectionUpdated.techniques: object expected");
|
|
63878
|
+
message.techniques[i] = $root.contentful.SlugReference.fromObject(object.techniques[i]);
|
|
63879
|
+
}
|
|
63880
|
+
}
|
|
63881
|
+
if (object.related) {
|
|
63882
|
+
if (!Array.isArray(object.related))
|
|
63883
|
+
throw TypeError(".CollectionUpdated.related: array expected");
|
|
63884
|
+
message.related = [];
|
|
63885
|
+
for (var i = 0; i < object.related.length; ++i) {
|
|
63886
|
+
if (typeof object.related[i] !== "object")
|
|
63887
|
+
throw TypeError(".CollectionUpdated.related: object expected");
|
|
63888
|
+
message.related[i] = $root.contentful.SlugReference.fromObject(object.related[i]);
|
|
63889
|
+
}
|
|
63890
|
+
}
|
|
62368
63891
|
return message;
|
|
62369
63892
|
};
|
|
62370
63893
|
|
|
@@ -62381,8 +63904,19 @@ $root.CollectionUpdated = (function() {
|
|
|
62381
63904
|
if (!options)
|
|
62382
63905
|
options = {};
|
|
62383
63906
|
var object = {};
|
|
62384
|
-
if (options.arrays || options.defaults)
|
|
63907
|
+
if (options.arrays || options.defaults) {
|
|
62385
63908
|
object.accessGroup = [];
|
|
63909
|
+
object.collectionContent = [];
|
|
63910
|
+
object.techniques = [];
|
|
63911
|
+
object.related = [];
|
|
63912
|
+
}
|
|
63913
|
+
if (options.objects || options.defaults) {
|
|
63914
|
+
object.name = {};
|
|
63915
|
+
object.teaser = {};
|
|
63916
|
+
object.description = {};
|
|
63917
|
+
object.tileMedia = {};
|
|
63918
|
+
object.tags = {};
|
|
63919
|
+
}
|
|
62386
63920
|
if (options.defaults) {
|
|
62387
63921
|
object.slug = "";
|
|
62388
63922
|
object.contentType = "";
|
|
@@ -62392,6 +63926,8 @@ $root.CollectionUpdated = (function() {
|
|
|
62392
63926
|
object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
62393
63927
|
} else
|
|
62394
63928
|
object.updatedAt = options.longs === String ? "0" : 0;
|
|
63929
|
+
object.enabled = false;
|
|
63930
|
+
object.isInternationalOnly = false;
|
|
62395
63931
|
}
|
|
62396
63932
|
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
62397
63933
|
object.slug = message.slug;
|
|
@@ -62409,6 +63945,51 @@ $root.CollectionUpdated = (function() {
|
|
|
62409
63945
|
object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
|
|
62410
63946
|
else
|
|
62411
63947
|
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;
|
|
63948
|
+
var keys2;
|
|
63949
|
+
if (message.name && (keys2 = Object.keys(message.name)).length) {
|
|
63950
|
+
object.name = {};
|
|
63951
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
63952
|
+
object.name[keys2[j]] = message.name[keys2[j]];
|
|
63953
|
+
}
|
|
63954
|
+
if (message.teaser && (keys2 = Object.keys(message.teaser)).length) {
|
|
63955
|
+
object.teaser = {};
|
|
63956
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
63957
|
+
object.teaser[keys2[j]] = message.teaser[keys2[j]];
|
|
63958
|
+
}
|
|
63959
|
+
if (message.description && (keys2 = Object.keys(message.description)).length) {
|
|
63960
|
+
object.description = {};
|
|
63961
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
63962
|
+
object.description[keys2[j]] = message.description[keys2[j]];
|
|
63963
|
+
}
|
|
63964
|
+
if (message.tileMedia && (keys2 = Object.keys(message.tileMedia)).length) {
|
|
63965
|
+
object.tileMedia = {};
|
|
63966
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
63967
|
+
object.tileMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.tileMedia[keys2[j]], options);
|
|
63968
|
+
}
|
|
63969
|
+
if (message.collectionContent && message.collectionContent.length) {
|
|
63970
|
+
object.collectionContent = [];
|
|
63971
|
+
for (var j = 0; j < message.collectionContent.length; ++j)
|
|
63972
|
+
object.collectionContent[j] = $root.contentful.SlugReference.toObject(message.collectionContent[j], options);
|
|
63973
|
+
}
|
|
63974
|
+
if (message.enabled != null && message.hasOwnProperty("enabled"))
|
|
63975
|
+
object.enabled = message.enabled;
|
|
63976
|
+
if (message.isInternationalOnly != null && message.hasOwnProperty("isInternationalOnly"))
|
|
63977
|
+
object.isInternationalOnly = message.isInternationalOnly;
|
|
63978
|
+
if (message.tags && (keys2 = Object.keys(message.tags)).length) {
|
|
63979
|
+
object.tags = {};
|
|
63980
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
63981
|
+
object.tags[keys2[j]] = $root.contentful.Tags.toObject(message.tags[keys2[j]], options);
|
|
63982
|
+
}
|
|
63983
|
+
if (message.techniques && message.techniques.length) {
|
|
63984
|
+
object.techniques = [];
|
|
63985
|
+
for (var j = 0; j < message.techniques.length; ++j)
|
|
63986
|
+
object.techniques[j] = $root.contentful.SlugReference.toObject(message.techniques[j], options);
|
|
63987
|
+
}
|
|
63988
|
+
if (message.related && message.related.length) {
|
|
63989
|
+
object.related = [];
|
|
63990
|
+
for (var j = 0; j < message.related.length; ++j)
|
|
63991
|
+
object.related[j] = $root.contentful.SlugReference.toObject(message.related[j], options);
|
|
63992
|
+
}
|
|
62412
63993
|
return object;
|
|
62413
63994
|
};
|
|
62414
63995
|
|
|
@@ -80084,6 +81665,446 @@ $root.ElfImportJobRejected = (function() {
|
|
|
80084
81665
|
return ElfImportJobRejected;
|
|
80085
81666
|
})();
|
|
80086
81667
|
|
|
81668
|
+
$root.ElfNormalizationJobCompleted = (function() {
|
|
81669
|
+
|
|
81670
|
+
/**
|
|
81671
|
+
* Properties of an ElfNormalizationJobCompleted.
|
|
81672
|
+
* @exports IElfNormalizationJobCompleted
|
|
81673
|
+
* @interface IElfNormalizationJobCompleted
|
|
81674
|
+
* @property {elf.INormalizationJob|null} [job] ElfNormalizationJobCompleted job
|
|
81675
|
+
* @property {elf.INormalizationJobResult|null} [result] ElfNormalizationJobCompleted result
|
|
81676
|
+
*/
|
|
81677
|
+
|
|
81678
|
+
/**
|
|
81679
|
+
* Constructs a new ElfNormalizationJobCompleted.
|
|
81680
|
+
* @exports ElfNormalizationJobCompleted
|
|
81681
|
+
* @classdesc Represents an ElfNormalizationJobCompleted.
|
|
81682
|
+
* @implements IElfNormalizationJobCompleted
|
|
81683
|
+
* @constructor
|
|
81684
|
+
* @param {IElfNormalizationJobCompleted=} [properties] Properties to set
|
|
81685
|
+
*/
|
|
81686
|
+
function ElfNormalizationJobCompleted(properties) {
|
|
81687
|
+
if (properties)
|
|
81688
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
81689
|
+
if (properties[keys[i]] != null)
|
|
81690
|
+
this[keys[i]] = properties[keys[i]];
|
|
81691
|
+
}
|
|
81692
|
+
|
|
81693
|
+
/**
|
|
81694
|
+
* ElfNormalizationJobCompleted job.
|
|
81695
|
+
* @member {elf.INormalizationJob|null|undefined} job
|
|
81696
|
+
* @memberof ElfNormalizationJobCompleted
|
|
81697
|
+
* @instance
|
|
81698
|
+
*/
|
|
81699
|
+
ElfNormalizationJobCompleted.prototype.job = null;
|
|
81700
|
+
|
|
81701
|
+
/**
|
|
81702
|
+
* ElfNormalizationJobCompleted result.
|
|
81703
|
+
* @member {elf.INormalizationJobResult|null|undefined} result
|
|
81704
|
+
* @memberof ElfNormalizationJobCompleted
|
|
81705
|
+
* @instance
|
|
81706
|
+
*/
|
|
81707
|
+
ElfNormalizationJobCompleted.prototype.result = null;
|
|
81708
|
+
|
|
81709
|
+
/**
|
|
81710
|
+
* Creates a new ElfNormalizationJobCompleted instance using the specified properties.
|
|
81711
|
+
* @function create
|
|
81712
|
+
* @memberof ElfNormalizationJobCompleted
|
|
81713
|
+
* @static
|
|
81714
|
+
* @param {IElfNormalizationJobCompleted=} [properties] Properties to set
|
|
81715
|
+
* @returns {ElfNormalizationJobCompleted} ElfNormalizationJobCompleted instance
|
|
81716
|
+
*/
|
|
81717
|
+
ElfNormalizationJobCompleted.create = function create(properties) {
|
|
81718
|
+
return new ElfNormalizationJobCompleted(properties);
|
|
81719
|
+
};
|
|
81720
|
+
|
|
81721
|
+
/**
|
|
81722
|
+
* Encodes the specified ElfNormalizationJobCompleted message. Does not implicitly {@link ElfNormalizationJobCompleted.verify|verify} messages.
|
|
81723
|
+
* @function encode
|
|
81724
|
+
* @memberof ElfNormalizationJobCompleted
|
|
81725
|
+
* @static
|
|
81726
|
+
* @param {IElfNormalizationJobCompleted} message ElfNormalizationJobCompleted message or plain object to encode
|
|
81727
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
81728
|
+
* @returns {$protobuf.Writer} Writer
|
|
81729
|
+
*/
|
|
81730
|
+
ElfNormalizationJobCompleted.encode = function encode(message, writer) {
|
|
81731
|
+
if (!writer)
|
|
81732
|
+
writer = $Writer.create();
|
|
81733
|
+
if (message.job != null && message.hasOwnProperty("job"))
|
|
81734
|
+
$root.elf.NormalizationJob.encode(message.job, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
81735
|
+
if (message.result != null && message.hasOwnProperty("result"))
|
|
81736
|
+
$root.elf.NormalizationJobResult.encode(message.result, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
81737
|
+
return writer;
|
|
81738
|
+
};
|
|
81739
|
+
|
|
81740
|
+
/**
|
|
81741
|
+
* Encodes the specified ElfNormalizationJobCompleted message, length delimited. Does not implicitly {@link ElfNormalizationJobCompleted.verify|verify} messages.
|
|
81742
|
+
* @function encodeDelimited
|
|
81743
|
+
* @memberof ElfNormalizationJobCompleted
|
|
81744
|
+
* @static
|
|
81745
|
+
* @param {IElfNormalizationJobCompleted} message ElfNormalizationJobCompleted message or plain object to encode
|
|
81746
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
81747
|
+
* @returns {$protobuf.Writer} Writer
|
|
81748
|
+
*/
|
|
81749
|
+
ElfNormalizationJobCompleted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
81750
|
+
return this.encode(message, writer).ldelim();
|
|
81751
|
+
};
|
|
81752
|
+
|
|
81753
|
+
/**
|
|
81754
|
+
* Decodes an ElfNormalizationJobCompleted message from the specified reader or buffer.
|
|
81755
|
+
* @function decode
|
|
81756
|
+
* @memberof ElfNormalizationJobCompleted
|
|
81757
|
+
* @static
|
|
81758
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
81759
|
+
* @param {number} [length] Message length if known beforehand
|
|
81760
|
+
* @returns {ElfNormalizationJobCompleted} ElfNormalizationJobCompleted
|
|
81761
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
81762
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
81763
|
+
*/
|
|
81764
|
+
ElfNormalizationJobCompleted.decode = function decode(reader, length) {
|
|
81765
|
+
if (!(reader instanceof $Reader))
|
|
81766
|
+
reader = $Reader.create(reader);
|
|
81767
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ElfNormalizationJobCompleted();
|
|
81768
|
+
while (reader.pos < end) {
|
|
81769
|
+
var tag = reader.uint32();
|
|
81770
|
+
switch (tag >>> 3) {
|
|
81771
|
+
case 1:
|
|
81772
|
+
message.job = $root.elf.NormalizationJob.decode(reader, reader.uint32());
|
|
81773
|
+
break;
|
|
81774
|
+
case 2:
|
|
81775
|
+
message.result = $root.elf.NormalizationJobResult.decode(reader, reader.uint32());
|
|
81776
|
+
break;
|
|
81777
|
+
default:
|
|
81778
|
+
reader.skipType(tag & 7);
|
|
81779
|
+
break;
|
|
81780
|
+
}
|
|
81781
|
+
}
|
|
81782
|
+
return message;
|
|
81783
|
+
};
|
|
81784
|
+
|
|
81785
|
+
/**
|
|
81786
|
+
* Decodes an ElfNormalizationJobCompleted message from the specified reader or buffer, length delimited.
|
|
81787
|
+
* @function decodeDelimited
|
|
81788
|
+
* @memberof ElfNormalizationJobCompleted
|
|
81789
|
+
* @static
|
|
81790
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
81791
|
+
* @returns {ElfNormalizationJobCompleted} ElfNormalizationJobCompleted
|
|
81792
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
81793
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
81794
|
+
*/
|
|
81795
|
+
ElfNormalizationJobCompleted.decodeDelimited = function decodeDelimited(reader) {
|
|
81796
|
+
if (!(reader instanceof $Reader))
|
|
81797
|
+
reader = new $Reader(reader);
|
|
81798
|
+
return this.decode(reader, reader.uint32());
|
|
81799
|
+
};
|
|
81800
|
+
|
|
81801
|
+
/**
|
|
81802
|
+
* Verifies an ElfNormalizationJobCompleted message.
|
|
81803
|
+
* @function verify
|
|
81804
|
+
* @memberof ElfNormalizationJobCompleted
|
|
81805
|
+
* @static
|
|
81806
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
81807
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
81808
|
+
*/
|
|
81809
|
+
ElfNormalizationJobCompleted.verify = function verify(message) {
|
|
81810
|
+
if (typeof message !== "object" || message === null)
|
|
81811
|
+
return "object expected";
|
|
81812
|
+
if (message.job != null && message.hasOwnProperty("job")) {
|
|
81813
|
+
var error = $root.elf.NormalizationJob.verify(message.job);
|
|
81814
|
+
if (error)
|
|
81815
|
+
return "job." + error;
|
|
81816
|
+
}
|
|
81817
|
+
if (message.result != null && message.hasOwnProperty("result")) {
|
|
81818
|
+
var error = $root.elf.NormalizationJobResult.verify(message.result);
|
|
81819
|
+
if (error)
|
|
81820
|
+
return "result." + error;
|
|
81821
|
+
}
|
|
81822
|
+
return null;
|
|
81823
|
+
};
|
|
81824
|
+
|
|
81825
|
+
/**
|
|
81826
|
+
* Creates an ElfNormalizationJobCompleted message from a plain object. Also converts values to their respective internal types.
|
|
81827
|
+
* @function fromObject
|
|
81828
|
+
* @memberof ElfNormalizationJobCompleted
|
|
81829
|
+
* @static
|
|
81830
|
+
* @param {Object.<string,*>} object Plain object
|
|
81831
|
+
* @returns {ElfNormalizationJobCompleted} ElfNormalizationJobCompleted
|
|
81832
|
+
*/
|
|
81833
|
+
ElfNormalizationJobCompleted.fromObject = function fromObject(object) {
|
|
81834
|
+
if (object instanceof $root.ElfNormalizationJobCompleted)
|
|
81835
|
+
return object;
|
|
81836
|
+
var message = new $root.ElfNormalizationJobCompleted();
|
|
81837
|
+
if (object.job != null) {
|
|
81838
|
+
if (typeof object.job !== "object")
|
|
81839
|
+
throw TypeError(".ElfNormalizationJobCompleted.job: object expected");
|
|
81840
|
+
message.job = $root.elf.NormalizationJob.fromObject(object.job);
|
|
81841
|
+
}
|
|
81842
|
+
if (object.result != null) {
|
|
81843
|
+
if (typeof object.result !== "object")
|
|
81844
|
+
throw TypeError(".ElfNormalizationJobCompleted.result: object expected");
|
|
81845
|
+
message.result = $root.elf.NormalizationJobResult.fromObject(object.result);
|
|
81846
|
+
}
|
|
81847
|
+
return message;
|
|
81848
|
+
};
|
|
81849
|
+
|
|
81850
|
+
/**
|
|
81851
|
+
* Creates a plain object from an ElfNormalizationJobCompleted message. Also converts values to other types if specified.
|
|
81852
|
+
* @function toObject
|
|
81853
|
+
* @memberof ElfNormalizationJobCompleted
|
|
81854
|
+
* @static
|
|
81855
|
+
* @param {ElfNormalizationJobCompleted} message ElfNormalizationJobCompleted
|
|
81856
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
81857
|
+
* @returns {Object.<string,*>} Plain object
|
|
81858
|
+
*/
|
|
81859
|
+
ElfNormalizationJobCompleted.toObject = function toObject(message, options) {
|
|
81860
|
+
if (!options)
|
|
81861
|
+
options = {};
|
|
81862
|
+
var object = {};
|
|
81863
|
+
if (options.defaults) {
|
|
81864
|
+
object.job = null;
|
|
81865
|
+
object.result = null;
|
|
81866
|
+
}
|
|
81867
|
+
if (message.job != null && message.hasOwnProperty("job"))
|
|
81868
|
+
object.job = $root.elf.NormalizationJob.toObject(message.job, options);
|
|
81869
|
+
if (message.result != null && message.hasOwnProperty("result"))
|
|
81870
|
+
object.result = $root.elf.NormalizationJobResult.toObject(message.result, options);
|
|
81871
|
+
return object;
|
|
81872
|
+
};
|
|
81873
|
+
|
|
81874
|
+
/**
|
|
81875
|
+
* Converts this ElfNormalizationJobCompleted to JSON.
|
|
81876
|
+
* @function toJSON
|
|
81877
|
+
* @memberof ElfNormalizationJobCompleted
|
|
81878
|
+
* @instance
|
|
81879
|
+
* @returns {Object.<string,*>} JSON object
|
|
81880
|
+
*/
|
|
81881
|
+
ElfNormalizationJobCompleted.prototype.toJSON = function toJSON() {
|
|
81882
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
81883
|
+
};
|
|
81884
|
+
|
|
81885
|
+
return ElfNormalizationJobCompleted;
|
|
81886
|
+
})();
|
|
81887
|
+
|
|
81888
|
+
$root.ElfNormalizationJobFailed = (function() {
|
|
81889
|
+
|
|
81890
|
+
/**
|
|
81891
|
+
* Properties of an ElfNormalizationJobFailed.
|
|
81892
|
+
* @exports IElfNormalizationJobFailed
|
|
81893
|
+
* @interface IElfNormalizationJobFailed
|
|
81894
|
+
* @property {elf.INormalizationJob|null} [job] ElfNormalizationJobFailed job
|
|
81895
|
+
* @property {elf.INormalizationJobError|null} [error] ElfNormalizationJobFailed error
|
|
81896
|
+
*/
|
|
81897
|
+
|
|
81898
|
+
/**
|
|
81899
|
+
* Constructs a new ElfNormalizationJobFailed.
|
|
81900
|
+
* @exports ElfNormalizationJobFailed
|
|
81901
|
+
* @classdesc Represents an ElfNormalizationJobFailed.
|
|
81902
|
+
* @implements IElfNormalizationJobFailed
|
|
81903
|
+
* @constructor
|
|
81904
|
+
* @param {IElfNormalizationJobFailed=} [properties] Properties to set
|
|
81905
|
+
*/
|
|
81906
|
+
function ElfNormalizationJobFailed(properties) {
|
|
81907
|
+
if (properties)
|
|
81908
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
81909
|
+
if (properties[keys[i]] != null)
|
|
81910
|
+
this[keys[i]] = properties[keys[i]];
|
|
81911
|
+
}
|
|
81912
|
+
|
|
81913
|
+
/**
|
|
81914
|
+
* ElfNormalizationJobFailed job.
|
|
81915
|
+
* @member {elf.INormalizationJob|null|undefined} job
|
|
81916
|
+
* @memberof ElfNormalizationJobFailed
|
|
81917
|
+
* @instance
|
|
81918
|
+
*/
|
|
81919
|
+
ElfNormalizationJobFailed.prototype.job = null;
|
|
81920
|
+
|
|
81921
|
+
/**
|
|
81922
|
+
* ElfNormalizationJobFailed error.
|
|
81923
|
+
* @member {elf.INormalizationJobError|null|undefined} error
|
|
81924
|
+
* @memberof ElfNormalizationJobFailed
|
|
81925
|
+
* @instance
|
|
81926
|
+
*/
|
|
81927
|
+
ElfNormalizationJobFailed.prototype.error = null;
|
|
81928
|
+
|
|
81929
|
+
/**
|
|
81930
|
+
* Creates a new ElfNormalizationJobFailed instance using the specified properties.
|
|
81931
|
+
* @function create
|
|
81932
|
+
* @memberof ElfNormalizationJobFailed
|
|
81933
|
+
* @static
|
|
81934
|
+
* @param {IElfNormalizationJobFailed=} [properties] Properties to set
|
|
81935
|
+
* @returns {ElfNormalizationJobFailed} ElfNormalizationJobFailed instance
|
|
81936
|
+
*/
|
|
81937
|
+
ElfNormalizationJobFailed.create = function create(properties) {
|
|
81938
|
+
return new ElfNormalizationJobFailed(properties);
|
|
81939
|
+
};
|
|
81940
|
+
|
|
81941
|
+
/**
|
|
81942
|
+
* Encodes the specified ElfNormalizationJobFailed message. Does not implicitly {@link ElfNormalizationJobFailed.verify|verify} messages.
|
|
81943
|
+
* @function encode
|
|
81944
|
+
* @memberof ElfNormalizationJobFailed
|
|
81945
|
+
* @static
|
|
81946
|
+
* @param {IElfNormalizationJobFailed} message ElfNormalizationJobFailed message or plain object to encode
|
|
81947
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
81948
|
+
* @returns {$protobuf.Writer} Writer
|
|
81949
|
+
*/
|
|
81950
|
+
ElfNormalizationJobFailed.encode = function encode(message, writer) {
|
|
81951
|
+
if (!writer)
|
|
81952
|
+
writer = $Writer.create();
|
|
81953
|
+
if (message.job != null && message.hasOwnProperty("job"))
|
|
81954
|
+
$root.elf.NormalizationJob.encode(message.job, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim();
|
|
81955
|
+
if (message.error != null && message.hasOwnProperty("error"))
|
|
81956
|
+
$root.elf.NormalizationJobError.encode(message.error, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
81957
|
+
return writer;
|
|
81958
|
+
};
|
|
81959
|
+
|
|
81960
|
+
/**
|
|
81961
|
+
* Encodes the specified ElfNormalizationJobFailed message, length delimited. Does not implicitly {@link ElfNormalizationJobFailed.verify|verify} messages.
|
|
81962
|
+
* @function encodeDelimited
|
|
81963
|
+
* @memberof ElfNormalizationJobFailed
|
|
81964
|
+
* @static
|
|
81965
|
+
* @param {IElfNormalizationJobFailed} message ElfNormalizationJobFailed message or plain object to encode
|
|
81966
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
81967
|
+
* @returns {$protobuf.Writer} Writer
|
|
81968
|
+
*/
|
|
81969
|
+
ElfNormalizationJobFailed.encodeDelimited = function encodeDelimited(message, writer) {
|
|
81970
|
+
return this.encode(message, writer).ldelim();
|
|
81971
|
+
};
|
|
81972
|
+
|
|
81973
|
+
/**
|
|
81974
|
+
* Decodes an ElfNormalizationJobFailed message from the specified reader or buffer.
|
|
81975
|
+
* @function decode
|
|
81976
|
+
* @memberof ElfNormalizationJobFailed
|
|
81977
|
+
* @static
|
|
81978
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
81979
|
+
* @param {number} [length] Message length if known beforehand
|
|
81980
|
+
* @returns {ElfNormalizationJobFailed} ElfNormalizationJobFailed
|
|
81981
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
81982
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
81983
|
+
*/
|
|
81984
|
+
ElfNormalizationJobFailed.decode = function decode(reader, length) {
|
|
81985
|
+
if (!(reader instanceof $Reader))
|
|
81986
|
+
reader = $Reader.create(reader);
|
|
81987
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ElfNormalizationJobFailed();
|
|
81988
|
+
while (reader.pos < end) {
|
|
81989
|
+
var tag = reader.uint32();
|
|
81990
|
+
switch (tag >>> 3) {
|
|
81991
|
+
case 1:
|
|
81992
|
+
message.job = $root.elf.NormalizationJob.decode(reader, reader.uint32());
|
|
81993
|
+
break;
|
|
81994
|
+
case 2:
|
|
81995
|
+
message.error = $root.elf.NormalizationJobError.decode(reader, reader.uint32());
|
|
81996
|
+
break;
|
|
81997
|
+
default:
|
|
81998
|
+
reader.skipType(tag & 7);
|
|
81999
|
+
break;
|
|
82000
|
+
}
|
|
82001
|
+
}
|
|
82002
|
+
return message;
|
|
82003
|
+
};
|
|
82004
|
+
|
|
82005
|
+
/**
|
|
82006
|
+
* Decodes an ElfNormalizationJobFailed message from the specified reader or buffer, length delimited.
|
|
82007
|
+
* @function decodeDelimited
|
|
82008
|
+
* @memberof ElfNormalizationJobFailed
|
|
82009
|
+
* @static
|
|
82010
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
82011
|
+
* @returns {ElfNormalizationJobFailed} ElfNormalizationJobFailed
|
|
82012
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
82013
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
82014
|
+
*/
|
|
82015
|
+
ElfNormalizationJobFailed.decodeDelimited = function decodeDelimited(reader) {
|
|
82016
|
+
if (!(reader instanceof $Reader))
|
|
82017
|
+
reader = new $Reader(reader);
|
|
82018
|
+
return this.decode(reader, reader.uint32());
|
|
82019
|
+
};
|
|
82020
|
+
|
|
82021
|
+
/**
|
|
82022
|
+
* Verifies an ElfNormalizationJobFailed message.
|
|
82023
|
+
* @function verify
|
|
82024
|
+
* @memberof ElfNormalizationJobFailed
|
|
82025
|
+
* @static
|
|
82026
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
82027
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
82028
|
+
*/
|
|
82029
|
+
ElfNormalizationJobFailed.verify = function verify(message) {
|
|
82030
|
+
if (typeof message !== "object" || message === null)
|
|
82031
|
+
return "object expected";
|
|
82032
|
+
if (message.job != null && message.hasOwnProperty("job")) {
|
|
82033
|
+
var error = $root.elf.NormalizationJob.verify(message.job);
|
|
82034
|
+
if (error)
|
|
82035
|
+
return "job." + error;
|
|
82036
|
+
}
|
|
82037
|
+
if (message.error != null && message.hasOwnProperty("error")) {
|
|
82038
|
+
var error = $root.elf.NormalizationJobError.verify(message.error);
|
|
82039
|
+
if (error)
|
|
82040
|
+
return "error." + error;
|
|
82041
|
+
}
|
|
82042
|
+
return null;
|
|
82043
|
+
};
|
|
82044
|
+
|
|
82045
|
+
/**
|
|
82046
|
+
* Creates an ElfNormalizationJobFailed message from a plain object. Also converts values to their respective internal types.
|
|
82047
|
+
* @function fromObject
|
|
82048
|
+
* @memberof ElfNormalizationJobFailed
|
|
82049
|
+
* @static
|
|
82050
|
+
* @param {Object.<string,*>} object Plain object
|
|
82051
|
+
* @returns {ElfNormalizationJobFailed} ElfNormalizationJobFailed
|
|
82052
|
+
*/
|
|
82053
|
+
ElfNormalizationJobFailed.fromObject = function fromObject(object) {
|
|
82054
|
+
if (object instanceof $root.ElfNormalizationJobFailed)
|
|
82055
|
+
return object;
|
|
82056
|
+
var message = new $root.ElfNormalizationJobFailed();
|
|
82057
|
+
if (object.job != null) {
|
|
82058
|
+
if (typeof object.job !== "object")
|
|
82059
|
+
throw TypeError(".ElfNormalizationJobFailed.job: object expected");
|
|
82060
|
+
message.job = $root.elf.NormalizationJob.fromObject(object.job);
|
|
82061
|
+
}
|
|
82062
|
+
if (object.error != null) {
|
|
82063
|
+
if (typeof object.error !== "object")
|
|
82064
|
+
throw TypeError(".ElfNormalizationJobFailed.error: object expected");
|
|
82065
|
+
message.error = $root.elf.NormalizationJobError.fromObject(object.error);
|
|
82066
|
+
}
|
|
82067
|
+
return message;
|
|
82068
|
+
};
|
|
82069
|
+
|
|
82070
|
+
/**
|
|
82071
|
+
* Creates a plain object from an ElfNormalizationJobFailed message. Also converts values to other types if specified.
|
|
82072
|
+
* @function toObject
|
|
82073
|
+
* @memberof ElfNormalizationJobFailed
|
|
82074
|
+
* @static
|
|
82075
|
+
* @param {ElfNormalizationJobFailed} message ElfNormalizationJobFailed
|
|
82076
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
82077
|
+
* @returns {Object.<string,*>} Plain object
|
|
82078
|
+
*/
|
|
82079
|
+
ElfNormalizationJobFailed.toObject = function toObject(message, options) {
|
|
82080
|
+
if (!options)
|
|
82081
|
+
options = {};
|
|
82082
|
+
var object = {};
|
|
82083
|
+
if (options.defaults) {
|
|
82084
|
+
object.job = null;
|
|
82085
|
+
object.error = null;
|
|
82086
|
+
}
|
|
82087
|
+
if (message.job != null && message.hasOwnProperty("job"))
|
|
82088
|
+
object.job = $root.elf.NormalizationJob.toObject(message.job, options);
|
|
82089
|
+
if (message.error != null && message.hasOwnProperty("error"))
|
|
82090
|
+
object.error = $root.elf.NormalizationJobError.toObject(message.error, options);
|
|
82091
|
+
return object;
|
|
82092
|
+
};
|
|
82093
|
+
|
|
82094
|
+
/**
|
|
82095
|
+
* Converts this ElfNormalizationJobFailed to JSON.
|
|
82096
|
+
* @function toJSON
|
|
82097
|
+
* @memberof ElfNormalizationJobFailed
|
|
82098
|
+
* @instance
|
|
82099
|
+
* @returns {Object.<string,*>} JSON object
|
|
82100
|
+
*/
|
|
82101
|
+
ElfNormalizationJobFailed.prototype.toJSON = function toJSON() {
|
|
82102
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
82103
|
+
};
|
|
82104
|
+
|
|
82105
|
+
return ElfNormalizationJobFailed;
|
|
82106
|
+
})();
|
|
82107
|
+
|
|
80087
82108
|
$root.EnterpriseUserEnrollmentCreated = (function() {
|
|
80088
82109
|
|
|
80089
82110
|
/**
|