@headspace/protos-events 1.421.0 → 1.423.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 +288 -102
- package/lib/index.js +1101 -335
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -104266,31 +104266,1001 @@ $root.WorkoutPlaylistCreated = (function() {
|
|
|
104266
104266
|
return WorkoutPlaylistCreated;
|
|
104267
104267
|
})();
|
|
104268
104268
|
|
|
104269
|
+
$root.WorkoutPlaylistCreatedV2 = (function() {
|
|
104270
|
+
|
|
104271
|
+
/**
|
|
104272
|
+
* Properties of a WorkoutPlaylistCreatedV2.
|
|
104273
|
+
* @exports IWorkoutPlaylistCreatedV2
|
|
104274
|
+
* @interface IWorkoutPlaylistCreatedV2
|
|
104275
|
+
* @property {string|null} [slug] WorkoutPlaylistCreatedV2 slug
|
|
104276
|
+
* @property {number|null} [entityId] WorkoutPlaylistCreatedV2 entityId
|
|
104277
|
+
* @property {string|null} [entityType] WorkoutPlaylistCreatedV2 entityType
|
|
104278
|
+
* @property {Array.<contentful.ISlugReference>|null} [accessGroups] WorkoutPlaylistCreatedV2 accessGroups
|
|
104279
|
+
* @property {number|Long|null} [createdAt] WorkoutPlaylistCreatedV2 createdAt
|
|
104280
|
+
* @property {Object.<string,contentful.IIdReference>|null} [tileMedia] WorkoutPlaylistCreatedV2 tileMedia
|
|
104281
|
+
* @property {Object.<string,contentful.IIdReference>|null} [headerImageMedia] WorkoutPlaylistCreatedV2 headerImageMedia
|
|
104282
|
+
* @property {Object.<string,contentful.ITags>|null} [tags] WorkoutPlaylistCreatedV2 tags
|
|
104283
|
+
* @property {string|null} [contentType] WorkoutPlaylistCreatedV2 contentType
|
|
104284
|
+
* @property {string|null} [contentTypeDisplayValue] WorkoutPlaylistCreatedV2 contentTypeDisplayValue
|
|
104285
|
+
*/
|
|
104286
|
+
|
|
104287
|
+
/**
|
|
104288
|
+
* Constructs a new WorkoutPlaylistCreatedV2.
|
|
104289
|
+
* @exports WorkoutPlaylistCreatedV2
|
|
104290
|
+
* @classdesc Represents a WorkoutPlaylistCreatedV2.
|
|
104291
|
+
* @implements IWorkoutPlaylistCreatedV2
|
|
104292
|
+
* @constructor
|
|
104293
|
+
* @param {IWorkoutPlaylistCreatedV2=} [properties] Properties to set
|
|
104294
|
+
*/
|
|
104295
|
+
function WorkoutPlaylistCreatedV2(properties) {
|
|
104296
|
+
this.accessGroups = [];
|
|
104297
|
+
this.tileMedia = {};
|
|
104298
|
+
this.headerImageMedia = {};
|
|
104299
|
+
this.tags = {};
|
|
104300
|
+
if (properties)
|
|
104301
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
104302
|
+
if (properties[keys[i]] != null)
|
|
104303
|
+
this[keys[i]] = properties[keys[i]];
|
|
104304
|
+
}
|
|
104305
|
+
|
|
104306
|
+
/**
|
|
104307
|
+
* WorkoutPlaylistCreatedV2 slug.
|
|
104308
|
+
* @member {string} slug
|
|
104309
|
+
* @memberof WorkoutPlaylistCreatedV2
|
|
104310
|
+
* @instance
|
|
104311
|
+
*/
|
|
104312
|
+
WorkoutPlaylistCreatedV2.prototype.slug = "";
|
|
104313
|
+
|
|
104314
|
+
/**
|
|
104315
|
+
* WorkoutPlaylistCreatedV2 entityId.
|
|
104316
|
+
* @member {number} entityId
|
|
104317
|
+
* @memberof WorkoutPlaylistCreatedV2
|
|
104318
|
+
* @instance
|
|
104319
|
+
*/
|
|
104320
|
+
WorkoutPlaylistCreatedV2.prototype.entityId = 0;
|
|
104321
|
+
|
|
104322
|
+
/**
|
|
104323
|
+
* WorkoutPlaylistCreatedV2 entityType.
|
|
104324
|
+
* @member {string} entityType
|
|
104325
|
+
* @memberof WorkoutPlaylistCreatedV2
|
|
104326
|
+
* @instance
|
|
104327
|
+
*/
|
|
104328
|
+
WorkoutPlaylistCreatedV2.prototype.entityType = "";
|
|
104329
|
+
|
|
104330
|
+
/**
|
|
104331
|
+
* WorkoutPlaylistCreatedV2 accessGroups.
|
|
104332
|
+
* @member {Array.<contentful.ISlugReference>} accessGroups
|
|
104333
|
+
* @memberof WorkoutPlaylistCreatedV2
|
|
104334
|
+
* @instance
|
|
104335
|
+
*/
|
|
104336
|
+
WorkoutPlaylistCreatedV2.prototype.accessGroups = $util.emptyArray;
|
|
104337
|
+
|
|
104338
|
+
/**
|
|
104339
|
+
* WorkoutPlaylistCreatedV2 createdAt.
|
|
104340
|
+
* @member {number|Long} createdAt
|
|
104341
|
+
* @memberof WorkoutPlaylistCreatedV2
|
|
104342
|
+
* @instance
|
|
104343
|
+
*/
|
|
104344
|
+
WorkoutPlaylistCreatedV2.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
104345
|
+
|
|
104346
|
+
/**
|
|
104347
|
+
* WorkoutPlaylistCreatedV2 tileMedia.
|
|
104348
|
+
* @member {Object.<string,contentful.IIdReference>} tileMedia
|
|
104349
|
+
* @memberof WorkoutPlaylistCreatedV2
|
|
104350
|
+
* @instance
|
|
104351
|
+
*/
|
|
104352
|
+
WorkoutPlaylistCreatedV2.prototype.tileMedia = $util.emptyObject;
|
|
104353
|
+
|
|
104354
|
+
/**
|
|
104355
|
+
* WorkoutPlaylistCreatedV2 headerImageMedia.
|
|
104356
|
+
* @member {Object.<string,contentful.IIdReference>} headerImageMedia
|
|
104357
|
+
* @memberof WorkoutPlaylistCreatedV2
|
|
104358
|
+
* @instance
|
|
104359
|
+
*/
|
|
104360
|
+
WorkoutPlaylistCreatedV2.prototype.headerImageMedia = $util.emptyObject;
|
|
104361
|
+
|
|
104362
|
+
/**
|
|
104363
|
+
* WorkoutPlaylistCreatedV2 tags.
|
|
104364
|
+
* @member {Object.<string,contentful.ITags>} tags
|
|
104365
|
+
* @memberof WorkoutPlaylistCreatedV2
|
|
104366
|
+
* @instance
|
|
104367
|
+
*/
|
|
104368
|
+
WorkoutPlaylistCreatedV2.prototype.tags = $util.emptyObject;
|
|
104369
|
+
|
|
104370
|
+
/**
|
|
104371
|
+
* WorkoutPlaylistCreatedV2 contentType.
|
|
104372
|
+
* @member {string} contentType
|
|
104373
|
+
* @memberof WorkoutPlaylistCreatedV2
|
|
104374
|
+
* @instance
|
|
104375
|
+
*/
|
|
104376
|
+
WorkoutPlaylistCreatedV2.prototype.contentType = "";
|
|
104377
|
+
|
|
104378
|
+
/**
|
|
104379
|
+
* WorkoutPlaylistCreatedV2 contentTypeDisplayValue.
|
|
104380
|
+
* @member {string} contentTypeDisplayValue
|
|
104381
|
+
* @memberof WorkoutPlaylistCreatedV2
|
|
104382
|
+
* @instance
|
|
104383
|
+
*/
|
|
104384
|
+
WorkoutPlaylistCreatedV2.prototype.contentTypeDisplayValue = "";
|
|
104385
|
+
|
|
104386
|
+
/**
|
|
104387
|
+
* Creates a new WorkoutPlaylistCreatedV2 instance using the specified properties.
|
|
104388
|
+
* @function create
|
|
104389
|
+
* @memberof WorkoutPlaylistCreatedV2
|
|
104390
|
+
* @static
|
|
104391
|
+
* @param {IWorkoutPlaylistCreatedV2=} [properties] Properties to set
|
|
104392
|
+
* @returns {WorkoutPlaylistCreatedV2} WorkoutPlaylistCreatedV2 instance
|
|
104393
|
+
*/
|
|
104394
|
+
WorkoutPlaylistCreatedV2.create = function create(properties) {
|
|
104395
|
+
return new WorkoutPlaylistCreatedV2(properties);
|
|
104396
|
+
};
|
|
104397
|
+
|
|
104398
|
+
/**
|
|
104399
|
+
* Encodes the specified WorkoutPlaylistCreatedV2 message. Does not implicitly {@link WorkoutPlaylistCreatedV2.verify|verify} messages.
|
|
104400
|
+
* @function encode
|
|
104401
|
+
* @memberof WorkoutPlaylistCreatedV2
|
|
104402
|
+
* @static
|
|
104403
|
+
* @param {IWorkoutPlaylistCreatedV2} message WorkoutPlaylistCreatedV2 message or plain object to encode
|
|
104404
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
104405
|
+
* @returns {$protobuf.Writer} Writer
|
|
104406
|
+
*/
|
|
104407
|
+
WorkoutPlaylistCreatedV2.encode = function encode(message, writer) {
|
|
104408
|
+
if (!writer)
|
|
104409
|
+
writer = $Writer.create();
|
|
104410
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
104411
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
104412
|
+
if (message.entityId != null && message.hasOwnProperty("entityId"))
|
|
104413
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.entityId);
|
|
104414
|
+
if (message.entityType != null && message.hasOwnProperty("entityType"))
|
|
104415
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.entityType);
|
|
104416
|
+
if (message.accessGroups != null && message.accessGroups.length)
|
|
104417
|
+
for (var i = 0; i < message.accessGroups.length; ++i)
|
|
104418
|
+
$root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
104419
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
104420
|
+
writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.createdAt);
|
|
104421
|
+
if (message.tileMedia != null && message.hasOwnProperty("tileMedia"))
|
|
104422
|
+
for (var keys = Object.keys(message.tileMedia), i = 0; i < keys.length; ++i) {
|
|
104423
|
+
writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
104424
|
+
$root.contentful.IdReference.encode(message.tileMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
104425
|
+
}
|
|
104426
|
+
if (message.headerImageMedia != null && message.hasOwnProperty("headerImageMedia"))
|
|
104427
|
+
for (var keys = Object.keys(message.headerImageMedia), i = 0; i < keys.length; ++i) {
|
|
104428
|
+
writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
104429
|
+
$root.contentful.IdReference.encode(message.headerImageMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
104430
|
+
}
|
|
104431
|
+
if (message.tags != null && message.hasOwnProperty("tags"))
|
|
104432
|
+
for (var keys = Object.keys(message.tags), i = 0; i < keys.length; ++i) {
|
|
104433
|
+
writer.uint32(/* id 8, wireType 2 =*/66).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
104434
|
+
$root.contentful.Tags.encode(message.tags[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
104435
|
+
}
|
|
104436
|
+
if (message.contentType != null && message.hasOwnProperty("contentType"))
|
|
104437
|
+
writer.uint32(/* id 9, wireType 2 =*/74).string(message.contentType);
|
|
104438
|
+
if (message.contentTypeDisplayValue != null && message.hasOwnProperty("contentTypeDisplayValue"))
|
|
104439
|
+
writer.uint32(/* id 10, wireType 2 =*/82).string(message.contentTypeDisplayValue);
|
|
104440
|
+
return writer;
|
|
104441
|
+
};
|
|
104442
|
+
|
|
104443
|
+
/**
|
|
104444
|
+
* Encodes the specified WorkoutPlaylistCreatedV2 message, length delimited. Does not implicitly {@link WorkoutPlaylistCreatedV2.verify|verify} messages.
|
|
104445
|
+
* @function encodeDelimited
|
|
104446
|
+
* @memberof WorkoutPlaylistCreatedV2
|
|
104447
|
+
* @static
|
|
104448
|
+
* @param {IWorkoutPlaylistCreatedV2} message WorkoutPlaylistCreatedV2 message or plain object to encode
|
|
104449
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
104450
|
+
* @returns {$protobuf.Writer} Writer
|
|
104451
|
+
*/
|
|
104452
|
+
WorkoutPlaylistCreatedV2.encodeDelimited = function encodeDelimited(message, writer) {
|
|
104453
|
+
return this.encode(message, writer).ldelim();
|
|
104454
|
+
};
|
|
104455
|
+
|
|
104456
|
+
/**
|
|
104457
|
+
* Decodes a WorkoutPlaylistCreatedV2 message from the specified reader or buffer.
|
|
104458
|
+
* @function decode
|
|
104459
|
+
* @memberof WorkoutPlaylistCreatedV2
|
|
104460
|
+
* @static
|
|
104461
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
104462
|
+
* @param {number} [length] Message length if known beforehand
|
|
104463
|
+
* @returns {WorkoutPlaylistCreatedV2} WorkoutPlaylistCreatedV2
|
|
104464
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
104465
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
104466
|
+
*/
|
|
104467
|
+
WorkoutPlaylistCreatedV2.decode = function decode(reader, length) {
|
|
104468
|
+
if (!(reader instanceof $Reader))
|
|
104469
|
+
reader = $Reader.create(reader);
|
|
104470
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.WorkoutPlaylistCreatedV2(), key;
|
|
104471
|
+
while (reader.pos < end) {
|
|
104472
|
+
var tag = reader.uint32();
|
|
104473
|
+
switch (tag >>> 3) {
|
|
104474
|
+
case 1:
|
|
104475
|
+
message.slug = reader.string();
|
|
104476
|
+
break;
|
|
104477
|
+
case 2:
|
|
104478
|
+
message.entityId = reader.uint32();
|
|
104479
|
+
break;
|
|
104480
|
+
case 3:
|
|
104481
|
+
message.entityType = reader.string();
|
|
104482
|
+
break;
|
|
104483
|
+
case 4:
|
|
104484
|
+
if (!(message.accessGroups && message.accessGroups.length))
|
|
104485
|
+
message.accessGroups = [];
|
|
104486
|
+
message.accessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
104487
|
+
break;
|
|
104488
|
+
case 5:
|
|
104489
|
+
message.createdAt = reader.uint64();
|
|
104490
|
+
break;
|
|
104491
|
+
case 6:
|
|
104492
|
+
reader.skip().pos++;
|
|
104493
|
+
if (message.tileMedia === $util.emptyObject)
|
|
104494
|
+
message.tileMedia = {};
|
|
104495
|
+
key = reader.string();
|
|
104496
|
+
reader.pos++;
|
|
104497
|
+
message.tileMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
|
|
104498
|
+
break;
|
|
104499
|
+
case 7:
|
|
104500
|
+
reader.skip().pos++;
|
|
104501
|
+
if (message.headerImageMedia === $util.emptyObject)
|
|
104502
|
+
message.headerImageMedia = {};
|
|
104503
|
+
key = reader.string();
|
|
104504
|
+
reader.pos++;
|
|
104505
|
+
message.headerImageMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
|
|
104506
|
+
break;
|
|
104507
|
+
case 8:
|
|
104508
|
+
reader.skip().pos++;
|
|
104509
|
+
if (message.tags === $util.emptyObject)
|
|
104510
|
+
message.tags = {};
|
|
104511
|
+
key = reader.string();
|
|
104512
|
+
reader.pos++;
|
|
104513
|
+
message.tags[key] = $root.contentful.Tags.decode(reader, reader.uint32());
|
|
104514
|
+
break;
|
|
104515
|
+
case 9:
|
|
104516
|
+
message.contentType = reader.string();
|
|
104517
|
+
break;
|
|
104518
|
+
case 10:
|
|
104519
|
+
message.contentTypeDisplayValue = reader.string();
|
|
104520
|
+
break;
|
|
104521
|
+
default:
|
|
104522
|
+
reader.skipType(tag & 7);
|
|
104523
|
+
break;
|
|
104524
|
+
}
|
|
104525
|
+
}
|
|
104526
|
+
return message;
|
|
104527
|
+
};
|
|
104528
|
+
|
|
104529
|
+
/**
|
|
104530
|
+
* Decodes a WorkoutPlaylistCreatedV2 message from the specified reader or buffer, length delimited.
|
|
104531
|
+
* @function decodeDelimited
|
|
104532
|
+
* @memberof WorkoutPlaylistCreatedV2
|
|
104533
|
+
* @static
|
|
104534
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
104535
|
+
* @returns {WorkoutPlaylistCreatedV2} WorkoutPlaylistCreatedV2
|
|
104536
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
104537
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
104538
|
+
*/
|
|
104539
|
+
WorkoutPlaylistCreatedV2.decodeDelimited = function decodeDelimited(reader) {
|
|
104540
|
+
if (!(reader instanceof $Reader))
|
|
104541
|
+
reader = new $Reader(reader);
|
|
104542
|
+
return this.decode(reader, reader.uint32());
|
|
104543
|
+
};
|
|
104544
|
+
|
|
104545
|
+
/**
|
|
104546
|
+
* Verifies a WorkoutPlaylistCreatedV2 message.
|
|
104547
|
+
* @function verify
|
|
104548
|
+
* @memberof WorkoutPlaylistCreatedV2
|
|
104549
|
+
* @static
|
|
104550
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
104551
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
104552
|
+
*/
|
|
104553
|
+
WorkoutPlaylistCreatedV2.verify = function verify(message) {
|
|
104554
|
+
if (typeof message !== "object" || message === null)
|
|
104555
|
+
return "object expected";
|
|
104556
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
104557
|
+
if (!$util.isString(message.slug))
|
|
104558
|
+
return "slug: string expected";
|
|
104559
|
+
if (message.entityId != null && message.hasOwnProperty("entityId"))
|
|
104560
|
+
if (!$util.isInteger(message.entityId))
|
|
104561
|
+
return "entityId: integer expected";
|
|
104562
|
+
if (message.entityType != null && message.hasOwnProperty("entityType"))
|
|
104563
|
+
if (!$util.isString(message.entityType))
|
|
104564
|
+
return "entityType: string expected";
|
|
104565
|
+
if (message.accessGroups != null && message.hasOwnProperty("accessGroups")) {
|
|
104566
|
+
if (!Array.isArray(message.accessGroups))
|
|
104567
|
+
return "accessGroups: array expected";
|
|
104568
|
+
for (var i = 0; i < message.accessGroups.length; ++i) {
|
|
104569
|
+
var error = $root.contentful.SlugReference.verify(message.accessGroups[i]);
|
|
104570
|
+
if (error)
|
|
104571
|
+
return "accessGroups." + error;
|
|
104572
|
+
}
|
|
104573
|
+
}
|
|
104574
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
104575
|
+
if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
|
|
104576
|
+
return "createdAt: integer|Long expected";
|
|
104577
|
+
if (message.tileMedia != null && message.hasOwnProperty("tileMedia")) {
|
|
104578
|
+
if (!$util.isObject(message.tileMedia))
|
|
104579
|
+
return "tileMedia: object expected";
|
|
104580
|
+
var key = Object.keys(message.tileMedia);
|
|
104581
|
+
for (var i = 0; i < key.length; ++i) {
|
|
104582
|
+
var error = $root.contentful.IdReference.verify(message.tileMedia[key[i]]);
|
|
104583
|
+
if (error)
|
|
104584
|
+
return "tileMedia." + error;
|
|
104585
|
+
}
|
|
104586
|
+
}
|
|
104587
|
+
if (message.headerImageMedia != null && message.hasOwnProperty("headerImageMedia")) {
|
|
104588
|
+
if (!$util.isObject(message.headerImageMedia))
|
|
104589
|
+
return "headerImageMedia: object expected";
|
|
104590
|
+
var key = Object.keys(message.headerImageMedia);
|
|
104591
|
+
for (var i = 0; i < key.length; ++i) {
|
|
104592
|
+
var error = $root.contentful.IdReference.verify(message.headerImageMedia[key[i]]);
|
|
104593
|
+
if (error)
|
|
104594
|
+
return "headerImageMedia." + error;
|
|
104595
|
+
}
|
|
104596
|
+
}
|
|
104597
|
+
if (message.tags != null && message.hasOwnProperty("tags")) {
|
|
104598
|
+
if (!$util.isObject(message.tags))
|
|
104599
|
+
return "tags: object expected";
|
|
104600
|
+
var key = Object.keys(message.tags);
|
|
104601
|
+
for (var i = 0; i < key.length; ++i) {
|
|
104602
|
+
var error = $root.contentful.Tags.verify(message.tags[key[i]]);
|
|
104603
|
+
if (error)
|
|
104604
|
+
return "tags." + error;
|
|
104605
|
+
}
|
|
104606
|
+
}
|
|
104607
|
+
if (message.contentType != null && message.hasOwnProperty("contentType"))
|
|
104608
|
+
if (!$util.isString(message.contentType))
|
|
104609
|
+
return "contentType: string expected";
|
|
104610
|
+
if (message.contentTypeDisplayValue != null && message.hasOwnProperty("contentTypeDisplayValue"))
|
|
104611
|
+
if (!$util.isString(message.contentTypeDisplayValue))
|
|
104612
|
+
return "contentTypeDisplayValue: string expected";
|
|
104613
|
+
return null;
|
|
104614
|
+
};
|
|
104615
|
+
|
|
104616
|
+
/**
|
|
104617
|
+
* Creates a WorkoutPlaylistCreatedV2 message from a plain object. Also converts values to their respective internal types.
|
|
104618
|
+
* @function fromObject
|
|
104619
|
+
* @memberof WorkoutPlaylistCreatedV2
|
|
104620
|
+
* @static
|
|
104621
|
+
* @param {Object.<string,*>} object Plain object
|
|
104622
|
+
* @returns {WorkoutPlaylistCreatedV2} WorkoutPlaylistCreatedV2
|
|
104623
|
+
*/
|
|
104624
|
+
WorkoutPlaylistCreatedV2.fromObject = function fromObject(object) {
|
|
104625
|
+
if (object instanceof $root.WorkoutPlaylistCreatedV2)
|
|
104626
|
+
return object;
|
|
104627
|
+
var message = new $root.WorkoutPlaylistCreatedV2();
|
|
104628
|
+
if (object.slug != null)
|
|
104629
|
+
message.slug = String(object.slug);
|
|
104630
|
+
if (object.entityId != null)
|
|
104631
|
+
message.entityId = object.entityId >>> 0;
|
|
104632
|
+
if (object.entityType != null)
|
|
104633
|
+
message.entityType = String(object.entityType);
|
|
104634
|
+
if (object.accessGroups) {
|
|
104635
|
+
if (!Array.isArray(object.accessGroups))
|
|
104636
|
+
throw TypeError(".WorkoutPlaylistCreatedV2.accessGroups: array expected");
|
|
104637
|
+
message.accessGroups = [];
|
|
104638
|
+
for (var i = 0; i < object.accessGroups.length; ++i) {
|
|
104639
|
+
if (typeof object.accessGroups[i] !== "object")
|
|
104640
|
+
throw TypeError(".WorkoutPlaylistCreatedV2.accessGroups: object expected");
|
|
104641
|
+
message.accessGroups[i] = $root.contentful.SlugReference.fromObject(object.accessGroups[i]);
|
|
104642
|
+
}
|
|
104643
|
+
}
|
|
104644
|
+
if (object.createdAt != null)
|
|
104645
|
+
if ($util.Long)
|
|
104646
|
+
(message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
|
|
104647
|
+
else if (typeof object.createdAt === "string")
|
|
104648
|
+
message.createdAt = parseInt(object.createdAt, 10);
|
|
104649
|
+
else if (typeof object.createdAt === "number")
|
|
104650
|
+
message.createdAt = object.createdAt;
|
|
104651
|
+
else if (typeof object.createdAt === "object")
|
|
104652
|
+
message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
|
|
104653
|
+
if (object.tileMedia) {
|
|
104654
|
+
if (typeof object.tileMedia !== "object")
|
|
104655
|
+
throw TypeError(".WorkoutPlaylistCreatedV2.tileMedia: object expected");
|
|
104656
|
+
message.tileMedia = {};
|
|
104657
|
+
for (var keys = Object.keys(object.tileMedia), i = 0; i < keys.length; ++i) {
|
|
104658
|
+
if (typeof object.tileMedia[keys[i]] !== "object")
|
|
104659
|
+
throw TypeError(".WorkoutPlaylistCreatedV2.tileMedia: object expected");
|
|
104660
|
+
message.tileMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.tileMedia[keys[i]]);
|
|
104661
|
+
}
|
|
104662
|
+
}
|
|
104663
|
+
if (object.headerImageMedia) {
|
|
104664
|
+
if (typeof object.headerImageMedia !== "object")
|
|
104665
|
+
throw TypeError(".WorkoutPlaylistCreatedV2.headerImageMedia: object expected");
|
|
104666
|
+
message.headerImageMedia = {};
|
|
104667
|
+
for (var keys = Object.keys(object.headerImageMedia), i = 0; i < keys.length; ++i) {
|
|
104668
|
+
if (typeof object.headerImageMedia[keys[i]] !== "object")
|
|
104669
|
+
throw TypeError(".WorkoutPlaylistCreatedV2.headerImageMedia: object expected");
|
|
104670
|
+
message.headerImageMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.headerImageMedia[keys[i]]);
|
|
104671
|
+
}
|
|
104672
|
+
}
|
|
104673
|
+
if (object.tags) {
|
|
104674
|
+
if (typeof object.tags !== "object")
|
|
104675
|
+
throw TypeError(".WorkoutPlaylistCreatedV2.tags: object expected");
|
|
104676
|
+
message.tags = {};
|
|
104677
|
+
for (var keys = Object.keys(object.tags), i = 0; i < keys.length; ++i) {
|
|
104678
|
+
if (typeof object.tags[keys[i]] !== "object")
|
|
104679
|
+
throw TypeError(".WorkoutPlaylistCreatedV2.tags: object expected");
|
|
104680
|
+
message.tags[keys[i]] = $root.contentful.Tags.fromObject(object.tags[keys[i]]);
|
|
104681
|
+
}
|
|
104682
|
+
}
|
|
104683
|
+
if (object.contentType != null)
|
|
104684
|
+
message.contentType = String(object.contentType);
|
|
104685
|
+
if (object.contentTypeDisplayValue != null)
|
|
104686
|
+
message.contentTypeDisplayValue = String(object.contentTypeDisplayValue);
|
|
104687
|
+
return message;
|
|
104688
|
+
};
|
|
104689
|
+
|
|
104690
|
+
/**
|
|
104691
|
+
* Creates a plain object from a WorkoutPlaylistCreatedV2 message. Also converts values to other types if specified.
|
|
104692
|
+
* @function toObject
|
|
104693
|
+
* @memberof WorkoutPlaylistCreatedV2
|
|
104694
|
+
* @static
|
|
104695
|
+
* @param {WorkoutPlaylistCreatedV2} message WorkoutPlaylistCreatedV2
|
|
104696
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
104697
|
+
* @returns {Object.<string,*>} Plain object
|
|
104698
|
+
*/
|
|
104699
|
+
WorkoutPlaylistCreatedV2.toObject = function toObject(message, options) {
|
|
104700
|
+
if (!options)
|
|
104701
|
+
options = {};
|
|
104702
|
+
var object = {};
|
|
104703
|
+
if (options.arrays || options.defaults)
|
|
104704
|
+
object.accessGroups = [];
|
|
104705
|
+
if (options.objects || options.defaults) {
|
|
104706
|
+
object.tileMedia = {};
|
|
104707
|
+
object.headerImageMedia = {};
|
|
104708
|
+
object.tags = {};
|
|
104709
|
+
}
|
|
104710
|
+
if (options.defaults) {
|
|
104711
|
+
object.slug = "";
|
|
104712
|
+
object.entityId = 0;
|
|
104713
|
+
object.entityType = "";
|
|
104714
|
+
if ($util.Long) {
|
|
104715
|
+
var long = new $util.Long(0, 0, true);
|
|
104716
|
+
object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
104717
|
+
} else
|
|
104718
|
+
object.createdAt = options.longs === String ? "0" : 0;
|
|
104719
|
+
object.contentType = "";
|
|
104720
|
+
object.contentTypeDisplayValue = "";
|
|
104721
|
+
}
|
|
104722
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
104723
|
+
object.slug = message.slug;
|
|
104724
|
+
if (message.entityId != null && message.hasOwnProperty("entityId"))
|
|
104725
|
+
object.entityId = message.entityId;
|
|
104726
|
+
if (message.entityType != null && message.hasOwnProperty("entityType"))
|
|
104727
|
+
object.entityType = message.entityType;
|
|
104728
|
+
if (message.accessGroups && message.accessGroups.length) {
|
|
104729
|
+
object.accessGroups = [];
|
|
104730
|
+
for (var j = 0; j < message.accessGroups.length; ++j)
|
|
104731
|
+
object.accessGroups[j] = $root.contentful.SlugReference.toObject(message.accessGroups[j], options);
|
|
104732
|
+
}
|
|
104733
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
104734
|
+
if (typeof message.createdAt === "number")
|
|
104735
|
+
object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
|
|
104736
|
+
else
|
|
104737
|
+
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;
|
|
104738
|
+
var keys2;
|
|
104739
|
+
if (message.tileMedia && (keys2 = Object.keys(message.tileMedia)).length) {
|
|
104740
|
+
object.tileMedia = {};
|
|
104741
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
104742
|
+
object.tileMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.tileMedia[keys2[j]], options);
|
|
104743
|
+
}
|
|
104744
|
+
if (message.headerImageMedia && (keys2 = Object.keys(message.headerImageMedia)).length) {
|
|
104745
|
+
object.headerImageMedia = {};
|
|
104746
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
104747
|
+
object.headerImageMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.headerImageMedia[keys2[j]], options);
|
|
104748
|
+
}
|
|
104749
|
+
if (message.tags && (keys2 = Object.keys(message.tags)).length) {
|
|
104750
|
+
object.tags = {};
|
|
104751
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
104752
|
+
object.tags[keys2[j]] = $root.contentful.Tags.toObject(message.tags[keys2[j]], options);
|
|
104753
|
+
}
|
|
104754
|
+
if (message.contentType != null && message.hasOwnProperty("contentType"))
|
|
104755
|
+
object.contentType = message.contentType;
|
|
104756
|
+
if (message.contentTypeDisplayValue != null && message.hasOwnProperty("contentTypeDisplayValue"))
|
|
104757
|
+
object.contentTypeDisplayValue = message.contentTypeDisplayValue;
|
|
104758
|
+
return object;
|
|
104759
|
+
};
|
|
104760
|
+
|
|
104761
|
+
/**
|
|
104762
|
+
* Converts this WorkoutPlaylistCreatedV2 to JSON.
|
|
104763
|
+
* @function toJSON
|
|
104764
|
+
* @memberof WorkoutPlaylistCreatedV2
|
|
104765
|
+
* @instance
|
|
104766
|
+
* @returns {Object.<string,*>} JSON object
|
|
104767
|
+
*/
|
|
104768
|
+
WorkoutPlaylistCreatedV2.prototype.toJSON = function toJSON() {
|
|
104769
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
104770
|
+
};
|
|
104771
|
+
|
|
104772
|
+
return WorkoutPlaylistCreatedV2;
|
|
104773
|
+
})();
|
|
104774
|
+
|
|
104269
104775
|
$root.WorkoutPlaylistUpdated = (function() {
|
|
104270
104776
|
|
|
104271
104777
|
/**
|
|
104272
|
-
* Properties of a WorkoutPlaylistUpdated.
|
|
104273
|
-
* @exports IWorkoutPlaylistUpdated
|
|
104274
|
-
* @interface IWorkoutPlaylistUpdated
|
|
104275
|
-
* @property {string|null} [slug] WorkoutPlaylistUpdated slug
|
|
104276
|
-
* @property {number|null} [entityId] WorkoutPlaylistUpdated entityId
|
|
104277
|
-
* @property {string|null} [entityType] WorkoutPlaylistUpdated entityType
|
|
104278
|
-
* @property {Array.<contentful.ISlugReference>|null} [accessGroups] WorkoutPlaylistUpdated accessGroups
|
|
104279
|
-
* @property {number|Long|null} [updatedAt] WorkoutPlaylistUpdated updatedAt
|
|
104280
|
-
* @property {Object.<string,contentful.IIdReference>|null} [tileMedia] WorkoutPlaylistUpdated tileMedia
|
|
104281
|
-
* @property {Object.<string,contentful.IIdReference>|null} [headerImageMedia] WorkoutPlaylistUpdated headerImageMedia
|
|
104282
|
-
* @property {Object.<string,contentful.ITags>|null} [tags] WorkoutPlaylistUpdated tags
|
|
104778
|
+
* Properties of a WorkoutPlaylistUpdated.
|
|
104779
|
+
* @exports IWorkoutPlaylistUpdated
|
|
104780
|
+
* @interface IWorkoutPlaylistUpdated
|
|
104781
|
+
* @property {string|null} [slug] WorkoutPlaylistUpdated slug
|
|
104782
|
+
* @property {number|null} [entityId] WorkoutPlaylistUpdated entityId
|
|
104783
|
+
* @property {string|null} [entityType] WorkoutPlaylistUpdated entityType
|
|
104784
|
+
* @property {Array.<contentful.ISlugReference>|null} [accessGroups] WorkoutPlaylistUpdated accessGroups
|
|
104785
|
+
* @property {number|Long|null} [updatedAt] WorkoutPlaylistUpdated updatedAt
|
|
104786
|
+
* @property {Object.<string,contentful.IIdReference>|null} [tileMedia] WorkoutPlaylistUpdated tileMedia
|
|
104787
|
+
* @property {Object.<string,contentful.IIdReference>|null} [headerImageMedia] WorkoutPlaylistUpdated headerImageMedia
|
|
104788
|
+
* @property {Object.<string,contentful.ITags>|null} [tags] WorkoutPlaylistUpdated tags
|
|
104789
|
+
*/
|
|
104790
|
+
|
|
104791
|
+
/**
|
|
104792
|
+
* Constructs a new WorkoutPlaylistUpdated.
|
|
104793
|
+
* @exports WorkoutPlaylistUpdated
|
|
104794
|
+
* @classdesc Represents a WorkoutPlaylistUpdated.
|
|
104795
|
+
* @implements IWorkoutPlaylistUpdated
|
|
104796
|
+
* @constructor
|
|
104797
|
+
* @param {IWorkoutPlaylistUpdated=} [properties] Properties to set
|
|
104798
|
+
*/
|
|
104799
|
+
function WorkoutPlaylistUpdated(properties) {
|
|
104800
|
+
this.accessGroups = [];
|
|
104801
|
+
this.tileMedia = {};
|
|
104802
|
+
this.headerImageMedia = {};
|
|
104803
|
+
this.tags = {};
|
|
104804
|
+
if (properties)
|
|
104805
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
104806
|
+
if (properties[keys[i]] != null)
|
|
104807
|
+
this[keys[i]] = properties[keys[i]];
|
|
104808
|
+
}
|
|
104809
|
+
|
|
104810
|
+
/**
|
|
104811
|
+
* WorkoutPlaylistUpdated slug.
|
|
104812
|
+
* @member {string} slug
|
|
104813
|
+
* @memberof WorkoutPlaylistUpdated
|
|
104814
|
+
* @instance
|
|
104815
|
+
*/
|
|
104816
|
+
WorkoutPlaylistUpdated.prototype.slug = "";
|
|
104817
|
+
|
|
104818
|
+
/**
|
|
104819
|
+
* WorkoutPlaylistUpdated entityId.
|
|
104820
|
+
* @member {number} entityId
|
|
104821
|
+
* @memberof WorkoutPlaylistUpdated
|
|
104822
|
+
* @instance
|
|
104823
|
+
*/
|
|
104824
|
+
WorkoutPlaylistUpdated.prototype.entityId = 0;
|
|
104825
|
+
|
|
104826
|
+
/**
|
|
104827
|
+
* WorkoutPlaylistUpdated entityType.
|
|
104828
|
+
* @member {string} entityType
|
|
104829
|
+
* @memberof WorkoutPlaylistUpdated
|
|
104830
|
+
* @instance
|
|
104831
|
+
*/
|
|
104832
|
+
WorkoutPlaylistUpdated.prototype.entityType = "";
|
|
104833
|
+
|
|
104834
|
+
/**
|
|
104835
|
+
* WorkoutPlaylistUpdated accessGroups.
|
|
104836
|
+
* @member {Array.<contentful.ISlugReference>} accessGroups
|
|
104837
|
+
* @memberof WorkoutPlaylistUpdated
|
|
104838
|
+
* @instance
|
|
104839
|
+
*/
|
|
104840
|
+
WorkoutPlaylistUpdated.prototype.accessGroups = $util.emptyArray;
|
|
104841
|
+
|
|
104842
|
+
/**
|
|
104843
|
+
* WorkoutPlaylistUpdated updatedAt.
|
|
104844
|
+
* @member {number|Long} updatedAt
|
|
104845
|
+
* @memberof WorkoutPlaylistUpdated
|
|
104846
|
+
* @instance
|
|
104847
|
+
*/
|
|
104848
|
+
WorkoutPlaylistUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
104849
|
+
|
|
104850
|
+
/**
|
|
104851
|
+
* WorkoutPlaylistUpdated tileMedia.
|
|
104852
|
+
* @member {Object.<string,contentful.IIdReference>} tileMedia
|
|
104853
|
+
* @memberof WorkoutPlaylistUpdated
|
|
104854
|
+
* @instance
|
|
104855
|
+
*/
|
|
104856
|
+
WorkoutPlaylistUpdated.prototype.tileMedia = $util.emptyObject;
|
|
104857
|
+
|
|
104858
|
+
/**
|
|
104859
|
+
* WorkoutPlaylistUpdated headerImageMedia.
|
|
104860
|
+
* @member {Object.<string,contentful.IIdReference>} headerImageMedia
|
|
104861
|
+
* @memberof WorkoutPlaylistUpdated
|
|
104862
|
+
* @instance
|
|
104863
|
+
*/
|
|
104864
|
+
WorkoutPlaylistUpdated.prototype.headerImageMedia = $util.emptyObject;
|
|
104865
|
+
|
|
104866
|
+
/**
|
|
104867
|
+
* WorkoutPlaylistUpdated tags.
|
|
104868
|
+
* @member {Object.<string,contentful.ITags>} tags
|
|
104869
|
+
* @memberof WorkoutPlaylistUpdated
|
|
104870
|
+
* @instance
|
|
104871
|
+
*/
|
|
104872
|
+
WorkoutPlaylistUpdated.prototype.tags = $util.emptyObject;
|
|
104873
|
+
|
|
104874
|
+
/**
|
|
104875
|
+
* Creates a new WorkoutPlaylistUpdated instance using the specified properties.
|
|
104876
|
+
* @function create
|
|
104877
|
+
* @memberof WorkoutPlaylistUpdated
|
|
104878
|
+
* @static
|
|
104879
|
+
* @param {IWorkoutPlaylistUpdated=} [properties] Properties to set
|
|
104880
|
+
* @returns {WorkoutPlaylistUpdated} WorkoutPlaylistUpdated instance
|
|
104881
|
+
*/
|
|
104882
|
+
WorkoutPlaylistUpdated.create = function create(properties) {
|
|
104883
|
+
return new WorkoutPlaylistUpdated(properties);
|
|
104884
|
+
};
|
|
104885
|
+
|
|
104886
|
+
/**
|
|
104887
|
+
* Encodes the specified WorkoutPlaylistUpdated message. Does not implicitly {@link WorkoutPlaylistUpdated.verify|verify} messages.
|
|
104888
|
+
* @function encode
|
|
104889
|
+
* @memberof WorkoutPlaylistUpdated
|
|
104890
|
+
* @static
|
|
104891
|
+
* @param {IWorkoutPlaylistUpdated} message WorkoutPlaylistUpdated message or plain object to encode
|
|
104892
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
104893
|
+
* @returns {$protobuf.Writer} Writer
|
|
104894
|
+
*/
|
|
104895
|
+
WorkoutPlaylistUpdated.encode = function encode(message, writer) {
|
|
104896
|
+
if (!writer)
|
|
104897
|
+
writer = $Writer.create();
|
|
104898
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
104899
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
104900
|
+
if (message.entityId != null && message.hasOwnProperty("entityId"))
|
|
104901
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.entityId);
|
|
104902
|
+
if (message.entityType != null && message.hasOwnProperty("entityType"))
|
|
104903
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.entityType);
|
|
104904
|
+
if (message.accessGroups != null && message.accessGroups.length)
|
|
104905
|
+
for (var i = 0; i < message.accessGroups.length; ++i)
|
|
104906
|
+
$root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim();
|
|
104907
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
104908
|
+
writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.updatedAt);
|
|
104909
|
+
if (message.tileMedia != null && message.hasOwnProperty("tileMedia"))
|
|
104910
|
+
for (var keys = Object.keys(message.tileMedia), i = 0; i < keys.length; ++i) {
|
|
104911
|
+
writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
104912
|
+
$root.contentful.IdReference.encode(message.tileMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
104913
|
+
}
|
|
104914
|
+
if (message.headerImageMedia != null && message.hasOwnProperty("headerImageMedia"))
|
|
104915
|
+
for (var keys = Object.keys(message.headerImageMedia), i = 0; i < keys.length; ++i) {
|
|
104916
|
+
writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
104917
|
+
$root.contentful.IdReference.encode(message.headerImageMedia[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
104918
|
+
}
|
|
104919
|
+
if (message.tags != null && message.hasOwnProperty("tags"))
|
|
104920
|
+
for (var keys = Object.keys(message.tags), i = 0; i < keys.length; ++i) {
|
|
104921
|
+
writer.uint32(/* id 8, wireType 2 =*/66).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
104922
|
+
$root.contentful.Tags.encode(message.tags[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
104923
|
+
}
|
|
104924
|
+
return writer;
|
|
104925
|
+
};
|
|
104926
|
+
|
|
104927
|
+
/**
|
|
104928
|
+
* Encodes the specified WorkoutPlaylistUpdated message, length delimited. Does not implicitly {@link WorkoutPlaylistUpdated.verify|verify} messages.
|
|
104929
|
+
* @function encodeDelimited
|
|
104930
|
+
* @memberof WorkoutPlaylistUpdated
|
|
104931
|
+
* @static
|
|
104932
|
+
* @param {IWorkoutPlaylistUpdated} message WorkoutPlaylistUpdated message or plain object to encode
|
|
104933
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
104934
|
+
* @returns {$protobuf.Writer} Writer
|
|
104935
|
+
*/
|
|
104936
|
+
WorkoutPlaylistUpdated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
104937
|
+
return this.encode(message, writer).ldelim();
|
|
104938
|
+
};
|
|
104939
|
+
|
|
104940
|
+
/**
|
|
104941
|
+
* Decodes a WorkoutPlaylistUpdated message from the specified reader or buffer.
|
|
104942
|
+
* @function decode
|
|
104943
|
+
* @memberof WorkoutPlaylistUpdated
|
|
104944
|
+
* @static
|
|
104945
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
104946
|
+
* @param {number} [length] Message length if known beforehand
|
|
104947
|
+
* @returns {WorkoutPlaylistUpdated} WorkoutPlaylistUpdated
|
|
104948
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
104949
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
104950
|
+
*/
|
|
104951
|
+
WorkoutPlaylistUpdated.decode = function decode(reader, length) {
|
|
104952
|
+
if (!(reader instanceof $Reader))
|
|
104953
|
+
reader = $Reader.create(reader);
|
|
104954
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.WorkoutPlaylistUpdated(), key;
|
|
104955
|
+
while (reader.pos < end) {
|
|
104956
|
+
var tag = reader.uint32();
|
|
104957
|
+
switch (tag >>> 3) {
|
|
104958
|
+
case 1:
|
|
104959
|
+
message.slug = reader.string();
|
|
104960
|
+
break;
|
|
104961
|
+
case 2:
|
|
104962
|
+
message.entityId = reader.uint32();
|
|
104963
|
+
break;
|
|
104964
|
+
case 3:
|
|
104965
|
+
message.entityType = reader.string();
|
|
104966
|
+
break;
|
|
104967
|
+
case 4:
|
|
104968
|
+
if (!(message.accessGroups && message.accessGroups.length))
|
|
104969
|
+
message.accessGroups = [];
|
|
104970
|
+
message.accessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
104971
|
+
break;
|
|
104972
|
+
case 5:
|
|
104973
|
+
message.updatedAt = reader.uint64();
|
|
104974
|
+
break;
|
|
104975
|
+
case 6:
|
|
104976
|
+
reader.skip().pos++;
|
|
104977
|
+
if (message.tileMedia === $util.emptyObject)
|
|
104978
|
+
message.tileMedia = {};
|
|
104979
|
+
key = reader.string();
|
|
104980
|
+
reader.pos++;
|
|
104981
|
+
message.tileMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
|
|
104982
|
+
break;
|
|
104983
|
+
case 7:
|
|
104984
|
+
reader.skip().pos++;
|
|
104985
|
+
if (message.headerImageMedia === $util.emptyObject)
|
|
104986
|
+
message.headerImageMedia = {};
|
|
104987
|
+
key = reader.string();
|
|
104988
|
+
reader.pos++;
|
|
104989
|
+
message.headerImageMedia[key] = $root.contentful.IdReference.decode(reader, reader.uint32());
|
|
104990
|
+
break;
|
|
104991
|
+
case 8:
|
|
104992
|
+
reader.skip().pos++;
|
|
104993
|
+
if (message.tags === $util.emptyObject)
|
|
104994
|
+
message.tags = {};
|
|
104995
|
+
key = reader.string();
|
|
104996
|
+
reader.pos++;
|
|
104997
|
+
message.tags[key] = $root.contentful.Tags.decode(reader, reader.uint32());
|
|
104998
|
+
break;
|
|
104999
|
+
default:
|
|
105000
|
+
reader.skipType(tag & 7);
|
|
105001
|
+
break;
|
|
105002
|
+
}
|
|
105003
|
+
}
|
|
105004
|
+
return message;
|
|
105005
|
+
};
|
|
105006
|
+
|
|
105007
|
+
/**
|
|
105008
|
+
* Decodes a WorkoutPlaylistUpdated message from the specified reader or buffer, length delimited.
|
|
105009
|
+
* @function decodeDelimited
|
|
105010
|
+
* @memberof WorkoutPlaylistUpdated
|
|
105011
|
+
* @static
|
|
105012
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
105013
|
+
* @returns {WorkoutPlaylistUpdated} WorkoutPlaylistUpdated
|
|
105014
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
105015
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
105016
|
+
*/
|
|
105017
|
+
WorkoutPlaylistUpdated.decodeDelimited = function decodeDelimited(reader) {
|
|
105018
|
+
if (!(reader instanceof $Reader))
|
|
105019
|
+
reader = new $Reader(reader);
|
|
105020
|
+
return this.decode(reader, reader.uint32());
|
|
105021
|
+
};
|
|
105022
|
+
|
|
105023
|
+
/**
|
|
105024
|
+
* Verifies a WorkoutPlaylistUpdated message.
|
|
105025
|
+
* @function verify
|
|
105026
|
+
* @memberof WorkoutPlaylistUpdated
|
|
105027
|
+
* @static
|
|
105028
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
105029
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
105030
|
+
*/
|
|
105031
|
+
WorkoutPlaylistUpdated.verify = function verify(message) {
|
|
105032
|
+
if (typeof message !== "object" || message === null)
|
|
105033
|
+
return "object expected";
|
|
105034
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
105035
|
+
if (!$util.isString(message.slug))
|
|
105036
|
+
return "slug: string expected";
|
|
105037
|
+
if (message.entityId != null && message.hasOwnProperty("entityId"))
|
|
105038
|
+
if (!$util.isInteger(message.entityId))
|
|
105039
|
+
return "entityId: integer expected";
|
|
105040
|
+
if (message.entityType != null && message.hasOwnProperty("entityType"))
|
|
105041
|
+
if (!$util.isString(message.entityType))
|
|
105042
|
+
return "entityType: string expected";
|
|
105043
|
+
if (message.accessGroups != null && message.hasOwnProperty("accessGroups")) {
|
|
105044
|
+
if (!Array.isArray(message.accessGroups))
|
|
105045
|
+
return "accessGroups: array expected";
|
|
105046
|
+
for (var i = 0; i < message.accessGroups.length; ++i) {
|
|
105047
|
+
var error = $root.contentful.SlugReference.verify(message.accessGroups[i]);
|
|
105048
|
+
if (error)
|
|
105049
|
+
return "accessGroups." + error;
|
|
105050
|
+
}
|
|
105051
|
+
}
|
|
105052
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
105053
|
+
if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
|
|
105054
|
+
return "updatedAt: integer|Long expected";
|
|
105055
|
+
if (message.tileMedia != null && message.hasOwnProperty("tileMedia")) {
|
|
105056
|
+
if (!$util.isObject(message.tileMedia))
|
|
105057
|
+
return "tileMedia: object expected";
|
|
105058
|
+
var key = Object.keys(message.tileMedia);
|
|
105059
|
+
for (var i = 0; i < key.length; ++i) {
|
|
105060
|
+
var error = $root.contentful.IdReference.verify(message.tileMedia[key[i]]);
|
|
105061
|
+
if (error)
|
|
105062
|
+
return "tileMedia." + error;
|
|
105063
|
+
}
|
|
105064
|
+
}
|
|
105065
|
+
if (message.headerImageMedia != null && message.hasOwnProperty("headerImageMedia")) {
|
|
105066
|
+
if (!$util.isObject(message.headerImageMedia))
|
|
105067
|
+
return "headerImageMedia: object expected";
|
|
105068
|
+
var key = Object.keys(message.headerImageMedia);
|
|
105069
|
+
for (var i = 0; i < key.length; ++i) {
|
|
105070
|
+
var error = $root.contentful.IdReference.verify(message.headerImageMedia[key[i]]);
|
|
105071
|
+
if (error)
|
|
105072
|
+
return "headerImageMedia." + error;
|
|
105073
|
+
}
|
|
105074
|
+
}
|
|
105075
|
+
if (message.tags != null && message.hasOwnProperty("tags")) {
|
|
105076
|
+
if (!$util.isObject(message.tags))
|
|
105077
|
+
return "tags: object expected";
|
|
105078
|
+
var key = Object.keys(message.tags);
|
|
105079
|
+
for (var i = 0; i < key.length; ++i) {
|
|
105080
|
+
var error = $root.contentful.Tags.verify(message.tags[key[i]]);
|
|
105081
|
+
if (error)
|
|
105082
|
+
return "tags." + error;
|
|
105083
|
+
}
|
|
105084
|
+
}
|
|
105085
|
+
return null;
|
|
105086
|
+
};
|
|
105087
|
+
|
|
105088
|
+
/**
|
|
105089
|
+
* Creates a WorkoutPlaylistUpdated message from a plain object. Also converts values to their respective internal types.
|
|
105090
|
+
* @function fromObject
|
|
105091
|
+
* @memberof WorkoutPlaylistUpdated
|
|
105092
|
+
* @static
|
|
105093
|
+
* @param {Object.<string,*>} object Plain object
|
|
105094
|
+
* @returns {WorkoutPlaylistUpdated} WorkoutPlaylistUpdated
|
|
105095
|
+
*/
|
|
105096
|
+
WorkoutPlaylistUpdated.fromObject = function fromObject(object) {
|
|
105097
|
+
if (object instanceof $root.WorkoutPlaylistUpdated)
|
|
105098
|
+
return object;
|
|
105099
|
+
var message = new $root.WorkoutPlaylistUpdated();
|
|
105100
|
+
if (object.slug != null)
|
|
105101
|
+
message.slug = String(object.slug);
|
|
105102
|
+
if (object.entityId != null)
|
|
105103
|
+
message.entityId = object.entityId >>> 0;
|
|
105104
|
+
if (object.entityType != null)
|
|
105105
|
+
message.entityType = String(object.entityType);
|
|
105106
|
+
if (object.accessGroups) {
|
|
105107
|
+
if (!Array.isArray(object.accessGroups))
|
|
105108
|
+
throw TypeError(".WorkoutPlaylistUpdated.accessGroups: array expected");
|
|
105109
|
+
message.accessGroups = [];
|
|
105110
|
+
for (var i = 0; i < object.accessGroups.length; ++i) {
|
|
105111
|
+
if (typeof object.accessGroups[i] !== "object")
|
|
105112
|
+
throw TypeError(".WorkoutPlaylistUpdated.accessGroups: object expected");
|
|
105113
|
+
message.accessGroups[i] = $root.contentful.SlugReference.fromObject(object.accessGroups[i]);
|
|
105114
|
+
}
|
|
105115
|
+
}
|
|
105116
|
+
if (object.updatedAt != null)
|
|
105117
|
+
if ($util.Long)
|
|
105118
|
+
(message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
|
|
105119
|
+
else if (typeof object.updatedAt === "string")
|
|
105120
|
+
message.updatedAt = parseInt(object.updatedAt, 10);
|
|
105121
|
+
else if (typeof object.updatedAt === "number")
|
|
105122
|
+
message.updatedAt = object.updatedAt;
|
|
105123
|
+
else if (typeof object.updatedAt === "object")
|
|
105124
|
+
message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
|
|
105125
|
+
if (object.tileMedia) {
|
|
105126
|
+
if (typeof object.tileMedia !== "object")
|
|
105127
|
+
throw TypeError(".WorkoutPlaylistUpdated.tileMedia: object expected");
|
|
105128
|
+
message.tileMedia = {};
|
|
105129
|
+
for (var keys = Object.keys(object.tileMedia), i = 0; i < keys.length; ++i) {
|
|
105130
|
+
if (typeof object.tileMedia[keys[i]] !== "object")
|
|
105131
|
+
throw TypeError(".WorkoutPlaylistUpdated.tileMedia: object expected");
|
|
105132
|
+
message.tileMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.tileMedia[keys[i]]);
|
|
105133
|
+
}
|
|
105134
|
+
}
|
|
105135
|
+
if (object.headerImageMedia) {
|
|
105136
|
+
if (typeof object.headerImageMedia !== "object")
|
|
105137
|
+
throw TypeError(".WorkoutPlaylistUpdated.headerImageMedia: object expected");
|
|
105138
|
+
message.headerImageMedia = {};
|
|
105139
|
+
for (var keys = Object.keys(object.headerImageMedia), i = 0; i < keys.length; ++i) {
|
|
105140
|
+
if (typeof object.headerImageMedia[keys[i]] !== "object")
|
|
105141
|
+
throw TypeError(".WorkoutPlaylistUpdated.headerImageMedia: object expected");
|
|
105142
|
+
message.headerImageMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.headerImageMedia[keys[i]]);
|
|
105143
|
+
}
|
|
105144
|
+
}
|
|
105145
|
+
if (object.tags) {
|
|
105146
|
+
if (typeof object.tags !== "object")
|
|
105147
|
+
throw TypeError(".WorkoutPlaylistUpdated.tags: object expected");
|
|
105148
|
+
message.tags = {};
|
|
105149
|
+
for (var keys = Object.keys(object.tags), i = 0; i < keys.length; ++i) {
|
|
105150
|
+
if (typeof object.tags[keys[i]] !== "object")
|
|
105151
|
+
throw TypeError(".WorkoutPlaylistUpdated.tags: object expected");
|
|
105152
|
+
message.tags[keys[i]] = $root.contentful.Tags.fromObject(object.tags[keys[i]]);
|
|
105153
|
+
}
|
|
105154
|
+
}
|
|
105155
|
+
return message;
|
|
105156
|
+
};
|
|
105157
|
+
|
|
105158
|
+
/**
|
|
105159
|
+
* Creates a plain object from a WorkoutPlaylistUpdated message. Also converts values to other types if specified.
|
|
105160
|
+
* @function toObject
|
|
105161
|
+
* @memberof WorkoutPlaylistUpdated
|
|
105162
|
+
* @static
|
|
105163
|
+
* @param {WorkoutPlaylistUpdated} message WorkoutPlaylistUpdated
|
|
105164
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
105165
|
+
* @returns {Object.<string,*>} Plain object
|
|
105166
|
+
*/
|
|
105167
|
+
WorkoutPlaylistUpdated.toObject = function toObject(message, options) {
|
|
105168
|
+
if (!options)
|
|
105169
|
+
options = {};
|
|
105170
|
+
var object = {};
|
|
105171
|
+
if (options.arrays || options.defaults)
|
|
105172
|
+
object.accessGroups = [];
|
|
105173
|
+
if (options.objects || options.defaults) {
|
|
105174
|
+
object.tileMedia = {};
|
|
105175
|
+
object.headerImageMedia = {};
|
|
105176
|
+
object.tags = {};
|
|
105177
|
+
}
|
|
105178
|
+
if (options.defaults) {
|
|
105179
|
+
object.slug = "";
|
|
105180
|
+
object.entityId = 0;
|
|
105181
|
+
object.entityType = "";
|
|
105182
|
+
if ($util.Long) {
|
|
105183
|
+
var long = new $util.Long(0, 0, true);
|
|
105184
|
+
object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
105185
|
+
} else
|
|
105186
|
+
object.updatedAt = options.longs === String ? "0" : 0;
|
|
105187
|
+
}
|
|
105188
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
105189
|
+
object.slug = message.slug;
|
|
105190
|
+
if (message.entityId != null && message.hasOwnProperty("entityId"))
|
|
105191
|
+
object.entityId = message.entityId;
|
|
105192
|
+
if (message.entityType != null && message.hasOwnProperty("entityType"))
|
|
105193
|
+
object.entityType = message.entityType;
|
|
105194
|
+
if (message.accessGroups && message.accessGroups.length) {
|
|
105195
|
+
object.accessGroups = [];
|
|
105196
|
+
for (var j = 0; j < message.accessGroups.length; ++j)
|
|
105197
|
+
object.accessGroups[j] = $root.contentful.SlugReference.toObject(message.accessGroups[j], options);
|
|
105198
|
+
}
|
|
105199
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
105200
|
+
if (typeof message.updatedAt === "number")
|
|
105201
|
+
object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
|
|
105202
|
+
else
|
|
105203
|
+
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;
|
|
105204
|
+
var keys2;
|
|
105205
|
+
if (message.tileMedia && (keys2 = Object.keys(message.tileMedia)).length) {
|
|
105206
|
+
object.tileMedia = {};
|
|
105207
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
105208
|
+
object.tileMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.tileMedia[keys2[j]], options);
|
|
105209
|
+
}
|
|
105210
|
+
if (message.headerImageMedia && (keys2 = Object.keys(message.headerImageMedia)).length) {
|
|
105211
|
+
object.headerImageMedia = {};
|
|
105212
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
105213
|
+
object.headerImageMedia[keys2[j]] = $root.contentful.IdReference.toObject(message.headerImageMedia[keys2[j]], options);
|
|
105214
|
+
}
|
|
105215
|
+
if (message.tags && (keys2 = Object.keys(message.tags)).length) {
|
|
105216
|
+
object.tags = {};
|
|
105217
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
105218
|
+
object.tags[keys2[j]] = $root.contentful.Tags.toObject(message.tags[keys2[j]], options);
|
|
105219
|
+
}
|
|
105220
|
+
return object;
|
|
105221
|
+
};
|
|
105222
|
+
|
|
105223
|
+
/**
|
|
105224
|
+
* Converts this WorkoutPlaylistUpdated to JSON.
|
|
105225
|
+
* @function toJSON
|
|
105226
|
+
* @memberof WorkoutPlaylistUpdated
|
|
105227
|
+
* @instance
|
|
105228
|
+
* @returns {Object.<string,*>} JSON object
|
|
105229
|
+
*/
|
|
105230
|
+
WorkoutPlaylistUpdated.prototype.toJSON = function toJSON() {
|
|
105231
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
105232
|
+
};
|
|
105233
|
+
|
|
105234
|
+
return WorkoutPlaylistUpdated;
|
|
105235
|
+
})();
|
|
105236
|
+
|
|
105237
|
+
$root.WorkoutPlaylistUpdatedV2 = (function() {
|
|
105238
|
+
|
|
105239
|
+
/**
|
|
105240
|
+
* Properties of a WorkoutPlaylistUpdatedV2.
|
|
105241
|
+
* @exports IWorkoutPlaylistUpdatedV2
|
|
105242
|
+
* @interface IWorkoutPlaylistUpdatedV2
|
|
105243
|
+
* @property {string|null} [slug] WorkoutPlaylistUpdatedV2 slug
|
|
105244
|
+
* @property {number|null} [entityId] WorkoutPlaylistUpdatedV2 entityId
|
|
105245
|
+
* @property {string|null} [entityType] WorkoutPlaylistUpdatedV2 entityType
|
|
105246
|
+
* @property {Array.<contentful.ISlugReference>|null} [accessGroups] WorkoutPlaylistUpdatedV2 accessGroups
|
|
105247
|
+
* @property {number|Long|null} [updatedAt] WorkoutPlaylistUpdatedV2 updatedAt
|
|
105248
|
+
* @property {Object.<string,contentful.IIdReference>|null} [tileMedia] WorkoutPlaylistUpdatedV2 tileMedia
|
|
105249
|
+
* @property {Object.<string,contentful.IIdReference>|null} [headerImageMedia] WorkoutPlaylistUpdatedV2 headerImageMedia
|
|
105250
|
+
* @property {Object.<string,contentful.ITags>|null} [tags] WorkoutPlaylistUpdatedV2 tags
|
|
105251
|
+
* @property {string|null} [contentType] WorkoutPlaylistUpdatedV2 contentType
|
|
105252
|
+
* @property {string|null} [contentTypeDisplayValue] WorkoutPlaylistUpdatedV2 contentTypeDisplayValue
|
|
104283
105253
|
*/
|
|
104284
105254
|
|
|
104285
105255
|
/**
|
|
104286
|
-
* Constructs a new
|
|
104287
|
-
* @exports
|
|
104288
|
-
* @classdesc Represents a
|
|
104289
|
-
* @implements
|
|
105256
|
+
* Constructs a new WorkoutPlaylistUpdatedV2.
|
|
105257
|
+
* @exports WorkoutPlaylistUpdatedV2
|
|
105258
|
+
* @classdesc Represents a WorkoutPlaylistUpdatedV2.
|
|
105259
|
+
* @implements IWorkoutPlaylistUpdatedV2
|
|
104290
105260
|
* @constructor
|
|
104291
|
-
* @param {
|
|
105261
|
+
* @param {IWorkoutPlaylistUpdatedV2=} [properties] Properties to set
|
|
104292
105262
|
*/
|
|
104293
|
-
function
|
|
105263
|
+
function WorkoutPlaylistUpdatedV2(properties) {
|
|
104294
105264
|
this.accessGroups = [];
|
|
104295
105265
|
this.tileMedia = {};
|
|
104296
105266
|
this.headerImageMedia = {};
|
|
@@ -104302,91 +105272,107 @@ $root.WorkoutPlaylistUpdated = (function() {
|
|
|
104302
105272
|
}
|
|
104303
105273
|
|
|
104304
105274
|
/**
|
|
104305
|
-
*
|
|
105275
|
+
* WorkoutPlaylistUpdatedV2 slug.
|
|
104306
105276
|
* @member {string} slug
|
|
104307
|
-
* @memberof
|
|
105277
|
+
* @memberof WorkoutPlaylistUpdatedV2
|
|
104308
105278
|
* @instance
|
|
104309
105279
|
*/
|
|
104310
|
-
|
|
105280
|
+
WorkoutPlaylistUpdatedV2.prototype.slug = "";
|
|
104311
105281
|
|
|
104312
105282
|
/**
|
|
104313
|
-
*
|
|
105283
|
+
* WorkoutPlaylistUpdatedV2 entityId.
|
|
104314
105284
|
* @member {number} entityId
|
|
104315
|
-
* @memberof
|
|
105285
|
+
* @memberof WorkoutPlaylistUpdatedV2
|
|
104316
105286
|
* @instance
|
|
104317
105287
|
*/
|
|
104318
|
-
|
|
105288
|
+
WorkoutPlaylistUpdatedV2.prototype.entityId = 0;
|
|
104319
105289
|
|
|
104320
105290
|
/**
|
|
104321
|
-
*
|
|
105291
|
+
* WorkoutPlaylistUpdatedV2 entityType.
|
|
104322
105292
|
* @member {string} entityType
|
|
104323
|
-
* @memberof
|
|
105293
|
+
* @memberof WorkoutPlaylistUpdatedV2
|
|
104324
105294
|
* @instance
|
|
104325
105295
|
*/
|
|
104326
|
-
|
|
105296
|
+
WorkoutPlaylistUpdatedV2.prototype.entityType = "";
|
|
104327
105297
|
|
|
104328
105298
|
/**
|
|
104329
|
-
*
|
|
105299
|
+
* WorkoutPlaylistUpdatedV2 accessGroups.
|
|
104330
105300
|
* @member {Array.<contentful.ISlugReference>} accessGroups
|
|
104331
|
-
* @memberof
|
|
105301
|
+
* @memberof WorkoutPlaylistUpdatedV2
|
|
104332
105302
|
* @instance
|
|
104333
105303
|
*/
|
|
104334
|
-
|
|
105304
|
+
WorkoutPlaylistUpdatedV2.prototype.accessGroups = $util.emptyArray;
|
|
104335
105305
|
|
|
104336
105306
|
/**
|
|
104337
|
-
*
|
|
105307
|
+
* WorkoutPlaylistUpdatedV2 updatedAt.
|
|
104338
105308
|
* @member {number|Long} updatedAt
|
|
104339
|
-
* @memberof
|
|
105309
|
+
* @memberof WorkoutPlaylistUpdatedV2
|
|
104340
105310
|
* @instance
|
|
104341
105311
|
*/
|
|
104342
|
-
|
|
105312
|
+
WorkoutPlaylistUpdatedV2.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
104343
105313
|
|
|
104344
105314
|
/**
|
|
104345
|
-
*
|
|
105315
|
+
* WorkoutPlaylistUpdatedV2 tileMedia.
|
|
104346
105316
|
* @member {Object.<string,contentful.IIdReference>} tileMedia
|
|
104347
|
-
* @memberof
|
|
105317
|
+
* @memberof WorkoutPlaylistUpdatedV2
|
|
104348
105318
|
* @instance
|
|
104349
105319
|
*/
|
|
104350
|
-
|
|
105320
|
+
WorkoutPlaylistUpdatedV2.prototype.tileMedia = $util.emptyObject;
|
|
104351
105321
|
|
|
104352
105322
|
/**
|
|
104353
|
-
*
|
|
105323
|
+
* WorkoutPlaylistUpdatedV2 headerImageMedia.
|
|
104354
105324
|
* @member {Object.<string,contentful.IIdReference>} headerImageMedia
|
|
104355
|
-
* @memberof
|
|
105325
|
+
* @memberof WorkoutPlaylistUpdatedV2
|
|
104356
105326
|
* @instance
|
|
104357
105327
|
*/
|
|
104358
|
-
|
|
105328
|
+
WorkoutPlaylistUpdatedV2.prototype.headerImageMedia = $util.emptyObject;
|
|
104359
105329
|
|
|
104360
105330
|
/**
|
|
104361
|
-
*
|
|
105331
|
+
* WorkoutPlaylistUpdatedV2 tags.
|
|
104362
105332
|
* @member {Object.<string,contentful.ITags>} tags
|
|
104363
|
-
* @memberof
|
|
105333
|
+
* @memberof WorkoutPlaylistUpdatedV2
|
|
104364
105334
|
* @instance
|
|
104365
105335
|
*/
|
|
104366
|
-
|
|
105336
|
+
WorkoutPlaylistUpdatedV2.prototype.tags = $util.emptyObject;
|
|
105337
|
+
|
|
105338
|
+
/**
|
|
105339
|
+
* WorkoutPlaylistUpdatedV2 contentType.
|
|
105340
|
+
* @member {string} contentType
|
|
105341
|
+
* @memberof WorkoutPlaylistUpdatedV2
|
|
105342
|
+
* @instance
|
|
105343
|
+
*/
|
|
105344
|
+
WorkoutPlaylistUpdatedV2.prototype.contentType = "";
|
|
105345
|
+
|
|
105346
|
+
/**
|
|
105347
|
+
* WorkoutPlaylistUpdatedV2 contentTypeDisplayValue.
|
|
105348
|
+
* @member {string} contentTypeDisplayValue
|
|
105349
|
+
* @memberof WorkoutPlaylistUpdatedV2
|
|
105350
|
+
* @instance
|
|
105351
|
+
*/
|
|
105352
|
+
WorkoutPlaylistUpdatedV2.prototype.contentTypeDisplayValue = "";
|
|
104367
105353
|
|
|
104368
105354
|
/**
|
|
104369
|
-
* Creates a new
|
|
105355
|
+
* Creates a new WorkoutPlaylistUpdatedV2 instance using the specified properties.
|
|
104370
105356
|
* @function create
|
|
104371
|
-
* @memberof
|
|
105357
|
+
* @memberof WorkoutPlaylistUpdatedV2
|
|
104372
105358
|
* @static
|
|
104373
|
-
* @param {
|
|
104374
|
-
* @returns {
|
|
105359
|
+
* @param {IWorkoutPlaylistUpdatedV2=} [properties] Properties to set
|
|
105360
|
+
* @returns {WorkoutPlaylistUpdatedV2} WorkoutPlaylistUpdatedV2 instance
|
|
104375
105361
|
*/
|
|
104376
|
-
|
|
104377
|
-
return new
|
|
105362
|
+
WorkoutPlaylistUpdatedV2.create = function create(properties) {
|
|
105363
|
+
return new WorkoutPlaylistUpdatedV2(properties);
|
|
104378
105364
|
};
|
|
104379
105365
|
|
|
104380
105366
|
/**
|
|
104381
|
-
* Encodes the specified
|
|
105367
|
+
* Encodes the specified WorkoutPlaylistUpdatedV2 message. Does not implicitly {@link WorkoutPlaylistUpdatedV2.verify|verify} messages.
|
|
104382
105368
|
* @function encode
|
|
104383
|
-
* @memberof
|
|
105369
|
+
* @memberof WorkoutPlaylistUpdatedV2
|
|
104384
105370
|
* @static
|
|
104385
|
-
* @param {
|
|
105371
|
+
* @param {IWorkoutPlaylistUpdatedV2} message WorkoutPlaylistUpdatedV2 message or plain object to encode
|
|
104386
105372
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
104387
105373
|
* @returns {$protobuf.Writer} Writer
|
|
104388
105374
|
*/
|
|
104389
|
-
|
|
105375
|
+
WorkoutPlaylistUpdatedV2.encode = function encode(message, writer) {
|
|
104390
105376
|
if (!writer)
|
|
104391
105377
|
writer = $Writer.create();
|
|
104392
105378
|
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
@@ -104415,37 +105401,41 @@ $root.WorkoutPlaylistUpdated = (function() {
|
|
|
104415
105401
|
writer.uint32(/* id 8, wireType 2 =*/66).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
104416
105402
|
$root.contentful.Tags.encode(message.tags[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
104417
105403
|
}
|
|
105404
|
+
if (message.contentType != null && message.hasOwnProperty("contentType"))
|
|
105405
|
+
writer.uint32(/* id 9, wireType 2 =*/74).string(message.contentType);
|
|
105406
|
+
if (message.contentTypeDisplayValue != null && message.hasOwnProperty("contentTypeDisplayValue"))
|
|
105407
|
+
writer.uint32(/* id 10, wireType 2 =*/82).string(message.contentTypeDisplayValue);
|
|
104418
105408
|
return writer;
|
|
104419
105409
|
};
|
|
104420
105410
|
|
|
104421
105411
|
/**
|
|
104422
|
-
* Encodes the specified
|
|
105412
|
+
* Encodes the specified WorkoutPlaylistUpdatedV2 message, length delimited. Does not implicitly {@link WorkoutPlaylistUpdatedV2.verify|verify} messages.
|
|
104423
105413
|
* @function encodeDelimited
|
|
104424
|
-
* @memberof
|
|
105414
|
+
* @memberof WorkoutPlaylistUpdatedV2
|
|
104425
105415
|
* @static
|
|
104426
|
-
* @param {
|
|
105416
|
+
* @param {IWorkoutPlaylistUpdatedV2} message WorkoutPlaylistUpdatedV2 message or plain object to encode
|
|
104427
105417
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
104428
105418
|
* @returns {$protobuf.Writer} Writer
|
|
104429
105419
|
*/
|
|
104430
|
-
|
|
105420
|
+
WorkoutPlaylistUpdatedV2.encodeDelimited = function encodeDelimited(message, writer) {
|
|
104431
105421
|
return this.encode(message, writer).ldelim();
|
|
104432
105422
|
};
|
|
104433
105423
|
|
|
104434
105424
|
/**
|
|
104435
|
-
* Decodes a
|
|
105425
|
+
* Decodes a WorkoutPlaylistUpdatedV2 message from the specified reader or buffer.
|
|
104436
105426
|
* @function decode
|
|
104437
|
-
* @memberof
|
|
105427
|
+
* @memberof WorkoutPlaylistUpdatedV2
|
|
104438
105428
|
* @static
|
|
104439
105429
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
104440
105430
|
* @param {number} [length] Message length if known beforehand
|
|
104441
|
-
* @returns {
|
|
105431
|
+
* @returns {WorkoutPlaylistUpdatedV2} WorkoutPlaylistUpdatedV2
|
|
104442
105432
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
104443
105433
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
104444
105434
|
*/
|
|
104445
|
-
|
|
105435
|
+
WorkoutPlaylistUpdatedV2.decode = function decode(reader, length) {
|
|
104446
105436
|
if (!(reader instanceof $Reader))
|
|
104447
105437
|
reader = $Reader.create(reader);
|
|
104448
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.
|
|
105438
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.WorkoutPlaylistUpdatedV2(), key;
|
|
104449
105439
|
while (reader.pos < end) {
|
|
104450
105440
|
var tag = reader.uint32();
|
|
104451
105441
|
switch (tag >>> 3) {
|
|
@@ -104490,6 +105480,12 @@ $root.WorkoutPlaylistUpdated = (function() {
|
|
|
104490
105480
|
reader.pos++;
|
|
104491
105481
|
message.tags[key] = $root.contentful.Tags.decode(reader, reader.uint32());
|
|
104492
105482
|
break;
|
|
105483
|
+
case 9:
|
|
105484
|
+
message.contentType = reader.string();
|
|
105485
|
+
break;
|
|
105486
|
+
case 10:
|
|
105487
|
+
message.contentTypeDisplayValue = reader.string();
|
|
105488
|
+
break;
|
|
104493
105489
|
default:
|
|
104494
105490
|
reader.skipType(tag & 7);
|
|
104495
105491
|
break;
|
|
@@ -104499,30 +105495,30 @@ $root.WorkoutPlaylistUpdated = (function() {
|
|
|
104499
105495
|
};
|
|
104500
105496
|
|
|
104501
105497
|
/**
|
|
104502
|
-
* Decodes a
|
|
105498
|
+
* Decodes a WorkoutPlaylistUpdatedV2 message from the specified reader or buffer, length delimited.
|
|
104503
105499
|
* @function decodeDelimited
|
|
104504
|
-
* @memberof
|
|
105500
|
+
* @memberof WorkoutPlaylistUpdatedV2
|
|
104505
105501
|
* @static
|
|
104506
105502
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
104507
|
-
* @returns {
|
|
105503
|
+
* @returns {WorkoutPlaylistUpdatedV2} WorkoutPlaylistUpdatedV2
|
|
104508
105504
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
104509
105505
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
104510
105506
|
*/
|
|
104511
|
-
|
|
105507
|
+
WorkoutPlaylistUpdatedV2.decodeDelimited = function decodeDelimited(reader) {
|
|
104512
105508
|
if (!(reader instanceof $Reader))
|
|
104513
105509
|
reader = new $Reader(reader);
|
|
104514
105510
|
return this.decode(reader, reader.uint32());
|
|
104515
105511
|
};
|
|
104516
105512
|
|
|
104517
105513
|
/**
|
|
104518
|
-
* Verifies a
|
|
105514
|
+
* Verifies a WorkoutPlaylistUpdatedV2 message.
|
|
104519
105515
|
* @function verify
|
|
104520
|
-
* @memberof
|
|
105516
|
+
* @memberof WorkoutPlaylistUpdatedV2
|
|
104521
105517
|
* @static
|
|
104522
105518
|
* @param {Object.<string,*>} message Plain object to verify
|
|
104523
105519
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
104524
105520
|
*/
|
|
104525
|
-
|
|
105521
|
+
WorkoutPlaylistUpdatedV2.verify = function verify(message) {
|
|
104526
105522
|
if (typeof message !== "object" || message === null)
|
|
104527
105523
|
return "object expected";
|
|
104528
105524
|
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
@@ -104576,21 +105572,27 @@ $root.WorkoutPlaylistUpdated = (function() {
|
|
|
104576
105572
|
return "tags." + error;
|
|
104577
105573
|
}
|
|
104578
105574
|
}
|
|
105575
|
+
if (message.contentType != null && message.hasOwnProperty("contentType"))
|
|
105576
|
+
if (!$util.isString(message.contentType))
|
|
105577
|
+
return "contentType: string expected";
|
|
105578
|
+
if (message.contentTypeDisplayValue != null && message.hasOwnProperty("contentTypeDisplayValue"))
|
|
105579
|
+
if (!$util.isString(message.contentTypeDisplayValue))
|
|
105580
|
+
return "contentTypeDisplayValue: string expected";
|
|
104579
105581
|
return null;
|
|
104580
105582
|
};
|
|
104581
105583
|
|
|
104582
105584
|
/**
|
|
104583
|
-
* Creates a
|
|
105585
|
+
* Creates a WorkoutPlaylistUpdatedV2 message from a plain object. Also converts values to their respective internal types.
|
|
104584
105586
|
* @function fromObject
|
|
104585
|
-
* @memberof
|
|
105587
|
+
* @memberof WorkoutPlaylistUpdatedV2
|
|
104586
105588
|
* @static
|
|
104587
105589
|
* @param {Object.<string,*>} object Plain object
|
|
104588
|
-
* @returns {
|
|
105590
|
+
* @returns {WorkoutPlaylistUpdatedV2} WorkoutPlaylistUpdatedV2
|
|
104589
105591
|
*/
|
|
104590
|
-
|
|
104591
|
-
if (object instanceof $root.
|
|
105592
|
+
WorkoutPlaylistUpdatedV2.fromObject = function fromObject(object) {
|
|
105593
|
+
if (object instanceof $root.WorkoutPlaylistUpdatedV2)
|
|
104592
105594
|
return object;
|
|
104593
|
-
var message = new $root.
|
|
105595
|
+
var message = new $root.WorkoutPlaylistUpdatedV2();
|
|
104594
105596
|
if (object.slug != null)
|
|
104595
105597
|
message.slug = String(object.slug);
|
|
104596
105598
|
if (object.entityId != null)
|
|
@@ -104599,11 +105601,11 @@ $root.WorkoutPlaylistUpdated = (function() {
|
|
|
104599
105601
|
message.entityType = String(object.entityType);
|
|
104600
105602
|
if (object.accessGroups) {
|
|
104601
105603
|
if (!Array.isArray(object.accessGroups))
|
|
104602
|
-
throw TypeError(".
|
|
105604
|
+
throw TypeError(".WorkoutPlaylistUpdatedV2.accessGroups: array expected");
|
|
104603
105605
|
message.accessGroups = [];
|
|
104604
105606
|
for (var i = 0; i < object.accessGroups.length; ++i) {
|
|
104605
105607
|
if (typeof object.accessGroups[i] !== "object")
|
|
104606
|
-
throw TypeError(".
|
|
105608
|
+
throw TypeError(".WorkoutPlaylistUpdatedV2.accessGroups: object expected");
|
|
104607
105609
|
message.accessGroups[i] = $root.contentful.SlugReference.fromObject(object.accessGroups[i]);
|
|
104608
105610
|
}
|
|
104609
105611
|
}
|
|
@@ -104618,47 +105620,51 @@ $root.WorkoutPlaylistUpdated = (function() {
|
|
|
104618
105620
|
message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
|
|
104619
105621
|
if (object.tileMedia) {
|
|
104620
105622
|
if (typeof object.tileMedia !== "object")
|
|
104621
|
-
throw TypeError(".
|
|
105623
|
+
throw TypeError(".WorkoutPlaylistUpdatedV2.tileMedia: object expected");
|
|
104622
105624
|
message.tileMedia = {};
|
|
104623
105625
|
for (var keys = Object.keys(object.tileMedia), i = 0; i < keys.length; ++i) {
|
|
104624
105626
|
if (typeof object.tileMedia[keys[i]] !== "object")
|
|
104625
|
-
throw TypeError(".
|
|
105627
|
+
throw TypeError(".WorkoutPlaylistUpdatedV2.tileMedia: object expected");
|
|
104626
105628
|
message.tileMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.tileMedia[keys[i]]);
|
|
104627
105629
|
}
|
|
104628
105630
|
}
|
|
104629
105631
|
if (object.headerImageMedia) {
|
|
104630
105632
|
if (typeof object.headerImageMedia !== "object")
|
|
104631
|
-
throw TypeError(".
|
|
105633
|
+
throw TypeError(".WorkoutPlaylistUpdatedV2.headerImageMedia: object expected");
|
|
104632
105634
|
message.headerImageMedia = {};
|
|
104633
105635
|
for (var keys = Object.keys(object.headerImageMedia), i = 0; i < keys.length; ++i) {
|
|
104634
105636
|
if (typeof object.headerImageMedia[keys[i]] !== "object")
|
|
104635
|
-
throw TypeError(".
|
|
105637
|
+
throw TypeError(".WorkoutPlaylistUpdatedV2.headerImageMedia: object expected");
|
|
104636
105638
|
message.headerImageMedia[keys[i]] = $root.contentful.IdReference.fromObject(object.headerImageMedia[keys[i]]);
|
|
104637
105639
|
}
|
|
104638
105640
|
}
|
|
104639
105641
|
if (object.tags) {
|
|
104640
105642
|
if (typeof object.tags !== "object")
|
|
104641
|
-
throw TypeError(".
|
|
105643
|
+
throw TypeError(".WorkoutPlaylistUpdatedV2.tags: object expected");
|
|
104642
105644
|
message.tags = {};
|
|
104643
105645
|
for (var keys = Object.keys(object.tags), i = 0; i < keys.length; ++i) {
|
|
104644
105646
|
if (typeof object.tags[keys[i]] !== "object")
|
|
104645
|
-
throw TypeError(".
|
|
105647
|
+
throw TypeError(".WorkoutPlaylistUpdatedV2.tags: object expected");
|
|
104646
105648
|
message.tags[keys[i]] = $root.contentful.Tags.fromObject(object.tags[keys[i]]);
|
|
104647
105649
|
}
|
|
104648
105650
|
}
|
|
105651
|
+
if (object.contentType != null)
|
|
105652
|
+
message.contentType = String(object.contentType);
|
|
105653
|
+
if (object.contentTypeDisplayValue != null)
|
|
105654
|
+
message.contentTypeDisplayValue = String(object.contentTypeDisplayValue);
|
|
104649
105655
|
return message;
|
|
104650
105656
|
};
|
|
104651
105657
|
|
|
104652
105658
|
/**
|
|
104653
|
-
* Creates a plain object from a
|
|
105659
|
+
* Creates a plain object from a WorkoutPlaylistUpdatedV2 message. Also converts values to other types if specified.
|
|
104654
105660
|
* @function toObject
|
|
104655
|
-
* @memberof
|
|
105661
|
+
* @memberof WorkoutPlaylistUpdatedV2
|
|
104656
105662
|
* @static
|
|
104657
|
-
* @param {
|
|
105663
|
+
* @param {WorkoutPlaylistUpdatedV2} message WorkoutPlaylistUpdatedV2
|
|
104658
105664
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
104659
105665
|
* @returns {Object.<string,*>} Plain object
|
|
104660
105666
|
*/
|
|
104661
|
-
|
|
105667
|
+
WorkoutPlaylistUpdatedV2.toObject = function toObject(message, options) {
|
|
104662
105668
|
if (!options)
|
|
104663
105669
|
options = {};
|
|
104664
105670
|
var object = {};
|
|
@@ -104678,6 +105684,8 @@ $root.WorkoutPlaylistUpdated = (function() {
|
|
|
104678
105684
|
object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
104679
105685
|
} else
|
|
104680
105686
|
object.updatedAt = options.longs === String ? "0" : 0;
|
|
105687
|
+
object.contentType = "";
|
|
105688
|
+
object.contentTypeDisplayValue = "";
|
|
104681
105689
|
}
|
|
104682
105690
|
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
104683
105691
|
object.slug = message.slug;
|
|
@@ -104711,21 +105719,25 @@ $root.WorkoutPlaylistUpdated = (function() {
|
|
|
104711
105719
|
for (var j = 0; j < keys2.length; ++j)
|
|
104712
105720
|
object.tags[keys2[j]] = $root.contentful.Tags.toObject(message.tags[keys2[j]], options);
|
|
104713
105721
|
}
|
|
105722
|
+
if (message.contentType != null && message.hasOwnProperty("contentType"))
|
|
105723
|
+
object.contentType = message.contentType;
|
|
105724
|
+
if (message.contentTypeDisplayValue != null && message.hasOwnProperty("contentTypeDisplayValue"))
|
|
105725
|
+
object.contentTypeDisplayValue = message.contentTypeDisplayValue;
|
|
104714
105726
|
return object;
|
|
104715
105727
|
};
|
|
104716
105728
|
|
|
104717
105729
|
/**
|
|
104718
|
-
* Converts this
|
|
105730
|
+
* Converts this WorkoutPlaylistUpdatedV2 to JSON.
|
|
104719
105731
|
* @function toJSON
|
|
104720
|
-
* @memberof
|
|
105732
|
+
* @memberof WorkoutPlaylistUpdatedV2
|
|
104721
105733
|
* @instance
|
|
104722
105734
|
* @returns {Object.<string,*>} JSON object
|
|
104723
105735
|
*/
|
|
104724
|
-
|
|
105736
|
+
WorkoutPlaylistUpdatedV2.prototype.toJSON = function toJSON() {
|
|
104725
105737
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
104726
105738
|
};
|
|
104727
105739
|
|
|
104728
|
-
return
|
|
105740
|
+
return WorkoutPlaylistUpdatedV2;
|
|
104729
105741
|
})();
|
|
104730
105742
|
|
|
104731
105743
|
$root.WorkoutPlaylistDeleted = (function() {
|
|
@@ -120023,252 +121035,6 @@ $root.UserEmailUpdated = (function() {
|
|
|
120023
121035
|
return UserEmailUpdated;
|
|
120024
121036
|
})();
|
|
120025
121037
|
|
|
120026
|
-
$root.UserEmailVerificationCompleted = (function() {
|
|
120027
|
-
|
|
120028
|
-
/**
|
|
120029
|
-
* Properties of a UserEmailVerificationCompleted.
|
|
120030
|
-
* @exports IUserEmailVerificationCompleted
|
|
120031
|
-
* @interface IUserEmailVerificationCompleted
|
|
120032
|
-
* @property {string|null} [hsId] UserEmailVerificationCompleted hsId
|
|
120033
|
-
* @property {string|null} [email] UserEmailVerificationCompleted email
|
|
120034
|
-
* @property {number|Long|null} [timestamp] UserEmailVerificationCompleted timestamp
|
|
120035
|
-
*/
|
|
120036
|
-
|
|
120037
|
-
/**
|
|
120038
|
-
* Constructs a new UserEmailVerificationCompleted.
|
|
120039
|
-
* @exports UserEmailVerificationCompleted
|
|
120040
|
-
* @classdesc Represents a UserEmailVerificationCompleted.
|
|
120041
|
-
* @implements IUserEmailVerificationCompleted
|
|
120042
|
-
* @constructor
|
|
120043
|
-
* @param {IUserEmailVerificationCompleted=} [properties] Properties to set
|
|
120044
|
-
*/
|
|
120045
|
-
function UserEmailVerificationCompleted(properties) {
|
|
120046
|
-
if (properties)
|
|
120047
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
120048
|
-
if (properties[keys[i]] != null)
|
|
120049
|
-
this[keys[i]] = properties[keys[i]];
|
|
120050
|
-
}
|
|
120051
|
-
|
|
120052
|
-
/**
|
|
120053
|
-
* UserEmailVerificationCompleted hsId.
|
|
120054
|
-
* @member {string} hsId
|
|
120055
|
-
* @memberof UserEmailVerificationCompleted
|
|
120056
|
-
* @instance
|
|
120057
|
-
*/
|
|
120058
|
-
UserEmailVerificationCompleted.prototype.hsId = "";
|
|
120059
|
-
|
|
120060
|
-
/**
|
|
120061
|
-
* UserEmailVerificationCompleted email.
|
|
120062
|
-
* @member {string} email
|
|
120063
|
-
* @memberof UserEmailVerificationCompleted
|
|
120064
|
-
* @instance
|
|
120065
|
-
*/
|
|
120066
|
-
UserEmailVerificationCompleted.prototype.email = "";
|
|
120067
|
-
|
|
120068
|
-
/**
|
|
120069
|
-
* UserEmailVerificationCompleted timestamp.
|
|
120070
|
-
* @member {number|Long} timestamp
|
|
120071
|
-
* @memberof UserEmailVerificationCompleted
|
|
120072
|
-
* @instance
|
|
120073
|
-
*/
|
|
120074
|
-
UserEmailVerificationCompleted.prototype.timestamp = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
120075
|
-
|
|
120076
|
-
/**
|
|
120077
|
-
* Creates a new UserEmailVerificationCompleted instance using the specified properties.
|
|
120078
|
-
* @function create
|
|
120079
|
-
* @memberof UserEmailVerificationCompleted
|
|
120080
|
-
* @static
|
|
120081
|
-
* @param {IUserEmailVerificationCompleted=} [properties] Properties to set
|
|
120082
|
-
* @returns {UserEmailVerificationCompleted} UserEmailVerificationCompleted instance
|
|
120083
|
-
*/
|
|
120084
|
-
UserEmailVerificationCompleted.create = function create(properties) {
|
|
120085
|
-
return new UserEmailVerificationCompleted(properties);
|
|
120086
|
-
};
|
|
120087
|
-
|
|
120088
|
-
/**
|
|
120089
|
-
* Encodes the specified UserEmailVerificationCompleted message. Does not implicitly {@link UserEmailVerificationCompleted.verify|verify} messages.
|
|
120090
|
-
* @function encode
|
|
120091
|
-
* @memberof UserEmailVerificationCompleted
|
|
120092
|
-
* @static
|
|
120093
|
-
* @param {IUserEmailVerificationCompleted} message UserEmailVerificationCompleted message or plain object to encode
|
|
120094
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
120095
|
-
* @returns {$protobuf.Writer} Writer
|
|
120096
|
-
*/
|
|
120097
|
-
UserEmailVerificationCompleted.encode = function encode(message, writer) {
|
|
120098
|
-
if (!writer)
|
|
120099
|
-
writer = $Writer.create();
|
|
120100
|
-
if (message.hsId != null && message.hasOwnProperty("hsId"))
|
|
120101
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.hsId);
|
|
120102
|
-
if (message.email != null && message.hasOwnProperty("email"))
|
|
120103
|
-
writer.uint32(/* id 2, wireType 2 =*/18).string(message.email);
|
|
120104
|
-
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
120105
|
-
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.timestamp);
|
|
120106
|
-
return writer;
|
|
120107
|
-
};
|
|
120108
|
-
|
|
120109
|
-
/**
|
|
120110
|
-
* Encodes the specified UserEmailVerificationCompleted message, length delimited. Does not implicitly {@link UserEmailVerificationCompleted.verify|verify} messages.
|
|
120111
|
-
* @function encodeDelimited
|
|
120112
|
-
* @memberof UserEmailVerificationCompleted
|
|
120113
|
-
* @static
|
|
120114
|
-
* @param {IUserEmailVerificationCompleted} message UserEmailVerificationCompleted message or plain object to encode
|
|
120115
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
120116
|
-
* @returns {$protobuf.Writer} Writer
|
|
120117
|
-
*/
|
|
120118
|
-
UserEmailVerificationCompleted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
120119
|
-
return this.encode(message, writer).ldelim();
|
|
120120
|
-
};
|
|
120121
|
-
|
|
120122
|
-
/**
|
|
120123
|
-
* Decodes a UserEmailVerificationCompleted message from the specified reader or buffer.
|
|
120124
|
-
* @function decode
|
|
120125
|
-
* @memberof UserEmailVerificationCompleted
|
|
120126
|
-
* @static
|
|
120127
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
120128
|
-
* @param {number} [length] Message length if known beforehand
|
|
120129
|
-
* @returns {UserEmailVerificationCompleted} UserEmailVerificationCompleted
|
|
120130
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
120131
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
120132
|
-
*/
|
|
120133
|
-
UserEmailVerificationCompleted.decode = function decode(reader, length) {
|
|
120134
|
-
if (!(reader instanceof $Reader))
|
|
120135
|
-
reader = $Reader.create(reader);
|
|
120136
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserEmailVerificationCompleted();
|
|
120137
|
-
while (reader.pos < end) {
|
|
120138
|
-
var tag = reader.uint32();
|
|
120139
|
-
switch (tag >>> 3) {
|
|
120140
|
-
case 1:
|
|
120141
|
-
message.hsId = reader.string();
|
|
120142
|
-
break;
|
|
120143
|
-
case 2:
|
|
120144
|
-
message.email = reader.string();
|
|
120145
|
-
break;
|
|
120146
|
-
case 3:
|
|
120147
|
-
message.timestamp = reader.uint64();
|
|
120148
|
-
break;
|
|
120149
|
-
default:
|
|
120150
|
-
reader.skipType(tag & 7);
|
|
120151
|
-
break;
|
|
120152
|
-
}
|
|
120153
|
-
}
|
|
120154
|
-
return message;
|
|
120155
|
-
};
|
|
120156
|
-
|
|
120157
|
-
/**
|
|
120158
|
-
* Decodes a UserEmailVerificationCompleted message from the specified reader or buffer, length delimited.
|
|
120159
|
-
* @function decodeDelimited
|
|
120160
|
-
* @memberof UserEmailVerificationCompleted
|
|
120161
|
-
* @static
|
|
120162
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
120163
|
-
* @returns {UserEmailVerificationCompleted} UserEmailVerificationCompleted
|
|
120164
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
120165
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
120166
|
-
*/
|
|
120167
|
-
UserEmailVerificationCompleted.decodeDelimited = function decodeDelimited(reader) {
|
|
120168
|
-
if (!(reader instanceof $Reader))
|
|
120169
|
-
reader = new $Reader(reader);
|
|
120170
|
-
return this.decode(reader, reader.uint32());
|
|
120171
|
-
};
|
|
120172
|
-
|
|
120173
|
-
/**
|
|
120174
|
-
* Verifies a UserEmailVerificationCompleted message.
|
|
120175
|
-
* @function verify
|
|
120176
|
-
* @memberof UserEmailVerificationCompleted
|
|
120177
|
-
* @static
|
|
120178
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
120179
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
120180
|
-
*/
|
|
120181
|
-
UserEmailVerificationCompleted.verify = function verify(message) {
|
|
120182
|
-
if (typeof message !== "object" || message === null)
|
|
120183
|
-
return "object expected";
|
|
120184
|
-
if (message.hsId != null && message.hasOwnProperty("hsId"))
|
|
120185
|
-
if (!$util.isString(message.hsId))
|
|
120186
|
-
return "hsId: string expected";
|
|
120187
|
-
if (message.email != null && message.hasOwnProperty("email"))
|
|
120188
|
-
if (!$util.isString(message.email))
|
|
120189
|
-
return "email: string expected";
|
|
120190
|
-
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
120191
|
-
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
120192
|
-
return "timestamp: integer|Long expected";
|
|
120193
|
-
return null;
|
|
120194
|
-
};
|
|
120195
|
-
|
|
120196
|
-
/**
|
|
120197
|
-
* Creates a UserEmailVerificationCompleted message from a plain object. Also converts values to their respective internal types.
|
|
120198
|
-
* @function fromObject
|
|
120199
|
-
* @memberof UserEmailVerificationCompleted
|
|
120200
|
-
* @static
|
|
120201
|
-
* @param {Object.<string,*>} object Plain object
|
|
120202
|
-
* @returns {UserEmailVerificationCompleted} UserEmailVerificationCompleted
|
|
120203
|
-
*/
|
|
120204
|
-
UserEmailVerificationCompleted.fromObject = function fromObject(object) {
|
|
120205
|
-
if (object instanceof $root.UserEmailVerificationCompleted)
|
|
120206
|
-
return object;
|
|
120207
|
-
var message = new $root.UserEmailVerificationCompleted();
|
|
120208
|
-
if (object.hsId != null)
|
|
120209
|
-
message.hsId = String(object.hsId);
|
|
120210
|
-
if (object.email != null)
|
|
120211
|
-
message.email = String(object.email);
|
|
120212
|
-
if (object.timestamp != null)
|
|
120213
|
-
if ($util.Long)
|
|
120214
|
-
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
120215
|
-
else if (typeof object.timestamp === "string")
|
|
120216
|
-
message.timestamp = parseInt(object.timestamp, 10);
|
|
120217
|
-
else if (typeof object.timestamp === "number")
|
|
120218
|
-
message.timestamp = object.timestamp;
|
|
120219
|
-
else if (typeof object.timestamp === "object")
|
|
120220
|
-
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
120221
|
-
return message;
|
|
120222
|
-
};
|
|
120223
|
-
|
|
120224
|
-
/**
|
|
120225
|
-
* Creates a plain object from a UserEmailVerificationCompleted message. Also converts values to other types if specified.
|
|
120226
|
-
* @function toObject
|
|
120227
|
-
* @memberof UserEmailVerificationCompleted
|
|
120228
|
-
* @static
|
|
120229
|
-
* @param {UserEmailVerificationCompleted} message UserEmailVerificationCompleted
|
|
120230
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
120231
|
-
* @returns {Object.<string,*>} Plain object
|
|
120232
|
-
*/
|
|
120233
|
-
UserEmailVerificationCompleted.toObject = function toObject(message, options) {
|
|
120234
|
-
if (!options)
|
|
120235
|
-
options = {};
|
|
120236
|
-
var object = {};
|
|
120237
|
-
if (options.defaults) {
|
|
120238
|
-
object.hsId = "";
|
|
120239
|
-
object.email = "";
|
|
120240
|
-
if ($util.Long) {
|
|
120241
|
-
var long = new $util.Long(0, 0, true);
|
|
120242
|
-
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
120243
|
-
} else
|
|
120244
|
-
object.timestamp = options.longs === String ? "0" : 0;
|
|
120245
|
-
}
|
|
120246
|
-
if (message.hsId != null && message.hasOwnProperty("hsId"))
|
|
120247
|
-
object.hsId = message.hsId;
|
|
120248
|
-
if (message.email != null && message.hasOwnProperty("email"))
|
|
120249
|
-
object.email = message.email;
|
|
120250
|
-
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
120251
|
-
if (typeof message.timestamp === "number")
|
|
120252
|
-
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
120253
|
-
else
|
|
120254
|
-
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;
|
|
120255
|
-
return object;
|
|
120256
|
-
};
|
|
120257
|
-
|
|
120258
|
-
/**
|
|
120259
|
-
* Converts this UserEmailVerificationCompleted to JSON.
|
|
120260
|
-
* @function toJSON
|
|
120261
|
-
* @memberof UserEmailVerificationCompleted
|
|
120262
|
-
* @instance
|
|
120263
|
-
* @returns {Object.<string,*>} JSON object
|
|
120264
|
-
*/
|
|
120265
|
-
UserEmailVerificationCompleted.prototype.toJSON = function toJSON() {
|
|
120266
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
120267
|
-
};
|
|
120268
|
-
|
|
120269
|
-
return UserEmailVerificationCompleted;
|
|
120270
|
-
})();
|
|
120271
|
-
|
|
120272
121038
|
$root.UserPasswordResetRequested = (function() {
|
|
120273
121039
|
|
|
120274
121040
|
/**
|