@headspace/protos-events 1.111.0 → 1.114.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 +372 -6
- package/lib/index.js +1054 -53
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -7864,7 +7864,6 @@ $root.ContentfulAssetDeleted = (function() {
|
|
|
7864
7864
|
* @exports IContentfulAssetDeleted
|
|
7865
7865
|
* @interface IContentfulAssetDeleted
|
|
7866
7866
|
* @property {string|null} [id] ContentfulAssetDeleted id
|
|
7867
|
-
* @property {Object.<string,contentful.IMediaFile>|null} [file] ContentfulAssetDeleted file
|
|
7868
7867
|
* @property {number|Long|null} [deletedAt] ContentfulAssetDeleted deletedAt
|
|
7869
7868
|
*/
|
|
7870
7869
|
|
|
@@ -7877,7 +7876,6 @@ $root.ContentfulAssetDeleted = (function() {
|
|
|
7877
7876
|
* @param {IContentfulAssetDeleted=} [properties] Properties to set
|
|
7878
7877
|
*/
|
|
7879
7878
|
function ContentfulAssetDeleted(properties) {
|
|
7880
|
-
this.file = {};
|
|
7881
7879
|
if (properties)
|
|
7882
7880
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
7883
7881
|
if (properties[keys[i]] != null)
|
|
@@ -7892,14 +7890,6 @@ $root.ContentfulAssetDeleted = (function() {
|
|
|
7892
7890
|
*/
|
|
7893
7891
|
ContentfulAssetDeleted.prototype.id = "";
|
|
7894
7892
|
|
|
7895
|
-
/**
|
|
7896
|
-
* ContentfulAssetDeleted file.
|
|
7897
|
-
* @member {Object.<string,contentful.IMediaFile>} file
|
|
7898
|
-
* @memberof ContentfulAssetDeleted
|
|
7899
|
-
* @instance
|
|
7900
|
-
*/
|
|
7901
|
-
ContentfulAssetDeleted.prototype.file = $util.emptyObject;
|
|
7902
|
-
|
|
7903
7893
|
/**
|
|
7904
7894
|
* ContentfulAssetDeleted deletedAt.
|
|
7905
7895
|
* @member {number|Long} deletedAt
|
|
@@ -7934,13 +7924,8 @@ $root.ContentfulAssetDeleted = (function() {
|
|
|
7934
7924
|
writer = $Writer.create();
|
|
7935
7925
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
7936
7926
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.id);
|
|
7937
|
-
if (message.file != null && message.hasOwnProperty("file"))
|
|
7938
|
-
for (var keys = Object.keys(message.file), i = 0; i < keys.length; ++i) {
|
|
7939
|
-
writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]);
|
|
7940
|
-
$root.contentful.MediaFile.encode(message.file[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim();
|
|
7941
|
-
}
|
|
7942
7927
|
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
7943
|
-
writer.uint32(/* id
|
|
7928
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.deletedAt);
|
|
7944
7929
|
return writer;
|
|
7945
7930
|
};
|
|
7946
7931
|
|
|
@@ -7971,7 +7956,7 @@ $root.ContentfulAssetDeleted = (function() {
|
|
|
7971
7956
|
ContentfulAssetDeleted.decode = function decode(reader, length) {
|
|
7972
7957
|
if (!(reader instanceof $Reader))
|
|
7973
7958
|
reader = $Reader.create(reader);
|
|
7974
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulAssetDeleted()
|
|
7959
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentfulAssetDeleted();
|
|
7975
7960
|
while (reader.pos < end) {
|
|
7976
7961
|
var tag = reader.uint32();
|
|
7977
7962
|
switch (tag >>> 3) {
|
|
@@ -7979,14 +7964,6 @@ $root.ContentfulAssetDeleted = (function() {
|
|
|
7979
7964
|
message.id = reader.string();
|
|
7980
7965
|
break;
|
|
7981
7966
|
case 2:
|
|
7982
|
-
reader.skip().pos++;
|
|
7983
|
-
if (message.file === $util.emptyObject)
|
|
7984
|
-
message.file = {};
|
|
7985
|
-
key = reader.string();
|
|
7986
|
-
reader.pos++;
|
|
7987
|
-
message.file[key] = $root.contentful.MediaFile.decode(reader, reader.uint32());
|
|
7988
|
-
break;
|
|
7989
|
-
case 3:
|
|
7990
7967
|
message.deletedAt = reader.uint64();
|
|
7991
7968
|
break;
|
|
7992
7969
|
default:
|
|
@@ -8027,16 +8004,6 @@ $root.ContentfulAssetDeleted = (function() {
|
|
|
8027
8004
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
8028
8005
|
if (!$util.isString(message.id))
|
|
8029
8006
|
return "id: string expected";
|
|
8030
|
-
if (message.file != null && message.hasOwnProperty("file")) {
|
|
8031
|
-
if (!$util.isObject(message.file))
|
|
8032
|
-
return "file: object expected";
|
|
8033
|
-
var key = Object.keys(message.file);
|
|
8034
|
-
for (var i = 0; i < key.length; ++i) {
|
|
8035
|
-
var error = $root.contentful.MediaFile.verify(message.file[key[i]]);
|
|
8036
|
-
if (error)
|
|
8037
|
-
return "file." + error;
|
|
8038
|
-
}
|
|
8039
|
-
}
|
|
8040
8007
|
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
8041
8008
|
if (!$util.isInteger(message.deletedAt) && !(message.deletedAt && $util.isInteger(message.deletedAt.low) && $util.isInteger(message.deletedAt.high)))
|
|
8042
8009
|
return "deletedAt: integer|Long expected";
|
|
@@ -8057,16 +8024,6 @@ $root.ContentfulAssetDeleted = (function() {
|
|
|
8057
8024
|
var message = new $root.ContentfulAssetDeleted();
|
|
8058
8025
|
if (object.id != null)
|
|
8059
8026
|
message.id = String(object.id);
|
|
8060
|
-
if (object.file) {
|
|
8061
|
-
if (typeof object.file !== "object")
|
|
8062
|
-
throw TypeError(".ContentfulAssetDeleted.file: object expected");
|
|
8063
|
-
message.file = {};
|
|
8064
|
-
for (var keys = Object.keys(object.file), i = 0; i < keys.length; ++i) {
|
|
8065
|
-
if (typeof object.file[keys[i]] !== "object")
|
|
8066
|
-
throw TypeError(".ContentfulAssetDeleted.file: object expected");
|
|
8067
|
-
message.file[keys[i]] = $root.contentful.MediaFile.fromObject(object.file[keys[i]]);
|
|
8068
|
-
}
|
|
8069
|
-
}
|
|
8070
8027
|
if (object.deletedAt != null)
|
|
8071
8028
|
if ($util.Long)
|
|
8072
8029
|
(message.deletedAt = $util.Long.fromValue(object.deletedAt)).unsigned = true;
|
|
@@ -8092,8 +8049,6 @@ $root.ContentfulAssetDeleted = (function() {
|
|
|
8092
8049
|
if (!options)
|
|
8093
8050
|
options = {};
|
|
8094
8051
|
var object = {};
|
|
8095
|
-
if (options.objects || options.defaults)
|
|
8096
|
-
object.file = {};
|
|
8097
8052
|
if (options.defaults) {
|
|
8098
8053
|
object.id = "";
|
|
8099
8054
|
if ($util.Long) {
|
|
@@ -8104,12 +8059,6 @@ $root.ContentfulAssetDeleted = (function() {
|
|
|
8104
8059
|
}
|
|
8105
8060
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
8106
8061
|
object.id = message.id;
|
|
8107
|
-
var keys2;
|
|
8108
|
-
if (message.file && (keys2 = Object.keys(message.file)).length) {
|
|
8109
|
-
object.file = {};
|
|
8110
|
-
for (var j = 0; j < keys2.length; ++j)
|
|
8111
|
-
object.file[keys2[j]] = $root.contentful.MediaFile.toObject(message.file[keys2[j]], options);
|
|
8112
|
-
}
|
|
8113
8062
|
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
8114
8063
|
if (typeof message.deletedAt === "number")
|
|
8115
8064
|
object.deletedAt = options.longs === String ? String(message.deletedAt) : message.deletedAt;
|
|
@@ -20059,6 +20008,1058 @@ $root.ElfImportJobFailed = (function() {
|
|
|
20059
20008
|
return ElfImportJobFailed;
|
|
20060
20009
|
})();
|
|
20061
20010
|
|
|
20011
|
+
$root.WakeupPlaylistCreated = (function() {
|
|
20012
|
+
|
|
20013
|
+
/**
|
|
20014
|
+
* Properties of a WakeupPlaylistCreated.
|
|
20015
|
+
* @exports IWakeupPlaylistCreated
|
|
20016
|
+
* @interface IWakeupPlaylistCreated
|
|
20017
|
+
* @property {string|null} [slug] WakeupPlaylistCreated slug
|
|
20018
|
+
* @property {string|null} [entityType] WakeupPlaylistCreated entityType
|
|
20019
|
+
* @property {number|Long|null} [schedule] WakeupPlaylistCreated schedule
|
|
20020
|
+
* @property {string|null} [previewMedia] WakeupPlaylistCreated previewMedia
|
|
20021
|
+
* @property {string|null} [previewMediaType] WakeupPlaylistCreated previewMediaType
|
|
20022
|
+
* @property {Array.<contentful.ISlugReference>|null} [accessGroups] WakeupPlaylistCreated accessGroups
|
|
20023
|
+
* @property {number|Long|null} [createdAt] WakeupPlaylistCreated createdAt
|
|
20024
|
+
* @property {number|null} [entityId] WakeupPlaylistCreated entityId
|
|
20025
|
+
*/
|
|
20026
|
+
|
|
20027
|
+
/**
|
|
20028
|
+
* Constructs a new WakeupPlaylistCreated.
|
|
20029
|
+
* @exports WakeupPlaylistCreated
|
|
20030
|
+
* @classdesc Represents a WakeupPlaylistCreated.
|
|
20031
|
+
* @implements IWakeupPlaylistCreated
|
|
20032
|
+
* @constructor
|
|
20033
|
+
* @param {IWakeupPlaylistCreated=} [properties] Properties to set
|
|
20034
|
+
*/
|
|
20035
|
+
function WakeupPlaylistCreated(properties) {
|
|
20036
|
+
this.accessGroups = [];
|
|
20037
|
+
if (properties)
|
|
20038
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
20039
|
+
if (properties[keys[i]] != null)
|
|
20040
|
+
this[keys[i]] = properties[keys[i]];
|
|
20041
|
+
}
|
|
20042
|
+
|
|
20043
|
+
/**
|
|
20044
|
+
* WakeupPlaylistCreated slug.
|
|
20045
|
+
* @member {string} slug
|
|
20046
|
+
* @memberof WakeupPlaylistCreated
|
|
20047
|
+
* @instance
|
|
20048
|
+
*/
|
|
20049
|
+
WakeupPlaylistCreated.prototype.slug = "";
|
|
20050
|
+
|
|
20051
|
+
/**
|
|
20052
|
+
* WakeupPlaylistCreated entityType.
|
|
20053
|
+
* @member {string} entityType
|
|
20054
|
+
* @memberof WakeupPlaylistCreated
|
|
20055
|
+
* @instance
|
|
20056
|
+
*/
|
|
20057
|
+
WakeupPlaylistCreated.prototype.entityType = "";
|
|
20058
|
+
|
|
20059
|
+
/**
|
|
20060
|
+
* WakeupPlaylistCreated schedule.
|
|
20061
|
+
* @member {number|Long} schedule
|
|
20062
|
+
* @memberof WakeupPlaylistCreated
|
|
20063
|
+
* @instance
|
|
20064
|
+
*/
|
|
20065
|
+
WakeupPlaylistCreated.prototype.schedule = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
20066
|
+
|
|
20067
|
+
/**
|
|
20068
|
+
* WakeupPlaylistCreated previewMedia.
|
|
20069
|
+
* @member {string} previewMedia
|
|
20070
|
+
* @memberof WakeupPlaylistCreated
|
|
20071
|
+
* @instance
|
|
20072
|
+
*/
|
|
20073
|
+
WakeupPlaylistCreated.prototype.previewMedia = "";
|
|
20074
|
+
|
|
20075
|
+
/**
|
|
20076
|
+
* WakeupPlaylistCreated previewMediaType.
|
|
20077
|
+
* @member {string} previewMediaType
|
|
20078
|
+
* @memberof WakeupPlaylistCreated
|
|
20079
|
+
* @instance
|
|
20080
|
+
*/
|
|
20081
|
+
WakeupPlaylistCreated.prototype.previewMediaType = "";
|
|
20082
|
+
|
|
20083
|
+
/**
|
|
20084
|
+
* WakeupPlaylistCreated accessGroups.
|
|
20085
|
+
* @member {Array.<contentful.ISlugReference>} accessGroups
|
|
20086
|
+
* @memberof WakeupPlaylistCreated
|
|
20087
|
+
* @instance
|
|
20088
|
+
*/
|
|
20089
|
+
WakeupPlaylistCreated.prototype.accessGroups = $util.emptyArray;
|
|
20090
|
+
|
|
20091
|
+
/**
|
|
20092
|
+
* WakeupPlaylistCreated createdAt.
|
|
20093
|
+
* @member {number|Long} createdAt
|
|
20094
|
+
* @memberof WakeupPlaylistCreated
|
|
20095
|
+
* @instance
|
|
20096
|
+
*/
|
|
20097
|
+
WakeupPlaylistCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
20098
|
+
|
|
20099
|
+
/**
|
|
20100
|
+
* WakeupPlaylistCreated entityId.
|
|
20101
|
+
* @member {number} entityId
|
|
20102
|
+
* @memberof WakeupPlaylistCreated
|
|
20103
|
+
* @instance
|
|
20104
|
+
*/
|
|
20105
|
+
WakeupPlaylistCreated.prototype.entityId = 0;
|
|
20106
|
+
|
|
20107
|
+
/**
|
|
20108
|
+
* Creates a new WakeupPlaylistCreated instance using the specified properties.
|
|
20109
|
+
* @function create
|
|
20110
|
+
* @memberof WakeupPlaylistCreated
|
|
20111
|
+
* @static
|
|
20112
|
+
* @param {IWakeupPlaylistCreated=} [properties] Properties to set
|
|
20113
|
+
* @returns {WakeupPlaylistCreated} WakeupPlaylistCreated instance
|
|
20114
|
+
*/
|
|
20115
|
+
WakeupPlaylistCreated.create = function create(properties) {
|
|
20116
|
+
return new WakeupPlaylistCreated(properties);
|
|
20117
|
+
};
|
|
20118
|
+
|
|
20119
|
+
/**
|
|
20120
|
+
* Encodes the specified WakeupPlaylistCreated message. Does not implicitly {@link WakeupPlaylistCreated.verify|verify} messages.
|
|
20121
|
+
* @function encode
|
|
20122
|
+
* @memberof WakeupPlaylistCreated
|
|
20123
|
+
* @static
|
|
20124
|
+
* @param {IWakeupPlaylistCreated} message WakeupPlaylistCreated message or plain object to encode
|
|
20125
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
20126
|
+
* @returns {$protobuf.Writer} Writer
|
|
20127
|
+
*/
|
|
20128
|
+
WakeupPlaylistCreated.encode = function encode(message, writer) {
|
|
20129
|
+
if (!writer)
|
|
20130
|
+
writer = $Writer.create();
|
|
20131
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
20132
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
20133
|
+
if (message.entityType != null && message.hasOwnProperty("entityType"))
|
|
20134
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.entityType);
|
|
20135
|
+
if (message.schedule != null && message.hasOwnProperty("schedule"))
|
|
20136
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.schedule);
|
|
20137
|
+
if (message.previewMedia != null && message.hasOwnProperty("previewMedia"))
|
|
20138
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.previewMedia);
|
|
20139
|
+
if (message.previewMediaType != null && message.hasOwnProperty("previewMediaType"))
|
|
20140
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.previewMediaType);
|
|
20141
|
+
if (message.accessGroups != null && message.accessGroups.length)
|
|
20142
|
+
for (var i = 0; i < message.accessGroups.length; ++i)
|
|
20143
|
+
$root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
20144
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
20145
|
+
writer.uint32(/* id 7, wireType 0 =*/56).uint64(message.createdAt);
|
|
20146
|
+
if (message.entityId != null && message.hasOwnProperty("entityId"))
|
|
20147
|
+
writer.uint32(/* id 8, wireType 0 =*/64).uint32(message.entityId);
|
|
20148
|
+
return writer;
|
|
20149
|
+
};
|
|
20150
|
+
|
|
20151
|
+
/**
|
|
20152
|
+
* Encodes the specified WakeupPlaylistCreated message, length delimited. Does not implicitly {@link WakeupPlaylistCreated.verify|verify} messages.
|
|
20153
|
+
* @function encodeDelimited
|
|
20154
|
+
* @memberof WakeupPlaylistCreated
|
|
20155
|
+
* @static
|
|
20156
|
+
* @param {IWakeupPlaylistCreated} message WakeupPlaylistCreated message or plain object to encode
|
|
20157
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
20158
|
+
* @returns {$protobuf.Writer} Writer
|
|
20159
|
+
*/
|
|
20160
|
+
WakeupPlaylistCreated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
20161
|
+
return this.encode(message, writer).ldelim();
|
|
20162
|
+
};
|
|
20163
|
+
|
|
20164
|
+
/**
|
|
20165
|
+
* Decodes a WakeupPlaylistCreated message from the specified reader or buffer.
|
|
20166
|
+
* @function decode
|
|
20167
|
+
* @memberof WakeupPlaylistCreated
|
|
20168
|
+
* @static
|
|
20169
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
20170
|
+
* @param {number} [length] Message length if known beforehand
|
|
20171
|
+
* @returns {WakeupPlaylistCreated} WakeupPlaylistCreated
|
|
20172
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
20173
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
20174
|
+
*/
|
|
20175
|
+
WakeupPlaylistCreated.decode = function decode(reader, length) {
|
|
20176
|
+
if (!(reader instanceof $Reader))
|
|
20177
|
+
reader = $Reader.create(reader);
|
|
20178
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.WakeupPlaylistCreated();
|
|
20179
|
+
while (reader.pos < end) {
|
|
20180
|
+
var tag = reader.uint32();
|
|
20181
|
+
switch (tag >>> 3) {
|
|
20182
|
+
case 1:
|
|
20183
|
+
message.slug = reader.string();
|
|
20184
|
+
break;
|
|
20185
|
+
case 2:
|
|
20186
|
+
message.entityType = reader.string();
|
|
20187
|
+
break;
|
|
20188
|
+
case 3:
|
|
20189
|
+
message.schedule = reader.uint64();
|
|
20190
|
+
break;
|
|
20191
|
+
case 4:
|
|
20192
|
+
message.previewMedia = reader.string();
|
|
20193
|
+
break;
|
|
20194
|
+
case 5:
|
|
20195
|
+
message.previewMediaType = reader.string();
|
|
20196
|
+
break;
|
|
20197
|
+
case 6:
|
|
20198
|
+
if (!(message.accessGroups && message.accessGroups.length))
|
|
20199
|
+
message.accessGroups = [];
|
|
20200
|
+
message.accessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
20201
|
+
break;
|
|
20202
|
+
case 7:
|
|
20203
|
+
message.createdAt = reader.uint64();
|
|
20204
|
+
break;
|
|
20205
|
+
case 8:
|
|
20206
|
+
message.entityId = reader.uint32();
|
|
20207
|
+
break;
|
|
20208
|
+
default:
|
|
20209
|
+
reader.skipType(tag & 7);
|
|
20210
|
+
break;
|
|
20211
|
+
}
|
|
20212
|
+
}
|
|
20213
|
+
return message;
|
|
20214
|
+
};
|
|
20215
|
+
|
|
20216
|
+
/**
|
|
20217
|
+
* Decodes a WakeupPlaylistCreated message from the specified reader or buffer, length delimited.
|
|
20218
|
+
* @function decodeDelimited
|
|
20219
|
+
* @memberof WakeupPlaylistCreated
|
|
20220
|
+
* @static
|
|
20221
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
20222
|
+
* @returns {WakeupPlaylistCreated} WakeupPlaylistCreated
|
|
20223
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
20224
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
20225
|
+
*/
|
|
20226
|
+
WakeupPlaylistCreated.decodeDelimited = function decodeDelimited(reader) {
|
|
20227
|
+
if (!(reader instanceof $Reader))
|
|
20228
|
+
reader = new $Reader(reader);
|
|
20229
|
+
return this.decode(reader, reader.uint32());
|
|
20230
|
+
};
|
|
20231
|
+
|
|
20232
|
+
/**
|
|
20233
|
+
* Verifies a WakeupPlaylistCreated message.
|
|
20234
|
+
* @function verify
|
|
20235
|
+
* @memberof WakeupPlaylistCreated
|
|
20236
|
+
* @static
|
|
20237
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
20238
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
20239
|
+
*/
|
|
20240
|
+
WakeupPlaylistCreated.verify = function verify(message) {
|
|
20241
|
+
if (typeof message !== "object" || message === null)
|
|
20242
|
+
return "object expected";
|
|
20243
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
20244
|
+
if (!$util.isString(message.slug))
|
|
20245
|
+
return "slug: string expected";
|
|
20246
|
+
if (message.entityType != null && message.hasOwnProperty("entityType"))
|
|
20247
|
+
if (!$util.isString(message.entityType))
|
|
20248
|
+
return "entityType: string expected";
|
|
20249
|
+
if (message.schedule != null && message.hasOwnProperty("schedule"))
|
|
20250
|
+
if (!$util.isInteger(message.schedule) && !(message.schedule && $util.isInteger(message.schedule.low) && $util.isInteger(message.schedule.high)))
|
|
20251
|
+
return "schedule: integer|Long expected";
|
|
20252
|
+
if (message.previewMedia != null && message.hasOwnProperty("previewMedia"))
|
|
20253
|
+
if (!$util.isString(message.previewMedia))
|
|
20254
|
+
return "previewMedia: string expected";
|
|
20255
|
+
if (message.previewMediaType != null && message.hasOwnProperty("previewMediaType"))
|
|
20256
|
+
if (!$util.isString(message.previewMediaType))
|
|
20257
|
+
return "previewMediaType: string expected";
|
|
20258
|
+
if (message.accessGroups != null && message.hasOwnProperty("accessGroups")) {
|
|
20259
|
+
if (!Array.isArray(message.accessGroups))
|
|
20260
|
+
return "accessGroups: array expected";
|
|
20261
|
+
for (var i = 0; i < message.accessGroups.length; ++i) {
|
|
20262
|
+
var error = $root.contentful.SlugReference.verify(message.accessGroups[i]);
|
|
20263
|
+
if (error)
|
|
20264
|
+
return "accessGroups." + error;
|
|
20265
|
+
}
|
|
20266
|
+
}
|
|
20267
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
20268
|
+
if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
|
|
20269
|
+
return "createdAt: integer|Long expected";
|
|
20270
|
+
if (message.entityId != null && message.hasOwnProperty("entityId"))
|
|
20271
|
+
if (!$util.isInteger(message.entityId))
|
|
20272
|
+
return "entityId: integer expected";
|
|
20273
|
+
return null;
|
|
20274
|
+
};
|
|
20275
|
+
|
|
20276
|
+
/**
|
|
20277
|
+
* Creates a WakeupPlaylistCreated message from a plain object. Also converts values to their respective internal types.
|
|
20278
|
+
* @function fromObject
|
|
20279
|
+
* @memberof WakeupPlaylistCreated
|
|
20280
|
+
* @static
|
|
20281
|
+
* @param {Object.<string,*>} object Plain object
|
|
20282
|
+
* @returns {WakeupPlaylistCreated} WakeupPlaylistCreated
|
|
20283
|
+
*/
|
|
20284
|
+
WakeupPlaylistCreated.fromObject = function fromObject(object) {
|
|
20285
|
+
if (object instanceof $root.WakeupPlaylistCreated)
|
|
20286
|
+
return object;
|
|
20287
|
+
var message = new $root.WakeupPlaylistCreated();
|
|
20288
|
+
if (object.slug != null)
|
|
20289
|
+
message.slug = String(object.slug);
|
|
20290
|
+
if (object.entityType != null)
|
|
20291
|
+
message.entityType = String(object.entityType);
|
|
20292
|
+
if (object.schedule != null)
|
|
20293
|
+
if ($util.Long)
|
|
20294
|
+
(message.schedule = $util.Long.fromValue(object.schedule)).unsigned = true;
|
|
20295
|
+
else if (typeof object.schedule === "string")
|
|
20296
|
+
message.schedule = parseInt(object.schedule, 10);
|
|
20297
|
+
else if (typeof object.schedule === "number")
|
|
20298
|
+
message.schedule = object.schedule;
|
|
20299
|
+
else if (typeof object.schedule === "object")
|
|
20300
|
+
message.schedule = new $util.LongBits(object.schedule.low >>> 0, object.schedule.high >>> 0).toNumber(true);
|
|
20301
|
+
if (object.previewMedia != null)
|
|
20302
|
+
message.previewMedia = String(object.previewMedia);
|
|
20303
|
+
if (object.previewMediaType != null)
|
|
20304
|
+
message.previewMediaType = String(object.previewMediaType);
|
|
20305
|
+
if (object.accessGroups) {
|
|
20306
|
+
if (!Array.isArray(object.accessGroups))
|
|
20307
|
+
throw TypeError(".WakeupPlaylistCreated.accessGroups: array expected");
|
|
20308
|
+
message.accessGroups = [];
|
|
20309
|
+
for (var i = 0; i < object.accessGroups.length; ++i) {
|
|
20310
|
+
if (typeof object.accessGroups[i] !== "object")
|
|
20311
|
+
throw TypeError(".WakeupPlaylistCreated.accessGroups: object expected");
|
|
20312
|
+
message.accessGroups[i] = $root.contentful.SlugReference.fromObject(object.accessGroups[i]);
|
|
20313
|
+
}
|
|
20314
|
+
}
|
|
20315
|
+
if (object.createdAt != null)
|
|
20316
|
+
if ($util.Long)
|
|
20317
|
+
(message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
|
|
20318
|
+
else if (typeof object.createdAt === "string")
|
|
20319
|
+
message.createdAt = parseInt(object.createdAt, 10);
|
|
20320
|
+
else if (typeof object.createdAt === "number")
|
|
20321
|
+
message.createdAt = object.createdAt;
|
|
20322
|
+
else if (typeof object.createdAt === "object")
|
|
20323
|
+
message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
|
|
20324
|
+
if (object.entityId != null)
|
|
20325
|
+
message.entityId = object.entityId >>> 0;
|
|
20326
|
+
return message;
|
|
20327
|
+
};
|
|
20328
|
+
|
|
20329
|
+
/**
|
|
20330
|
+
* Creates a plain object from a WakeupPlaylistCreated message. Also converts values to other types if specified.
|
|
20331
|
+
* @function toObject
|
|
20332
|
+
* @memberof WakeupPlaylistCreated
|
|
20333
|
+
* @static
|
|
20334
|
+
* @param {WakeupPlaylistCreated} message WakeupPlaylistCreated
|
|
20335
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
20336
|
+
* @returns {Object.<string,*>} Plain object
|
|
20337
|
+
*/
|
|
20338
|
+
WakeupPlaylistCreated.toObject = function toObject(message, options) {
|
|
20339
|
+
if (!options)
|
|
20340
|
+
options = {};
|
|
20341
|
+
var object = {};
|
|
20342
|
+
if (options.arrays || options.defaults)
|
|
20343
|
+
object.accessGroups = [];
|
|
20344
|
+
if (options.defaults) {
|
|
20345
|
+
object.slug = "";
|
|
20346
|
+
object.entityType = "";
|
|
20347
|
+
if ($util.Long) {
|
|
20348
|
+
var long = new $util.Long(0, 0, true);
|
|
20349
|
+
object.schedule = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
20350
|
+
} else
|
|
20351
|
+
object.schedule = options.longs === String ? "0" : 0;
|
|
20352
|
+
object.previewMedia = "";
|
|
20353
|
+
object.previewMediaType = "";
|
|
20354
|
+
if ($util.Long) {
|
|
20355
|
+
var long = new $util.Long(0, 0, true);
|
|
20356
|
+
object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
20357
|
+
} else
|
|
20358
|
+
object.createdAt = options.longs === String ? "0" : 0;
|
|
20359
|
+
object.entityId = 0;
|
|
20360
|
+
}
|
|
20361
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
20362
|
+
object.slug = message.slug;
|
|
20363
|
+
if (message.entityType != null && message.hasOwnProperty("entityType"))
|
|
20364
|
+
object.entityType = message.entityType;
|
|
20365
|
+
if (message.schedule != null && message.hasOwnProperty("schedule"))
|
|
20366
|
+
if (typeof message.schedule === "number")
|
|
20367
|
+
object.schedule = options.longs === String ? String(message.schedule) : message.schedule;
|
|
20368
|
+
else
|
|
20369
|
+
object.schedule = options.longs === String ? $util.Long.prototype.toString.call(message.schedule) : options.longs === Number ? new $util.LongBits(message.schedule.low >>> 0, message.schedule.high >>> 0).toNumber(true) : message.schedule;
|
|
20370
|
+
if (message.previewMedia != null && message.hasOwnProperty("previewMedia"))
|
|
20371
|
+
object.previewMedia = message.previewMedia;
|
|
20372
|
+
if (message.previewMediaType != null && message.hasOwnProperty("previewMediaType"))
|
|
20373
|
+
object.previewMediaType = message.previewMediaType;
|
|
20374
|
+
if (message.accessGroups && message.accessGroups.length) {
|
|
20375
|
+
object.accessGroups = [];
|
|
20376
|
+
for (var j = 0; j < message.accessGroups.length; ++j)
|
|
20377
|
+
object.accessGroups[j] = $root.contentful.SlugReference.toObject(message.accessGroups[j], options);
|
|
20378
|
+
}
|
|
20379
|
+
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
20380
|
+
if (typeof message.createdAt === "number")
|
|
20381
|
+
object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
|
|
20382
|
+
else
|
|
20383
|
+
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;
|
|
20384
|
+
if (message.entityId != null && message.hasOwnProperty("entityId"))
|
|
20385
|
+
object.entityId = message.entityId;
|
|
20386
|
+
return object;
|
|
20387
|
+
};
|
|
20388
|
+
|
|
20389
|
+
/**
|
|
20390
|
+
* Converts this WakeupPlaylistCreated to JSON.
|
|
20391
|
+
* @function toJSON
|
|
20392
|
+
* @memberof WakeupPlaylistCreated
|
|
20393
|
+
* @instance
|
|
20394
|
+
* @returns {Object.<string,*>} JSON object
|
|
20395
|
+
*/
|
|
20396
|
+
WakeupPlaylistCreated.prototype.toJSON = function toJSON() {
|
|
20397
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
20398
|
+
};
|
|
20399
|
+
|
|
20400
|
+
return WakeupPlaylistCreated;
|
|
20401
|
+
})();
|
|
20402
|
+
|
|
20403
|
+
$root.WakeupPlaylistUpdated = (function() {
|
|
20404
|
+
|
|
20405
|
+
/**
|
|
20406
|
+
* Properties of a WakeupPlaylistUpdated.
|
|
20407
|
+
* @exports IWakeupPlaylistUpdated
|
|
20408
|
+
* @interface IWakeupPlaylistUpdated
|
|
20409
|
+
* @property {string|null} [slug] WakeupPlaylistUpdated slug
|
|
20410
|
+
* @property {string|null} [entityType] WakeupPlaylistUpdated entityType
|
|
20411
|
+
* @property {number|Long|null} [schedule] WakeupPlaylistUpdated schedule
|
|
20412
|
+
* @property {string|null} [previewMedia] WakeupPlaylistUpdated previewMedia
|
|
20413
|
+
* @property {string|null} [previewMediaType] WakeupPlaylistUpdated previewMediaType
|
|
20414
|
+
* @property {Array.<contentful.ISlugReference>|null} [accessGroups] WakeupPlaylistUpdated accessGroups
|
|
20415
|
+
* @property {number|Long|null} [updatedAt] WakeupPlaylistUpdated updatedAt
|
|
20416
|
+
* @property {number|null} [entityId] WakeupPlaylistUpdated entityId
|
|
20417
|
+
*/
|
|
20418
|
+
|
|
20419
|
+
/**
|
|
20420
|
+
* Constructs a new WakeupPlaylistUpdated.
|
|
20421
|
+
* @exports WakeupPlaylistUpdated
|
|
20422
|
+
* @classdesc Represents a WakeupPlaylistUpdated.
|
|
20423
|
+
* @implements IWakeupPlaylistUpdated
|
|
20424
|
+
* @constructor
|
|
20425
|
+
* @param {IWakeupPlaylistUpdated=} [properties] Properties to set
|
|
20426
|
+
*/
|
|
20427
|
+
function WakeupPlaylistUpdated(properties) {
|
|
20428
|
+
this.accessGroups = [];
|
|
20429
|
+
if (properties)
|
|
20430
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
20431
|
+
if (properties[keys[i]] != null)
|
|
20432
|
+
this[keys[i]] = properties[keys[i]];
|
|
20433
|
+
}
|
|
20434
|
+
|
|
20435
|
+
/**
|
|
20436
|
+
* WakeupPlaylistUpdated slug.
|
|
20437
|
+
* @member {string} slug
|
|
20438
|
+
* @memberof WakeupPlaylistUpdated
|
|
20439
|
+
* @instance
|
|
20440
|
+
*/
|
|
20441
|
+
WakeupPlaylistUpdated.prototype.slug = "";
|
|
20442
|
+
|
|
20443
|
+
/**
|
|
20444
|
+
* WakeupPlaylistUpdated entityType.
|
|
20445
|
+
* @member {string} entityType
|
|
20446
|
+
* @memberof WakeupPlaylistUpdated
|
|
20447
|
+
* @instance
|
|
20448
|
+
*/
|
|
20449
|
+
WakeupPlaylistUpdated.prototype.entityType = "";
|
|
20450
|
+
|
|
20451
|
+
/**
|
|
20452
|
+
* WakeupPlaylistUpdated schedule.
|
|
20453
|
+
* @member {number|Long} schedule
|
|
20454
|
+
* @memberof WakeupPlaylistUpdated
|
|
20455
|
+
* @instance
|
|
20456
|
+
*/
|
|
20457
|
+
WakeupPlaylistUpdated.prototype.schedule = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
20458
|
+
|
|
20459
|
+
/**
|
|
20460
|
+
* WakeupPlaylistUpdated previewMedia.
|
|
20461
|
+
* @member {string} previewMedia
|
|
20462
|
+
* @memberof WakeupPlaylistUpdated
|
|
20463
|
+
* @instance
|
|
20464
|
+
*/
|
|
20465
|
+
WakeupPlaylistUpdated.prototype.previewMedia = "";
|
|
20466
|
+
|
|
20467
|
+
/**
|
|
20468
|
+
* WakeupPlaylistUpdated previewMediaType.
|
|
20469
|
+
* @member {string} previewMediaType
|
|
20470
|
+
* @memberof WakeupPlaylistUpdated
|
|
20471
|
+
* @instance
|
|
20472
|
+
*/
|
|
20473
|
+
WakeupPlaylistUpdated.prototype.previewMediaType = "";
|
|
20474
|
+
|
|
20475
|
+
/**
|
|
20476
|
+
* WakeupPlaylistUpdated accessGroups.
|
|
20477
|
+
* @member {Array.<contentful.ISlugReference>} accessGroups
|
|
20478
|
+
* @memberof WakeupPlaylistUpdated
|
|
20479
|
+
* @instance
|
|
20480
|
+
*/
|
|
20481
|
+
WakeupPlaylistUpdated.prototype.accessGroups = $util.emptyArray;
|
|
20482
|
+
|
|
20483
|
+
/**
|
|
20484
|
+
* WakeupPlaylistUpdated updatedAt.
|
|
20485
|
+
* @member {number|Long} updatedAt
|
|
20486
|
+
* @memberof WakeupPlaylistUpdated
|
|
20487
|
+
* @instance
|
|
20488
|
+
*/
|
|
20489
|
+
WakeupPlaylistUpdated.prototype.updatedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
20490
|
+
|
|
20491
|
+
/**
|
|
20492
|
+
* WakeupPlaylistUpdated entityId.
|
|
20493
|
+
* @member {number} entityId
|
|
20494
|
+
* @memberof WakeupPlaylistUpdated
|
|
20495
|
+
* @instance
|
|
20496
|
+
*/
|
|
20497
|
+
WakeupPlaylistUpdated.prototype.entityId = 0;
|
|
20498
|
+
|
|
20499
|
+
/**
|
|
20500
|
+
* Creates a new WakeupPlaylistUpdated instance using the specified properties.
|
|
20501
|
+
* @function create
|
|
20502
|
+
* @memberof WakeupPlaylistUpdated
|
|
20503
|
+
* @static
|
|
20504
|
+
* @param {IWakeupPlaylistUpdated=} [properties] Properties to set
|
|
20505
|
+
* @returns {WakeupPlaylistUpdated} WakeupPlaylistUpdated instance
|
|
20506
|
+
*/
|
|
20507
|
+
WakeupPlaylistUpdated.create = function create(properties) {
|
|
20508
|
+
return new WakeupPlaylistUpdated(properties);
|
|
20509
|
+
};
|
|
20510
|
+
|
|
20511
|
+
/**
|
|
20512
|
+
* Encodes the specified WakeupPlaylistUpdated message. Does not implicitly {@link WakeupPlaylistUpdated.verify|verify} messages.
|
|
20513
|
+
* @function encode
|
|
20514
|
+
* @memberof WakeupPlaylistUpdated
|
|
20515
|
+
* @static
|
|
20516
|
+
* @param {IWakeupPlaylistUpdated} message WakeupPlaylistUpdated message or plain object to encode
|
|
20517
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
20518
|
+
* @returns {$protobuf.Writer} Writer
|
|
20519
|
+
*/
|
|
20520
|
+
WakeupPlaylistUpdated.encode = function encode(message, writer) {
|
|
20521
|
+
if (!writer)
|
|
20522
|
+
writer = $Writer.create();
|
|
20523
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
20524
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
20525
|
+
if (message.entityType != null && message.hasOwnProperty("entityType"))
|
|
20526
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.entityType);
|
|
20527
|
+
if (message.schedule != null && message.hasOwnProperty("schedule"))
|
|
20528
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.schedule);
|
|
20529
|
+
if (message.previewMedia != null && message.hasOwnProperty("previewMedia"))
|
|
20530
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.previewMedia);
|
|
20531
|
+
if (message.previewMediaType != null && message.hasOwnProperty("previewMediaType"))
|
|
20532
|
+
writer.uint32(/* id 5, wireType 2 =*/42).string(message.previewMediaType);
|
|
20533
|
+
if (message.accessGroups != null && message.accessGroups.length)
|
|
20534
|
+
for (var i = 0; i < message.accessGroups.length; ++i)
|
|
20535
|
+
$root.contentful.SlugReference.encode(message.accessGroups[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
20536
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
20537
|
+
writer.uint32(/* id 7, wireType 0 =*/56).uint64(message.updatedAt);
|
|
20538
|
+
if (message.entityId != null && message.hasOwnProperty("entityId"))
|
|
20539
|
+
writer.uint32(/* id 8, wireType 0 =*/64).uint32(message.entityId);
|
|
20540
|
+
return writer;
|
|
20541
|
+
};
|
|
20542
|
+
|
|
20543
|
+
/**
|
|
20544
|
+
* Encodes the specified WakeupPlaylistUpdated message, length delimited. Does not implicitly {@link WakeupPlaylistUpdated.verify|verify} messages.
|
|
20545
|
+
* @function encodeDelimited
|
|
20546
|
+
* @memberof WakeupPlaylistUpdated
|
|
20547
|
+
* @static
|
|
20548
|
+
* @param {IWakeupPlaylistUpdated} message WakeupPlaylistUpdated message or plain object to encode
|
|
20549
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
20550
|
+
* @returns {$protobuf.Writer} Writer
|
|
20551
|
+
*/
|
|
20552
|
+
WakeupPlaylistUpdated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
20553
|
+
return this.encode(message, writer).ldelim();
|
|
20554
|
+
};
|
|
20555
|
+
|
|
20556
|
+
/**
|
|
20557
|
+
* Decodes a WakeupPlaylistUpdated message from the specified reader or buffer.
|
|
20558
|
+
* @function decode
|
|
20559
|
+
* @memberof WakeupPlaylistUpdated
|
|
20560
|
+
* @static
|
|
20561
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
20562
|
+
* @param {number} [length] Message length if known beforehand
|
|
20563
|
+
* @returns {WakeupPlaylistUpdated} WakeupPlaylistUpdated
|
|
20564
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
20565
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
20566
|
+
*/
|
|
20567
|
+
WakeupPlaylistUpdated.decode = function decode(reader, length) {
|
|
20568
|
+
if (!(reader instanceof $Reader))
|
|
20569
|
+
reader = $Reader.create(reader);
|
|
20570
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.WakeupPlaylistUpdated();
|
|
20571
|
+
while (reader.pos < end) {
|
|
20572
|
+
var tag = reader.uint32();
|
|
20573
|
+
switch (tag >>> 3) {
|
|
20574
|
+
case 1:
|
|
20575
|
+
message.slug = reader.string();
|
|
20576
|
+
break;
|
|
20577
|
+
case 2:
|
|
20578
|
+
message.entityType = reader.string();
|
|
20579
|
+
break;
|
|
20580
|
+
case 3:
|
|
20581
|
+
message.schedule = reader.uint64();
|
|
20582
|
+
break;
|
|
20583
|
+
case 4:
|
|
20584
|
+
message.previewMedia = reader.string();
|
|
20585
|
+
break;
|
|
20586
|
+
case 5:
|
|
20587
|
+
message.previewMediaType = reader.string();
|
|
20588
|
+
break;
|
|
20589
|
+
case 6:
|
|
20590
|
+
if (!(message.accessGroups && message.accessGroups.length))
|
|
20591
|
+
message.accessGroups = [];
|
|
20592
|
+
message.accessGroups.push($root.contentful.SlugReference.decode(reader, reader.uint32()));
|
|
20593
|
+
break;
|
|
20594
|
+
case 7:
|
|
20595
|
+
message.updatedAt = reader.uint64();
|
|
20596
|
+
break;
|
|
20597
|
+
case 8:
|
|
20598
|
+
message.entityId = reader.uint32();
|
|
20599
|
+
break;
|
|
20600
|
+
default:
|
|
20601
|
+
reader.skipType(tag & 7);
|
|
20602
|
+
break;
|
|
20603
|
+
}
|
|
20604
|
+
}
|
|
20605
|
+
return message;
|
|
20606
|
+
};
|
|
20607
|
+
|
|
20608
|
+
/**
|
|
20609
|
+
* Decodes a WakeupPlaylistUpdated message from the specified reader or buffer, length delimited.
|
|
20610
|
+
* @function decodeDelimited
|
|
20611
|
+
* @memberof WakeupPlaylistUpdated
|
|
20612
|
+
* @static
|
|
20613
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
20614
|
+
* @returns {WakeupPlaylistUpdated} WakeupPlaylistUpdated
|
|
20615
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
20616
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
20617
|
+
*/
|
|
20618
|
+
WakeupPlaylistUpdated.decodeDelimited = function decodeDelimited(reader) {
|
|
20619
|
+
if (!(reader instanceof $Reader))
|
|
20620
|
+
reader = new $Reader(reader);
|
|
20621
|
+
return this.decode(reader, reader.uint32());
|
|
20622
|
+
};
|
|
20623
|
+
|
|
20624
|
+
/**
|
|
20625
|
+
* Verifies a WakeupPlaylistUpdated message.
|
|
20626
|
+
* @function verify
|
|
20627
|
+
* @memberof WakeupPlaylistUpdated
|
|
20628
|
+
* @static
|
|
20629
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
20630
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
20631
|
+
*/
|
|
20632
|
+
WakeupPlaylistUpdated.verify = function verify(message) {
|
|
20633
|
+
if (typeof message !== "object" || message === null)
|
|
20634
|
+
return "object expected";
|
|
20635
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
20636
|
+
if (!$util.isString(message.slug))
|
|
20637
|
+
return "slug: string expected";
|
|
20638
|
+
if (message.entityType != null && message.hasOwnProperty("entityType"))
|
|
20639
|
+
if (!$util.isString(message.entityType))
|
|
20640
|
+
return "entityType: string expected";
|
|
20641
|
+
if (message.schedule != null && message.hasOwnProperty("schedule"))
|
|
20642
|
+
if (!$util.isInteger(message.schedule) && !(message.schedule && $util.isInteger(message.schedule.low) && $util.isInteger(message.schedule.high)))
|
|
20643
|
+
return "schedule: integer|Long expected";
|
|
20644
|
+
if (message.previewMedia != null && message.hasOwnProperty("previewMedia"))
|
|
20645
|
+
if (!$util.isString(message.previewMedia))
|
|
20646
|
+
return "previewMedia: string expected";
|
|
20647
|
+
if (message.previewMediaType != null && message.hasOwnProperty("previewMediaType"))
|
|
20648
|
+
if (!$util.isString(message.previewMediaType))
|
|
20649
|
+
return "previewMediaType: string expected";
|
|
20650
|
+
if (message.accessGroups != null && message.hasOwnProperty("accessGroups")) {
|
|
20651
|
+
if (!Array.isArray(message.accessGroups))
|
|
20652
|
+
return "accessGroups: array expected";
|
|
20653
|
+
for (var i = 0; i < message.accessGroups.length; ++i) {
|
|
20654
|
+
var error = $root.contentful.SlugReference.verify(message.accessGroups[i]);
|
|
20655
|
+
if (error)
|
|
20656
|
+
return "accessGroups." + error;
|
|
20657
|
+
}
|
|
20658
|
+
}
|
|
20659
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
20660
|
+
if (!$util.isInteger(message.updatedAt) && !(message.updatedAt && $util.isInteger(message.updatedAt.low) && $util.isInteger(message.updatedAt.high)))
|
|
20661
|
+
return "updatedAt: integer|Long expected";
|
|
20662
|
+
if (message.entityId != null && message.hasOwnProperty("entityId"))
|
|
20663
|
+
if (!$util.isInteger(message.entityId))
|
|
20664
|
+
return "entityId: integer expected";
|
|
20665
|
+
return null;
|
|
20666
|
+
};
|
|
20667
|
+
|
|
20668
|
+
/**
|
|
20669
|
+
* Creates a WakeupPlaylistUpdated message from a plain object. Also converts values to their respective internal types.
|
|
20670
|
+
* @function fromObject
|
|
20671
|
+
* @memberof WakeupPlaylistUpdated
|
|
20672
|
+
* @static
|
|
20673
|
+
* @param {Object.<string,*>} object Plain object
|
|
20674
|
+
* @returns {WakeupPlaylistUpdated} WakeupPlaylistUpdated
|
|
20675
|
+
*/
|
|
20676
|
+
WakeupPlaylistUpdated.fromObject = function fromObject(object) {
|
|
20677
|
+
if (object instanceof $root.WakeupPlaylistUpdated)
|
|
20678
|
+
return object;
|
|
20679
|
+
var message = new $root.WakeupPlaylistUpdated();
|
|
20680
|
+
if (object.slug != null)
|
|
20681
|
+
message.slug = String(object.slug);
|
|
20682
|
+
if (object.entityType != null)
|
|
20683
|
+
message.entityType = String(object.entityType);
|
|
20684
|
+
if (object.schedule != null)
|
|
20685
|
+
if ($util.Long)
|
|
20686
|
+
(message.schedule = $util.Long.fromValue(object.schedule)).unsigned = true;
|
|
20687
|
+
else if (typeof object.schedule === "string")
|
|
20688
|
+
message.schedule = parseInt(object.schedule, 10);
|
|
20689
|
+
else if (typeof object.schedule === "number")
|
|
20690
|
+
message.schedule = object.schedule;
|
|
20691
|
+
else if (typeof object.schedule === "object")
|
|
20692
|
+
message.schedule = new $util.LongBits(object.schedule.low >>> 0, object.schedule.high >>> 0).toNumber(true);
|
|
20693
|
+
if (object.previewMedia != null)
|
|
20694
|
+
message.previewMedia = String(object.previewMedia);
|
|
20695
|
+
if (object.previewMediaType != null)
|
|
20696
|
+
message.previewMediaType = String(object.previewMediaType);
|
|
20697
|
+
if (object.accessGroups) {
|
|
20698
|
+
if (!Array.isArray(object.accessGroups))
|
|
20699
|
+
throw TypeError(".WakeupPlaylistUpdated.accessGroups: array expected");
|
|
20700
|
+
message.accessGroups = [];
|
|
20701
|
+
for (var i = 0; i < object.accessGroups.length; ++i) {
|
|
20702
|
+
if (typeof object.accessGroups[i] !== "object")
|
|
20703
|
+
throw TypeError(".WakeupPlaylistUpdated.accessGroups: object expected");
|
|
20704
|
+
message.accessGroups[i] = $root.contentful.SlugReference.fromObject(object.accessGroups[i]);
|
|
20705
|
+
}
|
|
20706
|
+
}
|
|
20707
|
+
if (object.updatedAt != null)
|
|
20708
|
+
if ($util.Long)
|
|
20709
|
+
(message.updatedAt = $util.Long.fromValue(object.updatedAt)).unsigned = true;
|
|
20710
|
+
else if (typeof object.updatedAt === "string")
|
|
20711
|
+
message.updatedAt = parseInt(object.updatedAt, 10);
|
|
20712
|
+
else if (typeof object.updatedAt === "number")
|
|
20713
|
+
message.updatedAt = object.updatedAt;
|
|
20714
|
+
else if (typeof object.updatedAt === "object")
|
|
20715
|
+
message.updatedAt = new $util.LongBits(object.updatedAt.low >>> 0, object.updatedAt.high >>> 0).toNumber(true);
|
|
20716
|
+
if (object.entityId != null)
|
|
20717
|
+
message.entityId = object.entityId >>> 0;
|
|
20718
|
+
return message;
|
|
20719
|
+
};
|
|
20720
|
+
|
|
20721
|
+
/**
|
|
20722
|
+
* Creates a plain object from a WakeupPlaylistUpdated message. Also converts values to other types if specified.
|
|
20723
|
+
* @function toObject
|
|
20724
|
+
* @memberof WakeupPlaylistUpdated
|
|
20725
|
+
* @static
|
|
20726
|
+
* @param {WakeupPlaylistUpdated} message WakeupPlaylistUpdated
|
|
20727
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
20728
|
+
* @returns {Object.<string,*>} Plain object
|
|
20729
|
+
*/
|
|
20730
|
+
WakeupPlaylistUpdated.toObject = function toObject(message, options) {
|
|
20731
|
+
if (!options)
|
|
20732
|
+
options = {};
|
|
20733
|
+
var object = {};
|
|
20734
|
+
if (options.arrays || options.defaults)
|
|
20735
|
+
object.accessGroups = [];
|
|
20736
|
+
if (options.defaults) {
|
|
20737
|
+
object.slug = "";
|
|
20738
|
+
object.entityType = "";
|
|
20739
|
+
if ($util.Long) {
|
|
20740
|
+
var long = new $util.Long(0, 0, true);
|
|
20741
|
+
object.schedule = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
20742
|
+
} else
|
|
20743
|
+
object.schedule = options.longs === String ? "0" : 0;
|
|
20744
|
+
object.previewMedia = "";
|
|
20745
|
+
object.previewMediaType = "";
|
|
20746
|
+
if ($util.Long) {
|
|
20747
|
+
var long = new $util.Long(0, 0, true);
|
|
20748
|
+
object.updatedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
20749
|
+
} else
|
|
20750
|
+
object.updatedAt = options.longs === String ? "0" : 0;
|
|
20751
|
+
object.entityId = 0;
|
|
20752
|
+
}
|
|
20753
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
20754
|
+
object.slug = message.slug;
|
|
20755
|
+
if (message.entityType != null && message.hasOwnProperty("entityType"))
|
|
20756
|
+
object.entityType = message.entityType;
|
|
20757
|
+
if (message.schedule != null && message.hasOwnProperty("schedule"))
|
|
20758
|
+
if (typeof message.schedule === "number")
|
|
20759
|
+
object.schedule = options.longs === String ? String(message.schedule) : message.schedule;
|
|
20760
|
+
else
|
|
20761
|
+
object.schedule = options.longs === String ? $util.Long.prototype.toString.call(message.schedule) : options.longs === Number ? new $util.LongBits(message.schedule.low >>> 0, message.schedule.high >>> 0).toNumber(true) : message.schedule;
|
|
20762
|
+
if (message.previewMedia != null && message.hasOwnProperty("previewMedia"))
|
|
20763
|
+
object.previewMedia = message.previewMedia;
|
|
20764
|
+
if (message.previewMediaType != null && message.hasOwnProperty("previewMediaType"))
|
|
20765
|
+
object.previewMediaType = message.previewMediaType;
|
|
20766
|
+
if (message.accessGroups && message.accessGroups.length) {
|
|
20767
|
+
object.accessGroups = [];
|
|
20768
|
+
for (var j = 0; j < message.accessGroups.length; ++j)
|
|
20769
|
+
object.accessGroups[j] = $root.contentful.SlugReference.toObject(message.accessGroups[j], options);
|
|
20770
|
+
}
|
|
20771
|
+
if (message.updatedAt != null && message.hasOwnProperty("updatedAt"))
|
|
20772
|
+
if (typeof message.updatedAt === "number")
|
|
20773
|
+
object.updatedAt = options.longs === String ? String(message.updatedAt) : message.updatedAt;
|
|
20774
|
+
else
|
|
20775
|
+
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;
|
|
20776
|
+
if (message.entityId != null && message.hasOwnProperty("entityId"))
|
|
20777
|
+
object.entityId = message.entityId;
|
|
20778
|
+
return object;
|
|
20779
|
+
};
|
|
20780
|
+
|
|
20781
|
+
/**
|
|
20782
|
+
* Converts this WakeupPlaylistUpdated to JSON.
|
|
20783
|
+
* @function toJSON
|
|
20784
|
+
* @memberof WakeupPlaylistUpdated
|
|
20785
|
+
* @instance
|
|
20786
|
+
* @returns {Object.<string,*>} JSON object
|
|
20787
|
+
*/
|
|
20788
|
+
WakeupPlaylistUpdated.prototype.toJSON = function toJSON() {
|
|
20789
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
20790
|
+
};
|
|
20791
|
+
|
|
20792
|
+
return WakeupPlaylistUpdated;
|
|
20793
|
+
})();
|
|
20794
|
+
|
|
20795
|
+
$root.WakeupPlaylistDeleted = (function() {
|
|
20796
|
+
|
|
20797
|
+
/**
|
|
20798
|
+
* Properties of a WakeupPlaylistDeleted.
|
|
20799
|
+
* @exports IWakeupPlaylistDeleted
|
|
20800
|
+
* @interface IWakeupPlaylistDeleted
|
|
20801
|
+
* @property {string|null} [slug] WakeupPlaylistDeleted slug
|
|
20802
|
+
* @property {string|null} [entityType] WakeupPlaylistDeleted entityType
|
|
20803
|
+
* @property {number|Long|null} [deletedAt] WakeupPlaylistDeleted deletedAt
|
|
20804
|
+
* @property {number|null} [entityId] WakeupPlaylistDeleted entityId
|
|
20805
|
+
*/
|
|
20806
|
+
|
|
20807
|
+
/**
|
|
20808
|
+
* Constructs a new WakeupPlaylistDeleted.
|
|
20809
|
+
* @exports WakeupPlaylistDeleted
|
|
20810
|
+
* @classdesc Represents a WakeupPlaylistDeleted.
|
|
20811
|
+
* @implements IWakeupPlaylistDeleted
|
|
20812
|
+
* @constructor
|
|
20813
|
+
* @param {IWakeupPlaylistDeleted=} [properties] Properties to set
|
|
20814
|
+
*/
|
|
20815
|
+
function WakeupPlaylistDeleted(properties) {
|
|
20816
|
+
if (properties)
|
|
20817
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
20818
|
+
if (properties[keys[i]] != null)
|
|
20819
|
+
this[keys[i]] = properties[keys[i]];
|
|
20820
|
+
}
|
|
20821
|
+
|
|
20822
|
+
/**
|
|
20823
|
+
* WakeupPlaylistDeleted slug.
|
|
20824
|
+
* @member {string} slug
|
|
20825
|
+
* @memberof WakeupPlaylistDeleted
|
|
20826
|
+
* @instance
|
|
20827
|
+
*/
|
|
20828
|
+
WakeupPlaylistDeleted.prototype.slug = "";
|
|
20829
|
+
|
|
20830
|
+
/**
|
|
20831
|
+
* WakeupPlaylistDeleted entityType.
|
|
20832
|
+
* @member {string} entityType
|
|
20833
|
+
* @memberof WakeupPlaylistDeleted
|
|
20834
|
+
* @instance
|
|
20835
|
+
*/
|
|
20836
|
+
WakeupPlaylistDeleted.prototype.entityType = "";
|
|
20837
|
+
|
|
20838
|
+
/**
|
|
20839
|
+
* WakeupPlaylistDeleted deletedAt.
|
|
20840
|
+
* @member {number|Long} deletedAt
|
|
20841
|
+
* @memberof WakeupPlaylistDeleted
|
|
20842
|
+
* @instance
|
|
20843
|
+
*/
|
|
20844
|
+
WakeupPlaylistDeleted.prototype.deletedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
20845
|
+
|
|
20846
|
+
/**
|
|
20847
|
+
* WakeupPlaylistDeleted entityId.
|
|
20848
|
+
* @member {number} entityId
|
|
20849
|
+
* @memberof WakeupPlaylistDeleted
|
|
20850
|
+
* @instance
|
|
20851
|
+
*/
|
|
20852
|
+
WakeupPlaylistDeleted.prototype.entityId = 0;
|
|
20853
|
+
|
|
20854
|
+
/**
|
|
20855
|
+
* Creates a new WakeupPlaylistDeleted instance using the specified properties.
|
|
20856
|
+
* @function create
|
|
20857
|
+
* @memberof WakeupPlaylistDeleted
|
|
20858
|
+
* @static
|
|
20859
|
+
* @param {IWakeupPlaylistDeleted=} [properties] Properties to set
|
|
20860
|
+
* @returns {WakeupPlaylistDeleted} WakeupPlaylistDeleted instance
|
|
20861
|
+
*/
|
|
20862
|
+
WakeupPlaylistDeleted.create = function create(properties) {
|
|
20863
|
+
return new WakeupPlaylistDeleted(properties);
|
|
20864
|
+
};
|
|
20865
|
+
|
|
20866
|
+
/**
|
|
20867
|
+
* Encodes the specified WakeupPlaylistDeleted message. Does not implicitly {@link WakeupPlaylistDeleted.verify|verify} messages.
|
|
20868
|
+
* @function encode
|
|
20869
|
+
* @memberof WakeupPlaylistDeleted
|
|
20870
|
+
* @static
|
|
20871
|
+
* @param {IWakeupPlaylistDeleted} message WakeupPlaylistDeleted message or plain object to encode
|
|
20872
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
20873
|
+
* @returns {$protobuf.Writer} Writer
|
|
20874
|
+
*/
|
|
20875
|
+
WakeupPlaylistDeleted.encode = function encode(message, writer) {
|
|
20876
|
+
if (!writer)
|
|
20877
|
+
writer = $Writer.create();
|
|
20878
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
20879
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.slug);
|
|
20880
|
+
if (message.entityType != null && message.hasOwnProperty("entityType"))
|
|
20881
|
+
writer.uint32(/* id 2, wireType 2 =*/18).string(message.entityType);
|
|
20882
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
20883
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.deletedAt);
|
|
20884
|
+
if (message.entityId != null && message.hasOwnProperty("entityId"))
|
|
20885
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.entityId);
|
|
20886
|
+
return writer;
|
|
20887
|
+
};
|
|
20888
|
+
|
|
20889
|
+
/**
|
|
20890
|
+
* Encodes the specified WakeupPlaylistDeleted message, length delimited. Does not implicitly {@link WakeupPlaylistDeleted.verify|verify} messages.
|
|
20891
|
+
* @function encodeDelimited
|
|
20892
|
+
* @memberof WakeupPlaylistDeleted
|
|
20893
|
+
* @static
|
|
20894
|
+
* @param {IWakeupPlaylistDeleted} message WakeupPlaylistDeleted message or plain object to encode
|
|
20895
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
20896
|
+
* @returns {$protobuf.Writer} Writer
|
|
20897
|
+
*/
|
|
20898
|
+
WakeupPlaylistDeleted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
20899
|
+
return this.encode(message, writer).ldelim();
|
|
20900
|
+
};
|
|
20901
|
+
|
|
20902
|
+
/**
|
|
20903
|
+
* Decodes a WakeupPlaylistDeleted message from the specified reader or buffer.
|
|
20904
|
+
* @function decode
|
|
20905
|
+
* @memberof WakeupPlaylistDeleted
|
|
20906
|
+
* @static
|
|
20907
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
20908
|
+
* @param {number} [length] Message length if known beforehand
|
|
20909
|
+
* @returns {WakeupPlaylistDeleted} WakeupPlaylistDeleted
|
|
20910
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
20911
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
20912
|
+
*/
|
|
20913
|
+
WakeupPlaylistDeleted.decode = function decode(reader, length) {
|
|
20914
|
+
if (!(reader instanceof $Reader))
|
|
20915
|
+
reader = $Reader.create(reader);
|
|
20916
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.WakeupPlaylistDeleted();
|
|
20917
|
+
while (reader.pos < end) {
|
|
20918
|
+
var tag = reader.uint32();
|
|
20919
|
+
switch (tag >>> 3) {
|
|
20920
|
+
case 1:
|
|
20921
|
+
message.slug = reader.string();
|
|
20922
|
+
break;
|
|
20923
|
+
case 2:
|
|
20924
|
+
message.entityType = reader.string();
|
|
20925
|
+
break;
|
|
20926
|
+
case 3:
|
|
20927
|
+
message.deletedAt = reader.uint64();
|
|
20928
|
+
break;
|
|
20929
|
+
case 4:
|
|
20930
|
+
message.entityId = reader.uint32();
|
|
20931
|
+
break;
|
|
20932
|
+
default:
|
|
20933
|
+
reader.skipType(tag & 7);
|
|
20934
|
+
break;
|
|
20935
|
+
}
|
|
20936
|
+
}
|
|
20937
|
+
return message;
|
|
20938
|
+
};
|
|
20939
|
+
|
|
20940
|
+
/**
|
|
20941
|
+
* Decodes a WakeupPlaylistDeleted message from the specified reader or buffer, length delimited.
|
|
20942
|
+
* @function decodeDelimited
|
|
20943
|
+
* @memberof WakeupPlaylistDeleted
|
|
20944
|
+
* @static
|
|
20945
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
20946
|
+
* @returns {WakeupPlaylistDeleted} WakeupPlaylistDeleted
|
|
20947
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
20948
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
20949
|
+
*/
|
|
20950
|
+
WakeupPlaylistDeleted.decodeDelimited = function decodeDelimited(reader) {
|
|
20951
|
+
if (!(reader instanceof $Reader))
|
|
20952
|
+
reader = new $Reader(reader);
|
|
20953
|
+
return this.decode(reader, reader.uint32());
|
|
20954
|
+
};
|
|
20955
|
+
|
|
20956
|
+
/**
|
|
20957
|
+
* Verifies a WakeupPlaylistDeleted message.
|
|
20958
|
+
* @function verify
|
|
20959
|
+
* @memberof WakeupPlaylistDeleted
|
|
20960
|
+
* @static
|
|
20961
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
20962
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
20963
|
+
*/
|
|
20964
|
+
WakeupPlaylistDeleted.verify = function verify(message) {
|
|
20965
|
+
if (typeof message !== "object" || message === null)
|
|
20966
|
+
return "object expected";
|
|
20967
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
20968
|
+
if (!$util.isString(message.slug))
|
|
20969
|
+
return "slug: string expected";
|
|
20970
|
+
if (message.entityType != null && message.hasOwnProperty("entityType"))
|
|
20971
|
+
if (!$util.isString(message.entityType))
|
|
20972
|
+
return "entityType: string expected";
|
|
20973
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
20974
|
+
if (!$util.isInteger(message.deletedAt) && !(message.deletedAt && $util.isInteger(message.deletedAt.low) && $util.isInteger(message.deletedAt.high)))
|
|
20975
|
+
return "deletedAt: integer|Long expected";
|
|
20976
|
+
if (message.entityId != null && message.hasOwnProperty("entityId"))
|
|
20977
|
+
if (!$util.isInteger(message.entityId))
|
|
20978
|
+
return "entityId: integer expected";
|
|
20979
|
+
return null;
|
|
20980
|
+
};
|
|
20981
|
+
|
|
20982
|
+
/**
|
|
20983
|
+
* Creates a WakeupPlaylistDeleted message from a plain object. Also converts values to their respective internal types.
|
|
20984
|
+
* @function fromObject
|
|
20985
|
+
* @memberof WakeupPlaylistDeleted
|
|
20986
|
+
* @static
|
|
20987
|
+
* @param {Object.<string,*>} object Plain object
|
|
20988
|
+
* @returns {WakeupPlaylistDeleted} WakeupPlaylistDeleted
|
|
20989
|
+
*/
|
|
20990
|
+
WakeupPlaylistDeleted.fromObject = function fromObject(object) {
|
|
20991
|
+
if (object instanceof $root.WakeupPlaylistDeleted)
|
|
20992
|
+
return object;
|
|
20993
|
+
var message = new $root.WakeupPlaylistDeleted();
|
|
20994
|
+
if (object.slug != null)
|
|
20995
|
+
message.slug = String(object.slug);
|
|
20996
|
+
if (object.entityType != null)
|
|
20997
|
+
message.entityType = String(object.entityType);
|
|
20998
|
+
if (object.deletedAt != null)
|
|
20999
|
+
if ($util.Long)
|
|
21000
|
+
(message.deletedAt = $util.Long.fromValue(object.deletedAt)).unsigned = true;
|
|
21001
|
+
else if (typeof object.deletedAt === "string")
|
|
21002
|
+
message.deletedAt = parseInt(object.deletedAt, 10);
|
|
21003
|
+
else if (typeof object.deletedAt === "number")
|
|
21004
|
+
message.deletedAt = object.deletedAt;
|
|
21005
|
+
else if (typeof object.deletedAt === "object")
|
|
21006
|
+
message.deletedAt = new $util.LongBits(object.deletedAt.low >>> 0, object.deletedAt.high >>> 0).toNumber(true);
|
|
21007
|
+
if (object.entityId != null)
|
|
21008
|
+
message.entityId = object.entityId >>> 0;
|
|
21009
|
+
return message;
|
|
21010
|
+
};
|
|
21011
|
+
|
|
21012
|
+
/**
|
|
21013
|
+
* Creates a plain object from a WakeupPlaylistDeleted message. Also converts values to other types if specified.
|
|
21014
|
+
* @function toObject
|
|
21015
|
+
* @memberof WakeupPlaylistDeleted
|
|
21016
|
+
* @static
|
|
21017
|
+
* @param {WakeupPlaylistDeleted} message WakeupPlaylistDeleted
|
|
21018
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
21019
|
+
* @returns {Object.<string,*>} Plain object
|
|
21020
|
+
*/
|
|
21021
|
+
WakeupPlaylistDeleted.toObject = function toObject(message, options) {
|
|
21022
|
+
if (!options)
|
|
21023
|
+
options = {};
|
|
21024
|
+
var object = {};
|
|
21025
|
+
if (options.defaults) {
|
|
21026
|
+
object.slug = "";
|
|
21027
|
+
object.entityType = "";
|
|
21028
|
+
if ($util.Long) {
|
|
21029
|
+
var long = new $util.Long(0, 0, true);
|
|
21030
|
+
object.deletedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
21031
|
+
} else
|
|
21032
|
+
object.deletedAt = options.longs === String ? "0" : 0;
|
|
21033
|
+
object.entityId = 0;
|
|
21034
|
+
}
|
|
21035
|
+
if (message.slug != null && message.hasOwnProperty("slug"))
|
|
21036
|
+
object.slug = message.slug;
|
|
21037
|
+
if (message.entityType != null && message.hasOwnProperty("entityType"))
|
|
21038
|
+
object.entityType = message.entityType;
|
|
21039
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
21040
|
+
if (typeof message.deletedAt === "number")
|
|
21041
|
+
object.deletedAt = options.longs === String ? String(message.deletedAt) : message.deletedAt;
|
|
21042
|
+
else
|
|
21043
|
+
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;
|
|
21044
|
+
if (message.entityId != null && message.hasOwnProperty("entityId"))
|
|
21045
|
+
object.entityId = message.entityId;
|
|
21046
|
+
return object;
|
|
21047
|
+
};
|
|
21048
|
+
|
|
21049
|
+
/**
|
|
21050
|
+
* Converts this WakeupPlaylistDeleted to JSON.
|
|
21051
|
+
* @function toJSON
|
|
21052
|
+
* @memberof WakeupPlaylistDeleted
|
|
21053
|
+
* @instance
|
|
21054
|
+
* @returns {Object.<string,*>} JSON object
|
|
21055
|
+
*/
|
|
21056
|
+
WakeupPlaylistDeleted.prototype.toJSON = function toJSON() {
|
|
21057
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
21058
|
+
};
|
|
21059
|
+
|
|
21060
|
+
return WakeupPlaylistDeleted;
|
|
21061
|
+
})();
|
|
21062
|
+
|
|
20062
21063
|
$root.ExperimentContentMapCreated = (function() {
|
|
20063
21064
|
|
|
20064
21065
|
/**
|