@headspace/protos-events 1.74.0 → 1.76.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 +330 -862
- package/lib/index.js +1035 -103
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -2665,14 +2665,14 @@ $root.subscription = (function() {
|
|
|
2665
2665
|
})();
|
|
2666
2666
|
|
|
2667
2667
|
/**
|
|
2668
|
-
*
|
|
2669
|
-
* @name subscription.
|
|
2668
|
+
* SubscriptionLabels enum.
|
|
2669
|
+
* @name subscription.SubscriptionLabels
|
|
2670
2670
|
* @enum {string}
|
|
2671
|
-
* @property {number}
|
|
2671
|
+
* @property {number} SUBLABEL_FREE_TRIAL=0 SUBLABEL_FREE_TRIAL value
|
|
2672
2672
|
*/
|
|
2673
|
-
subscription.
|
|
2673
|
+
subscription.SubscriptionLabels = (function() {
|
|
2674
2674
|
var valuesById = {}, values = Object.create(valuesById);
|
|
2675
|
-
values[valuesById[0] = "
|
|
2675
|
+
values[valuesById[0] = "SUBLABEL_FREE_TRIAL"] = 0;
|
|
2676
2676
|
return values;
|
|
2677
2677
|
})();
|
|
2678
2678
|
|
|
@@ -7787,6 +7787,9 @@ $root.ContentPlayed = (function() {
|
|
|
7787
7787
|
* @property {number|Long|null} [timestamp] ContentPlayed timestamp
|
|
7788
7788
|
* @property {number|null} [contentId] ContentPlayed contentId
|
|
7789
7789
|
* @property {string|null} [userId] ContentPlayed userId
|
|
7790
|
+
* @property {ContentType|null} [contentType] ContentPlayed contentType
|
|
7791
|
+
* @property {Mode|null} [mode] ContentPlayed mode
|
|
7792
|
+
* @property {IContentPlayedMetadata|null} [metadata] ContentPlayed metadata
|
|
7790
7793
|
*/
|
|
7791
7794
|
|
|
7792
7795
|
/**
|
|
@@ -7828,6 +7831,30 @@ $root.ContentPlayed = (function() {
|
|
|
7828
7831
|
*/
|
|
7829
7832
|
ContentPlayed.prototype.userId = "";
|
|
7830
7833
|
|
|
7834
|
+
/**
|
|
7835
|
+
* ContentPlayed contentType.
|
|
7836
|
+
* @member {ContentType} contentType
|
|
7837
|
+
* @memberof ContentPlayed
|
|
7838
|
+
* @instance
|
|
7839
|
+
*/
|
|
7840
|
+
ContentPlayed.prototype.contentType = 0;
|
|
7841
|
+
|
|
7842
|
+
/**
|
|
7843
|
+
* ContentPlayed mode.
|
|
7844
|
+
* @member {Mode} mode
|
|
7845
|
+
* @memberof ContentPlayed
|
|
7846
|
+
* @instance
|
|
7847
|
+
*/
|
|
7848
|
+
ContentPlayed.prototype.mode = 0;
|
|
7849
|
+
|
|
7850
|
+
/**
|
|
7851
|
+
* ContentPlayed metadata.
|
|
7852
|
+
* @member {IContentPlayedMetadata|null|undefined} metadata
|
|
7853
|
+
* @memberof ContentPlayed
|
|
7854
|
+
* @instance
|
|
7855
|
+
*/
|
|
7856
|
+
ContentPlayed.prototype.metadata = null;
|
|
7857
|
+
|
|
7831
7858
|
/**
|
|
7832
7859
|
* Creates a new ContentPlayed instance using the specified properties.
|
|
7833
7860
|
* @function create
|
|
@@ -7858,48 +7885,735 @@ $root.ContentPlayed = (function() {
|
|
|
7858
7885
|
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.contentId);
|
|
7859
7886
|
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
7860
7887
|
writer.uint32(/* id 3, wireType 2 =*/26).string(message.userId);
|
|
7888
|
+
if (message.contentType != null && message.hasOwnProperty("contentType"))
|
|
7889
|
+
writer.uint32(/* id 4, wireType 0 =*/32).int32(message.contentType);
|
|
7890
|
+
if (message.mode != null && message.hasOwnProperty("mode"))
|
|
7891
|
+
writer.uint32(/* id 5, wireType 0 =*/40).int32(message.mode);
|
|
7892
|
+
if (message.metadata != null && message.hasOwnProperty("metadata"))
|
|
7893
|
+
$root.ContentPlayedMetadata.encode(message.metadata, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim();
|
|
7861
7894
|
return writer;
|
|
7862
7895
|
};
|
|
7863
7896
|
|
|
7864
7897
|
/**
|
|
7865
7898
|
* Encodes the specified ContentPlayed message, length delimited. Does not implicitly {@link ContentPlayed.verify|verify} messages.
|
|
7866
7899
|
* @function encodeDelimited
|
|
7867
|
-
* @memberof ContentPlayed
|
|
7900
|
+
* @memberof ContentPlayed
|
|
7901
|
+
* @static
|
|
7902
|
+
* @param {IContentPlayed} message ContentPlayed message or plain object to encode
|
|
7903
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
7904
|
+
* @returns {$protobuf.Writer} Writer
|
|
7905
|
+
*/
|
|
7906
|
+
ContentPlayed.encodeDelimited = function encodeDelimited(message, writer) {
|
|
7907
|
+
return this.encode(message, writer).ldelim();
|
|
7908
|
+
};
|
|
7909
|
+
|
|
7910
|
+
/**
|
|
7911
|
+
* Decodes a ContentPlayed message from the specified reader or buffer.
|
|
7912
|
+
* @function decode
|
|
7913
|
+
* @memberof ContentPlayed
|
|
7914
|
+
* @static
|
|
7915
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
7916
|
+
* @param {number} [length] Message length if known beforehand
|
|
7917
|
+
* @returns {ContentPlayed} ContentPlayed
|
|
7918
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7919
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7920
|
+
*/
|
|
7921
|
+
ContentPlayed.decode = function decode(reader, length) {
|
|
7922
|
+
if (!(reader instanceof $Reader))
|
|
7923
|
+
reader = $Reader.create(reader);
|
|
7924
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentPlayed();
|
|
7925
|
+
while (reader.pos < end) {
|
|
7926
|
+
var tag = reader.uint32();
|
|
7927
|
+
switch (tag >>> 3) {
|
|
7928
|
+
case 1:
|
|
7929
|
+
message.timestamp = reader.uint64();
|
|
7930
|
+
break;
|
|
7931
|
+
case 2:
|
|
7932
|
+
message.contentId = reader.uint32();
|
|
7933
|
+
break;
|
|
7934
|
+
case 3:
|
|
7935
|
+
message.userId = reader.string();
|
|
7936
|
+
break;
|
|
7937
|
+
case 4:
|
|
7938
|
+
message.contentType = reader.int32();
|
|
7939
|
+
break;
|
|
7940
|
+
case 5:
|
|
7941
|
+
message.mode = reader.int32();
|
|
7942
|
+
break;
|
|
7943
|
+
case 6:
|
|
7944
|
+
message.metadata = $root.ContentPlayedMetadata.decode(reader, reader.uint32());
|
|
7945
|
+
break;
|
|
7946
|
+
default:
|
|
7947
|
+
reader.skipType(tag & 7);
|
|
7948
|
+
break;
|
|
7949
|
+
}
|
|
7950
|
+
}
|
|
7951
|
+
return message;
|
|
7952
|
+
};
|
|
7953
|
+
|
|
7954
|
+
/**
|
|
7955
|
+
* Decodes a ContentPlayed message from the specified reader or buffer, length delimited.
|
|
7956
|
+
* @function decodeDelimited
|
|
7957
|
+
* @memberof ContentPlayed
|
|
7958
|
+
* @static
|
|
7959
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
7960
|
+
* @returns {ContentPlayed} ContentPlayed
|
|
7961
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7962
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7963
|
+
*/
|
|
7964
|
+
ContentPlayed.decodeDelimited = function decodeDelimited(reader) {
|
|
7965
|
+
if (!(reader instanceof $Reader))
|
|
7966
|
+
reader = new $Reader(reader);
|
|
7967
|
+
return this.decode(reader, reader.uint32());
|
|
7968
|
+
};
|
|
7969
|
+
|
|
7970
|
+
/**
|
|
7971
|
+
* Verifies a ContentPlayed message.
|
|
7972
|
+
* @function verify
|
|
7973
|
+
* @memberof ContentPlayed
|
|
7974
|
+
* @static
|
|
7975
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
7976
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
7977
|
+
*/
|
|
7978
|
+
ContentPlayed.verify = function verify(message) {
|
|
7979
|
+
if (typeof message !== "object" || message === null)
|
|
7980
|
+
return "object expected";
|
|
7981
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
7982
|
+
if (!$util.isInteger(message.timestamp) && !(message.timestamp && $util.isInteger(message.timestamp.low) && $util.isInteger(message.timestamp.high)))
|
|
7983
|
+
return "timestamp: integer|Long expected";
|
|
7984
|
+
if (message.contentId != null && message.hasOwnProperty("contentId"))
|
|
7985
|
+
if (!$util.isInteger(message.contentId))
|
|
7986
|
+
return "contentId: integer expected";
|
|
7987
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
7988
|
+
if (!$util.isString(message.userId))
|
|
7989
|
+
return "userId: string expected";
|
|
7990
|
+
if (message.contentType != null && message.hasOwnProperty("contentType"))
|
|
7991
|
+
switch (message.contentType) {
|
|
7992
|
+
default:
|
|
7993
|
+
return "contentType: enum value expected";
|
|
7994
|
+
case 0:
|
|
7995
|
+
case 1:
|
|
7996
|
+
case 2:
|
|
7997
|
+
case 3:
|
|
7998
|
+
case 4:
|
|
7999
|
+
case 5:
|
|
8000
|
+
case 6:
|
|
8001
|
+
case 7:
|
|
8002
|
+
case 8:
|
|
8003
|
+
case 9:
|
|
8004
|
+
case 10:
|
|
8005
|
+
case 11:
|
|
8006
|
+
case 12:
|
|
8007
|
+
break;
|
|
8008
|
+
}
|
|
8009
|
+
if (message.mode != null && message.hasOwnProperty("mode"))
|
|
8010
|
+
switch (message.mode) {
|
|
8011
|
+
default:
|
|
8012
|
+
return "mode: enum value expected";
|
|
8013
|
+
case 0:
|
|
8014
|
+
case 1:
|
|
8015
|
+
case 2:
|
|
8016
|
+
case 3:
|
|
8017
|
+
case 4:
|
|
8018
|
+
break;
|
|
8019
|
+
}
|
|
8020
|
+
if (message.metadata != null && message.hasOwnProperty("metadata")) {
|
|
8021
|
+
var error = $root.ContentPlayedMetadata.verify(message.metadata);
|
|
8022
|
+
if (error)
|
|
8023
|
+
return "metadata." + error;
|
|
8024
|
+
}
|
|
8025
|
+
return null;
|
|
8026
|
+
};
|
|
8027
|
+
|
|
8028
|
+
/**
|
|
8029
|
+
* Creates a ContentPlayed message from a plain object. Also converts values to their respective internal types.
|
|
8030
|
+
* @function fromObject
|
|
8031
|
+
* @memberof ContentPlayed
|
|
8032
|
+
* @static
|
|
8033
|
+
* @param {Object.<string,*>} object Plain object
|
|
8034
|
+
* @returns {ContentPlayed} ContentPlayed
|
|
8035
|
+
*/
|
|
8036
|
+
ContentPlayed.fromObject = function fromObject(object) {
|
|
8037
|
+
if (object instanceof $root.ContentPlayed)
|
|
8038
|
+
return object;
|
|
8039
|
+
var message = new $root.ContentPlayed();
|
|
8040
|
+
if (object.timestamp != null)
|
|
8041
|
+
if ($util.Long)
|
|
8042
|
+
(message.timestamp = $util.Long.fromValue(object.timestamp)).unsigned = true;
|
|
8043
|
+
else if (typeof object.timestamp === "string")
|
|
8044
|
+
message.timestamp = parseInt(object.timestamp, 10);
|
|
8045
|
+
else if (typeof object.timestamp === "number")
|
|
8046
|
+
message.timestamp = object.timestamp;
|
|
8047
|
+
else if (typeof object.timestamp === "object")
|
|
8048
|
+
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
8049
|
+
if (object.contentId != null)
|
|
8050
|
+
message.contentId = object.contentId >>> 0;
|
|
8051
|
+
if (object.userId != null)
|
|
8052
|
+
message.userId = String(object.userId);
|
|
8053
|
+
switch (object.contentType) {
|
|
8054
|
+
case "COURSE":
|
|
8055
|
+
case 0:
|
|
8056
|
+
message.contentType = 0;
|
|
8057
|
+
break;
|
|
8058
|
+
case "ONEOFF":
|
|
8059
|
+
case 1:
|
|
8060
|
+
message.contentType = 1;
|
|
8061
|
+
break;
|
|
8062
|
+
case "ANIMATION":
|
|
8063
|
+
case 2:
|
|
8064
|
+
message.contentType = 2;
|
|
8065
|
+
break;
|
|
8066
|
+
case "SLEEPCAST":
|
|
8067
|
+
case 3:
|
|
8068
|
+
message.contentType = 3;
|
|
8069
|
+
break;
|
|
8070
|
+
case "OBSTACLE":
|
|
8071
|
+
case 4:
|
|
8072
|
+
message.contentType = 4;
|
|
8073
|
+
break;
|
|
8074
|
+
case "PLAYLIST":
|
|
8075
|
+
case 5:
|
|
8076
|
+
message.contentType = 5;
|
|
8077
|
+
break;
|
|
8078
|
+
case "LANDSCAPE_VIDEO":
|
|
8079
|
+
case 6:
|
|
8080
|
+
message.contentType = 6;
|
|
8081
|
+
break;
|
|
8082
|
+
case "INTEGRATED_AUDIO_PLAYER":
|
|
8083
|
+
case 7:
|
|
8084
|
+
message.contentType = 7;
|
|
8085
|
+
break;
|
|
8086
|
+
case "WAKEUP":
|
|
8087
|
+
case 8:
|
|
8088
|
+
message.contentType = 8;
|
|
8089
|
+
break;
|
|
8090
|
+
case "PODCAST":
|
|
8091
|
+
case 9:
|
|
8092
|
+
message.contentType = 9;
|
|
8093
|
+
break;
|
|
8094
|
+
case "EDHS":
|
|
8095
|
+
case 10:
|
|
8096
|
+
message.contentType = 10;
|
|
8097
|
+
break;
|
|
8098
|
+
case "GROUP_MEDITATION":
|
|
8099
|
+
case 11:
|
|
8100
|
+
message.contentType = 11;
|
|
8101
|
+
break;
|
|
8102
|
+
case "INTERVIEW":
|
|
8103
|
+
case 12:
|
|
8104
|
+
message.contentType = 12;
|
|
8105
|
+
break;
|
|
8106
|
+
}
|
|
8107
|
+
switch (object.mode) {
|
|
8108
|
+
case "FOCUS":
|
|
8109
|
+
case 0:
|
|
8110
|
+
message.mode = 0;
|
|
8111
|
+
break;
|
|
8112
|
+
case "MOVE":
|
|
8113
|
+
case 1:
|
|
8114
|
+
message.mode = 1;
|
|
8115
|
+
break;
|
|
8116
|
+
case "SLEEP":
|
|
8117
|
+
case 2:
|
|
8118
|
+
message.mode = 2;
|
|
8119
|
+
break;
|
|
8120
|
+
case "MEDITATE":
|
|
8121
|
+
case 3:
|
|
8122
|
+
message.mode = 3;
|
|
8123
|
+
break;
|
|
8124
|
+
case "TODAY":
|
|
8125
|
+
case 4:
|
|
8126
|
+
message.mode = 4;
|
|
8127
|
+
break;
|
|
8128
|
+
}
|
|
8129
|
+
if (object.metadata != null) {
|
|
8130
|
+
if (typeof object.metadata !== "object")
|
|
8131
|
+
throw TypeError(".ContentPlayed.metadata: object expected");
|
|
8132
|
+
message.metadata = $root.ContentPlayedMetadata.fromObject(object.metadata);
|
|
8133
|
+
}
|
|
8134
|
+
return message;
|
|
8135
|
+
};
|
|
8136
|
+
|
|
8137
|
+
/**
|
|
8138
|
+
* Creates a plain object from a ContentPlayed message. Also converts values to other types if specified.
|
|
8139
|
+
* @function toObject
|
|
8140
|
+
* @memberof ContentPlayed
|
|
8141
|
+
* @static
|
|
8142
|
+
* @param {ContentPlayed} message ContentPlayed
|
|
8143
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
8144
|
+
* @returns {Object.<string,*>} Plain object
|
|
8145
|
+
*/
|
|
8146
|
+
ContentPlayed.toObject = function toObject(message, options) {
|
|
8147
|
+
if (!options)
|
|
8148
|
+
options = {};
|
|
8149
|
+
var object = {};
|
|
8150
|
+
if (options.defaults) {
|
|
8151
|
+
if ($util.Long) {
|
|
8152
|
+
var long = new $util.Long(0, 0, true);
|
|
8153
|
+
object.timestamp = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
8154
|
+
} else
|
|
8155
|
+
object.timestamp = options.longs === String ? "0" : 0;
|
|
8156
|
+
object.contentId = 0;
|
|
8157
|
+
object.userId = "";
|
|
8158
|
+
object.contentType = options.enums === String ? "COURSE" : 0;
|
|
8159
|
+
object.mode = options.enums === String ? "FOCUS" : 0;
|
|
8160
|
+
object.metadata = null;
|
|
8161
|
+
}
|
|
8162
|
+
if (message.timestamp != null && message.hasOwnProperty("timestamp"))
|
|
8163
|
+
if (typeof message.timestamp === "number")
|
|
8164
|
+
object.timestamp = options.longs === String ? String(message.timestamp) : message.timestamp;
|
|
8165
|
+
else
|
|
8166
|
+
object.timestamp = options.longs === String ? $util.Long.prototype.toString.call(message.timestamp) : options.longs === Number ? new $util.LongBits(message.timestamp.low >>> 0, message.timestamp.high >>> 0).toNumber(true) : message.timestamp;
|
|
8167
|
+
if (message.contentId != null && message.hasOwnProperty("contentId"))
|
|
8168
|
+
object.contentId = message.contentId;
|
|
8169
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
8170
|
+
object.userId = message.userId;
|
|
8171
|
+
if (message.contentType != null && message.hasOwnProperty("contentType"))
|
|
8172
|
+
object.contentType = options.enums === String ? $root.ContentType[message.contentType] : message.contentType;
|
|
8173
|
+
if (message.mode != null && message.hasOwnProperty("mode"))
|
|
8174
|
+
object.mode = options.enums === String ? $root.Mode[message.mode] : message.mode;
|
|
8175
|
+
if (message.metadata != null && message.hasOwnProperty("metadata"))
|
|
8176
|
+
object.metadata = $root.ContentPlayedMetadata.toObject(message.metadata, options);
|
|
8177
|
+
return object;
|
|
8178
|
+
};
|
|
8179
|
+
|
|
8180
|
+
/**
|
|
8181
|
+
* Converts this ContentPlayed to JSON.
|
|
8182
|
+
* @function toJSON
|
|
8183
|
+
* @memberof ContentPlayed
|
|
8184
|
+
* @instance
|
|
8185
|
+
* @returns {Object.<string,*>} JSON object
|
|
8186
|
+
*/
|
|
8187
|
+
ContentPlayed.prototype.toJSON = function toJSON() {
|
|
8188
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
8189
|
+
};
|
|
8190
|
+
|
|
8191
|
+
return ContentPlayed;
|
|
8192
|
+
})();
|
|
8193
|
+
|
|
8194
|
+
$root.ContentPlayedBatch = (function() {
|
|
8195
|
+
|
|
8196
|
+
/**
|
|
8197
|
+
* Properties of a ContentPlayedBatch.
|
|
8198
|
+
* @exports IContentPlayedBatch
|
|
8199
|
+
* @interface IContentPlayedBatch
|
|
8200
|
+
* @property {string|null} [userId] ContentPlayedBatch userId
|
|
8201
|
+
* @property {Array.<IContentPlayed>|null} [batched] ContentPlayedBatch batched
|
|
8202
|
+
*/
|
|
8203
|
+
|
|
8204
|
+
/**
|
|
8205
|
+
* Constructs a new ContentPlayedBatch.
|
|
8206
|
+
* @exports ContentPlayedBatch
|
|
8207
|
+
* @classdesc Represents a ContentPlayedBatch.
|
|
8208
|
+
* @implements IContentPlayedBatch
|
|
8209
|
+
* @constructor
|
|
8210
|
+
* @param {IContentPlayedBatch=} [properties] Properties to set
|
|
8211
|
+
*/
|
|
8212
|
+
function ContentPlayedBatch(properties) {
|
|
8213
|
+
this.batched = [];
|
|
8214
|
+
if (properties)
|
|
8215
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
8216
|
+
if (properties[keys[i]] != null)
|
|
8217
|
+
this[keys[i]] = properties[keys[i]];
|
|
8218
|
+
}
|
|
8219
|
+
|
|
8220
|
+
/**
|
|
8221
|
+
* ContentPlayedBatch userId.
|
|
8222
|
+
* @member {string} userId
|
|
8223
|
+
* @memberof ContentPlayedBatch
|
|
8224
|
+
* @instance
|
|
8225
|
+
*/
|
|
8226
|
+
ContentPlayedBatch.prototype.userId = "";
|
|
8227
|
+
|
|
8228
|
+
/**
|
|
8229
|
+
* ContentPlayedBatch batched.
|
|
8230
|
+
* @member {Array.<IContentPlayed>} batched
|
|
8231
|
+
* @memberof ContentPlayedBatch
|
|
8232
|
+
* @instance
|
|
8233
|
+
*/
|
|
8234
|
+
ContentPlayedBatch.prototype.batched = $util.emptyArray;
|
|
8235
|
+
|
|
8236
|
+
/**
|
|
8237
|
+
* Creates a new ContentPlayedBatch instance using the specified properties.
|
|
8238
|
+
* @function create
|
|
8239
|
+
* @memberof ContentPlayedBatch
|
|
8240
|
+
* @static
|
|
8241
|
+
* @param {IContentPlayedBatch=} [properties] Properties to set
|
|
8242
|
+
* @returns {ContentPlayedBatch} ContentPlayedBatch instance
|
|
8243
|
+
*/
|
|
8244
|
+
ContentPlayedBatch.create = function create(properties) {
|
|
8245
|
+
return new ContentPlayedBatch(properties);
|
|
8246
|
+
};
|
|
8247
|
+
|
|
8248
|
+
/**
|
|
8249
|
+
* Encodes the specified ContentPlayedBatch message. Does not implicitly {@link ContentPlayedBatch.verify|verify} messages.
|
|
8250
|
+
* @function encode
|
|
8251
|
+
* @memberof ContentPlayedBatch
|
|
8252
|
+
* @static
|
|
8253
|
+
* @param {IContentPlayedBatch} message ContentPlayedBatch message or plain object to encode
|
|
8254
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
8255
|
+
* @returns {$protobuf.Writer} Writer
|
|
8256
|
+
*/
|
|
8257
|
+
ContentPlayedBatch.encode = function encode(message, writer) {
|
|
8258
|
+
if (!writer)
|
|
8259
|
+
writer = $Writer.create();
|
|
8260
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
8261
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
|
|
8262
|
+
if (message.batched != null && message.batched.length)
|
|
8263
|
+
for (var i = 0; i < message.batched.length; ++i)
|
|
8264
|
+
$root.ContentPlayed.encode(message.batched[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
8265
|
+
return writer;
|
|
8266
|
+
};
|
|
8267
|
+
|
|
8268
|
+
/**
|
|
8269
|
+
* Encodes the specified ContentPlayedBatch message, length delimited. Does not implicitly {@link ContentPlayedBatch.verify|verify} messages.
|
|
8270
|
+
* @function encodeDelimited
|
|
8271
|
+
* @memberof ContentPlayedBatch
|
|
8272
|
+
* @static
|
|
8273
|
+
* @param {IContentPlayedBatch} message ContentPlayedBatch message or plain object to encode
|
|
8274
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
8275
|
+
* @returns {$protobuf.Writer} Writer
|
|
8276
|
+
*/
|
|
8277
|
+
ContentPlayedBatch.encodeDelimited = function encodeDelimited(message, writer) {
|
|
8278
|
+
return this.encode(message, writer).ldelim();
|
|
8279
|
+
};
|
|
8280
|
+
|
|
8281
|
+
/**
|
|
8282
|
+
* Decodes a ContentPlayedBatch message from the specified reader or buffer.
|
|
8283
|
+
* @function decode
|
|
8284
|
+
* @memberof ContentPlayedBatch
|
|
8285
|
+
* @static
|
|
8286
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
8287
|
+
* @param {number} [length] Message length if known beforehand
|
|
8288
|
+
* @returns {ContentPlayedBatch} ContentPlayedBatch
|
|
8289
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
8290
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
8291
|
+
*/
|
|
8292
|
+
ContentPlayedBatch.decode = function decode(reader, length) {
|
|
8293
|
+
if (!(reader instanceof $Reader))
|
|
8294
|
+
reader = $Reader.create(reader);
|
|
8295
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentPlayedBatch();
|
|
8296
|
+
while (reader.pos < end) {
|
|
8297
|
+
var tag = reader.uint32();
|
|
8298
|
+
switch (tag >>> 3) {
|
|
8299
|
+
case 1:
|
|
8300
|
+
message.userId = reader.string();
|
|
8301
|
+
break;
|
|
8302
|
+
case 2:
|
|
8303
|
+
if (!(message.batched && message.batched.length))
|
|
8304
|
+
message.batched = [];
|
|
8305
|
+
message.batched.push($root.ContentPlayed.decode(reader, reader.uint32()));
|
|
8306
|
+
break;
|
|
8307
|
+
default:
|
|
8308
|
+
reader.skipType(tag & 7);
|
|
8309
|
+
break;
|
|
8310
|
+
}
|
|
8311
|
+
}
|
|
8312
|
+
return message;
|
|
8313
|
+
};
|
|
8314
|
+
|
|
8315
|
+
/**
|
|
8316
|
+
* Decodes a ContentPlayedBatch message from the specified reader or buffer, length delimited.
|
|
8317
|
+
* @function decodeDelimited
|
|
8318
|
+
* @memberof ContentPlayedBatch
|
|
8319
|
+
* @static
|
|
8320
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
8321
|
+
* @returns {ContentPlayedBatch} ContentPlayedBatch
|
|
8322
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
8323
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
8324
|
+
*/
|
|
8325
|
+
ContentPlayedBatch.decodeDelimited = function decodeDelimited(reader) {
|
|
8326
|
+
if (!(reader instanceof $Reader))
|
|
8327
|
+
reader = new $Reader(reader);
|
|
8328
|
+
return this.decode(reader, reader.uint32());
|
|
8329
|
+
};
|
|
8330
|
+
|
|
8331
|
+
/**
|
|
8332
|
+
* Verifies a ContentPlayedBatch message.
|
|
8333
|
+
* @function verify
|
|
8334
|
+
* @memberof ContentPlayedBatch
|
|
8335
|
+
* @static
|
|
8336
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
8337
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
8338
|
+
*/
|
|
8339
|
+
ContentPlayedBatch.verify = function verify(message) {
|
|
8340
|
+
if (typeof message !== "object" || message === null)
|
|
8341
|
+
return "object expected";
|
|
8342
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
8343
|
+
if (!$util.isString(message.userId))
|
|
8344
|
+
return "userId: string expected";
|
|
8345
|
+
if (message.batched != null && message.hasOwnProperty("batched")) {
|
|
8346
|
+
if (!Array.isArray(message.batched))
|
|
8347
|
+
return "batched: array expected";
|
|
8348
|
+
for (var i = 0; i < message.batched.length; ++i) {
|
|
8349
|
+
var error = $root.ContentPlayed.verify(message.batched[i]);
|
|
8350
|
+
if (error)
|
|
8351
|
+
return "batched." + error;
|
|
8352
|
+
}
|
|
8353
|
+
}
|
|
8354
|
+
return null;
|
|
8355
|
+
};
|
|
8356
|
+
|
|
8357
|
+
/**
|
|
8358
|
+
* Creates a ContentPlayedBatch message from a plain object. Also converts values to their respective internal types.
|
|
8359
|
+
* @function fromObject
|
|
8360
|
+
* @memberof ContentPlayedBatch
|
|
8361
|
+
* @static
|
|
8362
|
+
* @param {Object.<string,*>} object Plain object
|
|
8363
|
+
* @returns {ContentPlayedBatch} ContentPlayedBatch
|
|
8364
|
+
*/
|
|
8365
|
+
ContentPlayedBatch.fromObject = function fromObject(object) {
|
|
8366
|
+
if (object instanceof $root.ContentPlayedBatch)
|
|
8367
|
+
return object;
|
|
8368
|
+
var message = new $root.ContentPlayedBatch();
|
|
8369
|
+
if (object.userId != null)
|
|
8370
|
+
message.userId = String(object.userId);
|
|
8371
|
+
if (object.batched) {
|
|
8372
|
+
if (!Array.isArray(object.batched))
|
|
8373
|
+
throw TypeError(".ContentPlayedBatch.batched: array expected");
|
|
8374
|
+
message.batched = [];
|
|
8375
|
+
for (var i = 0; i < object.batched.length; ++i) {
|
|
8376
|
+
if (typeof object.batched[i] !== "object")
|
|
8377
|
+
throw TypeError(".ContentPlayedBatch.batched: object expected");
|
|
8378
|
+
message.batched[i] = $root.ContentPlayed.fromObject(object.batched[i]);
|
|
8379
|
+
}
|
|
8380
|
+
}
|
|
8381
|
+
return message;
|
|
8382
|
+
};
|
|
8383
|
+
|
|
8384
|
+
/**
|
|
8385
|
+
* Creates a plain object from a ContentPlayedBatch message. Also converts values to other types if specified.
|
|
8386
|
+
* @function toObject
|
|
8387
|
+
* @memberof ContentPlayedBatch
|
|
8388
|
+
* @static
|
|
8389
|
+
* @param {ContentPlayedBatch} message ContentPlayedBatch
|
|
8390
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
8391
|
+
* @returns {Object.<string,*>} Plain object
|
|
8392
|
+
*/
|
|
8393
|
+
ContentPlayedBatch.toObject = function toObject(message, options) {
|
|
8394
|
+
if (!options)
|
|
8395
|
+
options = {};
|
|
8396
|
+
var object = {};
|
|
8397
|
+
if (options.arrays || options.defaults)
|
|
8398
|
+
object.batched = [];
|
|
8399
|
+
if (options.defaults)
|
|
8400
|
+
object.userId = "";
|
|
8401
|
+
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
8402
|
+
object.userId = message.userId;
|
|
8403
|
+
if (message.batched && message.batched.length) {
|
|
8404
|
+
object.batched = [];
|
|
8405
|
+
for (var j = 0; j < message.batched.length; ++j)
|
|
8406
|
+
object.batched[j] = $root.ContentPlayed.toObject(message.batched[j], options);
|
|
8407
|
+
}
|
|
8408
|
+
return object;
|
|
8409
|
+
};
|
|
8410
|
+
|
|
8411
|
+
/**
|
|
8412
|
+
* Converts this ContentPlayedBatch to JSON.
|
|
8413
|
+
* @function toJSON
|
|
8414
|
+
* @memberof ContentPlayedBatch
|
|
8415
|
+
* @instance
|
|
8416
|
+
* @returns {Object.<string,*>} JSON object
|
|
8417
|
+
*/
|
|
8418
|
+
ContentPlayedBatch.prototype.toJSON = function toJSON() {
|
|
8419
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
8420
|
+
};
|
|
8421
|
+
|
|
8422
|
+
return ContentPlayedBatch;
|
|
8423
|
+
})();
|
|
8424
|
+
|
|
8425
|
+
/**
|
|
8426
|
+
* ContentType enum.
|
|
8427
|
+
* @exports ContentType
|
|
8428
|
+
* @enum {string}
|
|
8429
|
+
* @property {number} COURSE=0 COURSE value
|
|
8430
|
+
* @property {number} ONEOFF=1 ONEOFF value
|
|
8431
|
+
* @property {number} ANIMATION=2 ANIMATION value
|
|
8432
|
+
* @property {number} SLEEPCAST=3 SLEEPCAST value
|
|
8433
|
+
* @property {number} OBSTACLE=4 OBSTACLE value
|
|
8434
|
+
* @property {number} PLAYLIST=5 PLAYLIST value
|
|
8435
|
+
* @property {number} LANDSCAPE_VIDEO=6 LANDSCAPE_VIDEO value
|
|
8436
|
+
* @property {number} INTEGRATED_AUDIO_PLAYER=7 INTEGRATED_AUDIO_PLAYER value
|
|
8437
|
+
* @property {number} WAKEUP=8 WAKEUP value
|
|
8438
|
+
* @property {number} PODCAST=9 PODCAST value
|
|
8439
|
+
* @property {number} EDHS=10 EDHS value
|
|
8440
|
+
* @property {number} GROUP_MEDITATION=11 GROUP_MEDITATION value
|
|
8441
|
+
* @property {number} INTERVIEW=12 INTERVIEW value
|
|
8442
|
+
*/
|
|
8443
|
+
$root.ContentType = (function() {
|
|
8444
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
8445
|
+
values[valuesById[0] = "COURSE"] = 0;
|
|
8446
|
+
values[valuesById[1] = "ONEOFF"] = 1;
|
|
8447
|
+
values[valuesById[2] = "ANIMATION"] = 2;
|
|
8448
|
+
values[valuesById[3] = "SLEEPCAST"] = 3;
|
|
8449
|
+
values[valuesById[4] = "OBSTACLE"] = 4;
|
|
8450
|
+
values[valuesById[5] = "PLAYLIST"] = 5;
|
|
8451
|
+
values[valuesById[6] = "LANDSCAPE_VIDEO"] = 6;
|
|
8452
|
+
values[valuesById[7] = "INTEGRATED_AUDIO_PLAYER"] = 7;
|
|
8453
|
+
values[valuesById[8] = "WAKEUP"] = 8;
|
|
8454
|
+
values[valuesById[9] = "PODCAST"] = 9;
|
|
8455
|
+
values[valuesById[10] = "EDHS"] = 10;
|
|
8456
|
+
values[valuesById[11] = "GROUP_MEDITATION"] = 11;
|
|
8457
|
+
values[valuesById[12] = "INTERVIEW"] = 12;
|
|
8458
|
+
return values;
|
|
8459
|
+
})();
|
|
8460
|
+
|
|
8461
|
+
/**
|
|
8462
|
+
* Mode enum.
|
|
8463
|
+
* @exports Mode
|
|
8464
|
+
* @enum {string}
|
|
8465
|
+
* @property {number} FOCUS=0 FOCUS value
|
|
8466
|
+
* @property {number} MOVE=1 MOVE value
|
|
8467
|
+
* @property {number} SLEEP=2 SLEEP value
|
|
8468
|
+
* @property {number} MEDITATE=3 MEDITATE value
|
|
8469
|
+
* @property {number} TODAY=4 TODAY value
|
|
8470
|
+
*/
|
|
8471
|
+
$root.Mode = (function() {
|
|
8472
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
8473
|
+
values[valuesById[0] = "FOCUS"] = 0;
|
|
8474
|
+
values[valuesById[1] = "MOVE"] = 1;
|
|
8475
|
+
values[valuesById[2] = "SLEEP"] = 2;
|
|
8476
|
+
values[valuesById[3] = "MEDITATE"] = 3;
|
|
8477
|
+
values[valuesById[4] = "TODAY"] = 4;
|
|
8478
|
+
return values;
|
|
8479
|
+
})();
|
|
8480
|
+
|
|
8481
|
+
$root.ContentPlayedMetadata = (function() {
|
|
8482
|
+
|
|
8483
|
+
/**
|
|
8484
|
+
* Properties of a ContentPlayedMetadata.
|
|
8485
|
+
* @exports IContentPlayedMetadata
|
|
8486
|
+
* @interface IContentPlayedMetadata
|
|
8487
|
+
* @property {number|null} [activityGroupId] ContentPlayedMetadata activityGroupId
|
|
8488
|
+
* @property {number|null} [activityId] ContentPlayedMetadata activityId
|
|
8489
|
+
* @property {number|null} [activityVariationId] ContentPlayedMetadata activityVariationId
|
|
8490
|
+
* @property {number|null} [durationMinutes] ContentPlayedMetadata durationMinutes
|
|
8491
|
+
*/
|
|
8492
|
+
|
|
8493
|
+
/**
|
|
8494
|
+
* Constructs a new ContentPlayedMetadata.
|
|
8495
|
+
* @exports ContentPlayedMetadata
|
|
8496
|
+
* @classdesc Represents a ContentPlayedMetadata.
|
|
8497
|
+
* @implements IContentPlayedMetadata
|
|
8498
|
+
* @constructor
|
|
8499
|
+
* @param {IContentPlayedMetadata=} [properties] Properties to set
|
|
8500
|
+
*/
|
|
8501
|
+
function ContentPlayedMetadata(properties) {
|
|
8502
|
+
if (properties)
|
|
8503
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
8504
|
+
if (properties[keys[i]] != null)
|
|
8505
|
+
this[keys[i]] = properties[keys[i]];
|
|
8506
|
+
}
|
|
8507
|
+
|
|
8508
|
+
/**
|
|
8509
|
+
* ContentPlayedMetadata activityGroupId.
|
|
8510
|
+
* @member {number} activityGroupId
|
|
8511
|
+
* @memberof ContentPlayedMetadata
|
|
8512
|
+
* @instance
|
|
8513
|
+
*/
|
|
8514
|
+
ContentPlayedMetadata.prototype.activityGroupId = 0;
|
|
8515
|
+
|
|
8516
|
+
/**
|
|
8517
|
+
* ContentPlayedMetadata activityId.
|
|
8518
|
+
* @member {number} activityId
|
|
8519
|
+
* @memberof ContentPlayedMetadata
|
|
8520
|
+
* @instance
|
|
8521
|
+
*/
|
|
8522
|
+
ContentPlayedMetadata.prototype.activityId = 0;
|
|
8523
|
+
|
|
8524
|
+
/**
|
|
8525
|
+
* ContentPlayedMetadata activityVariationId.
|
|
8526
|
+
* @member {number} activityVariationId
|
|
8527
|
+
* @memberof ContentPlayedMetadata
|
|
8528
|
+
* @instance
|
|
8529
|
+
*/
|
|
8530
|
+
ContentPlayedMetadata.prototype.activityVariationId = 0;
|
|
8531
|
+
|
|
8532
|
+
/**
|
|
8533
|
+
* ContentPlayedMetadata durationMinutes.
|
|
8534
|
+
* @member {number} durationMinutes
|
|
8535
|
+
* @memberof ContentPlayedMetadata
|
|
8536
|
+
* @instance
|
|
8537
|
+
*/
|
|
8538
|
+
ContentPlayedMetadata.prototype.durationMinutes = 0;
|
|
8539
|
+
|
|
8540
|
+
/**
|
|
8541
|
+
* Creates a new ContentPlayedMetadata instance using the specified properties.
|
|
8542
|
+
* @function create
|
|
8543
|
+
* @memberof ContentPlayedMetadata
|
|
8544
|
+
* @static
|
|
8545
|
+
* @param {IContentPlayedMetadata=} [properties] Properties to set
|
|
8546
|
+
* @returns {ContentPlayedMetadata} ContentPlayedMetadata instance
|
|
8547
|
+
*/
|
|
8548
|
+
ContentPlayedMetadata.create = function create(properties) {
|
|
8549
|
+
return new ContentPlayedMetadata(properties);
|
|
8550
|
+
};
|
|
8551
|
+
|
|
8552
|
+
/**
|
|
8553
|
+
* Encodes the specified ContentPlayedMetadata message. Does not implicitly {@link ContentPlayedMetadata.verify|verify} messages.
|
|
8554
|
+
* @function encode
|
|
8555
|
+
* @memberof ContentPlayedMetadata
|
|
8556
|
+
* @static
|
|
8557
|
+
* @param {IContentPlayedMetadata} message ContentPlayedMetadata message or plain object to encode
|
|
8558
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
8559
|
+
* @returns {$protobuf.Writer} Writer
|
|
8560
|
+
*/
|
|
8561
|
+
ContentPlayedMetadata.encode = function encode(message, writer) {
|
|
8562
|
+
if (!writer)
|
|
8563
|
+
writer = $Writer.create();
|
|
8564
|
+
if (message.activityGroupId != null && message.hasOwnProperty("activityGroupId"))
|
|
8565
|
+
writer.uint32(/* id 1, wireType 0 =*/8).uint32(message.activityGroupId);
|
|
8566
|
+
if (message.activityId != null && message.hasOwnProperty("activityId"))
|
|
8567
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint32(message.activityId);
|
|
8568
|
+
if (message.activityVariationId != null && message.hasOwnProperty("activityVariationId"))
|
|
8569
|
+
writer.uint32(/* id 3, wireType 0 =*/24).uint32(message.activityVariationId);
|
|
8570
|
+
if (message.durationMinutes != null && message.hasOwnProperty("durationMinutes"))
|
|
8571
|
+
writer.uint32(/* id 4, wireType 0 =*/32).uint32(message.durationMinutes);
|
|
8572
|
+
return writer;
|
|
8573
|
+
};
|
|
8574
|
+
|
|
8575
|
+
/**
|
|
8576
|
+
* Encodes the specified ContentPlayedMetadata message, length delimited. Does not implicitly {@link ContentPlayedMetadata.verify|verify} messages.
|
|
8577
|
+
* @function encodeDelimited
|
|
8578
|
+
* @memberof ContentPlayedMetadata
|
|
7868
8579
|
* @static
|
|
7869
|
-
* @param {
|
|
8580
|
+
* @param {IContentPlayedMetadata} message ContentPlayedMetadata message or plain object to encode
|
|
7870
8581
|
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
7871
8582
|
* @returns {$protobuf.Writer} Writer
|
|
7872
8583
|
*/
|
|
7873
|
-
|
|
8584
|
+
ContentPlayedMetadata.encodeDelimited = function encodeDelimited(message, writer) {
|
|
7874
8585
|
return this.encode(message, writer).ldelim();
|
|
7875
8586
|
};
|
|
7876
8587
|
|
|
7877
8588
|
/**
|
|
7878
|
-
* Decodes a
|
|
8589
|
+
* Decodes a ContentPlayedMetadata message from the specified reader or buffer.
|
|
7879
8590
|
* @function decode
|
|
7880
|
-
* @memberof
|
|
8591
|
+
* @memberof ContentPlayedMetadata
|
|
7881
8592
|
* @static
|
|
7882
8593
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
7883
8594
|
* @param {number} [length] Message length if known beforehand
|
|
7884
|
-
* @returns {
|
|
8595
|
+
* @returns {ContentPlayedMetadata} ContentPlayedMetadata
|
|
7885
8596
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7886
8597
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7887
8598
|
*/
|
|
7888
|
-
|
|
8599
|
+
ContentPlayedMetadata.decode = function decode(reader, length) {
|
|
7889
8600
|
if (!(reader instanceof $Reader))
|
|
7890
8601
|
reader = $Reader.create(reader);
|
|
7891
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.
|
|
8602
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.ContentPlayedMetadata();
|
|
7892
8603
|
while (reader.pos < end) {
|
|
7893
8604
|
var tag = reader.uint32();
|
|
7894
8605
|
switch (tag >>> 3) {
|
|
7895
8606
|
case 1:
|
|
7896
|
-
message.
|
|
8607
|
+
message.activityGroupId = reader.uint32();
|
|
7897
8608
|
break;
|
|
7898
8609
|
case 2:
|
|
7899
|
-
message.
|
|
8610
|
+
message.activityId = reader.uint32();
|
|
7900
8611
|
break;
|
|
7901
8612
|
case 3:
|
|
7902
|
-
message.
|
|
8613
|
+
message.activityVariationId = reader.uint32();
|
|
8614
|
+
break;
|
|
8615
|
+
case 4:
|
|
8616
|
+
message.durationMinutes = reader.uint32();
|
|
7903
8617
|
break;
|
|
7904
8618
|
default:
|
|
7905
8619
|
reader.skipType(tag & 7);
|
|
@@ -7910,118 +8624,112 @@ $root.ContentPlayed = (function() {
|
|
|
7910
8624
|
};
|
|
7911
8625
|
|
|
7912
8626
|
/**
|
|
7913
|
-
* Decodes a
|
|
8627
|
+
* Decodes a ContentPlayedMetadata message from the specified reader or buffer, length delimited.
|
|
7914
8628
|
* @function decodeDelimited
|
|
7915
|
-
* @memberof
|
|
8629
|
+
* @memberof ContentPlayedMetadata
|
|
7916
8630
|
* @static
|
|
7917
8631
|
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
7918
|
-
* @returns {
|
|
8632
|
+
* @returns {ContentPlayedMetadata} ContentPlayedMetadata
|
|
7919
8633
|
* @throws {Error} If the payload is not a reader or valid buffer
|
|
7920
8634
|
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
7921
8635
|
*/
|
|
7922
|
-
|
|
8636
|
+
ContentPlayedMetadata.decodeDelimited = function decodeDelimited(reader) {
|
|
7923
8637
|
if (!(reader instanceof $Reader))
|
|
7924
8638
|
reader = new $Reader(reader);
|
|
7925
8639
|
return this.decode(reader, reader.uint32());
|
|
7926
8640
|
};
|
|
7927
8641
|
|
|
7928
8642
|
/**
|
|
7929
|
-
* Verifies a
|
|
8643
|
+
* Verifies a ContentPlayedMetadata message.
|
|
7930
8644
|
* @function verify
|
|
7931
|
-
* @memberof
|
|
8645
|
+
* @memberof ContentPlayedMetadata
|
|
7932
8646
|
* @static
|
|
7933
8647
|
* @param {Object.<string,*>} message Plain object to verify
|
|
7934
8648
|
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
7935
8649
|
*/
|
|
7936
|
-
|
|
8650
|
+
ContentPlayedMetadata.verify = function verify(message) {
|
|
7937
8651
|
if (typeof message !== "object" || message === null)
|
|
7938
8652
|
return "object expected";
|
|
7939
|
-
if (message.
|
|
7940
|
-
if (!$util.isInteger(message.
|
|
7941
|
-
return "
|
|
7942
|
-
if (message.
|
|
7943
|
-
if (!$util.isInteger(message.
|
|
7944
|
-
return "
|
|
7945
|
-
if (message.
|
|
7946
|
-
if (!$util.
|
|
7947
|
-
return "
|
|
8653
|
+
if (message.activityGroupId != null && message.hasOwnProperty("activityGroupId"))
|
|
8654
|
+
if (!$util.isInteger(message.activityGroupId))
|
|
8655
|
+
return "activityGroupId: integer expected";
|
|
8656
|
+
if (message.activityId != null && message.hasOwnProperty("activityId"))
|
|
8657
|
+
if (!$util.isInteger(message.activityId))
|
|
8658
|
+
return "activityId: integer expected";
|
|
8659
|
+
if (message.activityVariationId != null && message.hasOwnProperty("activityVariationId"))
|
|
8660
|
+
if (!$util.isInteger(message.activityVariationId))
|
|
8661
|
+
return "activityVariationId: integer expected";
|
|
8662
|
+
if (message.durationMinutes != null && message.hasOwnProperty("durationMinutes"))
|
|
8663
|
+
if (!$util.isInteger(message.durationMinutes))
|
|
8664
|
+
return "durationMinutes: integer expected";
|
|
7948
8665
|
return null;
|
|
7949
8666
|
};
|
|
7950
8667
|
|
|
7951
8668
|
/**
|
|
7952
|
-
* Creates a
|
|
8669
|
+
* Creates a ContentPlayedMetadata message from a plain object. Also converts values to their respective internal types.
|
|
7953
8670
|
* @function fromObject
|
|
7954
|
-
* @memberof
|
|
8671
|
+
* @memberof ContentPlayedMetadata
|
|
7955
8672
|
* @static
|
|
7956
8673
|
* @param {Object.<string,*>} object Plain object
|
|
7957
|
-
* @returns {
|
|
8674
|
+
* @returns {ContentPlayedMetadata} ContentPlayedMetadata
|
|
7958
8675
|
*/
|
|
7959
|
-
|
|
7960
|
-
if (object instanceof $root.
|
|
8676
|
+
ContentPlayedMetadata.fromObject = function fromObject(object) {
|
|
8677
|
+
if (object instanceof $root.ContentPlayedMetadata)
|
|
7961
8678
|
return object;
|
|
7962
|
-
var message = new $root.
|
|
7963
|
-
if (object.
|
|
7964
|
-
|
|
7965
|
-
|
|
7966
|
-
|
|
7967
|
-
|
|
7968
|
-
|
|
7969
|
-
|
|
7970
|
-
|
|
7971
|
-
message.timestamp = new $util.LongBits(object.timestamp.low >>> 0, object.timestamp.high >>> 0).toNumber(true);
|
|
7972
|
-
if (object.contentId != null)
|
|
7973
|
-
message.contentId = object.contentId >>> 0;
|
|
7974
|
-
if (object.userId != null)
|
|
7975
|
-
message.userId = String(object.userId);
|
|
8679
|
+
var message = new $root.ContentPlayedMetadata();
|
|
8680
|
+
if (object.activityGroupId != null)
|
|
8681
|
+
message.activityGroupId = object.activityGroupId >>> 0;
|
|
8682
|
+
if (object.activityId != null)
|
|
8683
|
+
message.activityId = object.activityId >>> 0;
|
|
8684
|
+
if (object.activityVariationId != null)
|
|
8685
|
+
message.activityVariationId = object.activityVariationId >>> 0;
|
|
8686
|
+
if (object.durationMinutes != null)
|
|
8687
|
+
message.durationMinutes = object.durationMinutes >>> 0;
|
|
7976
8688
|
return message;
|
|
7977
8689
|
};
|
|
7978
8690
|
|
|
7979
8691
|
/**
|
|
7980
|
-
* Creates a plain object from a
|
|
8692
|
+
* Creates a plain object from a ContentPlayedMetadata message. Also converts values to other types if specified.
|
|
7981
8693
|
* @function toObject
|
|
7982
|
-
* @memberof
|
|
8694
|
+
* @memberof ContentPlayedMetadata
|
|
7983
8695
|
* @static
|
|
7984
|
-
* @param {
|
|
8696
|
+
* @param {ContentPlayedMetadata} message ContentPlayedMetadata
|
|
7985
8697
|
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
7986
8698
|
* @returns {Object.<string,*>} Plain object
|
|
7987
8699
|
*/
|
|
7988
|
-
|
|
8700
|
+
ContentPlayedMetadata.toObject = function toObject(message, options) {
|
|
7989
8701
|
if (!options)
|
|
7990
8702
|
options = {};
|
|
7991
8703
|
var object = {};
|
|
7992
8704
|
if (options.defaults) {
|
|
7993
|
-
|
|
7994
|
-
|
|
7995
|
-
|
|
7996
|
-
|
|
7997
|
-
object.timestamp = options.longs === String ? "0" : 0;
|
|
7998
|
-
object.contentId = 0;
|
|
7999
|
-
object.userId = "";
|
|
8705
|
+
object.activityGroupId = 0;
|
|
8706
|
+
object.activityId = 0;
|
|
8707
|
+
object.activityVariationId = 0;
|
|
8708
|
+
object.durationMinutes = 0;
|
|
8000
8709
|
}
|
|
8001
|
-
if (message.
|
|
8002
|
-
|
|
8003
|
-
|
|
8004
|
-
|
|
8005
|
-
|
|
8006
|
-
|
|
8007
|
-
|
|
8008
|
-
|
|
8009
|
-
object.userId = message.userId;
|
|
8710
|
+
if (message.activityGroupId != null && message.hasOwnProperty("activityGroupId"))
|
|
8711
|
+
object.activityGroupId = message.activityGroupId;
|
|
8712
|
+
if (message.activityId != null && message.hasOwnProperty("activityId"))
|
|
8713
|
+
object.activityId = message.activityId;
|
|
8714
|
+
if (message.activityVariationId != null && message.hasOwnProperty("activityVariationId"))
|
|
8715
|
+
object.activityVariationId = message.activityVariationId;
|
|
8716
|
+
if (message.durationMinutes != null && message.hasOwnProperty("durationMinutes"))
|
|
8717
|
+
object.durationMinutes = message.durationMinutes;
|
|
8010
8718
|
return object;
|
|
8011
8719
|
};
|
|
8012
8720
|
|
|
8013
8721
|
/**
|
|
8014
|
-
* Converts this
|
|
8722
|
+
* Converts this ContentPlayedMetadata to JSON.
|
|
8015
8723
|
* @function toJSON
|
|
8016
|
-
* @memberof
|
|
8724
|
+
* @memberof ContentPlayedMetadata
|
|
8017
8725
|
* @instance
|
|
8018
8726
|
* @returns {Object.<string,*>} JSON object
|
|
8019
8727
|
*/
|
|
8020
|
-
|
|
8728
|
+
ContentPlayedMetadata.prototype.toJSON = function toJSON() {
|
|
8021
8729
|
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
8022
8730
|
};
|
|
8023
8731
|
|
|
8024
|
-
return
|
|
8732
|
+
return ContentPlayedMetadata;
|
|
8025
8733
|
})();
|
|
8026
8734
|
|
|
8027
8735
|
$root.BuddyAccepted = (function() {
|
|
@@ -13052,6 +13760,230 @@ $root.AccessGroupCreated = (function() {
|
|
|
13052
13760
|
return AccessGroupCreated;
|
|
13053
13761
|
})();
|
|
13054
13762
|
|
|
13763
|
+
$root.AccessGroupDeleted = (function() {
|
|
13764
|
+
|
|
13765
|
+
/**
|
|
13766
|
+
* Properties of an AccessGroupDeleted.
|
|
13767
|
+
* @exports IAccessGroupDeleted
|
|
13768
|
+
* @interface IAccessGroupDeleted
|
|
13769
|
+
* @property {string|null} [accessGroupName] AccessGroupDeleted accessGroupName
|
|
13770
|
+
* @property {number|Long|null} [deletedAt] AccessGroupDeleted deletedAt
|
|
13771
|
+
*/
|
|
13772
|
+
|
|
13773
|
+
/**
|
|
13774
|
+
* Constructs a new AccessGroupDeleted.
|
|
13775
|
+
* @exports AccessGroupDeleted
|
|
13776
|
+
* @classdesc Represents an AccessGroupDeleted.
|
|
13777
|
+
* @implements IAccessGroupDeleted
|
|
13778
|
+
* @constructor
|
|
13779
|
+
* @param {IAccessGroupDeleted=} [properties] Properties to set
|
|
13780
|
+
*/
|
|
13781
|
+
function AccessGroupDeleted(properties) {
|
|
13782
|
+
if (properties)
|
|
13783
|
+
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
13784
|
+
if (properties[keys[i]] != null)
|
|
13785
|
+
this[keys[i]] = properties[keys[i]];
|
|
13786
|
+
}
|
|
13787
|
+
|
|
13788
|
+
/**
|
|
13789
|
+
* AccessGroupDeleted accessGroupName.
|
|
13790
|
+
* @member {string} accessGroupName
|
|
13791
|
+
* @memberof AccessGroupDeleted
|
|
13792
|
+
* @instance
|
|
13793
|
+
*/
|
|
13794
|
+
AccessGroupDeleted.prototype.accessGroupName = "";
|
|
13795
|
+
|
|
13796
|
+
/**
|
|
13797
|
+
* AccessGroupDeleted deletedAt.
|
|
13798
|
+
* @member {number|Long} deletedAt
|
|
13799
|
+
* @memberof AccessGroupDeleted
|
|
13800
|
+
* @instance
|
|
13801
|
+
*/
|
|
13802
|
+
AccessGroupDeleted.prototype.deletedAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
13803
|
+
|
|
13804
|
+
/**
|
|
13805
|
+
* Creates a new AccessGroupDeleted instance using the specified properties.
|
|
13806
|
+
* @function create
|
|
13807
|
+
* @memberof AccessGroupDeleted
|
|
13808
|
+
* @static
|
|
13809
|
+
* @param {IAccessGroupDeleted=} [properties] Properties to set
|
|
13810
|
+
* @returns {AccessGroupDeleted} AccessGroupDeleted instance
|
|
13811
|
+
*/
|
|
13812
|
+
AccessGroupDeleted.create = function create(properties) {
|
|
13813
|
+
return new AccessGroupDeleted(properties);
|
|
13814
|
+
};
|
|
13815
|
+
|
|
13816
|
+
/**
|
|
13817
|
+
* Encodes the specified AccessGroupDeleted message. Does not implicitly {@link AccessGroupDeleted.verify|verify} messages.
|
|
13818
|
+
* @function encode
|
|
13819
|
+
* @memberof AccessGroupDeleted
|
|
13820
|
+
* @static
|
|
13821
|
+
* @param {IAccessGroupDeleted} message AccessGroupDeleted message or plain object to encode
|
|
13822
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
13823
|
+
* @returns {$protobuf.Writer} Writer
|
|
13824
|
+
*/
|
|
13825
|
+
AccessGroupDeleted.encode = function encode(message, writer) {
|
|
13826
|
+
if (!writer)
|
|
13827
|
+
writer = $Writer.create();
|
|
13828
|
+
if (message.accessGroupName != null && message.hasOwnProperty("accessGroupName"))
|
|
13829
|
+
writer.uint32(/* id 1, wireType 2 =*/10).string(message.accessGroupName);
|
|
13830
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
13831
|
+
writer.uint32(/* id 2, wireType 0 =*/16).uint64(message.deletedAt);
|
|
13832
|
+
return writer;
|
|
13833
|
+
};
|
|
13834
|
+
|
|
13835
|
+
/**
|
|
13836
|
+
* Encodes the specified AccessGroupDeleted message, length delimited. Does not implicitly {@link AccessGroupDeleted.verify|verify} messages.
|
|
13837
|
+
* @function encodeDelimited
|
|
13838
|
+
* @memberof AccessGroupDeleted
|
|
13839
|
+
* @static
|
|
13840
|
+
* @param {IAccessGroupDeleted} message AccessGroupDeleted message or plain object to encode
|
|
13841
|
+
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
13842
|
+
* @returns {$protobuf.Writer} Writer
|
|
13843
|
+
*/
|
|
13844
|
+
AccessGroupDeleted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
13845
|
+
return this.encode(message, writer).ldelim();
|
|
13846
|
+
};
|
|
13847
|
+
|
|
13848
|
+
/**
|
|
13849
|
+
* Decodes an AccessGroupDeleted message from the specified reader or buffer.
|
|
13850
|
+
* @function decode
|
|
13851
|
+
* @memberof AccessGroupDeleted
|
|
13852
|
+
* @static
|
|
13853
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
13854
|
+
* @param {number} [length] Message length if known beforehand
|
|
13855
|
+
* @returns {AccessGroupDeleted} AccessGroupDeleted
|
|
13856
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
13857
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
13858
|
+
*/
|
|
13859
|
+
AccessGroupDeleted.decode = function decode(reader, length) {
|
|
13860
|
+
if (!(reader instanceof $Reader))
|
|
13861
|
+
reader = $Reader.create(reader);
|
|
13862
|
+
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.AccessGroupDeleted();
|
|
13863
|
+
while (reader.pos < end) {
|
|
13864
|
+
var tag = reader.uint32();
|
|
13865
|
+
switch (tag >>> 3) {
|
|
13866
|
+
case 1:
|
|
13867
|
+
message.accessGroupName = reader.string();
|
|
13868
|
+
break;
|
|
13869
|
+
case 2:
|
|
13870
|
+
message.deletedAt = reader.uint64();
|
|
13871
|
+
break;
|
|
13872
|
+
default:
|
|
13873
|
+
reader.skipType(tag & 7);
|
|
13874
|
+
break;
|
|
13875
|
+
}
|
|
13876
|
+
}
|
|
13877
|
+
return message;
|
|
13878
|
+
};
|
|
13879
|
+
|
|
13880
|
+
/**
|
|
13881
|
+
* Decodes an AccessGroupDeleted message from the specified reader or buffer, length delimited.
|
|
13882
|
+
* @function decodeDelimited
|
|
13883
|
+
* @memberof AccessGroupDeleted
|
|
13884
|
+
* @static
|
|
13885
|
+
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
13886
|
+
* @returns {AccessGroupDeleted} AccessGroupDeleted
|
|
13887
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
13888
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
13889
|
+
*/
|
|
13890
|
+
AccessGroupDeleted.decodeDelimited = function decodeDelimited(reader) {
|
|
13891
|
+
if (!(reader instanceof $Reader))
|
|
13892
|
+
reader = new $Reader(reader);
|
|
13893
|
+
return this.decode(reader, reader.uint32());
|
|
13894
|
+
};
|
|
13895
|
+
|
|
13896
|
+
/**
|
|
13897
|
+
* Verifies an AccessGroupDeleted message.
|
|
13898
|
+
* @function verify
|
|
13899
|
+
* @memberof AccessGroupDeleted
|
|
13900
|
+
* @static
|
|
13901
|
+
* @param {Object.<string,*>} message Plain object to verify
|
|
13902
|
+
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
13903
|
+
*/
|
|
13904
|
+
AccessGroupDeleted.verify = function verify(message) {
|
|
13905
|
+
if (typeof message !== "object" || message === null)
|
|
13906
|
+
return "object expected";
|
|
13907
|
+
if (message.accessGroupName != null && message.hasOwnProperty("accessGroupName"))
|
|
13908
|
+
if (!$util.isString(message.accessGroupName))
|
|
13909
|
+
return "accessGroupName: string expected";
|
|
13910
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
13911
|
+
if (!$util.isInteger(message.deletedAt) && !(message.deletedAt && $util.isInteger(message.deletedAt.low) && $util.isInteger(message.deletedAt.high)))
|
|
13912
|
+
return "deletedAt: integer|Long expected";
|
|
13913
|
+
return null;
|
|
13914
|
+
};
|
|
13915
|
+
|
|
13916
|
+
/**
|
|
13917
|
+
* Creates an AccessGroupDeleted message from a plain object. Also converts values to their respective internal types.
|
|
13918
|
+
* @function fromObject
|
|
13919
|
+
* @memberof AccessGroupDeleted
|
|
13920
|
+
* @static
|
|
13921
|
+
* @param {Object.<string,*>} object Plain object
|
|
13922
|
+
* @returns {AccessGroupDeleted} AccessGroupDeleted
|
|
13923
|
+
*/
|
|
13924
|
+
AccessGroupDeleted.fromObject = function fromObject(object) {
|
|
13925
|
+
if (object instanceof $root.AccessGroupDeleted)
|
|
13926
|
+
return object;
|
|
13927
|
+
var message = new $root.AccessGroupDeleted();
|
|
13928
|
+
if (object.accessGroupName != null)
|
|
13929
|
+
message.accessGroupName = String(object.accessGroupName);
|
|
13930
|
+
if (object.deletedAt != null)
|
|
13931
|
+
if ($util.Long)
|
|
13932
|
+
(message.deletedAt = $util.Long.fromValue(object.deletedAt)).unsigned = true;
|
|
13933
|
+
else if (typeof object.deletedAt === "string")
|
|
13934
|
+
message.deletedAt = parseInt(object.deletedAt, 10);
|
|
13935
|
+
else if (typeof object.deletedAt === "number")
|
|
13936
|
+
message.deletedAt = object.deletedAt;
|
|
13937
|
+
else if (typeof object.deletedAt === "object")
|
|
13938
|
+
message.deletedAt = new $util.LongBits(object.deletedAt.low >>> 0, object.deletedAt.high >>> 0).toNumber(true);
|
|
13939
|
+
return message;
|
|
13940
|
+
};
|
|
13941
|
+
|
|
13942
|
+
/**
|
|
13943
|
+
* Creates a plain object from an AccessGroupDeleted message. Also converts values to other types if specified.
|
|
13944
|
+
* @function toObject
|
|
13945
|
+
* @memberof AccessGroupDeleted
|
|
13946
|
+
* @static
|
|
13947
|
+
* @param {AccessGroupDeleted} message AccessGroupDeleted
|
|
13948
|
+
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
13949
|
+
* @returns {Object.<string,*>} Plain object
|
|
13950
|
+
*/
|
|
13951
|
+
AccessGroupDeleted.toObject = function toObject(message, options) {
|
|
13952
|
+
if (!options)
|
|
13953
|
+
options = {};
|
|
13954
|
+
var object = {};
|
|
13955
|
+
if (options.defaults) {
|
|
13956
|
+
object.accessGroupName = "";
|
|
13957
|
+
if ($util.Long) {
|
|
13958
|
+
var long = new $util.Long(0, 0, true);
|
|
13959
|
+
object.deletedAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
13960
|
+
} else
|
|
13961
|
+
object.deletedAt = options.longs === String ? "0" : 0;
|
|
13962
|
+
}
|
|
13963
|
+
if (message.accessGroupName != null && message.hasOwnProperty("accessGroupName"))
|
|
13964
|
+
object.accessGroupName = message.accessGroupName;
|
|
13965
|
+
if (message.deletedAt != null && message.hasOwnProperty("deletedAt"))
|
|
13966
|
+
if (typeof message.deletedAt === "number")
|
|
13967
|
+
object.deletedAt = options.longs === String ? String(message.deletedAt) : message.deletedAt;
|
|
13968
|
+
else
|
|
13969
|
+
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;
|
|
13970
|
+
return object;
|
|
13971
|
+
};
|
|
13972
|
+
|
|
13973
|
+
/**
|
|
13974
|
+
* Converts this AccessGroupDeleted to JSON.
|
|
13975
|
+
* @function toJSON
|
|
13976
|
+
* @memberof AccessGroupDeleted
|
|
13977
|
+
* @instance
|
|
13978
|
+
* @returns {Object.<string,*>} JSON object
|
|
13979
|
+
*/
|
|
13980
|
+
AccessGroupDeleted.prototype.toJSON = function toJSON() {
|
|
13981
|
+
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
13982
|
+
};
|
|
13983
|
+
|
|
13984
|
+
return AccessGroupDeleted;
|
|
13985
|
+
})();
|
|
13986
|
+
|
|
13055
13987
|
$root.ReferralSignedUp = (function() {
|
|
13056
13988
|
|
|
13057
13989
|
/**
|
|
@@ -14031,7 +14963,7 @@ $root.SubscriptionCreated = (function() {
|
|
|
14031
14963
|
* @property {subscription.AutoRenewalStatus|null} [autoRenewalStatus] SubscriptionCreated autoRenewalStatus
|
|
14032
14964
|
* @property {subscription.IPlan|null} [plan] SubscriptionCreated plan
|
|
14033
14965
|
* @property {subscription.SubscriptionState|null} [subscriptionState] SubscriptionCreated subscriptionState
|
|
14034
|
-
* @property {Array.<subscription.
|
|
14966
|
+
* @property {Array.<subscription.SubscriptionLabels>|null} [labels] SubscriptionCreated labels
|
|
14035
14967
|
*/
|
|
14036
14968
|
|
|
14037
14969
|
/**
|
|
@@ -14140,7 +15072,7 @@ $root.SubscriptionCreated = (function() {
|
|
|
14140
15072
|
|
|
14141
15073
|
/**
|
|
14142
15074
|
* SubscriptionCreated labels.
|
|
14143
|
-
* @member {Array.<subscription.
|
|
15075
|
+
* @member {Array.<subscription.SubscriptionLabels>} labels
|
|
14144
15076
|
* @memberof SubscriptionCreated
|
|
14145
15077
|
* @instance
|
|
14146
15078
|
*/
|
|
@@ -14520,7 +15452,7 @@ $root.SubscriptionCreated = (function() {
|
|
|
14520
15452
|
for (var i = 0; i < object.labels.length; ++i)
|
|
14521
15453
|
switch (object.labels[i]) {
|
|
14522
15454
|
default:
|
|
14523
|
-
case "
|
|
15455
|
+
case "SUBLABEL_FREE_TRIAL":
|
|
14524
15456
|
case 0:
|
|
14525
15457
|
message.labels[i] = 0;
|
|
14526
15458
|
break;
|
|
@@ -14610,7 +15542,7 @@ $root.SubscriptionCreated = (function() {
|
|
|
14610
15542
|
if (message.labels && message.labels.length) {
|
|
14611
15543
|
object.labels = [];
|
|
14612
15544
|
for (var j = 0; j < message.labels.length; ++j)
|
|
14613
|
-
object.labels[j] = options.enums === String ? $root.subscription.
|
|
15545
|
+
object.labels[j] = options.enums === String ? $root.subscription.SubscriptionLabels[message.labels[j]] : message.labels[j];
|
|
14614
15546
|
}
|
|
14615
15547
|
return object;
|
|
14616
15548
|
};
|
|
@@ -14648,7 +15580,7 @@ $root.SubscriptionCancelled = (function() {
|
|
|
14648
15580
|
* @property {subscription.IPlan|null} [plan] SubscriptionCancelled plan
|
|
14649
15581
|
* @property {subscription.CancellationType|null} [cancellationType] SubscriptionCancelled cancellationType
|
|
14650
15582
|
* @property {subscription.SubscriptionState|null} [subscriptionState] SubscriptionCancelled subscriptionState
|
|
14651
|
-
* @property {Array.<subscription.
|
|
15583
|
+
* @property {Array.<subscription.SubscriptionLabels>|null} [labels] SubscriptionCancelled labels
|
|
14652
15584
|
*/
|
|
14653
15585
|
|
|
14654
15586
|
/**
|
|
@@ -14773,7 +15705,7 @@ $root.SubscriptionCancelled = (function() {
|
|
|
14773
15705
|
|
|
14774
15706
|
/**
|
|
14775
15707
|
* SubscriptionCancelled labels.
|
|
14776
|
-
* @member {Array.<subscription.
|
|
15708
|
+
* @member {Array.<subscription.SubscriptionLabels>} labels
|
|
14777
15709
|
* @memberof SubscriptionCancelled
|
|
14778
15710
|
* @instance
|
|
14779
15711
|
*/
|
|
@@ -15196,7 +16128,7 @@ $root.SubscriptionCancelled = (function() {
|
|
|
15196
16128
|
for (var i = 0; i < object.labels.length; ++i)
|
|
15197
16129
|
switch (object.labels[i]) {
|
|
15198
16130
|
default:
|
|
15199
|
-
case "
|
|
16131
|
+
case "SUBLABEL_FREE_TRIAL":
|
|
15200
16132
|
case 0:
|
|
15201
16133
|
message.labels[i] = 0;
|
|
15202
16134
|
break;
|
|
@@ -15292,7 +16224,7 @@ $root.SubscriptionCancelled = (function() {
|
|
|
15292
16224
|
if (message.labels && message.labels.length) {
|
|
15293
16225
|
object.labels = [];
|
|
15294
16226
|
for (var j = 0; j < message.labels.length; ++j)
|
|
15295
|
-
object.labels[j] = options.enums === String ? $root.subscription.
|
|
16227
|
+
object.labels[j] = options.enums === String ? $root.subscription.SubscriptionLabels[message.labels[j]] : message.labels[j];
|
|
15296
16228
|
}
|
|
15297
16229
|
return object;
|
|
15298
16230
|
};
|
|
@@ -15328,7 +16260,7 @@ $root.SubscriptionRenewed = (function() {
|
|
|
15328
16260
|
* @property {subscription.AutoRenewalStatus|null} [autoRenewalStatus] SubscriptionRenewed autoRenewalStatus
|
|
15329
16261
|
* @property {subscription.IPlan|null} [plan] SubscriptionRenewed plan
|
|
15330
16262
|
* @property {subscription.SubscriptionState|null} [subscriptionState] SubscriptionRenewed subscriptionState
|
|
15331
|
-
* @property {Array.<subscription.
|
|
16263
|
+
* @property {Array.<subscription.SubscriptionLabels>|null} [labels] SubscriptionRenewed labels
|
|
15332
16264
|
* @property {number|Long|null} [renewalCount] SubscriptionRenewed renewalCount
|
|
15333
16265
|
*/
|
|
15334
16266
|
|
|
@@ -15438,7 +16370,7 @@ $root.SubscriptionRenewed = (function() {
|
|
|
15438
16370
|
|
|
15439
16371
|
/**
|
|
15440
16372
|
* SubscriptionRenewed labels.
|
|
15441
|
-
* @member {Array.<subscription.
|
|
16373
|
+
* @member {Array.<subscription.SubscriptionLabels>} labels
|
|
15442
16374
|
* @memberof SubscriptionRenewed
|
|
15443
16375
|
* @instance
|
|
15444
16376
|
*/
|
|
@@ -15834,7 +16766,7 @@ $root.SubscriptionRenewed = (function() {
|
|
|
15834
16766
|
for (var i = 0; i < object.labels.length; ++i)
|
|
15835
16767
|
switch (object.labels[i]) {
|
|
15836
16768
|
default:
|
|
15837
|
-
case "
|
|
16769
|
+
case "SUBLABEL_FREE_TRIAL":
|
|
15838
16770
|
case 0:
|
|
15839
16771
|
message.labels[i] = 0;
|
|
15840
16772
|
break;
|
|
@@ -15938,7 +16870,7 @@ $root.SubscriptionRenewed = (function() {
|
|
|
15938
16870
|
if (message.labels && message.labels.length) {
|
|
15939
16871
|
object.labels = [];
|
|
15940
16872
|
for (var j = 0; j < message.labels.length; ++j)
|
|
15941
|
-
object.labels[j] = options.enums === String ? $root.subscription.
|
|
16873
|
+
object.labels[j] = options.enums === String ? $root.subscription.SubscriptionLabels[message.labels[j]] : message.labels[j];
|
|
15942
16874
|
}
|
|
15943
16875
|
if (message.renewalCount != null && message.hasOwnProperty("renewalCount"))
|
|
15944
16876
|
if (typeof message.renewalCount === "number")
|
|
@@ -17001,7 +17933,7 @@ $root.SubscriptionGraced = (function() {
|
|
|
17001
17933
|
* @property {subscription.AutoRenewalStatus|null} [autoRenewalStatus] SubscriptionGraced autoRenewalStatus
|
|
17002
17934
|
* @property {subscription.IPlan|null} [plan] SubscriptionGraced plan
|
|
17003
17935
|
* @property {subscription.SubscriptionState|null} [subscriptionState] SubscriptionGraced subscriptionState
|
|
17004
|
-
* @property {Array.<subscription.
|
|
17936
|
+
* @property {Array.<subscription.SubscriptionLabels>|null} [labels] SubscriptionGraced labels
|
|
17005
17937
|
*/
|
|
17006
17938
|
|
|
17007
17939
|
/**
|
|
@@ -17110,7 +18042,7 @@ $root.SubscriptionGraced = (function() {
|
|
|
17110
18042
|
|
|
17111
18043
|
/**
|
|
17112
18044
|
* SubscriptionGraced labels.
|
|
17113
|
-
* @member {Array.<subscription.
|
|
18045
|
+
* @member {Array.<subscription.SubscriptionLabels>} labels
|
|
17114
18046
|
* @memberof SubscriptionGraced
|
|
17115
18047
|
* @instance
|
|
17116
18048
|
*/
|
|
@@ -17490,7 +18422,7 @@ $root.SubscriptionGraced = (function() {
|
|
|
17490
18422
|
for (var i = 0; i < object.labels.length; ++i)
|
|
17491
18423
|
switch (object.labels[i]) {
|
|
17492
18424
|
default:
|
|
17493
|
-
case "
|
|
18425
|
+
case "SUBLABEL_FREE_TRIAL":
|
|
17494
18426
|
case 0:
|
|
17495
18427
|
message.labels[i] = 0;
|
|
17496
18428
|
break;
|
|
@@ -17580,7 +18512,7 @@ $root.SubscriptionGraced = (function() {
|
|
|
17580
18512
|
if (message.labels && message.labels.length) {
|
|
17581
18513
|
object.labels = [];
|
|
17582
18514
|
for (var j = 0; j < message.labels.length; ++j)
|
|
17583
|
-
object.labels[j] = options.enums === String ? $root.subscription.
|
|
18515
|
+
object.labels[j] = options.enums === String ? $root.subscription.SubscriptionLabels[message.labels[j]] : message.labels[j];
|
|
17584
18516
|
}
|
|
17585
18517
|
return object;
|
|
17586
18518
|
};
|
|
@@ -17615,7 +18547,7 @@ $root.SubscriptionStarted = (function() {
|
|
|
17615
18547
|
* @property {subscription.AutoRenewalStatus|null} [autoRenewalStatus] SubscriptionStarted autoRenewalStatus
|
|
17616
18548
|
* @property {subscription.IPlan|null} [plan] SubscriptionStarted plan
|
|
17617
18549
|
* @property {subscription.SubscriptionState|null} [subscriptionState] SubscriptionStarted subscriptionState
|
|
17618
|
-
* @property {Array.<subscription.
|
|
18550
|
+
* @property {Array.<subscription.SubscriptionLabels>|null} [labels] SubscriptionStarted labels
|
|
17619
18551
|
*/
|
|
17620
18552
|
|
|
17621
18553
|
/**
|
|
@@ -17716,7 +18648,7 @@ $root.SubscriptionStarted = (function() {
|
|
|
17716
18648
|
|
|
17717
18649
|
/**
|
|
17718
18650
|
* SubscriptionStarted labels.
|
|
17719
|
-
* @member {Array.<subscription.
|
|
18651
|
+
* @member {Array.<subscription.SubscriptionLabels>} labels
|
|
17720
18652
|
* @memberof SubscriptionStarted
|
|
17721
18653
|
* @instance
|
|
17722
18654
|
*/
|
|
@@ -18086,7 +19018,7 @@ $root.SubscriptionStarted = (function() {
|
|
|
18086
19018
|
for (var i = 0; i < object.labels.length; ++i)
|
|
18087
19019
|
switch (object.labels[i]) {
|
|
18088
19020
|
default:
|
|
18089
|
-
case "
|
|
19021
|
+
case "SUBLABEL_FREE_TRIAL":
|
|
18090
19022
|
case 0:
|
|
18091
19023
|
message.labels[i] = 0;
|
|
18092
19024
|
break;
|
|
@@ -18173,7 +19105,7 @@ $root.SubscriptionStarted = (function() {
|
|
|
18173
19105
|
if (message.labels && message.labels.length) {
|
|
18174
19106
|
object.labels = [];
|
|
18175
19107
|
for (var j = 0; j < message.labels.length; ++j)
|
|
18176
|
-
object.labels[j] = options.enums === String ? $root.subscription.
|
|
19108
|
+
object.labels[j] = options.enums === String ? $root.subscription.SubscriptionLabels[message.labels[j]] : message.labels[j];
|
|
18177
19109
|
}
|
|
18178
19110
|
return object;
|
|
18179
19111
|
};
|
|
@@ -18209,7 +19141,7 @@ $root.SubscriptionEnded = (function() {
|
|
|
18209
19141
|
* @property {subscription.IPlan|null} [plan] SubscriptionEnded plan
|
|
18210
19142
|
* @property {subscription.CancellationType|null} [cancellationType] SubscriptionEnded cancellationType
|
|
18211
19143
|
* @property {subscription.SubscriptionState|null} [subscriptionState] SubscriptionEnded subscriptionState
|
|
18212
|
-
* @property {Array.<subscription.
|
|
19144
|
+
* @property {Array.<subscription.SubscriptionLabels>|null} [labels] SubscriptionEnded labels
|
|
18213
19145
|
*/
|
|
18214
19146
|
|
|
18215
19147
|
/**
|
|
@@ -18318,7 +19250,7 @@ $root.SubscriptionEnded = (function() {
|
|
|
18318
19250
|
|
|
18319
19251
|
/**
|
|
18320
19252
|
* SubscriptionEnded labels.
|
|
18321
|
-
* @member {Array.<subscription.
|
|
19253
|
+
* @member {Array.<subscription.SubscriptionLabels>} labels
|
|
18322
19254
|
* @memberof SubscriptionEnded
|
|
18323
19255
|
* @instance
|
|
18324
19256
|
*/
|
|
@@ -18716,7 +19648,7 @@ $root.SubscriptionEnded = (function() {
|
|
|
18716
19648
|
for (var i = 0; i < object.labels.length; ++i)
|
|
18717
19649
|
switch (object.labels[i]) {
|
|
18718
19650
|
default:
|
|
18719
|
-
case "
|
|
19651
|
+
case "SUBLABEL_FREE_TRIAL":
|
|
18720
19652
|
case 0:
|
|
18721
19653
|
message.labels[i] = 0;
|
|
18722
19654
|
break;
|
|
@@ -18806,7 +19738,7 @@ $root.SubscriptionEnded = (function() {
|
|
|
18806
19738
|
if (message.labels && message.labels.length) {
|
|
18807
19739
|
object.labels = [];
|
|
18808
19740
|
for (var j = 0; j < message.labels.length; ++j)
|
|
18809
|
-
object.labels[j] = options.enums === String ? $root.subscription.
|
|
19741
|
+
object.labels[j] = options.enums === String ? $root.subscription.SubscriptionLabels[message.labels[j]] : message.labels[j];
|
|
18810
19742
|
}
|
|
18811
19743
|
return object;
|
|
18812
19744
|
};
|
|
@@ -18841,7 +19773,7 @@ $root.SubscriptionRecovered = (function() {
|
|
|
18841
19773
|
* @property {subscription.AutoRenewalStatus|null} [autoRenewalStatus] SubscriptionRecovered autoRenewalStatus
|
|
18842
19774
|
* @property {subscription.IPlan|null} [plan] SubscriptionRecovered plan
|
|
18843
19775
|
* @property {subscription.SubscriptionState|null} [subscriptionState] SubscriptionRecovered subscriptionState
|
|
18844
|
-
* @property {Array.<subscription.
|
|
19776
|
+
* @property {Array.<subscription.SubscriptionLabels>|null} [labels] SubscriptionRecovered labels
|
|
18845
19777
|
*/
|
|
18846
19778
|
|
|
18847
19779
|
/**
|
|
@@ -18942,7 +19874,7 @@ $root.SubscriptionRecovered = (function() {
|
|
|
18942
19874
|
|
|
18943
19875
|
/**
|
|
18944
19876
|
* SubscriptionRecovered labels.
|
|
18945
|
-
* @member {Array.<subscription.
|
|
19877
|
+
* @member {Array.<subscription.SubscriptionLabels>} labels
|
|
18946
19878
|
* @memberof SubscriptionRecovered
|
|
18947
19879
|
* @instance
|
|
18948
19880
|
*/
|
|
@@ -19312,7 +20244,7 @@ $root.SubscriptionRecovered = (function() {
|
|
|
19312
20244
|
for (var i = 0; i < object.labels.length; ++i)
|
|
19313
20245
|
switch (object.labels[i]) {
|
|
19314
20246
|
default:
|
|
19315
|
-
case "
|
|
20247
|
+
case "SUBLABEL_FREE_TRIAL":
|
|
19316
20248
|
case 0:
|
|
19317
20249
|
message.labels[i] = 0;
|
|
19318
20250
|
break;
|
|
@@ -19399,7 +20331,7 @@ $root.SubscriptionRecovered = (function() {
|
|
|
19399
20331
|
if (message.labels && message.labels.length) {
|
|
19400
20332
|
object.labels = [];
|
|
19401
20333
|
for (var j = 0; j < message.labels.length; ++j)
|
|
19402
|
-
object.labels[j] = options.enums === String ? $root.subscription.
|
|
20334
|
+
object.labels[j] = options.enums === String ? $root.subscription.SubscriptionLabels[message.labels[j]] : message.labels[j];
|
|
19403
20335
|
}
|
|
19404
20336
|
return object;
|
|
19405
20337
|
};
|