@headspace/protos-events 1.787.0 → 1.788.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 +458 -0
- package/lib/index.js +1050 -0
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -125318,6 +125318,1056 @@ $root.EligibleMemberUpgraded = (function() {
|
|
|
125318
125318
|
return EligibleMemberUpgraded;
|
|
125319
125319
|
})();
|
|
125320
125320
|
|
|
125321
|
+
$root.ExperienceMetadataUpdated = (function() {
|
|
125322
|
+
|
|
125323
|
+
/**
|
|
125324
|
+
* Properties of an ExperienceMetadataUpdated.
|
|
125325
|
+
* @name IExperienceMetadataUpdated
|
|
125326
|
+
* @interface IExperienceMetadataUpdated
|
|
125327
|
+
* @property {string|null} [experienceId] ExperienceMetadataUpdated experienceId
|
|
125328
|
+
* @property {number|null} [contentId] ExperienceMetadataUpdated contentId
|
|
125329
|
+
* @property {string|null} [contentSlug] ExperienceMetadataUpdated contentSlug
|
|
125330
|
+
* @property {string|null} [fieldsStringified] ExperienceMetadataUpdated fieldsStringified
|
|
125331
|
+
*/
|
|
125332
|
+
|
|
125333
|
+
/**
|
|
125334
|
+
* Constructs a new ExperienceMetadataUpdated.
|
|
125335
|
+
* @name ExperienceMetadataUpdated
|
|
125336
|
+
* @classdesc Sent when an experience's fields change.
|
|
125337
|
+
* Fired by hs-content-service
|
|
125338
|
+
* Responsible team: Core Platform
|
|
125339
|
+
* Responsible domain: Content
|
|
125340
|
+
* @implements IExperienceMetadataUpdated
|
|
125341
|
+
* @constructor
|
|
125342
|
+
* @param {IExperienceMetadataUpdated=} [properties] Properties to set
|
|
125343
|
+
*/
|
|
125344
|
+
function ExperienceMetadataUpdated(properties) {
|
|
125345
|
+
if (properties)
|
|
125346
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
125347
|
+
if (properties[keys[i]] != null)
|
|
125348
|
+
this[keys[i]] = properties[keys[i]];
|
|
125349
|
+
}
|
|
125350
|
+
|
|
125351
|
+
/**
|
|
125352
|
+
* ExperienceMetadataUpdated experienceId.
|
|
125353
|
+
* @member {string} experienceId
|
|
125354
|
+
* @memberof ExperienceMetadataUpdated
|
|
125355
|
+
* @instance
|
|
125356
|
+
*/
|
|
125357
|
+
ExperienceMetadataUpdated.prototype.experienceId = "";
|
|
125358
|
+
|
|
125359
|
+
/**
|
|
125360
|
+
* ExperienceMetadataUpdated contentId.
|
|
125361
|
+
* @member {number} contentId
|
|
125362
|
+
* @memberof ExperienceMetadataUpdated
|
|
125363
|
+
* @instance
|
|
125364
|
+
*/
|
|
125365
|
+
ExperienceMetadataUpdated.prototype.contentId = 0;
|
|
125366
|
+
|
|
125367
|
+
/**
|
|
125368
|
+
* ExperienceMetadataUpdated contentSlug.
|
|
125369
|
+
* @member {string} contentSlug
|
|
125370
|
+
* @memberof ExperienceMetadataUpdated
|
|
125371
|
+
* @instance
|
|
125372
|
+
*/
|
|
125373
|
+
ExperienceMetadataUpdated.prototype.contentSlug = "";
|
|
125374
|
+
|
|
125375
|
+
/**
|
|
125376
|
+
* ExperienceMetadataUpdated fieldsStringified.
|
|
125377
|
+
* @member {string} fieldsStringified
|
|
125378
|
+
* @memberof ExperienceMetadataUpdated
|
|
125379
|
+
* @instance
|
|
125380
|
+
*/
|
|
125381
|
+
ExperienceMetadataUpdated.prototype.fieldsStringified = "";
|
|
125382
|
+
|
|
125383
|
+
/**
|
|
125384
|
+
* Creates a new ExperienceMetadataUpdated instance using the specified properties.
|
|
125385
|
+
* @function create
|
|
125386
|
+
* @memberof ExperienceMetadataUpdated
|
|
125387
|
+
* @static
|
|
125388
|
+
* @param {IExperienceMetadataUpdated=} [properties] Properties to set
|
|
125389
|
+
* @returns {ExperienceMetadataUpdated} ExperienceMetadataUpdated instance
|
|
125390
|
+
*/
|
|
125391
|
+
ExperienceMetadataUpdated.create = function create(properties) {
|
|
125392
|
+
return new ExperienceMetadataUpdated(properties);
|
|
125393
|
+
};
|
|
125394
|
+
|
|
125395
|
+
/**
|
|
125396
|
+
* Encodes the specified ExperienceMetadataUpdated message. Does not implicitly {@link ExperienceMetadataUpdated.verify|verify} messages.
|
|
125397
|
+
* @function encode
|
|
125398
|
+
* @memberof ExperienceMetadataUpdated
|
|
125399
|
+
* @static
|
|
125400
|
+
* @param {IExperienceMetadataUpdated} message ExperienceMetadataUpdated message or plain object to encode
|
|
125401
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
125402
|
+
* @returns {$protobuf.Writer} Writer
|
|
125403
|
+
*/
|
|
125404
|
+
ExperienceMetadataUpdated.encode = function encode(message, writer) {
|
|
125405
|
+
if (!writer)
|
|
125406
|
+
writer = $Writer.create();
|
|
125407
|
+
if (message.experienceId != null && message.hasOwnProperty("experienceId"))
|
|
125408
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.experienceId);
|
|
125409
|
+
if (message.contentId != null && message.hasOwnProperty("contentId"))
|
|
125410
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.contentId);
|
|
125411
|
+
if (message.contentSlug != null && message.hasOwnProperty("contentSlug"))
|
|
125412
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.contentSlug);
|
|
125413
|
+
if (message.fieldsStringified != null && message.hasOwnProperty("fieldsStringified"))
|
|
125414
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.fieldsStringified);
|
|
125415
|
+
return writer;
|
|
125416
|
+
};
|
|
125417
|
+
|
|
125418
|
+
/**
|
|
125419
|
+
* Encodes the specified ExperienceMetadataUpdated message, length delimited. Does not implicitly {@link ExperienceMetadataUpdated.verify|verify} messages.
|
|
125420
|
+
* @function encodeDelimited
|
|
125421
|
+
* @memberof ExperienceMetadataUpdated
|
|
125422
|
+
* @static
|
|
125423
|
+
* @param {IExperienceMetadataUpdated} message ExperienceMetadataUpdated message or plain object to encode
|
|
125424
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
125425
|
+
* @returns {$protobuf.Writer} Writer
|
|
125426
|
+
*/
|
|
125427
|
+
ExperienceMetadataUpdated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
125428
|
+
return this.encode(message, writer).ldelim();
|
|
125429
|
+
};
|
|
125430
|
+
|
|
125431
|
+
/**
|
|
125432
|
+
* Decodes an ExperienceMetadataUpdated message from the specified reader or buffer.
|
|
125433
|
+
* @function decode
|
|
125434
|
+
* @memberof ExperienceMetadataUpdated
|
|
125435
|
+
* @static
|
|
125436
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
125437
|
+
* @param {number} [length] Message length if known beforehand
|
|
125438
|
+
* @returns {ExperienceMetadataUpdated} ExperienceMetadataUpdated
|
|
125439
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
125440
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
125441
|
+
*/
|
|
125442
|
+
ExperienceMetadataUpdated.decode = function decode(reader, length) {
|
|
125443
|
+
if (!(reader instanceof $Reader))
|
|
125444
|
+
reader = $Reader.create(reader);
|
|
125445
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ExperienceMetadataUpdated();
|
|
125446
|
+
while (reader.pos < end) {
|
|
125447
|
+
var tag = reader.uint32();
|
|
125448
|
+
switch (tag >>> 3) {
|
|
125449
|
+
case 1:
|
|
125450
|
+
message.experienceId = reader.string();
|
|
125451
|
+
break;
|
|
125452
|
+
case 2:
|
|
125453
|
+
message.contentId = reader.uint32();
|
|
125454
|
+
break;
|
|
125455
|
+
case 3:
|
|
125456
|
+
message.contentSlug = reader.string();
|
|
125457
|
+
break;
|
|
125458
|
+
case 4:
|
|
125459
|
+
message.fieldsStringified = reader.string();
|
|
125460
|
+
break;
|
|
125461
|
+
default:
|
|
125462
|
+
reader.skipType(tag & 7);
|
|
125463
|
+
break;
|
|
125464
|
+
}
|
|
125465
|
+
}
|
|
125466
|
+
return message;
|
|
125467
|
+
};
|
|
125468
|
+
|
|
125469
|
+
/**
|
|
125470
|
+
* Decodes an ExperienceMetadataUpdated message from the specified reader or buffer, length delimited.
|
|
125471
|
+
* @function decodeDelimited
|
|
125472
|
+
* @memberof ExperienceMetadataUpdated
|
|
125473
|
+
* @static
|
|
125474
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
125475
|
+
* @returns {ExperienceMetadataUpdated} ExperienceMetadataUpdated
|
|
125476
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
125477
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
125478
|
+
*/
|
|
125479
|
+
ExperienceMetadataUpdated.decodeDelimited = function decodeDelimited(reader) {
|
|
125480
|
+
if (!(reader instanceof $Reader))
|
|
125481
|
+
reader = new $Reader(reader);
|
|
125482
|
+
return this.decode(reader, reader.uint32());
|
|
125483
|
+
};
|
|
125484
|
+
|
|
125485
|
+
/**
|
|
125486
|
+
* Verifies an ExperienceMetadataUpdated message.
|
|
125487
|
+
* @function verify
|
|
125488
|
+
* @memberof ExperienceMetadataUpdated
|
|
125489
|
+
* @static
|
|
125490
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
125491
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
125492
|
+
*/
|
|
125493
|
+
ExperienceMetadataUpdated.verify = function verify(message) {
|
|
125494
|
+
if (typeof message !== "object" || message === null)
|
|
125495
|
+
return "object expected";
|
|
125496
|
+
if (message.experienceId != null && message.hasOwnProperty("experienceId"))
|
|
125497
|
+
if (!$util.isString(message.experienceId))
|
|
125498
|
+
return "experienceId: string expected";
|
|
125499
|
+
if (message.contentId != null && message.hasOwnProperty("contentId"))
|
|
125500
|
+
if (!$util.isInteger(message.contentId))
|
|
125501
|
+
return "contentId: integer expected";
|
|
125502
|
+
if (message.contentSlug != null && message.hasOwnProperty("contentSlug"))
|
|
125503
|
+
if (!$util.isString(message.contentSlug))
|
|
125504
|
+
return "contentSlug: string expected";
|
|
125505
|
+
if (message.fieldsStringified != null && message.hasOwnProperty("fieldsStringified"))
|
|
125506
|
+
if (!$util.isString(message.fieldsStringified))
|
|
125507
|
+
return "fieldsStringified: string expected";
|
|
125508
|
+
return null;
|
|
125509
|
+
};
|
|
125510
|
+
|
|
125511
|
+
/**
|
|
125512
|
+
* Creates an ExperienceMetadataUpdated message from a plain object. Also converts values to their respective internal types.
|
|
125513
|
+
* @function fromObject
|
|
125514
|
+
* @memberof ExperienceMetadataUpdated
|
|
125515
|
+
* @static
|
|
125516
|
+
* @param {Object.<string,*>} object Plain object
|
|
125517
|
+
* @returns {ExperienceMetadataUpdated} ExperienceMetadataUpdated
|
|
125518
|
+
*/
|
|
125519
|
+
ExperienceMetadataUpdated.fromObject = function fromObject(object) {
|
|
125520
|
+
if (object instanceof $root.ExperienceMetadataUpdated)
|
|
125521
|
+
return object;
|
|
125522
|
+
var message = new $root.ExperienceMetadataUpdated();
|
|
125523
|
+
if (object.experienceId != null)
|
|
125524
|
+
message.experienceId = String(object.experienceId);
|
|
125525
|
+
if (object.contentId != null)
|
|
125526
|
+
message.contentId = object.contentId >>> 0;
|
|
125527
|
+
if (object.contentSlug != null)
|
|
125528
|
+
message.contentSlug = String(object.contentSlug);
|
|
125529
|
+
if (object.fieldsStringified != null)
|
|
125530
|
+
message.fieldsStringified = String(object.fieldsStringified);
|
|
125531
|
+
return message;
|
|
125532
|
+
};
|
|
125533
|
+
|
|
125534
|
+
/**
|
|
125535
|
+
* Creates a plain object from an ExperienceMetadataUpdated message. Also converts values to other types if specified.
|
|
125536
|
+
* @function toObject
|
|
125537
|
+
* @memberof ExperienceMetadataUpdated
|
|
125538
|
+
* @static
|
|
125539
|
+
* @param {ExperienceMetadataUpdated} message ExperienceMetadataUpdated
|
|
125540
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
125541
|
+
* @returns {Object.<string,*>} Plain object
|
|
125542
|
+
*/
|
|
125543
|
+
ExperienceMetadataUpdated.toObject = function toObject(message, options) {
|
|
125544
|
+
if (!options)
|
|
125545
|
+
options = {};
|
|
125546
|
+
var object = {};
|
|
125547
|
+
if (options.defaults) {
|
|
125548
|
+
object.experienceId = "";
|
|
125549
|
+
object.contentId = 0;
|
|
125550
|
+
object.contentSlug = "";
|
|
125551
|
+
object.fieldsStringified = "";
|
|
125552
|
+
}
|
|
125553
|
+
if (message.experienceId != null && message.hasOwnProperty("experienceId"))
|
|
125554
|
+
object.experienceId = message.experienceId;
|
|
125555
|
+
if (message.contentId != null && message.hasOwnProperty("contentId"))
|
|
125556
|
+
object.contentId = message.contentId;
|
|
125557
|
+
if (message.contentSlug != null && message.hasOwnProperty("contentSlug"))
|
|
125558
|
+
object.contentSlug = message.contentSlug;
|
|
125559
|
+
if (message.fieldsStringified != null && message.hasOwnProperty("fieldsStringified"))
|
|
125560
|
+
object.fieldsStringified = message.fieldsStringified;
|
|
125561
|
+
return object;
|
|
125562
|
+
};
|
|
125563
|
+
|
|
125564
|
+
/**
|
|
125565
|
+
* Converts this ExperienceMetadataUpdated to JSON.
|
|
125566
|
+
* @function toJSON
|
|
125567
|
+
* @memberof ExperienceMetadataUpdated
|
|
125568
|
+
* @instance
|
|
125569
|
+
* @returns {Object.<string,*>} JSON object
|
|
125570
|
+
*/
|
|
125571
|
+
ExperienceMetadataUpdated.prototype.toJSON = function toJSON() {
|
|
125572
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
125573
|
+
};
|
|
125574
|
+
|
|
125575
|
+
return ExperienceMetadataUpdated;
|
|
125576
|
+
})();
|
|
125577
|
+
|
|
125578
|
+
$root.ExperienceAITagsGenerated = (function() {
|
|
125579
|
+
|
|
125580
|
+
/**
|
|
125581
|
+
* Properties of an ExperienceAITagsGenerated.
|
|
125582
|
+
* @name IExperienceAITagsGenerated
|
|
125583
|
+
* @interface IExperienceAITagsGenerated
|
|
125584
|
+
* @property {string|null} [experienceId] ExperienceAITagsGenerated experienceId
|
|
125585
|
+
* @property {number|null} [contentId] ExperienceAITagsGenerated contentId
|
|
125586
|
+
* @property {string|null} [contentSlug] ExperienceAITagsGenerated contentSlug
|
|
125587
|
+
* @property {string|null} [tagsStringified] ExperienceAITagsGenerated tagsStringified
|
|
125588
|
+
* @property {string|null} [scoredTagsStringified] ExperienceAITagsGenerated scoredTagsStringified
|
|
125589
|
+
* @property {string|null} [modelVersion] ExperienceAITagsGenerated modelVersion
|
|
125590
|
+
*/
|
|
125591
|
+
|
|
125592
|
+
/**
|
|
125593
|
+
* Constructs a new ExperienceAITagsGenerated.
|
|
125594
|
+
* @name ExperienceAITagsGenerated
|
|
125595
|
+
* @classdesc Sent when an experience has new AI tags generated.
|
|
125596
|
+
* Fired by content-tagging-lambda.
|
|
125597
|
+
* Responsible team: Machine Learning / AI
|
|
125598
|
+
* Responsible domain: Content
|
|
125599
|
+
* @implements IExperienceAITagsGenerated
|
|
125600
|
+
* @constructor
|
|
125601
|
+
* @param {IExperienceAITagsGenerated=} [properties] Properties to set
|
|
125602
|
+
*/
|
|
125603
|
+
function ExperienceAITagsGenerated(properties) {
|
|
125604
|
+
if (properties)
|
|
125605
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
125606
|
+
if (properties[keys[i]] != null)
|
|
125607
|
+
this[keys[i]] = properties[keys[i]];
|
|
125608
|
+
}
|
|
125609
|
+
|
|
125610
|
+
/**
|
|
125611
|
+
* ExperienceAITagsGenerated experienceId.
|
|
125612
|
+
* @member {string} experienceId
|
|
125613
|
+
* @memberof ExperienceAITagsGenerated
|
|
125614
|
+
* @instance
|
|
125615
|
+
*/
|
|
125616
|
+
ExperienceAITagsGenerated.prototype.experienceId = "";
|
|
125617
|
+
|
|
125618
|
+
/**
|
|
125619
|
+
* ExperienceAITagsGenerated contentId.
|
|
125620
|
+
* @member {number} contentId
|
|
125621
|
+
* @memberof ExperienceAITagsGenerated
|
|
125622
|
+
* @instance
|
|
125623
|
+
*/
|
|
125624
|
+
ExperienceAITagsGenerated.prototype.contentId = 0;
|
|
125625
|
+
|
|
125626
|
+
/**
|
|
125627
|
+
* ExperienceAITagsGenerated contentSlug.
|
|
125628
|
+
* @member {string} contentSlug
|
|
125629
|
+
* @memberof ExperienceAITagsGenerated
|
|
125630
|
+
* @instance
|
|
125631
|
+
*/
|
|
125632
|
+
ExperienceAITagsGenerated.prototype.contentSlug = "";
|
|
125633
|
+
|
|
125634
|
+
/**
|
|
125635
|
+
* ExperienceAITagsGenerated tagsStringified.
|
|
125636
|
+
* @member {string} tagsStringified
|
|
125637
|
+
* @memberof ExperienceAITagsGenerated
|
|
125638
|
+
* @instance
|
|
125639
|
+
*/
|
|
125640
|
+
ExperienceAITagsGenerated.prototype.tagsStringified = "";
|
|
125641
|
+
|
|
125642
|
+
/**
|
|
125643
|
+
* ExperienceAITagsGenerated scoredTagsStringified.
|
|
125644
|
+
* @member {string} scoredTagsStringified
|
|
125645
|
+
* @memberof ExperienceAITagsGenerated
|
|
125646
|
+
* @instance
|
|
125647
|
+
*/
|
|
125648
|
+
ExperienceAITagsGenerated.prototype.scoredTagsStringified = "";
|
|
125649
|
+
|
|
125650
|
+
/**
|
|
125651
|
+
* ExperienceAITagsGenerated modelVersion.
|
|
125652
|
+
* @member {string} modelVersion
|
|
125653
|
+
* @memberof ExperienceAITagsGenerated
|
|
125654
|
+
* @instance
|
|
125655
|
+
*/
|
|
125656
|
+
ExperienceAITagsGenerated.prototype.modelVersion = "";
|
|
125657
|
+
|
|
125658
|
+
/**
|
|
125659
|
+
* Creates a new ExperienceAITagsGenerated instance using the specified properties.
|
|
125660
|
+
* @function create
|
|
125661
|
+
* @memberof ExperienceAITagsGenerated
|
|
125662
|
+
* @static
|
|
125663
|
+
* @param {IExperienceAITagsGenerated=} [properties] Properties to set
|
|
125664
|
+
* @returns {ExperienceAITagsGenerated} ExperienceAITagsGenerated instance
|
|
125665
|
+
*/
|
|
125666
|
+
ExperienceAITagsGenerated.create = function create(properties) {
|
|
125667
|
+
return new ExperienceAITagsGenerated(properties);
|
|
125668
|
+
};
|
|
125669
|
+
|
|
125670
|
+
/**
|
|
125671
|
+
* Encodes the specified ExperienceAITagsGenerated message. Does not implicitly {@link ExperienceAITagsGenerated.verify|verify} messages.
|
|
125672
|
+
* @function encode
|
|
125673
|
+
* @memberof ExperienceAITagsGenerated
|
|
125674
|
+
* @static
|
|
125675
|
+
* @param {IExperienceAITagsGenerated} message ExperienceAITagsGenerated message or plain object to encode
|
|
125676
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
125677
|
+
* @returns {$protobuf.Writer} Writer
|
|
125678
|
+
*/
|
|
125679
|
+
ExperienceAITagsGenerated.encode = function encode(message, writer) {
|
|
125680
|
+
if (!writer)
|
|
125681
|
+
writer = $Writer.create();
|
|
125682
|
+
if (message.experienceId != null && message.hasOwnProperty("experienceId"))
|
|
125683
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.experienceId);
|
|
125684
|
+
if (message.contentId != null && message.hasOwnProperty("contentId"))
|
|
125685
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.contentId);
|
|
125686
|
+
if (message.contentSlug != null && message.hasOwnProperty("contentSlug"))
|
|
125687
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.contentSlug);
|
|
125688
|
+
if (message.tagsStringified != null && message.hasOwnProperty("tagsStringified"))
|
|
125689
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.tagsStringified);
|
|
125690
|
+
if (message.scoredTagsStringified != null && message.hasOwnProperty("scoredTagsStringified"))
|
|
125691
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.scoredTagsStringified);
|
|
125692
|
+
if (message.modelVersion != null && message.hasOwnProperty("modelVersion"))
|
|
125693
|
+
writer.uint32(/* id 6, wireType 2 =*/50).string(message.modelVersion);
|
|
125694
|
+
return writer;
|
|
125695
|
+
};
|
|
125696
|
+
|
|
125697
|
+
/**
|
|
125698
|
+
* Encodes the specified ExperienceAITagsGenerated message, length delimited. Does not implicitly {@link ExperienceAITagsGenerated.verify|verify} messages.
|
|
125699
|
+
* @function encodeDelimited
|
|
125700
|
+
* @memberof ExperienceAITagsGenerated
|
|
125701
|
+
* @static
|
|
125702
|
+
* @param {IExperienceAITagsGenerated} message ExperienceAITagsGenerated message or plain object to encode
|
|
125703
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
125704
|
+
* @returns {$protobuf.Writer} Writer
|
|
125705
|
+
*/
|
|
125706
|
+
ExperienceAITagsGenerated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
125707
|
+
return this.encode(message, writer).ldelim();
|
|
125708
|
+
};
|
|
125709
|
+
|
|
125710
|
+
/**
|
|
125711
|
+
* Decodes an ExperienceAITagsGenerated message from the specified reader or buffer.
|
|
125712
|
+
* @function decode
|
|
125713
|
+
* @memberof ExperienceAITagsGenerated
|
|
125714
|
+
* @static
|
|
125715
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
125716
|
+
* @param {number} [length] Message length if known beforehand
|
|
125717
|
+
* @returns {ExperienceAITagsGenerated} ExperienceAITagsGenerated
|
|
125718
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
125719
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
125720
|
+
*/
|
|
125721
|
+
ExperienceAITagsGenerated.decode = function decode(reader, length) {
|
|
125722
|
+
if (!(reader instanceof $Reader))
|
|
125723
|
+
reader = $Reader.create(reader);
|
|
125724
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ExperienceAITagsGenerated();
|
|
125725
|
+
while (reader.pos < end) {
|
|
125726
|
+
var tag = reader.uint32();
|
|
125727
|
+
switch (tag >>> 3) {
|
|
125728
|
+
case 1:
|
|
125729
|
+
message.experienceId = reader.string();
|
|
125730
|
+
break;
|
|
125731
|
+
case 2:
|
|
125732
|
+
message.contentId = reader.uint32();
|
|
125733
|
+
break;
|
|
125734
|
+
case 3:
|
|
125735
|
+
message.contentSlug = reader.string();
|
|
125736
|
+
break;
|
|
125737
|
+
case 4:
|
|
125738
|
+
message.tagsStringified = reader.string();
|
|
125739
|
+
break;
|
|
125740
|
+
case 5:
|
|
125741
|
+
message.scoredTagsStringified = reader.string();
|
|
125742
|
+
break;
|
|
125743
|
+
case 6:
|
|
125744
|
+
message.modelVersion = reader.string();
|
|
125745
|
+
break;
|
|
125746
|
+
default:
|
|
125747
|
+
reader.skipType(tag & 7);
|
|
125748
|
+
break;
|
|
125749
|
+
}
|
|
125750
|
+
}
|
|
125751
|
+
return message;
|
|
125752
|
+
};
|
|
125753
|
+
|
|
125754
|
+
/**
|
|
125755
|
+
* Decodes an ExperienceAITagsGenerated message from the specified reader or buffer, length delimited.
|
|
125756
|
+
* @function decodeDelimited
|
|
125757
|
+
* @memberof ExperienceAITagsGenerated
|
|
125758
|
+
* @static
|
|
125759
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
125760
|
+
* @returns {ExperienceAITagsGenerated} ExperienceAITagsGenerated
|
|
125761
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
125762
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
125763
|
+
*/
|
|
125764
|
+
ExperienceAITagsGenerated.decodeDelimited = function decodeDelimited(reader) {
|
|
125765
|
+
if (!(reader instanceof $Reader))
|
|
125766
|
+
reader = new $Reader(reader);
|
|
125767
|
+
return this.decode(reader, reader.uint32());
|
|
125768
|
+
};
|
|
125769
|
+
|
|
125770
|
+
/**
|
|
125771
|
+
* Verifies an ExperienceAITagsGenerated message.
|
|
125772
|
+
* @function verify
|
|
125773
|
+
* @memberof ExperienceAITagsGenerated
|
|
125774
|
+
* @static
|
|
125775
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
125776
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
125777
|
+
*/
|
|
125778
|
+
ExperienceAITagsGenerated.verify = function verify(message) {
|
|
125779
|
+
if (typeof message !== "object" || message === null)
|
|
125780
|
+
return "object expected";
|
|
125781
|
+
if (message.experienceId != null && message.hasOwnProperty("experienceId"))
|
|
125782
|
+
if (!$util.isString(message.experienceId))
|
|
125783
|
+
return "experienceId: string expected";
|
|
125784
|
+
if (message.contentId != null && message.hasOwnProperty("contentId"))
|
|
125785
|
+
if (!$util.isInteger(message.contentId))
|
|
125786
|
+
return "contentId: integer expected";
|
|
125787
|
+
if (message.contentSlug != null && message.hasOwnProperty("contentSlug"))
|
|
125788
|
+
if (!$util.isString(message.contentSlug))
|
|
125789
|
+
return "contentSlug: string expected";
|
|
125790
|
+
if (message.tagsStringified != null && message.hasOwnProperty("tagsStringified"))
|
|
125791
|
+
if (!$util.isString(message.tagsStringified))
|
|
125792
|
+
return "tagsStringified: string expected";
|
|
125793
|
+
if (message.scoredTagsStringified != null && message.hasOwnProperty("scoredTagsStringified"))
|
|
125794
|
+
if (!$util.isString(message.scoredTagsStringified))
|
|
125795
|
+
return "scoredTagsStringified: string expected";
|
|
125796
|
+
if (message.modelVersion != null && message.hasOwnProperty("modelVersion"))
|
|
125797
|
+
if (!$util.isString(message.modelVersion))
|
|
125798
|
+
return "modelVersion: string expected";
|
|
125799
|
+
return null;
|
|
125800
|
+
};
|
|
125801
|
+
|
|
125802
|
+
/**
|
|
125803
|
+
* Creates an ExperienceAITagsGenerated message from a plain object. Also converts values to their respective internal types.
|
|
125804
|
+
* @function fromObject
|
|
125805
|
+
* @memberof ExperienceAITagsGenerated
|
|
125806
|
+
* @static
|
|
125807
|
+
* @param {Object.<string,*>} object Plain object
|
|
125808
|
+
* @returns {ExperienceAITagsGenerated} ExperienceAITagsGenerated
|
|
125809
|
+
*/
|
|
125810
|
+
ExperienceAITagsGenerated.fromObject = function fromObject(object) {
|
|
125811
|
+
if (object instanceof $root.ExperienceAITagsGenerated)
|
|
125812
|
+
return object;
|
|
125813
|
+
var message = new $root.ExperienceAITagsGenerated();
|
|
125814
|
+
if (object.experienceId != null)
|
|
125815
|
+
message.experienceId = String(object.experienceId);
|
|
125816
|
+
if (object.contentId != null)
|
|
125817
|
+
message.contentId = object.contentId >>> 0;
|
|
125818
|
+
if (object.contentSlug != null)
|
|
125819
|
+
message.contentSlug = String(object.contentSlug);
|
|
125820
|
+
if (object.tagsStringified != null)
|
|
125821
|
+
message.tagsStringified = String(object.tagsStringified);
|
|
125822
|
+
if (object.scoredTagsStringified != null)
|
|
125823
|
+
message.scoredTagsStringified = String(object.scoredTagsStringified);
|
|
125824
|
+
if (object.modelVersion != null)
|
|
125825
|
+
message.modelVersion = String(object.modelVersion);
|
|
125826
|
+
return message;
|
|
125827
|
+
};
|
|
125828
|
+
|
|
125829
|
+
/**
|
|
125830
|
+
* Creates a plain object from an ExperienceAITagsGenerated message. Also converts values to other types if specified.
|
|
125831
|
+
* @function toObject
|
|
125832
|
+
* @memberof ExperienceAITagsGenerated
|
|
125833
|
+
* @static
|
|
125834
|
+
* @param {ExperienceAITagsGenerated} message ExperienceAITagsGenerated
|
|
125835
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
125836
|
+
* @returns {Object.<string,*>} Plain object
|
|
125837
|
+
*/
|
|
125838
|
+
ExperienceAITagsGenerated.toObject = function toObject(message, options) {
|
|
125839
|
+
if (!options)
|
|
125840
|
+
options = {};
|
|
125841
|
+
var object = {};
|
|
125842
|
+
if (options.defaults) {
|
|
125843
|
+
object.experienceId = "";
|
|
125844
|
+
object.contentId = 0;
|
|
125845
|
+
object.contentSlug = "";
|
|
125846
|
+
object.tagsStringified = "";
|
|
125847
|
+
object.scoredTagsStringified = "";
|
|
125848
|
+
object.modelVersion = "";
|
|
125849
|
+
}
|
|
125850
|
+
if (message.experienceId != null && message.hasOwnProperty("experienceId"))
|
|
125851
|
+
object.experienceId = message.experienceId;
|
|
125852
|
+
if (message.contentId != null && message.hasOwnProperty("contentId"))
|
|
125853
|
+
object.contentId = message.contentId;
|
|
125854
|
+
if (message.contentSlug != null && message.hasOwnProperty("contentSlug"))
|
|
125855
|
+
object.contentSlug = message.contentSlug;
|
|
125856
|
+
if (message.tagsStringified != null && message.hasOwnProperty("tagsStringified"))
|
|
125857
|
+
object.tagsStringified = message.tagsStringified;
|
|
125858
|
+
if (message.scoredTagsStringified != null && message.hasOwnProperty("scoredTagsStringified"))
|
|
125859
|
+
object.scoredTagsStringified = message.scoredTagsStringified;
|
|
125860
|
+
if (message.modelVersion != null && message.hasOwnProperty("modelVersion"))
|
|
125861
|
+
object.modelVersion = message.modelVersion;
|
|
125862
|
+
return object;
|
|
125863
|
+
};
|
|
125864
|
+
|
|
125865
|
+
/**
|
|
125866
|
+
* Converts this ExperienceAITagsGenerated to JSON.
|
|
125867
|
+
* @function toJSON
|
|
125868
|
+
* @memberof ExperienceAITagsGenerated
|
|
125869
|
+
* @instance
|
|
125870
|
+
* @returns {Object.<string,*>} JSON object
|
|
125871
|
+
*/
|
|
125872
|
+
ExperienceAITagsGenerated.prototype.toJSON = function toJSON() {
|
|
125873
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
125874
|
+
};
|
|
125875
|
+
|
|
125876
|
+
return ExperienceAITagsGenerated;
|
|
125877
|
+
})();
|
|
125878
|
+
|
|
125879
|
+
$root.ExperienceTagsUpserted = (function() {
|
|
125880
|
+
|
|
125881
|
+
/**
|
|
125882
|
+
* Properties of an ExperienceTagsUpserted.
|
|
125883
|
+
* @name IExperienceTagsUpserted
|
|
125884
|
+
* @interface IExperienceTagsUpserted
|
|
125885
|
+
* @property {string|null} [experienceId] ExperienceTagsUpserted experienceId
|
|
125886
|
+
* @property {number|null} [contentId] ExperienceTagsUpserted contentId
|
|
125887
|
+
* @property {string|null} [contentSlug] ExperienceTagsUpserted contentSlug
|
|
125888
|
+
* @property {string|null} [tagsStringified] ExperienceTagsUpserted tagsStringified
|
|
125889
|
+
*/
|
|
125890
|
+
|
|
125891
|
+
/**
|
|
125892
|
+
* Constructs a new ExperienceTagsUpserted.
|
|
125893
|
+
* @name ExperienceTagsUpserted
|
|
125894
|
+
* @classdesc Sent when an experience's tags are updated, either via AI generation or human override.
|
|
125895
|
+
* Fired by hs-content-service.
|
|
125896
|
+
* Responsible team: Core Platform
|
|
125897
|
+
* Responsible domain: Content
|
|
125898
|
+
* @implements IExperienceTagsUpserted
|
|
125899
|
+
* @constructor
|
|
125900
|
+
* @param {IExperienceTagsUpserted=} [properties] Properties to set
|
|
125901
|
+
*/
|
|
125902
|
+
function ExperienceTagsUpserted(properties) {
|
|
125903
|
+
if (properties)
|
|
125904
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
125905
|
+
if (properties[keys[i]] != null)
|
|
125906
|
+
this[keys[i]] = properties[keys[i]];
|
|
125907
|
+
}
|
|
125908
|
+
|
|
125909
|
+
/**
|
|
125910
|
+
* ExperienceTagsUpserted experienceId.
|
|
125911
|
+
* @member {string} experienceId
|
|
125912
|
+
* @memberof ExperienceTagsUpserted
|
|
125913
|
+
* @instance
|
|
125914
|
+
*/
|
|
125915
|
+
ExperienceTagsUpserted.prototype.experienceId = "";
|
|
125916
|
+
|
|
125917
|
+
/**
|
|
125918
|
+
* ExperienceTagsUpserted contentId.
|
|
125919
|
+
* @member {number} contentId
|
|
125920
|
+
* @memberof ExperienceTagsUpserted
|
|
125921
|
+
* @instance
|
|
125922
|
+
*/
|
|
125923
|
+
ExperienceTagsUpserted.prototype.contentId = 0;
|
|
125924
|
+
|
|
125925
|
+
/**
|
|
125926
|
+
* ExperienceTagsUpserted contentSlug.
|
|
125927
|
+
* @member {string} contentSlug
|
|
125928
|
+
* @memberof ExperienceTagsUpserted
|
|
125929
|
+
* @instance
|
|
125930
|
+
*/
|
|
125931
|
+
ExperienceTagsUpserted.prototype.contentSlug = "";
|
|
125932
|
+
|
|
125933
|
+
/**
|
|
125934
|
+
* ExperienceTagsUpserted tagsStringified.
|
|
125935
|
+
* @member {string} tagsStringified
|
|
125936
|
+
* @memberof ExperienceTagsUpserted
|
|
125937
|
+
* @instance
|
|
125938
|
+
*/
|
|
125939
|
+
ExperienceTagsUpserted.prototype.tagsStringified = "";
|
|
125940
|
+
|
|
125941
|
+
/**
|
|
125942
|
+
* Creates a new ExperienceTagsUpserted instance using the specified properties.
|
|
125943
|
+
* @function create
|
|
125944
|
+
* @memberof ExperienceTagsUpserted
|
|
125945
|
+
* @static
|
|
125946
|
+
* @param {IExperienceTagsUpserted=} [properties] Properties to set
|
|
125947
|
+
* @returns {ExperienceTagsUpserted} ExperienceTagsUpserted instance
|
|
125948
|
+
*/
|
|
125949
|
+
ExperienceTagsUpserted.create = function create(properties) {
|
|
125950
|
+
return new ExperienceTagsUpserted(properties);
|
|
125951
|
+
};
|
|
125952
|
+
|
|
125953
|
+
/**
|
|
125954
|
+
* Encodes the specified ExperienceTagsUpserted message. Does not implicitly {@link ExperienceTagsUpserted.verify|verify} messages.
|
|
125955
|
+
* @function encode
|
|
125956
|
+
* @memberof ExperienceTagsUpserted
|
|
125957
|
+
* @static
|
|
125958
|
+
* @param {IExperienceTagsUpserted} message ExperienceTagsUpserted message or plain object to encode
|
|
125959
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
125960
|
+
* @returns {$protobuf.Writer} Writer
|
|
125961
|
+
*/
|
|
125962
|
+
ExperienceTagsUpserted.encode = function encode(message, writer) {
|
|
125963
|
+
if (!writer)
|
|
125964
|
+
writer = $Writer.create();
|
|
125965
|
+
if (message.experienceId != null && message.hasOwnProperty("experienceId"))
|
|
125966
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.experienceId);
|
|
125967
|
+
if (message.contentId != null && message.hasOwnProperty("contentId"))
|
|
125968
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.contentId);
|
|
125969
|
+
if (message.contentSlug != null && message.hasOwnProperty("contentSlug"))
|
|
125970
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.contentSlug);
|
|
125971
|
+
if (message.tagsStringified != null && message.hasOwnProperty("tagsStringified"))
|
|
125972
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.tagsStringified);
|
|
125973
|
+
return writer;
|
|
125974
|
+
};
|
|
125975
|
+
|
|
125976
|
+
/**
|
|
125977
|
+
* Encodes the specified ExperienceTagsUpserted message, length delimited. Does not implicitly {@link ExperienceTagsUpserted.verify|verify} messages.
|
|
125978
|
+
* @function encodeDelimited
|
|
125979
|
+
* @memberof ExperienceTagsUpserted
|
|
125980
|
+
* @static
|
|
125981
|
+
* @param {IExperienceTagsUpserted} message ExperienceTagsUpserted message or plain object to encode
|
|
125982
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
125983
|
+
* @returns {$protobuf.Writer} Writer
|
|
125984
|
+
*/
|
|
125985
|
+
ExperienceTagsUpserted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
125986
|
+
return this.encode(message, writer).ldelim();
|
|
125987
|
+
};
|
|
125988
|
+
|
|
125989
|
+
/**
|
|
125990
|
+
* Decodes an ExperienceTagsUpserted message from the specified reader or buffer.
|
|
125991
|
+
* @function decode
|
|
125992
|
+
* @memberof ExperienceTagsUpserted
|
|
125993
|
+
* @static
|
|
125994
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
125995
|
+
* @param {number} [length] Message length if known beforehand
|
|
125996
|
+
* @returns {ExperienceTagsUpserted} ExperienceTagsUpserted
|
|
125997
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
125998
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
125999
|
+
*/
|
|
126000
|
+
ExperienceTagsUpserted.decode = function decode(reader, length) {
|
|
126001
|
+
if (!(reader instanceof $Reader))
|
|
126002
|
+
reader = $Reader.create(reader);
|
|
126003
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ExperienceTagsUpserted();
|
|
126004
|
+
while (reader.pos < end) {
|
|
126005
|
+
var tag = reader.uint32();
|
|
126006
|
+
switch (tag >>> 3) {
|
|
126007
|
+
case 1:
|
|
126008
|
+
message.experienceId = reader.string();
|
|
126009
|
+
break;
|
|
126010
|
+
case 2:
|
|
126011
|
+
message.contentId = reader.uint32();
|
|
126012
|
+
break;
|
|
126013
|
+
case 3:
|
|
126014
|
+
message.contentSlug = reader.string();
|
|
126015
|
+
break;
|
|
126016
|
+
case 4:
|
|
126017
|
+
message.tagsStringified = reader.string();
|
|
126018
|
+
break;
|
|
126019
|
+
default:
|
|
126020
|
+
reader.skipType(tag & 7);
|
|
126021
|
+
break;
|
|
126022
|
+
}
|
|
126023
|
+
}
|
|
126024
|
+
return message;
|
|
126025
|
+
};
|
|
126026
|
+
|
|
126027
|
+
/**
|
|
126028
|
+
* Decodes an ExperienceTagsUpserted message from the specified reader or buffer, length delimited.
|
|
126029
|
+
* @function decodeDelimited
|
|
126030
|
+
* @memberof ExperienceTagsUpserted
|
|
126031
|
+
* @static
|
|
126032
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
126033
|
+
* @returns {ExperienceTagsUpserted} ExperienceTagsUpserted
|
|
126034
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
126035
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
126036
|
+
*/
|
|
126037
|
+
ExperienceTagsUpserted.decodeDelimited = function decodeDelimited(reader) {
|
|
126038
|
+
if (!(reader instanceof $Reader))
|
|
126039
|
+
reader = new $Reader(reader);
|
|
126040
|
+
return this.decode(reader, reader.uint32());
|
|
126041
|
+
};
|
|
126042
|
+
|
|
126043
|
+
/**
|
|
126044
|
+
* Verifies an ExperienceTagsUpserted message.
|
|
126045
|
+
* @function verify
|
|
126046
|
+
* @memberof ExperienceTagsUpserted
|
|
126047
|
+
* @static
|
|
126048
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
126049
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
126050
|
+
*/
|
|
126051
|
+
ExperienceTagsUpserted.verify = function verify(message) {
|
|
126052
|
+
if (typeof message !== "object" || message === null)
|
|
126053
|
+
return "object expected";
|
|
126054
|
+
if (message.experienceId != null && message.hasOwnProperty("experienceId"))
|
|
126055
|
+
if (!$util.isString(message.experienceId))
|
|
126056
|
+
return "experienceId: string expected";
|
|
126057
|
+
if (message.contentId != null && message.hasOwnProperty("contentId"))
|
|
126058
|
+
if (!$util.isInteger(message.contentId))
|
|
126059
|
+
return "contentId: integer expected";
|
|
126060
|
+
if (message.contentSlug != null && message.hasOwnProperty("contentSlug"))
|
|
126061
|
+
if (!$util.isString(message.contentSlug))
|
|
126062
|
+
return "contentSlug: string expected";
|
|
126063
|
+
if (message.tagsStringified != null && message.hasOwnProperty("tagsStringified"))
|
|
126064
|
+
if (!$util.isString(message.tagsStringified))
|
|
126065
|
+
return "tagsStringified: string expected";
|
|
126066
|
+
return null;
|
|
126067
|
+
};
|
|
126068
|
+
|
|
126069
|
+
/**
|
|
126070
|
+
* Creates an ExperienceTagsUpserted message from a plain object. Also converts values to their respective internal types.
|
|
126071
|
+
* @function fromObject
|
|
126072
|
+
* @memberof ExperienceTagsUpserted
|
|
126073
|
+
* @static
|
|
126074
|
+
* @param {Object.<string,*>} object Plain object
|
|
126075
|
+
* @returns {ExperienceTagsUpserted} ExperienceTagsUpserted
|
|
126076
|
+
*/
|
|
126077
|
+
ExperienceTagsUpserted.fromObject = function fromObject(object) {
|
|
126078
|
+
if (object instanceof $root.ExperienceTagsUpserted)
|
|
126079
|
+
return object;
|
|
126080
|
+
var message = new $root.ExperienceTagsUpserted();
|
|
126081
|
+
if (object.experienceId != null)
|
|
126082
|
+
message.experienceId = String(object.experienceId);
|
|
126083
|
+
if (object.contentId != null)
|
|
126084
|
+
message.contentId = object.contentId >>> 0;
|
|
126085
|
+
if (object.contentSlug != null)
|
|
126086
|
+
message.contentSlug = String(object.contentSlug);
|
|
126087
|
+
if (object.tagsStringified != null)
|
|
126088
|
+
message.tagsStringified = String(object.tagsStringified);
|
|
126089
|
+
return message;
|
|
126090
|
+
};
|
|
126091
|
+
|
|
126092
|
+
/**
|
|
126093
|
+
* Creates a plain object from an ExperienceTagsUpserted message. Also converts values to other types if specified.
|
|
126094
|
+
* @function toObject
|
|
126095
|
+
* @memberof ExperienceTagsUpserted
|
|
126096
|
+
* @static
|
|
126097
|
+
* @param {ExperienceTagsUpserted} message ExperienceTagsUpserted
|
|
126098
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
126099
|
+
* @returns {Object.<string,*>} Plain object
|
|
126100
|
+
*/
|
|
126101
|
+
ExperienceTagsUpserted.toObject = function toObject(message, options) {
|
|
126102
|
+
if (!options)
|
|
126103
|
+
options = {};
|
|
126104
|
+
var object = {};
|
|
126105
|
+
if (options.defaults) {
|
|
126106
|
+
object.experienceId = "";
|
|
126107
|
+
object.contentId = 0;
|
|
126108
|
+
object.contentSlug = "";
|
|
126109
|
+
object.tagsStringified = "";
|
|
126110
|
+
}
|
|
126111
|
+
if (message.experienceId != null && message.hasOwnProperty("experienceId"))
|
|
126112
|
+
object.experienceId = message.experienceId;
|
|
126113
|
+
if (message.contentId != null && message.hasOwnProperty("contentId"))
|
|
126114
|
+
object.contentId = message.contentId;
|
|
126115
|
+
if (message.contentSlug != null && message.hasOwnProperty("contentSlug"))
|
|
126116
|
+
object.contentSlug = message.contentSlug;
|
|
126117
|
+
if (message.tagsStringified != null && message.hasOwnProperty("tagsStringified"))
|
|
126118
|
+
object.tagsStringified = message.tagsStringified;
|
|
126119
|
+
return object;
|
|
126120
|
+
};
|
|
126121
|
+
|
|
126122
|
+
/**
|
|
126123
|
+
* Converts this ExperienceTagsUpserted to JSON.
|
|
126124
|
+
* @function toJSON
|
|
126125
|
+
* @memberof ExperienceTagsUpserted
|
|
126126
|
+
* @instance
|
|
126127
|
+
* @returns {Object.<string,*>} JSON object
|
|
126128
|
+
*/
|
|
126129
|
+
ExperienceTagsUpserted.prototype.toJSON = function toJSON() {
|
|
126130
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
126131
|
+
};
|
|
126132
|
+
|
|
126133
|
+
return ExperienceTagsUpserted;
|
|
126134
|
+
})();
|
|
126135
|
+
|
|
126136
|
+
$root.ExperienceTagsDeleted = (function() {
|
|
126137
|
+
|
|
126138
|
+
/**
|
|
126139
|
+
* Properties of an ExperienceTagsDeleted.
|
|
126140
|
+
* @name IExperienceTagsDeleted
|
|
126141
|
+
* @interface IExperienceTagsDeleted
|
|
126142
|
+
* @property {string|null} [experienceId] ExperienceTagsDeleted experienceId
|
|
126143
|
+
* @property {number|null} [contentId] ExperienceTagsDeleted contentId
|
|
126144
|
+
* @property {string|null} [contentSlug] ExperienceTagsDeleted contentSlug
|
|
126145
|
+
*/
|
|
126146
|
+
|
|
126147
|
+
/**
|
|
126148
|
+
* Constructs a new ExperienceTagsDeleted.
|
|
126149
|
+
* @name ExperienceTagsDeleted
|
|
126150
|
+
* @classdesc Sent when an experience's tags (all of them) are deleted.
|
|
126151
|
+
* Fired by hs-content-service.
|
|
126152
|
+
* Responsible team: Core Platform
|
|
126153
|
+
* Responsible domain: Content
|
|
126154
|
+
* @implements IExperienceTagsDeleted
|
|
126155
|
+
* @constructor
|
|
126156
|
+
* @param {IExperienceTagsDeleted=} [properties] Properties to set
|
|
126157
|
+
*/
|
|
126158
|
+
function ExperienceTagsDeleted(properties) {
|
|
126159
|
+
if (properties)
|
|
126160
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
126161
|
+
if (properties[keys[i]] != null)
|
|
126162
|
+
this[keys[i]] = properties[keys[i]];
|
|
126163
|
+
}
|
|
126164
|
+
|
|
126165
|
+
/**
|
|
126166
|
+
* ExperienceTagsDeleted experienceId.
|
|
126167
|
+
* @member {string} experienceId
|
|
126168
|
+
* @memberof ExperienceTagsDeleted
|
|
126169
|
+
* @instance
|
|
126170
|
+
*/
|
|
126171
|
+
ExperienceTagsDeleted.prototype.experienceId = "";
|
|
126172
|
+
|
|
126173
|
+
/**
|
|
126174
|
+
* ExperienceTagsDeleted contentId.
|
|
126175
|
+
* @member {number} contentId
|
|
126176
|
+
* @memberof ExperienceTagsDeleted
|
|
126177
|
+
* @instance
|
|
126178
|
+
*/
|
|
126179
|
+
ExperienceTagsDeleted.prototype.contentId = 0;
|
|
126180
|
+
|
|
126181
|
+
/**
|
|
126182
|
+
* ExperienceTagsDeleted contentSlug.
|
|
126183
|
+
* @member {string} contentSlug
|
|
126184
|
+
* @memberof ExperienceTagsDeleted
|
|
126185
|
+
* @instance
|
|
126186
|
+
*/
|
|
126187
|
+
ExperienceTagsDeleted.prototype.contentSlug = "";
|
|
126188
|
+
|
|
126189
|
+
/**
|
|
126190
|
+
* Creates a new ExperienceTagsDeleted instance using the specified properties.
|
|
126191
|
+
* @function create
|
|
126192
|
+
* @memberof ExperienceTagsDeleted
|
|
126193
|
+
* @static
|
|
126194
|
+
* @param {IExperienceTagsDeleted=} [properties] Properties to set
|
|
126195
|
+
* @returns {ExperienceTagsDeleted} ExperienceTagsDeleted instance
|
|
126196
|
+
*/
|
|
126197
|
+
ExperienceTagsDeleted.create = function create(properties) {
|
|
126198
|
+
return new ExperienceTagsDeleted(properties);
|
|
126199
|
+
};
|
|
126200
|
+
|
|
126201
|
+
/**
|
|
126202
|
+
* Encodes the specified ExperienceTagsDeleted message. Does not implicitly {@link ExperienceTagsDeleted.verify|verify} messages.
|
|
126203
|
+
* @function encode
|
|
126204
|
+
* @memberof ExperienceTagsDeleted
|
|
126205
|
+
* @static
|
|
126206
|
+
* @param {IExperienceTagsDeleted} message ExperienceTagsDeleted message or plain object to encode
|
|
126207
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
126208
|
+
* @returns {$protobuf.Writer} Writer
|
|
126209
|
+
*/
|
|
126210
|
+
ExperienceTagsDeleted.encode = function encode(message, writer) {
|
|
126211
|
+
if (!writer)
|
|
126212
|
+
writer = $Writer.create();
|
|
126213
|
+
if (message.experienceId != null && message.hasOwnProperty("experienceId"))
|
|
126214
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.experienceId);
|
|
126215
|
+
if (message.contentId != null && message.hasOwnProperty("contentId"))
|
|
126216
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.contentId);
|
|
126217
|
+
if (message.contentSlug != null && message.hasOwnProperty("contentSlug"))
|
|
126218
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.contentSlug);
|
|
126219
|
+
return writer;
|
|
126220
|
+
};
|
|
126221
|
+
|
|
126222
|
+
/**
|
|
126223
|
+
* Encodes the specified ExperienceTagsDeleted message, length delimited. Does not implicitly {@link ExperienceTagsDeleted.verify|verify} messages.
|
|
126224
|
+
* @function encodeDelimited
|
|
126225
|
+
* @memberof ExperienceTagsDeleted
|
|
126226
|
+
* @static
|
|
126227
|
+
* @param {IExperienceTagsDeleted} message ExperienceTagsDeleted message or plain object to encode
|
|
126228
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
126229
|
+
* @returns {$protobuf.Writer} Writer
|
|
126230
|
+
*/
|
|
126231
|
+
ExperienceTagsDeleted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
126232
|
+
return this.encode(message, writer).ldelim();
|
|
126233
|
+
};
|
|
126234
|
+
|
|
126235
|
+
/**
|
|
126236
|
+
* Decodes an ExperienceTagsDeleted message from the specified reader or buffer.
|
|
126237
|
+
* @function decode
|
|
126238
|
+
* @memberof ExperienceTagsDeleted
|
|
126239
|
+
* @static
|
|
126240
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
126241
|
+
* @param {number} [length] Message length if known beforehand
|
|
126242
|
+
* @returns {ExperienceTagsDeleted} ExperienceTagsDeleted
|
|
126243
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
126244
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
126245
|
+
*/
|
|
126246
|
+
ExperienceTagsDeleted.decode = function decode(reader, length) {
|
|
126247
|
+
if (!(reader instanceof $Reader))
|
|
126248
|
+
reader = $Reader.create(reader);
|
|
126249
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ExperienceTagsDeleted();
|
|
126250
|
+
while (reader.pos < end) {
|
|
126251
|
+
var tag = reader.uint32();
|
|
126252
|
+
switch (tag >>> 3) {
|
|
126253
|
+
case 1:
|
|
126254
|
+
message.experienceId = reader.string();
|
|
126255
|
+
break;
|
|
126256
|
+
case 2:
|
|
126257
|
+
message.contentId = reader.uint32();
|
|
126258
|
+
break;
|
|
126259
|
+
case 3:
|
|
126260
|
+
message.contentSlug = reader.string();
|
|
126261
|
+
break;
|
|
126262
|
+
default:
|
|
126263
|
+
reader.skipType(tag & 7);
|
|
126264
|
+
break;
|
|
126265
|
+
}
|
|
126266
|
+
}
|
|
126267
|
+
return message;
|
|
126268
|
+
};
|
|
126269
|
+
|
|
126270
|
+
/**
|
|
126271
|
+
* Decodes an ExperienceTagsDeleted message from the specified reader or buffer, length delimited.
|
|
126272
|
+
* @function decodeDelimited
|
|
126273
|
+
* @memberof ExperienceTagsDeleted
|
|
126274
|
+
* @static
|
|
126275
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
126276
|
+
* @returns {ExperienceTagsDeleted} ExperienceTagsDeleted
|
|
126277
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
126278
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
126279
|
+
*/
|
|
126280
|
+
ExperienceTagsDeleted.decodeDelimited = function decodeDelimited(reader) {
|
|
126281
|
+
if (!(reader instanceof $Reader))
|
|
126282
|
+
reader = new $Reader(reader);
|
|
126283
|
+
return this.decode(reader, reader.uint32());
|
|
126284
|
+
};
|
|
126285
|
+
|
|
126286
|
+
/**
|
|
126287
|
+
* Verifies an ExperienceTagsDeleted message.
|
|
126288
|
+
* @function verify
|
|
126289
|
+
* @memberof ExperienceTagsDeleted
|
|
126290
|
+
* @static
|
|
126291
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
126292
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
126293
|
+
*/
|
|
126294
|
+
ExperienceTagsDeleted.verify = function verify(message) {
|
|
126295
|
+
if (typeof message !== "object" || message === null)
|
|
126296
|
+
return "object expected";
|
|
126297
|
+
if (message.experienceId != null && message.hasOwnProperty("experienceId"))
|
|
126298
|
+
if (!$util.isString(message.experienceId))
|
|
126299
|
+
return "experienceId: string expected";
|
|
126300
|
+
if (message.contentId != null && message.hasOwnProperty("contentId"))
|
|
126301
|
+
if (!$util.isInteger(message.contentId))
|
|
126302
|
+
return "contentId: integer expected";
|
|
126303
|
+
if (message.contentSlug != null && message.hasOwnProperty("contentSlug"))
|
|
126304
|
+
if (!$util.isString(message.contentSlug))
|
|
126305
|
+
return "contentSlug: string expected";
|
|
126306
|
+
return null;
|
|
126307
|
+
};
|
|
126308
|
+
|
|
126309
|
+
/**
|
|
126310
|
+
* Creates an ExperienceTagsDeleted message from a plain object. Also converts values to their respective internal types.
|
|
126311
|
+
* @function fromObject
|
|
126312
|
+
* @memberof ExperienceTagsDeleted
|
|
126313
|
+
* @static
|
|
126314
|
+
* @param {Object.<string,*>} object Plain object
|
|
126315
|
+
* @returns {ExperienceTagsDeleted} ExperienceTagsDeleted
|
|
126316
|
+
*/
|
|
126317
|
+
ExperienceTagsDeleted.fromObject = function fromObject(object) {
|
|
126318
|
+
if (object instanceof $root.ExperienceTagsDeleted)
|
|
126319
|
+
return object;
|
|
126320
|
+
var message = new $root.ExperienceTagsDeleted();
|
|
126321
|
+
if (object.experienceId != null)
|
|
126322
|
+
message.experienceId = String(object.experienceId);
|
|
126323
|
+
if (object.contentId != null)
|
|
126324
|
+
message.contentId = object.contentId >>> 0;
|
|
126325
|
+
if (object.contentSlug != null)
|
|
126326
|
+
message.contentSlug = String(object.contentSlug);
|
|
126327
|
+
return message;
|
|
126328
|
+
};
|
|
126329
|
+
|
|
126330
|
+
/**
|
|
126331
|
+
* Creates a plain object from an ExperienceTagsDeleted message. Also converts values to other types if specified.
|
|
126332
|
+
* @function toObject
|
|
126333
|
+
* @memberof ExperienceTagsDeleted
|
|
126334
|
+
* @static
|
|
126335
|
+
* @param {ExperienceTagsDeleted} message ExperienceTagsDeleted
|
|
126336
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
126337
|
+
* @returns {Object.<string,*>} Plain object
|
|
126338
|
+
*/
|
|
126339
|
+
ExperienceTagsDeleted.toObject = function toObject(message, options) {
|
|
126340
|
+
if (!options)
|
|
126341
|
+
options = {};
|
|
126342
|
+
var object = {};
|
|
126343
|
+
if (options.defaults) {
|
|
126344
|
+
object.experienceId = "";
|
|
126345
|
+
object.contentId = 0;
|
|
126346
|
+
object.contentSlug = "";
|
|
126347
|
+
}
|
|
126348
|
+
if (message.experienceId != null && message.hasOwnProperty("experienceId"))
|
|
126349
|
+
object.experienceId = message.experienceId;
|
|
126350
|
+
if (message.contentId != null && message.hasOwnProperty("contentId"))
|
|
126351
|
+
object.contentId = message.contentId;
|
|
126352
|
+
if (message.contentSlug != null && message.hasOwnProperty("contentSlug"))
|
|
126353
|
+
object.contentSlug = message.contentSlug;
|
|
126354
|
+
return object;
|
|
126355
|
+
};
|
|
126356
|
+
|
|
126357
|
+
/**
|
|
126358
|
+
* Converts this ExperienceTagsDeleted to JSON.
|
|
126359
|
+
* @function toJSON
|
|
126360
|
+
* @memberof ExperienceTagsDeleted
|
|
126361
|
+
* @instance
|
|
126362
|
+
* @returns {Object.<string,*>} JSON object
|
|
126363
|
+
*/
|
|
126364
|
+
ExperienceTagsDeleted.prototype.toJSON = function toJSON() {
|
|
126365
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
126366
|
+
};
|
|
126367
|
+
|
|
126368
|
+
return ExperienceTagsDeleted;
|
|
126369
|
+
})();
|
|
126370
|
+
|
|
125321
126371
|
$root.GADAssessmentAssigned = (function() {
|
|
125322
126372
|
|
|
125323
126373
|
/**
|