@headspace/protos-events 1.242.0 → 1.244.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.d.ts +635 -0
- package/lib/index.js +2509 -20
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -43657,6 +43657,80 @@ $root.Mode = (function() {
|
|
|
43657
43657
|
return values;
|
|
43658
43658
|
})();
|
|
43659
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
|
+
|
|
43660
43734
|
$root.ContentPlayedMetadata = (function() {
|
|
43661
43735
|
|
|
43662
43736
|
/**
|
|
@@ -43868,47 +43942,2186 @@ $root.ContentPlayedMetadata = (function() {
|
|
|
43868
43942
|
};
|
|
43869
43943
|
|
|
43870
43944
|
/**
|
|
43871
|
-
* Creates a plain object from a ContentPlayedMetadata message. Also converts values to other types if specified.
|
|
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
|
|
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
|
+
};
|
|
45399
|
+
|
|
45400
|
+
/**
|
|
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
|
|
45440
|
+
* @constructor
|
|
45441
|
+
* @param {IContentEntityDeleted=} [properties] Properties to set
|
|
45442
|
+
*/
|
|
45443
|
+
function ContentEntityDeleted(properties) {
|
|
45444
|
+
if (properties)
|
|
45445
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
45446
|
+
if (properties[keys[i]] != null)
|
|
45447
|
+
this[keys[i]] = properties[keys[i]];
|
|
45448
|
+
}
|
|
45449
|
+
|
|
45450
|
+
/**
|
|
45451
|
+
* ContentEntityDeleted id.
|
|
45452
|
+
* @member {number} id
|
|
45453
|
+
* @memberof ContentEntityDeleted
|
|
45454
|
+
* @instance
|
|
45455
|
+
*/
|
|
45456
|
+
ContentEntityDeleted.prototype.id = 0;
|
|
45457
|
+
|
|
45458
|
+
/**
|
|
45459
|
+
* ContentEntityDeleted contentType.
|
|
45460
|
+
* @member {ContentType} contentType
|
|
45461
|
+
* @memberof ContentEntityDeleted
|
|
45462
|
+
* @instance
|
|
45463
|
+
*/
|
|
45464
|
+
ContentEntityDeleted.prototype.contentType = 0;
|
|
45465
|
+
|
|
45466
|
+
/**
|
|
45467
|
+
* ContentEntityDeleted colorTheme.
|
|
45468
|
+
* @member {ColorTheme} colorTheme
|
|
45469
|
+
* @memberof ContentEntityDeleted
|
|
45470
|
+
* @instance
|
|
45471
|
+
*/
|
|
45472
|
+
ContentEntityDeleted.prototype.colorTheme = 0;
|
|
45473
|
+
|
|
45474
|
+
/**
|
|
45475
|
+
* ContentEntityDeleted entityId.
|
|
45476
|
+
* @member {number} entityId
|
|
45477
|
+
* @memberof ContentEntityDeleted
|
|
45478
|
+
* @instance
|
|
45479
|
+
*/
|
|
45480
|
+
ContentEntityDeleted.prototype.entityId = 0;
|
|
45481
|
+
|
|
45482
|
+
/**
|
|
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.
|
|
45556
|
+
* @function create
|
|
45557
|
+
* @memberof ContentEntityDeleted
|
|
45558
|
+
* @static
|
|
45559
|
+
* @param {IContentEntityDeleted=} [properties] Properties to set
|
|
45560
|
+
* @returns {ContentEntityDeleted} ContentEntityDeleted instance
|
|
45561
|
+
*/
|
|
45562
|
+
ContentEntityDeleted.create = function create(properties) {
|
|
45563
|
+
return new ContentEntityDeleted(properties);
|
|
45564
|
+
};
|
|
45565
|
+
|
|
45566
|
+
/**
|
|
45567
|
+
* Encodes the specified ContentEntityDeleted message. Does not implicitly {@link ContentEntityDeleted.verify|verify} messages.
|
|
45568
|
+
* @function encode
|
|
45569
|
+
* @memberof ContentEntityDeleted
|
|
45570
|
+
* @static
|
|
45571
|
+
* @param {IContentEntityDeleted} message ContentEntityDeleted message or plain object to encode
|
|
45572
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
45573
|
+
* @returns {$protobuf.Writer} Writer
|
|
45574
|
+
*/
|
|
45575
|
+
ContentEntityDeleted.encode = function encode(message, writer) {
|
|
45576
|
+
if (!writer)
|
|
45577
|
+
writer = $Writer.create();
|
|
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);
|
|
45604
|
+
return writer;
|
|
45605
|
+
};
|
|
45606
|
+
|
|
45607
|
+
/**
|
|
45608
|
+
* Encodes the specified ContentEntityDeleted message, length delimited. Does not implicitly {@link ContentEntityDeleted.verify|verify} messages.
|
|
45609
|
+
* @function encodeDelimited
|
|
45610
|
+
* @memberof ContentEntityDeleted
|
|
45611
|
+
* @static
|
|
45612
|
+
* @param {IContentEntityDeleted} message ContentEntityDeleted message or plain object to encode
|
|
45613
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
45614
|
+
* @returns {$protobuf.Writer} Writer
|
|
45615
|
+
*/
|
|
45616
|
+
ContentEntityDeleted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
45617
|
+
return this.encode(message, writer).ldelim();
|
|
45618
|
+
};
|
|
45619
|
+
|
|
45620
|
+
/**
|
|
45621
|
+
* Decodes a ContentEntityDeleted message from the specified reader or buffer.
|
|
45622
|
+
* @function decode
|
|
45623
|
+
* @memberof ContentEntityDeleted
|
|
45624
|
+
* @static
|
|
45625
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
45626
|
+
* @param {number} [length] Message length if known beforehand
|
|
45627
|
+
* @returns {ContentEntityDeleted} ContentEntityDeleted
|
|
45628
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
45629
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
45630
|
+
*/
|
|
45631
|
+
ContentEntityDeleted.decode = function decode(reader, length) {
|
|
45632
|
+
if (!(reader instanceof $Reader))
|
|
45633
|
+
reader = $Reader.create(reader);
|
|
45634
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentEntityDeleted();
|
|
45635
|
+
while (reader.pos < end) {
|
|
45636
|
+
var tag = reader.uint32();
|
|
45637
|
+
switch (tag >>> 3) {
|
|
45638
|
+
case 1:
|
|
45639
|
+
message.id = reader.uint32();
|
|
45640
|
+
break;
|
|
45641
|
+
case 2:
|
|
45642
|
+
message.contentType = reader.int32();
|
|
45643
|
+
break;
|
|
45644
|
+
case 3:
|
|
45645
|
+
message.colorTheme = reader.int32();
|
|
45646
|
+
break;
|
|
45647
|
+
case 4:
|
|
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();
|
|
45676
|
+
break;
|
|
45677
|
+
default:
|
|
45678
|
+
reader.skipType(tag & 7);
|
|
45679
|
+
break;
|
|
45680
|
+
}
|
|
45681
|
+
}
|
|
45682
|
+
return message;
|
|
45683
|
+
};
|
|
45684
|
+
|
|
45685
|
+
/**
|
|
45686
|
+
* Decodes a ContentEntityDeleted message from the specified reader or buffer, length delimited.
|
|
45687
|
+
* @function decodeDelimited
|
|
45688
|
+
* @memberof ContentEntityDeleted
|
|
45689
|
+
* @static
|
|
45690
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
45691
|
+
* @returns {ContentEntityDeleted} ContentEntityDeleted
|
|
45692
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
45693
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
45694
|
+
*/
|
|
45695
|
+
ContentEntityDeleted.decodeDelimited = function decodeDelimited(reader) {
|
|
45696
|
+
if (!(reader instanceof $Reader))
|
|
45697
|
+
reader = new $Reader(reader);
|
|
45698
|
+
return this.decode(reader, reader.uint32());
|
|
45699
|
+
};
|
|
45700
|
+
|
|
45701
|
+
/**
|
|
45702
|
+
* Verifies a ContentEntityDeleted message.
|
|
45703
|
+
* @function verify
|
|
45704
|
+
* @memberof ContentEntityDeleted
|
|
45705
|
+
* @static
|
|
45706
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
45707
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
45708
|
+
*/
|
|
45709
|
+
ContentEntityDeleted.verify = function verify(message) {
|
|
45710
|
+
if (typeof message !== "object" || message === null)
|
|
45711
|
+
return "object expected";
|
|
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";
|
|
45810
|
+
return null;
|
|
45811
|
+
};
|
|
45812
|
+
|
|
45813
|
+
/**
|
|
45814
|
+
* Creates a ContentEntityDeleted message from a plain object. Also converts values to their respective internal types.
|
|
45815
|
+
* @function fromObject
|
|
45816
|
+
* @memberof ContentEntityDeleted
|
|
45817
|
+
* @static
|
|
45818
|
+
* @param {Object.<string,*>} object Plain object
|
|
45819
|
+
* @returns {ContentEntityDeleted} ContentEntityDeleted
|
|
45820
|
+
*/
|
|
45821
|
+
ContentEntityDeleted.fromObject = function fromObject(object) {
|
|
45822
|
+
if (object instanceof $root.ContentEntityDeleted)
|
|
45823
|
+
return object;
|
|
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);
|
|
46046
|
+
return message;
|
|
46047
|
+
};
|
|
46048
|
+
|
|
46049
|
+
/**
|
|
46050
|
+
* Creates a plain object from a ContentEntityDeleted message. Also converts values to other types if specified.
|
|
43872
46051
|
* @function toObject
|
|
43873
|
-
* @memberof
|
|
46052
|
+
* @memberof ContentEntityDeleted
|
|
43874
46053
|
* @static
|
|
43875
|
-
* @param {
|
|
46054
|
+
* @param {ContentEntityDeleted} message ContentEntityDeleted
|
|
43876
46055
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
43877
46056
|
* @returns {Object.<string,*>} Plain object
|
|
43878
46057
|
*/
|
|
43879
|
-
|
|
46058
|
+
ContentEntityDeleted.toObject = function toObject(message, options) {
|
|
43880
46059
|
if (!options)
|
|
43881
46060
|
options = {};
|
|
43882
46061
|
var object = {};
|
|
43883
46062
|
if (options.defaults) {
|
|
43884
|
-
object.
|
|
43885
|
-
object.
|
|
43886
|
-
object.
|
|
43887
|
-
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;
|
|
43888
46080
|
}
|
|
43889
|
-
if (message.
|
|
43890
|
-
object.
|
|
43891
|
-
if (message.
|
|
43892
|
-
object.
|
|
43893
|
-
if (message.
|
|
43894
|
-
object.
|
|
43895
|
-
if (message.
|
|
43896
|
-
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;
|
|
43897
46110
|
return object;
|
|
43898
46111
|
};
|
|
43899
46112
|
|
|
43900
46113
|
/**
|
|
43901
|
-
* Converts this
|
|
46114
|
+
* Converts this ContentEntityDeleted to JSON.
|
|
43902
46115
|
* @function toJSON
|
|
43903
|
-
* @memberof
|
|
46116
|
+
* @memberof ContentEntityDeleted
|
|
43904
46117
|
* @instance
|
|
43905
46118
|
* @returns {Object.<string,*>} JSON object
|
|
43906
46119
|
*/
|
|
43907
|
-
|
|
46120
|
+
ContentEntityDeleted.prototype.toJSON = function toJSON() {
|
|
43908
46121
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
43909
46122
|
};
|
|
43910
46123
|
|
|
43911
|
-
return
|
|
46124
|
+
return ContentEntityDeleted;
|
|
43912
46125
|
})();
|
|
43913
46126
|
|
|
43914
46127
|
$root.TopicCreated = (function() {
|
|
@@ -49212,6 +51425,282 @@ $root.SCIMUserUpdated = (function() {
|
|
|
49212
51425
|
return SCIMUserUpdated;
|
|
49213
51426
|
})();
|
|
49214
51427
|
|
|
51428
|
+
$root.RecommendationSearchMatched = (function() {
|
|
51429
|
+
|
|
51430
|
+
/**
|
|
51431
|
+
* Properties of a RecommendationSearchMatched.
|
|
51432
|
+
* @exports IRecommendationSearchMatched
|
|
51433
|
+
* @interface IRecommendationSearchMatched
|
|
51434
|
+
* @property {string|null} [userId] RecommendationSearchMatched userId
|
|
51435
|
+
* @property {string|null} [searchTerm] RecommendationSearchMatched searchTerm
|
|
51436
|
+
* @property {string|null} [locale] RecommendationSearchMatched locale
|
|
51437
|
+
* @property {string|null} [deepLink] RecommendationSearchMatched deepLink
|
|
51438
|
+
* @property {string|null} [contentName] RecommendationSearchMatched contentName
|
|
51439
|
+
*/
|
|
51440
|
+
|
|
51441
|
+
/**
|
|
51442
|
+
* Constructs a new RecommendationSearchMatched.
|
|
51443
|
+
* @exports RecommendationSearchMatched
|
|
51444
|
+
* @classdesc Represents a RecommendationSearchMatched.
|
|
51445
|
+
* @implements IRecommendationSearchMatched
|
|
51446
|
+
* @constructor
|
|
51447
|
+
* @param {IRecommendationSearchMatched=} [properties] Properties to set
|
|
51448
|
+
*/
|
|
51449
|
+
function RecommendationSearchMatched(properties) {
|
|
51450
|
+
if (properties)
|
|
51451
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
51452
|
+
if (properties[keys[i]] != null)
|
|
51453
|
+
this[keys[i]] = properties[keys[i]];
|
|
51454
|
+
}
|
|
51455
|
+
|
|
51456
|
+
/**
|
|
51457
|
+
* RecommendationSearchMatched userId.
|
|
51458
|
+
* @member {string} userId
|
|
51459
|
+
* @memberof RecommendationSearchMatched
|
|
51460
|
+
* @instance
|
|
51461
|
+
*/
|
|
51462
|
+
RecommendationSearchMatched.prototype.userId = "";
|
|
51463
|
+
|
|
51464
|
+
/**
|
|
51465
|
+
* RecommendationSearchMatched searchTerm.
|
|
51466
|
+
* @member {string} searchTerm
|
|
51467
|
+
* @memberof RecommendationSearchMatched
|
|
51468
|
+
* @instance
|
|
51469
|
+
*/
|
|
51470
|
+
RecommendationSearchMatched.prototype.searchTerm = "";
|
|
51471
|
+
|
|
51472
|
+
/**
|
|
51473
|
+
* RecommendationSearchMatched locale.
|
|
51474
|
+
* @member {string} locale
|
|
51475
|
+
* @memberof RecommendationSearchMatched
|
|
51476
|
+
* @instance
|
|
51477
|
+
*/
|
|
51478
|
+
RecommendationSearchMatched.prototype.locale = "";
|
|
51479
|
+
|
|
51480
|
+
/**
|
|
51481
|
+
* RecommendationSearchMatched deepLink.
|
|
51482
|
+
* @member {string} deepLink
|
|
51483
|
+
* @memberof RecommendationSearchMatched
|
|
51484
|
+
* @instance
|
|
51485
|
+
*/
|
|
51486
|
+
RecommendationSearchMatched.prototype.deepLink = "";
|
|
51487
|
+
|
|
51488
|
+
/**
|
|
51489
|
+
* RecommendationSearchMatched contentName.
|
|
51490
|
+
* @member {string} contentName
|
|
51491
|
+
* @memberof RecommendationSearchMatched
|
|
51492
|
+
* @instance
|
|
51493
|
+
*/
|
|
51494
|
+
RecommendationSearchMatched.prototype.contentName = "";
|
|
51495
|
+
|
|
51496
|
+
/**
|
|
51497
|
+
* Creates a new RecommendationSearchMatched instance using the specified properties.
|
|
51498
|
+
* @function create
|
|
51499
|
+
* @memberof RecommendationSearchMatched
|
|
51500
|
+
* @static
|
|
51501
|
+
* @param {IRecommendationSearchMatched=} [properties] Properties to set
|
|
51502
|
+
* @returns {RecommendationSearchMatched} RecommendationSearchMatched instance
|
|
51503
|
+
*/
|
|
51504
|
+
RecommendationSearchMatched.create = function create(properties) {
|
|
51505
|
+
return new RecommendationSearchMatched(properties);
|
|
51506
|
+
};
|
|
51507
|
+
|
|
51508
|
+
/**
|
|
51509
|
+
* Encodes the specified RecommendationSearchMatched message. Does not implicitly {@link RecommendationSearchMatched.verify|verify} messages.
|
|
51510
|
+
* @function encode
|
|
51511
|
+
* @memberof RecommendationSearchMatched
|
|
51512
|
+
* @static
|
|
51513
|
+
* @param {IRecommendationSearchMatched} message RecommendationSearchMatched message or plain object to encode
|
|
51514
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
51515
|
+
* @returns {$protobuf.Writer} Writer
|
|
51516
|
+
*/
|
|
51517
|
+
RecommendationSearchMatched.encode = function encode(message, writer) {
|
|
51518
|
+
if (!writer)
|
|
51519
|
+
writer = $Writer.create();
|
|
51520
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
51521
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
|
|
51522
|
+
if (message.searchTerm != null && message.hasOwnProperty("searchTerm"))
|
|
51523
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.searchTerm);
|
|
51524
|
+
if (message.locale != null && message.hasOwnProperty("locale"))
|
|
51525
|
+
writer.uint32(/* id 3, wireType 2 =*/26).string(message.locale);
|
|
51526
|
+
if (message.deepLink != null && message.hasOwnProperty("deepLink"))
|
|
51527
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.deepLink);
|
|
51528
|
+
if (message.contentName != null && message.hasOwnProperty("contentName"))
|
|
51529
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.contentName);
|
|
51530
|
+
return writer;
|
|
51531
|
+
};
|
|
51532
|
+
|
|
51533
|
+
/**
|
|
51534
|
+
* Encodes the specified RecommendationSearchMatched message, length delimited. Does not implicitly {@link RecommendationSearchMatched.verify|verify} messages.
|
|
51535
|
+
* @function encodeDelimited
|
|
51536
|
+
* @memberof RecommendationSearchMatched
|
|
51537
|
+
* @static
|
|
51538
|
+
* @param {IRecommendationSearchMatched} message RecommendationSearchMatched message or plain object to encode
|
|
51539
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
51540
|
+
* @returns {$protobuf.Writer} Writer
|
|
51541
|
+
*/
|
|
51542
|
+
RecommendationSearchMatched.encodeDelimited = function encodeDelimited(message, writer) {
|
|
51543
|
+
return this.encode(message, writer).ldelim();
|
|
51544
|
+
};
|
|
51545
|
+
|
|
51546
|
+
/**
|
|
51547
|
+
* Decodes a RecommendationSearchMatched message from the specified reader or buffer.
|
|
51548
|
+
* @function decode
|
|
51549
|
+
* @memberof RecommendationSearchMatched
|
|
51550
|
+
* @static
|
|
51551
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
51552
|
+
* @param {number} [length] Message length if known beforehand
|
|
51553
|
+
* @returns {RecommendationSearchMatched} RecommendationSearchMatched
|
|
51554
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
51555
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
51556
|
+
*/
|
|
51557
|
+
RecommendationSearchMatched.decode = function decode(reader, length) {
|
|
51558
|
+
if (!(reader instanceof $Reader))
|
|
51559
|
+
reader = $Reader.create(reader);
|
|
51560
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.RecommendationSearchMatched();
|
|
51561
|
+
while (reader.pos < end) {
|
|
51562
|
+
var tag = reader.uint32();
|
|
51563
|
+
switch (tag >>> 3) {
|
|
51564
|
+
case 1:
|
|
51565
|
+
message.userId = reader.string();
|
|
51566
|
+
break;
|
|
51567
|
+
case 2:
|
|
51568
|
+
message.searchTerm = reader.string();
|
|
51569
|
+
break;
|
|
51570
|
+
case 3:
|
|
51571
|
+
message.locale = reader.string();
|
|
51572
|
+
break;
|
|
51573
|
+
case 4:
|
|
51574
|
+
message.deepLink = reader.string();
|
|
51575
|
+
break;
|
|
51576
|
+
case 5:
|
|
51577
|
+
message.contentName = reader.string();
|
|
51578
|
+
break;
|
|
51579
|
+
default:
|
|
51580
|
+
reader.skipType(tag & 7);
|
|
51581
|
+
break;
|
|
51582
|
+
}
|
|
51583
|
+
}
|
|
51584
|
+
return message;
|
|
51585
|
+
};
|
|
51586
|
+
|
|
51587
|
+
/**
|
|
51588
|
+
* Decodes a RecommendationSearchMatched message from the specified reader or buffer, length delimited.
|
|
51589
|
+
* @function decodeDelimited
|
|
51590
|
+
* @memberof RecommendationSearchMatched
|
|
51591
|
+
* @static
|
|
51592
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
51593
|
+
* @returns {RecommendationSearchMatched} RecommendationSearchMatched
|
|
51594
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
51595
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
51596
|
+
*/
|
|
51597
|
+
RecommendationSearchMatched.decodeDelimited = function decodeDelimited(reader) {
|
|
51598
|
+
if (!(reader instanceof $Reader))
|
|
51599
|
+
reader = new $Reader(reader);
|
|
51600
|
+
return this.decode(reader, reader.uint32());
|
|
51601
|
+
};
|
|
51602
|
+
|
|
51603
|
+
/**
|
|
51604
|
+
* Verifies a RecommendationSearchMatched message.
|
|
51605
|
+
* @function verify
|
|
51606
|
+
* @memberof RecommendationSearchMatched
|
|
51607
|
+
* @static
|
|
51608
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
51609
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
51610
|
+
*/
|
|
51611
|
+
RecommendationSearchMatched.verify = function verify(message) {
|
|
51612
|
+
if (typeof message !== "object" || message === null)
|
|
51613
|
+
return "object expected";
|
|
51614
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
51615
|
+
if (!$util.isString(message.userId))
|
|
51616
|
+
return "userId: string expected";
|
|
51617
|
+
if (message.searchTerm != null && message.hasOwnProperty("searchTerm"))
|
|
51618
|
+
if (!$util.isString(message.searchTerm))
|
|
51619
|
+
return "searchTerm: string expected";
|
|
51620
|
+
if (message.locale != null && message.hasOwnProperty("locale"))
|
|
51621
|
+
if (!$util.isString(message.locale))
|
|
51622
|
+
return "locale: string expected";
|
|
51623
|
+
if (message.deepLink != null && message.hasOwnProperty("deepLink"))
|
|
51624
|
+
if (!$util.isString(message.deepLink))
|
|
51625
|
+
return "deepLink: string expected";
|
|
51626
|
+
if (message.contentName != null && message.hasOwnProperty("contentName"))
|
|
51627
|
+
if (!$util.isString(message.contentName))
|
|
51628
|
+
return "contentName: string expected";
|
|
51629
|
+
return null;
|
|
51630
|
+
};
|
|
51631
|
+
|
|
51632
|
+
/**
|
|
51633
|
+
* Creates a RecommendationSearchMatched message from a plain object. Also converts values to their respective internal types.
|
|
51634
|
+
* @function fromObject
|
|
51635
|
+
* @memberof RecommendationSearchMatched
|
|
51636
|
+
* @static
|
|
51637
|
+
* @param {Object.<string,*>} object Plain object
|
|
51638
|
+
* @returns {RecommendationSearchMatched} RecommendationSearchMatched
|
|
51639
|
+
*/
|
|
51640
|
+
RecommendationSearchMatched.fromObject = function fromObject(object) {
|
|
51641
|
+
if (object instanceof $root.RecommendationSearchMatched)
|
|
51642
|
+
return object;
|
|
51643
|
+
var message = new $root.RecommendationSearchMatched();
|
|
51644
|
+
if (object.userId != null)
|
|
51645
|
+
message.userId = String(object.userId);
|
|
51646
|
+
if (object.searchTerm != null)
|
|
51647
|
+
message.searchTerm = String(object.searchTerm);
|
|
51648
|
+
if (object.locale != null)
|
|
51649
|
+
message.locale = String(object.locale);
|
|
51650
|
+
if (object.deepLink != null)
|
|
51651
|
+
message.deepLink = String(object.deepLink);
|
|
51652
|
+
if (object.contentName != null)
|
|
51653
|
+
message.contentName = String(object.contentName);
|
|
51654
|
+
return message;
|
|
51655
|
+
};
|
|
51656
|
+
|
|
51657
|
+
/**
|
|
51658
|
+
* Creates a plain object from a RecommendationSearchMatched message. Also converts values to other types if specified.
|
|
51659
|
+
* @function toObject
|
|
51660
|
+
* @memberof RecommendationSearchMatched
|
|
51661
|
+
* @static
|
|
51662
|
+
* @param {RecommendationSearchMatched} message RecommendationSearchMatched
|
|
51663
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
51664
|
+
* @returns {Object.<string,*>} Plain object
|
|
51665
|
+
*/
|
|
51666
|
+
RecommendationSearchMatched.toObject = function toObject(message, options) {
|
|
51667
|
+
if (!options)
|
|
51668
|
+
options = {};
|
|
51669
|
+
var object = {};
|
|
51670
|
+
if (options.defaults) {
|
|
51671
|
+
object.userId = "";
|
|
51672
|
+
object.searchTerm = "";
|
|
51673
|
+
object.locale = "";
|
|
51674
|
+
object.deepLink = "";
|
|
51675
|
+
object.contentName = "";
|
|
51676
|
+
}
|
|
51677
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
51678
|
+
object.userId = message.userId;
|
|
51679
|
+
if (message.searchTerm != null && message.hasOwnProperty("searchTerm"))
|
|
51680
|
+
object.searchTerm = message.searchTerm;
|
|
51681
|
+
if (message.locale != null && message.hasOwnProperty("locale"))
|
|
51682
|
+
object.locale = message.locale;
|
|
51683
|
+
if (message.deepLink != null && message.hasOwnProperty("deepLink"))
|
|
51684
|
+
object.deepLink = message.deepLink;
|
|
51685
|
+
if (message.contentName != null && message.hasOwnProperty("contentName"))
|
|
51686
|
+
object.contentName = message.contentName;
|
|
51687
|
+
return object;
|
|
51688
|
+
};
|
|
51689
|
+
|
|
51690
|
+
/**
|
|
51691
|
+
* Converts this RecommendationSearchMatched to JSON.
|
|
51692
|
+
* @function toJSON
|
|
51693
|
+
* @memberof RecommendationSearchMatched
|
|
51694
|
+
* @instance
|
|
51695
|
+
* @returns {Object.<string,*>} JSON object
|
|
51696
|
+
*/
|
|
51697
|
+
RecommendationSearchMatched.prototype.toJSON = function toJSON() {
|
|
51698
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
51699
|
+
};
|
|
51700
|
+
|
|
51701
|
+
return RecommendationSearchMatched;
|
|
51702
|
+
})();
|
|
51703
|
+
|
|
49215
51704
|
$root.IosSubscriptionCreated = (function() {
|
|
49216
51705
|
|
|
49217
51706
|
/**
|