@headspace/protos-events 1.301.0 → 1.303.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 +768 -0
- package/lib/index.js +2296 -3
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -65450,6 +65450,1132 @@ $root.ContentPlayedMetadata = (function() {
|
|
|
65450
65450
|
return ContentPlayedMetadata;
|
|
65451
65451
|
})();
|
|
65452
65452
|
|
|
65453
|
+
$root.Narrator = (function() {
|
|
65454
|
+
|
|
65455
|
+
/**
|
|
65456
|
+
* Properties of a Narrator.
|
|
65457
|
+
* @exports INarrator
|
|
65458
|
+
* @interface INarrator
|
|
65459
|
+
* @property {number|null} [id] Narrator id
|
|
65460
|
+
* @property {string|null} [displayName] Narrator displayName
|
|
65461
|
+
* @property {string|null} [firstName] Narrator firstName
|
|
65462
|
+
* @property {string|null} [lastName] Narrator lastName
|
|
65463
|
+
* @property {string|null} [title] Narrator title
|
|
65464
|
+
* @property {string|null} [bio] Narrator bio
|
|
65465
|
+
* @property {number|null} [thumbnailMediaId] Narrator thumbnailMediaId
|
|
65466
|
+
* @property {string|null} [authorCategory] Narrator authorCategory
|
|
65467
|
+
* @property {number|null} [gender] Narrator gender
|
|
65468
|
+
* @property {number|Long|null} [deletedAt] Narrator deletedAt
|
|
65469
|
+
*/
|
|
65470
|
+
|
|
65471
|
+
/**
|
|
65472
|
+
* Constructs a new Narrator.
|
|
65473
|
+
* @exports Narrator
|
|
65474
|
+
* @classdesc Represents a Narrator.
|
|
65475
|
+
* @implements INarrator
|
|
65476
|
+
* @constructor
|
|
65477
|
+
* @param {INarrator=} [properties] Properties to set
|
|
65478
|
+
*/
|
|
65479
|
+
function Narrator(properties) {
|
|
65480
|
+
if (properties)
|
|
65481
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
65482
|
+
if (properties[keys[i]] != null)
|
|
65483
|
+
this[keys[i]] = properties[keys[i]];
|
|
65484
|
+
}
|
|
65485
|
+
|
|
65486
|
+
/**
|
|
65487
|
+
* Narrator id.
|
|
65488
|
+
* @member {number} id
|
|
65489
|
+
* @memberof Narrator
|
|
65490
|
+
* @instance
|
|
65491
|
+
*/
|
|
65492
|
+
Narrator.prototype.id = 0;
|
|
65493
|
+
|
|
65494
|
+
/**
|
|
65495
|
+
* Narrator displayName.
|
|
65496
|
+
* @member {string} displayName
|
|
65497
|
+
* @memberof Narrator
|
|
65498
|
+
* @instance
|
|
65499
|
+
*/
|
|
65500
|
+
Narrator.prototype.displayName = "";
|
|
65501
|
+
|
|
65502
|
+
/**
|
|
65503
|
+
* Narrator firstName.
|
|
65504
|
+
* @member {string} firstName
|
|
65505
|
+
* @memberof Narrator
|
|
65506
|
+
* @instance
|
|
65507
|
+
*/
|
|
65508
|
+
Narrator.prototype.firstName = "";
|
|
65509
|
+
|
|
65510
|
+
/**
|
|
65511
|
+
* Narrator lastName.
|
|
65512
|
+
* @member {string} lastName
|
|
65513
|
+
* @memberof Narrator
|
|
65514
|
+
* @instance
|
|
65515
|
+
*/
|
|
65516
|
+
Narrator.prototype.lastName = "";
|
|
65517
|
+
|
|
65518
|
+
/**
|
|
65519
|
+
* Narrator title.
|
|
65520
|
+
* @member {string} title
|
|
65521
|
+
* @memberof Narrator
|
|
65522
|
+
* @instance
|
|
65523
|
+
*/
|
|
65524
|
+
Narrator.prototype.title = "";
|
|
65525
|
+
|
|
65526
|
+
/**
|
|
65527
|
+
* Narrator bio.
|
|
65528
|
+
* @member {string} bio
|
|
65529
|
+
* @memberof Narrator
|
|
65530
|
+
* @instance
|
|
65531
|
+
*/
|
|
65532
|
+
Narrator.prototype.bio = "";
|
|
65533
|
+
|
|
65534
|
+
/**
|
|
65535
|
+
* Narrator thumbnailMediaId.
|
|
65536
|
+
* @member {number} thumbnailMediaId
|
|
65537
|
+
* @memberof Narrator
|
|
65538
|
+
* @instance
|
|
65539
|
+
*/
|
|
65540
|
+
Narrator.prototype.thumbnailMediaId = 0;
|
|
65541
|
+
|
|
65542
|
+
/**
|
|
65543
|
+
* Narrator authorCategory.
|
|
65544
|
+
* @member {string} authorCategory
|
|
65545
|
+
* @memberof Narrator
|
|
65546
|
+
* @instance
|
|
65547
|
+
*/
|
|
65548
|
+
Narrator.prototype.authorCategory = "";
|
|
65549
|
+
|
|
65550
|
+
/**
|
|
65551
|
+
* Narrator gender.
|
|
65552
|
+
* @member {number} gender
|
|
65553
|
+
* @memberof Narrator
|
|
65554
|
+
* @instance
|
|
65555
|
+
*/
|
|
65556
|
+
Narrator.prototype.gender = 0;
|
|
65557
|
+
|
|
65558
|
+
/**
|
|
65559
|
+
* Narrator deletedAt.
|
|
65560
|
+
* @member {number|Long} deletedAt
|
|
65561
|
+
* @memberof Narrator
|
|
65562
|
+
* @instance
|
|
65563
|
+
*/
|
|
65564
|
+
Narrator.prototype.deletedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
65565
|
+
|
|
65566
|
+
/**
|
|
65567
|
+
* Creates a new Narrator instance using the specified properties.
|
|
65568
|
+
* @function create
|
|
65569
|
+
* @memberof Narrator
|
|
65570
|
+
* @static
|
|
65571
|
+
* @param {INarrator=} [properties] Properties to set
|
|
65572
|
+
* @returns {Narrator} Narrator instance
|
|
65573
|
+
*/
|
|
65574
|
+
Narrator.create = function create(properties) {
|
|
65575
|
+
return new Narrator(properties);
|
|
65576
|
+
};
|
|
65577
|
+
|
|
65578
|
+
/**
|
|
65579
|
+
* Encodes the specified Narrator message. Does not implicitly {@link Narrator.verify|verify} messages.
|
|
65580
|
+
* @function encode
|
|
65581
|
+
* @memberof Narrator
|
|
65582
|
+
* @static
|
|
65583
|
+
* @param {INarrator} message Narrator message or plain object to encode
|
|
65584
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
65585
|
+
* @returns {$protobuf.Writer} Writer
|
|
65586
|
+
*/
|
|
65587
|
+
Narrator.encode = function encode(message, writer) {
|
|
65588
|
+
if (!writer)
|
|
65589
|
+
writer = $Writer.create();
|
|
65590
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
65591
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.id);
|
|
65592
|
+
if (message.displayName != null && message.hasOwnProperty("displayName"))
|
|
65593
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName);
|
|
65594
|
+
if (message.firstName != null && message.hasOwnProperty("firstName"))
|
|
65595
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.firstName);
|
|
65596
|
+
if (message.lastName != null && message.hasOwnProperty("lastName"))
|
|
65597
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.lastName);
|
|
65598
|
+
if (message.title != null && message.hasOwnProperty("title"))
|
|
65599
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.title);
|
|
65600
|
+
if (message.bio != null && message.hasOwnProperty("bio"))
|
|
65601
|
+
writer.uint32(/* id 6, wireType 2 =*/50).string(message.bio);
|
|
65602
|
+
if (message.thumbnailMediaId != null && message.hasOwnProperty("thumbnailMediaId"))
|
|
65603
|
+
writer.uint32(/* id 7, wireType 0 =*/56).uint32(message.thumbnailMediaId);
|
|
65604
|
+
if (message.authorCategory != null && message.hasOwnProperty("authorCategory"))
|
|
65605
|
+
writer.uint32(/* id 8, wireType 2 =*/66).string(message.authorCategory);
|
|
65606
|
+
if (message.gender != null && message.hasOwnProperty("gender"))
|
|
65607
|
+
writer.uint32(/* id 9, wireType 0 =*/72).uint32(message.gender);
|
|
65608
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
65609
|
+
writer.uint32(/* id 10, wireType 0 =*/80).uint64(message.deletedAt);
|
|
65610
|
+
return writer;
|
|
65611
|
+
};
|
|
65612
|
+
|
|
65613
|
+
/**
|
|
65614
|
+
* Encodes the specified Narrator message, length delimited. Does not implicitly {@link Narrator.verify|verify} messages.
|
|
65615
|
+
* @function encodeDelimited
|
|
65616
|
+
* @memberof Narrator
|
|
65617
|
+
* @static
|
|
65618
|
+
* @param {INarrator} message Narrator message or plain object to encode
|
|
65619
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
65620
|
+
* @returns {$protobuf.Writer} Writer
|
|
65621
|
+
*/
|
|
65622
|
+
Narrator.encodeDelimited = function encodeDelimited(message, writer) {
|
|
65623
|
+
return this.encode(message, writer).ldelim();
|
|
65624
|
+
};
|
|
65625
|
+
|
|
65626
|
+
/**
|
|
65627
|
+
* Decodes a Narrator message from the specified reader or buffer.
|
|
65628
|
+
* @function decode
|
|
65629
|
+
* @memberof Narrator
|
|
65630
|
+
* @static
|
|
65631
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
65632
|
+
* @param {number} [length] Message length if known beforehand
|
|
65633
|
+
* @returns {Narrator} Narrator
|
|
65634
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
65635
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
65636
|
+
*/
|
|
65637
|
+
Narrator.decode = function decode(reader, length) {
|
|
65638
|
+
if (!(reader instanceof $Reader))
|
|
65639
|
+
reader = $Reader.create(reader);
|
|
65640
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.Narrator();
|
|
65641
|
+
while (reader.pos < end) {
|
|
65642
|
+
var tag = reader.uint32();
|
|
65643
|
+
switch (tag >>> 3) {
|
|
65644
|
+
case 1:
|
|
65645
|
+
message.id = reader.uint32();
|
|
65646
|
+
break;
|
|
65647
|
+
case 2:
|
|
65648
|
+
message.displayName = reader.string();
|
|
65649
|
+
break;
|
|
65650
|
+
case 3:
|
|
65651
|
+
message.firstName = reader.string();
|
|
65652
|
+
break;
|
|
65653
|
+
case 4:
|
|
65654
|
+
message.lastName = reader.string();
|
|
65655
|
+
break;
|
|
65656
|
+
case 5:
|
|
65657
|
+
message.title = reader.string();
|
|
65658
|
+
break;
|
|
65659
|
+
case 6:
|
|
65660
|
+
message.bio = reader.string();
|
|
65661
|
+
break;
|
|
65662
|
+
case 7:
|
|
65663
|
+
message.thumbnailMediaId = reader.uint32();
|
|
65664
|
+
break;
|
|
65665
|
+
case 8:
|
|
65666
|
+
message.authorCategory = reader.string();
|
|
65667
|
+
break;
|
|
65668
|
+
case 9:
|
|
65669
|
+
message.gender = reader.uint32();
|
|
65670
|
+
break;
|
|
65671
|
+
case 10:
|
|
65672
|
+
message.deletedAt = reader.uint64();
|
|
65673
|
+
break;
|
|
65674
|
+
default:
|
|
65675
|
+
reader.skipType(tag & 7);
|
|
65676
|
+
break;
|
|
65677
|
+
}
|
|
65678
|
+
}
|
|
65679
|
+
return message;
|
|
65680
|
+
};
|
|
65681
|
+
|
|
65682
|
+
/**
|
|
65683
|
+
* Decodes a Narrator message from the specified reader or buffer, length delimited.
|
|
65684
|
+
* @function decodeDelimited
|
|
65685
|
+
* @memberof Narrator
|
|
65686
|
+
* @static
|
|
65687
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
65688
|
+
* @returns {Narrator} Narrator
|
|
65689
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
65690
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
65691
|
+
*/
|
|
65692
|
+
Narrator.decodeDelimited = function decodeDelimited(reader) {
|
|
65693
|
+
if (!(reader instanceof $Reader))
|
|
65694
|
+
reader = new $Reader(reader);
|
|
65695
|
+
return this.decode(reader, reader.uint32());
|
|
65696
|
+
};
|
|
65697
|
+
|
|
65698
|
+
/**
|
|
65699
|
+
* Verifies a Narrator message.
|
|
65700
|
+
* @function verify
|
|
65701
|
+
* @memberof Narrator
|
|
65702
|
+
* @static
|
|
65703
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
65704
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
65705
|
+
*/
|
|
65706
|
+
Narrator.verify = function verify(message) {
|
|
65707
|
+
if (typeof message !== "object" || message === null)
|
|
65708
|
+
return "object expected";
|
|
65709
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
65710
|
+
if (!$util.isInteger(message.id))
|
|
65711
|
+
return "id: integer expected";
|
|
65712
|
+
if (message.displayName != null && message.hasOwnProperty("displayName"))
|
|
65713
|
+
if (!$util.isString(message.displayName))
|
|
65714
|
+
return "displayName: string expected";
|
|
65715
|
+
if (message.firstName != null && message.hasOwnProperty("firstName"))
|
|
65716
|
+
if (!$util.isString(message.firstName))
|
|
65717
|
+
return "firstName: string expected";
|
|
65718
|
+
if (message.lastName != null && message.hasOwnProperty("lastName"))
|
|
65719
|
+
if (!$util.isString(message.lastName))
|
|
65720
|
+
return "lastName: string expected";
|
|
65721
|
+
if (message.title != null && message.hasOwnProperty("title"))
|
|
65722
|
+
if (!$util.isString(message.title))
|
|
65723
|
+
return "title: string expected";
|
|
65724
|
+
if (message.bio != null && message.hasOwnProperty("bio"))
|
|
65725
|
+
if (!$util.isString(message.bio))
|
|
65726
|
+
return "bio: string expected";
|
|
65727
|
+
if (message.thumbnailMediaId != null && message.hasOwnProperty("thumbnailMediaId"))
|
|
65728
|
+
if (!$util.isInteger(message.thumbnailMediaId))
|
|
65729
|
+
return "thumbnailMediaId: integer expected";
|
|
65730
|
+
if (message.authorCategory != null && message.hasOwnProperty("authorCategory"))
|
|
65731
|
+
if (!$util.isString(message.authorCategory))
|
|
65732
|
+
return "authorCategory: string expected";
|
|
65733
|
+
if (message.gender != null && message.hasOwnProperty("gender"))
|
|
65734
|
+
if (!$util.isInteger(message.gender))
|
|
65735
|
+
return "gender: integer expected";
|
|
65736
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
65737
|
+
if (!$util.isInteger(message.deletedAt) && !(message.deletedAt && $util.isInteger(message.deletedAt.low) && $util.isInteger(message.deletedAt.high)))
|
|
65738
|
+
return "deletedAt: integer|Long expected";
|
|
65739
|
+
return null;
|
|
65740
|
+
};
|
|
65741
|
+
|
|
65742
|
+
/**
|
|
65743
|
+
* Creates a Narrator message from a plain object. Also converts values to their respective internal types.
|
|
65744
|
+
* @function fromObject
|
|
65745
|
+
* @memberof Narrator
|
|
65746
|
+
* @static
|
|
65747
|
+
* @param {Object.<string,*>} object Plain object
|
|
65748
|
+
* @returns {Narrator} Narrator
|
|
65749
|
+
*/
|
|
65750
|
+
Narrator.fromObject = function fromObject(object) {
|
|
65751
|
+
if (object instanceof $root.Narrator)
|
|
65752
|
+
return object;
|
|
65753
|
+
var message = new $root.Narrator();
|
|
65754
|
+
if (object.id != null)
|
|
65755
|
+
message.id = object.id >>> 0;
|
|
65756
|
+
if (object.displayName != null)
|
|
65757
|
+
message.displayName = String(object.displayName);
|
|
65758
|
+
if (object.firstName != null)
|
|
65759
|
+
message.firstName = String(object.firstName);
|
|
65760
|
+
if (object.lastName != null)
|
|
65761
|
+
message.lastName = String(object.lastName);
|
|
65762
|
+
if (object.title != null)
|
|
65763
|
+
message.title = String(object.title);
|
|
65764
|
+
if (object.bio != null)
|
|
65765
|
+
message.bio = String(object.bio);
|
|
65766
|
+
if (object.thumbnailMediaId != null)
|
|
65767
|
+
message.thumbnailMediaId = object.thumbnailMediaId >>> 0;
|
|
65768
|
+
if (object.authorCategory != null)
|
|
65769
|
+
message.authorCategory = String(object.authorCategory);
|
|
65770
|
+
if (object.gender != null)
|
|
65771
|
+
message.gender = object.gender >>> 0;
|
|
65772
|
+
if (object.deletedAt != null)
|
|
65773
|
+
if ($util.Long)
|
|
65774
|
+
(message.deletedAt = $util.Long.fromValue(object.deletedAt)).unsigned = true;
|
|
65775
|
+
else if (typeof object.deletedAt === "string")
|
|
65776
|
+
message.deletedAt = parseInt(object.deletedAt, 10);
|
|
65777
|
+
else if (typeof object.deletedAt === "number")
|
|
65778
|
+
message.deletedAt = object.deletedAt;
|
|
65779
|
+
else if (typeof object.deletedAt === "object")
|
|
65780
|
+
message.deletedAt = new $util.LongBits(object.deletedAt.low >>> 0, object.deletedAt.high >>> 0).toNumber(true);
|
|
65781
|
+
return message;
|
|
65782
|
+
};
|
|
65783
|
+
|
|
65784
|
+
/**
|
|
65785
|
+
* Creates a plain object from a Narrator message. Also converts values to other types if specified.
|
|
65786
|
+
* @function toObject
|
|
65787
|
+
* @memberof Narrator
|
|
65788
|
+
* @static
|
|
65789
|
+
* @param {Narrator} message Narrator
|
|
65790
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
65791
|
+
* @returns {Object.<string,*>} Plain object
|
|
65792
|
+
*/
|
|
65793
|
+
Narrator.toObject = function toObject(message, options) {
|
|
65794
|
+
if (!options)
|
|
65795
|
+
options = {};
|
|
65796
|
+
var object = {};
|
|
65797
|
+
if (options.defaults) {
|
|
65798
|
+
object.id = 0;
|
|
65799
|
+
object.displayName = "";
|
|
65800
|
+
object.firstName = "";
|
|
65801
|
+
object.lastName = "";
|
|
65802
|
+
object.title = "";
|
|
65803
|
+
object.bio = "";
|
|
65804
|
+
object.thumbnailMediaId = 0;
|
|
65805
|
+
object.authorCategory = "";
|
|
65806
|
+
object.gender = 0;
|
|
65807
|
+
if ($util.Long) {
|
|
65808
|
+
var long = new $util.Long(0, 0, true);
|
|
65809
|
+
object.deletedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
65810
|
+
} else
|
|
65811
|
+
object.deletedAt = options.longs === String ? "0" : 0;
|
|
65812
|
+
}
|
|
65813
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
65814
|
+
object.id = message.id;
|
|
65815
|
+
if (message.displayName != null && message.hasOwnProperty("displayName"))
|
|
65816
|
+
object.displayName = message.displayName;
|
|
65817
|
+
if (message.firstName != null && message.hasOwnProperty("firstName"))
|
|
65818
|
+
object.firstName = message.firstName;
|
|
65819
|
+
if (message.lastName != null && message.hasOwnProperty("lastName"))
|
|
65820
|
+
object.lastName = message.lastName;
|
|
65821
|
+
if (message.title != null && message.hasOwnProperty("title"))
|
|
65822
|
+
object.title = message.title;
|
|
65823
|
+
if (message.bio != null && message.hasOwnProperty("bio"))
|
|
65824
|
+
object.bio = message.bio;
|
|
65825
|
+
if (message.thumbnailMediaId != null && message.hasOwnProperty("thumbnailMediaId"))
|
|
65826
|
+
object.thumbnailMediaId = message.thumbnailMediaId;
|
|
65827
|
+
if (message.authorCategory != null && message.hasOwnProperty("authorCategory"))
|
|
65828
|
+
object.authorCategory = message.authorCategory;
|
|
65829
|
+
if (message.gender != null && message.hasOwnProperty("gender"))
|
|
65830
|
+
object.gender = message.gender;
|
|
65831
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
65832
|
+
if (typeof message.deletedAt === "number")
|
|
65833
|
+
object.deletedAt = options.longs === String ? String(message.deletedAt) : message.deletedAt;
|
|
65834
|
+
else
|
|
65835
|
+
object.deletedAt = options.longs === String ? $util.Long.prototype.toString.call(message.deletedAt) : options.longs === Number ? new $util.LongBits(message.deletedAt.low >>> 0, message.deletedAt.high >>> 0).toNumber(true) : message.deletedAt;
|
|
65836
|
+
return object;
|
|
65837
|
+
};
|
|
65838
|
+
|
|
65839
|
+
/**
|
|
65840
|
+
* Converts this Narrator to JSON.
|
|
65841
|
+
* @function toJSON
|
|
65842
|
+
* @memberof Narrator
|
|
65843
|
+
* @instance
|
|
65844
|
+
* @returns {Object.<string,*>} JSON object
|
|
65845
|
+
*/
|
|
65846
|
+
Narrator.prototype.toJSON = function toJSON() {
|
|
65847
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
65848
|
+
};
|
|
65849
|
+
|
|
65850
|
+
return Narrator;
|
|
65851
|
+
})();
|
|
65852
|
+
|
|
65853
|
+
$root.Tag = (function() {
|
|
65854
|
+
|
|
65855
|
+
/**
|
|
65856
|
+
* Properties of a Tag.
|
|
65857
|
+
* @exports ITag
|
|
65858
|
+
* @interface ITag
|
|
65859
|
+
* @property {string|null} [type] Tag type
|
|
65860
|
+
* @property {number|null} [typeId] Tag typeId
|
|
65861
|
+
* @property {string|null} [label] Tag label
|
|
65862
|
+
* @property {string|null} [locale] Tag locale
|
|
65863
|
+
* @property {number|Long|null} [deletedAt] Tag deletedAt
|
|
65864
|
+
* @property {number|Long|null} [createdAt] Tag createdAt
|
|
65865
|
+
* @property {number|Long|null} [updatedAt] Tag updatedAt
|
|
65866
|
+
*/
|
|
65867
|
+
|
|
65868
|
+
/**
|
|
65869
|
+
* Constructs a new Tag.
|
|
65870
|
+
* @exports Tag
|
|
65871
|
+
* @classdesc Represents a Tag.
|
|
65872
|
+
* @implements ITag
|
|
65873
|
+
* @constructor
|
|
65874
|
+
* @param {ITag=} [properties] Properties to set
|
|
65875
|
+
*/
|
|
65876
|
+
function Tag(properties) {
|
|
65877
|
+
if (properties)
|
|
65878
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
65879
|
+
if (properties[keys[i]] != null)
|
|
65880
|
+
this[keys[i]] = properties[keys[i]];
|
|
65881
|
+
}
|
|
65882
|
+
|
|
65883
|
+
/**
|
|
65884
|
+
* Tag type.
|
|
65885
|
+
* @member {string} type
|
|
65886
|
+
* @memberof Tag
|
|
65887
|
+
* @instance
|
|
65888
|
+
*/
|
|
65889
|
+
Tag.prototype.type = "";
|
|
65890
|
+
|
|
65891
|
+
/**
|
|
65892
|
+
* Tag typeId.
|
|
65893
|
+
* @member {number} typeId
|
|
65894
|
+
* @memberof Tag
|
|
65895
|
+
* @instance
|
|
65896
|
+
*/
|
|
65897
|
+
Tag.prototype.typeId = 0;
|
|
65898
|
+
|
|
65899
|
+
/**
|
|
65900
|
+
* Tag label.
|
|
65901
|
+
* @member {string} label
|
|
65902
|
+
* @memberof Tag
|
|
65903
|
+
* @instance
|
|
65904
|
+
*/
|
|
65905
|
+
Tag.prototype.label = "";
|
|
65906
|
+
|
|
65907
|
+
/**
|
|
65908
|
+
* Tag locale.
|
|
65909
|
+
* @member {string} locale
|
|
65910
|
+
* @memberof Tag
|
|
65911
|
+
* @instance
|
|
65912
|
+
*/
|
|
65913
|
+
Tag.prototype.locale = "";
|
|
65914
|
+
|
|
65915
|
+
/**
|
|
65916
|
+
* Tag deletedAt.
|
|
65917
|
+
* @member {number|Long} deletedAt
|
|
65918
|
+
* @memberof Tag
|
|
65919
|
+
* @instance
|
|
65920
|
+
*/
|
|
65921
|
+
Tag.prototype.deletedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
65922
|
+
|
|
65923
|
+
/**
|
|
65924
|
+
* Tag createdAt.
|
|
65925
|
+
* @member {number|Long} createdAt
|
|
65926
|
+
* @memberof Tag
|
|
65927
|
+
* @instance
|
|
65928
|
+
*/
|
|
65929
|
+
Tag.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
65930
|
+
|
|
65931
|
+
/**
|
|
65932
|
+
* Tag updatedAt.
|
|
65933
|
+
* @member {number|Long} updatedAt
|
|
65934
|
+
* @memberof Tag
|
|
65935
|
+
* @instance
|
|
65936
|
+
*/
|
|
65937
|
+
Tag.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
65938
|
+
|
|
65939
|
+
/**
|
|
65940
|
+
* Creates a new Tag instance using the specified properties.
|
|
65941
|
+
* @function create
|
|
65942
|
+
* @memberof Tag
|
|
65943
|
+
* @static
|
|
65944
|
+
* @param {ITag=} [properties] Properties to set
|
|
65945
|
+
* @returns {Tag} Tag instance
|
|
65946
|
+
*/
|
|
65947
|
+
Tag.create = function create(properties) {
|
|
65948
|
+
return new Tag(properties);
|
|
65949
|
+
};
|
|
65950
|
+
|
|
65951
|
+
/**
|
|
65952
|
+
* Encodes the specified Tag message. Does not implicitly {@link Tag.verify|verify} messages.
|
|
65953
|
+
* @function encode
|
|
65954
|
+
* @memberof Tag
|
|
65955
|
+
* @static
|
|
65956
|
+
* @param {ITag} message Tag message or plain object to encode
|
|
65957
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
65958
|
+
* @returns {$protobuf.Writer} Writer
|
|
65959
|
+
*/
|
|
65960
|
+
Tag.encode = function encode(message, writer) {
|
|
65961
|
+
if (!writer)
|
|
65962
|
+
writer = $Writer.create();
|
|
65963
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
65964
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.type);
|
|
65965
|
+
if (message.typeId != null && message.hasOwnProperty("typeId"))
|
|
65966
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.typeId);
|
|
65967
|
+
if (message.label != null && message.hasOwnProperty("label"))
|
|
65968
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.label);
|
|
65969
|
+
if (message.locale != null && message.hasOwnProperty("locale"))
|
|
65970
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.locale);
|
|
65971
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
65972
|
+
writer.uint32(/* id 5, wireType 0 =*/40).uint64(message.deletedAt);
|
|
65973
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
65974
|
+
writer.uint32(/* id 6, wireType 0 =*/48).uint64(message.createdAt);
|
|
65975
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
65976
|
+
writer.uint32(/* id 7, wireType 0 =*/56).uint64(message.updatedAt);
|
|
65977
|
+
return writer;
|
|
65978
|
+
};
|
|
65979
|
+
|
|
65980
|
+
/**
|
|
65981
|
+
* Encodes the specified Tag message, length delimited. Does not implicitly {@link Tag.verify|verify} messages.
|
|
65982
|
+
* @function encodeDelimited
|
|
65983
|
+
* @memberof Tag
|
|
65984
|
+
* @static
|
|
65985
|
+
* @param {ITag} message Tag message or plain object to encode
|
|
65986
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
65987
|
+
* @returns {$protobuf.Writer} Writer
|
|
65988
|
+
*/
|
|
65989
|
+
Tag.encodeDelimited = function encodeDelimited(message, writer) {
|
|
65990
|
+
return this.encode(message, writer).ldelim();
|
|
65991
|
+
};
|
|
65992
|
+
|
|
65993
|
+
/**
|
|
65994
|
+
* Decodes a Tag message from the specified reader or buffer.
|
|
65995
|
+
* @function decode
|
|
65996
|
+
* @memberof Tag
|
|
65997
|
+
* @static
|
|
65998
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
65999
|
+
* @param {number} [length] Message length if known beforehand
|
|
66000
|
+
* @returns {Tag} Tag
|
|
66001
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
66002
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
66003
|
+
*/
|
|
66004
|
+
Tag.decode = function decode(reader, length) {
|
|
66005
|
+
if (!(reader instanceof $Reader))
|
|
66006
|
+
reader = $Reader.create(reader);
|
|
66007
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.Tag();
|
|
66008
|
+
while (reader.pos < end) {
|
|
66009
|
+
var tag = reader.uint32();
|
|
66010
|
+
switch (tag >>> 3) {
|
|
66011
|
+
case 1:
|
|
66012
|
+
message.type = reader.string();
|
|
66013
|
+
break;
|
|
66014
|
+
case 2:
|
|
66015
|
+
message.typeId = reader.int32();
|
|
66016
|
+
break;
|
|
66017
|
+
case 3:
|
|
66018
|
+
message.label = reader.string();
|
|
66019
|
+
break;
|
|
66020
|
+
case 4:
|
|
66021
|
+
message.locale = reader.string();
|
|
66022
|
+
break;
|
|
66023
|
+
case 5:
|
|
66024
|
+
message.deletedAt = reader.uint64();
|
|
66025
|
+
break;
|
|
66026
|
+
case 6:
|
|
66027
|
+
message.createdAt = reader.uint64();
|
|
66028
|
+
break;
|
|
66029
|
+
case 7:
|
|
66030
|
+
message.updatedAt = reader.uint64();
|
|
66031
|
+
break;
|
|
66032
|
+
default:
|
|
66033
|
+
reader.skipType(tag & 7);
|
|
66034
|
+
break;
|
|
66035
|
+
}
|
|
66036
|
+
}
|
|
66037
|
+
return message;
|
|
66038
|
+
};
|
|
66039
|
+
|
|
66040
|
+
/**
|
|
66041
|
+
* Decodes a Tag message from the specified reader or buffer, length delimited.
|
|
66042
|
+
* @function decodeDelimited
|
|
66043
|
+
* @memberof Tag
|
|
66044
|
+
* @static
|
|
66045
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
66046
|
+
* @returns {Tag} Tag
|
|
66047
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
66048
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
66049
|
+
*/
|
|
66050
|
+
Tag.decodeDelimited = function decodeDelimited(reader) {
|
|
66051
|
+
if (!(reader instanceof $Reader))
|
|
66052
|
+
reader = new $Reader(reader);
|
|
66053
|
+
return this.decode(reader, reader.uint32());
|
|
66054
|
+
};
|
|
66055
|
+
|
|
66056
|
+
/**
|
|
66057
|
+
* Verifies a Tag message.
|
|
66058
|
+
* @function verify
|
|
66059
|
+
* @memberof Tag
|
|
66060
|
+
* @static
|
|
66061
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
66062
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
66063
|
+
*/
|
|
66064
|
+
Tag.verify = function verify(message) {
|
|
66065
|
+
if (typeof message !== "object" || message === null)
|
|
66066
|
+
return "object expected";
|
|
66067
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
66068
|
+
if (!$util.isString(message.type))
|
|
66069
|
+
return "type: string expected";
|
|
66070
|
+
if (message.typeId != null && message.hasOwnProperty("typeId"))
|
|
66071
|
+
if (!$util.isInteger(message.typeId))
|
|
66072
|
+
return "typeId: integer expected";
|
|
66073
|
+
if (message.label != null && message.hasOwnProperty("label"))
|
|
66074
|
+
if (!$util.isString(message.label))
|
|
66075
|
+
return "label: string expected";
|
|
66076
|
+
if (message.locale != null && message.hasOwnProperty("locale"))
|
|
66077
|
+
if (!$util.isString(message.locale))
|
|
66078
|
+
return "locale: string expected";
|
|
66079
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
66080
|
+
if (!$util.isInteger(message.deletedAt) && !(message.deletedAt && $util.isInteger(message.deletedAt.low) && $util.isInteger(message.deletedAt.high)))
|
|
66081
|
+
return "deletedAt: integer|Long expected";
|
|
66082
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
66083
|
+
if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
|
|
66084
|
+
return "createdAt: integer|Long expected";
|
|
66085
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
66086
|
+
if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
|
|
66087
|
+
return "updatedAt: integer|Long expected";
|
|
66088
|
+
return null;
|
|
66089
|
+
};
|
|
66090
|
+
|
|
66091
|
+
/**
|
|
66092
|
+
* Creates a Tag message from a plain object. Also converts values to their respective internal types.
|
|
66093
|
+
* @function fromObject
|
|
66094
|
+
* @memberof Tag
|
|
66095
|
+
* @static
|
|
66096
|
+
* @param {Object.<string,*>} object Plain object
|
|
66097
|
+
* @returns {Tag} Tag
|
|
66098
|
+
*/
|
|
66099
|
+
Tag.fromObject = function fromObject(object) {
|
|
66100
|
+
if (object instanceof $root.Tag)
|
|
66101
|
+
return object;
|
|
66102
|
+
var message = new $root.Tag();
|
|
66103
|
+
if (object.type != null)
|
|
66104
|
+
message.type = String(object.type);
|
|
66105
|
+
if (object.typeId != null)
|
|
66106
|
+
message.typeId = object.typeId | 0;
|
|
66107
|
+
if (object.label != null)
|
|
66108
|
+
message.label = String(object.label);
|
|
66109
|
+
if (object.locale != null)
|
|
66110
|
+
message.locale = String(object.locale);
|
|
66111
|
+
if (object.deletedAt != null)
|
|
66112
|
+
if ($util.Long)
|
|
66113
|
+
(message.deletedAt = $util.Long.fromValue(object.deletedAt)).unsigned = true;
|
|
66114
|
+
else if (typeof object.deletedAt === "string")
|
|
66115
|
+
message.deletedAt = parseInt(object.deletedAt, 10);
|
|
66116
|
+
else if (typeof object.deletedAt === "number")
|
|
66117
|
+
message.deletedAt = object.deletedAt;
|
|
66118
|
+
else if (typeof object.deletedAt === "object")
|
|
66119
|
+
message.deletedAt = new $util.LongBits(object.deletedAt.low >>> 0, object.deletedAt.high >>> 0).toNumber(true);
|
|
66120
|
+
if (object.createdAt != null)
|
|
66121
|
+
if ($util.Long)
|
|
66122
|
+
(message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
|
|
66123
|
+
else if (typeof object.createdAt === "string")
|
|
66124
|
+
message.createdAt = parseInt(object.createdAt, 10);
|
|
66125
|
+
else if (typeof object.createdAt === "number")
|
|
66126
|
+
message.createdAt = object.createdAt;
|
|
66127
|
+
else if (typeof object.createdAt === "object")
|
|
66128
|
+
message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
|
|
66129
|
+
if (object.updatedAt != null)
|
|
66130
|
+
if ($util.Long)
|
|
66131
|
+
(message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
|
|
66132
|
+
else if (typeof object.updatedAt === "string")
|
|
66133
|
+
message.updatedAt = parseInt(object.updatedAt, 10);
|
|
66134
|
+
else if (typeof object.updatedAt === "number")
|
|
66135
|
+
message.updatedAt = object.updatedAt;
|
|
66136
|
+
else if (typeof object.updatedAt === "object")
|
|
66137
|
+
message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
|
|
66138
|
+
return message;
|
|
66139
|
+
};
|
|
66140
|
+
|
|
66141
|
+
/**
|
|
66142
|
+
* Creates a plain object from a Tag message. Also converts values to other types if specified.
|
|
66143
|
+
* @function toObject
|
|
66144
|
+
* @memberof Tag
|
|
66145
|
+
* @static
|
|
66146
|
+
* @param {Tag} message Tag
|
|
66147
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
66148
|
+
* @returns {Object.<string,*>} Plain object
|
|
66149
|
+
*/
|
|
66150
|
+
Tag.toObject = function toObject(message, options) {
|
|
66151
|
+
if (!options)
|
|
66152
|
+
options = {};
|
|
66153
|
+
var object = {};
|
|
66154
|
+
if (options.defaults) {
|
|
66155
|
+
object.type = "";
|
|
66156
|
+
object.typeId = 0;
|
|
66157
|
+
object.label = "";
|
|
66158
|
+
object.locale = "";
|
|
66159
|
+
if ($util.Long) {
|
|
66160
|
+
var long = new $util.Long(0, 0, true);
|
|
66161
|
+
object.deletedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
66162
|
+
} else
|
|
66163
|
+
object.deletedAt = options.longs === String ? "0" : 0;
|
|
66164
|
+
if ($util.Long) {
|
|
66165
|
+
var long = new $util.Long(0, 0, true);
|
|
66166
|
+
object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
66167
|
+
} else
|
|
66168
|
+
object.createdAt = options.longs === String ? "0" : 0;
|
|
66169
|
+
if ($util.Long) {
|
|
66170
|
+
var long = new $util.Long(0, 0, true);
|
|
66171
|
+
object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
66172
|
+
} else
|
|
66173
|
+
object.updatedAt = options.longs === String ? "0" : 0;
|
|
66174
|
+
}
|
|
66175
|
+
if (message.type != null && message.hasOwnProperty("type"))
|
|
66176
|
+
object.type = message.type;
|
|
66177
|
+
if (message.typeId != null && message.hasOwnProperty("typeId"))
|
|
66178
|
+
object.typeId = message.typeId;
|
|
66179
|
+
if (message.label != null && message.hasOwnProperty("label"))
|
|
66180
|
+
object.label = message.label;
|
|
66181
|
+
if (message.locale != null && message.hasOwnProperty("locale"))
|
|
66182
|
+
object.locale = message.locale;
|
|
66183
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
66184
|
+
if (typeof message.deletedAt === "number")
|
|
66185
|
+
object.deletedAt = options.longs === String ? String(message.deletedAt) : message.deletedAt;
|
|
66186
|
+
else
|
|
66187
|
+
object.deletedAt = options.longs === String ? $util.Long.prototype.toString.call(message.deletedAt) : options.longs === Number ? new $util.LongBits(message.deletedAt.low >>> 0, message.deletedAt.high >>> 0).toNumber(true) : message.deletedAt;
|
|
66188
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
66189
|
+
if (typeof message.createdAt === "number")
|
|
66190
|
+
object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
|
|
66191
|
+
else
|
|
66192
|
+
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;
|
|
66193
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
66194
|
+
if (typeof message.updatedAt === "number")
|
|
66195
|
+
object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
|
|
66196
|
+
else
|
|
66197
|
+
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;
|
|
66198
|
+
return object;
|
|
66199
|
+
};
|
|
66200
|
+
|
|
66201
|
+
/**
|
|
66202
|
+
* Converts this Tag to JSON.
|
|
66203
|
+
* @function toJSON
|
|
66204
|
+
* @memberof Tag
|
|
66205
|
+
* @instance
|
|
66206
|
+
* @returns {Object.<string,*>} JSON object
|
|
66207
|
+
*/
|
|
66208
|
+
Tag.prototype.toJSON = function toJSON() {
|
|
66209
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
66210
|
+
};
|
|
66211
|
+
|
|
66212
|
+
return Tag;
|
|
66213
|
+
})();
|
|
66214
|
+
|
|
66215
|
+
$root.Translation = (function() {
|
|
66216
|
+
|
|
66217
|
+
/**
|
|
66218
|
+
* Properties of a Translation.
|
|
66219
|
+
* @exports ITranslation
|
|
66220
|
+
* @interface ITranslation
|
|
66221
|
+
* @property {string|null} [formattedContentTypeDisplayValue] Translation formattedContentTypeDisplayValue
|
|
66222
|
+
* @property {string|null} [title] Translation title
|
|
66223
|
+
* @property {string|null} [bodyText] Translation bodyText
|
|
66224
|
+
* @property {string|null} [subtext] Translation subtext
|
|
66225
|
+
* @property {string|null} [subtextSecondary] Translation subtextSecondary
|
|
66226
|
+
* @property {Array.<INarrator>|null} [narrators] Translation narrators
|
|
66227
|
+
* @property {Array.<ITag>|null} [tags] Translation tags
|
|
66228
|
+
*/
|
|
66229
|
+
|
|
66230
|
+
/**
|
|
66231
|
+
* Constructs a new Translation.
|
|
66232
|
+
* @exports Translation
|
|
66233
|
+
* @classdesc Represents a Translation.
|
|
66234
|
+
* @implements ITranslation
|
|
66235
|
+
* @constructor
|
|
66236
|
+
* @param {ITranslation=} [properties] Properties to set
|
|
66237
|
+
*/
|
|
66238
|
+
function Translation(properties) {
|
|
66239
|
+
this.narrators = [];
|
|
66240
|
+
this.tags = [];
|
|
66241
|
+
if (properties)
|
|
66242
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
66243
|
+
if (properties[keys[i]] != null)
|
|
66244
|
+
this[keys[i]] = properties[keys[i]];
|
|
66245
|
+
}
|
|
66246
|
+
|
|
66247
|
+
/**
|
|
66248
|
+
* Translation formattedContentTypeDisplayValue.
|
|
66249
|
+
* @member {string} formattedContentTypeDisplayValue
|
|
66250
|
+
* @memberof Translation
|
|
66251
|
+
* @instance
|
|
66252
|
+
*/
|
|
66253
|
+
Translation.prototype.formattedContentTypeDisplayValue = "";
|
|
66254
|
+
|
|
66255
|
+
/**
|
|
66256
|
+
* Translation title.
|
|
66257
|
+
* @member {string} title
|
|
66258
|
+
* @memberof Translation
|
|
66259
|
+
* @instance
|
|
66260
|
+
*/
|
|
66261
|
+
Translation.prototype.title = "";
|
|
66262
|
+
|
|
66263
|
+
/**
|
|
66264
|
+
* Translation bodyText.
|
|
66265
|
+
* @member {string} bodyText
|
|
66266
|
+
* @memberof Translation
|
|
66267
|
+
* @instance
|
|
66268
|
+
*/
|
|
66269
|
+
Translation.prototype.bodyText = "";
|
|
66270
|
+
|
|
66271
|
+
/**
|
|
66272
|
+
* Translation subtext.
|
|
66273
|
+
* @member {string} subtext
|
|
66274
|
+
* @memberof Translation
|
|
66275
|
+
* @instance
|
|
66276
|
+
*/
|
|
66277
|
+
Translation.prototype.subtext = "";
|
|
66278
|
+
|
|
66279
|
+
/**
|
|
66280
|
+
* Translation subtextSecondary.
|
|
66281
|
+
* @member {string} subtextSecondary
|
|
66282
|
+
* @memberof Translation
|
|
66283
|
+
* @instance
|
|
66284
|
+
*/
|
|
66285
|
+
Translation.prototype.subtextSecondary = "";
|
|
66286
|
+
|
|
66287
|
+
/**
|
|
66288
|
+
* Translation narrators.
|
|
66289
|
+
* @member {Array.<INarrator>} narrators
|
|
66290
|
+
* @memberof Translation
|
|
66291
|
+
* @instance
|
|
66292
|
+
*/
|
|
66293
|
+
Translation.prototype.narrators = $util.emptyArray;
|
|
66294
|
+
|
|
66295
|
+
/**
|
|
66296
|
+
* Translation tags.
|
|
66297
|
+
* @member {Array.<ITag>} tags
|
|
66298
|
+
* @memberof Translation
|
|
66299
|
+
* @instance
|
|
66300
|
+
*/
|
|
66301
|
+
Translation.prototype.tags = $util.emptyArray;
|
|
66302
|
+
|
|
66303
|
+
/**
|
|
66304
|
+
* Creates a new Translation instance using the specified properties.
|
|
66305
|
+
* @function create
|
|
66306
|
+
* @memberof Translation
|
|
66307
|
+
* @static
|
|
66308
|
+
* @param {ITranslation=} [properties] Properties to set
|
|
66309
|
+
* @returns {Translation} Translation instance
|
|
66310
|
+
*/
|
|
66311
|
+
Translation.create = function create(properties) {
|
|
66312
|
+
return new Translation(properties);
|
|
66313
|
+
};
|
|
66314
|
+
|
|
66315
|
+
/**
|
|
66316
|
+
* Encodes the specified Translation message. Does not implicitly {@link Translation.verify|verify} messages.
|
|
66317
|
+
* @function encode
|
|
66318
|
+
* @memberof Translation
|
|
66319
|
+
* @static
|
|
66320
|
+
* @param {ITranslation} message Translation message or plain object to encode
|
|
66321
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
66322
|
+
* @returns {$protobuf.Writer} Writer
|
|
66323
|
+
*/
|
|
66324
|
+
Translation.encode = function encode(message, writer) {
|
|
66325
|
+
if (!writer)
|
|
66326
|
+
writer = $Writer.create();
|
|
66327
|
+
if (message.formattedContentTypeDisplayValue != null && message.hasOwnProperty("formattedContentTypeDisplayValue"))
|
|
66328
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.formattedContentTypeDisplayValue);
|
|
66329
|
+
if (message.title != null && message.hasOwnProperty("title"))
|
|
66330
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.title);
|
|
66331
|
+
if (message.bodyText != null && message.hasOwnProperty("bodyText"))
|
|
66332
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.bodyText);
|
|
66333
|
+
if (message.subtext != null && message.hasOwnProperty("subtext"))
|
|
66334
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.subtext);
|
|
66335
|
+
if (message.subtextSecondary != null && message.hasOwnProperty("subtextSecondary"))
|
|
66336
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.subtextSecondary);
|
|
66337
|
+
if (message.narrators != null && message.narrators.length)
|
|
66338
|
+
for (var i = 0; i < message.narrators.length; ++i)
|
|
66339
|
+
$root.Narrator.encode(message.narrators[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
66340
|
+
if (message.tags != null && message.tags.length)
|
|
66341
|
+
for (var i = 0; i < message.tags.length; ++i)
|
|
66342
|
+
$root.Tag.encode(message.tags[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim();
|
|
66343
|
+
return writer;
|
|
66344
|
+
};
|
|
66345
|
+
|
|
66346
|
+
/**
|
|
66347
|
+
* Encodes the specified Translation message, length delimited. Does not implicitly {@link Translation.verify|verify} messages.
|
|
66348
|
+
* @function encodeDelimited
|
|
66349
|
+
* @memberof Translation
|
|
66350
|
+
* @static
|
|
66351
|
+
* @param {ITranslation} message Translation message or plain object to encode
|
|
66352
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
66353
|
+
* @returns {$protobuf.Writer} Writer
|
|
66354
|
+
*/
|
|
66355
|
+
Translation.encodeDelimited = function encodeDelimited(message, writer) {
|
|
66356
|
+
return this.encode(message, writer).ldelim();
|
|
66357
|
+
};
|
|
66358
|
+
|
|
66359
|
+
/**
|
|
66360
|
+
* Decodes a Translation message from the specified reader or buffer.
|
|
66361
|
+
* @function decode
|
|
66362
|
+
* @memberof Translation
|
|
66363
|
+
* @static
|
|
66364
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
66365
|
+
* @param {number} [length] Message length if known beforehand
|
|
66366
|
+
* @returns {Translation} Translation
|
|
66367
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
66368
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
66369
|
+
*/
|
|
66370
|
+
Translation.decode = function decode(reader, length) {
|
|
66371
|
+
if (!(reader instanceof $Reader))
|
|
66372
|
+
reader = $Reader.create(reader);
|
|
66373
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.Translation();
|
|
66374
|
+
while (reader.pos < end) {
|
|
66375
|
+
var tag = reader.uint32();
|
|
66376
|
+
switch (tag >>> 3) {
|
|
66377
|
+
case 1:
|
|
66378
|
+
message.formattedContentTypeDisplayValue = reader.string();
|
|
66379
|
+
break;
|
|
66380
|
+
case 2:
|
|
66381
|
+
message.title = reader.string();
|
|
66382
|
+
break;
|
|
66383
|
+
case 3:
|
|
66384
|
+
message.bodyText = reader.string();
|
|
66385
|
+
break;
|
|
66386
|
+
case 4:
|
|
66387
|
+
message.subtext = reader.string();
|
|
66388
|
+
break;
|
|
66389
|
+
case 5:
|
|
66390
|
+
message.subtextSecondary = reader.string();
|
|
66391
|
+
break;
|
|
66392
|
+
case 6:
|
|
66393
|
+
if (!(message.narrators && message.narrators.length))
|
|
66394
|
+
message.narrators = [];
|
|
66395
|
+
message.narrators.push($root.Narrator.decode(reader, reader.uint32()));
|
|
66396
|
+
break;
|
|
66397
|
+
case 7:
|
|
66398
|
+
if (!(message.tags && message.tags.length))
|
|
66399
|
+
message.tags = [];
|
|
66400
|
+
message.tags.push($root.Tag.decode(reader, reader.uint32()));
|
|
66401
|
+
break;
|
|
66402
|
+
default:
|
|
66403
|
+
reader.skipType(tag & 7);
|
|
66404
|
+
break;
|
|
66405
|
+
}
|
|
66406
|
+
}
|
|
66407
|
+
return message;
|
|
66408
|
+
};
|
|
66409
|
+
|
|
66410
|
+
/**
|
|
66411
|
+
* Decodes a Translation message from the specified reader or buffer, length delimited.
|
|
66412
|
+
* @function decodeDelimited
|
|
66413
|
+
* @memberof Translation
|
|
66414
|
+
* @static
|
|
66415
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
66416
|
+
* @returns {Translation} Translation
|
|
66417
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
66418
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
66419
|
+
*/
|
|
66420
|
+
Translation.decodeDelimited = function decodeDelimited(reader) {
|
|
66421
|
+
if (!(reader instanceof $Reader))
|
|
66422
|
+
reader = new $Reader(reader);
|
|
66423
|
+
return this.decode(reader, reader.uint32());
|
|
66424
|
+
};
|
|
66425
|
+
|
|
66426
|
+
/**
|
|
66427
|
+
* Verifies a Translation message.
|
|
66428
|
+
* @function verify
|
|
66429
|
+
* @memberof Translation
|
|
66430
|
+
* @static
|
|
66431
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
66432
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
66433
|
+
*/
|
|
66434
|
+
Translation.verify = function verify(message) {
|
|
66435
|
+
if (typeof message !== "object" || message === null)
|
|
66436
|
+
return "object expected";
|
|
66437
|
+
if (message.formattedContentTypeDisplayValue != null && message.hasOwnProperty("formattedContentTypeDisplayValue"))
|
|
66438
|
+
if (!$util.isString(message.formattedContentTypeDisplayValue))
|
|
66439
|
+
return "formattedContentTypeDisplayValue: string expected";
|
|
66440
|
+
if (message.title != null && message.hasOwnProperty("title"))
|
|
66441
|
+
if (!$util.isString(message.title))
|
|
66442
|
+
return "title: string expected";
|
|
66443
|
+
if (message.bodyText != null && message.hasOwnProperty("bodyText"))
|
|
66444
|
+
if (!$util.isString(message.bodyText))
|
|
66445
|
+
return "bodyText: string expected";
|
|
66446
|
+
if (message.subtext != null && message.hasOwnProperty("subtext"))
|
|
66447
|
+
if (!$util.isString(message.subtext))
|
|
66448
|
+
return "subtext: string expected";
|
|
66449
|
+
if (message.subtextSecondary != null && message.hasOwnProperty("subtextSecondary"))
|
|
66450
|
+
if (!$util.isString(message.subtextSecondary))
|
|
66451
|
+
return "subtextSecondary: string expected";
|
|
66452
|
+
if (message.narrators != null && message.hasOwnProperty("narrators")) {
|
|
66453
|
+
if (!Array.isArray(message.narrators))
|
|
66454
|
+
return "narrators: array expected";
|
|
66455
|
+
for (var i = 0; i < message.narrators.length; ++i) {
|
|
66456
|
+
var error = $root.Narrator.verify(message.narrators[i]);
|
|
66457
|
+
if (error)
|
|
66458
|
+
return "narrators." + error;
|
|
66459
|
+
}
|
|
66460
|
+
}
|
|
66461
|
+
if (message.tags != null && message.hasOwnProperty("tags")) {
|
|
66462
|
+
if (!Array.isArray(message.tags))
|
|
66463
|
+
return "tags: array expected";
|
|
66464
|
+
for (var i = 0; i < message.tags.length; ++i) {
|
|
66465
|
+
var error = $root.Tag.verify(message.tags[i]);
|
|
66466
|
+
if (error)
|
|
66467
|
+
return "tags." + error;
|
|
66468
|
+
}
|
|
66469
|
+
}
|
|
66470
|
+
return null;
|
|
66471
|
+
};
|
|
66472
|
+
|
|
66473
|
+
/**
|
|
66474
|
+
* Creates a Translation message from a plain object. Also converts values to their respective internal types.
|
|
66475
|
+
* @function fromObject
|
|
66476
|
+
* @memberof Translation
|
|
66477
|
+
* @static
|
|
66478
|
+
* @param {Object.<string,*>} object Plain object
|
|
66479
|
+
* @returns {Translation} Translation
|
|
66480
|
+
*/
|
|
66481
|
+
Translation.fromObject = function fromObject(object) {
|
|
66482
|
+
if (object instanceof $root.Translation)
|
|
66483
|
+
return object;
|
|
66484
|
+
var message = new $root.Translation();
|
|
66485
|
+
if (object.formattedContentTypeDisplayValue != null)
|
|
66486
|
+
message.formattedContentTypeDisplayValue = String(object.formattedContentTypeDisplayValue);
|
|
66487
|
+
if (object.title != null)
|
|
66488
|
+
message.title = String(object.title);
|
|
66489
|
+
if (object.bodyText != null)
|
|
66490
|
+
message.bodyText = String(object.bodyText);
|
|
66491
|
+
if (object.subtext != null)
|
|
66492
|
+
message.subtext = String(object.subtext);
|
|
66493
|
+
if (object.subtextSecondary != null)
|
|
66494
|
+
message.subtextSecondary = String(object.subtextSecondary);
|
|
66495
|
+
if (object.narrators) {
|
|
66496
|
+
if (!Array.isArray(object.narrators))
|
|
66497
|
+
throw TypeError(".Translation.narrators: array expected");
|
|
66498
|
+
message.narrators = [];
|
|
66499
|
+
for (var i = 0; i < object.narrators.length; ++i) {
|
|
66500
|
+
if (typeof object.narrators[i] !== "object")
|
|
66501
|
+
throw TypeError(".Translation.narrators: object expected");
|
|
66502
|
+
message.narrators[i] = $root.Narrator.fromObject(object.narrators[i]);
|
|
66503
|
+
}
|
|
66504
|
+
}
|
|
66505
|
+
if (object.tags) {
|
|
66506
|
+
if (!Array.isArray(object.tags))
|
|
66507
|
+
throw TypeError(".Translation.tags: array expected");
|
|
66508
|
+
message.tags = [];
|
|
66509
|
+
for (var i = 0; i < object.tags.length; ++i) {
|
|
66510
|
+
if (typeof object.tags[i] !== "object")
|
|
66511
|
+
throw TypeError(".Translation.tags: object expected");
|
|
66512
|
+
message.tags[i] = $root.Tag.fromObject(object.tags[i]);
|
|
66513
|
+
}
|
|
66514
|
+
}
|
|
66515
|
+
return message;
|
|
66516
|
+
};
|
|
66517
|
+
|
|
66518
|
+
/**
|
|
66519
|
+
* Creates a plain object from a Translation message. Also converts values to other types if specified.
|
|
66520
|
+
* @function toObject
|
|
66521
|
+
* @memberof Translation
|
|
66522
|
+
* @static
|
|
66523
|
+
* @param {Translation} message Translation
|
|
66524
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
66525
|
+
* @returns {Object.<string,*>} Plain object
|
|
66526
|
+
*/
|
|
66527
|
+
Translation.toObject = function toObject(message, options) {
|
|
66528
|
+
if (!options)
|
|
66529
|
+
options = {};
|
|
66530
|
+
var object = {};
|
|
66531
|
+
if (options.arrays || options.defaults) {
|
|
66532
|
+
object.narrators = [];
|
|
66533
|
+
object.tags = [];
|
|
66534
|
+
}
|
|
66535
|
+
if (options.defaults) {
|
|
66536
|
+
object.formattedContentTypeDisplayValue = "";
|
|
66537
|
+
object.title = "";
|
|
66538
|
+
object.bodyText = "";
|
|
66539
|
+
object.subtext = "";
|
|
66540
|
+
object.subtextSecondary = "";
|
|
66541
|
+
}
|
|
66542
|
+
if (message.formattedContentTypeDisplayValue != null && message.hasOwnProperty("formattedContentTypeDisplayValue"))
|
|
66543
|
+
object.formattedContentTypeDisplayValue = message.formattedContentTypeDisplayValue;
|
|
66544
|
+
if (message.title != null && message.hasOwnProperty("title"))
|
|
66545
|
+
object.title = message.title;
|
|
66546
|
+
if (message.bodyText != null && message.hasOwnProperty("bodyText"))
|
|
66547
|
+
object.bodyText = message.bodyText;
|
|
66548
|
+
if (message.subtext != null && message.hasOwnProperty("subtext"))
|
|
66549
|
+
object.subtext = message.subtext;
|
|
66550
|
+
if (message.subtextSecondary != null && message.hasOwnProperty("subtextSecondary"))
|
|
66551
|
+
object.subtextSecondary = message.subtextSecondary;
|
|
66552
|
+
if (message.narrators && message.narrators.length) {
|
|
66553
|
+
object.narrators = [];
|
|
66554
|
+
for (var j = 0; j < message.narrators.length; ++j)
|
|
66555
|
+
object.narrators[j] = $root.Narrator.toObject(message.narrators[j], options);
|
|
66556
|
+
}
|
|
66557
|
+
if (message.tags && message.tags.length) {
|
|
66558
|
+
object.tags = [];
|
|
66559
|
+
for (var j = 0; j < message.tags.length; ++j)
|
|
66560
|
+
object.tags[j] = $root.Tag.toObject(message.tags[j], options);
|
|
66561
|
+
}
|
|
66562
|
+
return object;
|
|
66563
|
+
};
|
|
66564
|
+
|
|
66565
|
+
/**
|
|
66566
|
+
* Converts this Translation to JSON.
|
|
66567
|
+
* @function toJSON
|
|
66568
|
+
* @memberof Translation
|
|
66569
|
+
* @instance
|
|
66570
|
+
* @returns {Object.<string,*>} JSON object
|
|
66571
|
+
*/
|
|
66572
|
+
Translation.prototype.toJSON = function toJSON() {
|
|
66573
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
66574
|
+
};
|
|
66575
|
+
|
|
66576
|
+
return Translation;
|
|
66577
|
+
})();
|
|
66578
|
+
|
|
65453
66579
|
$root.ContentEntityCreated = (function() {
|
|
65454
66580
|
|
|
65455
66581
|
/**
|
|
@@ -65469,6 +66595,16 @@ $root.ContentEntityCreated = (function() {
|
|
|
65469
66595
|
* @property {number|null} [ordinalNumber] ContentEntityCreated ordinalNumber
|
|
65470
66596
|
* @property {number|Long|null} [createdAt] ContentEntityCreated createdAt
|
|
65471
66597
|
* @property {number|Long|null} [updatedAt] ContentEntityCreated updatedAt
|
|
66598
|
+
* @property {string|null} [i18nSrcTitle] ContentEntityCreated i18nSrcTitle
|
|
66599
|
+
* @property {string|null} [trackingName] ContentEntityCreated trackingName
|
|
66600
|
+
* @property {number|null} [imageMediaId] ContentEntityCreated imageMediaId
|
|
66601
|
+
* @property {boolean|null} [subscriberContent] ContentEntityCreated subscriberContent
|
|
66602
|
+
* @property {boolean|null} [freeToTry] ContentEntityCreated freeToTry
|
|
66603
|
+
* @property {string|null} [primaryColor] ContentEntityCreated primaryColor
|
|
66604
|
+
* @property {string|null} [secondaryColor] ContentEntityCreated secondaryColor
|
|
66605
|
+
* @property {string|null} [tertiaryColor] ContentEntityCreated tertiaryColor
|
|
66606
|
+
* @property {number|null} [patternMediaId] ContentEntityCreated patternMediaId
|
|
66607
|
+
* @property {Object.<string,ITranslation>|null} [translations] ContentEntityCreated translations
|
|
65472
66608
|
*/
|
|
65473
66609
|
|
|
65474
66610
|
/**
|
|
@@ -65480,6 +66616,7 @@ $root.ContentEntityCreated = (function() {
|
|
|
65480
66616
|
* @param {IContentEntityCreated=} [properties] Properties to set
|
|
65481
66617
|
*/
|
|
65482
66618
|
function ContentEntityCreated(properties) {
|
|
66619
|
+
this.translations = {};
|
|
65483
66620
|
if (properties)
|
|
65484
66621
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
65485
66622
|
if (properties[keys[i]] != null)
|
|
@@ -65590,6 +66727,86 @@ $root.ContentEntityCreated = (function() {
|
|
|
65590
66727
|
*/
|
|
65591
66728
|
ContentEntityCreated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
65592
66729
|
|
|
66730
|
+
/**
|
|
66731
|
+
* ContentEntityCreated i18nSrcTitle.
|
|
66732
|
+
* @member {string} i18nSrcTitle
|
|
66733
|
+
* @memberof ContentEntityCreated
|
|
66734
|
+
* @instance
|
|
66735
|
+
*/
|
|
66736
|
+
ContentEntityCreated.prototype.i18nSrcTitle = "";
|
|
66737
|
+
|
|
66738
|
+
/**
|
|
66739
|
+
* ContentEntityCreated trackingName.
|
|
66740
|
+
* @member {string} trackingName
|
|
66741
|
+
* @memberof ContentEntityCreated
|
|
66742
|
+
* @instance
|
|
66743
|
+
*/
|
|
66744
|
+
ContentEntityCreated.prototype.trackingName = "";
|
|
66745
|
+
|
|
66746
|
+
/**
|
|
66747
|
+
* ContentEntityCreated imageMediaId.
|
|
66748
|
+
* @member {number} imageMediaId
|
|
66749
|
+
* @memberof ContentEntityCreated
|
|
66750
|
+
* @instance
|
|
66751
|
+
*/
|
|
66752
|
+
ContentEntityCreated.prototype.imageMediaId = 0;
|
|
66753
|
+
|
|
66754
|
+
/**
|
|
66755
|
+
* ContentEntityCreated subscriberContent.
|
|
66756
|
+
* @member {boolean} subscriberContent
|
|
66757
|
+
* @memberof ContentEntityCreated
|
|
66758
|
+
* @instance
|
|
66759
|
+
*/
|
|
66760
|
+
ContentEntityCreated.prototype.subscriberContent = false;
|
|
66761
|
+
|
|
66762
|
+
/**
|
|
66763
|
+
* ContentEntityCreated freeToTry.
|
|
66764
|
+
* @member {boolean} freeToTry
|
|
66765
|
+
* @memberof ContentEntityCreated
|
|
66766
|
+
* @instance
|
|
66767
|
+
*/
|
|
66768
|
+
ContentEntityCreated.prototype.freeToTry = false;
|
|
66769
|
+
|
|
66770
|
+
/**
|
|
66771
|
+
* ContentEntityCreated primaryColor.
|
|
66772
|
+
* @member {string} primaryColor
|
|
66773
|
+
* @memberof ContentEntityCreated
|
|
66774
|
+
* @instance
|
|
66775
|
+
*/
|
|
66776
|
+
ContentEntityCreated.prototype.primaryColor = "";
|
|
66777
|
+
|
|
66778
|
+
/**
|
|
66779
|
+
* ContentEntityCreated secondaryColor.
|
|
66780
|
+
* @member {string} secondaryColor
|
|
66781
|
+
* @memberof ContentEntityCreated
|
|
66782
|
+
* @instance
|
|
66783
|
+
*/
|
|
66784
|
+
ContentEntityCreated.prototype.secondaryColor = "";
|
|
66785
|
+
|
|
66786
|
+
/**
|
|
66787
|
+
* ContentEntityCreated tertiaryColor.
|
|
66788
|
+
* @member {string} tertiaryColor
|
|
66789
|
+
* @memberof ContentEntityCreated
|
|
66790
|
+
* @instance
|
|
66791
|
+
*/
|
|
66792
|
+
ContentEntityCreated.prototype.tertiaryColor = "";
|
|
66793
|
+
|
|
66794
|
+
/**
|
|
66795
|
+
* ContentEntityCreated patternMediaId.
|
|
66796
|
+
* @member {number} patternMediaId
|
|
66797
|
+
* @memberof ContentEntityCreated
|
|
66798
|
+
* @instance
|
|
66799
|
+
*/
|
|
66800
|
+
ContentEntityCreated.prototype.patternMediaId = 0;
|
|
66801
|
+
|
|
66802
|
+
/**
|
|
66803
|
+
* ContentEntityCreated translations.
|
|
66804
|
+
* @member {Object.<string,ITranslation>} translations
|
|
66805
|
+
* @memberof ContentEntityCreated
|
|
66806
|
+
* @instance
|
|
66807
|
+
*/
|
|
66808
|
+
ContentEntityCreated.prototype.translations = $util.emptyObject;
|
|
66809
|
+
|
|
65593
66810
|
/**
|
|
65594
66811
|
* Creates a new ContentEntityCreated instance using the specified properties.
|
|
65595
66812
|
* @function create
|
|
@@ -65640,6 +66857,29 @@ $root.ContentEntityCreated = (function() {
|
|
|
65640
66857
|
writer.uint32(/* id 12, wireType 0 =*/96).uint64(message.createdAt);
|
|
65641
66858
|
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
65642
66859
|
writer.uint32(/* id 13, wireType 0 =*/104).uint64(message.updatedAt);
|
|
66860
|
+
if (message.i18nSrcTitle != null && message.hasOwnProperty("i18nSrcTitle"))
|
|
66861
|
+
writer.uint32(/* id 14, wireType 2 =*/114).string(message.i18nSrcTitle);
|
|
66862
|
+
if (message.trackingName != null && message.hasOwnProperty("trackingName"))
|
|
66863
|
+
writer.uint32(/* id 15, wireType 2 =*/122).string(message.trackingName);
|
|
66864
|
+
if (message.imageMediaId != null && message.hasOwnProperty("imageMediaId"))
|
|
66865
|
+
writer.uint32(/* id 16, wireType 0 =*/128).uint32(message.imageMediaId);
|
|
66866
|
+
if (message.subscriberContent != null && message.hasOwnProperty("subscriberContent"))
|
|
66867
|
+
writer.uint32(/* id 17, wireType 0 =*/136).bool(message.subscriberContent);
|
|
66868
|
+
if (message.freeToTry != null && message.hasOwnProperty("freeToTry"))
|
|
66869
|
+
writer.uint32(/* id 18, wireType 0 =*/144).bool(message.freeToTry);
|
|
66870
|
+
if (message.primaryColor != null && message.hasOwnProperty("primaryColor"))
|
|
66871
|
+
writer.uint32(/* id 19, wireType 2 =*/154).string(message.primaryColor);
|
|
66872
|
+
if (message.secondaryColor != null && message.hasOwnProperty("secondaryColor"))
|
|
66873
|
+
writer.uint32(/* id 20, wireType 2 =*/162).string(message.secondaryColor);
|
|
66874
|
+
if (message.tertiaryColor != null && message.hasOwnProperty("tertiaryColor"))
|
|
66875
|
+
writer.uint32(/* id 21, wireType 2 =*/170).string(message.tertiaryColor);
|
|
66876
|
+
if (message.patternMediaId != null && message.hasOwnProperty("patternMediaId"))
|
|
66877
|
+
writer.uint32(/* id 22, wireType 0 =*/176).uint32(message.patternMediaId);
|
|
66878
|
+
if (message.translations != null && message.hasOwnProperty("translations"))
|
|
66879
|
+
for (var keys = Object.keys(message.translations), i = 0; i < keys.length; ++i) {
|
|
66880
|
+
writer.uint32(/* id 23, wireType 2 =*/186).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
66881
|
+
$root.Translation.encode(message.translations[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
66882
|
+
}
|
|
65643
66883
|
return writer;
|
|
65644
66884
|
};
|
|
65645
66885
|
|
|
@@ -65670,7 +66910,7 @@ $root.ContentEntityCreated = (function() {
|
|
|
65670
66910
|
ContentEntityCreated.decode = function decode(reader, length) {
|
|
65671
66911
|
if (!(reader instanceof $Reader))
|
|
65672
66912
|
reader = $Reader.create(reader);
|
|
65673
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentEntityCreated();
|
|
66913
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentEntityCreated(), key;
|
|
65674
66914
|
while (reader.pos < end) {
|
|
65675
66915
|
var tag = reader.uint32();
|
|
65676
66916
|
switch (tag >>> 3) {
|
|
@@ -65713,6 +66953,41 @@ $root.ContentEntityCreated = (function() {
|
|
|
65713
66953
|
case 13:
|
|
65714
66954
|
message.updatedAt = reader.uint64();
|
|
65715
66955
|
break;
|
|
66956
|
+
case 14:
|
|
66957
|
+
message.i18nSrcTitle = reader.string();
|
|
66958
|
+
break;
|
|
66959
|
+
case 15:
|
|
66960
|
+
message.trackingName = reader.string();
|
|
66961
|
+
break;
|
|
66962
|
+
case 16:
|
|
66963
|
+
message.imageMediaId = reader.uint32();
|
|
66964
|
+
break;
|
|
66965
|
+
case 17:
|
|
66966
|
+
message.subscriberContent = reader.bool();
|
|
66967
|
+
break;
|
|
66968
|
+
case 18:
|
|
66969
|
+
message.freeToTry = reader.bool();
|
|
66970
|
+
break;
|
|
66971
|
+
case 19:
|
|
66972
|
+
message.primaryColor = reader.string();
|
|
66973
|
+
break;
|
|
66974
|
+
case 20:
|
|
66975
|
+
message.secondaryColor = reader.string();
|
|
66976
|
+
break;
|
|
66977
|
+
case 21:
|
|
66978
|
+
message.tertiaryColor = reader.string();
|
|
66979
|
+
break;
|
|
66980
|
+
case 22:
|
|
66981
|
+
message.patternMediaId = reader.uint32();
|
|
66982
|
+
break;
|
|
66983
|
+
case 23:
|
|
66984
|
+
reader.skip().pos++;
|
|
66985
|
+
if (message.translations === $util.emptyObject)
|
|
66986
|
+
message.translations = {};
|
|
66987
|
+
key = reader.string();
|
|
66988
|
+
reader.pos++;
|
|
66989
|
+
message.translations[key] = $root.Translation.decode(reader, reader.uint32());
|
|
66990
|
+
break;
|
|
65716
66991
|
default:
|
|
65717
66992
|
reader.skipType(tag & 7);
|
|
65718
66993
|
break;
|
|
@@ -65850,6 +67125,43 @@ $root.ContentEntityCreated = (function() {
|
|
|
65850
67125
|
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
65851
67126
|
if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
|
|
65852
67127
|
return "updatedAt: integer|Long expected";
|
|
67128
|
+
if (message.i18nSrcTitle != null && message.hasOwnProperty("i18nSrcTitle"))
|
|
67129
|
+
if (!$util.isString(message.i18nSrcTitle))
|
|
67130
|
+
return "i18nSrcTitle: string expected";
|
|
67131
|
+
if (message.trackingName != null && message.hasOwnProperty("trackingName"))
|
|
67132
|
+
if (!$util.isString(message.trackingName))
|
|
67133
|
+
return "trackingName: string expected";
|
|
67134
|
+
if (message.imageMediaId != null && message.hasOwnProperty("imageMediaId"))
|
|
67135
|
+
if (!$util.isInteger(message.imageMediaId))
|
|
67136
|
+
return "imageMediaId: integer expected";
|
|
67137
|
+
if (message.subscriberContent != null && message.hasOwnProperty("subscriberContent"))
|
|
67138
|
+
if (typeof message.subscriberContent !== "boolean")
|
|
67139
|
+
return "subscriberContent: boolean expected";
|
|
67140
|
+
if (message.freeToTry != null && message.hasOwnProperty("freeToTry"))
|
|
67141
|
+
if (typeof message.freeToTry !== "boolean")
|
|
67142
|
+
return "freeToTry: boolean expected";
|
|
67143
|
+
if (message.primaryColor != null && message.hasOwnProperty("primaryColor"))
|
|
67144
|
+
if (!$util.isString(message.primaryColor))
|
|
67145
|
+
return "primaryColor: string expected";
|
|
67146
|
+
if (message.secondaryColor != null && message.hasOwnProperty("secondaryColor"))
|
|
67147
|
+
if (!$util.isString(message.secondaryColor))
|
|
67148
|
+
return "secondaryColor: string expected";
|
|
67149
|
+
if (message.tertiaryColor != null && message.hasOwnProperty("tertiaryColor"))
|
|
67150
|
+
if (!$util.isString(message.tertiaryColor))
|
|
67151
|
+
return "tertiaryColor: string expected";
|
|
67152
|
+
if (message.patternMediaId != null && message.hasOwnProperty("patternMediaId"))
|
|
67153
|
+
if (!$util.isInteger(message.patternMediaId))
|
|
67154
|
+
return "patternMediaId: integer expected";
|
|
67155
|
+
if (message.translations != null && message.hasOwnProperty("translations")) {
|
|
67156
|
+
if (!$util.isObject(message.translations))
|
|
67157
|
+
return "translations: object expected";
|
|
67158
|
+
var key = Object.keys(message.translations);
|
|
67159
|
+
for (var i = 0; i < key.length; ++i) {
|
|
67160
|
+
var error = $root.Translation.verify(message.translations[key[i]]);
|
|
67161
|
+
if (error)
|
|
67162
|
+
return "translations." + error;
|
|
67163
|
+
}
|
|
67164
|
+
}
|
|
65853
67165
|
return null;
|
|
65854
67166
|
};
|
|
65855
67167
|
|
|
@@ -66109,6 +67421,34 @@ $root.ContentEntityCreated = (function() {
|
|
|
66109
67421
|
message.updatedAt = object.updatedAt;
|
|
66110
67422
|
else if (typeof object.updatedAt === "object")
|
|
66111
67423
|
message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
|
|
67424
|
+
if (object.i18nSrcTitle != null)
|
|
67425
|
+
message.i18nSrcTitle = String(object.i18nSrcTitle);
|
|
67426
|
+
if (object.trackingName != null)
|
|
67427
|
+
message.trackingName = String(object.trackingName);
|
|
67428
|
+
if (object.imageMediaId != null)
|
|
67429
|
+
message.imageMediaId = object.imageMediaId >>> 0;
|
|
67430
|
+
if (object.subscriberContent != null)
|
|
67431
|
+
message.subscriberContent = Boolean(object.subscriberContent);
|
|
67432
|
+
if (object.freeToTry != null)
|
|
67433
|
+
message.freeToTry = Boolean(object.freeToTry);
|
|
67434
|
+
if (object.primaryColor != null)
|
|
67435
|
+
message.primaryColor = String(object.primaryColor);
|
|
67436
|
+
if (object.secondaryColor != null)
|
|
67437
|
+
message.secondaryColor = String(object.secondaryColor);
|
|
67438
|
+
if (object.tertiaryColor != null)
|
|
67439
|
+
message.tertiaryColor = String(object.tertiaryColor);
|
|
67440
|
+
if (object.patternMediaId != null)
|
|
67441
|
+
message.patternMediaId = object.patternMediaId >>> 0;
|
|
67442
|
+
if (object.translations) {
|
|
67443
|
+
if (typeof object.translations !== "object")
|
|
67444
|
+
throw TypeError(".ContentEntityCreated.translations: object expected");
|
|
67445
|
+
message.translations = {};
|
|
67446
|
+
for (var keys = Object.keys(object.translations), i = 0; i < keys.length; ++i) {
|
|
67447
|
+
if (typeof object.translations[keys[i]] !== "object")
|
|
67448
|
+
throw TypeError(".ContentEntityCreated.translations: object expected");
|
|
67449
|
+
message.translations[keys[i]] = $root.Translation.fromObject(object.translations[keys[i]]);
|
|
67450
|
+
}
|
|
67451
|
+
}
|
|
66112
67452
|
return message;
|
|
66113
67453
|
};
|
|
66114
67454
|
|
|
@@ -66125,6 +67465,8 @@ $root.ContentEntityCreated = (function() {
|
|
|
66125
67465
|
if (!options)
|
|
66126
67466
|
options = {};
|
|
66127
67467
|
var object = {};
|
|
67468
|
+
if (options.objects || options.defaults)
|
|
67469
|
+
object.translations = {};
|
|
66128
67470
|
if (options.defaults) {
|
|
66129
67471
|
object.id = 0;
|
|
66130
67472
|
object.contentType = options.enums === String ? "CONTENT_TYPE_UNRECOGNIZED" : 0;
|
|
@@ -66147,6 +67489,15 @@ $root.ContentEntityCreated = (function() {
|
|
|
66147
67489
|
object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
66148
67490
|
} else
|
|
66149
67491
|
object.updatedAt = options.longs === String ? "0" : 0;
|
|
67492
|
+
object.i18nSrcTitle = "";
|
|
67493
|
+
object.trackingName = "";
|
|
67494
|
+
object.imageMediaId = 0;
|
|
67495
|
+
object.subscriberContent = false;
|
|
67496
|
+
object.freeToTry = false;
|
|
67497
|
+
object.primaryColor = "";
|
|
67498
|
+
object.secondaryColor = "";
|
|
67499
|
+
object.tertiaryColor = "";
|
|
67500
|
+
object.patternMediaId = 0;
|
|
66150
67501
|
}
|
|
66151
67502
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
66152
67503
|
object.id = message.id;
|
|
@@ -66180,6 +67531,30 @@ $root.ContentEntityCreated = (function() {
|
|
|
66180
67531
|
object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
|
|
66181
67532
|
else
|
|
66182
67533
|
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;
|
|
67534
|
+
if (message.i18nSrcTitle != null && message.hasOwnProperty("i18nSrcTitle"))
|
|
67535
|
+
object.i18nSrcTitle = message.i18nSrcTitle;
|
|
67536
|
+
if (message.trackingName != null && message.hasOwnProperty("trackingName"))
|
|
67537
|
+
object.trackingName = message.trackingName;
|
|
67538
|
+
if (message.imageMediaId != null && message.hasOwnProperty("imageMediaId"))
|
|
67539
|
+
object.imageMediaId = message.imageMediaId;
|
|
67540
|
+
if (message.subscriberContent != null && message.hasOwnProperty("subscriberContent"))
|
|
67541
|
+
object.subscriberContent = message.subscriberContent;
|
|
67542
|
+
if (message.freeToTry != null && message.hasOwnProperty("freeToTry"))
|
|
67543
|
+
object.freeToTry = message.freeToTry;
|
|
67544
|
+
if (message.primaryColor != null && message.hasOwnProperty("primaryColor"))
|
|
67545
|
+
object.primaryColor = message.primaryColor;
|
|
67546
|
+
if (message.secondaryColor != null && message.hasOwnProperty("secondaryColor"))
|
|
67547
|
+
object.secondaryColor = message.secondaryColor;
|
|
67548
|
+
if (message.tertiaryColor != null && message.hasOwnProperty("tertiaryColor"))
|
|
67549
|
+
object.tertiaryColor = message.tertiaryColor;
|
|
67550
|
+
if (message.patternMediaId != null && message.hasOwnProperty("patternMediaId"))
|
|
67551
|
+
object.patternMediaId = message.patternMediaId;
|
|
67552
|
+
var keys2;
|
|
67553
|
+
if (message.translations && (keys2 = Object.keys(message.translations)).length) {
|
|
67554
|
+
object.translations = {};
|
|
67555
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
67556
|
+
object.translations[keys2[j]] = $root.Translation.toObject(message.translations[keys2[j]], options);
|
|
67557
|
+
}
|
|
66183
67558
|
return object;
|
|
66184
67559
|
};
|
|
66185
67560
|
|
|
@@ -66216,6 +67591,16 @@ $root.ContentEntityUpdated = (function() {
|
|
|
66216
67591
|
* @property {number|null} [ordinalNumber] ContentEntityUpdated ordinalNumber
|
|
66217
67592
|
* @property {number|Long|null} [createdAt] ContentEntityUpdated createdAt
|
|
66218
67593
|
* @property {number|Long|null} [updatedAt] ContentEntityUpdated updatedAt
|
|
67594
|
+
* @property {string|null} [i18nSrcTitle] ContentEntityUpdated i18nSrcTitle
|
|
67595
|
+
* @property {string|null} [trackingName] ContentEntityUpdated trackingName
|
|
67596
|
+
* @property {number|null} [imageMediaId] ContentEntityUpdated imageMediaId
|
|
67597
|
+
* @property {boolean|null} [subscriberContent] ContentEntityUpdated subscriberContent
|
|
67598
|
+
* @property {boolean|null} [freeToTry] ContentEntityUpdated freeToTry
|
|
67599
|
+
* @property {string|null} [primaryColor] ContentEntityUpdated primaryColor
|
|
67600
|
+
* @property {string|null} [secondaryColor] ContentEntityUpdated secondaryColor
|
|
67601
|
+
* @property {string|null} [tertiaryColor] ContentEntityUpdated tertiaryColor
|
|
67602
|
+
* @property {number|null} [patternMediaId] ContentEntityUpdated patternMediaId
|
|
67603
|
+
* @property {Object.<string,ITranslation>|null} [translations] ContentEntityUpdated translations
|
|
66219
67604
|
*/
|
|
66220
67605
|
|
|
66221
67606
|
/**
|
|
@@ -66227,6 +67612,7 @@ $root.ContentEntityUpdated = (function() {
|
|
|
66227
67612
|
* @param {IContentEntityUpdated=} [properties] Properties to set
|
|
66228
67613
|
*/
|
|
66229
67614
|
function ContentEntityUpdated(properties) {
|
|
67615
|
+
this.translations = {};
|
|
66230
67616
|
if (properties)
|
|
66231
67617
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
66232
67618
|
if (properties[keys[i]] != null)
|
|
@@ -66337,6 +67723,86 @@ $root.ContentEntityUpdated = (function() {
|
|
|
66337
67723
|
*/
|
|
66338
67724
|
ContentEntityUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
66339
67725
|
|
|
67726
|
+
/**
|
|
67727
|
+
* ContentEntityUpdated i18nSrcTitle.
|
|
67728
|
+
* @member {string} i18nSrcTitle
|
|
67729
|
+
* @memberof ContentEntityUpdated
|
|
67730
|
+
* @instance
|
|
67731
|
+
*/
|
|
67732
|
+
ContentEntityUpdated.prototype.i18nSrcTitle = "";
|
|
67733
|
+
|
|
67734
|
+
/**
|
|
67735
|
+
* ContentEntityUpdated trackingName.
|
|
67736
|
+
* @member {string} trackingName
|
|
67737
|
+
* @memberof ContentEntityUpdated
|
|
67738
|
+
* @instance
|
|
67739
|
+
*/
|
|
67740
|
+
ContentEntityUpdated.prototype.trackingName = "";
|
|
67741
|
+
|
|
67742
|
+
/**
|
|
67743
|
+
* ContentEntityUpdated imageMediaId.
|
|
67744
|
+
* @member {number} imageMediaId
|
|
67745
|
+
* @memberof ContentEntityUpdated
|
|
67746
|
+
* @instance
|
|
67747
|
+
*/
|
|
67748
|
+
ContentEntityUpdated.prototype.imageMediaId = 0;
|
|
67749
|
+
|
|
67750
|
+
/**
|
|
67751
|
+
* ContentEntityUpdated subscriberContent.
|
|
67752
|
+
* @member {boolean} subscriberContent
|
|
67753
|
+
* @memberof ContentEntityUpdated
|
|
67754
|
+
* @instance
|
|
67755
|
+
*/
|
|
67756
|
+
ContentEntityUpdated.prototype.subscriberContent = false;
|
|
67757
|
+
|
|
67758
|
+
/**
|
|
67759
|
+
* ContentEntityUpdated freeToTry.
|
|
67760
|
+
* @member {boolean} freeToTry
|
|
67761
|
+
* @memberof ContentEntityUpdated
|
|
67762
|
+
* @instance
|
|
67763
|
+
*/
|
|
67764
|
+
ContentEntityUpdated.prototype.freeToTry = false;
|
|
67765
|
+
|
|
67766
|
+
/**
|
|
67767
|
+
* ContentEntityUpdated primaryColor.
|
|
67768
|
+
* @member {string} primaryColor
|
|
67769
|
+
* @memberof ContentEntityUpdated
|
|
67770
|
+
* @instance
|
|
67771
|
+
*/
|
|
67772
|
+
ContentEntityUpdated.prototype.primaryColor = "";
|
|
67773
|
+
|
|
67774
|
+
/**
|
|
67775
|
+
* ContentEntityUpdated secondaryColor.
|
|
67776
|
+
* @member {string} secondaryColor
|
|
67777
|
+
* @memberof ContentEntityUpdated
|
|
67778
|
+
* @instance
|
|
67779
|
+
*/
|
|
67780
|
+
ContentEntityUpdated.prototype.secondaryColor = "";
|
|
67781
|
+
|
|
67782
|
+
/**
|
|
67783
|
+
* ContentEntityUpdated tertiaryColor.
|
|
67784
|
+
* @member {string} tertiaryColor
|
|
67785
|
+
* @memberof ContentEntityUpdated
|
|
67786
|
+
* @instance
|
|
67787
|
+
*/
|
|
67788
|
+
ContentEntityUpdated.prototype.tertiaryColor = "";
|
|
67789
|
+
|
|
67790
|
+
/**
|
|
67791
|
+
* ContentEntityUpdated patternMediaId.
|
|
67792
|
+
* @member {number} patternMediaId
|
|
67793
|
+
* @memberof ContentEntityUpdated
|
|
67794
|
+
* @instance
|
|
67795
|
+
*/
|
|
67796
|
+
ContentEntityUpdated.prototype.patternMediaId = 0;
|
|
67797
|
+
|
|
67798
|
+
/**
|
|
67799
|
+
* ContentEntityUpdated translations.
|
|
67800
|
+
* @member {Object.<string,ITranslation>} translations
|
|
67801
|
+
* @memberof ContentEntityUpdated
|
|
67802
|
+
* @instance
|
|
67803
|
+
*/
|
|
67804
|
+
ContentEntityUpdated.prototype.translations = $util.emptyObject;
|
|
67805
|
+
|
|
66340
67806
|
/**
|
|
66341
67807
|
* Creates a new ContentEntityUpdated instance using the specified properties.
|
|
66342
67808
|
* @function create
|
|
@@ -66387,6 +67853,29 @@ $root.ContentEntityUpdated = (function() {
|
|
|
66387
67853
|
writer.uint32(/* id 12, wireType 0 =*/96).uint64(message.createdAt);
|
|
66388
67854
|
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
66389
67855
|
writer.uint32(/* id 13, wireType 0 =*/104).uint64(message.updatedAt);
|
|
67856
|
+
if (message.i18nSrcTitle != null && message.hasOwnProperty("i18nSrcTitle"))
|
|
67857
|
+
writer.uint32(/* id 14, wireType 2 =*/114).string(message.i18nSrcTitle);
|
|
67858
|
+
if (message.trackingName != null && message.hasOwnProperty("trackingName"))
|
|
67859
|
+
writer.uint32(/* id 15, wireType 2 =*/122).string(message.trackingName);
|
|
67860
|
+
if (message.imageMediaId != null && message.hasOwnProperty("imageMediaId"))
|
|
67861
|
+
writer.uint32(/* id 16, wireType 0 =*/128).uint32(message.imageMediaId);
|
|
67862
|
+
if (message.subscriberContent != null && message.hasOwnProperty("subscriberContent"))
|
|
67863
|
+
writer.uint32(/* id 17, wireType 0 =*/136).bool(message.subscriberContent);
|
|
67864
|
+
if (message.freeToTry != null && message.hasOwnProperty("freeToTry"))
|
|
67865
|
+
writer.uint32(/* id 18, wireType 0 =*/144).bool(message.freeToTry);
|
|
67866
|
+
if (message.primaryColor != null && message.hasOwnProperty("primaryColor"))
|
|
67867
|
+
writer.uint32(/* id 19, wireType 2 =*/154).string(message.primaryColor);
|
|
67868
|
+
if (message.secondaryColor != null && message.hasOwnProperty("secondaryColor"))
|
|
67869
|
+
writer.uint32(/* id 20, wireType 2 =*/162).string(message.secondaryColor);
|
|
67870
|
+
if (message.tertiaryColor != null && message.hasOwnProperty("tertiaryColor"))
|
|
67871
|
+
writer.uint32(/* id 21, wireType 2 =*/170).string(message.tertiaryColor);
|
|
67872
|
+
if (message.patternMediaId != null && message.hasOwnProperty("patternMediaId"))
|
|
67873
|
+
writer.uint32(/* id 22, wireType 0 =*/176).uint32(message.patternMediaId);
|
|
67874
|
+
if (message.translations != null && message.hasOwnProperty("translations"))
|
|
67875
|
+
for (var keys = Object.keys(message.translations), i = 0; i < keys.length; ++i) {
|
|
67876
|
+
writer.uint32(/* id 23, wireType 2 =*/186).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
67877
|
+
$root.Translation.encode(message.translations[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
67878
|
+
}
|
|
66390
67879
|
return writer;
|
|
66391
67880
|
};
|
|
66392
67881
|
|
|
@@ -66417,7 +67906,7 @@ $root.ContentEntityUpdated = (function() {
|
|
|
66417
67906
|
ContentEntityUpdated.decode = function decode(reader, length) {
|
|
66418
67907
|
if (!(reader instanceof $Reader))
|
|
66419
67908
|
reader = $Reader.create(reader);
|
|
66420
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentEntityUpdated();
|
|
67909
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentEntityUpdated(), key;
|
|
66421
67910
|
while (reader.pos < end) {
|
|
66422
67911
|
var tag = reader.uint32();
|
|
66423
67912
|
switch (tag >>> 3) {
|
|
@@ -66460,6 +67949,41 @@ $root.ContentEntityUpdated = (function() {
|
|
|
66460
67949
|
case 13:
|
|
66461
67950
|
message.updatedAt = reader.uint64();
|
|
66462
67951
|
break;
|
|
67952
|
+
case 14:
|
|
67953
|
+
message.i18nSrcTitle = reader.string();
|
|
67954
|
+
break;
|
|
67955
|
+
case 15:
|
|
67956
|
+
message.trackingName = reader.string();
|
|
67957
|
+
break;
|
|
67958
|
+
case 16:
|
|
67959
|
+
message.imageMediaId = reader.uint32();
|
|
67960
|
+
break;
|
|
67961
|
+
case 17:
|
|
67962
|
+
message.subscriberContent = reader.bool();
|
|
67963
|
+
break;
|
|
67964
|
+
case 18:
|
|
67965
|
+
message.freeToTry = reader.bool();
|
|
67966
|
+
break;
|
|
67967
|
+
case 19:
|
|
67968
|
+
message.primaryColor = reader.string();
|
|
67969
|
+
break;
|
|
67970
|
+
case 20:
|
|
67971
|
+
message.secondaryColor = reader.string();
|
|
67972
|
+
break;
|
|
67973
|
+
case 21:
|
|
67974
|
+
message.tertiaryColor = reader.string();
|
|
67975
|
+
break;
|
|
67976
|
+
case 22:
|
|
67977
|
+
message.patternMediaId = reader.uint32();
|
|
67978
|
+
break;
|
|
67979
|
+
case 23:
|
|
67980
|
+
reader.skip().pos++;
|
|
67981
|
+
if (message.translations === $util.emptyObject)
|
|
67982
|
+
message.translations = {};
|
|
67983
|
+
key = reader.string();
|
|
67984
|
+
reader.pos++;
|
|
67985
|
+
message.translations[key] = $root.Translation.decode(reader, reader.uint32());
|
|
67986
|
+
break;
|
|
66463
67987
|
default:
|
|
66464
67988
|
reader.skipType(tag & 7);
|
|
66465
67989
|
break;
|
|
@@ -66597,6 +68121,43 @@ $root.ContentEntityUpdated = (function() {
|
|
|
66597
68121
|
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
66598
68122
|
if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
|
|
66599
68123
|
return "updatedAt: integer|Long expected";
|
|
68124
|
+
if (message.i18nSrcTitle != null && message.hasOwnProperty("i18nSrcTitle"))
|
|
68125
|
+
if (!$util.isString(message.i18nSrcTitle))
|
|
68126
|
+
return "i18nSrcTitle: string expected";
|
|
68127
|
+
if (message.trackingName != null && message.hasOwnProperty("trackingName"))
|
|
68128
|
+
if (!$util.isString(message.trackingName))
|
|
68129
|
+
return "trackingName: string expected";
|
|
68130
|
+
if (message.imageMediaId != null && message.hasOwnProperty("imageMediaId"))
|
|
68131
|
+
if (!$util.isInteger(message.imageMediaId))
|
|
68132
|
+
return "imageMediaId: integer expected";
|
|
68133
|
+
if (message.subscriberContent != null && message.hasOwnProperty("subscriberContent"))
|
|
68134
|
+
if (typeof message.subscriberContent !== "boolean")
|
|
68135
|
+
return "subscriberContent: boolean expected";
|
|
68136
|
+
if (message.freeToTry != null && message.hasOwnProperty("freeToTry"))
|
|
68137
|
+
if (typeof message.freeToTry !== "boolean")
|
|
68138
|
+
return "freeToTry: boolean expected";
|
|
68139
|
+
if (message.primaryColor != null && message.hasOwnProperty("primaryColor"))
|
|
68140
|
+
if (!$util.isString(message.primaryColor))
|
|
68141
|
+
return "primaryColor: string expected";
|
|
68142
|
+
if (message.secondaryColor != null && message.hasOwnProperty("secondaryColor"))
|
|
68143
|
+
if (!$util.isString(message.secondaryColor))
|
|
68144
|
+
return "secondaryColor: string expected";
|
|
68145
|
+
if (message.tertiaryColor != null && message.hasOwnProperty("tertiaryColor"))
|
|
68146
|
+
if (!$util.isString(message.tertiaryColor))
|
|
68147
|
+
return "tertiaryColor: string expected";
|
|
68148
|
+
if (message.patternMediaId != null && message.hasOwnProperty("patternMediaId"))
|
|
68149
|
+
if (!$util.isInteger(message.patternMediaId))
|
|
68150
|
+
return "patternMediaId: integer expected";
|
|
68151
|
+
if (message.translations != null && message.hasOwnProperty("translations")) {
|
|
68152
|
+
if (!$util.isObject(message.translations))
|
|
68153
|
+
return "translations: object expected";
|
|
68154
|
+
var key = Object.keys(message.translations);
|
|
68155
|
+
for (var i = 0; i < key.length; ++i) {
|
|
68156
|
+
var error = $root.Translation.verify(message.translations[key[i]]);
|
|
68157
|
+
if (error)
|
|
68158
|
+
return "translations." + error;
|
|
68159
|
+
}
|
|
68160
|
+
}
|
|
66600
68161
|
return null;
|
|
66601
68162
|
};
|
|
66602
68163
|
|
|
@@ -66856,6 +68417,34 @@ $root.ContentEntityUpdated = (function() {
|
|
|
66856
68417
|
message.updatedAt = object.updatedAt;
|
|
66857
68418
|
else if (typeof object.updatedAt === "object")
|
|
66858
68419
|
message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
|
|
68420
|
+
if (object.i18nSrcTitle != null)
|
|
68421
|
+
message.i18nSrcTitle = String(object.i18nSrcTitle);
|
|
68422
|
+
if (object.trackingName != null)
|
|
68423
|
+
message.trackingName = String(object.trackingName);
|
|
68424
|
+
if (object.imageMediaId != null)
|
|
68425
|
+
message.imageMediaId = object.imageMediaId >>> 0;
|
|
68426
|
+
if (object.subscriberContent != null)
|
|
68427
|
+
message.subscriberContent = Boolean(object.subscriberContent);
|
|
68428
|
+
if (object.freeToTry != null)
|
|
68429
|
+
message.freeToTry = Boolean(object.freeToTry);
|
|
68430
|
+
if (object.primaryColor != null)
|
|
68431
|
+
message.primaryColor = String(object.primaryColor);
|
|
68432
|
+
if (object.secondaryColor != null)
|
|
68433
|
+
message.secondaryColor = String(object.secondaryColor);
|
|
68434
|
+
if (object.tertiaryColor != null)
|
|
68435
|
+
message.tertiaryColor = String(object.tertiaryColor);
|
|
68436
|
+
if (object.patternMediaId != null)
|
|
68437
|
+
message.patternMediaId = object.patternMediaId >>> 0;
|
|
68438
|
+
if (object.translations) {
|
|
68439
|
+
if (typeof object.translations !== "object")
|
|
68440
|
+
throw TypeError(".ContentEntityUpdated.translations: object expected");
|
|
68441
|
+
message.translations = {};
|
|
68442
|
+
for (var keys = Object.keys(object.translations), i = 0; i < keys.length; ++i) {
|
|
68443
|
+
if (typeof object.translations[keys[i]] !== "object")
|
|
68444
|
+
throw TypeError(".ContentEntityUpdated.translations: object expected");
|
|
68445
|
+
message.translations[keys[i]] = $root.Translation.fromObject(object.translations[keys[i]]);
|
|
68446
|
+
}
|
|
68447
|
+
}
|
|
66859
68448
|
return message;
|
|
66860
68449
|
};
|
|
66861
68450
|
|
|
@@ -66872,6 +68461,8 @@ $root.ContentEntityUpdated = (function() {
|
|
|
66872
68461
|
if (!options)
|
|
66873
68462
|
options = {};
|
|
66874
68463
|
var object = {};
|
|
68464
|
+
if (options.objects || options.defaults)
|
|
68465
|
+
object.translations = {};
|
|
66875
68466
|
if (options.defaults) {
|
|
66876
68467
|
object.id = 0;
|
|
66877
68468
|
object.contentType = options.enums === String ? "CONTENT_TYPE_UNRECOGNIZED" : 0;
|
|
@@ -66894,6 +68485,15 @@ $root.ContentEntityUpdated = (function() {
|
|
|
66894
68485
|
object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
66895
68486
|
} else
|
|
66896
68487
|
object.updatedAt = options.longs === String ? "0" : 0;
|
|
68488
|
+
object.i18nSrcTitle = "";
|
|
68489
|
+
object.trackingName = "";
|
|
68490
|
+
object.imageMediaId = 0;
|
|
68491
|
+
object.subscriberContent = false;
|
|
68492
|
+
object.freeToTry = false;
|
|
68493
|
+
object.primaryColor = "";
|
|
68494
|
+
object.secondaryColor = "";
|
|
68495
|
+
object.tertiaryColor = "";
|
|
68496
|
+
object.patternMediaId = 0;
|
|
66897
68497
|
}
|
|
66898
68498
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
66899
68499
|
object.id = message.id;
|
|
@@ -66927,6 +68527,30 @@ $root.ContentEntityUpdated = (function() {
|
|
|
66927
68527
|
object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
|
|
66928
68528
|
else
|
|
66929
68529
|
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;
|
|
68530
|
+
if (message.i18nSrcTitle != null && message.hasOwnProperty("i18nSrcTitle"))
|
|
68531
|
+
object.i18nSrcTitle = message.i18nSrcTitle;
|
|
68532
|
+
if (message.trackingName != null && message.hasOwnProperty("trackingName"))
|
|
68533
|
+
object.trackingName = message.trackingName;
|
|
68534
|
+
if (message.imageMediaId != null && message.hasOwnProperty("imageMediaId"))
|
|
68535
|
+
object.imageMediaId = message.imageMediaId;
|
|
68536
|
+
if (message.subscriberContent != null && message.hasOwnProperty("subscriberContent"))
|
|
68537
|
+
object.subscriberContent = message.subscriberContent;
|
|
68538
|
+
if (message.freeToTry != null && message.hasOwnProperty("freeToTry"))
|
|
68539
|
+
object.freeToTry = message.freeToTry;
|
|
68540
|
+
if (message.primaryColor != null && message.hasOwnProperty("primaryColor"))
|
|
68541
|
+
object.primaryColor = message.primaryColor;
|
|
68542
|
+
if (message.secondaryColor != null && message.hasOwnProperty("secondaryColor"))
|
|
68543
|
+
object.secondaryColor = message.secondaryColor;
|
|
68544
|
+
if (message.tertiaryColor != null && message.hasOwnProperty("tertiaryColor"))
|
|
68545
|
+
object.tertiaryColor = message.tertiaryColor;
|
|
68546
|
+
if (message.patternMediaId != null && message.hasOwnProperty("patternMediaId"))
|
|
68547
|
+
object.patternMediaId = message.patternMediaId;
|
|
68548
|
+
var keys2;
|
|
68549
|
+
if (message.translations && (keys2 = Object.keys(message.translations)).length) {
|
|
68550
|
+
object.translations = {};
|
|
68551
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
68552
|
+
object.translations[keys2[j]] = $root.Translation.toObject(message.translations[keys2[j]], options);
|
|
68553
|
+
}
|
|
66930
68554
|
return object;
|
|
66931
68555
|
};
|
|
66932
68556
|
|
|
@@ -66963,6 +68587,16 @@ $root.ContentEntityDeleted = (function() {
|
|
|
66963
68587
|
* @property {number|null} [ordinalNumber] ContentEntityDeleted ordinalNumber
|
|
66964
68588
|
* @property {number|Long|null} [createdAt] ContentEntityDeleted createdAt
|
|
66965
68589
|
* @property {number|Long|null} [updatedAt] ContentEntityDeleted updatedAt
|
|
68590
|
+
* @property {string|null} [i18nSrcTitle] ContentEntityDeleted i18nSrcTitle
|
|
68591
|
+
* @property {string|null} [trackingName] ContentEntityDeleted trackingName
|
|
68592
|
+
* @property {number|null} [imageMediaId] ContentEntityDeleted imageMediaId
|
|
68593
|
+
* @property {boolean|null} [subscriberContent] ContentEntityDeleted subscriberContent
|
|
68594
|
+
* @property {boolean|null} [freeToTry] ContentEntityDeleted freeToTry
|
|
68595
|
+
* @property {string|null} [primaryColor] ContentEntityDeleted primaryColor
|
|
68596
|
+
* @property {string|null} [secondaryColor] ContentEntityDeleted secondaryColor
|
|
68597
|
+
* @property {string|null} [tertiaryColor] ContentEntityDeleted tertiaryColor
|
|
68598
|
+
* @property {number|null} [patternMediaId] ContentEntityDeleted patternMediaId
|
|
68599
|
+
* @property {Object.<string,ITranslation>|null} [translations] ContentEntityDeleted translations
|
|
66966
68600
|
*/
|
|
66967
68601
|
|
|
66968
68602
|
/**
|
|
@@ -66974,6 +68608,7 @@ $root.ContentEntityDeleted = (function() {
|
|
|
66974
68608
|
* @param {IContentEntityDeleted=} [properties] Properties to set
|
|
66975
68609
|
*/
|
|
66976
68610
|
function ContentEntityDeleted(properties) {
|
|
68611
|
+
this.translations = {};
|
|
66977
68612
|
if (properties)
|
|
66978
68613
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
66979
68614
|
if (properties[keys[i]] != null)
|
|
@@ -67084,6 +68719,86 @@ $root.ContentEntityDeleted = (function() {
|
|
|
67084
68719
|
*/
|
|
67085
68720
|
ContentEntityDeleted.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
67086
68721
|
|
|
68722
|
+
/**
|
|
68723
|
+
* ContentEntityDeleted i18nSrcTitle.
|
|
68724
|
+
* @member {string} i18nSrcTitle
|
|
68725
|
+
* @memberof ContentEntityDeleted
|
|
68726
|
+
* @instance
|
|
68727
|
+
*/
|
|
68728
|
+
ContentEntityDeleted.prototype.i18nSrcTitle = "";
|
|
68729
|
+
|
|
68730
|
+
/**
|
|
68731
|
+
* ContentEntityDeleted trackingName.
|
|
68732
|
+
* @member {string} trackingName
|
|
68733
|
+
* @memberof ContentEntityDeleted
|
|
68734
|
+
* @instance
|
|
68735
|
+
*/
|
|
68736
|
+
ContentEntityDeleted.prototype.trackingName = "";
|
|
68737
|
+
|
|
68738
|
+
/**
|
|
68739
|
+
* ContentEntityDeleted imageMediaId.
|
|
68740
|
+
* @member {number} imageMediaId
|
|
68741
|
+
* @memberof ContentEntityDeleted
|
|
68742
|
+
* @instance
|
|
68743
|
+
*/
|
|
68744
|
+
ContentEntityDeleted.prototype.imageMediaId = 0;
|
|
68745
|
+
|
|
68746
|
+
/**
|
|
68747
|
+
* ContentEntityDeleted subscriberContent.
|
|
68748
|
+
* @member {boolean} subscriberContent
|
|
68749
|
+
* @memberof ContentEntityDeleted
|
|
68750
|
+
* @instance
|
|
68751
|
+
*/
|
|
68752
|
+
ContentEntityDeleted.prototype.subscriberContent = false;
|
|
68753
|
+
|
|
68754
|
+
/**
|
|
68755
|
+
* ContentEntityDeleted freeToTry.
|
|
68756
|
+
* @member {boolean} freeToTry
|
|
68757
|
+
* @memberof ContentEntityDeleted
|
|
68758
|
+
* @instance
|
|
68759
|
+
*/
|
|
68760
|
+
ContentEntityDeleted.prototype.freeToTry = false;
|
|
68761
|
+
|
|
68762
|
+
/**
|
|
68763
|
+
* ContentEntityDeleted primaryColor.
|
|
68764
|
+
* @member {string} primaryColor
|
|
68765
|
+
* @memberof ContentEntityDeleted
|
|
68766
|
+
* @instance
|
|
68767
|
+
*/
|
|
68768
|
+
ContentEntityDeleted.prototype.primaryColor = "";
|
|
68769
|
+
|
|
68770
|
+
/**
|
|
68771
|
+
* ContentEntityDeleted secondaryColor.
|
|
68772
|
+
* @member {string} secondaryColor
|
|
68773
|
+
* @memberof ContentEntityDeleted
|
|
68774
|
+
* @instance
|
|
68775
|
+
*/
|
|
68776
|
+
ContentEntityDeleted.prototype.secondaryColor = "";
|
|
68777
|
+
|
|
68778
|
+
/**
|
|
68779
|
+
* ContentEntityDeleted tertiaryColor.
|
|
68780
|
+
* @member {string} tertiaryColor
|
|
68781
|
+
* @memberof ContentEntityDeleted
|
|
68782
|
+
* @instance
|
|
68783
|
+
*/
|
|
68784
|
+
ContentEntityDeleted.prototype.tertiaryColor = "";
|
|
68785
|
+
|
|
68786
|
+
/**
|
|
68787
|
+
* ContentEntityDeleted patternMediaId.
|
|
68788
|
+
* @member {number} patternMediaId
|
|
68789
|
+
* @memberof ContentEntityDeleted
|
|
68790
|
+
* @instance
|
|
68791
|
+
*/
|
|
68792
|
+
ContentEntityDeleted.prototype.patternMediaId = 0;
|
|
68793
|
+
|
|
68794
|
+
/**
|
|
68795
|
+
* ContentEntityDeleted translations.
|
|
68796
|
+
* @member {Object.<string,ITranslation>} translations
|
|
68797
|
+
* @memberof ContentEntityDeleted
|
|
68798
|
+
* @instance
|
|
68799
|
+
*/
|
|
68800
|
+
ContentEntityDeleted.prototype.translations = $util.emptyObject;
|
|
68801
|
+
|
|
67087
68802
|
/**
|
|
67088
68803
|
* Creates a new ContentEntityDeleted instance using the specified properties.
|
|
67089
68804
|
* @function create
|
|
@@ -67134,6 +68849,29 @@ $root.ContentEntityDeleted = (function() {
|
|
|
67134
68849
|
writer.uint32(/* id 12, wireType 0 =*/96).uint64(message.createdAt);
|
|
67135
68850
|
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
67136
68851
|
writer.uint32(/* id 13, wireType 0 =*/104).uint64(message.updatedAt);
|
|
68852
|
+
if (message.i18nSrcTitle != null && message.hasOwnProperty("i18nSrcTitle"))
|
|
68853
|
+
writer.uint32(/* id 14, wireType 2 =*/114).string(message.i18nSrcTitle);
|
|
68854
|
+
if (message.trackingName != null && message.hasOwnProperty("trackingName"))
|
|
68855
|
+
writer.uint32(/* id 15, wireType 2 =*/122).string(message.trackingName);
|
|
68856
|
+
if (message.imageMediaId != null && message.hasOwnProperty("imageMediaId"))
|
|
68857
|
+
writer.uint32(/* id 16, wireType 0 =*/128).uint32(message.imageMediaId);
|
|
68858
|
+
if (message.subscriberContent != null && message.hasOwnProperty("subscriberContent"))
|
|
68859
|
+
writer.uint32(/* id 17, wireType 0 =*/136).bool(message.subscriberContent);
|
|
68860
|
+
if (message.freeToTry != null && message.hasOwnProperty("freeToTry"))
|
|
68861
|
+
writer.uint32(/* id 18, wireType 0 =*/144).bool(message.freeToTry);
|
|
68862
|
+
if (message.primaryColor != null && message.hasOwnProperty("primaryColor"))
|
|
68863
|
+
writer.uint32(/* id 19, wireType 2 =*/154).string(message.primaryColor);
|
|
68864
|
+
if (message.secondaryColor != null && message.hasOwnProperty("secondaryColor"))
|
|
68865
|
+
writer.uint32(/* id 20, wireType 2 =*/162).string(message.secondaryColor);
|
|
68866
|
+
if (message.tertiaryColor != null && message.hasOwnProperty("tertiaryColor"))
|
|
68867
|
+
writer.uint32(/* id 21, wireType 2 =*/170).string(message.tertiaryColor);
|
|
68868
|
+
if (message.patternMediaId != null && message.hasOwnProperty("patternMediaId"))
|
|
68869
|
+
writer.uint32(/* id 22, wireType 0 =*/176).uint32(message.patternMediaId);
|
|
68870
|
+
if (message.translations != null && message.hasOwnProperty("translations"))
|
|
68871
|
+
for (var keys = Object.keys(message.translations), i = 0; i < keys.length; ++i) {
|
|
68872
|
+
writer.uint32(/* id 23, wireType 2 =*/186).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
68873
|
+
$root.Translation.encode(message.translations[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
68874
|
+
}
|
|
67137
68875
|
return writer;
|
|
67138
68876
|
};
|
|
67139
68877
|
|
|
@@ -67164,7 +68902,7 @@ $root.ContentEntityDeleted = (function() {
|
|
|
67164
68902
|
ContentEntityDeleted.decode = function decode(reader, length) {
|
|
67165
68903
|
if (!(reader instanceof $Reader))
|
|
67166
68904
|
reader = $Reader.create(reader);
|
|
67167
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentEntityDeleted();
|
|
68905
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentEntityDeleted(), key;
|
|
67168
68906
|
while (reader.pos < end) {
|
|
67169
68907
|
var tag = reader.uint32();
|
|
67170
68908
|
switch (tag >>> 3) {
|
|
@@ -67207,6 +68945,41 @@ $root.ContentEntityDeleted = (function() {
|
|
|
67207
68945
|
case 13:
|
|
67208
68946
|
message.updatedAt = reader.uint64();
|
|
67209
68947
|
break;
|
|
68948
|
+
case 14:
|
|
68949
|
+
message.i18nSrcTitle = reader.string();
|
|
68950
|
+
break;
|
|
68951
|
+
case 15:
|
|
68952
|
+
message.trackingName = reader.string();
|
|
68953
|
+
break;
|
|
68954
|
+
case 16:
|
|
68955
|
+
message.imageMediaId = reader.uint32();
|
|
68956
|
+
break;
|
|
68957
|
+
case 17:
|
|
68958
|
+
message.subscriberContent = reader.bool();
|
|
68959
|
+
break;
|
|
68960
|
+
case 18:
|
|
68961
|
+
message.freeToTry = reader.bool();
|
|
68962
|
+
break;
|
|
68963
|
+
case 19:
|
|
68964
|
+
message.primaryColor = reader.string();
|
|
68965
|
+
break;
|
|
68966
|
+
case 20:
|
|
68967
|
+
message.secondaryColor = reader.string();
|
|
68968
|
+
break;
|
|
68969
|
+
case 21:
|
|
68970
|
+
message.tertiaryColor = reader.string();
|
|
68971
|
+
break;
|
|
68972
|
+
case 22:
|
|
68973
|
+
message.patternMediaId = reader.uint32();
|
|
68974
|
+
break;
|
|
68975
|
+
case 23:
|
|
68976
|
+
reader.skip().pos++;
|
|
68977
|
+
if (message.translations === $util.emptyObject)
|
|
68978
|
+
message.translations = {};
|
|
68979
|
+
key = reader.string();
|
|
68980
|
+
reader.pos++;
|
|
68981
|
+
message.translations[key] = $root.Translation.decode(reader, reader.uint32());
|
|
68982
|
+
break;
|
|
67210
68983
|
default:
|
|
67211
68984
|
reader.skipType(tag & 7);
|
|
67212
68985
|
break;
|
|
@@ -67344,6 +69117,43 @@ $root.ContentEntityDeleted = (function() {
|
|
|
67344
69117
|
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
67345
69118
|
if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
|
|
67346
69119
|
return "updatedAt: integer|Long expected";
|
|
69120
|
+
if (message.i18nSrcTitle != null && message.hasOwnProperty("i18nSrcTitle"))
|
|
69121
|
+
if (!$util.isString(message.i18nSrcTitle))
|
|
69122
|
+
return "i18nSrcTitle: string expected";
|
|
69123
|
+
if (message.trackingName != null && message.hasOwnProperty("trackingName"))
|
|
69124
|
+
if (!$util.isString(message.trackingName))
|
|
69125
|
+
return "trackingName: string expected";
|
|
69126
|
+
if (message.imageMediaId != null && message.hasOwnProperty("imageMediaId"))
|
|
69127
|
+
if (!$util.isInteger(message.imageMediaId))
|
|
69128
|
+
return "imageMediaId: integer expected";
|
|
69129
|
+
if (message.subscriberContent != null && message.hasOwnProperty("subscriberContent"))
|
|
69130
|
+
if (typeof message.subscriberContent !== "boolean")
|
|
69131
|
+
return "subscriberContent: boolean expected";
|
|
69132
|
+
if (message.freeToTry != null && message.hasOwnProperty("freeToTry"))
|
|
69133
|
+
if (typeof message.freeToTry !== "boolean")
|
|
69134
|
+
return "freeToTry: boolean expected";
|
|
69135
|
+
if (message.primaryColor != null && message.hasOwnProperty("primaryColor"))
|
|
69136
|
+
if (!$util.isString(message.primaryColor))
|
|
69137
|
+
return "primaryColor: string expected";
|
|
69138
|
+
if (message.secondaryColor != null && message.hasOwnProperty("secondaryColor"))
|
|
69139
|
+
if (!$util.isString(message.secondaryColor))
|
|
69140
|
+
return "secondaryColor: string expected";
|
|
69141
|
+
if (message.tertiaryColor != null && message.hasOwnProperty("tertiaryColor"))
|
|
69142
|
+
if (!$util.isString(message.tertiaryColor))
|
|
69143
|
+
return "tertiaryColor: string expected";
|
|
69144
|
+
if (message.patternMediaId != null && message.hasOwnProperty("patternMediaId"))
|
|
69145
|
+
if (!$util.isInteger(message.patternMediaId))
|
|
69146
|
+
return "patternMediaId: integer expected";
|
|
69147
|
+
if (message.translations != null && message.hasOwnProperty("translations")) {
|
|
69148
|
+
if (!$util.isObject(message.translations))
|
|
69149
|
+
return "translations: object expected";
|
|
69150
|
+
var key = Object.keys(message.translations);
|
|
69151
|
+
for (var i = 0; i < key.length; ++i) {
|
|
69152
|
+
var error = $root.Translation.verify(message.translations[key[i]]);
|
|
69153
|
+
if (error)
|
|
69154
|
+
return "translations." + error;
|
|
69155
|
+
}
|
|
69156
|
+
}
|
|
67347
69157
|
return null;
|
|
67348
69158
|
};
|
|
67349
69159
|
|
|
@@ -67603,6 +69413,34 @@ $root.ContentEntityDeleted = (function() {
|
|
|
67603
69413
|
message.updatedAt = object.updatedAt;
|
|
67604
69414
|
else if (typeof object.updatedAt === "object")
|
|
67605
69415
|
message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
|
|
69416
|
+
if (object.i18nSrcTitle != null)
|
|
69417
|
+
message.i18nSrcTitle = String(object.i18nSrcTitle);
|
|
69418
|
+
if (object.trackingName != null)
|
|
69419
|
+
message.trackingName = String(object.trackingName);
|
|
69420
|
+
if (object.imageMediaId != null)
|
|
69421
|
+
message.imageMediaId = object.imageMediaId >>> 0;
|
|
69422
|
+
if (object.subscriberContent != null)
|
|
69423
|
+
message.subscriberContent = Boolean(object.subscriberContent);
|
|
69424
|
+
if (object.freeToTry != null)
|
|
69425
|
+
message.freeToTry = Boolean(object.freeToTry);
|
|
69426
|
+
if (object.primaryColor != null)
|
|
69427
|
+
message.primaryColor = String(object.primaryColor);
|
|
69428
|
+
if (object.secondaryColor != null)
|
|
69429
|
+
message.secondaryColor = String(object.secondaryColor);
|
|
69430
|
+
if (object.tertiaryColor != null)
|
|
69431
|
+
message.tertiaryColor = String(object.tertiaryColor);
|
|
69432
|
+
if (object.patternMediaId != null)
|
|
69433
|
+
message.patternMediaId = object.patternMediaId >>> 0;
|
|
69434
|
+
if (object.translations) {
|
|
69435
|
+
if (typeof object.translations !== "object")
|
|
69436
|
+
throw TypeError(".ContentEntityDeleted.translations: object expected");
|
|
69437
|
+
message.translations = {};
|
|
69438
|
+
for (var keys = Object.keys(object.translations), i = 0; i < keys.length; ++i) {
|
|
69439
|
+
if (typeof object.translations[keys[i]] !== "object")
|
|
69440
|
+
throw TypeError(".ContentEntityDeleted.translations: object expected");
|
|
69441
|
+
message.translations[keys[i]] = $root.Translation.fromObject(object.translations[keys[i]]);
|
|
69442
|
+
}
|
|
69443
|
+
}
|
|
67606
69444
|
return message;
|
|
67607
69445
|
};
|
|
67608
69446
|
|
|
@@ -67619,6 +69457,8 @@ $root.ContentEntityDeleted = (function() {
|
|
|
67619
69457
|
if (!options)
|
|
67620
69458
|
options = {};
|
|
67621
69459
|
var object = {};
|
|
69460
|
+
if (options.objects || options.defaults)
|
|
69461
|
+
object.translations = {};
|
|
67622
69462
|
if (options.defaults) {
|
|
67623
69463
|
object.id = 0;
|
|
67624
69464
|
object.contentType = options.enums === String ? "CONTENT_TYPE_UNRECOGNIZED" : 0;
|
|
@@ -67641,6 +69481,15 @@ $root.ContentEntityDeleted = (function() {
|
|
|
67641
69481
|
object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
67642
69482
|
} else
|
|
67643
69483
|
object.updatedAt = options.longs === String ? "0" : 0;
|
|
69484
|
+
object.i18nSrcTitle = "";
|
|
69485
|
+
object.trackingName = "";
|
|
69486
|
+
object.imageMediaId = 0;
|
|
69487
|
+
object.subscriberContent = false;
|
|
69488
|
+
object.freeToTry = false;
|
|
69489
|
+
object.primaryColor = "";
|
|
69490
|
+
object.secondaryColor = "";
|
|
69491
|
+
object.tertiaryColor = "";
|
|
69492
|
+
object.patternMediaId = 0;
|
|
67644
69493
|
}
|
|
67645
69494
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
67646
69495
|
object.id = message.id;
|
|
@@ -67674,6 +69523,30 @@ $root.ContentEntityDeleted = (function() {
|
|
|
67674
69523
|
object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
|
|
67675
69524
|
else
|
|
67676
69525
|
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;
|
|
69526
|
+
if (message.i18nSrcTitle != null && message.hasOwnProperty("i18nSrcTitle"))
|
|
69527
|
+
object.i18nSrcTitle = message.i18nSrcTitle;
|
|
69528
|
+
if (message.trackingName != null && message.hasOwnProperty("trackingName"))
|
|
69529
|
+
object.trackingName = message.trackingName;
|
|
69530
|
+
if (message.imageMediaId != null && message.hasOwnProperty("imageMediaId"))
|
|
69531
|
+
object.imageMediaId = message.imageMediaId;
|
|
69532
|
+
if (message.subscriberContent != null && message.hasOwnProperty("subscriberContent"))
|
|
69533
|
+
object.subscriberContent = message.subscriberContent;
|
|
69534
|
+
if (message.freeToTry != null && message.hasOwnProperty("freeToTry"))
|
|
69535
|
+
object.freeToTry = message.freeToTry;
|
|
69536
|
+
if (message.primaryColor != null && message.hasOwnProperty("primaryColor"))
|
|
69537
|
+
object.primaryColor = message.primaryColor;
|
|
69538
|
+
if (message.secondaryColor != null && message.hasOwnProperty("secondaryColor"))
|
|
69539
|
+
object.secondaryColor = message.secondaryColor;
|
|
69540
|
+
if (message.tertiaryColor != null && message.hasOwnProperty("tertiaryColor"))
|
|
69541
|
+
object.tertiaryColor = message.tertiaryColor;
|
|
69542
|
+
if (message.patternMediaId != null && message.hasOwnProperty("patternMediaId"))
|
|
69543
|
+
object.patternMediaId = message.patternMediaId;
|
|
69544
|
+
var keys2;
|
|
69545
|
+
if (message.translations && (keys2 = Object.keys(message.translations)).length) {
|
|
69546
|
+
object.translations = {};
|
|
69547
|
+
for (var j = 0; j < keys2.length; ++j)
|
|
69548
|
+
object.translations[keys2[j]] = $root.Translation.toObject(message.translations[keys2[j]], options);
|
|
69549
|
+
}
|
|
67677
69550
|
return object;
|
|
67678
69551
|
};
|
|
67679
69552
|
|
|
@@ -112632,6 +114505,426 @@ $root.UserConsentUpdated = (function() {
|
|
|
112632
114505
|
return UserConsentUpdated;
|
|
112633
114506
|
})();
|
|
112634
114507
|
|
|
114508
|
+
$root.UserBedtimeNotificationsSettingUpdated = (function() {
|
|
114509
|
+
|
|
114510
|
+
/**
|
|
114511
|
+
* Properties of a UserBedtimeNotificationsSettingUpdated.
|
|
114512
|
+
* @exports IUserBedtimeNotificationsSettingUpdated
|
|
114513
|
+
* @interface IUserBedtimeNotificationsSettingUpdated
|
|
114514
|
+
* @property {string|null} [userId] UserBedtimeNotificationsSettingUpdated userId
|
|
114515
|
+
* @property {boolean|null} [isEnabled] UserBedtimeNotificationsSettingUpdated isEnabled
|
|
114516
|
+
*/
|
|
114517
|
+
|
|
114518
|
+
/**
|
|
114519
|
+
* Constructs a new UserBedtimeNotificationsSettingUpdated.
|
|
114520
|
+
* @exports UserBedtimeNotificationsSettingUpdated
|
|
114521
|
+
* @classdesc Represents a UserBedtimeNotificationsSettingUpdated.
|
|
114522
|
+
* @implements IUserBedtimeNotificationsSettingUpdated
|
|
114523
|
+
* @constructor
|
|
114524
|
+
* @param {IUserBedtimeNotificationsSettingUpdated=} [properties] Properties to set
|
|
114525
|
+
*/
|
|
114526
|
+
function UserBedtimeNotificationsSettingUpdated(properties) {
|
|
114527
|
+
if (properties)
|
|
114528
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
114529
|
+
if (properties[keys[i]] != null)
|
|
114530
|
+
this[keys[i]] = properties[keys[i]];
|
|
114531
|
+
}
|
|
114532
|
+
|
|
114533
|
+
/**
|
|
114534
|
+
* UserBedtimeNotificationsSettingUpdated userId.
|
|
114535
|
+
* @member {string} userId
|
|
114536
|
+
* @memberof UserBedtimeNotificationsSettingUpdated
|
|
114537
|
+
* @instance
|
|
114538
|
+
*/
|
|
114539
|
+
UserBedtimeNotificationsSettingUpdated.prototype.userId = "";
|
|
114540
|
+
|
|
114541
|
+
/**
|
|
114542
|
+
* UserBedtimeNotificationsSettingUpdated isEnabled.
|
|
114543
|
+
* @member {boolean} isEnabled
|
|
114544
|
+
* @memberof UserBedtimeNotificationsSettingUpdated
|
|
114545
|
+
* @instance
|
|
114546
|
+
*/
|
|
114547
|
+
UserBedtimeNotificationsSettingUpdated.prototype.isEnabled = false;
|
|
114548
|
+
|
|
114549
|
+
/**
|
|
114550
|
+
* Creates a new UserBedtimeNotificationsSettingUpdated instance using the specified properties.
|
|
114551
|
+
* @function create
|
|
114552
|
+
* @memberof UserBedtimeNotificationsSettingUpdated
|
|
114553
|
+
* @static
|
|
114554
|
+
* @param {IUserBedtimeNotificationsSettingUpdated=} [properties] Properties to set
|
|
114555
|
+
* @returns {UserBedtimeNotificationsSettingUpdated} UserBedtimeNotificationsSettingUpdated instance
|
|
114556
|
+
*/
|
|
114557
|
+
UserBedtimeNotificationsSettingUpdated.create = function create(properties) {
|
|
114558
|
+
return new UserBedtimeNotificationsSettingUpdated(properties);
|
|
114559
|
+
};
|
|
114560
|
+
|
|
114561
|
+
/**
|
|
114562
|
+
* Encodes the specified UserBedtimeNotificationsSettingUpdated message. Does not implicitly {@link UserBedtimeNotificationsSettingUpdated.verify|verify} messages.
|
|
114563
|
+
* @function encode
|
|
114564
|
+
* @memberof UserBedtimeNotificationsSettingUpdated
|
|
114565
|
+
* @static
|
|
114566
|
+
* @param {IUserBedtimeNotificationsSettingUpdated} message UserBedtimeNotificationsSettingUpdated message or plain object to encode
|
|
114567
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
114568
|
+
* @returns {$protobuf.Writer} Writer
|
|
114569
|
+
*/
|
|
114570
|
+
UserBedtimeNotificationsSettingUpdated.encode = function encode(message, writer) {
|
|
114571
|
+
if (!writer)
|
|
114572
|
+
writer = $Writer.create();
|
|
114573
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
114574
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
|
|
114575
|
+
if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
|
|
114576
|
+
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isEnabled);
|
|
114577
|
+
return writer;
|
|
114578
|
+
};
|
|
114579
|
+
|
|
114580
|
+
/**
|
|
114581
|
+
* Encodes the specified UserBedtimeNotificationsSettingUpdated message, length delimited. Does not implicitly {@link UserBedtimeNotificationsSettingUpdated.verify|verify} messages.
|
|
114582
|
+
* @function encodeDelimited
|
|
114583
|
+
* @memberof UserBedtimeNotificationsSettingUpdated
|
|
114584
|
+
* @static
|
|
114585
|
+
* @param {IUserBedtimeNotificationsSettingUpdated} message UserBedtimeNotificationsSettingUpdated message or plain object to encode
|
|
114586
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
114587
|
+
* @returns {$protobuf.Writer} Writer
|
|
114588
|
+
*/
|
|
114589
|
+
UserBedtimeNotificationsSettingUpdated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
114590
|
+
return this.encode(message, writer).ldelim();
|
|
114591
|
+
};
|
|
114592
|
+
|
|
114593
|
+
/**
|
|
114594
|
+
* Decodes a UserBedtimeNotificationsSettingUpdated message from the specified reader or buffer.
|
|
114595
|
+
* @function decode
|
|
114596
|
+
* @memberof UserBedtimeNotificationsSettingUpdated
|
|
114597
|
+
* @static
|
|
114598
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
114599
|
+
* @param {number} [length] Message length if known beforehand
|
|
114600
|
+
* @returns {UserBedtimeNotificationsSettingUpdated} UserBedtimeNotificationsSettingUpdated
|
|
114601
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
114602
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
114603
|
+
*/
|
|
114604
|
+
UserBedtimeNotificationsSettingUpdated.decode = function decode(reader, length) {
|
|
114605
|
+
if (!(reader instanceof $Reader))
|
|
114606
|
+
reader = $Reader.create(reader);
|
|
114607
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserBedtimeNotificationsSettingUpdated();
|
|
114608
|
+
while (reader.pos < end) {
|
|
114609
|
+
var tag = reader.uint32();
|
|
114610
|
+
switch (tag >>> 3) {
|
|
114611
|
+
case 1:
|
|
114612
|
+
message.userId = reader.string();
|
|
114613
|
+
break;
|
|
114614
|
+
case 2:
|
|
114615
|
+
message.isEnabled = reader.bool();
|
|
114616
|
+
break;
|
|
114617
|
+
default:
|
|
114618
|
+
reader.skipType(tag & 7);
|
|
114619
|
+
break;
|
|
114620
|
+
}
|
|
114621
|
+
}
|
|
114622
|
+
return message;
|
|
114623
|
+
};
|
|
114624
|
+
|
|
114625
|
+
/**
|
|
114626
|
+
* Decodes a UserBedtimeNotificationsSettingUpdated message from the specified reader or buffer, length delimited.
|
|
114627
|
+
* @function decodeDelimited
|
|
114628
|
+
* @memberof UserBedtimeNotificationsSettingUpdated
|
|
114629
|
+
* @static
|
|
114630
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
114631
|
+
* @returns {UserBedtimeNotificationsSettingUpdated} UserBedtimeNotificationsSettingUpdated
|
|
114632
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
114633
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
114634
|
+
*/
|
|
114635
|
+
UserBedtimeNotificationsSettingUpdated.decodeDelimited = function decodeDelimited(reader) {
|
|
114636
|
+
if (!(reader instanceof $Reader))
|
|
114637
|
+
reader = new $Reader(reader);
|
|
114638
|
+
return this.decode(reader, reader.uint32());
|
|
114639
|
+
};
|
|
114640
|
+
|
|
114641
|
+
/**
|
|
114642
|
+
* Verifies a UserBedtimeNotificationsSettingUpdated message.
|
|
114643
|
+
* @function verify
|
|
114644
|
+
* @memberof UserBedtimeNotificationsSettingUpdated
|
|
114645
|
+
* @static
|
|
114646
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
114647
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
114648
|
+
*/
|
|
114649
|
+
UserBedtimeNotificationsSettingUpdated.verify = function verify(message) {
|
|
114650
|
+
if (typeof message !== "object" || message === null)
|
|
114651
|
+
return "object expected";
|
|
114652
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
114653
|
+
if (!$util.isString(message.userId))
|
|
114654
|
+
return "userId: string expected";
|
|
114655
|
+
if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
|
|
114656
|
+
if (typeof message.isEnabled !== "boolean")
|
|
114657
|
+
return "isEnabled: boolean expected";
|
|
114658
|
+
return null;
|
|
114659
|
+
};
|
|
114660
|
+
|
|
114661
|
+
/**
|
|
114662
|
+
* Creates a UserBedtimeNotificationsSettingUpdated message from a plain object. Also converts values to their respective internal types.
|
|
114663
|
+
* @function fromObject
|
|
114664
|
+
* @memberof UserBedtimeNotificationsSettingUpdated
|
|
114665
|
+
* @static
|
|
114666
|
+
* @param {Object.<string,*>} object Plain object
|
|
114667
|
+
* @returns {UserBedtimeNotificationsSettingUpdated} UserBedtimeNotificationsSettingUpdated
|
|
114668
|
+
*/
|
|
114669
|
+
UserBedtimeNotificationsSettingUpdated.fromObject = function fromObject(object) {
|
|
114670
|
+
if (object instanceof $root.UserBedtimeNotificationsSettingUpdated)
|
|
114671
|
+
return object;
|
|
114672
|
+
var message = new $root.UserBedtimeNotificationsSettingUpdated();
|
|
114673
|
+
if (object.userId != null)
|
|
114674
|
+
message.userId = String(object.userId);
|
|
114675
|
+
if (object.isEnabled != null)
|
|
114676
|
+
message.isEnabled = Boolean(object.isEnabled);
|
|
114677
|
+
return message;
|
|
114678
|
+
};
|
|
114679
|
+
|
|
114680
|
+
/**
|
|
114681
|
+
* Creates a plain object from a UserBedtimeNotificationsSettingUpdated message. Also converts values to other types if specified.
|
|
114682
|
+
* @function toObject
|
|
114683
|
+
* @memberof UserBedtimeNotificationsSettingUpdated
|
|
114684
|
+
* @static
|
|
114685
|
+
* @param {UserBedtimeNotificationsSettingUpdated} message UserBedtimeNotificationsSettingUpdated
|
|
114686
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
114687
|
+
* @returns {Object.<string,*>} Plain object
|
|
114688
|
+
*/
|
|
114689
|
+
UserBedtimeNotificationsSettingUpdated.toObject = function toObject(message, options) {
|
|
114690
|
+
if (!options)
|
|
114691
|
+
options = {};
|
|
114692
|
+
var object = {};
|
|
114693
|
+
if (options.defaults) {
|
|
114694
|
+
object.userId = "";
|
|
114695
|
+
object.isEnabled = false;
|
|
114696
|
+
}
|
|
114697
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
114698
|
+
object.userId = message.userId;
|
|
114699
|
+
if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
|
|
114700
|
+
object.isEnabled = message.isEnabled;
|
|
114701
|
+
return object;
|
|
114702
|
+
};
|
|
114703
|
+
|
|
114704
|
+
/**
|
|
114705
|
+
* Converts this UserBedtimeNotificationsSettingUpdated to JSON.
|
|
114706
|
+
* @function toJSON
|
|
114707
|
+
* @memberof UserBedtimeNotificationsSettingUpdated
|
|
114708
|
+
* @instance
|
|
114709
|
+
* @returns {Object.<string,*>} JSON object
|
|
114710
|
+
*/
|
|
114711
|
+
UserBedtimeNotificationsSettingUpdated.prototype.toJSON = function toJSON() {
|
|
114712
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
114713
|
+
};
|
|
114714
|
+
|
|
114715
|
+
return UserBedtimeNotificationsSettingUpdated;
|
|
114716
|
+
})();
|
|
114717
|
+
|
|
114718
|
+
$root.UserWindDownNotificationsSettingUpdated = (function() {
|
|
114719
|
+
|
|
114720
|
+
/**
|
|
114721
|
+
* Properties of a UserWindDownNotificationsSettingUpdated.
|
|
114722
|
+
* @exports IUserWindDownNotificationsSettingUpdated
|
|
114723
|
+
* @interface IUserWindDownNotificationsSettingUpdated
|
|
114724
|
+
* @property {string|null} [userId] UserWindDownNotificationsSettingUpdated userId
|
|
114725
|
+
* @property {boolean|null} [isEnabled] UserWindDownNotificationsSettingUpdated isEnabled
|
|
114726
|
+
*/
|
|
114727
|
+
|
|
114728
|
+
/**
|
|
114729
|
+
* Constructs a new UserWindDownNotificationsSettingUpdated.
|
|
114730
|
+
* @exports UserWindDownNotificationsSettingUpdated
|
|
114731
|
+
* @classdesc Represents a UserWindDownNotificationsSettingUpdated.
|
|
114732
|
+
* @implements IUserWindDownNotificationsSettingUpdated
|
|
114733
|
+
* @constructor
|
|
114734
|
+
* @param {IUserWindDownNotificationsSettingUpdated=} [properties] Properties to set
|
|
114735
|
+
*/
|
|
114736
|
+
function UserWindDownNotificationsSettingUpdated(properties) {
|
|
114737
|
+
if (properties)
|
|
114738
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
114739
|
+
if (properties[keys[i]] != null)
|
|
114740
|
+
this[keys[i]] = properties[keys[i]];
|
|
114741
|
+
}
|
|
114742
|
+
|
|
114743
|
+
/**
|
|
114744
|
+
* UserWindDownNotificationsSettingUpdated userId.
|
|
114745
|
+
* @member {string} userId
|
|
114746
|
+
* @memberof UserWindDownNotificationsSettingUpdated
|
|
114747
|
+
* @instance
|
|
114748
|
+
*/
|
|
114749
|
+
UserWindDownNotificationsSettingUpdated.prototype.userId = "";
|
|
114750
|
+
|
|
114751
|
+
/**
|
|
114752
|
+
* UserWindDownNotificationsSettingUpdated isEnabled.
|
|
114753
|
+
* @member {boolean} isEnabled
|
|
114754
|
+
* @memberof UserWindDownNotificationsSettingUpdated
|
|
114755
|
+
* @instance
|
|
114756
|
+
*/
|
|
114757
|
+
UserWindDownNotificationsSettingUpdated.prototype.isEnabled = false;
|
|
114758
|
+
|
|
114759
|
+
/**
|
|
114760
|
+
* Creates a new UserWindDownNotificationsSettingUpdated instance using the specified properties.
|
|
114761
|
+
* @function create
|
|
114762
|
+
* @memberof UserWindDownNotificationsSettingUpdated
|
|
114763
|
+
* @static
|
|
114764
|
+
* @param {IUserWindDownNotificationsSettingUpdated=} [properties] Properties to set
|
|
114765
|
+
* @returns {UserWindDownNotificationsSettingUpdated} UserWindDownNotificationsSettingUpdated instance
|
|
114766
|
+
*/
|
|
114767
|
+
UserWindDownNotificationsSettingUpdated.create = function create(properties) {
|
|
114768
|
+
return new UserWindDownNotificationsSettingUpdated(properties);
|
|
114769
|
+
};
|
|
114770
|
+
|
|
114771
|
+
/**
|
|
114772
|
+
* Encodes the specified UserWindDownNotificationsSettingUpdated message. Does not implicitly {@link UserWindDownNotificationsSettingUpdated.verify|verify} messages.
|
|
114773
|
+
* @function encode
|
|
114774
|
+
* @memberof UserWindDownNotificationsSettingUpdated
|
|
114775
|
+
* @static
|
|
114776
|
+
* @param {IUserWindDownNotificationsSettingUpdated} message UserWindDownNotificationsSettingUpdated message or plain object to encode
|
|
114777
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
114778
|
+
* @returns {$protobuf.Writer} Writer
|
|
114779
|
+
*/
|
|
114780
|
+
UserWindDownNotificationsSettingUpdated.encode = function encode(message, writer) {
|
|
114781
|
+
if (!writer)
|
|
114782
|
+
writer = $Writer.create();
|
|
114783
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
114784
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
|
|
114785
|
+
if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
|
|
114786
|
+
writer.uint32(/* id 2, wireType 0 =*/16).bool(message.isEnabled);
|
|
114787
|
+
return writer;
|
|
114788
|
+
};
|
|
114789
|
+
|
|
114790
|
+
/**
|
|
114791
|
+
* Encodes the specified UserWindDownNotificationsSettingUpdated message, length delimited. Does not implicitly {@link UserWindDownNotificationsSettingUpdated.verify|verify} messages.
|
|
114792
|
+
* @function encodeDelimited
|
|
114793
|
+
* @memberof UserWindDownNotificationsSettingUpdated
|
|
114794
|
+
* @static
|
|
114795
|
+
* @param {IUserWindDownNotificationsSettingUpdated} message UserWindDownNotificationsSettingUpdated message or plain object to encode
|
|
114796
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
114797
|
+
* @returns {$protobuf.Writer} Writer
|
|
114798
|
+
*/
|
|
114799
|
+
UserWindDownNotificationsSettingUpdated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
114800
|
+
return this.encode(message, writer).ldelim();
|
|
114801
|
+
};
|
|
114802
|
+
|
|
114803
|
+
/**
|
|
114804
|
+
* Decodes a UserWindDownNotificationsSettingUpdated message from the specified reader or buffer.
|
|
114805
|
+
* @function decode
|
|
114806
|
+
* @memberof UserWindDownNotificationsSettingUpdated
|
|
114807
|
+
* @static
|
|
114808
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
114809
|
+
* @param {number} [length] Message length if known beforehand
|
|
114810
|
+
* @returns {UserWindDownNotificationsSettingUpdated} UserWindDownNotificationsSettingUpdated
|
|
114811
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
114812
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
114813
|
+
*/
|
|
114814
|
+
UserWindDownNotificationsSettingUpdated.decode = function decode(reader, length) {
|
|
114815
|
+
if (!(reader instanceof $Reader))
|
|
114816
|
+
reader = $Reader.create(reader);
|
|
114817
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.UserWindDownNotificationsSettingUpdated();
|
|
114818
|
+
while (reader.pos < end) {
|
|
114819
|
+
var tag = reader.uint32();
|
|
114820
|
+
switch (tag >>> 3) {
|
|
114821
|
+
case 1:
|
|
114822
|
+
message.userId = reader.string();
|
|
114823
|
+
break;
|
|
114824
|
+
case 2:
|
|
114825
|
+
message.isEnabled = reader.bool();
|
|
114826
|
+
break;
|
|
114827
|
+
default:
|
|
114828
|
+
reader.skipType(tag & 7);
|
|
114829
|
+
break;
|
|
114830
|
+
}
|
|
114831
|
+
}
|
|
114832
|
+
return message;
|
|
114833
|
+
};
|
|
114834
|
+
|
|
114835
|
+
/**
|
|
114836
|
+
* Decodes a UserWindDownNotificationsSettingUpdated message from the specified reader or buffer, length delimited.
|
|
114837
|
+
* @function decodeDelimited
|
|
114838
|
+
* @memberof UserWindDownNotificationsSettingUpdated
|
|
114839
|
+
* @static
|
|
114840
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
114841
|
+
* @returns {UserWindDownNotificationsSettingUpdated} UserWindDownNotificationsSettingUpdated
|
|
114842
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
114843
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
114844
|
+
*/
|
|
114845
|
+
UserWindDownNotificationsSettingUpdated.decodeDelimited = function decodeDelimited(reader) {
|
|
114846
|
+
if (!(reader instanceof $Reader))
|
|
114847
|
+
reader = new $Reader(reader);
|
|
114848
|
+
return this.decode(reader, reader.uint32());
|
|
114849
|
+
};
|
|
114850
|
+
|
|
114851
|
+
/**
|
|
114852
|
+
* Verifies a UserWindDownNotificationsSettingUpdated message.
|
|
114853
|
+
* @function verify
|
|
114854
|
+
* @memberof UserWindDownNotificationsSettingUpdated
|
|
114855
|
+
* @static
|
|
114856
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
114857
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
114858
|
+
*/
|
|
114859
|
+
UserWindDownNotificationsSettingUpdated.verify = function verify(message) {
|
|
114860
|
+
if (typeof message !== "object" || message === null)
|
|
114861
|
+
return "object expected";
|
|
114862
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
114863
|
+
if (!$util.isString(message.userId))
|
|
114864
|
+
return "userId: string expected";
|
|
114865
|
+
if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
|
|
114866
|
+
if (typeof message.isEnabled !== "boolean")
|
|
114867
|
+
return "isEnabled: boolean expected";
|
|
114868
|
+
return null;
|
|
114869
|
+
};
|
|
114870
|
+
|
|
114871
|
+
/**
|
|
114872
|
+
* Creates a UserWindDownNotificationsSettingUpdated message from a plain object. Also converts values to their respective internal types.
|
|
114873
|
+
* @function fromObject
|
|
114874
|
+
* @memberof UserWindDownNotificationsSettingUpdated
|
|
114875
|
+
* @static
|
|
114876
|
+
* @param {Object.<string,*>} object Plain object
|
|
114877
|
+
* @returns {UserWindDownNotificationsSettingUpdated} UserWindDownNotificationsSettingUpdated
|
|
114878
|
+
*/
|
|
114879
|
+
UserWindDownNotificationsSettingUpdated.fromObject = function fromObject(object) {
|
|
114880
|
+
if (object instanceof $root.UserWindDownNotificationsSettingUpdated)
|
|
114881
|
+
return object;
|
|
114882
|
+
var message = new $root.UserWindDownNotificationsSettingUpdated();
|
|
114883
|
+
if (object.userId != null)
|
|
114884
|
+
message.userId = String(object.userId);
|
|
114885
|
+
if (object.isEnabled != null)
|
|
114886
|
+
message.isEnabled = Boolean(object.isEnabled);
|
|
114887
|
+
return message;
|
|
114888
|
+
};
|
|
114889
|
+
|
|
114890
|
+
/**
|
|
114891
|
+
* Creates a plain object from a UserWindDownNotificationsSettingUpdated message. Also converts values to other types if specified.
|
|
114892
|
+
* @function toObject
|
|
114893
|
+
* @memberof UserWindDownNotificationsSettingUpdated
|
|
114894
|
+
* @static
|
|
114895
|
+
* @param {UserWindDownNotificationsSettingUpdated} message UserWindDownNotificationsSettingUpdated
|
|
114896
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
114897
|
+
* @returns {Object.<string,*>} Plain object
|
|
114898
|
+
*/
|
|
114899
|
+
UserWindDownNotificationsSettingUpdated.toObject = function toObject(message, options) {
|
|
114900
|
+
if (!options)
|
|
114901
|
+
options = {};
|
|
114902
|
+
var object = {};
|
|
114903
|
+
if (options.defaults) {
|
|
114904
|
+
object.userId = "";
|
|
114905
|
+
object.isEnabled = false;
|
|
114906
|
+
}
|
|
114907
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
114908
|
+
object.userId = message.userId;
|
|
114909
|
+
if (message.isEnabled != null && message.hasOwnProperty("isEnabled"))
|
|
114910
|
+
object.isEnabled = message.isEnabled;
|
|
114911
|
+
return object;
|
|
114912
|
+
};
|
|
114913
|
+
|
|
114914
|
+
/**
|
|
114915
|
+
* Converts this UserWindDownNotificationsSettingUpdated to JSON.
|
|
114916
|
+
* @function toJSON
|
|
114917
|
+
* @memberof UserWindDownNotificationsSettingUpdated
|
|
114918
|
+
* @instance
|
|
114919
|
+
* @returns {Object.<string,*>} JSON object
|
|
114920
|
+
*/
|
|
114921
|
+
UserWindDownNotificationsSettingUpdated.prototype.toJSON = function toJSON() {
|
|
114922
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
114923
|
+
};
|
|
114924
|
+
|
|
114925
|
+
return UserWindDownNotificationsSettingUpdated;
|
|
114926
|
+
})();
|
|
114927
|
+
|
|
112635
114928
|
$root.VirginPulseAccountLinked = (function() {
|
|
112636
114929
|
|
|
112637
114930
|
/**
|