@headspace/protos-events 1.241.0 → 1.243.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 +523 -1
- package/lib/index.js +2333 -113
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -9849,6 +9849,7 @@ $root.b2b = (function() {
|
|
|
9849
9849
|
* @property {number} REMOVAL_REASON_MERGE_ORGS=4 REMOVAL_REASON_MERGE_ORGS value
|
|
9850
9850
|
* @property {number} REMOVAL_REASON_ROLLOVER=5 REMOVAL_REASON_ROLLOVER value
|
|
9851
9851
|
* @property {number} REMOVAL_REASON_SSO_DEPROVISION=6 REMOVAL_REASON_SSO_DEPROVISION value
|
|
9852
|
+
* @property {number} REMOVAL_REASON_SSO_ACCOUNT_UNLINK=7 REMOVAL_REASON_SSO_ACCOUNT_UNLINK value
|
|
9852
9853
|
*/
|
|
9853
9854
|
b2b.OrgMemberRemovalReason = (function() {
|
|
9854
9855
|
var valuesById = {}, values = Object.create(valuesById);
|
|
@@ -9859,6 +9860,7 @@ $root.b2b = (function() {
|
|
|
9859
9860
|
values[valuesById[4] = "REMOVAL_REASON_MERGE_ORGS"] = 4;
|
|
9860
9861
|
values[valuesById[5] = "REMOVAL_REASON_ROLLOVER"] = 5;
|
|
9861
9862
|
values[valuesById[6] = "REMOVAL_REASON_SSO_DEPROVISION"] = 6;
|
|
9863
|
+
values[valuesById[7] = "REMOVAL_REASON_SSO_ACCOUNT_UNLINK"] = 7;
|
|
9862
9864
|
return values;
|
|
9863
9865
|
})();
|
|
9864
9866
|
|
|
@@ -43655,27 +43657,1790 @@ $root.Mode = (function() {
|
|
|
43655
43657
|
return values;
|
|
43656
43658
|
})();
|
|
43657
43659
|
|
|
43660
|
+
/**
|
|
43661
|
+
* ColorTheme enum.
|
|
43662
|
+
* @exports ColorTheme
|
|
43663
|
+
* @enum {string}
|
|
43664
|
+
* @property {number} COLOR_THEME_UNRECOGNIZED=0 COLOR_THEME_UNRECOGNIZED value
|
|
43665
|
+
* @property {number} COLOR_THEME_DARK=1 COLOR_THEME_DARK value
|
|
43666
|
+
* @property {number} COLOR_THEME_LIGHT=2 COLOR_THEME_LIGHT value
|
|
43667
|
+
*/
|
|
43668
|
+
$root.ColorTheme = (function() {
|
|
43669
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
43670
|
+
values[valuesById[0] = "COLOR_THEME_UNRECOGNIZED"] = 0;
|
|
43671
|
+
values[valuesById[1] = "COLOR_THEME_DARK"] = 1;
|
|
43672
|
+
values[valuesById[2] = "COLOR_THEME_LIGHT"] = 2;
|
|
43673
|
+
return values;
|
|
43674
|
+
})();
|
|
43675
|
+
|
|
43676
|
+
/**
|
|
43677
|
+
* ContentTypeDisplayValue enum.
|
|
43678
|
+
* @exports ContentTypeDisplayValue
|
|
43679
|
+
* @enum {string}
|
|
43680
|
+
* @property {number} CONTENT_TYPE_DISPLAY_VALUE_UNRECOGNIZED=0 CONTENT_TYPE_DISPLAY_VALUE_UNRECOGNIZED value
|
|
43681
|
+
* @property {number} CONTENT_TYPE_DISPLAY_VALUE_COURSE=1 CONTENT_TYPE_DISPLAY_VALUE_COURSE value
|
|
43682
|
+
* @property {number} CONTENT_TYPE_DISPLAY_VALUE_MEDITATION=2 CONTENT_TYPE_DISPLAY_VALUE_MEDITATION value
|
|
43683
|
+
* @property {number} CONTENT_TYPE_DISPLAY_VALUE_MINDFUL_ACTIVITY=3 CONTENT_TYPE_DISPLAY_VALUE_MINDFUL_ACTIVITY value
|
|
43684
|
+
* @property {number} CONTENT_TYPE_DISPLAY_VALUE_SLEEP_SOUND=4 CONTENT_TYPE_DISPLAY_VALUE_SLEEP_SOUND value
|
|
43685
|
+
* @property {number} CONTENT_TYPE_DISPLAY_VALUE_SLEEPCAST=5 CONTENT_TYPE_DISPLAY_VALUE_SLEEPCAST value
|
|
43686
|
+
* @property {number} CONTENT_TYPE_DISPLAY_VALUE_ADVICE=6 CONTENT_TYPE_DISPLAY_VALUE_ADVICE value
|
|
43687
|
+
* @property {number} CONTENT_TYPE_DISPLAY_VALUE_EXPERT_GUIDANCE=7 CONTENT_TYPE_DISPLAY_VALUE_EXPERT_GUIDANCE value
|
|
43688
|
+
* @property {number} CONTENT_TYPE_DISPLAY_VALUE_FOCUS_MUSIC=8 CONTENT_TYPE_DISPLAY_VALUE_FOCUS_MUSIC value
|
|
43689
|
+
* @property {number} CONTENT_TYPE_DISPLAY_VALUE_CARDIO=9 CONTENT_TYPE_DISPLAY_VALUE_CARDIO value
|
|
43690
|
+
* @property {number} CONTENT_TYPE_DISPLAY_VALUE_PLAYLIST=10 CONTENT_TYPE_DISPLAY_VALUE_PLAYLIST value
|
|
43691
|
+
* @property {number} CONTENT_TYPE_DISPLAY_VALUE_QUICK_WORKOUT=11 CONTENT_TYPE_DISPLAY_VALUE_QUICK_WORKOUT value
|
|
43692
|
+
* @property {number} CONTENT_TYPE_DISPLAY_VALUE_WAKEUP=12 CONTENT_TYPE_DISPLAY_VALUE_WAKEUP value
|
|
43693
|
+
* @property {number} CONTENT_TYPE_DISPLAY_VALUE_WORKOUT=13 CONTENT_TYPE_DISPLAY_VALUE_WORKOUT value
|
|
43694
|
+
* @property {number} CONTENT_TYPE_DISPLAY_VALUE_VIDEO=14 CONTENT_TYPE_DISPLAY_VALUE_VIDEO value
|
|
43695
|
+
* @property {number} CONTENT_TYPE_DISPLAY_VALUE_SOUNDSCAPE=15 CONTENT_TYPE_DISPLAY_VALUE_SOUNDSCAPE value
|
|
43696
|
+
* @property {number} CONTENT_TYPE_DISPLAY_VALUE_WIND_DOWN=16 CONTENT_TYPE_DISPLAY_VALUE_WIND_DOWN value
|
|
43697
|
+
* @property {number} CONTENT_TYPE_DISPLAY_VALUE_SLEEP_RADIO=17 CONTENT_TYPE_DISPLAY_VALUE_SLEEP_RADIO value
|
|
43698
|
+
* @property {number} CONTENT_TYPE_DISPLAY_VALUE_NIGHTTIME_SOS=18 CONTENT_TYPE_DISPLAY_VALUE_NIGHTTIME_SOS value
|
|
43699
|
+
* @property {number} CONTENT_TYPE_DISPLAY_VALUE_PODCAST=19 CONTENT_TYPE_DISPLAY_VALUE_PODCAST value
|
|
43700
|
+
* @property {number} CONTENT_TYPE_DISPLAY_VALUE_UNGUIDED=20 CONTENT_TYPE_DISPLAY_VALUE_UNGUIDED value
|
|
43701
|
+
* @property {number} CONTENT_TYPE_DISPLAY_VALUE_JOURNAL=21 CONTENT_TYPE_DISPLAY_VALUE_JOURNAL value
|
|
43702
|
+
* @property {number} CONTENT_TYPE_DISPLAY_VALUE_STRETCH=22 CONTENT_TYPE_DISPLAY_VALUE_STRETCH value
|
|
43703
|
+
* @property {number} CONTENT_TYPE_DISPLAY_VALUE_THE_WIND_DOWN=23 CONTENT_TYPE_DISPLAY_VALUE_THE_WIND_DOWN value
|
|
43704
|
+
*/
|
|
43705
|
+
$root.ContentTypeDisplayValue = (function() {
|
|
43706
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
43707
|
+
values[valuesById[0] = "CONTENT_TYPE_DISPLAY_VALUE_UNRECOGNIZED"] = 0;
|
|
43708
|
+
values[valuesById[1] = "CONTENT_TYPE_DISPLAY_VALUE_COURSE"] = 1;
|
|
43709
|
+
values[valuesById[2] = "CONTENT_TYPE_DISPLAY_VALUE_MEDITATION"] = 2;
|
|
43710
|
+
values[valuesById[3] = "CONTENT_TYPE_DISPLAY_VALUE_MINDFUL_ACTIVITY"] = 3;
|
|
43711
|
+
values[valuesById[4] = "CONTENT_TYPE_DISPLAY_VALUE_SLEEP_SOUND"] = 4;
|
|
43712
|
+
values[valuesById[5] = "CONTENT_TYPE_DISPLAY_VALUE_SLEEPCAST"] = 5;
|
|
43713
|
+
values[valuesById[6] = "CONTENT_TYPE_DISPLAY_VALUE_ADVICE"] = 6;
|
|
43714
|
+
values[valuesById[7] = "CONTENT_TYPE_DISPLAY_VALUE_EXPERT_GUIDANCE"] = 7;
|
|
43715
|
+
values[valuesById[8] = "CONTENT_TYPE_DISPLAY_VALUE_FOCUS_MUSIC"] = 8;
|
|
43716
|
+
values[valuesById[9] = "CONTENT_TYPE_DISPLAY_VALUE_CARDIO"] = 9;
|
|
43717
|
+
values[valuesById[10] = "CONTENT_TYPE_DISPLAY_VALUE_PLAYLIST"] = 10;
|
|
43718
|
+
values[valuesById[11] = "CONTENT_TYPE_DISPLAY_VALUE_QUICK_WORKOUT"] = 11;
|
|
43719
|
+
values[valuesById[12] = "CONTENT_TYPE_DISPLAY_VALUE_WAKEUP"] = 12;
|
|
43720
|
+
values[valuesById[13] = "CONTENT_TYPE_DISPLAY_VALUE_WORKOUT"] = 13;
|
|
43721
|
+
values[valuesById[14] = "CONTENT_TYPE_DISPLAY_VALUE_VIDEO"] = 14;
|
|
43722
|
+
values[valuesById[15] = "CONTENT_TYPE_DISPLAY_VALUE_SOUNDSCAPE"] = 15;
|
|
43723
|
+
values[valuesById[16] = "CONTENT_TYPE_DISPLAY_VALUE_WIND_DOWN"] = 16;
|
|
43724
|
+
values[valuesById[17] = "CONTENT_TYPE_DISPLAY_VALUE_SLEEP_RADIO"] = 17;
|
|
43725
|
+
values[valuesById[18] = "CONTENT_TYPE_DISPLAY_VALUE_NIGHTTIME_SOS"] = 18;
|
|
43726
|
+
values[valuesById[19] = "CONTENT_TYPE_DISPLAY_VALUE_PODCAST"] = 19;
|
|
43727
|
+
values[valuesById[20] = "CONTENT_TYPE_DISPLAY_VALUE_UNGUIDED"] = 20;
|
|
43728
|
+
values[valuesById[21] = "CONTENT_TYPE_DISPLAY_VALUE_JOURNAL"] = 21;
|
|
43729
|
+
values[valuesById[22] = "CONTENT_TYPE_DISPLAY_VALUE_STRETCH"] = 22;
|
|
43730
|
+
values[valuesById[23] = "CONTENT_TYPE_DISPLAY_VALUE_THE_WIND_DOWN"] = 23;
|
|
43731
|
+
return values;
|
|
43732
|
+
})();
|
|
43733
|
+
|
|
43658
43734
|
$root.ContentPlayedMetadata = (function() {
|
|
43659
43735
|
|
|
43660
43736
|
/**
|
|
43661
|
-
* Properties of a ContentPlayedMetadata.
|
|
43662
|
-
* @exports IContentPlayedMetadata
|
|
43663
|
-
* @interface IContentPlayedMetadata
|
|
43664
|
-
* @property {number|null} [activityGroupId] ContentPlayedMetadata activityGroupId
|
|
43665
|
-
* @property {number|null} [activityId] ContentPlayedMetadata activityId
|
|
43666
|
-
* @property {number|null} [activityVariationId] ContentPlayedMetadata activityVariationId
|
|
43667
|
-
* @property {number|null} [durationMinutes] ContentPlayedMetadata durationMinutes
|
|
43737
|
+
* Properties of a ContentPlayedMetadata.
|
|
43738
|
+
* @exports IContentPlayedMetadata
|
|
43739
|
+
* @interface IContentPlayedMetadata
|
|
43740
|
+
* @property {number|null} [activityGroupId] ContentPlayedMetadata activityGroupId
|
|
43741
|
+
* @property {number|null} [activityId] ContentPlayedMetadata activityId
|
|
43742
|
+
* @property {number|null} [activityVariationId] ContentPlayedMetadata activityVariationId
|
|
43743
|
+
* @property {number|null} [durationMinutes] ContentPlayedMetadata durationMinutes
|
|
43744
|
+
*/
|
|
43745
|
+
|
|
43746
|
+
/**
|
|
43747
|
+
* Constructs a new ContentPlayedMetadata.
|
|
43748
|
+
* @exports ContentPlayedMetadata
|
|
43749
|
+
* @classdesc Represents a ContentPlayedMetadata.
|
|
43750
|
+
* @implements IContentPlayedMetadata
|
|
43751
|
+
* @constructor
|
|
43752
|
+
* @param {IContentPlayedMetadata=} [properties] Properties to set
|
|
43753
|
+
*/
|
|
43754
|
+
function ContentPlayedMetadata(properties) {
|
|
43755
|
+
if (properties)
|
|
43756
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
43757
|
+
if (properties[keys[i]] != null)
|
|
43758
|
+
this[keys[i]] = properties[keys[i]];
|
|
43759
|
+
}
|
|
43760
|
+
|
|
43761
|
+
/**
|
|
43762
|
+
* ContentPlayedMetadata activityGroupId.
|
|
43763
|
+
* @member {number} activityGroupId
|
|
43764
|
+
* @memberof ContentPlayedMetadata
|
|
43765
|
+
* @instance
|
|
43766
|
+
*/
|
|
43767
|
+
ContentPlayedMetadata.prototype.activityGroupId = 0;
|
|
43768
|
+
|
|
43769
|
+
/**
|
|
43770
|
+
* ContentPlayedMetadata activityId.
|
|
43771
|
+
* @member {number} activityId
|
|
43772
|
+
* @memberof ContentPlayedMetadata
|
|
43773
|
+
* @instance
|
|
43774
|
+
*/
|
|
43775
|
+
ContentPlayedMetadata.prototype.activityId = 0;
|
|
43776
|
+
|
|
43777
|
+
/**
|
|
43778
|
+
* ContentPlayedMetadata activityVariationId.
|
|
43779
|
+
* @member {number} activityVariationId
|
|
43780
|
+
* @memberof ContentPlayedMetadata
|
|
43781
|
+
* @instance
|
|
43782
|
+
*/
|
|
43783
|
+
ContentPlayedMetadata.prototype.activityVariationId = 0;
|
|
43784
|
+
|
|
43785
|
+
/**
|
|
43786
|
+
* ContentPlayedMetadata durationMinutes.
|
|
43787
|
+
* @member {number} durationMinutes
|
|
43788
|
+
* @memberof ContentPlayedMetadata
|
|
43789
|
+
* @instance
|
|
43790
|
+
*/
|
|
43791
|
+
ContentPlayedMetadata.prototype.durationMinutes = 0;
|
|
43792
|
+
|
|
43793
|
+
/**
|
|
43794
|
+
* Creates a new ContentPlayedMetadata instance using the specified properties.
|
|
43795
|
+
* @function create
|
|
43796
|
+
* @memberof ContentPlayedMetadata
|
|
43797
|
+
* @static
|
|
43798
|
+
* @param {IContentPlayedMetadata=} [properties] Properties to set
|
|
43799
|
+
* @returns {ContentPlayedMetadata} ContentPlayedMetadata instance
|
|
43800
|
+
*/
|
|
43801
|
+
ContentPlayedMetadata.create = function create(properties) {
|
|
43802
|
+
return new ContentPlayedMetadata(properties);
|
|
43803
|
+
};
|
|
43804
|
+
|
|
43805
|
+
/**
|
|
43806
|
+
* Encodes the specified ContentPlayedMetadata message. Does not implicitly {@link ContentPlayedMetadata.verify|verify} messages.
|
|
43807
|
+
* @function encode
|
|
43808
|
+
* @memberof ContentPlayedMetadata
|
|
43809
|
+
* @static
|
|
43810
|
+
* @param {IContentPlayedMetadata} message ContentPlayedMetadata message or plain object to encode
|
|
43811
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
43812
|
+
* @returns {$protobuf.Writer} Writer
|
|
43813
|
+
*/
|
|
43814
|
+
ContentPlayedMetadata.encode = function encode(message, writer) {
|
|
43815
|
+
if (!writer)
|
|
43816
|
+
writer = $Writer.create();
|
|
43817
|
+
if (message.activityGroupId != null && message.hasOwnProperty("activityGroupId"))
|
|
43818
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.activityGroupId);
|
|
43819
|
+
if (message.activityId != null && message.hasOwnProperty("activityId"))
|
|
43820
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.activityId);
|
|
43821
|
+
if (message.activityVariationId != null && message.hasOwnProperty("activityVariationId"))
|
|
43822
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.activityVariationId);
|
|
43823
|
+
if (message.durationMinutes != null && message.hasOwnProperty("durationMinutes"))
|
|
43824
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.durationMinutes);
|
|
43825
|
+
return writer;
|
|
43826
|
+
};
|
|
43827
|
+
|
|
43828
|
+
/**
|
|
43829
|
+
* Encodes the specified ContentPlayedMetadata message, length delimited. Does not implicitly {@link ContentPlayedMetadata.verify|verify} messages.
|
|
43830
|
+
* @function encodeDelimited
|
|
43831
|
+
* @memberof ContentPlayedMetadata
|
|
43832
|
+
* @static
|
|
43833
|
+
* @param {IContentPlayedMetadata} message ContentPlayedMetadata message or plain object to encode
|
|
43834
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
43835
|
+
* @returns {$protobuf.Writer} Writer
|
|
43836
|
+
*/
|
|
43837
|
+
ContentPlayedMetadata.encodeDelimited = function encodeDelimited(message, writer) {
|
|
43838
|
+
return this.encode(message, writer).ldelim();
|
|
43839
|
+
};
|
|
43840
|
+
|
|
43841
|
+
/**
|
|
43842
|
+
* Decodes a ContentPlayedMetadata message from the specified reader or buffer.
|
|
43843
|
+
* @function decode
|
|
43844
|
+
* @memberof ContentPlayedMetadata
|
|
43845
|
+
* @static
|
|
43846
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
43847
|
+
* @param {number} [length] Message length if known beforehand
|
|
43848
|
+
* @returns {ContentPlayedMetadata} ContentPlayedMetadata
|
|
43849
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
43850
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
43851
|
+
*/
|
|
43852
|
+
ContentPlayedMetadata.decode = function decode(reader, length) {
|
|
43853
|
+
if (!(reader instanceof $Reader))
|
|
43854
|
+
reader = $Reader.create(reader);
|
|
43855
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentPlayedMetadata();
|
|
43856
|
+
while (reader.pos < end) {
|
|
43857
|
+
var tag = reader.uint32();
|
|
43858
|
+
switch (tag >>> 3) {
|
|
43859
|
+
case 1:
|
|
43860
|
+
message.activityGroupId = reader.uint32();
|
|
43861
|
+
break;
|
|
43862
|
+
case 2:
|
|
43863
|
+
message.activityId = reader.uint32();
|
|
43864
|
+
break;
|
|
43865
|
+
case 3:
|
|
43866
|
+
message.activityVariationId = reader.uint32();
|
|
43867
|
+
break;
|
|
43868
|
+
case 4:
|
|
43869
|
+
message.durationMinutes = reader.uint32();
|
|
43870
|
+
break;
|
|
43871
|
+
default:
|
|
43872
|
+
reader.skipType(tag & 7);
|
|
43873
|
+
break;
|
|
43874
|
+
}
|
|
43875
|
+
}
|
|
43876
|
+
return message;
|
|
43877
|
+
};
|
|
43878
|
+
|
|
43879
|
+
/**
|
|
43880
|
+
* Decodes a ContentPlayedMetadata message from the specified reader or buffer, length delimited.
|
|
43881
|
+
* @function decodeDelimited
|
|
43882
|
+
* @memberof ContentPlayedMetadata
|
|
43883
|
+
* @static
|
|
43884
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
43885
|
+
* @returns {ContentPlayedMetadata} ContentPlayedMetadata
|
|
43886
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
43887
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
43888
|
+
*/
|
|
43889
|
+
ContentPlayedMetadata.decodeDelimited = function decodeDelimited(reader) {
|
|
43890
|
+
if (!(reader instanceof $Reader))
|
|
43891
|
+
reader = new $Reader(reader);
|
|
43892
|
+
return this.decode(reader, reader.uint32());
|
|
43893
|
+
};
|
|
43894
|
+
|
|
43895
|
+
/**
|
|
43896
|
+
* Verifies a ContentPlayedMetadata message.
|
|
43897
|
+
* @function verify
|
|
43898
|
+
* @memberof ContentPlayedMetadata
|
|
43899
|
+
* @static
|
|
43900
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
43901
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
43902
|
+
*/
|
|
43903
|
+
ContentPlayedMetadata.verify = function verify(message) {
|
|
43904
|
+
if (typeof message !== "object" || message === null)
|
|
43905
|
+
return "object expected";
|
|
43906
|
+
if (message.activityGroupId != null && message.hasOwnProperty("activityGroupId"))
|
|
43907
|
+
if (!$util.isInteger(message.activityGroupId))
|
|
43908
|
+
return "activityGroupId: integer expected";
|
|
43909
|
+
if (message.activityId != null && message.hasOwnProperty("activityId"))
|
|
43910
|
+
if (!$util.isInteger(message.activityId))
|
|
43911
|
+
return "activityId: integer expected";
|
|
43912
|
+
if (message.activityVariationId != null && message.hasOwnProperty("activityVariationId"))
|
|
43913
|
+
if (!$util.isInteger(message.activityVariationId))
|
|
43914
|
+
return "activityVariationId: integer expected";
|
|
43915
|
+
if (message.durationMinutes != null && message.hasOwnProperty("durationMinutes"))
|
|
43916
|
+
if (!$util.isInteger(message.durationMinutes))
|
|
43917
|
+
return "durationMinutes: integer expected";
|
|
43918
|
+
return null;
|
|
43919
|
+
};
|
|
43920
|
+
|
|
43921
|
+
/**
|
|
43922
|
+
* Creates a ContentPlayedMetadata message from a plain object. Also converts values to their respective internal types.
|
|
43923
|
+
* @function fromObject
|
|
43924
|
+
* @memberof ContentPlayedMetadata
|
|
43925
|
+
* @static
|
|
43926
|
+
* @param {Object.<string,*>} object Plain object
|
|
43927
|
+
* @returns {ContentPlayedMetadata} ContentPlayedMetadata
|
|
43928
|
+
*/
|
|
43929
|
+
ContentPlayedMetadata.fromObject = function fromObject(object) {
|
|
43930
|
+
if (object instanceof $root.ContentPlayedMetadata)
|
|
43931
|
+
return object;
|
|
43932
|
+
var message = new $root.ContentPlayedMetadata();
|
|
43933
|
+
if (object.activityGroupId != null)
|
|
43934
|
+
message.activityGroupId = object.activityGroupId >>> 0;
|
|
43935
|
+
if (object.activityId != null)
|
|
43936
|
+
message.activityId = object.activityId >>> 0;
|
|
43937
|
+
if (object.activityVariationId != null)
|
|
43938
|
+
message.activityVariationId = object.activityVariationId >>> 0;
|
|
43939
|
+
if (object.durationMinutes != null)
|
|
43940
|
+
message.durationMinutes = object.durationMinutes >>> 0;
|
|
43941
|
+
return message;
|
|
43942
|
+
};
|
|
43943
|
+
|
|
43944
|
+
/**
|
|
43945
|
+
* Creates a plain object from a ContentPlayedMetadata message. Also converts values to other types if specified.
|
|
43946
|
+
* @function toObject
|
|
43947
|
+
* @memberof ContentPlayedMetadata
|
|
43948
|
+
* @static
|
|
43949
|
+
* @param {ContentPlayedMetadata} message ContentPlayedMetadata
|
|
43950
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
43951
|
+
* @returns {Object.<string,*>} Plain object
|
|
43952
|
+
*/
|
|
43953
|
+
ContentPlayedMetadata.toObject = function toObject(message, options) {
|
|
43954
|
+
if (!options)
|
|
43955
|
+
options = {};
|
|
43956
|
+
var object = {};
|
|
43957
|
+
if (options.defaults) {
|
|
43958
|
+
object.activityGroupId = 0;
|
|
43959
|
+
object.activityId = 0;
|
|
43960
|
+
object.activityVariationId = 0;
|
|
43961
|
+
object.durationMinutes = 0;
|
|
43962
|
+
}
|
|
43963
|
+
if (message.activityGroupId != null && message.hasOwnProperty("activityGroupId"))
|
|
43964
|
+
object.activityGroupId = message.activityGroupId;
|
|
43965
|
+
if (message.activityId != null && message.hasOwnProperty("activityId"))
|
|
43966
|
+
object.activityId = message.activityId;
|
|
43967
|
+
if (message.activityVariationId != null && message.hasOwnProperty("activityVariationId"))
|
|
43968
|
+
object.activityVariationId = message.activityVariationId;
|
|
43969
|
+
if (message.durationMinutes != null && message.hasOwnProperty("durationMinutes"))
|
|
43970
|
+
object.durationMinutes = message.durationMinutes;
|
|
43971
|
+
return object;
|
|
43972
|
+
};
|
|
43973
|
+
|
|
43974
|
+
/**
|
|
43975
|
+
* Converts this ContentPlayedMetadata to JSON.
|
|
43976
|
+
* @function toJSON
|
|
43977
|
+
* @memberof ContentPlayedMetadata
|
|
43978
|
+
* @instance
|
|
43979
|
+
* @returns {Object.<string,*>} JSON object
|
|
43980
|
+
*/
|
|
43981
|
+
ContentPlayedMetadata.prototype.toJSON = function toJSON() {
|
|
43982
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
43983
|
+
};
|
|
43984
|
+
|
|
43985
|
+
return ContentPlayedMetadata;
|
|
43986
|
+
})();
|
|
43987
|
+
|
|
43988
|
+
$root.ContentEntityCreated = (function() {
|
|
43989
|
+
|
|
43990
|
+
/**
|
|
43991
|
+
* Properties of a ContentEntityCreated.
|
|
43992
|
+
* @exports IContentEntityCreated
|
|
43993
|
+
* @interface IContentEntityCreated
|
|
43994
|
+
* @property {number|null} [id] ContentEntityCreated id
|
|
43995
|
+
* @property {ContentType|null} [contentType] ContentEntityCreated contentType
|
|
43996
|
+
* @property {ColorTheme|null} [colorTheme] ContentEntityCreated colorTheme
|
|
43997
|
+
* @property {number|null} [entityId] ContentEntityCreated entityId
|
|
43998
|
+
* @property {string|null} [slug] ContentEntityCreated slug
|
|
43999
|
+
* @property {boolean|null} [isInternationalOnly] ContentEntityCreated isInternationalOnly
|
|
44000
|
+
* @property {ContentTypeDisplayValue|null} [contentTypeDisplayValue] ContentEntityCreated contentTypeDisplayValue
|
|
44001
|
+
* @property {ColorTheme|null} [contentInfoScreenTheme] ContentEntityCreated contentInfoScreenTheme
|
|
44002
|
+
* @property {number|null} [categoryId] ContentEntityCreated categoryId
|
|
44003
|
+
* @property {number|null} [tileMediaId] ContentEntityCreated tileMediaId
|
|
44004
|
+
* @property {number|null} [headerImageMediaId] ContentEntityCreated headerImageMediaId
|
|
44005
|
+
* @property {number|null} [ordinalNumber] ContentEntityCreated ordinalNumber
|
|
44006
|
+
* @property {number|Long|null} [createdAt] ContentEntityCreated createdAt
|
|
44007
|
+
*/
|
|
44008
|
+
|
|
44009
|
+
/**
|
|
44010
|
+
* Constructs a new ContentEntityCreated.
|
|
44011
|
+
* @exports ContentEntityCreated
|
|
44012
|
+
* @classdesc Represents a ContentEntityCreated.
|
|
44013
|
+
* @implements IContentEntityCreated
|
|
44014
|
+
* @constructor
|
|
44015
|
+
* @param {IContentEntityCreated=} [properties] Properties to set
|
|
44016
|
+
*/
|
|
44017
|
+
function ContentEntityCreated(properties) {
|
|
44018
|
+
if (properties)
|
|
44019
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
44020
|
+
if (properties[keys[i]] != null)
|
|
44021
|
+
this[keys[i]] = properties[keys[i]];
|
|
44022
|
+
}
|
|
44023
|
+
|
|
44024
|
+
/**
|
|
44025
|
+
* ContentEntityCreated id.
|
|
44026
|
+
* @member {number} id
|
|
44027
|
+
* @memberof ContentEntityCreated
|
|
44028
|
+
* @instance
|
|
44029
|
+
*/
|
|
44030
|
+
ContentEntityCreated.prototype.id = 0;
|
|
44031
|
+
|
|
44032
|
+
/**
|
|
44033
|
+
* ContentEntityCreated contentType.
|
|
44034
|
+
* @member {ContentType} contentType
|
|
44035
|
+
* @memberof ContentEntityCreated
|
|
44036
|
+
* @instance
|
|
44037
|
+
*/
|
|
44038
|
+
ContentEntityCreated.prototype.contentType = 0;
|
|
44039
|
+
|
|
44040
|
+
/**
|
|
44041
|
+
* ContentEntityCreated colorTheme.
|
|
44042
|
+
* @member {ColorTheme} colorTheme
|
|
44043
|
+
* @memberof ContentEntityCreated
|
|
44044
|
+
* @instance
|
|
44045
|
+
*/
|
|
44046
|
+
ContentEntityCreated.prototype.colorTheme = 0;
|
|
44047
|
+
|
|
44048
|
+
/**
|
|
44049
|
+
* ContentEntityCreated entityId.
|
|
44050
|
+
* @member {number} entityId
|
|
44051
|
+
* @memberof ContentEntityCreated
|
|
44052
|
+
* @instance
|
|
44053
|
+
*/
|
|
44054
|
+
ContentEntityCreated.prototype.entityId = 0;
|
|
44055
|
+
|
|
44056
|
+
/**
|
|
44057
|
+
* ContentEntityCreated slug.
|
|
44058
|
+
* @member {string} slug
|
|
44059
|
+
* @memberof ContentEntityCreated
|
|
44060
|
+
* @instance
|
|
44061
|
+
*/
|
|
44062
|
+
ContentEntityCreated.prototype.slug = "";
|
|
44063
|
+
|
|
44064
|
+
/**
|
|
44065
|
+
* ContentEntityCreated isInternationalOnly.
|
|
44066
|
+
* @member {boolean} isInternationalOnly
|
|
44067
|
+
* @memberof ContentEntityCreated
|
|
44068
|
+
* @instance
|
|
44069
|
+
*/
|
|
44070
|
+
ContentEntityCreated.prototype.isInternationalOnly = false;
|
|
44071
|
+
|
|
44072
|
+
/**
|
|
44073
|
+
* ContentEntityCreated contentTypeDisplayValue.
|
|
44074
|
+
* @member {ContentTypeDisplayValue} contentTypeDisplayValue
|
|
44075
|
+
* @memberof ContentEntityCreated
|
|
44076
|
+
* @instance
|
|
44077
|
+
*/
|
|
44078
|
+
ContentEntityCreated.prototype.contentTypeDisplayValue = 0;
|
|
44079
|
+
|
|
44080
|
+
/**
|
|
44081
|
+
* ContentEntityCreated contentInfoScreenTheme.
|
|
44082
|
+
* @member {ColorTheme} contentInfoScreenTheme
|
|
44083
|
+
* @memberof ContentEntityCreated
|
|
44084
|
+
* @instance
|
|
44085
|
+
*/
|
|
44086
|
+
ContentEntityCreated.prototype.contentInfoScreenTheme = 0;
|
|
44087
|
+
|
|
44088
|
+
/**
|
|
44089
|
+
* ContentEntityCreated categoryId.
|
|
44090
|
+
* @member {number} categoryId
|
|
44091
|
+
* @memberof ContentEntityCreated
|
|
44092
|
+
* @instance
|
|
44093
|
+
*/
|
|
44094
|
+
ContentEntityCreated.prototype.categoryId = 0;
|
|
44095
|
+
|
|
44096
|
+
/**
|
|
44097
|
+
* ContentEntityCreated tileMediaId.
|
|
44098
|
+
* @member {number} tileMediaId
|
|
44099
|
+
* @memberof ContentEntityCreated
|
|
44100
|
+
* @instance
|
|
44101
|
+
*/
|
|
44102
|
+
ContentEntityCreated.prototype.tileMediaId = 0;
|
|
44103
|
+
|
|
44104
|
+
/**
|
|
44105
|
+
* ContentEntityCreated headerImageMediaId.
|
|
44106
|
+
* @member {number} headerImageMediaId
|
|
44107
|
+
* @memberof ContentEntityCreated
|
|
44108
|
+
* @instance
|
|
44109
|
+
*/
|
|
44110
|
+
ContentEntityCreated.prototype.headerImageMediaId = 0;
|
|
44111
|
+
|
|
44112
|
+
/**
|
|
44113
|
+
* ContentEntityCreated ordinalNumber.
|
|
44114
|
+
* @member {number} ordinalNumber
|
|
44115
|
+
* @memberof ContentEntityCreated
|
|
44116
|
+
* @instance
|
|
44117
|
+
*/
|
|
44118
|
+
ContentEntityCreated.prototype.ordinalNumber = 0;
|
|
44119
|
+
|
|
44120
|
+
/**
|
|
44121
|
+
* ContentEntityCreated createdAt.
|
|
44122
|
+
* @member {number|Long} createdAt
|
|
44123
|
+
* @memberof ContentEntityCreated
|
|
44124
|
+
* @instance
|
|
44125
|
+
*/
|
|
44126
|
+
ContentEntityCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
44127
|
+
|
|
44128
|
+
/**
|
|
44129
|
+
* Creates a new ContentEntityCreated instance using the specified properties.
|
|
44130
|
+
* @function create
|
|
44131
|
+
* @memberof ContentEntityCreated
|
|
44132
|
+
* @static
|
|
44133
|
+
* @param {IContentEntityCreated=} [properties] Properties to set
|
|
44134
|
+
* @returns {ContentEntityCreated} ContentEntityCreated instance
|
|
44135
|
+
*/
|
|
44136
|
+
ContentEntityCreated.create = function create(properties) {
|
|
44137
|
+
return new ContentEntityCreated(properties);
|
|
44138
|
+
};
|
|
44139
|
+
|
|
44140
|
+
/**
|
|
44141
|
+
* Encodes the specified ContentEntityCreated message. Does not implicitly {@link ContentEntityCreated.verify|verify} messages.
|
|
44142
|
+
* @function encode
|
|
44143
|
+
* @memberof ContentEntityCreated
|
|
44144
|
+
* @static
|
|
44145
|
+
* @param {IContentEntityCreated} message ContentEntityCreated message or plain object to encode
|
|
44146
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
44147
|
+
* @returns {$protobuf.Writer} Writer
|
|
44148
|
+
*/
|
|
44149
|
+
ContentEntityCreated.encode = function encode(message, writer) {
|
|
44150
|
+
if (!writer)
|
|
44151
|
+
writer = $Writer.create();
|
|
44152
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
44153
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.id);
|
|
44154
|
+
if (message.contentType != null && message.hasOwnProperty("contentType"))
|
|
44155
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.contentType);
|
|
44156
|
+
if (message.colorTheme != null && message.hasOwnProperty("colorTheme"))
|
|
44157
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.colorTheme);
|
|
44158
|
+
if (message.entityId != null && message.hasOwnProperty("entityId"))
|
|
44159
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.entityId);
|
|
44160
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
44161
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.slug);
|
|
44162
|
+
if (message.isInternationalOnly != null && message.hasOwnProperty("isInternationalOnly"))
|
|
44163
|
+
writer.uint32(/* id 6, wireType 0 =*/48).bool(message.isInternationalOnly);
|
|
44164
|
+
if (message.contentTypeDisplayValue != null && message.hasOwnProperty("contentTypeDisplayValue"))
|
|
44165
|
+
writer.uint32(/* id 7, wireType 0 =*/56).int32(message.contentTypeDisplayValue);
|
|
44166
|
+
if (message.contentInfoScreenTheme != null && message.hasOwnProperty("contentInfoScreenTheme"))
|
|
44167
|
+
writer.uint32(/* id 8, wireType 0 =*/64).int32(message.contentInfoScreenTheme);
|
|
44168
|
+
if (message.categoryId != null && message.hasOwnProperty("categoryId"))
|
|
44169
|
+
writer.uint32(/* id 9, wireType 0 =*/72).uint32(message.categoryId);
|
|
44170
|
+
if (message.tileMediaId != null && message.hasOwnProperty("tileMediaId"))
|
|
44171
|
+
writer.uint32(/* id 10, wireType 0 =*/80).uint32(message.tileMediaId);
|
|
44172
|
+
if (message.headerImageMediaId != null && message.hasOwnProperty("headerImageMediaId"))
|
|
44173
|
+
writer.uint32(/* id 11, wireType 0 =*/88).uint32(message.headerImageMediaId);
|
|
44174
|
+
if (message.ordinalNumber != null && message.hasOwnProperty("ordinalNumber"))
|
|
44175
|
+
writer.uint32(/* id 12, wireType 0 =*/96).uint32(message.ordinalNumber);
|
|
44176
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
44177
|
+
writer.uint32(/* id 13, wireType 0 =*/104).uint64(message.createdAt);
|
|
44178
|
+
return writer;
|
|
44179
|
+
};
|
|
44180
|
+
|
|
44181
|
+
/**
|
|
44182
|
+
* Encodes the specified ContentEntityCreated message, length delimited. Does not implicitly {@link ContentEntityCreated.verify|verify} messages.
|
|
44183
|
+
* @function encodeDelimited
|
|
44184
|
+
* @memberof ContentEntityCreated
|
|
44185
|
+
* @static
|
|
44186
|
+
* @param {IContentEntityCreated} message ContentEntityCreated message or plain object to encode
|
|
44187
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
44188
|
+
* @returns {$protobuf.Writer} Writer
|
|
44189
|
+
*/
|
|
44190
|
+
ContentEntityCreated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
44191
|
+
return this.encode(message, writer).ldelim();
|
|
44192
|
+
};
|
|
44193
|
+
|
|
44194
|
+
/**
|
|
44195
|
+
* Decodes a ContentEntityCreated message from the specified reader or buffer.
|
|
44196
|
+
* @function decode
|
|
44197
|
+
* @memberof ContentEntityCreated
|
|
44198
|
+
* @static
|
|
44199
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
44200
|
+
* @param {number} [length] Message length if known beforehand
|
|
44201
|
+
* @returns {ContentEntityCreated} ContentEntityCreated
|
|
44202
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
44203
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
44204
|
+
*/
|
|
44205
|
+
ContentEntityCreated.decode = function decode(reader, length) {
|
|
44206
|
+
if (!(reader instanceof $Reader))
|
|
44207
|
+
reader = $Reader.create(reader);
|
|
44208
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentEntityCreated();
|
|
44209
|
+
while (reader.pos < end) {
|
|
44210
|
+
var tag = reader.uint32();
|
|
44211
|
+
switch (tag >>> 3) {
|
|
44212
|
+
case 1:
|
|
44213
|
+
message.id = reader.uint32();
|
|
44214
|
+
break;
|
|
44215
|
+
case 2:
|
|
44216
|
+
message.contentType = reader.int32();
|
|
44217
|
+
break;
|
|
44218
|
+
case 3:
|
|
44219
|
+
message.colorTheme = reader.int32();
|
|
44220
|
+
break;
|
|
44221
|
+
case 4:
|
|
44222
|
+
message.entityId = reader.uint32();
|
|
44223
|
+
break;
|
|
44224
|
+
case 5:
|
|
44225
|
+
message.slug = reader.string();
|
|
44226
|
+
break;
|
|
44227
|
+
case 6:
|
|
44228
|
+
message.isInternationalOnly = reader.bool();
|
|
44229
|
+
break;
|
|
44230
|
+
case 7:
|
|
44231
|
+
message.contentTypeDisplayValue = reader.int32();
|
|
44232
|
+
break;
|
|
44233
|
+
case 8:
|
|
44234
|
+
message.contentInfoScreenTheme = reader.int32();
|
|
44235
|
+
break;
|
|
44236
|
+
case 9:
|
|
44237
|
+
message.categoryId = reader.uint32();
|
|
44238
|
+
break;
|
|
44239
|
+
case 10:
|
|
44240
|
+
message.tileMediaId = reader.uint32();
|
|
44241
|
+
break;
|
|
44242
|
+
case 11:
|
|
44243
|
+
message.headerImageMediaId = reader.uint32();
|
|
44244
|
+
break;
|
|
44245
|
+
case 12:
|
|
44246
|
+
message.ordinalNumber = reader.uint32();
|
|
44247
|
+
break;
|
|
44248
|
+
case 13:
|
|
44249
|
+
message.createdAt = reader.uint64();
|
|
44250
|
+
break;
|
|
44251
|
+
default:
|
|
44252
|
+
reader.skipType(tag & 7);
|
|
44253
|
+
break;
|
|
44254
|
+
}
|
|
44255
|
+
}
|
|
44256
|
+
return message;
|
|
44257
|
+
};
|
|
44258
|
+
|
|
44259
|
+
/**
|
|
44260
|
+
* Decodes a ContentEntityCreated message from the specified reader or buffer, length delimited.
|
|
44261
|
+
* @function decodeDelimited
|
|
44262
|
+
* @memberof ContentEntityCreated
|
|
44263
|
+
* @static
|
|
44264
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
44265
|
+
* @returns {ContentEntityCreated} ContentEntityCreated
|
|
44266
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
44267
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
44268
|
+
*/
|
|
44269
|
+
ContentEntityCreated.decodeDelimited = function decodeDelimited(reader) {
|
|
44270
|
+
if (!(reader instanceof $Reader))
|
|
44271
|
+
reader = new $Reader(reader);
|
|
44272
|
+
return this.decode(reader, reader.uint32());
|
|
44273
|
+
};
|
|
44274
|
+
|
|
44275
|
+
/**
|
|
44276
|
+
* Verifies a ContentEntityCreated message.
|
|
44277
|
+
* @function verify
|
|
44278
|
+
* @memberof ContentEntityCreated
|
|
44279
|
+
* @static
|
|
44280
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
44281
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
44282
|
+
*/
|
|
44283
|
+
ContentEntityCreated.verify = function verify(message) {
|
|
44284
|
+
if (typeof message !== "object" || message === null)
|
|
44285
|
+
return "object expected";
|
|
44286
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
44287
|
+
if (!$util.isInteger(message.id))
|
|
44288
|
+
return "id: integer expected";
|
|
44289
|
+
if (message.contentType != null && message.hasOwnProperty("contentType"))
|
|
44290
|
+
switch (message.contentType) {
|
|
44291
|
+
default:
|
|
44292
|
+
return "contentType: enum value expected";
|
|
44293
|
+
case 0:
|
|
44294
|
+
case 1:
|
|
44295
|
+
case 2:
|
|
44296
|
+
case 3:
|
|
44297
|
+
case 4:
|
|
44298
|
+
case 5:
|
|
44299
|
+
case 6:
|
|
44300
|
+
case 7:
|
|
44301
|
+
case 8:
|
|
44302
|
+
case 9:
|
|
44303
|
+
case 10:
|
|
44304
|
+
case 11:
|
|
44305
|
+
case 12:
|
|
44306
|
+
case 13:
|
|
44307
|
+
case 14:
|
|
44308
|
+
case 15:
|
|
44309
|
+
case 16:
|
|
44310
|
+
break;
|
|
44311
|
+
}
|
|
44312
|
+
if (message.colorTheme != null && message.hasOwnProperty("colorTheme"))
|
|
44313
|
+
switch (message.colorTheme) {
|
|
44314
|
+
default:
|
|
44315
|
+
return "colorTheme: enum value expected";
|
|
44316
|
+
case 0:
|
|
44317
|
+
case 1:
|
|
44318
|
+
case 2:
|
|
44319
|
+
break;
|
|
44320
|
+
}
|
|
44321
|
+
if (message.entityId != null && message.hasOwnProperty("entityId"))
|
|
44322
|
+
if (!$util.isInteger(message.entityId))
|
|
44323
|
+
return "entityId: integer expected";
|
|
44324
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
44325
|
+
if (!$util.isString(message.slug))
|
|
44326
|
+
return "slug: string expected";
|
|
44327
|
+
if (message.isInternationalOnly != null && message.hasOwnProperty("isInternationalOnly"))
|
|
44328
|
+
if (typeof message.isInternationalOnly !== "boolean")
|
|
44329
|
+
return "isInternationalOnly: boolean expected";
|
|
44330
|
+
if (message.contentTypeDisplayValue != null && message.hasOwnProperty("contentTypeDisplayValue"))
|
|
44331
|
+
switch (message.contentTypeDisplayValue) {
|
|
44332
|
+
default:
|
|
44333
|
+
return "contentTypeDisplayValue: enum value expected";
|
|
44334
|
+
case 0:
|
|
44335
|
+
case 1:
|
|
44336
|
+
case 2:
|
|
44337
|
+
case 3:
|
|
44338
|
+
case 4:
|
|
44339
|
+
case 5:
|
|
44340
|
+
case 6:
|
|
44341
|
+
case 7:
|
|
44342
|
+
case 8:
|
|
44343
|
+
case 9:
|
|
44344
|
+
case 10:
|
|
44345
|
+
case 11:
|
|
44346
|
+
case 12:
|
|
44347
|
+
case 13:
|
|
44348
|
+
case 14:
|
|
44349
|
+
case 15:
|
|
44350
|
+
case 16:
|
|
44351
|
+
case 17:
|
|
44352
|
+
case 18:
|
|
44353
|
+
case 19:
|
|
44354
|
+
case 20:
|
|
44355
|
+
case 21:
|
|
44356
|
+
case 22:
|
|
44357
|
+
case 23:
|
|
44358
|
+
break;
|
|
44359
|
+
}
|
|
44360
|
+
if (message.contentInfoScreenTheme != null && message.hasOwnProperty("contentInfoScreenTheme"))
|
|
44361
|
+
switch (message.contentInfoScreenTheme) {
|
|
44362
|
+
default:
|
|
44363
|
+
return "contentInfoScreenTheme: enum value expected";
|
|
44364
|
+
case 0:
|
|
44365
|
+
case 1:
|
|
44366
|
+
case 2:
|
|
44367
|
+
break;
|
|
44368
|
+
}
|
|
44369
|
+
if (message.categoryId != null && message.hasOwnProperty("categoryId"))
|
|
44370
|
+
if (!$util.isInteger(message.categoryId))
|
|
44371
|
+
return "categoryId: integer expected";
|
|
44372
|
+
if (message.tileMediaId != null && message.hasOwnProperty("tileMediaId"))
|
|
44373
|
+
if (!$util.isInteger(message.tileMediaId))
|
|
44374
|
+
return "tileMediaId: integer expected";
|
|
44375
|
+
if (message.headerImageMediaId != null && message.hasOwnProperty("headerImageMediaId"))
|
|
44376
|
+
if (!$util.isInteger(message.headerImageMediaId))
|
|
44377
|
+
return "headerImageMediaId: integer expected";
|
|
44378
|
+
if (message.ordinalNumber != null && message.hasOwnProperty("ordinalNumber"))
|
|
44379
|
+
if (!$util.isInteger(message.ordinalNumber))
|
|
44380
|
+
return "ordinalNumber: integer expected";
|
|
44381
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
44382
|
+
if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
|
|
44383
|
+
return "createdAt: integer|Long expected";
|
|
44384
|
+
return null;
|
|
44385
|
+
};
|
|
44386
|
+
|
|
44387
|
+
/**
|
|
44388
|
+
* Creates a ContentEntityCreated message from a plain object. Also converts values to their respective internal types.
|
|
44389
|
+
* @function fromObject
|
|
44390
|
+
* @memberof ContentEntityCreated
|
|
44391
|
+
* @static
|
|
44392
|
+
* @param {Object.<string,*>} object Plain object
|
|
44393
|
+
* @returns {ContentEntityCreated} ContentEntityCreated
|
|
44394
|
+
*/
|
|
44395
|
+
ContentEntityCreated.fromObject = function fromObject(object) {
|
|
44396
|
+
if (object instanceof $root.ContentEntityCreated)
|
|
44397
|
+
return object;
|
|
44398
|
+
var message = new $root.ContentEntityCreated();
|
|
44399
|
+
if (object.id != null)
|
|
44400
|
+
message.id = object.id >>> 0;
|
|
44401
|
+
switch (object.contentType) {
|
|
44402
|
+
case "CONTENT_TYPE_UNRECOGNIZED":
|
|
44403
|
+
case 0:
|
|
44404
|
+
message.contentType = 0;
|
|
44405
|
+
break;
|
|
44406
|
+
case "CONTENT_TYPE_COURSE":
|
|
44407
|
+
case 1:
|
|
44408
|
+
message.contentType = 1;
|
|
44409
|
+
break;
|
|
44410
|
+
case "CONTENT_TYPE_ONEOFF":
|
|
44411
|
+
case 2:
|
|
44412
|
+
message.contentType = 2;
|
|
44413
|
+
break;
|
|
44414
|
+
case "CONTENT_TYPE_ANIMATION":
|
|
44415
|
+
case 3:
|
|
44416
|
+
message.contentType = 3;
|
|
44417
|
+
break;
|
|
44418
|
+
case "CONTENT_TYPE_SLEEPCAST":
|
|
44419
|
+
case 4:
|
|
44420
|
+
message.contentType = 4;
|
|
44421
|
+
break;
|
|
44422
|
+
case "CONTENT_TYPE_OBSTACLE":
|
|
44423
|
+
case 5:
|
|
44424
|
+
message.contentType = 5;
|
|
44425
|
+
break;
|
|
44426
|
+
case "CONTENT_TYPE_PLAYLIST":
|
|
44427
|
+
case 6:
|
|
44428
|
+
message.contentType = 6;
|
|
44429
|
+
break;
|
|
44430
|
+
case "CONTENT_TYPE_LANDSCAPE_VIDEO":
|
|
44431
|
+
case 7:
|
|
44432
|
+
message.contentType = 7;
|
|
44433
|
+
break;
|
|
44434
|
+
case "CONTENT_TYPE_INTEGRATED_AUDIO_PLAYER":
|
|
44435
|
+
case 8:
|
|
44436
|
+
message.contentType = 8;
|
|
44437
|
+
break;
|
|
44438
|
+
case "CONTENT_TYPE_WAKEUP":
|
|
44439
|
+
case 9:
|
|
44440
|
+
message.contentType = 9;
|
|
44441
|
+
break;
|
|
44442
|
+
case "CONTENT_TYPE_PODCAST":
|
|
44443
|
+
case 10:
|
|
44444
|
+
message.contentType = 10;
|
|
44445
|
+
break;
|
|
44446
|
+
case "CONTENT_TYPE_EDHS":
|
|
44447
|
+
case 11:
|
|
44448
|
+
message.contentType = 11;
|
|
44449
|
+
break;
|
|
44450
|
+
case "CONTENT_TYPE_GROUP_MEDITATION":
|
|
44451
|
+
case 12:
|
|
44452
|
+
message.contentType = 12;
|
|
44453
|
+
break;
|
|
44454
|
+
case "CONTENT_TYPE_INTERVIEW":
|
|
44455
|
+
case 13:
|
|
44456
|
+
message.contentType = 13;
|
|
44457
|
+
break;
|
|
44458
|
+
case "CONTENT_TYPE_TECHNIQUE":
|
|
44459
|
+
case 14:
|
|
44460
|
+
message.contentType = 14;
|
|
44461
|
+
break;
|
|
44462
|
+
case "CONTENT_TYPE_COURSE_ACTIVITY":
|
|
44463
|
+
case 15:
|
|
44464
|
+
message.contentType = 15;
|
|
44465
|
+
break;
|
|
44466
|
+
case "CONTENT_TYPE_INTEGRATED_AUDIO":
|
|
44467
|
+
case 16:
|
|
44468
|
+
message.contentType = 16;
|
|
44469
|
+
break;
|
|
44470
|
+
}
|
|
44471
|
+
switch (object.colorTheme) {
|
|
44472
|
+
case "COLOR_THEME_UNRECOGNIZED":
|
|
44473
|
+
case 0:
|
|
44474
|
+
message.colorTheme = 0;
|
|
44475
|
+
break;
|
|
44476
|
+
case "COLOR_THEME_DARK":
|
|
44477
|
+
case 1:
|
|
44478
|
+
message.colorTheme = 1;
|
|
44479
|
+
break;
|
|
44480
|
+
case "COLOR_THEME_LIGHT":
|
|
44481
|
+
case 2:
|
|
44482
|
+
message.colorTheme = 2;
|
|
44483
|
+
break;
|
|
44484
|
+
}
|
|
44485
|
+
if (object.entityId != null)
|
|
44486
|
+
message.entityId = object.entityId >>> 0;
|
|
44487
|
+
if (object.slug != null)
|
|
44488
|
+
message.slug = String(object.slug);
|
|
44489
|
+
if (object.isInternationalOnly != null)
|
|
44490
|
+
message.isInternationalOnly = Boolean(object.isInternationalOnly);
|
|
44491
|
+
switch (object.contentTypeDisplayValue) {
|
|
44492
|
+
case "CONTENT_TYPE_DISPLAY_VALUE_UNRECOGNIZED":
|
|
44493
|
+
case 0:
|
|
44494
|
+
message.contentTypeDisplayValue = 0;
|
|
44495
|
+
break;
|
|
44496
|
+
case "CONTENT_TYPE_DISPLAY_VALUE_COURSE":
|
|
44497
|
+
case 1:
|
|
44498
|
+
message.contentTypeDisplayValue = 1;
|
|
44499
|
+
break;
|
|
44500
|
+
case "CONTENT_TYPE_DISPLAY_VALUE_MEDITATION":
|
|
44501
|
+
case 2:
|
|
44502
|
+
message.contentTypeDisplayValue = 2;
|
|
44503
|
+
break;
|
|
44504
|
+
case "CONTENT_TYPE_DISPLAY_VALUE_MINDFUL_ACTIVITY":
|
|
44505
|
+
case 3:
|
|
44506
|
+
message.contentTypeDisplayValue = 3;
|
|
44507
|
+
break;
|
|
44508
|
+
case "CONTENT_TYPE_DISPLAY_VALUE_SLEEP_SOUND":
|
|
44509
|
+
case 4:
|
|
44510
|
+
message.contentTypeDisplayValue = 4;
|
|
44511
|
+
break;
|
|
44512
|
+
case "CONTENT_TYPE_DISPLAY_VALUE_SLEEPCAST":
|
|
44513
|
+
case 5:
|
|
44514
|
+
message.contentTypeDisplayValue = 5;
|
|
44515
|
+
break;
|
|
44516
|
+
case "CONTENT_TYPE_DISPLAY_VALUE_ADVICE":
|
|
44517
|
+
case 6:
|
|
44518
|
+
message.contentTypeDisplayValue = 6;
|
|
44519
|
+
break;
|
|
44520
|
+
case "CONTENT_TYPE_DISPLAY_VALUE_EXPERT_GUIDANCE":
|
|
44521
|
+
case 7:
|
|
44522
|
+
message.contentTypeDisplayValue = 7;
|
|
44523
|
+
break;
|
|
44524
|
+
case "CONTENT_TYPE_DISPLAY_VALUE_FOCUS_MUSIC":
|
|
44525
|
+
case 8:
|
|
44526
|
+
message.contentTypeDisplayValue = 8;
|
|
44527
|
+
break;
|
|
44528
|
+
case "CONTENT_TYPE_DISPLAY_VALUE_CARDIO":
|
|
44529
|
+
case 9:
|
|
44530
|
+
message.contentTypeDisplayValue = 9;
|
|
44531
|
+
break;
|
|
44532
|
+
case "CONTENT_TYPE_DISPLAY_VALUE_PLAYLIST":
|
|
44533
|
+
case 10:
|
|
44534
|
+
message.contentTypeDisplayValue = 10;
|
|
44535
|
+
break;
|
|
44536
|
+
case "CONTENT_TYPE_DISPLAY_VALUE_QUICK_WORKOUT":
|
|
44537
|
+
case 11:
|
|
44538
|
+
message.contentTypeDisplayValue = 11;
|
|
44539
|
+
break;
|
|
44540
|
+
case "CONTENT_TYPE_DISPLAY_VALUE_WAKEUP":
|
|
44541
|
+
case 12:
|
|
44542
|
+
message.contentTypeDisplayValue = 12;
|
|
44543
|
+
break;
|
|
44544
|
+
case "CONTENT_TYPE_DISPLAY_VALUE_WORKOUT":
|
|
44545
|
+
case 13:
|
|
44546
|
+
message.contentTypeDisplayValue = 13;
|
|
44547
|
+
break;
|
|
44548
|
+
case "CONTENT_TYPE_DISPLAY_VALUE_VIDEO":
|
|
44549
|
+
case 14:
|
|
44550
|
+
message.contentTypeDisplayValue = 14;
|
|
44551
|
+
break;
|
|
44552
|
+
case "CONTENT_TYPE_DISPLAY_VALUE_SOUNDSCAPE":
|
|
44553
|
+
case 15:
|
|
44554
|
+
message.contentTypeDisplayValue = 15;
|
|
44555
|
+
break;
|
|
44556
|
+
case "CONTENT_TYPE_DISPLAY_VALUE_WIND_DOWN":
|
|
44557
|
+
case 16:
|
|
44558
|
+
message.contentTypeDisplayValue = 16;
|
|
44559
|
+
break;
|
|
44560
|
+
case "CONTENT_TYPE_DISPLAY_VALUE_SLEEP_RADIO":
|
|
44561
|
+
case 17:
|
|
44562
|
+
message.contentTypeDisplayValue = 17;
|
|
44563
|
+
break;
|
|
44564
|
+
case "CONTENT_TYPE_DISPLAY_VALUE_NIGHTTIME_SOS":
|
|
44565
|
+
case 18:
|
|
44566
|
+
message.contentTypeDisplayValue = 18;
|
|
44567
|
+
break;
|
|
44568
|
+
case "CONTENT_TYPE_DISPLAY_VALUE_PODCAST":
|
|
44569
|
+
case 19:
|
|
44570
|
+
message.contentTypeDisplayValue = 19;
|
|
44571
|
+
break;
|
|
44572
|
+
case "CONTENT_TYPE_DISPLAY_VALUE_UNGUIDED":
|
|
44573
|
+
case 20:
|
|
44574
|
+
message.contentTypeDisplayValue = 20;
|
|
44575
|
+
break;
|
|
44576
|
+
case "CONTENT_TYPE_DISPLAY_VALUE_JOURNAL":
|
|
44577
|
+
case 21:
|
|
44578
|
+
message.contentTypeDisplayValue = 21;
|
|
44579
|
+
break;
|
|
44580
|
+
case "CONTENT_TYPE_DISPLAY_VALUE_STRETCH":
|
|
44581
|
+
case 22:
|
|
44582
|
+
message.contentTypeDisplayValue = 22;
|
|
44583
|
+
break;
|
|
44584
|
+
case "CONTENT_TYPE_DISPLAY_VALUE_THE_WIND_DOWN":
|
|
44585
|
+
case 23:
|
|
44586
|
+
message.contentTypeDisplayValue = 23;
|
|
44587
|
+
break;
|
|
44588
|
+
}
|
|
44589
|
+
switch (object.contentInfoScreenTheme) {
|
|
44590
|
+
case "COLOR_THEME_UNRECOGNIZED":
|
|
44591
|
+
case 0:
|
|
44592
|
+
message.contentInfoScreenTheme = 0;
|
|
44593
|
+
break;
|
|
44594
|
+
case "COLOR_THEME_DARK":
|
|
44595
|
+
case 1:
|
|
44596
|
+
message.contentInfoScreenTheme = 1;
|
|
44597
|
+
break;
|
|
44598
|
+
case "COLOR_THEME_LIGHT":
|
|
44599
|
+
case 2:
|
|
44600
|
+
message.contentInfoScreenTheme = 2;
|
|
44601
|
+
break;
|
|
44602
|
+
}
|
|
44603
|
+
if (object.categoryId != null)
|
|
44604
|
+
message.categoryId = object.categoryId >>> 0;
|
|
44605
|
+
if (object.tileMediaId != null)
|
|
44606
|
+
message.tileMediaId = object.tileMediaId >>> 0;
|
|
44607
|
+
if (object.headerImageMediaId != null)
|
|
44608
|
+
message.headerImageMediaId = object.headerImageMediaId >>> 0;
|
|
44609
|
+
if (object.ordinalNumber != null)
|
|
44610
|
+
message.ordinalNumber = object.ordinalNumber >>> 0;
|
|
44611
|
+
if (object.createdAt != null)
|
|
44612
|
+
if ($util.Long)
|
|
44613
|
+
(message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
|
|
44614
|
+
else if (typeof object.createdAt === "string")
|
|
44615
|
+
message.createdAt = parseInt(object.createdAt, 10);
|
|
44616
|
+
else if (typeof object.createdAt === "number")
|
|
44617
|
+
message.createdAt = object.createdAt;
|
|
44618
|
+
else if (typeof object.createdAt === "object")
|
|
44619
|
+
message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
|
|
44620
|
+
return message;
|
|
44621
|
+
};
|
|
44622
|
+
|
|
44623
|
+
/**
|
|
44624
|
+
* Creates a plain object from a ContentEntityCreated message. Also converts values to other types if specified.
|
|
44625
|
+
* @function toObject
|
|
44626
|
+
* @memberof ContentEntityCreated
|
|
44627
|
+
* @static
|
|
44628
|
+
* @param {ContentEntityCreated} message ContentEntityCreated
|
|
44629
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
44630
|
+
* @returns {Object.<string,*>} Plain object
|
|
44631
|
+
*/
|
|
44632
|
+
ContentEntityCreated.toObject = function toObject(message, options) {
|
|
44633
|
+
if (!options)
|
|
44634
|
+
options = {};
|
|
44635
|
+
var object = {};
|
|
44636
|
+
if (options.defaults) {
|
|
44637
|
+
object.id = 0;
|
|
44638
|
+
object.contentType = options.enums === String ? "CONTENT_TYPE_UNRECOGNIZED" : 0;
|
|
44639
|
+
object.colorTheme = options.enums === String ? "COLOR_THEME_UNRECOGNIZED" : 0;
|
|
44640
|
+
object.entityId = 0;
|
|
44641
|
+
object.slug = "";
|
|
44642
|
+
object.isInternationalOnly = false;
|
|
44643
|
+
object.contentTypeDisplayValue = options.enums === String ? "CONTENT_TYPE_DISPLAY_VALUE_UNRECOGNIZED" : 0;
|
|
44644
|
+
object.contentInfoScreenTheme = options.enums === String ? "COLOR_THEME_UNRECOGNIZED" : 0;
|
|
44645
|
+
object.categoryId = 0;
|
|
44646
|
+
object.tileMediaId = 0;
|
|
44647
|
+
object.headerImageMediaId = 0;
|
|
44648
|
+
object.ordinalNumber = 0;
|
|
44649
|
+
if ($util.Long) {
|
|
44650
|
+
var long = new $util.Long(0, 0, true);
|
|
44651
|
+
object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
44652
|
+
} else
|
|
44653
|
+
object.createdAt = options.longs === String ? "0" : 0;
|
|
44654
|
+
}
|
|
44655
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
44656
|
+
object.id = message.id;
|
|
44657
|
+
if (message.contentType != null && message.hasOwnProperty("contentType"))
|
|
44658
|
+
object.contentType = options.enums === String ? $root.ContentType[message.contentType] : message.contentType;
|
|
44659
|
+
if (message.colorTheme != null && message.hasOwnProperty("colorTheme"))
|
|
44660
|
+
object.colorTheme = options.enums === String ? $root.ColorTheme[message.colorTheme] : message.colorTheme;
|
|
44661
|
+
if (message.entityId != null && message.hasOwnProperty("entityId"))
|
|
44662
|
+
object.entityId = message.entityId;
|
|
44663
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
44664
|
+
object.slug = message.slug;
|
|
44665
|
+
if (message.isInternationalOnly != null && message.hasOwnProperty("isInternationalOnly"))
|
|
44666
|
+
object.isInternationalOnly = message.isInternationalOnly;
|
|
44667
|
+
if (message.contentTypeDisplayValue != null && message.hasOwnProperty("contentTypeDisplayValue"))
|
|
44668
|
+
object.contentTypeDisplayValue = options.enums === String ? $root.ContentTypeDisplayValue[message.contentTypeDisplayValue] : message.contentTypeDisplayValue;
|
|
44669
|
+
if (message.contentInfoScreenTheme != null && message.hasOwnProperty("contentInfoScreenTheme"))
|
|
44670
|
+
object.contentInfoScreenTheme = options.enums === String ? $root.ColorTheme[message.contentInfoScreenTheme] : message.contentInfoScreenTheme;
|
|
44671
|
+
if (message.categoryId != null && message.hasOwnProperty("categoryId"))
|
|
44672
|
+
object.categoryId = message.categoryId;
|
|
44673
|
+
if (message.tileMediaId != null && message.hasOwnProperty("tileMediaId"))
|
|
44674
|
+
object.tileMediaId = message.tileMediaId;
|
|
44675
|
+
if (message.headerImageMediaId != null && message.hasOwnProperty("headerImageMediaId"))
|
|
44676
|
+
object.headerImageMediaId = message.headerImageMediaId;
|
|
44677
|
+
if (message.ordinalNumber != null && message.hasOwnProperty("ordinalNumber"))
|
|
44678
|
+
object.ordinalNumber = message.ordinalNumber;
|
|
44679
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
44680
|
+
if (typeof message.createdAt === "number")
|
|
44681
|
+
object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
|
|
44682
|
+
else
|
|
44683
|
+
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;
|
|
44684
|
+
return object;
|
|
44685
|
+
};
|
|
44686
|
+
|
|
44687
|
+
/**
|
|
44688
|
+
* Converts this ContentEntityCreated to JSON.
|
|
44689
|
+
* @function toJSON
|
|
44690
|
+
* @memberof ContentEntityCreated
|
|
44691
|
+
* @instance
|
|
44692
|
+
* @returns {Object.<string,*>} JSON object
|
|
44693
|
+
*/
|
|
44694
|
+
ContentEntityCreated.prototype.toJSON = function toJSON() {
|
|
44695
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
44696
|
+
};
|
|
44697
|
+
|
|
44698
|
+
return ContentEntityCreated;
|
|
44699
|
+
})();
|
|
44700
|
+
|
|
44701
|
+
$root.ContentEntityUpdated = (function() {
|
|
44702
|
+
|
|
44703
|
+
/**
|
|
44704
|
+
* Properties of a ContentEntityUpdated.
|
|
44705
|
+
* @exports IContentEntityUpdated
|
|
44706
|
+
* @interface IContentEntityUpdated
|
|
44707
|
+
* @property {number|null} [id] ContentEntityUpdated id
|
|
44708
|
+
* @property {ContentType|null} [contentType] ContentEntityUpdated contentType
|
|
44709
|
+
* @property {ColorTheme|null} [colorTheme] ContentEntityUpdated colorTheme
|
|
44710
|
+
* @property {number|null} [entityId] ContentEntityUpdated entityId
|
|
44711
|
+
* @property {string|null} [slug] ContentEntityUpdated slug
|
|
44712
|
+
* @property {boolean|null} [isInternationalOnly] ContentEntityUpdated isInternationalOnly
|
|
44713
|
+
* @property {ContentTypeDisplayValue|null} [contentTypeDisplayValue] ContentEntityUpdated contentTypeDisplayValue
|
|
44714
|
+
* @property {ColorTheme|null} [contentInfoScreenTheme] ContentEntityUpdated contentInfoScreenTheme
|
|
44715
|
+
* @property {number|null} [categoryId] ContentEntityUpdated categoryId
|
|
44716
|
+
* @property {number|null} [tileMediaId] ContentEntityUpdated tileMediaId
|
|
44717
|
+
* @property {number|null} [headerImageMediaId] ContentEntityUpdated headerImageMediaId
|
|
44718
|
+
* @property {number|null} [ordinalNumber] ContentEntityUpdated ordinalNumber
|
|
44719
|
+
* @property {number|Long|null} [updatedAt] ContentEntityUpdated updatedAt
|
|
44720
|
+
*/
|
|
44721
|
+
|
|
44722
|
+
/**
|
|
44723
|
+
* Constructs a new ContentEntityUpdated.
|
|
44724
|
+
* @exports ContentEntityUpdated
|
|
44725
|
+
* @classdesc Represents a ContentEntityUpdated.
|
|
44726
|
+
* @implements IContentEntityUpdated
|
|
44727
|
+
* @constructor
|
|
44728
|
+
* @param {IContentEntityUpdated=} [properties] Properties to set
|
|
44729
|
+
*/
|
|
44730
|
+
function ContentEntityUpdated(properties) {
|
|
44731
|
+
if (properties)
|
|
44732
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
44733
|
+
if (properties[keys[i]] != null)
|
|
44734
|
+
this[keys[i]] = properties[keys[i]];
|
|
44735
|
+
}
|
|
44736
|
+
|
|
44737
|
+
/**
|
|
44738
|
+
* ContentEntityUpdated id.
|
|
44739
|
+
* @member {number} id
|
|
44740
|
+
* @memberof ContentEntityUpdated
|
|
44741
|
+
* @instance
|
|
44742
|
+
*/
|
|
44743
|
+
ContentEntityUpdated.prototype.id = 0;
|
|
44744
|
+
|
|
44745
|
+
/**
|
|
44746
|
+
* ContentEntityUpdated contentType.
|
|
44747
|
+
* @member {ContentType} contentType
|
|
44748
|
+
* @memberof ContentEntityUpdated
|
|
44749
|
+
* @instance
|
|
44750
|
+
*/
|
|
44751
|
+
ContentEntityUpdated.prototype.contentType = 0;
|
|
44752
|
+
|
|
44753
|
+
/**
|
|
44754
|
+
* ContentEntityUpdated colorTheme.
|
|
44755
|
+
* @member {ColorTheme} colorTheme
|
|
44756
|
+
* @memberof ContentEntityUpdated
|
|
44757
|
+
* @instance
|
|
44758
|
+
*/
|
|
44759
|
+
ContentEntityUpdated.prototype.colorTheme = 0;
|
|
44760
|
+
|
|
44761
|
+
/**
|
|
44762
|
+
* ContentEntityUpdated entityId.
|
|
44763
|
+
* @member {number} entityId
|
|
44764
|
+
* @memberof ContentEntityUpdated
|
|
44765
|
+
* @instance
|
|
44766
|
+
*/
|
|
44767
|
+
ContentEntityUpdated.prototype.entityId = 0;
|
|
44768
|
+
|
|
44769
|
+
/**
|
|
44770
|
+
* ContentEntityUpdated slug.
|
|
44771
|
+
* @member {string} slug
|
|
44772
|
+
* @memberof ContentEntityUpdated
|
|
44773
|
+
* @instance
|
|
44774
|
+
*/
|
|
44775
|
+
ContentEntityUpdated.prototype.slug = "";
|
|
44776
|
+
|
|
44777
|
+
/**
|
|
44778
|
+
* ContentEntityUpdated isInternationalOnly.
|
|
44779
|
+
* @member {boolean} isInternationalOnly
|
|
44780
|
+
* @memberof ContentEntityUpdated
|
|
44781
|
+
* @instance
|
|
44782
|
+
*/
|
|
44783
|
+
ContentEntityUpdated.prototype.isInternationalOnly = false;
|
|
44784
|
+
|
|
44785
|
+
/**
|
|
44786
|
+
* ContentEntityUpdated contentTypeDisplayValue.
|
|
44787
|
+
* @member {ContentTypeDisplayValue} contentTypeDisplayValue
|
|
44788
|
+
* @memberof ContentEntityUpdated
|
|
44789
|
+
* @instance
|
|
44790
|
+
*/
|
|
44791
|
+
ContentEntityUpdated.prototype.contentTypeDisplayValue = 0;
|
|
44792
|
+
|
|
44793
|
+
/**
|
|
44794
|
+
* ContentEntityUpdated contentInfoScreenTheme.
|
|
44795
|
+
* @member {ColorTheme} contentInfoScreenTheme
|
|
44796
|
+
* @memberof ContentEntityUpdated
|
|
44797
|
+
* @instance
|
|
44798
|
+
*/
|
|
44799
|
+
ContentEntityUpdated.prototype.contentInfoScreenTheme = 0;
|
|
44800
|
+
|
|
44801
|
+
/**
|
|
44802
|
+
* ContentEntityUpdated categoryId.
|
|
44803
|
+
* @member {number} categoryId
|
|
44804
|
+
* @memberof ContentEntityUpdated
|
|
44805
|
+
* @instance
|
|
44806
|
+
*/
|
|
44807
|
+
ContentEntityUpdated.prototype.categoryId = 0;
|
|
44808
|
+
|
|
44809
|
+
/**
|
|
44810
|
+
* ContentEntityUpdated tileMediaId.
|
|
44811
|
+
* @member {number} tileMediaId
|
|
44812
|
+
* @memberof ContentEntityUpdated
|
|
44813
|
+
* @instance
|
|
44814
|
+
*/
|
|
44815
|
+
ContentEntityUpdated.prototype.tileMediaId = 0;
|
|
44816
|
+
|
|
44817
|
+
/**
|
|
44818
|
+
* ContentEntityUpdated headerImageMediaId.
|
|
44819
|
+
* @member {number} headerImageMediaId
|
|
44820
|
+
* @memberof ContentEntityUpdated
|
|
44821
|
+
* @instance
|
|
44822
|
+
*/
|
|
44823
|
+
ContentEntityUpdated.prototype.headerImageMediaId = 0;
|
|
44824
|
+
|
|
44825
|
+
/**
|
|
44826
|
+
* ContentEntityUpdated ordinalNumber.
|
|
44827
|
+
* @member {number} ordinalNumber
|
|
44828
|
+
* @memberof ContentEntityUpdated
|
|
44829
|
+
* @instance
|
|
44830
|
+
*/
|
|
44831
|
+
ContentEntityUpdated.prototype.ordinalNumber = 0;
|
|
44832
|
+
|
|
44833
|
+
/**
|
|
44834
|
+
* ContentEntityUpdated updatedAt.
|
|
44835
|
+
* @member {number|Long} updatedAt
|
|
44836
|
+
* @memberof ContentEntityUpdated
|
|
44837
|
+
* @instance
|
|
44838
|
+
*/
|
|
44839
|
+
ContentEntityUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
44840
|
+
|
|
44841
|
+
/**
|
|
44842
|
+
* Creates a new ContentEntityUpdated instance using the specified properties.
|
|
44843
|
+
* @function create
|
|
44844
|
+
* @memberof ContentEntityUpdated
|
|
44845
|
+
* @static
|
|
44846
|
+
* @param {IContentEntityUpdated=} [properties] Properties to set
|
|
44847
|
+
* @returns {ContentEntityUpdated} ContentEntityUpdated instance
|
|
44848
|
+
*/
|
|
44849
|
+
ContentEntityUpdated.create = function create(properties) {
|
|
44850
|
+
return new ContentEntityUpdated(properties);
|
|
44851
|
+
};
|
|
44852
|
+
|
|
44853
|
+
/**
|
|
44854
|
+
* Encodes the specified ContentEntityUpdated message. Does not implicitly {@link ContentEntityUpdated.verify|verify} messages.
|
|
44855
|
+
* @function encode
|
|
44856
|
+
* @memberof ContentEntityUpdated
|
|
44857
|
+
* @static
|
|
44858
|
+
* @param {IContentEntityUpdated} message ContentEntityUpdated message or plain object to encode
|
|
44859
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
44860
|
+
* @returns {$protobuf.Writer} Writer
|
|
44861
|
+
*/
|
|
44862
|
+
ContentEntityUpdated.encode = function encode(message, writer) {
|
|
44863
|
+
if (!writer)
|
|
44864
|
+
writer = $Writer.create();
|
|
44865
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
44866
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.id);
|
|
44867
|
+
if (message.contentType != null && message.hasOwnProperty("contentType"))
|
|
44868
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.contentType);
|
|
44869
|
+
if (message.colorTheme != null && message.hasOwnProperty("colorTheme"))
|
|
44870
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.colorTheme);
|
|
44871
|
+
if (message.entityId != null && message.hasOwnProperty("entityId"))
|
|
44872
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.entityId);
|
|
44873
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
44874
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.slug);
|
|
44875
|
+
if (message.isInternationalOnly != null && message.hasOwnProperty("isInternationalOnly"))
|
|
44876
|
+
writer.uint32(/* id 6, wireType 0 =*/48).bool(message.isInternationalOnly);
|
|
44877
|
+
if (message.contentTypeDisplayValue != null && message.hasOwnProperty("contentTypeDisplayValue"))
|
|
44878
|
+
writer.uint32(/* id 7, wireType 0 =*/56).int32(message.contentTypeDisplayValue);
|
|
44879
|
+
if (message.contentInfoScreenTheme != null && message.hasOwnProperty("contentInfoScreenTheme"))
|
|
44880
|
+
writer.uint32(/* id 8, wireType 0 =*/64).int32(message.contentInfoScreenTheme);
|
|
44881
|
+
if (message.categoryId != null && message.hasOwnProperty("categoryId"))
|
|
44882
|
+
writer.uint32(/* id 9, wireType 0 =*/72).uint32(message.categoryId);
|
|
44883
|
+
if (message.tileMediaId != null && message.hasOwnProperty("tileMediaId"))
|
|
44884
|
+
writer.uint32(/* id 10, wireType 0 =*/80).uint32(message.tileMediaId);
|
|
44885
|
+
if (message.headerImageMediaId != null && message.hasOwnProperty("headerImageMediaId"))
|
|
44886
|
+
writer.uint32(/* id 11, wireType 0 =*/88).uint32(message.headerImageMediaId);
|
|
44887
|
+
if (message.ordinalNumber != null && message.hasOwnProperty("ordinalNumber"))
|
|
44888
|
+
writer.uint32(/* id 12, wireType 0 =*/96).uint32(message.ordinalNumber);
|
|
44889
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
44890
|
+
writer.uint32(/* id 13, wireType 0 =*/104).uint64(message.updatedAt);
|
|
44891
|
+
return writer;
|
|
44892
|
+
};
|
|
44893
|
+
|
|
44894
|
+
/**
|
|
44895
|
+
* Encodes the specified ContentEntityUpdated message, length delimited. Does not implicitly {@link ContentEntityUpdated.verify|verify} messages.
|
|
44896
|
+
* @function encodeDelimited
|
|
44897
|
+
* @memberof ContentEntityUpdated
|
|
44898
|
+
* @static
|
|
44899
|
+
* @param {IContentEntityUpdated} message ContentEntityUpdated message or plain object to encode
|
|
44900
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
44901
|
+
* @returns {$protobuf.Writer} Writer
|
|
44902
|
+
*/
|
|
44903
|
+
ContentEntityUpdated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
44904
|
+
return this.encode(message, writer).ldelim();
|
|
44905
|
+
};
|
|
44906
|
+
|
|
44907
|
+
/**
|
|
44908
|
+
* Decodes a ContentEntityUpdated message from the specified reader or buffer.
|
|
44909
|
+
* @function decode
|
|
44910
|
+
* @memberof ContentEntityUpdated
|
|
44911
|
+
* @static
|
|
44912
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
44913
|
+
* @param {number} [length] Message length if known beforehand
|
|
44914
|
+
* @returns {ContentEntityUpdated} ContentEntityUpdated
|
|
44915
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
44916
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
44917
|
+
*/
|
|
44918
|
+
ContentEntityUpdated.decode = function decode(reader, length) {
|
|
44919
|
+
if (!(reader instanceof $Reader))
|
|
44920
|
+
reader = $Reader.create(reader);
|
|
44921
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentEntityUpdated();
|
|
44922
|
+
while (reader.pos < end) {
|
|
44923
|
+
var tag = reader.uint32();
|
|
44924
|
+
switch (tag >>> 3) {
|
|
44925
|
+
case 1:
|
|
44926
|
+
message.id = reader.uint32();
|
|
44927
|
+
break;
|
|
44928
|
+
case 2:
|
|
44929
|
+
message.contentType = reader.int32();
|
|
44930
|
+
break;
|
|
44931
|
+
case 3:
|
|
44932
|
+
message.colorTheme = reader.int32();
|
|
44933
|
+
break;
|
|
44934
|
+
case 4:
|
|
44935
|
+
message.entityId = reader.uint32();
|
|
44936
|
+
break;
|
|
44937
|
+
case 5:
|
|
44938
|
+
message.slug = reader.string();
|
|
44939
|
+
break;
|
|
44940
|
+
case 6:
|
|
44941
|
+
message.isInternationalOnly = reader.bool();
|
|
44942
|
+
break;
|
|
44943
|
+
case 7:
|
|
44944
|
+
message.contentTypeDisplayValue = reader.int32();
|
|
44945
|
+
break;
|
|
44946
|
+
case 8:
|
|
44947
|
+
message.contentInfoScreenTheme = reader.int32();
|
|
44948
|
+
break;
|
|
44949
|
+
case 9:
|
|
44950
|
+
message.categoryId = reader.uint32();
|
|
44951
|
+
break;
|
|
44952
|
+
case 10:
|
|
44953
|
+
message.tileMediaId = reader.uint32();
|
|
44954
|
+
break;
|
|
44955
|
+
case 11:
|
|
44956
|
+
message.headerImageMediaId = reader.uint32();
|
|
44957
|
+
break;
|
|
44958
|
+
case 12:
|
|
44959
|
+
message.ordinalNumber = reader.uint32();
|
|
44960
|
+
break;
|
|
44961
|
+
case 13:
|
|
44962
|
+
message.updatedAt = reader.uint64();
|
|
44963
|
+
break;
|
|
44964
|
+
default:
|
|
44965
|
+
reader.skipType(tag & 7);
|
|
44966
|
+
break;
|
|
44967
|
+
}
|
|
44968
|
+
}
|
|
44969
|
+
return message;
|
|
44970
|
+
};
|
|
44971
|
+
|
|
44972
|
+
/**
|
|
44973
|
+
* Decodes a ContentEntityUpdated message from the specified reader or buffer, length delimited.
|
|
44974
|
+
* @function decodeDelimited
|
|
44975
|
+
* @memberof ContentEntityUpdated
|
|
44976
|
+
* @static
|
|
44977
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
44978
|
+
* @returns {ContentEntityUpdated} ContentEntityUpdated
|
|
44979
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
44980
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
44981
|
+
*/
|
|
44982
|
+
ContentEntityUpdated.decodeDelimited = function decodeDelimited(reader) {
|
|
44983
|
+
if (!(reader instanceof $Reader))
|
|
44984
|
+
reader = new $Reader(reader);
|
|
44985
|
+
return this.decode(reader, reader.uint32());
|
|
44986
|
+
};
|
|
44987
|
+
|
|
44988
|
+
/**
|
|
44989
|
+
* Verifies a ContentEntityUpdated message.
|
|
44990
|
+
* @function verify
|
|
44991
|
+
* @memberof ContentEntityUpdated
|
|
44992
|
+
* @static
|
|
44993
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
44994
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
44995
|
+
*/
|
|
44996
|
+
ContentEntityUpdated.verify = function verify(message) {
|
|
44997
|
+
if (typeof message !== "object" || message === null)
|
|
44998
|
+
return "object expected";
|
|
44999
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
45000
|
+
if (!$util.isInteger(message.id))
|
|
45001
|
+
return "id: integer expected";
|
|
45002
|
+
if (message.contentType != null && message.hasOwnProperty("contentType"))
|
|
45003
|
+
switch (message.contentType) {
|
|
45004
|
+
default:
|
|
45005
|
+
return "contentType: enum value expected";
|
|
45006
|
+
case 0:
|
|
45007
|
+
case 1:
|
|
45008
|
+
case 2:
|
|
45009
|
+
case 3:
|
|
45010
|
+
case 4:
|
|
45011
|
+
case 5:
|
|
45012
|
+
case 6:
|
|
45013
|
+
case 7:
|
|
45014
|
+
case 8:
|
|
45015
|
+
case 9:
|
|
45016
|
+
case 10:
|
|
45017
|
+
case 11:
|
|
45018
|
+
case 12:
|
|
45019
|
+
case 13:
|
|
45020
|
+
case 14:
|
|
45021
|
+
case 15:
|
|
45022
|
+
case 16:
|
|
45023
|
+
break;
|
|
45024
|
+
}
|
|
45025
|
+
if (message.colorTheme != null && message.hasOwnProperty("colorTheme"))
|
|
45026
|
+
switch (message.colorTheme) {
|
|
45027
|
+
default:
|
|
45028
|
+
return "colorTheme: enum value expected";
|
|
45029
|
+
case 0:
|
|
45030
|
+
case 1:
|
|
45031
|
+
case 2:
|
|
45032
|
+
break;
|
|
45033
|
+
}
|
|
45034
|
+
if (message.entityId != null && message.hasOwnProperty("entityId"))
|
|
45035
|
+
if (!$util.isInteger(message.entityId))
|
|
45036
|
+
return "entityId: integer expected";
|
|
45037
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
45038
|
+
if (!$util.isString(message.slug))
|
|
45039
|
+
return "slug: string expected";
|
|
45040
|
+
if (message.isInternationalOnly != null && message.hasOwnProperty("isInternationalOnly"))
|
|
45041
|
+
if (typeof message.isInternationalOnly !== "boolean")
|
|
45042
|
+
return "isInternationalOnly: boolean expected";
|
|
45043
|
+
if (message.contentTypeDisplayValue != null && message.hasOwnProperty("contentTypeDisplayValue"))
|
|
45044
|
+
switch (message.contentTypeDisplayValue) {
|
|
45045
|
+
default:
|
|
45046
|
+
return "contentTypeDisplayValue: enum value expected";
|
|
45047
|
+
case 0:
|
|
45048
|
+
case 1:
|
|
45049
|
+
case 2:
|
|
45050
|
+
case 3:
|
|
45051
|
+
case 4:
|
|
45052
|
+
case 5:
|
|
45053
|
+
case 6:
|
|
45054
|
+
case 7:
|
|
45055
|
+
case 8:
|
|
45056
|
+
case 9:
|
|
45057
|
+
case 10:
|
|
45058
|
+
case 11:
|
|
45059
|
+
case 12:
|
|
45060
|
+
case 13:
|
|
45061
|
+
case 14:
|
|
45062
|
+
case 15:
|
|
45063
|
+
case 16:
|
|
45064
|
+
case 17:
|
|
45065
|
+
case 18:
|
|
45066
|
+
case 19:
|
|
45067
|
+
case 20:
|
|
45068
|
+
case 21:
|
|
45069
|
+
case 22:
|
|
45070
|
+
case 23:
|
|
45071
|
+
break;
|
|
45072
|
+
}
|
|
45073
|
+
if (message.contentInfoScreenTheme != null && message.hasOwnProperty("contentInfoScreenTheme"))
|
|
45074
|
+
switch (message.contentInfoScreenTheme) {
|
|
45075
|
+
default:
|
|
45076
|
+
return "contentInfoScreenTheme: enum value expected";
|
|
45077
|
+
case 0:
|
|
45078
|
+
case 1:
|
|
45079
|
+
case 2:
|
|
45080
|
+
break;
|
|
45081
|
+
}
|
|
45082
|
+
if (message.categoryId != null && message.hasOwnProperty("categoryId"))
|
|
45083
|
+
if (!$util.isInteger(message.categoryId))
|
|
45084
|
+
return "categoryId: integer expected";
|
|
45085
|
+
if (message.tileMediaId != null && message.hasOwnProperty("tileMediaId"))
|
|
45086
|
+
if (!$util.isInteger(message.tileMediaId))
|
|
45087
|
+
return "tileMediaId: integer expected";
|
|
45088
|
+
if (message.headerImageMediaId != null && message.hasOwnProperty("headerImageMediaId"))
|
|
45089
|
+
if (!$util.isInteger(message.headerImageMediaId))
|
|
45090
|
+
return "headerImageMediaId: integer expected";
|
|
45091
|
+
if (message.ordinalNumber != null && message.hasOwnProperty("ordinalNumber"))
|
|
45092
|
+
if (!$util.isInteger(message.ordinalNumber))
|
|
45093
|
+
return "ordinalNumber: integer expected";
|
|
45094
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
45095
|
+
if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
|
|
45096
|
+
return "updatedAt: integer|Long expected";
|
|
45097
|
+
return null;
|
|
45098
|
+
};
|
|
45099
|
+
|
|
45100
|
+
/**
|
|
45101
|
+
* Creates a ContentEntityUpdated message from a plain object. Also converts values to their respective internal types.
|
|
45102
|
+
* @function fromObject
|
|
45103
|
+
* @memberof ContentEntityUpdated
|
|
45104
|
+
* @static
|
|
45105
|
+
* @param {Object.<string,*>} object Plain object
|
|
45106
|
+
* @returns {ContentEntityUpdated} ContentEntityUpdated
|
|
45107
|
+
*/
|
|
45108
|
+
ContentEntityUpdated.fromObject = function fromObject(object) {
|
|
45109
|
+
if (object instanceof $root.ContentEntityUpdated)
|
|
45110
|
+
return object;
|
|
45111
|
+
var message = new $root.ContentEntityUpdated();
|
|
45112
|
+
if (object.id != null)
|
|
45113
|
+
message.id = object.id >>> 0;
|
|
45114
|
+
switch (object.contentType) {
|
|
45115
|
+
case "CONTENT_TYPE_UNRECOGNIZED":
|
|
45116
|
+
case 0:
|
|
45117
|
+
message.contentType = 0;
|
|
45118
|
+
break;
|
|
45119
|
+
case "CONTENT_TYPE_COURSE":
|
|
45120
|
+
case 1:
|
|
45121
|
+
message.contentType = 1;
|
|
45122
|
+
break;
|
|
45123
|
+
case "CONTENT_TYPE_ONEOFF":
|
|
45124
|
+
case 2:
|
|
45125
|
+
message.contentType = 2;
|
|
45126
|
+
break;
|
|
45127
|
+
case "CONTENT_TYPE_ANIMATION":
|
|
45128
|
+
case 3:
|
|
45129
|
+
message.contentType = 3;
|
|
45130
|
+
break;
|
|
45131
|
+
case "CONTENT_TYPE_SLEEPCAST":
|
|
45132
|
+
case 4:
|
|
45133
|
+
message.contentType = 4;
|
|
45134
|
+
break;
|
|
45135
|
+
case "CONTENT_TYPE_OBSTACLE":
|
|
45136
|
+
case 5:
|
|
45137
|
+
message.contentType = 5;
|
|
45138
|
+
break;
|
|
45139
|
+
case "CONTENT_TYPE_PLAYLIST":
|
|
45140
|
+
case 6:
|
|
45141
|
+
message.contentType = 6;
|
|
45142
|
+
break;
|
|
45143
|
+
case "CONTENT_TYPE_LANDSCAPE_VIDEO":
|
|
45144
|
+
case 7:
|
|
45145
|
+
message.contentType = 7;
|
|
45146
|
+
break;
|
|
45147
|
+
case "CONTENT_TYPE_INTEGRATED_AUDIO_PLAYER":
|
|
45148
|
+
case 8:
|
|
45149
|
+
message.contentType = 8;
|
|
45150
|
+
break;
|
|
45151
|
+
case "CONTENT_TYPE_WAKEUP":
|
|
45152
|
+
case 9:
|
|
45153
|
+
message.contentType = 9;
|
|
45154
|
+
break;
|
|
45155
|
+
case "CONTENT_TYPE_PODCAST":
|
|
45156
|
+
case 10:
|
|
45157
|
+
message.contentType = 10;
|
|
45158
|
+
break;
|
|
45159
|
+
case "CONTENT_TYPE_EDHS":
|
|
45160
|
+
case 11:
|
|
45161
|
+
message.contentType = 11;
|
|
45162
|
+
break;
|
|
45163
|
+
case "CONTENT_TYPE_GROUP_MEDITATION":
|
|
45164
|
+
case 12:
|
|
45165
|
+
message.contentType = 12;
|
|
45166
|
+
break;
|
|
45167
|
+
case "CONTENT_TYPE_INTERVIEW":
|
|
45168
|
+
case 13:
|
|
45169
|
+
message.contentType = 13;
|
|
45170
|
+
break;
|
|
45171
|
+
case "CONTENT_TYPE_TECHNIQUE":
|
|
45172
|
+
case 14:
|
|
45173
|
+
message.contentType = 14;
|
|
45174
|
+
break;
|
|
45175
|
+
case "CONTENT_TYPE_COURSE_ACTIVITY":
|
|
45176
|
+
case 15:
|
|
45177
|
+
message.contentType = 15;
|
|
45178
|
+
break;
|
|
45179
|
+
case "CONTENT_TYPE_INTEGRATED_AUDIO":
|
|
45180
|
+
case 16:
|
|
45181
|
+
message.contentType = 16;
|
|
45182
|
+
break;
|
|
45183
|
+
}
|
|
45184
|
+
switch (object.colorTheme) {
|
|
45185
|
+
case "COLOR_THEME_UNRECOGNIZED":
|
|
45186
|
+
case 0:
|
|
45187
|
+
message.colorTheme = 0;
|
|
45188
|
+
break;
|
|
45189
|
+
case "COLOR_THEME_DARK":
|
|
45190
|
+
case 1:
|
|
45191
|
+
message.colorTheme = 1;
|
|
45192
|
+
break;
|
|
45193
|
+
case "COLOR_THEME_LIGHT":
|
|
45194
|
+
case 2:
|
|
45195
|
+
message.colorTheme = 2;
|
|
45196
|
+
break;
|
|
45197
|
+
}
|
|
45198
|
+
if (object.entityId != null)
|
|
45199
|
+
message.entityId = object.entityId >>> 0;
|
|
45200
|
+
if (object.slug != null)
|
|
45201
|
+
message.slug = String(object.slug);
|
|
45202
|
+
if (object.isInternationalOnly != null)
|
|
45203
|
+
message.isInternationalOnly = Boolean(object.isInternationalOnly);
|
|
45204
|
+
switch (object.contentTypeDisplayValue) {
|
|
45205
|
+
case "CONTENT_TYPE_DISPLAY_VALUE_UNRECOGNIZED":
|
|
45206
|
+
case 0:
|
|
45207
|
+
message.contentTypeDisplayValue = 0;
|
|
45208
|
+
break;
|
|
45209
|
+
case "CONTENT_TYPE_DISPLAY_VALUE_COURSE":
|
|
45210
|
+
case 1:
|
|
45211
|
+
message.contentTypeDisplayValue = 1;
|
|
45212
|
+
break;
|
|
45213
|
+
case "CONTENT_TYPE_DISPLAY_VALUE_MEDITATION":
|
|
45214
|
+
case 2:
|
|
45215
|
+
message.contentTypeDisplayValue = 2;
|
|
45216
|
+
break;
|
|
45217
|
+
case "CONTENT_TYPE_DISPLAY_VALUE_MINDFUL_ACTIVITY":
|
|
45218
|
+
case 3:
|
|
45219
|
+
message.contentTypeDisplayValue = 3;
|
|
45220
|
+
break;
|
|
45221
|
+
case "CONTENT_TYPE_DISPLAY_VALUE_SLEEP_SOUND":
|
|
45222
|
+
case 4:
|
|
45223
|
+
message.contentTypeDisplayValue = 4;
|
|
45224
|
+
break;
|
|
45225
|
+
case "CONTENT_TYPE_DISPLAY_VALUE_SLEEPCAST":
|
|
45226
|
+
case 5:
|
|
45227
|
+
message.contentTypeDisplayValue = 5;
|
|
45228
|
+
break;
|
|
45229
|
+
case "CONTENT_TYPE_DISPLAY_VALUE_ADVICE":
|
|
45230
|
+
case 6:
|
|
45231
|
+
message.contentTypeDisplayValue = 6;
|
|
45232
|
+
break;
|
|
45233
|
+
case "CONTENT_TYPE_DISPLAY_VALUE_EXPERT_GUIDANCE":
|
|
45234
|
+
case 7:
|
|
45235
|
+
message.contentTypeDisplayValue = 7;
|
|
45236
|
+
break;
|
|
45237
|
+
case "CONTENT_TYPE_DISPLAY_VALUE_FOCUS_MUSIC":
|
|
45238
|
+
case 8:
|
|
45239
|
+
message.contentTypeDisplayValue = 8;
|
|
45240
|
+
break;
|
|
45241
|
+
case "CONTENT_TYPE_DISPLAY_VALUE_CARDIO":
|
|
45242
|
+
case 9:
|
|
45243
|
+
message.contentTypeDisplayValue = 9;
|
|
45244
|
+
break;
|
|
45245
|
+
case "CONTENT_TYPE_DISPLAY_VALUE_PLAYLIST":
|
|
45246
|
+
case 10:
|
|
45247
|
+
message.contentTypeDisplayValue = 10;
|
|
45248
|
+
break;
|
|
45249
|
+
case "CONTENT_TYPE_DISPLAY_VALUE_QUICK_WORKOUT":
|
|
45250
|
+
case 11:
|
|
45251
|
+
message.contentTypeDisplayValue = 11;
|
|
45252
|
+
break;
|
|
45253
|
+
case "CONTENT_TYPE_DISPLAY_VALUE_WAKEUP":
|
|
45254
|
+
case 12:
|
|
45255
|
+
message.contentTypeDisplayValue = 12;
|
|
45256
|
+
break;
|
|
45257
|
+
case "CONTENT_TYPE_DISPLAY_VALUE_WORKOUT":
|
|
45258
|
+
case 13:
|
|
45259
|
+
message.contentTypeDisplayValue = 13;
|
|
45260
|
+
break;
|
|
45261
|
+
case "CONTENT_TYPE_DISPLAY_VALUE_VIDEO":
|
|
45262
|
+
case 14:
|
|
45263
|
+
message.contentTypeDisplayValue = 14;
|
|
45264
|
+
break;
|
|
45265
|
+
case "CONTENT_TYPE_DISPLAY_VALUE_SOUNDSCAPE":
|
|
45266
|
+
case 15:
|
|
45267
|
+
message.contentTypeDisplayValue = 15;
|
|
45268
|
+
break;
|
|
45269
|
+
case "CONTENT_TYPE_DISPLAY_VALUE_WIND_DOWN":
|
|
45270
|
+
case 16:
|
|
45271
|
+
message.contentTypeDisplayValue = 16;
|
|
45272
|
+
break;
|
|
45273
|
+
case "CONTENT_TYPE_DISPLAY_VALUE_SLEEP_RADIO":
|
|
45274
|
+
case 17:
|
|
45275
|
+
message.contentTypeDisplayValue = 17;
|
|
45276
|
+
break;
|
|
45277
|
+
case "CONTENT_TYPE_DISPLAY_VALUE_NIGHTTIME_SOS":
|
|
45278
|
+
case 18:
|
|
45279
|
+
message.contentTypeDisplayValue = 18;
|
|
45280
|
+
break;
|
|
45281
|
+
case "CONTENT_TYPE_DISPLAY_VALUE_PODCAST":
|
|
45282
|
+
case 19:
|
|
45283
|
+
message.contentTypeDisplayValue = 19;
|
|
45284
|
+
break;
|
|
45285
|
+
case "CONTENT_TYPE_DISPLAY_VALUE_UNGUIDED":
|
|
45286
|
+
case 20:
|
|
45287
|
+
message.contentTypeDisplayValue = 20;
|
|
45288
|
+
break;
|
|
45289
|
+
case "CONTENT_TYPE_DISPLAY_VALUE_JOURNAL":
|
|
45290
|
+
case 21:
|
|
45291
|
+
message.contentTypeDisplayValue = 21;
|
|
45292
|
+
break;
|
|
45293
|
+
case "CONTENT_TYPE_DISPLAY_VALUE_STRETCH":
|
|
45294
|
+
case 22:
|
|
45295
|
+
message.contentTypeDisplayValue = 22;
|
|
45296
|
+
break;
|
|
45297
|
+
case "CONTENT_TYPE_DISPLAY_VALUE_THE_WIND_DOWN":
|
|
45298
|
+
case 23:
|
|
45299
|
+
message.contentTypeDisplayValue = 23;
|
|
45300
|
+
break;
|
|
45301
|
+
}
|
|
45302
|
+
switch (object.contentInfoScreenTheme) {
|
|
45303
|
+
case "COLOR_THEME_UNRECOGNIZED":
|
|
45304
|
+
case 0:
|
|
45305
|
+
message.contentInfoScreenTheme = 0;
|
|
45306
|
+
break;
|
|
45307
|
+
case "COLOR_THEME_DARK":
|
|
45308
|
+
case 1:
|
|
45309
|
+
message.contentInfoScreenTheme = 1;
|
|
45310
|
+
break;
|
|
45311
|
+
case "COLOR_THEME_LIGHT":
|
|
45312
|
+
case 2:
|
|
45313
|
+
message.contentInfoScreenTheme = 2;
|
|
45314
|
+
break;
|
|
45315
|
+
}
|
|
45316
|
+
if (object.categoryId != null)
|
|
45317
|
+
message.categoryId = object.categoryId >>> 0;
|
|
45318
|
+
if (object.tileMediaId != null)
|
|
45319
|
+
message.tileMediaId = object.tileMediaId >>> 0;
|
|
45320
|
+
if (object.headerImageMediaId != null)
|
|
45321
|
+
message.headerImageMediaId = object.headerImageMediaId >>> 0;
|
|
45322
|
+
if (object.ordinalNumber != null)
|
|
45323
|
+
message.ordinalNumber = object.ordinalNumber >>> 0;
|
|
45324
|
+
if (object.updatedAt != null)
|
|
45325
|
+
if ($util.Long)
|
|
45326
|
+
(message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
|
|
45327
|
+
else if (typeof object.updatedAt === "string")
|
|
45328
|
+
message.updatedAt = parseInt(object.updatedAt, 10);
|
|
45329
|
+
else if (typeof object.updatedAt === "number")
|
|
45330
|
+
message.updatedAt = object.updatedAt;
|
|
45331
|
+
else if (typeof object.updatedAt === "object")
|
|
45332
|
+
message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
|
|
45333
|
+
return message;
|
|
45334
|
+
};
|
|
45335
|
+
|
|
45336
|
+
/**
|
|
45337
|
+
* Creates a plain object from a ContentEntityUpdated message. Also converts values to other types if specified.
|
|
45338
|
+
* @function toObject
|
|
45339
|
+
* @memberof ContentEntityUpdated
|
|
45340
|
+
* @static
|
|
45341
|
+
* @param {ContentEntityUpdated} message ContentEntityUpdated
|
|
45342
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
45343
|
+
* @returns {Object.<string,*>} Plain object
|
|
43668
45344
|
*/
|
|
45345
|
+
ContentEntityUpdated.toObject = function toObject(message, options) {
|
|
45346
|
+
if (!options)
|
|
45347
|
+
options = {};
|
|
45348
|
+
var object = {};
|
|
45349
|
+
if (options.defaults) {
|
|
45350
|
+
object.id = 0;
|
|
45351
|
+
object.contentType = options.enums === String ? "CONTENT_TYPE_UNRECOGNIZED" : 0;
|
|
45352
|
+
object.colorTheme = options.enums === String ? "COLOR_THEME_UNRECOGNIZED" : 0;
|
|
45353
|
+
object.entityId = 0;
|
|
45354
|
+
object.slug = "";
|
|
45355
|
+
object.isInternationalOnly = false;
|
|
45356
|
+
object.contentTypeDisplayValue = options.enums === String ? "CONTENT_TYPE_DISPLAY_VALUE_UNRECOGNIZED" : 0;
|
|
45357
|
+
object.contentInfoScreenTheme = options.enums === String ? "COLOR_THEME_UNRECOGNIZED" : 0;
|
|
45358
|
+
object.categoryId = 0;
|
|
45359
|
+
object.tileMediaId = 0;
|
|
45360
|
+
object.headerImageMediaId = 0;
|
|
45361
|
+
object.ordinalNumber = 0;
|
|
45362
|
+
if ($util.Long) {
|
|
45363
|
+
var long = new $util.Long(0, 0, true);
|
|
45364
|
+
object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
45365
|
+
} else
|
|
45366
|
+
object.updatedAt = options.longs === String ? "0" : 0;
|
|
45367
|
+
}
|
|
45368
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
45369
|
+
object.id = message.id;
|
|
45370
|
+
if (message.contentType != null && message.hasOwnProperty("contentType"))
|
|
45371
|
+
object.contentType = options.enums === String ? $root.ContentType[message.contentType] : message.contentType;
|
|
45372
|
+
if (message.colorTheme != null && message.hasOwnProperty("colorTheme"))
|
|
45373
|
+
object.colorTheme = options.enums === String ? $root.ColorTheme[message.colorTheme] : message.colorTheme;
|
|
45374
|
+
if (message.entityId != null && message.hasOwnProperty("entityId"))
|
|
45375
|
+
object.entityId = message.entityId;
|
|
45376
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
45377
|
+
object.slug = message.slug;
|
|
45378
|
+
if (message.isInternationalOnly != null && message.hasOwnProperty("isInternationalOnly"))
|
|
45379
|
+
object.isInternationalOnly = message.isInternationalOnly;
|
|
45380
|
+
if (message.contentTypeDisplayValue != null && message.hasOwnProperty("contentTypeDisplayValue"))
|
|
45381
|
+
object.contentTypeDisplayValue = options.enums === String ? $root.ContentTypeDisplayValue[message.contentTypeDisplayValue] : message.contentTypeDisplayValue;
|
|
45382
|
+
if (message.contentInfoScreenTheme != null && message.hasOwnProperty("contentInfoScreenTheme"))
|
|
45383
|
+
object.contentInfoScreenTheme = options.enums === String ? $root.ColorTheme[message.contentInfoScreenTheme] : message.contentInfoScreenTheme;
|
|
45384
|
+
if (message.categoryId != null && message.hasOwnProperty("categoryId"))
|
|
45385
|
+
object.categoryId = message.categoryId;
|
|
45386
|
+
if (message.tileMediaId != null && message.hasOwnProperty("tileMediaId"))
|
|
45387
|
+
object.tileMediaId = message.tileMediaId;
|
|
45388
|
+
if (message.headerImageMediaId != null && message.hasOwnProperty("headerImageMediaId"))
|
|
45389
|
+
object.headerImageMediaId = message.headerImageMediaId;
|
|
45390
|
+
if (message.ordinalNumber != null && message.hasOwnProperty("ordinalNumber"))
|
|
45391
|
+
object.ordinalNumber = message.ordinalNumber;
|
|
45392
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
45393
|
+
if (typeof message.updatedAt === "number")
|
|
45394
|
+
object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
|
|
45395
|
+
else
|
|
45396
|
+
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;
|
|
45397
|
+
return object;
|
|
45398
|
+
};
|
|
43669
45399
|
|
|
43670
45400
|
/**
|
|
43671
|
-
*
|
|
43672
|
-
* @
|
|
43673
|
-
* @
|
|
43674
|
-
* @
|
|
45401
|
+
* Converts this ContentEntityUpdated to JSON.
|
|
45402
|
+
* @function toJSON
|
|
45403
|
+
* @memberof ContentEntityUpdated
|
|
45404
|
+
* @instance
|
|
45405
|
+
* @returns {Object.<string,*>} JSON object
|
|
45406
|
+
*/
|
|
45407
|
+
ContentEntityUpdated.prototype.toJSON = function toJSON() {
|
|
45408
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
45409
|
+
};
|
|
45410
|
+
|
|
45411
|
+
return ContentEntityUpdated;
|
|
45412
|
+
})();
|
|
45413
|
+
|
|
45414
|
+
$root.ContentEntityDeleted = (function() {
|
|
45415
|
+
|
|
45416
|
+
/**
|
|
45417
|
+
* Properties of a ContentEntityDeleted.
|
|
45418
|
+
* @exports IContentEntityDeleted
|
|
45419
|
+
* @interface IContentEntityDeleted
|
|
45420
|
+
* @property {number|null} [id] ContentEntityDeleted id
|
|
45421
|
+
* @property {ContentType|null} [contentType] ContentEntityDeleted contentType
|
|
45422
|
+
* @property {ColorTheme|null} [colorTheme] ContentEntityDeleted colorTheme
|
|
45423
|
+
* @property {number|null} [entityId] ContentEntityDeleted entityId
|
|
45424
|
+
* @property {string|null} [slug] ContentEntityDeleted slug
|
|
45425
|
+
* @property {boolean|null} [isInternationalOnly] ContentEntityDeleted isInternationalOnly
|
|
45426
|
+
* @property {ContentTypeDisplayValue|null} [contentTypeDisplayValue] ContentEntityDeleted contentTypeDisplayValue
|
|
45427
|
+
* @property {ColorTheme|null} [contentInfoScreenTheme] ContentEntityDeleted contentInfoScreenTheme
|
|
45428
|
+
* @property {number|null} [categoryId] ContentEntityDeleted categoryId
|
|
45429
|
+
* @property {number|null} [tileMediaId] ContentEntityDeleted tileMediaId
|
|
45430
|
+
* @property {number|null} [headerImageMediaId] ContentEntityDeleted headerImageMediaId
|
|
45431
|
+
* @property {number|null} [ordinalNumber] ContentEntityDeleted ordinalNumber
|
|
45432
|
+
* @property {number|Long|null} [deletedAt] ContentEntityDeleted deletedAt
|
|
45433
|
+
*/
|
|
45434
|
+
|
|
45435
|
+
/**
|
|
45436
|
+
* Constructs a new ContentEntityDeleted.
|
|
45437
|
+
* @exports ContentEntityDeleted
|
|
45438
|
+
* @classdesc Represents a ContentEntityDeleted.
|
|
45439
|
+
* @implements IContentEntityDeleted
|
|
43675
45440
|
* @constructor
|
|
43676
|
-
* @param {
|
|
45441
|
+
* @param {IContentEntityDeleted=} [properties] Properties to set
|
|
43677
45442
|
*/
|
|
43678
|
-
function
|
|
45443
|
+
function ContentEntityDeleted(properties) {
|
|
43679
45444
|
if (properties)
|
|
43680
45445
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
43681
45446
|
if (properties[keys[i]] != null)
|
|
@@ -43683,114 +45448,231 @@ $root.ContentPlayedMetadata = (function() {
|
|
|
43683
45448
|
}
|
|
43684
45449
|
|
|
43685
45450
|
/**
|
|
43686
|
-
*
|
|
43687
|
-
* @member {number}
|
|
43688
|
-
* @memberof
|
|
45451
|
+
* ContentEntityDeleted id.
|
|
45452
|
+
* @member {number} id
|
|
45453
|
+
* @memberof ContentEntityDeleted
|
|
43689
45454
|
* @instance
|
|
43690
45455
|
*/
|
|
43691
|
-
|
|
45456
|
+
ContentEntityDeleted.prototype.id = 0;
|
|
43692
45457
|
|
|
43693
45458
|
/**
|
|
43694
|
-
*
|
|
43695
|
-
* @member {
|
|
43696
|
-
* @memberof
|
|
45459
|
+
* ContentEntityDeleted contentType.
|
|
45460
|
+
* @member {ContentType} contentType
|
|
45461
|
+
* @memberof ContentEntityDeleted
|
|
43697
45462
|
* @instance
|
|
43698
45463
|
*/
|
|
43699
|
-
|
|
45464
|
+
ContentEntityDeleted.prototype.contentType = 0;
|
|
43700
45465
|
|
|
43701
45466
|
/**
|
|
43702
|
-
*
|
|
43703
|
-
* @member {
|
|
43704
|
-
* @memberof
|
|
45467
|
+
* ContentEntityDeleted colorTheme.
|
|
45468
|
+
* @member {ColorTheme} colorTheme
|
|
45469
|
+
* @memberof ContentEntityDeleted
|
|
43705
45470
|
* @instance
|
|
43706
45471
|
*/
|
|
43707
|
-
|
|
45472
|
+
ContentEntityDeleted.prototype.colorTheme = 0;
|
|
43708
45473
|
|
|
43709
45474
|
/**
|
|
43710
|
-
*
|
|
43711
|
-
* @member {number}
|
|
43712
|
-
* @memberof
|
|
45475
|
+
* ContentEntityDeleted entityId.
|
|
45476
|
+
* @member {number} entityId
|
|
45477
|
+
* @memberof ContentEntityDeleted
|
|
43713
45478
|
* @instance
|
|
43714
45479
|
*/
|
|
43715
|
-
|
|
45480
|
+
ContentEntityDeleted.prototype.entityId = 0;
|
|
43716
45481
|
|
|
43717
45482
|
/**
|
|
43718
|
-
*
|
|
45483
|
+
* ContentEntityDeleted slug.
|
|
45484
|
+
* @member {string} slug
|
|
45485
|
+
* @memberof ContentEntityDeleted
|
|
45486
|
+
* @instance
|
|
45487
|
+
*/
|
|
45488
|
+
ContentEntityDeleted.prototype.slug = "";
|
|
45489
|
+
|
|
45490
|
+
/**
|
|
45491
|
+
* ContentEntityDeleted isInternationalOnly.
|
|
45492
|
+
* @member {boolean} isInternationalOnly
|
|
45493
|
+
* @memberof ContentEntityDeleted
|
|
45494
|
+
* @instance
|
|
45495
|
+
*/
|
|
45496
|
+
ContentEntityDeleted.prototype.isInternationalOnly = false;
|
|
45497
|
+
|
|
45498
|
+
/**
|
|
45499
|
+
* ContentEntityDeleted contentTypeDisplayValue.
|
|
45500
|
+
* @member {ContentTypeDisplayValue} contentTypeDisplayValue
|
|
45501
|
+
* @memberof ContentEntityDeleted
|
|
45502
|
+
* @instance
|
|
45503
|
+
*/
|
|
45504
|
+
ContentEntityDeleted.prototype.contentTypeDisplayValue = 0;
|
|
45505
|
+
|
|
45506
|
+
/**
|
|
45507
|
+
* ContentEntityDeleted contentInfoScreenTheme.
|
|
45508
|
+
* @member {ColorTheme} contentInfoScreenTheme
|
|
45509
|
+
* @memberof ContentEntityDeleted
|
|
45510
|
+
* @instance
|
|
45511
|
+
*/
|
|
45512
|
+
ContentEntityDeleted.prototype.contentInfoScreenTheme = 0;
|
|
45513
|
+
|
|
45514
|
+
/**
|
|
45515
|
+
* ContentEntityDeleted categoryId.
|
|
45516
|
+
* @member {number} categoryId
|
|
45517
|
+
* @memberof ContentEntityDeleted
|
|
45518
|
+
* @instance
|
|
45519
|
+
*/
|
|
45520
|
+
ContentEntityDeleted.prototype.categoryId = 0;
|
|
45521
|
+
|
|
45522
|
+
/**
|
|
45523
|
+
* ContentEntityDeleted tileMediaId.
|
|
45524
|
+
* @member {number} tileMediaId
|
|
45525
|
+
* @memberof ContentEntityDeleted
|
|
45526
|
+
* @instance
|
|
45527
|
+
*/
|
|
45528
|
+
ContentEntityDeleted.prototype.tileMediaId = 0;
|
|
45529
|
+
|
|
45530
|
+
/**
|
|
45531
|
+
* ContentEntityDeleted headerImageMediaId.
|
|
45532
|
+
* @member {number} headerImageMediaId
|
|
45533
|
+
* @memberof ContentEntityDeleted
|
|
45534
|
+
* @instance
|
|
45535
|
+
*/
|
|
45536
|
+
ContentEntityDeleted.prototype.headerImageMediaId = 0;
|
|
45537
|
+
|
|
45538
|
+
/**
|
|
45539
|
+
* ContentEntityDeleted ordinalNumber.
|
|
45540
|
+
* @member {number} ordinalNumber
|
|
45541
|
+
* @memberof ContentEntityDeleted
|
|
45542
|
+
* @instance
|
|
45543
|
+
*/
|
|
45544
|
+
ContentEntityDeleted.prototype.ordinalNumber = 0;
|
|
45545
|
+
|
|
45546
|
+
/**
|
|
45547
|
+
* ContentEntityDeleted deletedAt.
|
|
45548
|
+
* @member {number|Long} deletedAt
|
|
45549
|
+
* @memberof ContentEntityDeleted
|
|
45550
|
+
* @instance
|
|
45551
|
+
*/
|
|
45552
|
+
ContentEntityDeleted.prototype.deletedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
45553
|
+
|
|
45554
|
+
/**
|
|
45555
|
+
* Creates a new ContentEntityDeleted instance using the specified properties.
|
|
43719
45556
|
* @function create
|
|
43720
|
-
* @memberof
|
|
45557
|
+
* @memberof ContentEntityDeleted
|
|
43721
45558
|
* @static
|
|
43722
|
-
* @param {
|
|
43723
|
-
* @returns {
|
|
45559
|
+
* @param {IContentEntityDeleted=} [properties] Properties to set
|
|
45560
|
+
* @returns {ContentEntityDeleted} ContentEntityDeleted instance
|
|
43724
45561
|
*/
|
|
43725
|
-
|
|
43726
|
-
return new
|
|
45562
|
+
ContentEntityDeleted.create = function create(properties) {
|
|
45563
|
+
return new ContentEntityDeleted(properties);
|
|
43727
45564
|
};
|
|
43728
45565
|
|
|
43729
45566
|
/**
|
|
43730
|
-
* Encodes the specified
|
|
45567
|
+
* Encodes the specified ContentEntityDeleted message. Does not implicitly {@link ContentEntityDeleted.verify|verify} messages.
|
|
43731
45568
|
* @function encode
|
|
43732
|
-
* @memberof
|
|
45569
|
+
* @memberof ContentEntityDeleted
|
|
43733
45570
|
* @static
|
|
43734
|
-
* @param {
|
|
45571
|
+
* @param {IContentEntityDeleted} message ContentEntityDeleted message or plain object to encode
|
|
43735
45572
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
43736
45573
|
* @returns {$protobuf.Writer} Writer
|
|
43737
45574
|
*/
|
|
43738
|
-
|
|
45575
|
+
ContentEntityDeleted.encode = function encode(message, writer) {
|
|
43739
45576
|
if (!writer)
|
|
43740
45577
|
writer = $Writer.create();
|
|
43741
|
-
if (message.
|
|
43742
|
-
writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.
|
|
43743
|
-
if (message.
|
|
43744
|
-
writer.uint32(/* id 2, wireType 0 =*/16).
|
|
43745
|
-
if (message.
|
|
43746
|
-
writer.uint32(/* id 3, wireType 0 =*/24).
|
|
43747
|
-
if (message.
|
|
43748
|
-
writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.
|
|
45578
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
45579
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.id);
|
|
45580
|
+
if (message.contentType != null && message.hasOwnProperty("contentType"))
|
|
45581
|
+
writer.uint32(/* id 2, wireType 0 =*/16).int32(message.contentType);
|
|
45582
|
+
if (message.colorTheme != null && message.hasOwnProperty("colorTheme"))
|
|
45583
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.colorTheme);
|
|
45584
|
+
if (message.entityId != null && message.hasOwnProperty("entityId"))
|
|
45585
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.entityId);
|
|
45586
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
45587
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.slug);
|
|
45588
|
+
if (message.isInternationalOnly != null && message.hasOwnProperty("isInternationalOnly"))
|
|
45589
|
+
writer.uint32(/* id 6, wireType 0 =*/48).bool(message.isInternationalOnly);
|
|
45590
|
+
if (message.contentTypeDisplayValue != null && message.hasOwnProperty("contentTypeDisplayValue"))
|
|
45591
|
+
writer.uint32(/* id 7, wireType 0 =*/56).int32(message.contentTypeDisplayValue);
|
|
45592
|
+
if (message.contentInfoScreenTheme != null && message.hasOwnProperty("contentInfoScreenTheme"))
|
|
45593
|
+
writer.uint32(/* id 8, wireType 0 =*/64).int32(message.contentInfoScreenTheme);
|
|
45594
|
+
if (message.categoryId != null && message.hasOwnProperty("categoryId"))
|
|
45595
|
+
writer.uint32(/* id 9, wireType 0 =*/72).uint32(message.categoryId);
|
|
45596
|
+
if (message.tileMediaId != null && message.hasOwnProperty("tileMediaId"))
|
|
45597
|
+
writer.uint32(/* id 10, wireType 0 =*/80).uint32(message.tileMediaId);
|
|
45598
|
+
if (message.headerImageMediaId != null && message.hasOwnProperty("headerImageMediaId"))
|
|
45599
|
+
writer.uint32(/* id 11, wireType 0 =*/88).uint32(message.headerImageMediaId);
|
|
45600
|
+
if (message.ordinalNumber != null && message.hasOwnProperty("ordinalNumber"))
|
|
45601
|
+
writer.uint32(/* id 12, wireType 0 =*/96).uint32(message.ordinalNumber);
|
|
45602
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
45603
|
+
writer.uint32(/* id 13, wireType 0 =*/104).uint64(message.deletedAt);
|
|
43749
45604
|
return writer;
|
|
43750
45605
|
};
|
|
43751
45606
|
|
|
43752
45607
|
/**
|
|
43753
|
-
* Encodes the specified
|
|
45608
|
+
* Encodes the specified ContentEntityDeleted message, length delimited. Does not implicitly {@link ContentEntityDeleted.verify|verify} messages.
|
|
43754
45609
|
* @function encodeDelimited
|
|
43755
|
-
* @memberof
|
|
45610
|
+
* @memberof ContentEntityDeleted
|
|
43756
45611
|
* @static
|
|
43757
|
-
* @param {
|
|
45612
|
+
* @param {IContentEntityDeleted} message ContentEntityDeleted message or plain object to encode
|
|
43758
45613
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
43759
45614
|
* @returns {$protobuf.Writer} Writer
|
|
43760
45615
|
*/
|
|
43761
|
-
|
|
45616
|
+
ContentEntityDeleted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
43762
45617
|
return this.encode(message, writer).ldelim();
|
|
43763
45618
|
};
|
|
43764
45619
|
|
|
43765
45620
|
/**
|
|
43766
|
-
* Decodes a
|
|
45621
|
+
* Decodes a ContentEntityDeleted message from the specified reader or buffer.
|
|
43767
45622
|
* @function decode
|
|
43768
|
-
* @memberof
|
|
45623
|
+
* @memberof ContentEntityDeleted
|
|
43769
45624
|
* @static
|
|
43770
45625
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
43771
45626
|
* @param {number} [length] Message length if known beforehand
|
|
43772
|
-
* @returns {
|
|
45627
|
+
* @returns {ContentEntityDeleted} ContentEntityDeleted
|
|
43773
45628
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
43774
45629
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
43775
45630
|
*/
|
|
43776
|
-
|
|
45631
|
+
ContentEntityDeleted.decode = function decode(reader, length) {
|
|
43777
45632
|
if (!(reader instanceof $Reader))
|
|
43778
45633
|
reader = $Reader.create(reader);
|
|
43779
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.
|
|
45634
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentEntityDeleted();
|
|
43780
45635
|
while (reader.pos < end) {
|
|
43781
45636
|
var tag = reader.uint32();
|
|
43782
45637
|
switch (tag >>> 3) {
|
|
43783
45638
|
case 1:
|
|
43784
|
-
message.
|
|
45639
|
+
message.id = reader.uint32();
|
|
43785
45640
|
break;
|
|
43786
45641
|
case 2:
|
|
43787
|
-
message.
|
|
45642
|
+
message.contentType = reader.int32();
|
|
43788
45643
|
break;
|
|
43789
45644
|
case 3:
|
|
43790
|
-
message.
|
|
45645
|
+
message.colorTheme = reader.int32();
|
|
43791
45646
|
break;
|
|
43792
45647
|
case 4:
|
|
43793
|
-
message.
|
|
45648
|
+
message.entityId = reader.uint32();
|
|
45649
|
+
break;
|
|
45650
|
+
case 5:
|
|
45651
|
+
message.slug = reader.string();
|
|
45652
|
+
break;
|
|
45653
|
+
case 6:
|
|
45654
|
+
message.isInternationalOnly = reader.bool();
|
|
45655
|
+
break;
|
|
45656
|
+
case 7:
|
|
45657
|
+
message.contentTypeDisplayValue = reader.int32();
|
|
45658
|
+
break;
|
|
45659
|
+
case 8:
|
|
45660
|
+
message.contentInfoScreenTheme = reader.int32();
|
|
45661
|
+
break;
|
|
45662
|
+
case 9:
|
|
45663
|
+
message.categoryId = reader.uint32();
|
|
45664
|
+
break;
|
|
45665
|
+
case 10:
|
|
45666
|
+
message.tileMediaId = reader.uint32();
|
|
45667
|
+
break;
|
|
45668
|
+
case 11:
|
|
45669
|
+
message.headerImageMediaId = reader.uint32();
|
|
45670
|
+
break;
|
|
45671
|
+
case 12:
|
|
45672
|
+
message.ordinalNumber = reader.uint32();
|
|
45673
|
+
break;
|
|
45674
|
+
case 13:
|
|
45675
|
+
message.deletedAt = reader.uint64();
|
|
43794
45676
|
break;
|
|
43795
45677
|
default:
|
|
43796
45678
|
reader.skipType(tag & 7);
|
|
@@ -43801,112 +45683,445 @@ $root.ContentPlayedMetadata = (function() {
|
|
|
43801
45683
|
};
|
|
43802
45684
|
|
|
43803
45685
|
/**
|
|
43804
|
-
* Decodes a
|
|
45686
|
+
* Decodes a ContentEntityDeleted message from the specified reader or buffer, length delimited.
|
|
43805
45687
|
* @function decodeDelimited
|
|
43806
|
-
* @memberof
|
|
45688
|
+
* @memberof ContentEntityDeleted
|
|
43807
45689
|
* @static
|
|
43808
45690
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
43809
|
-
* @returns {
|
|
45691
|
+
* @returns {ContentEntityDeleted} ContentEntityDeleted
|
|
43810
45692
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
43811
45693
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
43812
45694
|
*/
|
|
43813
|
-
|
|
45695
|
+
ContentEntityDeleted.decodeDelimited = function decodeDelimited(reader) {
|
|
43814
45696
|
if (!(reader instanceof $Reader))
|
|
43815
45697
|
reader = new $Reader(reader);
|
|
43816
45698
|
return this.decode(reader, reader.uint32());
|
|
43817
45699
|
};
|
|
43818
45700
|
|
|
43819
45701
|
/**
|
|
43820
|
-
* Verifies a
|
|
45702
|
+
* Verifies a ContentEntityDeleted message.
|
|
43821
45703
|
* @function verify
|
|
43822
|
-
* @memberof
|
|
45704
|
+
* @memberof ContentEntityDeleted
|
|
43823
45705
|
* @static
|
|
43824
45706
|
* @param {Object.<string,*>} message Plain object to verify
|
|
43825
45707
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
43826
45708
|
*/
|
|
43827
|
-
|
|
45709
|
+
ContentEntityDeleted.verify = function verify(message) {
|
|
43828
45710
|
if (typeof message !== "object" || message === null)
|
|
43829
45711
|
return "object expected";
|
|
43830
|
-
if (message.
|
|
43831
|
-
if (!$util.isInteger(message.
|
|
43832
|
-
return "
|
|
43833
|
-
if (message.
|
|
43834
|
-
|
|
43835
|
-
|
|
43836
|
-
|
|
43837
|
-
|
|
43838
|
-
|
|
43839
|
-
|
|
43840
|
-
|
|
43841
|
-
|
|
45712
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
45713
|
+
if (!$util.isInteger(message.id))
|
|
45714
|
+
return "id: integer expected";
|
|
45715
|
+
if (message.contentType != null && message.hasOwnProperty("contentType"))
|
|
45716
|
+
switch (message.contentType) {
|
|
45717
|
+
default:
|
|
45718
|
+
return "contentType: enum value expected";
|
|
45719
|
+
case 0:
|
|
45720
|
+
case 1:
|
|
45721
|
+
case 2:
|
|
45722
|
+
case 3:
|
|
45723
|
+
case 4:
|
|
45724
|
+
case 5:
|
|
45725
|
+
case 6:
|
|
45726
|
+
case 7:
|
|
45727
|
+
case 8:
|
|
45728
|
+
case 9:
|
|
45729
|
+
case 10:
|
|
45730
|
+
case 11:
|
|
45731
|
+
case 12:
|
|
45732
|
+
case 13:
|
|
45733
|
+
case 14:
|
|
45734
|
+
case 15:
|
|
45735
|
+
case 16:
|
|
45736
|
+
break;
|
|
45737
|
+
}
|
|
45738
|
+
if (message.colorTheme != null && message.hasOwnProperty("colorTheme"))
|
|
45739
|
+
switch (message.colorTheme) {
|
|
45740
|
+
default:
|
|
45741
|
+
return "colorTheme: enum value expected";
|
|
45742
|
+
case 0:
|
|
45743
|
+
case 1:
|
|
45744
|
+
case 2:
|
|
45745
|
+
break;
|
|
45746
|
+
}
|
|
45747
|
+
if (message.entityId != null && message.hasOwnProperty("entityId"))
|
|
45748
|
+
if (!$util.isInteger(message.entityId))
|
|
45749
|
+
return "entityId: integer expected";
|
|
45750
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
45751
|
+
if (!$util.isString(message.slug))
|
|
45752
|
+
return "slug: string expected";
|
|
45753
|
+
if (message.isInternationalOnly != null && message.hasOwnProperty("isInternationalOnly"))
|
|
45754
|
+
if (typeof message.isInternationalOnly !== "boolean")
|
|
45755
|
+
return "isInternationalOnly: boolean expected";
|
|
45756
|
+
if (message.contentTypeDisplayValue != null && message.hasOwnProperty("contentTypeDisplayValue"))
|
|
45757
|
+
switch (message.contentTypeDisplayValue) {
|
|
45758
|
+
default:
|
|
45759
|
+
return "contentTypeDisplayValue: enum value expected";
|
|
45760
|
+
case 0:
|
|
45761
|
+
case 1:
|
|
45762
|
+
case 2:
|
|
45763
|
+
case 3:
|
|
45764
|
+
case 4:
|
|
45765
|
+
case 5:
|
|
45766
|
+
case 6:
|
|
45767
|
+
case 7:
|
|
45768
|
+
case 8:
|
|
45769
|
+
case 9:
|
|
45770
|
+
case 10:
|
|
45771
|
+
case 11:
|
|
45772
|
+
case 12:
|
|
45773
|
+
case 13:
|
|
45774
|
+
case 14:
|
|
45775
|
+
case 15:
|
|
45776
|
+
case 16:
|
|
45777
|
+
case 17:
|
|
45778
|
+
case 18:
|
|
45779
|
+
case 19:
|
|
45780
|
+
case 20:
|
|
45781
|
+
case 21:
|
|
45782
|
+
case 22:
|
|
45783
|
+
case 23:
|
|
45784
|
+
break;
|
|
45785
|
+
}
|
|
45786
|
+
if (message.contentInfoScreenTheme != null && message.hasOwnProperty("contentInfoScreenTheme"))
|
|
45787
|
+
switch (message.contentInfoScreenTheme) {
|
|
45788
|
+
default:
|
|
45789
|
+
return "contentInfoScreenTheme: enum value expected";
|
|
45790
|
+
case 0:
|
|
45791
|
+
case 1:
|
|
45792
|
+
case 2:
|
|
45793
|
+
break;
|
|
45794
|
+
}
|
|
45795
|
+
if (message.categoryId != null && message.hasOwnProperty("categoryId"))
|
|
45796
|
+
if (!$util.isInteger(message.categoryId))
|
|
45797
|
+
return "categoryId: integer expected";
|
|
45798
|
+
if (message.tileMediaId != null && message.hasOwnProperty("tileMediaId"))
|
|
45799
|
+
if (!$util.isInteger(message.tileMediaId))
|
|
45800
|
+
return "tileMediaId: integer expected";
|
|
45801
|
+
if (message.headerImageMediaId != null && message.hasOwnProperty("headerImageMediaId"))
|
|
45802
|
+
if (!$util.isInteger(message.headerImageMediaId))
|
|
45803
|
+
return "headerImageMediaId: integer expected";
|
|
45804
|
+
if (message.ordinalNumber != null && message.hasOwnProperty("ordinalNumber"))
|
|
45805
|
+
if (!$util.isInteger(message.ordinalNumber))
|
|
45806
|
+
return "ordinalNumber: integer expected";
|
|
45807
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
45808
|
+
if (!$util.isInteger(message.deletedAt) && !(message.deletedAt && $util.isInteger(message.deletedAt.low) && $util.isInteger(message.deletedAt.high)))
|
|
45809
|
+
return "deletedAt: integer|Long expected";
|
|
43842
45810
|
return null;
|
|
43843
45811
|
};
|
|
43844
45812
|
|
|
43845
45813
|
/**
|
|
43846
|
-
* Creates a
|
|
45814
|
+
* Creates a ContentEntityDeleted message from a plain object. Also converts values to their respective internal types.
|
|
43847
45815
|
* @function fromObject
|
|
43848
|
-
* @memberof
|
|
45816
|
+
* @memberof ContentEntityDeleted
|
|
43849
45817
|
* @static
|
|
43850
45818
|
* @param {Object.<string,*>} object Plain object
|
|
43851
|
-
* @returns {
|
|
45819
|
+
* @returns {ContentEntityDeleted} ContentEntityDeleted
|
|
43852
45820
|
*/
|
|
43853
|
-
|
|
43854
|
-
if (object instanceof $root.
|
|
45821
|
+
ContentEntityDeleted.fromObject = function fromObject(object) {
|
|
45822
|
+
if (object instanceof $root.ContentEntityDeleted)
|
|
43855
45823
|
return object;
|
|
43856
|
-
var message = new $root.
|
|
43857
|
-
if (object.
|
|
43858
|
-
message.
|
|
43859
|
-
|
|
43860
|
-
|
|
43861
|
-
|
|
43862
|
-
message.
|
|
43863
|
-
|
|
43864
|
-
|
|
45824
|
+
var message = new $root.ContentEntityDeleted();
|
|
45825
|
+
if (object.id != null)
|
|
45826
|
+
message.id = object.id >>> 0;
|
|
45827
|
+
switch (object.contentType) {
|
|
45828
|
+
case "CONTENT_TYPE_UNRECOGNIZED":
|
|
45829
|
+
case 0:
|
|
45830
|
+
message.contentType = 0;
|
|
45831
|
+
break;
|
|
45832
|
+
case "CONTENT_TYPE_COURSE":
|
|
45833
|
+
case 1:
|
|
45834
|
+
message.contentType = 1;
|
|
45835
|
+
break;
|
|
45836
|
+
case "CONTENT_TYPE_ONEOFF":
|
|
45837
|
+
case 2:
|
|
45838
|
+
message.contentType = 2;
|
|
45839
|
+
break;
|
|
45840
|
+
case "CONTENT_TYPE_ANIMATION":
|
|
45841
|
+
case 3:
|
|
45842
|
+
message.contentType = 3;
|
|
45843
|
+
break;
|
|
45844
|
+
case "CONTENT_TYPE_SLEEPCAST":
|
|
45845
|
+
case 4:
|
|
45846
|
+
message.contentType = 4;
|
|
45847
|
+
break;
|
|
45848
|
+
case "CONTENT_TYPE_OBSTACLE":
|
|
45849
|
+
case 5:
|
|
45850
|
+
message.contentType = 5;
|
|
45851
|
+
break;
|
|
45852
|
+
case "CONTENT_TYPE_PLAYLIST":
|
|
45853
|
+
case 6:
|
|
45854
|
+
message.contentType = 6;
|
|
45855
|
+
break;
|
|
45856
|
+
case "CONTENT_TYPE_LANDSCAPE_VIDEO":
|
|
45857
|
+
case 7:
|
|
45858
|
+
message.contentType = 7;
|
|
45859
|
+
break;
|
|
45860
|
+
case "CONTENT_TYPE_INTEGRATED_AUDIO_PLAYER":
|
|
45861
|
+
case 8:
|
|
45862
|
+
message.contentType = 8;
|
|
45863
|
+
break;
|
|
45864
|
+
case "CONTENT_TYPE_WAKEUP":
|
|
45865
|
+
case 9:
|
|
45866
|
+
message.contentType = 9;
|
|
45867
|
+
break;
|
|
45868
|
+
case "CONTENT_TYPE_PODCAST":
|
|
45869
|
+
case 10:
|
|
45870
|
+
message.contentType = 10;
|
|
45871
|
+
break;
|
|
45872
|
+
case "CONTENT_TYPE_EDHS":
|
|
45873
|
+
case 11:
|
|
45874
|
+
message.contentType = 11;
|
|
45875
|
+
break;
|
|
45876
|
+
case "CONTENT_TYPE_GROUP_MEDITATION":
|
|
45877
|
+
case 12:
|
|
45878
|
+
message.contentType = 12;
|
|
45879
|
+
break;
|
|
45880
|
+
case "CONTENT_TYPE_INTERVIEW":
|
|
45881
|
+
case 13:
|
|
45882
|
+
message.contentType = 13;
|
|
45883
|
+
break;
|
|
45884
|
+
case "CONTENT_TYPE_TECHNIQUE":
|
|
45885
|
+
case 14:
|
|
45886
|
+
message.contentType = 14;
|
|
45887
|
+
break;
|
|
45888
|
+
case "CONTENT_TYPE_COURSE_ACTIVITY":
|
|
45889
|
+
case 15:
|
|
45890
|
+
message.contentType = 15;
|
|
45891
|
+
break;
|
|
45892
|
+
case "CONTENT_TYPE_INTEGRATED_AUDIO":
|
|
45893
|
+
case 16:
|
|
45894
|
+
message.contentType = 16;
|
|
45895
|
+
break;
|
|
45896
|
+
}
|
|
45897
|
+
switch (object.colorTheme) {
|
|
45898
|
+
case "COLOR_THEME_UNRECOGNIZED":
|
|
45899
|
+
case 0:
|
|
45900
|
+
message.colorTheme = 0;
|
|
45901
|
+
break;
|
|
45902
|
+
case "COLOR_THEME_DARK":
|
|
45903
|
+
case 1:
|
|
45904
|
+
message.colorTheme = 1;
|
|
45905
|
+
break;
|
|
45906
|
+
case "COLOR_THEME_LIGHT":
|
|
45907
|
+
case 2:
|
|
45908
|
+
message.colorTheme = 2;
|
|
45909
|
+
break;
|
|
45910
|
+
}
|
|
45911
|
+
if (object.entityId != null)
|
|
45912
|
+
message.entityId = object.entityId >>> 0;
|
|
45913
|
+
if (object.slug != null)
|
|
45914
|
+
message.slug = String(object.slug);
|
|
45915
|
+
if (object.isInternationalOnly != null)
|
|
45916
|
+
message.isInternationalOnly = Boolean(object.isInternationalOnly);
|
|
45917
|
+
switch (object.contentTypeDisplayValue) {
|
|
45918
|
+
case "CONTENT_TYPE_DISPLAY_VALUE_UNRECOGNIZED":
|
|
45919
|
+
case 0:
|
|
45920
|
+
message.contentTypeDisplayValue = 0;
|
|
45921
|
+
break;
|
|
45922
|
+
case "CONTENT_TYPE_DISPLAY_VALUE_COURSE":
|
|
45923
|
+
case 1:
|
|
45924
|
+
message.contentTypeDisplayValue = 1;
|
|
45925
|
+
break;
|
|
45926
|
+
case "CONTENT_TYPE_DISPLAY_VALUE_MEDITATION":
|
|
45927
|
+
case 2:
|
|
45928
|
+
message.contentTypeDisplayValue = 2;
|
|
45929
|
+
break;
|
|
45930
|
+
case "CONTENT_TYPE_DISPLAY_VALUE_MINDFUL_ACTIVITY":
|
|
45931
|
+
case 3:
|
|
45932
|
+
message.contentTypeDisplayValue = 3;
|
|
45933
|
+
break;
|
|
45934
|
+
case "CONTENT_TYPE_DISPLAY_VALUE_SLEEP_SOUND":
|
|
45935
|
+
case 4:
|
|
45936
|
+
message.contentTypeDisplayValue = 4;
|
|
45937
|
+
break;
|
|
45938
|
+
case "CONTENT_TYPE_DISPLAY_VALUE_SLEEPCAST":
|
|
45939
|
+
case 5:
|
|
45940
|
+
message.contentTypeDisplayValue = 5;
|
|
45941
|
+
break;
|
|
45942
|
+
case "CONTENT_TYPE_DISPLAY_VALUE_ADVICE":
|
|
45943
|
+
case 6:
|
|
45944
|
+
message.contentTypeDisplayValue = 6;
|
|
45945
|
+
break;
|
|
45946
|
+
case "CONTENT_TYPE_DISPLAY_VALUE_EXPERT_GUIDANCE":
|
|
45947
|
+
case 7:
|
|
45948
|
+
message.contentTypeDisplayValue = 7;
|
|
45949
|
+
break;
|
|
45950
|
+
case "CONTENT_TYPE_DISPLAY_VALUE_FOCUS_MUSIC":
|
|
45951
|
+
case 8:
|
|
45952
|
+
message.contentTypeDisplayValue = 8;
|
|
45953
|
+
break;
|
|
45954
|
+
case "CONTENT_TYPE_DISPLAY_VALUE_CARDIO":
|
|
45955
|
+
case 9:
|
|
45956
|
+
message.contentTypeDisplayValue = 9;
|
|
45957
|
+
break;
|
|
45958
|
+
case "CONTENT_TYPE_DISPLAY_VALUE_PLAYLIST":
|
|
45959
|
+
case 10:
|
|
45960
|
+
message.contentTypeDisplayValue = 10;
|
|
45961
|
+
break;
|
|
45962
|
+
case "CONTENT_TYPE_DISPLAY_VALUE_QUICK_WORKOUT":
|
|
45963
|
+
case 11:
|
|
45964
|
+
message.contentTypeDisplayValue = 11;
|
|
45965
|
+
break;
|
|
45966
|
+
case "CONTENT_TYPE_DISPLAY_VALUE_WAKEUP":
|
|
45967
|
+
case 12:
|
|
45968
|
+
message.contentTypeDisplayValue = 12;
|
|
45969
|
+
break;
|
|
45970
|
+
case "CONTENT_TYPE_DISPLAY_VALUE_WORKOUT":
|
|
45971
|
+
case 13:
|
|
45972
|
+
message.contentTypeDisplayValue = 13;
|
|
45973
|
+
break;
|
|
45974
|
+
case "CONTENT_TYPE_DISPLAY_VALUE_VIDEO":
|
|
45975
|
+
case 14:
|
|
45976
|
+
message.contentTypeDisplayValue = 14;
|
|
45977
|
+
break;
|
|
45978
|
+
case "CONTENT_TYPE_DISPLAY_VALUE_SOUNDSCAPE":
|
|
45979
|
+
case 15:
|
|
45980
|
+
message.contentTypeDisplayValue = 15;
|
|
45981
|
+
break;
|
|
45982
|
+
case "CONTENT_TYPE_DISPLAY_VALUE_WIND_DOWN":
|
|
45983
|
+
case 16:
|
|
45984
|
+
message.contentTypeDisplayValue = 16;
|
|
45985
|
+
break;
|
|
45986
|
+
case "CONTENT_TYPE_DISPLAY_VALUE_SLEEP_RADIO":
|
|
45987
|
+
case 17:
|
|
45988
|
+
message.contentTypeDisplayValue = 17;
|
|
45989
|
+
break;
|
|
45990
|
+
case "CONTENT_TYPE_DISPLAY_VALUE_NIGHTTIME_SOS":
|
|
45991
|
+
case 18:
|
|
45992
|
+
message.contentTypeDisplayValue = 18;
|
|
45993
|
+
break;
|
|
45994
|
+
case "CONTENT_TYPE_DISPLAY_VALUE_PODCAST":
|
|
45995
|
+
case 19:
|
|
45996
|
+
message.contentTypeDisplayValue = 19;
|
|
45997
|
+
break;
|
|
45998
|
+
case "CONTENT_TYPE_DISPLAY_VALUE_UNGUIDED":
|
|
45999
|
+
case 20:
|
|
46000
|
+
message.contentTypeDisplayValue = 20;
|
|
46001
|
+
break;
|
|
46002
|
+
case "CONTENT_TYPE_DISPLAY_VALUE_JOURNAL":
|
|
46003
|
+
case 21:
|
|
46004
|
+
message.contentTypeDisplayValue = 21;
|
|
46005
|
+
break;
|
|
46006
|
+
case "CONTENT_TYPE_DISPLAY_VALUE_STRETCH":
|
|
46007
|
+
case 22:
|
|
46008
|
+
message.contentTypeDisplayValue = 22;
|
|
46009
|
+
break;
|
|
46010
|
+
case "CONTENT_TYPE_DISPLAY_VALUE_THE_WIND_DOWN":
|
|
46011
|
+
case 23:
|
|
46012
|
+
message.contentTypeDisplayValue = 23;
|
|
46013
|
+
break;
|
|
46014
|
+
}
|
|
46015
|
+
switch (object.contentInfoScreenTheme) {
|
|
46016
|
+
case "COLOR_THEME_UNRECOGNIZED":
|
|
46017
|
+
case 0:
|
|
46018
|
+
message.contentInfoScreenTheme = 0;
|
|
46019
|
+
break;
|
|
46020
|
+
case "COLOR_THEME_DARK":
|
|
46021
|
+
case 1:
|
|
46022
|
+
message.contentInfoScreenTheme = 1;
|
|
46023
|
+
break;
|
|
46024
|
+
case "COLOR_THEME_LIGHT":
|
|
46025
|
+
case 2:
|
|
46026
|
+
message.contentInfoScreenTheme = 2;
|
|
46027
|
+
break;
|
|
46028
|
+
}
|
|
46029
|
+
if (object.categoryId != null)
|
|
46030
|
+
message.categoryId = object.categoryId >>> 0;
|
|
46031
|
+
if (object.tileMediaId != null)
|
|
46032
|
+
message.tileMediaId = object.tileMediaId >>> 0;
|
|
46033
|
+
if (object.headerImageMediaId != null)
|
|
46034
|
+
message.headerImageMediaId = object.headerImageMediaId >>> 0;
|
|
46035
|
+
if (object.ordinalNumber != null)
|
|
46036
|
+
message.ordinalNumber = object.ordinalNumber >>> 0;
|
|
46037
|
+
if (object.deletedAt != null)
|
|
46038
|
+
if ($util.Long)
|
|
46039
|
+
(message.deletedAt = $util.Long.fromValue(object.deletedAt)).unsigned = true;
|
|
46040
|
+
else if (typeof object.deletedAt === "string")
|
|
46041
|
+
message.deletedAt = parseInt(object.deletedAt, 10);
|
|
46042
|
+
else if (typeof object.deletedAt === "number")
|
|
46043
|
+
message.deletedAt = object.deletedAt;
|
|
46044
|
+
else if (typeof object.deletedAt === "object")
|
|
46045
|
+
message.deletedAt = new $util.LongBits(object.deletedAt.low >>> 0, object.deletedAt.high >>> 0).toNumber(true);
|
|
43865
46046
|
return message;
|
|
43866
46047
|
};
|
|
43867
46048
|
|
|
43868
46049
|
/**
|
|
43869
|
-
* Creates a plain object from a
|
|
46050
|
+
* Creates a plain object from a ContentEntityDeleted message. Also converts values to other types if specified.
|
|
43870
46051
|
* @function toObject
|
|
43871
|
-
* @memberof
|
|
46052
|
+
* @memberof ContentEntityDeleted
|
|
43872
46053
|
* @static
|
|
43873
|
-
* @param {
|
|
46054
|
+
* @param {ContentEntityDeleted} message ContentEntityDeleted
|
|
43874
46055
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
43875
46056
|
* @returns {Object.<string,*>} Plain object
|
|
43876
46057
|
*/
|
|
43877
|
-
|
|
46058
|
+
ContentEntityDeleted.toObject = function toObject(message, options) {
|
|
43878
46059
|
if (!options)
|
|
43879
46060
|
options = {};
|
|
43880
46061
|
var object = {};
|
|
43881
46062
|
if (options.defaults) {
|
|
43882
|
-
object.
|
|
43883
|
-
object.
|
|
43884
|
-
object.
|
|
43885
|
-
object.
|
|
46063
|
+
object.id = 0;
|
|
46064
|
+
object.contentType = options.enums === String ? "CONTENT_TYPE_UNRECOGNIZED" : 0;
|
|
46065
|
+
object.colorTheme = options.enums === String ? "COLOR_THEME_UNRECOGNIZED" : 0;
|
|
46066
|
+
object.entityId = 0;
|
|
46067
|
+
object.slug = "";
|
|
46068
|
+
object.isInternationalOnly = false;
|
|
46069
|
+
object.contentTypeDisplayValue = options.enums === String ? "CONTENT_TYPE_DISPLAY_VALUE_UNRECOGNIZED" : 0;
|
|
46070
|
+
object.contentInfoScreenTheme = options.enums === String ? "COLOR_THEME_UNRECOGNIZED" : 0;
|
|
46071
|
+
object.categoryId = 0;
|
|
46072
|
+
object.tileMediaId = 0;
|
|
46073
|
+
object.headerImageMediaId = 0;
|
|
46074
|
+
object.ordinalNumber = 0;
|
|
46075
|
+
if ($util.Long) {
|
|
46076
|
+
var long = new $util.Long(0, 0, true);
|
|
46077
|
+
object.deletedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
46078
|
+
} else
|
|
46079
|
+
object.deletedAt = options.longs === String ? "0" : 0;
|
|
43886
46080
|
}
|
|
43887
|
-
if (message.
|
|
43888
|
-
object.
|
|
43889
|
-
if (message.
|
|
43890
|
-
object.
|
|
43891
|
-
if (message.
|
|
43892
|
-
object.
|
|
43893
|
-
if (message.
|
|
43894
|
-
object.
|
|
46081
|
+
if (message.id != null && message.hasOwnProperty("id"))
|
|
46082
|
+
object.id = message.id;
|
|
46083
|
+
if (message.contentType != null && message.hasOwnProperty("contentType"))
|
|
46084
|
+
object.contentType = options.enums === String ? $root.ContentType[message.contentType] : message.contentType;
|
|
46085
|
+
if (message.colorTheme != null && message.hasOwnProperty("colorTheme"))
|
|
46086
|
+
object.colorTheme = options.enums === String ? $root.ColorTheme[message.colorTheme] : message.colorTheme;
|
|
46087
|
+
if (message.entityId != null && message.hasOwnProperty("entityId"))
|
|
46088
|
+
object.entityId = message.entityId;
|
|
46089
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
46090
|
+
object.slug = message.slug;
|
|
46091
|
+
if (message.isInternationalOnly != null && message.hasOwnProperty("isInternationalOnly"))
|
|
46092
|
+
object.isInternationalOnly = message.isInternationalOnly;
|
|
46093
|
+
if (message.contentTypeDisplayValue != null && message.hasOwnProperty("contentTypeDisplayValue"))
|
|
46094
|
+
object.contentTypeDisplayValue = options.enums === String ? $root.ContentTypeDisplayValue[message.contentTypeDisplayValue] : message.contentTypeDisplayValue;
|
|
46095
|
+
if (message.contentInfoScreenTheme != null && message.hasOwnProperty("contentInfoScreenTheme"))
|
|
46096
|
+
object.contentInfoScreenTheme = options.enums === String ? $root.ColorTheme[message.contentInfoScreenTheme] : message.contentInfoScreenTheme;
|
|
46097
|
+
if (message.categoryId != null && message.hasOwnProperty("categoryId"))
|
|
46098
|
+
object.categoryId = message.categoryId;
|
|
46099
|
+
if (message.tileMediaId != null && message.hasOwnProperty("tileMediaId"))
|
|
46100
|
+
object.tileMediaId = message.tileMediaId;
|
|
46101
|
+
if (message.headerImageMediaId != null && message.hasOwnProperty("headerImageMediaId"))
|
|
46102
|
+
object.headerImageMediaId = message.headerImageMediaId;
|
|
46103
|
+
if (message.ordinalNumber != null && message.hasOwnProperty("ordinalNumber"))
|
|
46104
|
+
object.ordinalNumber = message.ordinalNumber;
|
|
46105
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
46106
|
+
if (typeof message.deletedAt === "number")
|
|
46107
|
+
object.deletedAt = options.longs === String ? String(message.deletedAt) : message.deletedAt;
|
|
46108
|
+
else
|
|
46109
|
+
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;
|
|
43895
46110
|
return object;
|
|
43896
46111
|
};
|
|
43897
46112
|
|
|
43898
46113
|
/**
|
|
43899
|
-
* Converts this
|
|
46114
|
+
* Converts this ContentEntityDeleted to JSON.
|
|
43900
46115
|
* @function toJSON
|
|
43901
|
-
* @memberof
|
|
46116
|
+
* @memberof ContentEntityDeleted
|
|
43902
46117
|
* @instance
|
|
43903
46118
|
* @returns {Object.<string,*>} JSON object
|
|
43904
46119
|
*/
|
|
43905
|
-
|
|
46120
|
+
ContentEntityDeleted.prototype.toJSON = function toJSON() {
|
|
43906
46121
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
43907
46122
|
};
|
|
43908
46123
|
|
|
43909
|
-
return
|
|
46124
|
+
return ContentEntityDeleted;
|
|
43910
46125
|
})();
|
|
43911
46126
|
|
|
43912
46127
|
$root.TopicCreated = (function() {
|
|
@@ -56068,6 +58283,7 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
|
|
|
56068
58283
|
case 4:
|
|
56069
58284
|
case 5:
|
|
56070
58285
|
case 6:
|
|
58286
|
+
case 7:
|
|
56071
58287
|
break;
|
|
56072
58288
|
}
|
|
56073
58289
|
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
@@ -56213,6 +58429,10 @@ $root.EnterpriseUserEnrollmentRemoved = (function() {
|
|
|
56213
58429
|
case 6:
|
|
56214
58430
|
message.reason = 6;
|
|
56215
58431
|
break;
|
|
58432
|
+
case "REMOVAL_REASON_SSO_ACCOUNT_UNLINK":
|
|
58433
|
+
case 7:
|
|
58434
|
+
message.reason = 7;
|
|
58435
|
+
break;
|
|
56216
58436
|
}
|
|
56217
58437
|
if (object.timestamp != null)
|
|
56218
58438
|
if ($util.Long)
|