@headspace/protos-events 1.558.0 → 1.560.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 +635 -0
- package/lib/index.js +1726 -0
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -15226,6 +15226,531 @@ $root.contentful = (function() {
|
|
|
15226
15226
|
return Tags;
|
|
15227
15227
|
})();
|
|
15228
15228
|
|
|
15229
|
+
/**
|
|
15230
|
+
* Locale enum.
|
|
15231
|
+
* @name contentful.Locale
|
|
15232
|
+
* @enum {string}
|
|
15233
|
+
* @property {number} LOCALE_UNKNOWN=0 LOCALE_UNKNOWN value
|
|
15234
|
+
* @property {number} LOCALE_EN_US=1 LOCALE_EN_US value
|
|
15235
|
+
* @property {number} LOCALE_DE_DE=2 LOCALE_DE_DE value
|
|
15236
|
+
* @property {number} LOCALE_ES_ES=3 LOCALE_ES_ES value
|
|
15237
|
+
* @property {number} LOCALE_FR_FR=4 LOCALE_FR_FR value
|
|
15238
|
+
* @property {number} LOCALE_IT_IT=5 LOCALE_IT_IT value
|
|
15239
|
+
* @property {number} LOCALE_PT_BR=6 LOCALE_PT_BR value
|
|
15240
|
+
*/
|
|
15241
|
+
contentful.Locale = (function() {
|
|
15242
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
15243
|
+
values[valuesById[0] = "LOCALE_UNKNOWN"] = 0;
|
|
15244
|
+
values[valuesById[1] = "LOCALE_EN_US"] = 1;
|
|
15245
|
+
values[valuesById[2] = "LOCALE_DE_DE"] = 2;
|
|
15246
|
+
values[valuesById[3] = "LOCALE_ES_ES"] = 3;
|
|
15247
|
+
values[valuesById[4] = "LOCALE_FR_FR"] = 4;
|
|
15248
|
+
values[valuesById[5] = "LOCALE_IT_IT"] = 5;
|
|
15249
|
+
values[valuesById[6] = "LOCALE_PT_BR"] = 6;
|
|
15250
|
+
return values;
|
|
15251
|
+
})();
|
|
15252
|
+
|
|
15253
|
+
contentful.LanguageMediaEntity = (function() {
|
|
15254
|
+
|
|
15255
|
+
/**
|
|
15256
|
+
* Properties of a LanguageMediaEntity.
|
|
15257
|
+
* @memberof contentful
|
|
15258
|
+
* @interface ILanguageMediaEntity
|
|
15259
|
+
* @property {contentful.Locale|null} [locale] LanguageMediaEntity locale
|
|
15260
|
+
* @property {contentful.IIdReference|null} [id] LanguageMediaEntity id
|
|
15261
|
+
*/
|
|
15262
|
+
|
|
15263
|
+
/**
|
|
15264
|
+
* Constructs a new LanguageMediaEntity.
|
|
15265
|
+
* @memberof contentful
|
|
15266
|
+
* @classdesc Represents a LanguageMediaEntity.
|
|
15267
|
+
* @implements ILanguageMediaEntity
|
|
15268
|
+
* @constructor
|
|
15269
|
+
* @param {contentful.ILanguageMediaEntity=} [properties] Properties to set
|
|
15270
|
+
*/
|
|
15271
|
+
function LanguageMediaEntity(properties) {
|
|
15272
|
+
if (properties)
|
|
15273
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
15274
|
+
if (properties[keys[i]] != null)
|
|
15275
|
+
this[keys[i]] = properties[keys[i]];
|
|
15276
|
+
}
|
|
15277
|
+
|
|
15278
|
+
/**
|
|
15279
|
+
* LanguageMediaEntity locale.
|
|
15280
|
+
* @member {contentful.Locale} locale
|
|
15281
|
+
* @memberof contentful.LanguageMediaEntity
|
|
15282
|
+
* @instance
|
|
15283
|
+
*/
|
|
15284
|
+
LanguageMediaEntity.prototype.locale = 0;
|
|
15285
|
+
|
|
15286
|
+
/**
|
|
15287
|
+
* LanguageMediaEntity id.
|
|
15288
|
+
* @member {contentful.IIdReference|null|undefined} id
|
|
15289
|
+
* @memberof contentful.LanguageMediaEntity
|
|
15290
|
+
* @instance
|
|
15291
|
+
*/
|
|
15292
|
+
LanguageMediaEntity.prototype.id = null;
|
|
15293
|
+
|
|
15294
|
+
/**
|
|
15295
|
+
* Creates a new LanguageMediaEntity instance using the specified properties.
|
|
15296
|
+
* @function create
|
|
15297
|
+
* @memberof contentful.LanguageMediaEntity
|
|
15298
|
+
* @static
|
|
15299
|
+
* @param {contentful.ILanguageMediaEntity=} [properties] Properties to set
|
|
15300
|
+
* @returns {contentful.LanguageMediaEntity} LanguageMediaEntity instance
|
|
15301
|
+
*/
|
|
15302
|
+
LanguageMediaEntity.create = function create(properties) {
|
|
15303
|
+
return new LanguageMediaEntity(properties);
|
|
15304
|
+
};
|
|
15305
|
+
|
|
15306
|
+
/**
|
|
15307
|
+
* Encodes the specified LanguageMediaEntity message. Does not implicitly {@link contentful.LanguageMediaEntity.verify|verify} messages.
|
|
15308
|
+
* @function encode
|
|
15309
|
+
* @memberof contentful.LanguageMediaEntity
|
|
15310
|
+
* @static
|
|
15311
|
+
* @param {contentful.ILanguageMediaEntity} message LanguageMediaEntity message or plain object to encode
|
|
15312
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
15313
|
+
* @returns {$protobuf.Writer} Writer
|
|
15314
|
+
*/
|
|
15315
|
+
LanguageMediaEntity.encode = function encode(message, writer) {
|
|
15316
|
+
if (!writer)
|
|
15317
|
+
writer = $Writer.create();
|
|
15318
|
+
if (message.locale != null && message.hasOwnProperty("locale"))
|
|
15319
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.locale);
|
|
15320
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
15321
|
+
$root.contentful.IdReference.encode(message.id, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
15322
|
+
return writer;
|
|
15323
|
+
};
|
|
15324
|
+
|
|
15325
|
+
/**
|
|
15326
|
+
* Encodes the specified LanguageMediaEntity message, length delimited. Does not implicitly {@link contentful.LanguageMediaEntity.verify|verify} messages.
|
|
15327
|
+
* @function encodeDelimited
|
|
15328
|
+
* @memberof contentful.LanguageMediaEntity
|
|
15329
|
+
* @static
|
|
15330
|
+
* @param {contentful.ILanguageMediaEntity} message LanguageMediaEntity message or plain object to encode
|
|
15331
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
15332
|
+
* @returns {$protobuf.Writer} Writer
|
|
15333
|
+
*/
|
|
15334
|
+
LanguageMediaEntity.encodeDelimited = function encodeDelimited(message, writer) {
|
|
15335
|
+
return this.encode(message, writer).ldelim();
|
|
15336
|
+
};
|
|
15337
|
+
|
|
15338
|
+
/**
|
|
15339
|
+
* Decodes a LanguageMediaEntity message from the specified reader or buffer.
|
|
15340
|
+
* @function decode
|
|
15341
|
+
* @memberof contentful.LanguageMediaEntity
|
|
15342
|
+
* @static
|
|
15343
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
15344
|
+
* @param {number} [length] Message length if known beforehand
|
|
15345
|
+
* @returns {contentful.LanguageMediaEntity} LanguageMediaEntity
|
|
15346
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
15347
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
15348
|
+
*/
|
|
15349
|
+
LanguageMediaEntity.decode = function decode(reader, length) {
|
|
15350
|
+
if (!(reader instanceof $Reader))
|
|
15351
|
+
reader = $Reader.create(reader);
|
|
15352
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.contentful.LanguageMediaEntity();
|
|
15353
|
+
while (reader.pos < end) {
|
|
15354
|
+
var tag = reader.uint32();
|
|
15355
|
+
switch (tag >>> 3) {
|
|
15356
|
+
case 1:
|
|
15357
|
+
message.locale = reader.int32();
|
|
15358
|
+
break;
|
|
15359
|
+
case 2:
|
|
15360
|
+
message.id = $root.contentful.IdReference.decode(reader, reader.uint32());
|
|
15361
|
+
break;
|
|
15362
|
+
default:
|
|
15363
|
+
reader.skipType(tag & 7);
|
|
15364
|
+
break;
|
|
15365
|
+
}
|
|
15366
|
+
}
|
|
15367
|
+
return message;
|
|
15368
|
+
};
|
|
15369
|
+
|
|
15370
|
+
/**
|
|
15371
|
+
* Decodes a LanguageMediaEntity message from the specified reader or buffer, length delimited.
|
|
15372
|
+
* @function decodeDelimited
|
|
15373
|
+
* @memberof contentful.LanguageMediaEntity
|
|
15374
|
+
* @static
|
|
15375
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
15376
|
+
* @returns {contentful.LanguageMediaEntity} LanguageMediaEntity
|
|
15377
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
15378
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
15379
|
+
*/
|
|
15380
|
+
LanguageMediaEntity.decodeDelimited = function decodeDelimited(reader) {
|
|
15381
|
+
if (!(reader instanceof $Reader))
|
|
15382
|
+
reader = new $Reader(reader);
|
|
15383
|
+
return this.decode(reader, reader.uint32());
|
|
15384
|
+
};
|
|
15385
|
+
|
|
15386
|
+
/**
|
|
15387
|
+
* Verifies a LanguageMediaEntity message.
|
|
15388
|
+
* @function verify
|
|
15389
|
+
* @memberof contentful.LanguageMediaEntity
|
|
15390
|
+
* @static
|
|
15391
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
15392
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
15393
|
+
*/
|
|
15394
|
+
LanguageMediaEntity.verify = function verify(message) {
|
|
15395
|
+
if (typeof message !== "object" || message === null)
|
|
15396
|
+
return "object expected";
|
|
15397
|
+
if (message.locale != null && message.hasOwnProperty("locale"))
|
|
15398
|
+
switch (message.locale) {
|
|
15399
|
+
default:
|
|
15400
|
+
return "locale: enum value expected";
|
|
15401
|
+
case 0:
|
|
15402
|
+
case 1:
|
|
15403
|
+
case 2:
|
|
15404
|
+
case 3:
|
|
15405
|
+
case 4:
|
|
15406
|
+
case 5:
|
|
15407
|
+
case 6:
|
|
15408
|
+
break;
|
|
15409
|
+
}
|
|
15410
|
+
if (message.id != null && message.hasOwnProperty("id")) {
|
|
15411
|
+
var error = $root.contentful.IdReference.verify(message.id);
|
|
15412
|
+
if (error)
|
|
15413
|
+
return "id." + error;
|
|
15414
|
+
}
|
|
15415
|
+
return null;
|
|
15416
|
+
};
|
|
15417
|
+
|
|
15418
|
+
/**
|
|
15419
|
+
* Creates a LanguageMediaEntity message from a plain object. Also converts values to their respective internal types.
|
|
15420
|
+
* @function fromObject
|
|
15421
|
+
* @memberof contentful.LanguageMediaEntity
|
|
15422
|
+
* @static
|
|
15423
|
+
* @param {Object.<string,*>} object Plain object
|
|
15424
|
+
* @returns {contentful.LanguageMediaEntity} LanguageMediaEntity
|
|
15425
|
+
*/
|
|
15426
|
+
LanguageMediaEntity.fromObject = function fromObject(object) {
|
|
15427
|
+
if (object instanceof $root.contentful.LanguageMediaEntity)
|
|
15428
|
+
return object;
|
|
15429
|
+
var message = new $root.contentful.LanguageMediaEntity();
|
|
15430
|
+
switch (object.locale) {
|
|
15431
|
+
case "LOCALE_UNKNOWN":
|
|
15432
|
+
case 0:
|
|
15433
|
+
message.locale = 0;
|
|
15434
|
+
break;
|
|
15435
|
+
case "LOCALE_EN_US":
|
|
15436
|
+
case 1:
|
|
15437
|
+
message.locale = 1;
|
|
15438
|
+
break;
|
|
15439
|
+
case "LOCALE_DE_DE":
|
|
15440
|
+
case 2:
|
|
15441
|
+
message.locale = 2;
|
|
15442
|
+
break;
|
|
15443
|
+
case "LOCALE_ES_ES":
|
|
15444
|
+
case 3:
|
|
15445
|
+
message.locale = 3;
|
|
15446
|
+
break;
|
|
15447
|
+
case "LOCALE_FR_FR":
|
|
15448
|
+
case 4:
|
|
15449
|
+
message.locale = 4;
|
|
15450
|
+
break;
|
|
15451
|
+
case "LOCALE_IT_IT":
|
|
15452
|
+
case 5:
|
|
15453
|
+
message.locale = 5;
|
|
15454
|
+
break;
|
|
15455
|
+
case "LOCALE_PT_BR":
|
|
15456
|
+
case 6:
|
|
15457
|
+
message.locale = 6;
|
|
15458
|
+
break;
|
|
15459
|
+
}
|
|
15460
|
+
if (object.id != null) {
|
|
15461
|
+
if (typeof object.id !== "object")
|
|
15462
|
+
throw TypeError(".contentful.LanguageMediaEntity.id: object expected");
|
|
15463
|
+
message.id = $root.contentful.IdReference.fromObject(object.id);
|
|
15464
|
+
}
|
|
15465
|
+
return message;
|
|
15466
|
+
};
|
|
15467
|
+
|
|
15468
|
+
/**
|
|
15469
|
+
* Creates a plain object from a LanguageMediaEntity message. Also converts values to other types if specified.
|
|
15470
|
+
* @function toObject
|
|
15471
|
+
* @memberof contentful.LanguageMediaEntity
|
|
15472
|
+
* @static
|
|
15473
|
+
* @param {contentful.LanguageMediaEntity} message LanguageMediaEntity
|
|
15474
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
15475
|
+
* @returns {Object.<string,*>} Plain object
|
|
15476
|
+
*/
|
|
15477
|
+
LanguageMediaEntity.toObject = function toObject(message, options) {
|
|
15478
|
+
if (!options)
|
|
15479
|
+
options = {};
|
|
15480
|
+
var object = {};
|
|
15481
|
+
if (options.defaults) {
|
|
15482
|
+
object.locale = options.enums === String ? "LOCALE_UNKNOWN" : 0;
|
|
15483
|
+
object.id = null;
|
|
15484
|
+
}
|
|
15485
|
+
if (message.locale != null && message.hasOwnProperty("locale"))
|
|
15486
|
+
object.locale = options.enums === String ? $root.contentful.Locale[message.locale] : message.locale;
|
|
15487
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
15488
|
+
object.id = $root.contentful.IdReference.toObject(message.id, options);
|
|
15489
|
+
return object;
|
|
15490
|
+
};
|
|
15491
|
+
|
|
15492
|
+
/**
|
|
15493
|
+
* Converts this LanguageMediaEntity to JSON.
|
|
15494
|
+
* @function toJSON
|
|
15495
|
+
* @memberof contentful.LanguageMediaEntity
|
|
15496
|
+
* @instance
|
|
15497
|
+
* @returns {Object.<string,*>} JSON object
|
|
15498
|
+
*/
|
|
15499
|
+
LanguageMediaEntity.prototype.toJSON = function toJSON() {
|
|
15500
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
15501
|
+
};
|
|
15502
|
+
|
|
15503
|
+
return LanguageMediaEntity;
|
|
15504
|
+
})();
|
|
15505
|
+
|
|
15506
|
+
contentful.LanguageTextEntity = (function() {
|
|
15507
|
+
|
|
15508
|
+
/**
|
|
15509
|
+
* Properties of a LanguageTextEntity.
|
|
15510
|
+
* @memberof contentful
|
|
15511
|
+
* @interface ILanguageTextEntity
|
|
15512
|
+
* @property {contentful.Locale|null} [locale] LanguageTextEntity locale
|
|
15513
|
+
* @property {string|null} [text] LanguageTextEntity text
|
|
15514
|
+
*/
|
|
15515
|
+
|
|
15516
|
+
/**
|
|
15517
|
+
* Constructs a new LanguageTextEntity.
|
|
15518
|
+
* @memberof contentful
|
|
15519
|
+
* @classdesc Represents a LanguageTextEntity.
|
|
15520
|
+
* @implements ILanguageTextEntity
|
|
15521
|
+
* @constructor
|
|
15522
|
+
* @param {contentful.ILanguageTextEntity=} [properties] Properties to set
|
|
15523
|
+
*/
|
|
15524
|
+
function LanguageTextEntity(properties) {
|
|
15525
|
+
if (properties)
|
|
15526
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
15527
|
+
if (properties[keys[i]] != null)
|
|
15528
|
+
this[keys[i]] = properties[keys[i]];
|
|
15529
|
+
}
|
|
15530
|
+
|
|
15531
|
+
/**
|
|
15532
|
+
* LanguageTextEntity locale.
|
|
15533
|
+
* @member {contentful.Locale} locale
|
|
15534
|
+
* @memberof contentful.LanguageTextEntity
|
|
15535
|
+
* @instance
|
|
15536
|
+
*/
|
|
15537
|
+
LanguageTextEntity.prototype.locale = 0;
|
|
15538
|
+
|
|
15539
|
+
/**
|
|
15540
|
+
* LanguageTextEntity text.
|
|
15541
|
+
* @member {string} text
|
|
15542
|
+
* @memberof contentful.LanguageTextEntity
|
|
15543
|
+
* @instance
|
|
15544
|
+
*/
|
|
15545
|
+
LanguageTextEntity.prototype.text = "";
|
|
15546
|
+
|
|
15547
|
+
/**
|
|
15548
|
+
* Creates a new LanguageTextEntity instance using the specified properties.
|
|
15549
|
+
* @function create
|
|
15550
|
+
* @memberof contentful.LanguageTextEntity
|
|
15551
|
+
* @static
|
|
15552
|
+
* @param {contentful.ILanguageTextEntity=} [properties] Properties to set
|
|
15553
|
+
* @returns {contentful.LanguageTextEntity} LanguageTextEntity instance
|
|
15554
|
+
*/
|
|
15555
|
+
LanguageTextEntity.create = function create(properties) {
|
|
15556
|
+
return new LanguageTextEntity(properties);
|
|
15557
|
+
};
|
|
15558
|
+
|
|
15559
|
+
/**
|
|
15560
|
+
* Encodes the specified LanguageTextEntity message. Does not implicitly {@link contentful.LanguageTextEntity.verify|verify} messages.
|
|
15561
|
+
* @function encode
|
|
15562
|
+
* @memberof contentful.LanguageTextEntity
|
|
15563
|
+
* @static
|
|
15564
|
+
* @param {contentful.ILanguageTextEntity} message LanguageTextEntity message or plain object to encode
|
|
15565
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
15566
|
+
* @returns {$protobuf.Writer} Writer
|
|
15567
|
+
*/
|
|
15568
|
+
LanguageTextEntity.encode = function encode(message, writer) {
|
|
15569
|
+
if (!writer)
|
|
15570
|
+
writer = $Writer.create();
|
|
15571
|
+
if (message.locale != null && message.hasOwnProperty("locale"))
|
|
15572
|
+
writer.uint32(/* id 1, wireType 0 =*/8).int32(message.locale);
|
|
15573
|
+
if (message.text != null && message.hasOwnProperty("text"))
|
|
15574
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.text);
|
|
15575
|
+
return writer;
|
|
15576
|
+
};
|
|
15577
|
+
|
|
15578
|
+
/**
|
|
15579
|
+
* Encodes the specified LanguageTextEntity message, length delimited. Does not implicitly {@link contentful.LanguageTextEntity.verify|verify} messages.
|
|
15580
|
+
* @function encodeDelimited
|
|
15581
|
+
* @memberof contentful.LanguageTextEntity
|
|
15582
|
+
* @static
|
|
15583
|
+
* @param {contentful.ILanguageTextEntity} message LanguageTextEntity message or plain object to encode
|
|
15584
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
15585
|
+
* @returns {$protobuf.Writer} Writer
|
|
15586
|
+
*/
|
|
15587
|
+
LanguageTextEntity.encodeDelimited = function encodeDelimited(message, writer) {
|
|
15588
|
+
return this.encode(message, writer).ldelim();
|
|
15589
|
+
};
|
|
15590
|
+
|
|
15591
|
+
/**
|
|
15592
|
+
* Decodes a LanguageTextEntity message from the specified reader or buffer.
|
|
15593
|
+
* @function decode
|
|
15594
|
+
* @memberof contentful.LanguageTextEntity
|
|
15595
|
+
* @static
|
|
15596
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
15597
|
+
* @param {number} [length] Message length if known beforehand
|
|
15598
|
+
* @returns {contentful.LanguageTextEntity} LanguageTextEntity
|
|
15599
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
15600
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
15601
|
+
*/
|
|
15602
|
+
LanguageTextEntity.decode = function decode(reader, length) {
|
|
15603
|
+
if (!(reader instanceof $Reader))
|
|
15604
|
+
reader = $Reader.create(reader);
|
|
15605
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.contentful.LanguageTextEntity();
|
|
15606
|
+
while (reader.pos < end) {
|
|
15607
|
+
var tag = reader.uint32();
|
|
15608
|
+
switch (tag >>> 3) {
|
|
15609
|
+
case 1:
|
|
15610
|
+
message.locale = reader.int32();
|
|
15611
|
+
break;
|
|
15612
|
+
case 2:
|
|
15613
|
+
message.text = reader.string();
|
|
15614
|
+
break;
|
|
15615
|
+
default:
|
|
15616
|
+
reader.skipType(tag & 7);
|
|
15617
|
+
break;
|
|
15618
|
+
}
|
|
15619
|
+
}
|
|
15620
|
+
return message;
|
|
15621
|
+
};
|
|
15622
|
+
|
|
15623
|
+
/**
|
|
15624
|
+
* Decodes a LanguageTextEntity message from the specified reader or buffer, length delimited.
|
|
15625
|
+
* @function decodeDelimited
|
|
15626
|
+
* @memberof contentful.LanguageTextEntity
|
|
15627
|
+
* @static
|
|
15628
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
15629
|
+
* @returns {contentful.LanguageTextEntity} LanguageTextEntity
|
|
15630
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
15631
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
15632
|
+
*/
|
|
15633
|
+
LanguageTextEntity.decodeDelimited = function decodeDelimited(reader) {
|
|
15634
|
+
if (!(reader instanceof $Reader))
|
|
15635
|
+
reader = new $Reader(reader);
|
|
15636
|
+
return this.decode(reader, reader.uint32());
|
|
15637
|
+
};
|
|
15638
|
+
|
|
15639
|
+
/**
|
|
15640
|
+
* Verifies a LanguageTextEntity message.
|
|
15641
|
+
* @function verify
|
|
15642
|
+
* @memberof contentful.LanguageTextEntity
|
|
15643
|
+
* @static
|
|
15644
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
15645
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
15646
|
+
*/
|
|
15647
|
+
LanguageTextEntity.verify = function verify(message) {
|
|
15648
|
+
if (typeof message !== "object" || message === null)
|
|
15649
|
+
return "object expected";
|
|
15650
|
+
if (message.locale != null && message.hasOwnProperty("locale"))
|
|
15651
|
+
switch (message.locale) {
|
|
15652
|
+
default:
|
|
15653
|
+
return "locale: enum value expected";
|
|
15654
|
+
case 0:
|
|
15655
|
+
case 1:
|
|
15656
|
+
case 2:
|
|
15657
|
+
case 3:
|
|
15658
|
+
case 4:
|
|
15659
|
+
case 5:
|
|
15660
|
+
case 6:
|
|
15661
|
+
break;
|
|
15662
|
+
}
|
|
15663
|
+
if (message.text != null && message.hasOwnProperty("text"))
|
|
15664
|
+
if (!$util.isString(message.text))
|
|
15665
|
+
return "text: string expected";
|
|
15666
|
+
return null;
|
|
15667
|
+
};
|
|
15668
|
+
|
|
15669
|
+
/**
|
|
15670
|
+
* Creates a LanguageTextEntity message from a plain object. Also converts values to their respective internal types.
|
|
15671
|
+
* @function fromObject
|
|
15672
|
+
* @memberof contentful.LanguageTextEntity
|
|
15673
|
+
* @static
|
|
15674
|
+
* @param {Object.<string,*>} object Plain object
|
|
15675
|
+
* @returns {contentful.LanguageTextEntity} LanguageTextEntity
|
|
15676
|
+
*/
|
|
15677
|
+
LanguageTextEntity.fromObject = function fromObject(object) {
|
|
15678
|
+
if (object instanceof $root.contentful.LanguageTextEntity)
|
|
15679
|
+
return object;
|
|
15680
|
+
var message = new $root.contentful.LanguageTextEntity();
|
|
15681
|
+
switch (object.locale) {
|
|
15682
|
+
case "LOCALE_UNKNOWN":
|
|
15683
|
+
case 0:
|
|
15684
|
+
message.locale = 0;
|
|
15685
|
+
break;
|
|
15686
|
+
case "LOCALE_EN_US":
|
|
15687
|
+
case 1:
|
|
15688
|
+
message.locale = 1;
|
|
15689
|
+
break;
|
|
15690
|
+
case "LOCALE_DE_DE":
|
|
15691
|
+
case 2:
|
|
15692
|
+
message.locale = 2;
|
|
15693
|
+
break;
|
|
15694
|
+
case "LOCALE_ES_ES":
|
|
15695
|
+
case 3:
|
|
15696
|
+
message.locale = 3;
|
|
15697
|
+
break;
|
|
15698
|
+
case "LOCALE_FR_FR":
|
|
15699
|
+
case 4:
|
|
15700
|
+
message.locale = 4;
|
|
15701
|
+
break;
|
|
15702
|
+
case "LOCALE_IT_IT":
|
|
15703
|
+
case 5:
|
|
15704
|
+
message.locale = 5;
|
|
15705
|
+
break;
|
|
15706
|
+
case "LOCALE_PT_BR":
|
|
15707
|
+
case 6:
|
|
15708
|
+
message.locale = 6;
|
|
15709
|
+
break;
|
|
15710
|
+
}
|
|
15711
|
+
if (object.text != null)
|
|
15712
|
+
message.text = String(object.text);
|
|
15713
|
+
return message;
|
|
15714
|
+
};
|
|
15715
|
+
|
|
15716
|
+
/**
|
|
15717
|
+
* Creates a plain object from a LanguageTextEntity message. Also converts values to other types if specified.
|
|
15718
|
+
* @function toObject
|
|
15719
|
+
* @memberof contentful.LanguageTextEntity
|
|
15720
|
+
* @static
|
|
15721
|
+
* @param {contentful.LanguageTextEntity} message LanguageTextEntity
|
|
15722
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
15723
|
+
* @returns {Object.<string,*>} Plain object
|
|
15724
|
+
*/
|
|
15725
|
+
LanguageTextEntity.toObject = function toObject(message, options) {
|
|
15726
|
+
if (!options)
|
|
15727
|
+
options = {};
|
|
15728
|
+
var object = {};
|
|
15729
|
+
if (options.defaults) {
|
|
15730
|
+
object.locale = options.enums === String ? "LOCALE_UNKNOWN" : 0;
|
|
15731
|
+
object.text = "";
|
|
15732
|
+
}
|
|
15733
|
+
if (message.locale != null && message.hasOwnProperty("locale"))
|
|
15734
|
+
object.locale = options.enums === String ? $root.contentful.Locale[message.locale] : message.locale;
|
|
15735
|
+
if (message.text != null && message.hasOwnProperty("text"))
|
|
15736
|
+
object.text = message.text;
|
|
15737
|
+
return object;
|
|
15738
|
+
};
|
|
15739
|
+
|
|
15740
|
+
/**
|
|
15741
|
+
* Converts this LanguageTextEntity to JSON.
|
|
15742
|
+
* @function toJSON
|
|
15743
|
+
* @memberof contentful.LanguageTextEntity
|
|
15744
|
+
* @instance
|
|
15745
|
+
* @returns {Object.<string,*>} JSON object
|
|
15746
|
+
*/
|
|
15747
|
+
LanguageTextEntity.prototype.toJSON = function toJSON() {
|
|
15748
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
15749
|
+
};
|
|
15750
|
+
|
|
15751
|
+
return LanguageTextEntity;
|
|
15752
|
+
})();
|
|
15753
|
+
|
|
15229
15754
|
contentful.ContentModelField = (function() {
|
|
15230
15755
|
|
|
15231
15756
|
/**
|
|
@@ -58182,6 +58707,1163 @@ $root.ContentfulSleepcastDeleted = (function() {
|
|
|
58182
58707
|
return ContentfulSleepcastDeleted;
|
|
58183
58708
|
})();
|
|
58184
58709
|
|
|
58710
|
+
$root.ContentfulSurvey = (function() {
|
|
58711
|
+
|
|
58712
|
+
/**
|
|
58713
|
+
* Properties of a ContentfulSurvey.
|
|
58714
|
+
* @name IContentfulSurvey
|
|
58715
|
+
* @interface IContentfulSurvey
|
|
58716
|
+
* @property {string|null} [name] ContentfulSurvey name
|
|
58717
|
+
* @property {string|null} [slug] ContentfulSurvey slug
|
|
58718
|
+
* @property {Array.<contentful.ILanguageTextEntity>|null} [title] ContentfulSurvey title
|
|
58719
|
+
* @property {Array.<contentful.ILanguageTextEntity>|null} [description] ContentfulSurvey description
|
|
58720
|
+
* @property {Array.<contentful.ILanguageTextEntity>|null} [actionButtonTitle] ContentfulSurvey actionButtonTitle
|
|
58721
|
+
* @property {Array.<contentful.ILanguageMediaEntity>|null} [tileMedia] ContentfulSurvey tileMedia
|
|
58722
|
+
* @property {Array.<contentful.ILanguageTextEntity>|null} [label] ContentfulSurvey label
|
|
58723
|
+
* @property {Array.<contentful.ILanguageTextEntity>|null} [duration] ContentfulSurvey duration
|
|
58724
|
+
*/
|
|
58725
|
+
|
|
58726
|
+
/**
|
|
58727
|
+
* Constructs a new ContentfulSurvey.
|
|
58728
|
+
* @name ContentfulSurvey
|
|
58729
|
+
* @classdesc Represents a ContentfulSurvey.
|
|
58730
|
+
* @implements IContentfulSurvey
|
|
58731
|
+
* @constructor
|
|
58732
|
+
* @param {IContentfulSurvey=} [properties] Properties to set
|
|
58733
|
+
*/
|
|
58734
|
+
function ContentfulSurvey(properties) {
|
|
58735
|
+
this.title = [];
|
|
58736
|
+
this.description = [];
|
|
58737
|
+
this.actionButtonTitle = [];
|
|
58738
|
+
this.tileMedia = [];
|
|
58739
|
+
this.label = [];
|
|
58740
|
+
this.duration = [];
|
|
58741
|
+
if (properties)
|
|
58742
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
58743
|
+
if (properties[keys[i]] != null)
|
|
58744
|
+
this[keys[i]] = properties[keys[i]];
|
|
58745
|
+
}
|
|
58746
|
+
|
|
58747
|
+
/**
|
|
58748
|
+
* ContentfulSurvey name.
|
|
58749
|
+
* @member {string} name
|
|
58750
|
+
* @memberof ContentfulSurvey
|
|
58751
|
+
* @instance
|
|
58752
|
+
*/
|
|
58753
|
+
ContentfulSurvey.prototype.name = "";
|
|
58754
|
+
|
|
58755
|
+
/**
|
|
58756
|
+
* ContentfulSurvey slug.
|
|
58757
|
+
* @member {string} slug
|
|
58758
|
+
* @memberof ContentfulSurvey
|
|
58759
|
+
* @instance
|
|
58760
|
+
*/
|
|
58761
|
+
ContentfulSurvey.prototype.slug = "";
|
|
58762
|
+
|
|
58763
|
+
/**
|
|
58764
|
+
* ContentfulSurvey title.
|
|
58765
|
+
* @member {Array.<contentful.ILanguageTextEntity>} title
|
|
58766
|
+
* @memberof ContentfulSurvey
|
|
58767
|
+
* @instance
|
|
58768
|
+
*/
|
|
58769
|
+
ContentfulSurvey.prototype.title = $util.emptyArray;
|
|
58770
|
+
|
|
58771
|
+
/**
|
|
58772
|
+
* ContentfulSurvey description.
|
|
58773
|
+
* @member {Array.<contentful.ILanguageTextEntity>} description
|
|
58774
|
+
* @memberof ContentfulSurvey
|
|
58775
|
+
* @instance
|
|
58776
|
+
*/
|
|
58777
|
+
ContentfulSurvey.prototype.description = $util.emptyArray;
|
|
58778
|
+
|
|
58779
|
+
/**
|
|
58780
|
+
* ContentfulSurvey actionButtonTitle.
|
|
58781
|
+
* @member {Array.<contentful.ILanguageTextEntity>} actionButtonTitle
|
|
58782
|
+
* @memberof ContentfulSurvey
|
|
58783
|
+
* @instance
|
|
58784
|
+
*/
|
|
58785
|
+
ContentfulSurvey.prototype.actionButtonTitle = $util.emptyArray;
|
|
58786
|
+
|
|
58787
|
+
/**
|
|
58788
|
+
* ContentfulSurvey tileMedia.
|
|
58789
|
+
* @member {Array.<contentful.ILanguageMediaEntity>} tileMedia
|
|
58790
|
+
* @memberof ContentfulSurvey
|
|
58791
|
+
* @instance
|
|
58792
|
+
*/
|
|
58793
|
+
ContentfulSurvey.prototype.tileMedia = $util.emptyArray;
|
|
58794
|
+
|
|
58795
|
+
/**
|
|
58796
|
+
* ContentfulSurvey label.
|
|
58797
|
+
* @member {Array.<contentful.ILanguageTextEntity>} label
|
|
58798
|
+
* @memberof ContentfulSurvey
|
|
58799
|
+
* @instance
|
|
58800
|
+
*/
|
|
58801
|
+
ContentfulSurvey.prototype.label = $util.emptyArray;
|
|
58802
|
+
|
|
58803
|
+
/**
|
|
58804
|
+
* ContentfulSurvey duration.
|
|
58805
|
+
* @member {Array.<contentful.ILanguageTextEntity>} duration
|
|
58806
|
+
* @memberof ContentfulSurvey
|
|
58807
|
+
* @instance
|
|
58808
|
+
*/
|
|
58809
|
+
ContentfulSurvey.prototype.duration = $util.emptyArray;
|
|
58810
|
+
|
|
58811
|
+
/**
|
|
58812
|
+
* Creates a new ContentfulSurvey instance using the specified properties.
|
|
58813
|
+
* @function create
|
|
58814
|
+
* @memberof ContentfulSurvey
|
|
58815
|
+
* @static
|
|
58816
|
+
* @param {IContentfulSurvey=} [properties] Properties to set
|
|
58817
|
+
* @returns {ContentfulSurvey} ContentfulSurvey instance
|
|
58818
|
+
*/
|
|
58819
|
+
ContentfulSurvey.create = function create(properties) {
|
|
58820
|
+
return new ContentfulSurvey(properties);
|
|
58821
|
+
};
|
|
58822
|
+
|
|
58823
|
+
/**
|
|
58824
|
+
* Encodes the specified ContentfulSurvey message. Does not implicitly {@link ContentfulSurvey.verify|verify} messages.
|
|
58825
|
+
* @function encode
|
|
58826
|
+
* @memberof ContentfulSurvey
|
|
58827
|
+
* @static
|
|
58828
|
+
* @param {IContentfulSurvey} message ContentfulSurvey message or plain object to encode
|
|
58829
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
58830
|
+
* @returns {$protobuf.Writer} Writer
|
|
58831
|
+
*/
|
|
58832
|
+
ContentfulSurvey.encode = function encode(message, writer) {
|
|
58833
|
+
if (!writer)
|
|
58834
|
+
writer = $Writer.create();
|
|
58835
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
58836
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.name);
|
|
58837
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
58838
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.slug);
|
|
58839
|
+
if (message.title != null && message.title.length)
|
|
58840
|
+
for (var i = 0; i < message.title.length; ++i)
|
|
58841
|
+
$root.contentful.LanguageTextEntity.encode(message.title[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim();
|
|
58842
|
+
if (message.description != null && message.description.length)
|
|
58843
|
+
for (var i = 0; i < message.description.length; ++i)
|
|
58844
|
+
$root.contentful.LanguageTextEntity.encode(message.description[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
58845
|
+
if (message.actionButtonTitle != null && message.actionButtonTitle.length)
|
|
58846
|
+
for (var i = 0; i < message.actionButtonTitle.length; ++i)
|
|
58847
|
+
$root.contentful.LanguageTextEntity.encode(message.actionButtonTitle[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim();
|
|
58848
|
+
if (message.tileMedia != null && message.tileMedia.length)
|
|
58849
|
+
for (var i = 0; i < message.tileMedia.length; ++i)
|
|
58850
|
+
$root.contentful.LanguageMediaEntity.encode(message.tileMedia[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
58851
|
+
if (message.label != null && message.label.length)
|
|
58852
|
+
for (var i = 0; i < message.label.length; ++i)
|
|
58853
|
+
$root.contentful.LanguageTextEntity.encode(message.label[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
|
58854
|
+
if (message.duration != null && message.duration.length)
|
|
58855
|
+
for (var i = 0; i < message.duration.length; ++i)
|
|
58856
|
+
$root.contentful.LanguageTextEntity.encode(message.duration[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
|
|
58857
|
+
return writer;
|
|
58858
|
+
};
|
|
58859
|
+
|
|
58860
|
+
/**
|
|
58861
|
+
* Encodes the specified ContentfulSurvey message, length delimited. Does not implicitly {@link ContentfulSurvey.verify|verify} messages.
|
|
58862
|
+
* @function encodeDelimited
|
|
58863
|
+
* @memberof ContentfulSurvey
|
|
58864
|
+
* @static
|
|
58865
|
+
* @param {IContentfulSurvey} message ContentfulSurvey message or plain object to encode
|
|
58866
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
58867
|
+
* @returns {$protobuf.Writer} Writer
|
|
58868
|
+
*/
|
|
58869
|
+
ContentfulSurvey.encodeDelimited = function encodeDelimited(message, writer) {
|
|
58870
|
+
return this.encode(message, writer).ldelim();
|
|
58871
|
+
};
|
|
58872
|
+
|
|
58873
|
+
/**
|
|
58874
|
+
* Decodes a ContentfulSurvey message from the specified reader or buffer.
|
|
58875
|
+
* @function decode
|
|
58876
|
+
* @memberof ContentfulSurvey
|
|
58877
|
+
* @static
|
|
58878
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
58879
|
+
* @param {number} [length] Message length if known beforehand
|
|
58880
|
+
* @returns {ContentfulSurvey} ContentfulSurvey
|
|
58881
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
58882
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
58883
|
+
*/
|
|
58884
|
+
ContentfulSurvey.decode = function decode(reader, length) {
|
|
58885
|
+
if (!(reader instanceof $Reader))
|
|
58886
|
+
reader = $Reader.create(reader);
|
|
58887
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulSurvey();
|
|
58888
|
+
while (reader.pos < end) {
|
|
58889
|
+
var tag = reader.uint32();
|
|
58890
|
+
switch (tag >>> 3) {
|
|
58891
|
+
case 1:
|
|
58892
|
+
message.name = reader.string();
|
|
58893
|
+
break;
|
|
58894
|
+
case 2:
|
|
58895
|
+
message.slug = reader.string();
|
|
58896
|
+
break;
|
|
58897
|
+
case 3:
|
|
58898
|
+
if (!(message.title && message.title.length))
|
|
58899
|
+
message.title = [];
|
|
58900
|
+
message.title.push($root.contentful.LanguageTextEntity.decode(reader, reader.uint32()));
|
|
58901
|
+
break;
|
|
58902
|
+
case 4:
|
|
58903
|
+
if (!(message.description && message.description.length))
|
|
58904
|
+
message.description = [];
|
|
58905
|
+
message.description.push($root.contentful.LanguageTextEntity.decode(reader, reader.uint32()));
|
|
58906
|
+
break;
|
|
58907
|
+
case 5:
|
|
58908
|
+
if (!(message.actionButtonTitle && message.actionButtonTitle.length))
|
|
58909
|
+
message.actionButtonTitle = [];
|
|
58910
|
+
message.actionButtonTitle.push($root.contentful.LanguageTextEntity.decode(reader, reader.uint32()));
|
|
58911
|
+
break;
|
|
58912
|
+
case 6:
|
|
58913
|
+
if (!(message.tileMedia && message.tileMedia.length))
|
|
58914
|
+
message.tileMedia = [];
|
|
58915
|
+
message.tileMedia.push($root.contentful.LanguageMediaEntity.decode(reader, reader.uint32()));
|
|
58916
|
+
break;
|
|
58917
|
+
case 7:
|
|
58918
|
+
if (!(message.label && message.label.length))
|
|
58919
|
+
message.label = [];
|
|
58920
|
+
message.label.push($root.contentful.LanguageTextEntity.decode(reader, reader.uint32()));
|
|
58921
|
+
break;
|
|
58922
|
+
case 8:
|
|
58923
|
+
if (!(message.duration && message.duration.length))
|
|
58924
|
+
message.duration = [];
|
|
58925
|
+
message.duration.push($root.contentful.LanguageTextEntity.decode(reader, reader.uint32()));
|
|
58926
|
+
break;
|
|
58927
|
+
default:
|
|
58928
|
+
reader.skipType(tag & 7);
|
|
58929
|
+
break;
|
|
58930
|
+
}
|
|
58931
|
+
}
|
|
58932
|
+
return message;
|
|
58933
|
+
};
|
|
58934
|
+
|
|
58935
|
+
/**
|
|
58936
|
+
* Decodes a ContentfulSurvey message from the specified reader or buffer, length delimited.
|
|
58937
|
+
* @function decodeDelimited
|
|
58938
|
+
* @memberof ContentfulSurvey
|
|
58939
|
+
* @static
|
|
58940
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
58941
|
+
* @returns {ContentfulSurvey} ContentfulSurvey
|
|
58942
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
58943
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
58944
|
+
*/
|
|
58945
|
+
ContentfulSurvey.decodeDelimited = function decodeDelimited(reader) {
|
|
58946
|
+
if (!(reader instanceof $Reader))
|
|
58947
|
+
reader = new $Reader(reader);
|
|
58948
|
+
return this.decode(reader, reader.uint32());
|
|
58949
|
+
};
|
|
58950
|
+
|
|
58951
|
+
/**
|
|
58952
|
+
* Verifies a ContentfulSurvey message.
|
|
58953
|
+
* @function verify
|
|
58954
|
+
* @memberof ContentfulSurvey
|
|
58955
|
+
* @static
|
|
58956
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
58957
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
58958
|
+
*/
|
|
58959
|
+
ContentfulSurvey.verify = function verify(message) {
|
|
58960
|
+
if (typeof message !== "object" || message === null)
|
|
58961
|
+
return "object expected";
|
|
58962
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
58963
|
+
if (!$util.isString(message.name))
|
|
58964
|
+
return "name: string expected";
|
|
58965
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
58966
|
+
if (!$util.isString(message.slug))
|
|
58967
|
+
return "slug: string expected";
|
|
58968
|
+
if (message.title != null && message.hasOwnProperty("title")) {
|
|
58969
|
+
if (!Array.isArray(message.title))
|
|
58970
|
+
return "title: array expected";
|
|
58971
|
+
for (var i = 0; i < message.title.length; ++i) {
|
|
58972
|
+
var error = $root.contentful.LanguageTextEntity.verify(message.title[i]);
|
|
58973
|
+
if (error)
|
|
58974
|
+
return "title." + error;
|
|
58975
|
+
}
|
|
58976
|
+
}
|
|
58977
|
+
if (message.description != null && message.hasOwnProperty("description")) {
|
|
58978
|
+
if (!Array.isArray(message.description))
|
|
58979
|
+
return "description: array expected";
|
|
58980
|
+
for (var i = 0; i < message.description.length; ++i) {
|
|
58981
|
+
var error = $root.contentful.LanguageTextEntity.verify(message.description[i]);
|
|
58982
|
+
if (error)
|
|
58983
|
+
return "description." + error;
|
|
58984
|
+
}
|
|
58985
|
+
}
|
|
58986
|
+
if (message.actionButtonTitle != null && message.hasOwnProperty("actionButtonTitle")) {
|
|
58987
|
+
if (!Array.isArray(message.actionButtonTitle))
|
|
58988
|
+
return "actionButtonTitle: array expected";
|
|
58989
|
+
for (var i = 0; i < message.actionButtonTitle.length; ++i) {
|
|
58990
|
+
var error = $root.contentful.LanguageTextEntity.verify(message.actionButtonTitle[i]);
|
|
58991
|
+
if (error)
|
|
58992
|
+
return "actionButtonTitle." + error;
|
|
58993
|
+
}
|
|
58994
|
+
}
|
|
58995
|
+
if (message.tileMedia != null && message.hasOwnProperty("tileMedia")) {
|
|
58996
|
+
if (!Array.isArray(message.tileMedia))
|
|
58997
|
+
return "tileMedia: array expected";
|
|
58998
|
+
for (var i = 0; i < message.tileMedia.length; ++i) {
|
|
58999
|
+
var error = $root.contentful.LanguageMediaEntity.verify(message.tileMedia[i]);
|
|
59000
|
+
if (error)
|
|
59001
|
+
return "tileMedia." + error;
|
|
59002
|
+
}
|
|
59003
|
+
}
|
|
59004
|
+
if (message.label != null && message.hasOwnProperty("label")) {
|
|
59005
|
+
if (!Array.isArray(message.label))
|
|
59006
|
+
return "label: array expected";
|
|
59007
|
+
for (var i = 0; i < message.label.length; ++i) {
|
|
59008
|
+
var error = $root.contentful.LanguageTextEntity.verify(message.label[i]);
|
|
59009
|
+
if (error)
|
|
59010
|
+
return "label." + error;
|
|
59011
|
+
}
|
|
59012
|
+
}
|
|
59013
|
+
if (message.duration != null && message.hasOwnProperty("duration")) {
|
|
59014
|
+
if (!Array.isArray(message.duration))
|
|
59015
|
+
return "duration: array expected";
|
|
59016
|
+
for (var i = 0; i < message.duration.length; ++i) {
|
|
59017
|
+
var error = $root.contentful.LanguageTextEntity.verify(message.duration[i]);
|
|
59018
|
+
if (error)
|
|
59019
|
+
return "duration." + error;
|
|
59020
|
+
}
|
|
59021
|
+
}
|
|
59022
|
+
return null;
|
|
59023
|
+
};
|
|
59024
|
+
|
|
59025
|
+
/**
|
|
59026
|
+
* Creates a ContentfulSurvey message from a plain object. Also converts values to their respective internal types.
|
|
59027
|
+
* @function fromObject
|
|
59028
|
+
* @memberof ContentfulSurvey
|
|
59029
|
+
* @static
|
|
59030
|
+
* @param {Object.<string,*>} object Plain object
|
|
59031
|
+
* @returns {ContentfulSurvey} ContentfulSurvey
|
|
59032
|
+
*/
|
|
59033
|
+
ContentfulSurvey.fromObject = function fromObject(object) {
|
|
59034
|
+
if (object instanceof $root.ContentfulSurvey)
|
|
59035
|
+
return object;
|
|
59036
|
+
var message = new $root.ContentfulSurvey();
|
|
59037
|
+
if (object.name != null)
|
|
59038
|
+
message.name = String(object.name);
|
|
59039
|
+
if (object.slug != null)
|
|
59040
|
+
message.slug = String(object.slug);
|
|
59041
|
+
if (object.title) {
|
|
59042
|
+
if (!Array.isArray(object.title))
|
|
59043
|
+
throw TypeError(".ContentfulSurvey.title: array expected");
|
|
59044
|
+
message.title = [];
|
|
59045
|
+
for (var i = 0; i < object.title.length; ++i) {
|
|
59046
|
+
if (typeof object.title[i] !== "object")
|
|
59047
|
+
throw TypeError(".ContentfulSurvey.title: object expected");
|
|
59048
|
+
message.title[i] = $root.contentful.LanguageTextEntity.fromObject(object.title[i]);
|
|
59049
|
+
}
|
|
59050
|
+
}
|
|
59051
|
+
if (object.description) {
|
|
59052
|
+
if (!Array.isArray(object.description))
|
|
59053
|
+
throw TypeError(".ContentfulSurvey.description: array expected");
|
|
59054
|
+
message.description = [];
|
|
59055
|
+
for (var i = 0; i < object.description.length; ++i) {
|
|
59056
|
+
if (typeof object.description[i] !== "object")
|
|
59057
|
+
throw TypeError(".ContentfulSurvey.description: object expected");
|
|
59058
|
+
message.description[i] = $root.contentful.LanguageTextEntity.fromObject(object.description[i]);
|
|
59059
|
+
}
|
|
59060
|
+
}
|
|
59061
|
+
if (object.actionButtonTitle) {
|
|
59062
|
+
if (!Array.isArray(object.actionButtonTitle))
|
|
59063
|
+
throw TypeError(".ContentfulSurvey.actionButtonTitle: array expected");
|
|
59064
|
+
message.actionButtonTitle = [];
|
|
59065
|
+
for (var i = 0; i < object.actionButtonTitle.length; ++i) {
|
|
59066
|
+
if (typeof object.actionButtonTitle[i] !== "object")
|
|
59067
|
+
throw TypeError(".ContentfulSurvey.actionButtonTitle: object expected");
|
|
59068
|
+
message.actionButtonTitle[i] = $root.contentful.LanguageTextEntity.fromObject(object.actionButtonTitle[i]);
|
|
59069
|
+
}
|
|
59070
|
+
}
|
|
59071
|
+
if (object.tileMedia) {
|
|
59072
|
+
if (!Array.isArray(object.tileMedia))
|
|
59073
|
+
throw TypeError(".ContentfulSurvey.tileMedia: array expected");
|
|
59074
|
+
message.tileMedia = [];
|
|
59075
|
+
for (var i = 0; i < object.tileMedia.length; ++i) {
|
|
59076
|
+
if (typeof object.tileMedia[i] !== "object")
|
|
59077
|
+
throw TypeError(".ContentfulSurvey.tileMedia: object expected");
|
|
59078
|
+
message.tileMedia[i] = $root.contentful.LanguageMediaEntity.fromObject(object.tileMedia[i]);
|
|
59079
|
+
}
|
|
59080
|
+
}
|
|
59081
|
+
if (object.label) {
|
|
59082
|
+
if (!Array.isArray(object.label))
|
|
59083
|
+
throw TypeError(".ContentfulSurvey.label: array expected");
|
|
59084
|
+
message.label = [];
|
|
59085
|
+
for (var i = 0; i < object.label.length; ++i) {
|
|
59086
|
+
if (typeof object.label[i] !== "object")
|
|
59087
|
+
throw TypeError(".ContentfulSurvey.label: object expected");
|
|
59088
|
+
message.label[i] = $root.contentful.LanguageTextEntity.fromObject(object.label[i]);
|
|
59089
|
+
}
|
|
59090
|
+
}
|
|
59091
|
+
if (object.duration) {
|
|
59092
|
+
if (!Array.isArray(object.duration))
|
|
59093
|
+
throw TypeError(".ContentfulSurvey.duration: array expected");
|
|
59094
|
+
message.duration = [];
|
|
59095
|
+
for (var i = 0; i < object.duration.length; ++i) {
|
|
59096
|
+
if (typeof object.duration[i] !== "object")
|
|
59097
|
+
throw TypeError(".ContentfulSurvey.duration: object expected");
|
|
59098
|
+
message.duration[i] = $root.contentful.LanguageTextEntity.fromObject(object.duration[i]);
|
|
59099
|
+
}
|
|
59100
|
+
}
|
|
59101
|
+
return message;
|
|
59102
|
+
};
|
|
59103
|
+
|
|
59104
|
+
/**
|
|
59105
|
+
* Creates a plain object from a ContentfulSurvey message. Also converts values to other types if specified.
|
|
59106
|
+
* @function toObject
|
|
59107
|
+
* @memberof ContentfulSurvey
|
|
59108
|
+
* @static
|
|
59109
|
+
* @param {ContentfulSurvey} message ContentfulSurvey
|
|
59110
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
59111
|
+
* @returns {Object.<string,*>} Plain object
|
|
59112
|
+
*/
|
|
59113
|
+
ContentfulSurvey.toObject = function toObject(message, options) {
|
|
59114
|
+
if (!options)
|
|
59115
|
+
options = {};
|
|
59116
|
+
var object = {};
|
|
59117
|
+
if (options.arrays || options.defaults) {
|
|
59118
|
+
object.title = [];
|
|
59119
|
+
object.description = [];
|
|
59120
|
+
object.actionButtonTitle = [];
|
|
59121
|
+
object.tileMedia = [];
|
|
59122
|
+
object.label = [];
|
|
59123
|
+
object.duration = [];
|
|
59124
|
+
}
|
|
59125
|
+
if (options.defaults) {
|
|
59126
|
+
object.name = "";
|
|
59127
|
+
object.slug = "";
|
|
59128
|
+
}
|
|
59129
|
+
if (message.name != null && message.hasOwnProperty("name"))
|
|
59130
|
+
object.name = message.name;
|
|
59131
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
59132
|
+
object.slug = message.slug;
|
|
59133
|
+
if (message.title && message.title.length) {
|
|
59134
|
+
object.title = [];
|
|
59135
|
+
for (var j = 0; j < message.title.length; ++j)
|
|
59136
|
+
object.title[j] = $root.contentful.LanguageTextEntity.toObject(message.title[j], options);
|
|
59137
|
+
}
|
|
59138
|
+
if (message.description && message.description.length) {
|
|
59139
|
+
object.description = [];
|
|
59140
|
+
for (var j = 0; j < message.description.length; ++j)
|
|
59141
|
+
object.description[j] = $root.contentful.LanguageTextEntity.toObject(message.description[j], options);
|
|
59142
|
+
}
|
|
59143
|
+
if (message.actionButtonTitle && message.actionButtonTitle.length) {
|
|
59144
|
+
object.actionButtonTitle = [];
|
|
59145
|
+
for (var j = 0; j < message.actionButtonTitle.length; ++j)
|
|
59146
|
+
object.actionButtonTitle[j] = $root.contentful.LanguageTextEntity.toObject(message.actionButtonTitle[j], options);
|
|
59147
|
+
}
|
|
59148
|
+
if (message.tileMedia && message.tileMedia.length) {
|
|
59149
|
+
object.tileMedia = [];
|
|
59150
|
+
for (var j = 0; j < message.tileMedia.length; ++j)
|
|
59151
|
+
object.tileMedia[j] = $root.contentful.LanguageMediaEntity.toObject(message.tileMedia[j], options);
|
|
59152
|
+
}
|
|
59153
|
+
if (message.label && message.label.length) {
|
|
59154
|
+
object.label = [];
|
|
59155
|
+
for (var j = 0; j < message.label.length; ++j)
|
|
59156
|
+
object.label[j] = $root.contentful.LanguageTextEntity.toObject(message.label[j], options);
|
|
59157
|
+
}
|
|
59158
|
+
if (message.duration && message.duration.length) {
|
|
59159
|
+
object.duration = [];
|
|
59160
|
+
for (var j = 0; j < message.duration.length; ++j)
|
|
59161
|
+
object.duration[j] = $root.contentful.LanguageTextEntity.toObject(message.duration[j], options);
|
|
59162
|
+
}
|
|
59163
|
+
return object;
|
|
59164
|
+
};
|
|
59165
|
+
|
|
59166
|
+
/**
|
|
59167
|
+
* Converts this ContentfulSurvey to JSON.
|
|
59168
|
+
* @function toJSON
|
|
59169
|
+
* @memberof ContentfulSurvey
|
|
59170
|
+
* @instance
|
|
59171
|
+
* @returns {Object.<string,*>} JSON object
|
|
59172
|
+
*/
|
|
59173
|
+
ContentfulSurvey.prototype.toJSON = function toJSON() {
|
|
59174
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
59175
|
+
};
|
|
59176
|
+
|
|
59177
|
+
return ContentfulSurvey;
|
|
59178
|
+
})();
|
|
59179
|
+
|
|
59180
|
+
$root.ContentfulSurveyCreated = (function() {
|
|
59181
|
+
|
|
59182
|
+
/**
|
|
59183
|
+
* Properties of a ContentfulSurveyCreated.
|
|
59184
|
+
* @name IContentfulSurveyCreated
|
|
59185
|
+
* @interface IContentfulSurveyCreated
|
|
59186
|
+
* @property {number|Long|null} [timestamp] ContentfulSurveyCreated timestamp
|
|
59187
|
+
* @property {IContentfulSurvey|null} [survey] ContentfulSurveyCreated survey
|
|
59188
|
+
*/
|
|
59189
|
+
|
|
59190
|
+
/**
|
|
59191
|
+
* Constructs a new ContentfulSurveyCreated.
|
|
59192
|
+
* @name ContentfulSurveyCreated
|
|
59193
|
+
* @classdesc Represents a ContentfulSurveyCreated.
|
|
59194
|
+
* @implements IContentfulSurveyCreated
|
|
59195
|
+
* @constructor
|
|
59196
|
+
* @param {IContentfulSurveyCreated=} [properties] Properties to set
|
|
59197
|
+
*/
|
|
59198
|
+
function ContentfulSurveyCreated(properties) {
|
|
59199
|
+
if (properties)
|
|
59200
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
59201
|
+
if (properties[keys[i]] != null)
|
|
59202
|
+
this[keys[i]] = properties[keys[i]];
|
|
59203
|
+
}
|
|
59204
|
+
|
|
59205
|
+
/**
|
|
59206
|
+
* ContentfulSurveyCreated timestamp.
|
|
59207
|
+
* @member {number|Long} timestamp
|
|
59208
|
+
* @memberof ContentfulSurveyCreated
|
|
59209
|
+
* @instance
|
|
59210
|
+
*/
|
|
59211
|
+
ContentfulSurveyCreated.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
59212
|
+
|
|
59213
|
+
/**
|
|
59214
|
+
* ContentfulSurveyCreated survey.
|
|
59215
|
+
* @member {IContentfulSurvey|null|undefined} survey
|
|
59216
|
+
* @memberof ContentfulSurveyCreated
|
|
59217
|
+
* @instance
|
|
59218
|
+
*/
|
|
59219
|
+
ContentfulSurveyCreated.prototype.survey = null;
|
|
59220
|
+
|
|
59221
|
+
/**
|
|
59222
|
+
* Creates a new ContentfulSurveyCreated instance using the specified properties.
|
|
59223
|
+
* @function create
|
|
59224
|
+
* @memberof ContentfulSurveyCreated
|
|
59225
|
+
* @static
|
|
59226
|
+
* @param {IContentfulSurveyCreated=} [properties] Properties to set
|
|
59227
|
+
* @returns {ContentfulSurveyCreated} ContentfulSurveyCreated instance
|
|
59228
|
+
*/
|
|
59229
|
+
ContentfulSurveyCreated.create = function create(properties) {
|
|
59230
|
+
return new ContentfulSurveyCreated(properties);
|
|
59231
|
+
};
|
|
59232
|
+
|
|
59233
|
+
/**
|
|
59234
|
+
* Encodes the specified ContentfulSurveyCreated message. Does not implicitly {@link ContentfulSurveyCreated.verify|verify} messages.
|
|
59235
|
+
* @function encode
|
|
59236
|
+
* @memberof ContentfulSurveyCreated
|
|
59237
|
+
* @static
|
|
59238
|
+
* @param {IContentfulSurveyCreated} message ContentfulSurveyCreated message or plain object to encode
|
|
59239
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
59240
|
+
* @returns {$protobuf.Writer} Writer
|
|
59241
|
+
*/
|
|
59242
|
+
ContentfulSurveyCreated.encode = function encode(message, writer) {
|
|
59243
|
+
if (!writer)
|
|
59244
|
+
writer = $Writer.create();
|
|
59245
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
59246
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.timestamp);
|
|
59247
|
+
if (message.survey != null && message.hasOwnProperty("survey"))
|
|
59248
|
+
$root.ContentfulSurvey.encode(message.survey, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
59249
|
+
return writer;
|
|
59250
|
+
};
|
|
59251
|
+
|
|
59252
|
+
/**
|
|
59253
|
+
* Encodes the specified ContentfulSurveyCreated message, length delimited. Does not implicitly {@link ContentfulSurveyCreated.verify|verify} messages.
|
|
59254
|
+
* @function encodeDelimited
|
|
59255
|
+
* @memberof ContentfulSurveyCreated
|
|
59256
|
+
* @static
|
|
59257
|
+
* @param {IContentfulSurveyCreated} message ContentfulSurveyCreated message or plain object to encode
|
|
59258
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
59259
|
+
* @returns {$protobuf.Writer} Writer
|
|
59260
|
+
*/
|
|
59261
|
+
ContentfulSurveyCreated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
59262
|
+
return this.encode(message, writer).ldelim();
|
|
59263
|
+
};
|
|
59264
|
+
|
|
59265
|
+
/**
|
|
59266
|
+
* Decodes a ContentfulSurveyCreated message from the specified reader or buffer.
|
|
59267
|
+
* @function decode
|
|
59268
|
+
* @memberof ContentfulSurveyCreated
|
|
59269
|
+
* @static
|
|
59270
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
59271
|
+
* @param {number} [length] Message length if known beforehand
|
|
59272
|
+
* @returns {ContentfulSurveyCreated} ContentfulSurveyCreated
|
|
59273
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
59274
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
59275
|
+
*/
|
|
59276
|
+
ContentfulSurveyCreated.decode = function decode(reader, length) {
|
|
59277
|
+
if (!(reader instanceof $Reader))
|
|
59278
|
+
reader = $Reader.create(reader);
|
|
59279
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulSurveyCreated();
|
|
59280
|
+
while (reader.pos < end) {
|
|
59281
|
+
var tag = reader.uint32();
|
|
59282
|
+
switch (tag >>> 3) {
|
|
59283
|
+
case 1:
|
|
59284
|
+
message.timestamp = reader.uint64();
|
|
59285
|
+
break;
|
|
59286
|
+
case 2:
|
|
59287
|
+
message.survey = $root.ContentfulSurvey.decode(reader, reader.uint32());
|
|
59288
|
+
break;
|
|
59289
|
+
default:
|
|
59290
|
+
reader.skipType(tag & 7);
|
|
59291
|
+
break;
|
|
59292
|
+
}
|
|
59293
|
+
}
|
|
59294
|
+
return message;
|
|
59295
|
+
};
|
|
59296
|
+
|
|
59297
|
+
/**
|
|
59298
|
+
* Decodes a ContentfulSurveyCreated message from the specified reader or buffer, length delimited.
|
|
59299
|
+
* @function decodeDelimited
|
|
59300
|
+
* @memberof ContentfulSurveyCreated
|
|
59301
|
+
* @static
|
|
59302
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
59303
|
+
* @returns {ContentfulSurveyCreated} ContentfulSurveyCreated
|
|
59304
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
59305
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
59306
|
+
*/
|
|
59307
|
+
ContentfulSurveyCreated.decodeDelimited = function decodeDelimited(reader) {
|
|
59308
|
+
if (!(reader instanceof $Reader))
|
|
59309
|
+
reader = new $Reader(reader);
|
|
59310
|
+
return this.decode(reader, reader.uint32());
|
|
59311
|
+
};
|
|
59312
|
+
|
|
59313
|
+
/**
|
|
59314
|
+
* Verifies a ContentfulSurveyCreated message.
|
|
59315
|
+
* @function verify
|
|
59316
|
+
* @memberof ContentfulSurveyCreated
|
|
59317
|
+
* @static
|
|
59318
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
59319
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
59320
|
+
*/
|
|
59321
|
+
ContentfulSurveyCreated.verify = function verify(message) {
|
|
59322
|
+
if (typeof message !== "object" || message === null)
|
|
59323
|
+
return "object expected";
|
|
59324
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
59325
|
+
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
59326
|
+
return "timestamp: integer|Long expected";
|
|
59327
|
+
if (message.survey != null && message.hasOwnProperty("survey")) {
|
|
59328
|
+
var error = $root.ContentfulSurvey.verify(message.survey);
|
|
59329
|
+
if (error)
|
|
59330
|
+
return "survey." + error;
|
|
59331
|
+
}
|
|
59332
|
+
return null;
|
|
59333
|
+
};
|
|
59334
|
+
|
|
59335
|
+
/**
|
|
59336
|
+
* Creates a ContentfulSurveyCreated message from a plain object. Also converts values to their respective internal types.
|
|
59337
|
+
* @function fromObject
|
|
59338
|
+
* @memberof ContentfulSurveyCreated
|
|
59339
|
+
* @static
|
|
59340
|
+
* @param {Object.<string,*>} object Plain object
|
|
59341
|
+
* @returns {ContentfulSurveyCreated} ContentfulSurveyCreated
|
|
59342
|
+
*/
|
|
59343
|
+
ContentfulSurveyCreated.fromObject = function fromObject(object) {
|
|
59344
|
+
if (object instanceof $root.ContentfulSurveyCreated)
|
|
59345
|
+
return object;
|
|
59346
|
+
var message = new $root.ContentfulSurveyCreated();
|
|
59347
|
+
if (object.timestamp != null)
|
|
59348
|
+
if ($util.Long)
|
|
59349
|
+
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
59350
|
+
else if (typeof object.timestamp === "string")
|
|
59351
|
+
message.timestamp = parseInt(object.timestamp, 10);
|
|
59352
|
+
else if (typeof object.timestamp === "number")
|
|
59353
|
+
message.timestamp = object.timestamp;
|
|
59354
|
+
else if (typeof object.timestamp === "object")
|
|
59355
|
+
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
59356
|
+
if (object.survey != null) {
|
|
59357
|
+
if (typeof object.survey !== "object")
|
|
59358
|
+
throw TypeError(".ContentfulSurveyCreated.survey: object expected");
|
|
59359
|
+
message.survey = $root.ContentfulSurvey.fromObject(object.survey);
|
|
59360
|
+
}
|
|
59361
|
+
return message;
|
|
59362
|
+
};
|
|
59363
|
+
|
|
59364
|
+
/**
|
|
59365
|
+
* Creates a plain object from a ContentfulSurveyCreated message. Also converts values to other types if specified.
|
|
59366
|
+
* @function toObject
|
|
59367
|
+
* @memberof ContentfulSurveyCreated
|
|
59368
|
+
* @static
|
|
59369
|
+
* @param {ContentfulSurveyCreated} message ContentfulSurveyCreated
|
|
59370
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
59371
|
+
* @returns {Object.<string,*>} Plain object
|
|
59372
|
+
*/
|
|
59373
|
+
ContentfulSurveyCreated.toObject = function toObject(message, options) {
|
|
59374
|
+
if (!options)
|
|
59375
|
+
options = {};
|
|
59376
|
+
var object = {};
|
|
59377
|
+
if (options.defaults) {
|
|
59378
|
+
if ($util.Long) {
|
|
59379
|
+
var long = new $util.Long(0, 0, true);
|
|
59380
|
+
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
59381
|
+
} else
|
|
59382
|
+
object.timestamp = options.longs === String ? "0" : 0;
|
|
59383
|
+
object.survey = null;
|
|
59384
|
+
}
|
|
59385
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
59386
|
+
if (typeof message.timestamp === "number")
|
|
59387
|
+
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
59388
|
+
else
|
|
59389
|
+
object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
|
|
59390
|
+
if (message.survey != null && message.hasOwnProperty("survey"))
|
|
59391
|
+
object.survey = $root.ContentfulSurvey.toObject(message.survey, options);
|
|
59392
|
+
return object;
|
|
59393
|
+
};
|
|
59394
|
+
|
|
59395
|
+
/**
|
|
59396
|
+
* Converts this ContentfulSurveyCreated to JSON.
|
|
59397
|
+
* @function toJSON
|
|
59398
|
+
* @memberof ContentfulSurveyCreated
|
|
59399
|
+
* @instance
|
|
59400
|
+
* @returns {Object.<string,*>} JSON object
|
|
59401
|
+
*/
|
|
59402
|
+
ContentfulSurveyCreated.prototype.toJSON = function toJSON() {
|
|
59403
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
59404
|
+
};
|
|
59405
|
+
|
|
59406
|
+
return ContentfulSurveyCreated;
|
|
59407
|
+
})();
|
|
59408
|
+
|
|
59409
|
+
$root.ContentfulSurveyUpdated = (function() {
|
|
59410
|
+
|
|
59411
|
+
/**
|
|
59412
|
+
* Properties of a ContentfulSurveyUpdated.
|
|
59413
|
+
* @name IContentfulSurveyUpdated
|
|
59414
|
+
* @interface IContentfulSurveyUpdated
|
|
59415
|
+
* @property {number|Long|null} [timestamp] ContentfulSurveyUpdated timestamp
|
|
59416
|
+
* @property {IContentfulSurvey|null} [survey] ContentfulSurveyUpdated survey
|
|
59417
|
+
*/
|
|
59418
|
+
|
|
59419
|
+
/**
|
|
59420
|
+
* Constructs a new ContentfulSurveyUpdated.
|
|
59421
|
+
* @name ContentfulSurveyUpdated
|
|
59422
|
+
* @classdesc Represents a ContentfulSurveyUpdated.
|
|
59423
|
+
* @implements IContentfulSurveyUpdated
|
|
59424
|
+
* @constructor
|
|
59425
|
+
* @param {IContentfulSurveyUpdated=} [properties] Properties to set
|
|
59426
|
+
*/
|
|
59427
|
+
function ContentfulSurveyUpdated(properties) {
|
|
59428
|
+
if (properties)
|
|
59429
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
59430
|
+
if (properties[keys[i]] != null)
|
|
59431
|
+
this[keys[i]] = properties[keys[i]];
|
|
59432
|
+
}
|
|
59433
|
+
|
|
59434
|
+
/**
|
|
59435
|
+
* ContentfulSurveyUpdated timestamp.
|
|
59436
|
+
* @member {number|Long} timestamp
|
|
59437
|
+
* @memberof ContentfulSurveyUpdated
|
|
59438
|
+
* @instance
|
|
59439
|
+
*/
|
|
59440
|
+
ContentfulSurveyUpdated.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
59441
|
+
|
|
59442
|
+
/**
|
|
59443
|
+
* ContentfulSurveyUpdated survey.
|
|
59444
|
+
* @member {IContentfulSurvey|null|undefined} survey
|
|
59445
|
+
* @memberof ContentfulSurveyUpdated
|
|
59446
|
+
* @instance
|
|
59447
|
+
*/
|
|
59448
|
+
ContentfulSurveyUpdated.prototype.survey = null;
|
|
59449
|
+
|
|
59450
|
+
/**
|
|
59451
|
+
* Creates a new ContentfulSurveyUpdated instance using the specified properties.
|
|
59452
|
+
* @function create
|
|
59453
|
+
* @memberof ContentfulSurveyUpdated
|
|
59454
|
+
* @static
|
|
59455
|
+
* @param {IContentfulSurveyUpdated=} [properties] Properties to set
|
|
59456
|
+
* @returns {ContentfulSurveyUpdated} ContentfulSurveyUpdated instance
|
|
59457
|
+
*/
|
|
59458
|
+
ContentfulSurveyUpdated.create = function create(properties) {
|
|
59459
|
+
return new ContentfulSurveyUpdated(properties);
|
|
59460
|
+
};
|
|
59461
|
+
|
|
59462
|
+
/**
|
|
59463
|
+
* Encodes the specified ContentfulSurveyUpdated message. Does not implicitly {@link ContentfulSurveyUpdated.verify|verify} messages.
|
|
59464
|
+
* @function encode
|
|
59465
|
+
* @memberof ContentfulSurveyUpdated
|
|
59466
|
+
* @static
|
|
59467
|
+
* @param {IContentfulSurveyUpdated} message ContentfulSurveyUpdated message or plain object to encode
|
|
59468
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
59469
|
+
* @returns {$protobuf.Writer} Writer
|
|
59470
|
+
*/
|
|
59471
|
+
ContentfulSurveyUpdated.encode = function encode(message, writer) {
|
|
59472
|
+
if (!writer)
|
|
59473
|
+
writer = $Writer.create();
|
|
59474
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
59475
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.timestamp);
|
|
59476
|
+
if (message.survey != null && message.hasOwnProperty("survey"))
|
|
59477
|
+
$root.ContentfulSurvey.encode(message.survey, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
59478
|
+
return writer;
|
|
59479
|
+
};
|
|
59480
|
+
|
|
59481
|
+
/**
|
|
59482
|
+
* Encodes the specified ContentfulSurveyUpdated message, length delimited. Does not implicitly {@link ContentfulSurveyUpdated.verify|verify} messages.
|
|
59483
|
+
* @function encodeDelimited
|
|
59484
|
+
* @memberof ContentfulSurveyUpdated
|
|
59485
|
+
* @static
|
|
59486
|
+
* @param {IContentfulSurveyUpdated} message ContentfulSurveyUpdated message or plain object to encode
|
|
59487
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
59488
|
+
* @returns {$protobuf.Writer} Writer
|
|
59489
|
+
*/
|
|
59490
|
+
ContentfulSurveyUpdated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
59491
|
+
return this.encode(message, writer).ldelim();
|
|
59492
|
+
};
|
|
59493
|
+
|
|
59494
|
+
/**
|
|
59495
|
+
* Decodes a ContentfulSurveyUpdated message from the specified reader or buffer.
|
|
59496
|
+
* @function decode
|
|
59497
|
+
* @memberof ContentfulSurveyUpdated
|
|
59498
|
+
* @static
|
|
59499
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
59500
|
+
* @param {number} [length] Message length if known beforehand
|
|
59501
|
+
* @returns {ContentfulSurveyUpdated} ContentfulSurveyUpdated
|
|
59502
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
59503
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
59504
|
+
*/
|
|
59505
|
+
ContentfulSurveyUpdated.decode = function decode(reader, length) {
|
|
59506
|
+
if (!(reader instanceof $Reader))
|
|
59507
|
+
reader = $Reader.create(reader);
|
|
59508
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulSurveyUpdated();
|
|
59509
|
+
while (reader.pos < end) {
|
|
59510
|
+
var tag = reader.uint32();
|
|
59511
|
+
switch (tag >>> 3) {
|
|
59512
|
+
case 1:
|
|
59513
|
+
message.timestamp = reader.uint64();
|
|
59514
|
+
break;
|
|
59515
|
+
case 2:
|
|
59516
|
+
message.survey = $root.ContentfulSurvey.decode(reader, reader.uint32());
|
|
59517
|
+
break;
|
|
59518
|
+
default:
|
|
59519
|
+
reader.skipType(tag & 7);
|
|
59520
|
+
break;
|
|
59521
|
+
}
|
|
59522
|
+
}
|
|
59523
|
+
return message;
|
|
59524
|
+
};
|
|
59525
|
+
|
|
59526
|
+
/**
|
|
59527
|
+
* Decodes a ContentfulSurveyUpdated message from the specified reader or buffer, length delimited.
|
|
59528
|
+
* @function decodeDelimited
|
|
59529
|
+
* @memberof ContentfulSurveyUpdated
|
|
59530
|
+
* @static
|
|
59531
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
59532
|
+
* @returns {ContentfulSurveyUpdated} ContentfulSurveyUpdated
|
|
59533
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
59534
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
59535
|
+
*/
|
|
59536
|
+
ContentfulSurveyUpdated.decodeDelimited = function decodeDelimited(reader) {
|
|
59537
|
+
if (!(reader instanceof $Reader))
|
|
59538
|
+
reader = new $Reader(reader);
|
|
59539
|
+
return this.decode(reader, reader.uint32());
|
|
59540
|
+
};
|
|
59541
|
+
|
|
59542
|
+
/**
|
|
59543
|
+
* Verifies a ContentfulSurveyUpdated message.
|
|
59544
|
+
* @function verify
|
|
59545
|
+
* @memberof ContentfulSurveyUpdated
|
|
59546
|
+
* @static
|
|
59547
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
59548
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
59549
|
+
*/
|
|
59550
|
+
ContentfulSurveyUpdated.verify = function verify(message) {
|
|
59551
|
+
if (typeof message !== "object" || message === null)
|
|
59552
|
+
return "object expected";
|
|
59553
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
59554
|
+
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
59555
|
+
return "timestamp: integer|Long expected";
|
|
59556
|
+
if (message.survey != null && message.hasOwnProperty("survey")) {
|
|
59557
|
+
var error = $root.ContentfulSurvey.verify(message.survey);
|
|
59558
|
+
if (error)
|
|
59559
|
+
return "survey." + error;
|
|
59560
|
+
}
|
|
59561
|
+
return null;
|
|
59562
|
+
};
|
|
59563
|
+
|
|
59564
|
+
/**
|
|
59565
|
+
* Creates a ContentfulSurveyUpdated message from a plain object. Also converts values to their respective internal types.
|
|
59566
|
+
* @function fromObject
|
|
59567
|
+
* @memberof ContentfulSurveyUpdated
|
|
59568
|
+
* @static
|
|
59569
|
+
* @param {Object.<string,*>} object Plain object
|
|
59570
|
+
* @returns {ContentfulSurveyUpdated} ContentfulSurveyUpdated
|
|
59571
|
+
*/
|
|
59572
|
+
ContentfulSurveyUpdated.fromObject = function fromObject(object) {
|
|
59573
|
+
if (object instanceof $root.ContentfulSurveyUpdated)
|
|
59574
|
+
return object;
|
|
59575
|
+
var message = new $root.ContentfulSurveyUpdated();
|
|
59576
|
+
if (object.timestamp != null)
|
|
59577
|
+
if ($util.Long)
|
|
59578
|
+
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
59579
|
+
else if (typeof object.timestamp === "string")
|
|
59580
|
+
message.timestamp = parseInt(object.timestamp, 10);
|
|
59581
|
+
else if (typeof object.timestamp === "number")
|
|
59582
|
+
message.timestamp = object.timestamp;
|
|
59583
|
+
else if (typeof object.timestamp === "object")
|
|
59584
|
+
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
59585
|
+
if (object.survey != null) {
|
|
59586
|
+
if (typeof object.survey !== "object")
|
|
59587
|
+
throw TypeError(".ContentfulSurveyUpdated.survey: object expected");
|
|
59588
|
+
message.survey = $root.ContentfulSurvey.fromObject(object.survey);
|
|
59589
|
+
}
|
|
59590
|
+
return message;
|
|
59591
|
+
};
|
|
59592
|
+
|
|
59593
|
+
/**
|
|
59594
|
+
* Creates a plain object from a ContentfulSurveyUpdated message. Also converts values to other types if specified.
|
|
59595
|
+
* @function toObject
|
|
59596
|
+
* @memberof ContentfulSurveyUpdated
|
|
59597
|
+
* @static
|
|
59598
|
+
* @param {ContentfulSurveyUpdated} message ContentfulSurveyUpdated
|
|
59599
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
59600
|
+
* @returns {Object.<string,*>} Plain object
|
|
59601
|
+
*/
|
|
59602
|
+
ContentfulSurveyUpdated.toObject = function toObject(message, options) {
|
|
59603
|
+
if (!options)
|
|
59604
|
+
options = {};
|
|
59605
|
+
var object = {};
|
|
59606
|
+
if (options.defaults) {
|
|
59607
|
+
if ($util.Long) {
|
|
59608
|
+
var long = new $util.Long(0, 0, true);
|
|
59609
|
+
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
59610
|
+
} else
|
|
59611
|
+
object.timestamp = options.longs === String ? "0" : 0;
|
|
59612
|
+
object.survey = null;
|
|
59613
|
+
}
|
|
59614
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
59615
|
+
if (typeof message.timestamp === "number")
|
|
59616
|
+
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
59617
|
+
else
|
|
59618
|
+
object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
|
|
59619
|
+
if (message.survey != null && message.hasOwnProperty("survey"))
|
|
59620
|
+
object.survey = $root.ContentfulSurvey.toObject(message.survey, options);
|
|
59621
|
+
return object;
|
|
59622
|
+
};
|
|
59623
|
+
|
|
59624
|
+
/**
|
|
59625
|
+
* Converts this ContentfulSurveyUpdated to JSON.
|
|
59626
|
+
* @function toJSON
|
|
59627
|
+
* @memberof ContentfulSurveyUpdated
|
|
59628
|
+
* @instance
|
|
59629
|
+
* @returns {Object.<string,*>} JSON object
|
|
59630
|
+
*/
|
|
59631
|
+
ContentfulSurveyUpdated.prototype.toJSON = function toJSON() {
|
|
59632
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
59633
|
+
};
|
|
59634
|
+
|
|
59635
|
+
return ContentfulSurveyUpdated;
|
|
59636
|
+
})();
|
|
59637
|
+
|
|
59638
|
+
$root.ContentfulSurveyDeleted = (function() {
|
|
59639
|
+
|
|
59640
|
+
/**
|
|
59641
|
+
* Properties of a ContentfulSurveyDeleted.
|
|
59642
|
+
* @name IContentfulSurveyDeleted
|
|
59643
|
+
* @interface IContentfulSurveyDeleted
|
|
59644
|
+
* @property {number|Long|null} [timestamp] ContentfulSurveyDeleted timestamp
|
|
59645
|
+
* @property {IContentfulSurvey|null} [survey] ContentfulSurveyDeleted survey
|
|
59646
|
+
*/
|
|
59647
|
+
|
|
59648
|
+
/**
|
|
59649
|
+
* Constructs a new ContentfulSurveyDeleted.
|
|
59650
|
+
* @name ContentfulSurveyDeleted
|
|
59651
|
+
* @classdesc Represents a ContentfulSurveyDeleted.
|
|
59652
|
+
* @implements IContentfulSurveyDeleted
|
|
59653
|
+
* @constructor
|
|
59654
|
+
* @param {IContentfulSurveyDeleted=} [properties] Properties to set
|
|
59655
|
+
*/
|
|
59656
|
+
function ContentfulSurveyDeleted(properties) {
|
|
59657
|
+
if (properties)
|
|
59658
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
59659
|
+
if (properties[keys[i]] != null)
|
|
59660
|
+
this[keys[i]] = properties[keys[i]];
|
|
59661
|
+
}
|
|
59662
|
+
|
|
59663
|
+
/**
|
|
59664
|
+
* ContentfulSurveyDeleted timestamp.
|
|
59665
|
+
* @member {number|Long} timestamp
|
|
59666
|
+
* @memberof ContentfulSurveyDeleted
|
|
59667
|
+
* @instance
|
|
59668
|
+
*/
|
|
59669
|
+
ContentfulSurveyDeleted.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
59670
|
+
|
|
59671
|
+
/**
|
|
59672
|
+
* ContentfulSurveyDeleted survey.
|
|
59673
|
+
* @member {IContentfulSurvey|null|undefined} survey
|
|
59674
|
+
* @memberof ContentfulSurveyDeleted
|
|
59675
|
+
* @instance
|
|
59676
|
+
*/
|
|
59677
|
+
ContentfulSurveyDeleted.prototype.survey = null;
|
|
59678
|
+
|
|
59679
|
+
/**
|
|
59680
|
+
* Creates a new ContentfulSurveyDeleted instance using the specified properties.
|
|
59681
|
+
* @function create
|
|
59682
|
+
* @memberof ContentfulSurveyDeleted
|
|
59683
|
+
* @static
|
|
59684
|
+
* @param {IContentfulSurveyDeleted=} [properties] Properties to set
|
|
59685
|
+
* @returns {ContentfulSurveyDeleted} ContentfulSurveyDeleted instance
|
|
59686
|
+
*/
|
|
59687
|
+
ContentfulSurveyDeleted.create = function create(properties) {
|
|
59688
|
+
return new ContentfulSurveyDeleted(properties);
|
|
59689
|
+
};
|
|
59690
|
+
|
|
59691
|
+
/**
|
|
59692
|
+
* Encodes the specified ContentfulSurveyDeleted message. Does not implicitly {@link ContentfulSurveyDeleted.verify|verify} messages.
|
|
59693
|
+
* @function encode
|
|
59694
|
+
* @memberof ContentfulSurveyDeleted
|
|
59695
|
+
* @static
|
|
59696
|
+
* @param {IContentfulSurveyDeleted} message ContentfulSurveyDeleted message or plain object to encode
|
|
59697
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
59698
|
+
* @returns {$protobuf.Writer} Writer
|
|
59699
|
+
*/
|
|
59700
|
+
ContentfulSurveyDeleted.encode = function encode(message, writer) {
|
|
59701
|
+
if (!writer)
|
|
59702
|
+
writer = $Writer.create();
|
|
59703
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
59704
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint64(message.timestamp);
|
|
59705
|
+
if (message.survey != null && message.hasOwnProperty("survey"))
|
|
59706
|
+
$root.ContentfulSurvey.encode(message.survey, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
59707
|
+
return writer;
|
|
59708
|
+
};
|
|
59709
|
+
|
|
59710
|
+
/**
|
|
59711
|
+
* Encodes the specified ContentfulSurveyDeleted message, length delimited. Does not implicitly {@link ContentfulSurveyDeleted.verify|verify} messages.
|
|
59712
|
+
* @function encodeDelimited
|
|
59713
|
+
* @memberof ContentfulSurveyDeleted
|
|
59714
|
+
* @static
|
|
59715
|
+
* @param {IContentfulSurveyDeleted} message ContentfulSurveyDeleted message or plain object to encode
|
|
59716
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
59717
|
+
* @returns {$protobuf.Writer} Writer
|
|
59718
|
+
*/
|
|
59719
|
+
ContentfulSurveyDeleted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
59720
|
+
return this.encode(message, writer).ldelim();
|
|
59721
|
+
};
|
|
59722
|
+
|
|
59723
|
+
/**
|
|
59724
|
+
* Decodes a ContentfulSurveyDeleted message from the specified reader or buffer.
|
|
59725
|
+
* @function decode
|
|
59726
|
+
* @memberof ContentfulSurveyDeleted
|
|
59727
|
+
* @static
|
|
59728
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
59729
|
+
* @param {number} [length] Message length if known beforehand
|
|
59730
|
+
* @returns {ContentfulSurveyDeleted} ContentfulSurveyDeleted
|
|
59731
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
59732
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
59733
|
+
*/
|
|
59734
|
+
ContentfulSurveyDeleted.decode = function decode(reader, length) {
|
|
59735
|
+
if (!(reader instanceof $Reader))
|
|
59736
|
+
reader = $Reader.create(reader);
|
|
59737
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulSurveyDeleted();
|
|
59738
|
+
while (reader.pos < end) {
|
|
59739
|
+
var tag = reader.uint32();
|
|
59740
|
+
switch (tag >>> 3) {
|
|
59741
|
+
case 1:
|
|
59742
|
+
message.timestamp = reader.uint64();
|
|
59743
|
+
break;
|
|
59744
|
+
case 2:
|
|
59745
|
+
message.survey = $root.ContentfulSurvey.decode(reader, reader.uint32());
|
|
59746
|
+
break;
|
|
59747
|
+
default:
|
|
59748
|
+
reader.skipType(tag & 7);
|
|
59749
|
+
break;
|
|
59750
|
+
}
|
|
59751
|
+
}
|
|
59752
|
+
return message;
|
|
59753
|
+
};
|
|
59754
|
+
|
|
59755
|
+
/**
|
|
59756
|
+
* Decodes a ContentfulSurveyDeleted message from the specified reader or buffer, length delimited.
|
|
59757
|
+
* @function decodeDelimited
|
|
59758
|
+
* @memberof ContentfulSurveyDeleted
|
|
59759
|
+
* @static
|
|
59760
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
59761
|
+
* @returns {ContentfulSurveyDeleted} ContentfulSurveyDeleted
|
|
59762
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
59763
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
59764
|
+
*/
|
|
59765
|
+
ContentfulSurveyDeleted.decodeDelimited = function decodeDelimited(reader) {
|
|
59766
|
+
if (!(reader instanceof $Reader))
|
|
59767
|
+
reader = new $Reader(reader);
|
|
59768
|
+
return this.decode(reader, reader.uint32());
|
|
59769
|
+
};
|
|
59770
|
+
|
|
59771
|
+
/**
|
|
59772
|
+
* Verifies a ContentfulSurveyDeleted message.
|
|
59773
|
+
* @function verify
|
|
59774
|
+
* @memberof ContentfulSurveyDeleted
|
|
59775
|
+
* @static
|
|
59776
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
59777
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
59778
|
+
*/
|
|
59779
|
+
ContentfulSurveyDeleted.verify = function verify(message) {
|
|
59780
|
+
if (typeof message !== "object" || message === null)
|
|
59781
|
+
return "object expected";
|
|
59782
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
59783
|
+
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
59784
|
+
return "timestamp: integer|Long expected";
|
|
59785
|
+
if (message.survey != null && message.hasOwnProperty("survey")) {
|
|
59786
|
+
var error = $root.ContentfulSurvey.verify(message.survey);
|
|
59787
|
+
if (error)
|
|
59788
|
+
return "survey." + error;
|
|
59789
|
+
}
|
|
59790
|
+
return null;
|
|
59791
|
+
};
|
|
59792
|
+
|
|
59793
|
+
/**
|
|
59794
|
+
* Creates a ContentfulSurveyDeleted message from a plain object. Also converts values to their respective internal types.
|
|
59795
|
+
* @function fromObject
|
|
59796
|
+
* @memberof ContentfulSurveyDeleted
|
|
59797
|
+
* @static
|
|
59798
|
+
* @param {Object.<string,*>} object Plain object
|
|
59799
|
+
* @returns {ContentfulSurveyDeleted} ContentfulSurveyDeleted
|
|
59800
|
+
*/
|
|
59801
|
+
ContentfulSurveyDeleted.fromObject = function fromObject(object) {
|
|
59802
|
+
if (object instanceof $root.ContentfulSurveyDeleted)
|
|
59803
|
+
return object;
|
|
59804
|
+
var message = new $root.ContentfulSurveyDeleted();
|
|
59805
|
+
if (object.timestamp != null)
|
|
59806
|
+
if ($util.Long)
|
|
59807
|
+
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
59808
|
+
else if (typeof object.timestamp === "string")
|
|
59809
|
+
message.timestamp = parseInt(object.timestamp, 10);
|
|
59810
|
+
else if (typeof object.timestamp === "number")
|
|
59811
|
+
message.timestamp = object.timestamp;
|
|
59812
|
+
else if (typeof object.timestamp === "object")
|
|
59813
|
+
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
59814
|
+
if (object.survey != null) {
|
|
59815
|
+
if (typeof object.survey !== "object")
|
|
59816
|
+
throw TypeError(".ContentfulSurveyDeleted.survey: object expected");
|
|
59817
|
+
message.survey = $root.ContentfulSurvey.fromObject(object.survey);
|
|
59818
|
+
}
|
|
59819
|
+
return message;
|
|
59820
|
+
};
|
|
59821
|
+
|
|
59822
|
+
/**
|
|
59823
|
+
* Creates a plain object from a ContentfulSurveyDeleted message. Also converts values to other types if specified.
|
|
59824
|
+
* @function toObject
|
|
59825
|
+
* @memberof ContentfulSurveyDeleted
|
|
59826
|
+
* @static
|
|
59827
|
+
* @param {ContentfulSurveyDeleted} message ContentfulSurveyDeleted
|
|
59828
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
59829
|
+
* @returns {Object.<string,*>} Plain object
|
|
59830
|
+
*/
|
|
59831
|
+
ContentfulSurveyDeleted.toObject = function toObject(message, options) {
|
|
59832
|
+
if (!options)
|
|
59833
|
+
options = {};
|
|
59834
|
+
var object = {};
|
|
59835
|
+
if (options.defaults) {
|
|
59836
|
+
if ($util.Long) {
|
|
59837
|
+
var long = new $util.Long(0, 0, true);
|
|
59838
|
+
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
59839
|
+
} else
|
|
59840
|
+
object.timestamp = options.longs === String ? "0" : 0;
|
|
59841
|
+
object.survey = null;
|
|
59842
|
+
}
|
|
59843
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
59844
|
+
if (typeof message.timestamp === "number")
|
|
59845
|
+
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
59846
|
+
else
|
|
59847
|
+
object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
|
|
59848
|
+
if (message.survey != null && message.hasOwnProperty("survey"))
|
|
59849
|
+
object.survey = $root.ContentfulSurvey.toObject(message.survey, options);
|
|
59850
|
+
return object;
|
|
59851
|
+
};
|
|
59852
|
+
|
|
59853
|
+
/**
|
|
59854
|
+
* Converts this ContentfulSurveyDeleted to JSON.
|
|
59855
|
+
* @function toJSON
|
|
59856
|
+
* @memberof ContentfulSurveyDeleted
|
|
59857
|
+
* @instance
|
|
59858
|
+
* @returns {Object.<string,*>} JSON object
|
|
59859
|
+
*/
|
|
59860
|
+
ContentfulSurveyDeleted.prototype.toJSON = function toJSON() {
|
|
59861
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
59862
|
+
};
|
|
59863
|
+
|
|
59864
|
+
return ContentfulSurveyDeleted;
|
|
59865
|
+
})();
|
|
59866
|
+
|
|
58185
59867
|
$root.ContentfulVariationContainerCreated = (function() {
|
|
58186
59868
|
|
|
58187
59869
|
/**
|
|
@@ -110868,6 +112550,7 @@ $root.GingerMemberUpgraded = (function() {
|
|
|
110868
112550
|
* @property {string|null} [lastName] GingerMemberUpgraded lastName
|
|
110869
112551
|
* @property {b2b.EnrollmentFlow|null} [priorEnrollmentFlow] GingerMemberUpgraded priorEnrollmentFlow
|
|
110870
112552
|
* @property {b2b.EnrollmentFlow|null} [enrollmentFlow] GingerMemberUpgraded enrollmentFlow
|
|
112553
|
+
* @property {number|null} [b2bRootOrgId] GingerMemberUpgraded b2bRootOrgId
|
|
110871
112554
|
*/
|
|
110872
112555
|
|
|
110873
112556
|
/**
|
|
@@ -110967,6 +112650,14 @@ $root.GingerMemberUpgraded = (function() {
|
|
|
110967
112650
|
*/
|
|
110968
112651
|
GingerMemberUpgraded.prototype.enrollmentFlow = 0;
|
|
110969
112652
|
|
|
112653
|
+
/**
|
|
112654
|
+
* GingerMemberUpgraded b2bRootOrgId.
|
|
112655
|
+
* @member {number} b2bRootOrgId
|
|
112656
|
+
* @memberof GingerMemberUpgraded
|
|
112657
|
+
* @instance
|
|
112658
|
+
*/
|
|
112659
|
+
GingerMemberUpgraded.prototype.b2bRootOrgId = 0;
|
|
112660
|
+
|
|
110970
112661
|
/**
|
|
110971
112662
|
* Creates a new GingerMemberUpgraded instance using the specified properties.
|
|
110972
112663
|
* @function create
|
|
@@ -111011,6 +112702,8 @@ $root.GingerMemberUpgraded = (function() {
|
|
|
111011
112702
|
writer.uint32(/* id 9, wireType 0 =*/72).int32(message.priorEnrollmentFlow);
|
|
111012
112703
|
if (message.enrollmentFlow != null && message.hasOwnProperty("enrollmentFlow"))
|
|
111013
112704
|
writer.uint32(/* id 10, wireType 0 =*/80).int32(message.enrollmentFlow);
|
|
112705
|
+
if (message.b2bRootOrgId != null && message.hasOwnProperty("b2bRootOrgId"))
|
|
112706
|
+
writer.uint32(/* id 11, wireType 0 =*/88).uint32(message.b2bRootOrgId);
|
|
111014
112707
|
return writer;
|
|
111015
112708
|
};
|
|
111016
112709
|
|
|
@@ -111075,6 +112768,9 @@ $root.GingerMemberUpgraded = (function() {
|
|
|
111075
112768
|
case 10:
|
|
111076
112769
|
message.enrollmentFlow = reader.int32();
|
|
111077
112770
|
break;
|
|
112771
|
+
case 11:
|
|
112772
|
+
message.b2bRootOrgId = reader.uint32();
|
|
112773
|
+
break;
|
|
111078
112774
|
default:
|
|
111079
112775
|
reader.skipType(tag & 7);
|
|
111080
112776
|
break;
|
|
@@ -111158,6 +112854,9 @@ $root.GingerMemberUpgraded = (function() {
|
|
|
111158
112854
|
case 5:
|
|
111159
112855
|
break;
|
|
111160
112856
|
}
|
|
112857
|
+
if (message.b2bRootOrgId != null && message.hasOwnProperty("b2bRootOrgId"))
|
|
112858
|
+
if (!$util.isInteger(message.b2bRootOrgId))
|
|
112859
|
+
return "b2bRootOrgId: integer expected";
|
|
111161
112860
|
return null;
|
|
111162
112861
|
};
|
|
111163
112862
|
|
|
@@ -111241,6 +112940,8 @@ $root.GingerMemberUpgraded = (function() {
|
|
|
111241
112940
|
message.enrollmentFlow = 5;
|
|
111242
112941
|
break;
|
|
111243
112942
|
}
|
|
112943
|
+
if (object.b2bRootOrgId != null)
|
|
112944
|
+
message.b2bRootOrgId = object.b2bRootOrgId >>> 0;
|
|
111244
112945
|
return message;
|
|
111245
112946
|
};
|
|
111246
112947
|
|
|
@@ -111268,6 +112969,7 @@ $root.GingerMemberUpgraded = (function() {
|
|
|
111268
112969
|
object.lastName = "";
|
|
111269
112970
|
object.priorEnrollmentFlow = options.enums === String ? "ENROLLMENT_FLOW_UNKNOWN" : 0;
|
|
111270
112971
|
object.enrollmentFlow = options.enums === String ? "ENROLLMENT_FLOW_UNKNOWN" : 0;
|
|
112972
|
+
object.b2bRootOrgId = 0;
|
|
111271
112973
|
}
|
|
111272
112974
|
if (message.headspaceHealthOrgId != null && message.hasOwnProperty("headspaceHealthOrgId"))
|
|
111273
112975
|
object.headspaceHealthOrgId = message.headspaceHealthOrgId;
|
|
@@ -111289,6 +112991,8 @@ $root.GingerMemberUpgraded = (function() {
|
|
|
111289
112991
|
object.priorEnrollmentFlow = options.enums === String ? $root.b2b.EnrollmentFlow[message.priorEnrollmentFlow] : message.priorEnrollmentFlow;
|
|
111290
112992
|
if (message.enrollmentFlow != null && message.hasOwnProperty("enrollmentFlow"))
|
|
111291
112993
|
object.enrollmentFlow = options.enums === String ? $root.b2b.EnrollmentFlow[message.enrollmentFlow] : message.enrollmentFlow;
|
|
112994
|
+
if (message.b2bRootOrgId != null && message.hasOwnProperty("b2bRootOrgId"))
|
|
112995
|
+
object.b2bRootOrgId = message.b2bRootOrgId;
|
|
111292
112996
|
return object;
|
|
111293
112997
|
};
|
|
111294
112998
|
|
|
@@ -111322,6 +113026,7 @@ $root.GingerDependentUpgraded = (function() {
|
|
|
111322
113026
|
* @property {string|null} [email] GingerDependentUpgraded email
|
|
111323
113027
|
* @property {b2b.EnrollmentFlow|null} [priorEnrollmentFlow] GingerDependentUpgraded priorEnrollmentFlow
|
|
111324
113028
|
* @property {b2b.EnrollmentFlow|null} [enrollmentFlow] GingerDependentUpgraded enrollmentFlow
|
|
113029
|
+
* @property {number|null} [b2bRootOrgId] GingerDependentUpgraded b2bRootOrgId
|
|
111325
113030
|
*/
|
|
111326
113031
|
|
|
111327
113032
|
/**
|
|
@@ -111421,6 +113126,14 @@ $root.GingerDependentUpgraded = (function() {
|
|
|
111421
113126
|
*/
|
|
111422
113127
|
GingerDependentUpgraded.prototype.enrollmentFlow = 0;
|
|
111423
113128
|
|
|
113129
|
+
/**
|
|
113130
|
+
* GingerDependentUpgraded b2bRootOrgId.
|
|
113131
|
+
* @member {number} b2bRootOrgId
|
|
113132
|
+
* @memberof GingerDependentUpgraded
|
|
113133
|
+
* @instance
|
|
113134
|
+
*/
|
|
113135
|
+
GingerDependentUpgraded.prototype.b2bRootOrgId = 0;
|
|
113136
|
+
|
|
111424
113137
|
/**
|
|
111425
113138
|
* Creates a new GingerDependentUpgraded instance using the specified properties.
|
|
111426
113139
|
* @function create
|
|
@@ -111465,6 +113178,8 @@ $root.GingerDependentUpgraded = (function() {
|
|
|
111465
113178
|
writer.uint32(/* id 9, wireType 0 =*/72).int32(message.priorEnrollmentFlow);
|
|
111466
113179
|
if (message.enrollmentFlow != null && message.hasOwnProperty("enrollmentFlow"))
|
|
111467
113180
|
writer.uint32(/* id 10, wireType 0 =*/80).int32(message.enrollmentFlow);
|
|
113181
|
+
if (message.b2bRootOrgId != null && message.hasOwnProperty("b2bRootOrgId"))
|
|
113182
|
+
writer.uint32(/* id 11, wireType 0 =*/88).uint32(message.b2bRootOrgId);
|
|
111468
113183
|
return writer;
|
|
111469
113184
|
};
|
|
111470
113185
|
|
|
@@ -111529,6 +113244,9 @@ $root.GingerDependentUpgraded = (function() {
|
|
|
111529
113244
|
case 10:
|
|
111530
113245
|
message.enrollmentFlow = reader.int32();
|
|
111531
113246
|
break;
|
|
113247
|
+
case 11:
|
|
113248
|
+
message.b2bRootOrgId = reader.uint32();
|
|
113249
|
+
break;
|
|
111532
113250
|
default:
|
|
111533
113251
|
reader.skipType(tag & 7);
|
|
111534
113252
|
break;
|
|
@@ -111612,6 +113330,9 @@ $root.GingerDependentUpgraded = (function() {
|
|
|
111612
113330
|
case 5:
|
|
111613
113331
|
break;
|
|
111614
113332
|
}
|
|
113333
|
+
if (message.b2bRootOrgId != null && message.hasOwnProperty("b2bRootOrgId"))
|
|
113334
|
+
if (!$util.isInteger(message.b2bRootOrgId))
|
|
113335
|
+
return "b2bRootOrgId: integer expected";
|
|
111615
113336
|
return null;
|
|
111616
113337
|
};
|
|
111617
113338
|
|
|
@@ -111695,6 +113416,8 @@ $root.GingerDependentUpgraded = (function() {
|
|
|
111695
113416
|
message.enrollmentFlow = 5;
|
|
111696
113417
|
break;
|
|
111697
113418
|
}
|
|
113419
|
+
if (object.b2bRootOrgId != null)
|
|
113420
|
+
message.b2bRootOrgId = object.b2bRootOrgId >>> 0;
|
|
111698
113421
|
return message;
|
|
111699
113422
|
};
|
|
111700
113423
|
|
|
@@ -111722,6 +113445,7 @@ $root.GingerDependentUpgraded = (function() {
|
|
|
111722
113445
|
object.email = "";
|
|
111723
113446
|
object.priorEnrollmentFlow = options.enums === String ? "ENROLLMENT_FLOW_UNKNOWN" : 0;
|
|
111724
113447
|
object.enrollmentFlow = options.enums === String ? "ENROLLMENT_FLOW_UNKNOWN" : 0;
|
|
113448
|
+
object.b2bRootOrgId = 0;
|
|
111725
113449
|
}
|
|
111726
113450
|
if (message.headspaceHealthOrgId != null && message.hasOwnProperty("headspaceHealthOrgId"))
|
|
111727
113451
|
object.headspaceHealthOrgId = message.headspaceHealthOrgId;
|
|
@@ -111743,6 +113467,8 @@ $root.GingerDependentUpgraded = (function() {
|
|
|
111743
113467
|
object.priorEnrollmentFlow = options.enums === String ? $root.b2b.EnrollmentFlow[message.priorEnrollmentFlow] : message.priorEnrollmentFlow;
|
|
111744
113468
|
if (message.enrollmentFlow != null && message.hasOwnProperty("enrollmentFlow"))
|
|
111745
113469
|
object.enrollmentFlow = options.enums === String ? $root.b2b.EnrollmentFlow[message.enrollmentFlow] : message.enrollmentFlow;
|
|
113470
|
+
if (message.b2bRootOrgId != null && message.hasOwnProperty("b2bRootOrgId"))
|
|
113471
|
+
object.b2bRootOrgId = message.b2bRootOrgId;
|
|
111746
113472
|
return object;
|
|
111747
113473
|
};
|
|
111748
113474
|
|