@headspace/protos-events 1.73.0 → 1.75.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 +0 -269
- package/lib/index.js +0 -969
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -2664,18 +2664,6 @@ $root.subscription = (function() {
|
|
|
2664
2664
|
return values;
|
|
2665
2665
|
})();
|
|
2666
2666
|
|
|
2667
|
-
/**
|
|
2668
|
-
* Labels enum.
|
|
2669
|
-
* @name subscription.Labels
|
|
2670
|
-
* @enum {string}
|
|
2671
|
-
* @property {number} LABELS_FREE_TRIAL=0 LABELS_FREE_TRIAL value
|
|
2672
|
-
*/
|
|
2673
|
-
subscription.Labels = (function() {
|
|
2674
|
-
var valuesById = {}, values = Object.create(valuesById);
|
|
2675
|
-
values[valuesById[0] = "LABELS_FREE_TRIAL"] = 0;
|
|
2676
|
-
return values;
|
|
2677
|
-
})();
|
|
2678
|
-
|
|
2679
2667
|
/**
|
|
2680
2668
|
* SubscriptionState enum.
|
|
2681
2669
|
* @name subscription.SubscriptionState
|
|
@@ -4824,9 +4812,6 @@ $root.userdomain = (function() {
|
|
|
4824
4812
|
* @property {string|null} [countryCode] User countryCode
|
|
4825
4813
|
* @property {string|null} [stateCode] User stateCode
|
|
4826
4814
|
* @property {userdomain.Platform|null} [signupPlatform] User signupPlatform
|
|
4827
|
-
* @property {string|null} [facebookId] User facebookId
|
|
4828
|
-
* @property {string|null} [appleId] User appleId
|
|
4829
|
-
* @property {string|null} [spotifyId] User spotifyId
|
|
4830
4815
|
*/
|
|
4831
4816
|
|
|
4832
4817
|
/**
|
|
@@ -4908,30 +4893,6 @@ $root.userdomain = (function() {
|
|
|
4908
4893
|
*/
|
|
4909
4894
|
User.prototype.signupPlatform = 0;
|
|
4910
4895
|
|
|
4911
|
-
/**
|
|
4912
|
-
* User facebookId.
|
|
4913
|
-
* @member {string} facebookId
|
|
4914
|
-
* @memberof userdomain.User
|
|
4915
|
-
* @instance
|
|
4916
|
-
*/
|
|
4917
|
-
User.prototype.facebookId = "";
|
|
4918
|
-
|
|
4919
|
-
/**
|
|
4920
|
-
* User appleId.
|
|
4921
|
-
* @member {string} appleId
|
|
4922
|
-
* @memberof userdomain.User
|
|
4923
|
-
* @instance
|
|
4924
|
-
*/
|
|
4925
|
-
User.prototype.appleId = "";
|
|
4926
|
-
|
|
4927
|
-
/**
|
|
4928
|
-
* User spotifyId.
|
|
4929
|
-
* @member {string} spotifyId
|
|
4930
|
-
* @memberof userdomain.User
|
|
4931
|
-
* @instance
|
|
4932
|
-
*/
|
|
4933
|
-
User.prototype.spotifyId = "";
|
|
4934
|
-
|
|
4935
4896
|
/**
|
|
4936
4897
|
* Creates a new User instance using the specified properties.
|
|
4937
4898
|
* @function create
|
|
@@ -4972,12 +4933,6 @@ $root.userdomain = (function() {
|
|
|
4972
4933
|
writer.uint32(/* id 7, wireType 2 =*/58).string(message.stateCode);
|
|
4973
4934
|
if (message.signupPlatform != null && message.hasOwnProperty("signupPlatform"))
|
|
4974
4935
|
writer.uint32(/* id 8, wireType 0 =*/64).int32(message.signupPlatform);
|
|
4975
|
-
if (message.facebookId != null && message.hasOwnProperty("facebookId"))
|
|
4976
|
-
writer.uint32(/* id 9, wireType 2 =*/74).string(message.facebookId);
|
|
4977
|
-
if (message.appleId != null && message.hasOwnProperty("appleId"))
|
|
4978
|
-
writer.uint32(/* id 10, wireType 2 =*/82).string(message.appleId);
|
|
4979
|
-
if (message.spotifyId != null && message.hasOwnProperty("spotifyId"))
|
|
4980
|
-
writer.uint32(/* id 11, wireType 2 =*/90).string(message.spotifyId);
|
|
4981
4936
|
return writer;
|
|
4982
4937
|
};
|
|
4983
4938
|
|
|
@@ -5036,15 +4991,6 @@ $root.userdomain = (function() {
|
|
|
5036
4991
|
case 8:
|
|
5037
4992
|
message.signupPlatform = reader.int32();
|
|
5038
4993
|
break;
|
|
5039
|
-
case 9:
|
|
5040
|
-
message.facebookId = reader.string();
|
|
5041
|
-
break;
|
|
5042
|
-
case 10:
|
|
5043
|
-
message.appleId = reader.string();
|
|
5044
|
-
break;
|
|
5045
|
-
case 11:
|
|
5046
|
-
message.spotifyId = reader.string();
|
|
5047
|
-
break;
|
|
5048
4994
|
default:
|
|
5049
4995
|
reader.skipType(tag & 7);
|
|
5050
4996
|
break;
|
|
@@ -5113,15 +5059,6 @@ $root.userdomain = (function() {
|
|
|
5113
5059
|
case 5:
|
|
5114
5060
|
break;
|
|
5115
5061
|
}
|
|
5116
|
-
if (message.facebookId != null && message.hasOwnProperty("facebookId"))
|
|
5117
|
-
if (!$util.isString(message.facebookId))
|
|
5118
|
-
return "facebookId: string expected";
|
|
5119
|
-
if (message.appleId != null && message.hasOwnProperty("appleId"))
|
|
5120
|
-
if (!$util.isString(message.appleId))
|
|
5121
|
-
return "appleId: string expected";
|
|
5122
|
-
if (message.spotifyId != null && message.hasOwnProperty("spotifyId"))
|
|
5123
|
-
if (!$util.isString(message.spotifyId))
|
|
5124
|
-
return "spotifyId: string expected";
|
|
5125
5062
|
return null;
|
|
5126
5063
|
};
|
|
5127
5064
|
|
|
@@ -5177,12 +5114,6 @@ $root.userdomain = (function() {
|
|
|
5177
5114
|
message.signupPlatform = 5;
|
|
5178
5115
|
break;
|
|
5179
5116
|
}
|
|
5180
|
-
if (object.facebookId != null)
|
|
5181
|
-
message.facebookId = String(object.facebookId);
|
|
5182
|
-
if (object.appleId != null)
|
|
5183
|
-
message.appleId = String(object.appleId);
|
|
5184
|
-
if (object.spotifyId != null)
|
|
5185
|
-
message.spotifyId = String(object.spotifyId);
|
|
5186
5117
|
return message;
|
|
5187
5118
|
};
|
|
5188
5119
|
|
|
@@ -5208,9 +5139,6 @@ $root.userdomain = (function() {
|
|
|
5208
5139
|
object.countryCode = "";
|
|
5209
5140
|
object.stateCode = "";
|
|
5210
5141
|
object.signupPlatform = options.enums === String ? "UNKNOWN_PLATFORM" : 0;
|
|
5211
|
-
object.facebookId = "";
|
|
5212
|
-
object.appleId = "";
|
|
5213
|
-
object.spotifyId = "";
|
|
5214
5142
|
}
|
|
5215
5143
|
if (message.hsId != null && message.hasOwnProperty("hsId"))
|
|
5216
5144
|
object.hsId = message.hsId;
|
|
@@ -5228,12 +5156,6 @@ $root.userdomain = (function() {
|
|
|
5228
5156
|
object.stateCode = message.stateCode;
|
|
5229
5157
|
if (message.signupPlatform != null && message.hasOwnProperty("signupPlatform"))
|
|
5230
5158
|
object.signupPlatform = options.enums === String ? $root.userdomain.Platform[message.signupPlatform] : message.signupPlatform;
|
|
5231
|
-
if (message.facebookId != null && message.hasOwnProperty("facebookId"))
|
|
5232
|
-
object.facebookId = message.facebookId;
|
|
5233
|
-
if (message.appleId != null && message.hasOwnProperty("appleId"))
|
|
5234
|
-
object.appleId = message.appleId;
|
|
5235
|
-
if (message.spotifyId != null && message.hasOwnProperty("spotifyId"))
|
|
5236
|
-
object.spotifyId = message.spotifyId;
|
|
5237
5159
|
return object;
|
|
5238
5160
|
};
|
|
5239
5161
|
|
|
@@ -8036,216 +7958,6 @@ $root.BuddyAccepted = (function() {
|
|
|
8036
7958
|
return BuddyAccepted;
|
|
8037
7959
|
})();
|
|
8038
7960
|
|
|
8039
|
-
$root.BuddyDeleted = (function() {
|
|
8040
|
-
|
|
8041
|
-
/**
|
|
8042
|
-
* Properties of a BuddyDeleted.
|
|
8043
|
-
* @exports IBuddyDeleted
|
|
8044
|
-
* @interface IBuddyDeleted
|
|
8045
|
-
* @property {string|null} [userId] BuddyDeleted userId
|
|
8046
|
-
* @property {string|null} [buddyUserId] BuddyDeleted buddyUserId
|
|
8047
|
-
*/
|
|
8048
|
-
|
|
8049
|
-
/**
|
|
8050
|
-
* Constructs a new BuddyDeleted.
|
|
8051
|
-
* @exports BuddyDeleted
|
|
8052
|
-
* @classdesc Represents a BuddyDeleted.
|
|
8053
|
-
* @implements IBuddyDeleted
|
|
8054
|
-
* @constructor
|
|
8055
|
-
* @param {IBuddyDeleted=} [properties] Properties to set
|
|
8056
|
-
*/
|
|
8057
|
-
function BuddyDeleted(properties) {
|
|
8058
|
-
if (properties)
|
|
8059
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
8060
|
-
if (properties[keys[i]] != null)
|
|
8061
|
-
this[keys[i]] = properties[keys[i]];
|
|
8062
|
-
}
|
|
8063
|
-
|
|
8064
|
-
/**
|
|
8065
|
-
* BuddyDeleted userId.
|
|
8066
|
-
* @member {string} userId
|
|
8067
|
-
* @memberof BuddyDeleted
|
|
8068
|
-
* @instance
|
|
8069
|
-
*/
|
|
8070
|
-
BuddyDeleted.prototype.userId = "";
|
|
8071
|
-
|
|
8072
|
-
/**
|
|
8073
|
-
* BuddyDeleted buddyUserId.
|
|
8074
|
-
* @member {string} buddyUserId
|
|
8075
|
-
* @memberof BuddyDeleted
|
|
8076
|
-
* @instance
|
|
8077
|
-
*/
|
|
8078
|
-
BuddyDeleted.prototype.buddyUserId = "";
|
|
8079
|
-
|
|
8080
|
-
/**
|
|
8081
|
-
* Creates a new BuddyDeleted instance using the specified properties.
|
|
8082
|
-
* @function create
|
|
8083
|
-
* @memberof BuddyDeleted
|
|
8084
|
-
* @static
|
|
8085
|
-
* @param {IBuddyDeleted=} [properties] Properties to set
|
|
8086
|
-
* @returns {BuddyDeleted} BuddyDeleted instance
|
|
8087
|
-
*/
|
|
8088
|
-
BuddyDeleted.create = function create(properties) {
|
|
8089
|
-
return new BuddyDeleted(properties);
|
|
8090
|
-
};
|
|
8091
|
-
|
|
8092
|
-
/**
|
|
8093
|
-
* Encodes the specified BuddyDeleted message. Does not implicitly {@link BuddyDeleted.verify|verify} messages.
|
|
8094
|
-
* @function encode
|
|
8095
|
-
* @memberof BuddyDeleted
|
|
8096
|
-
* @static
|
|
8097
|
-
* @param {IBuddyDeleted} message BuddyDeleted message or plain object to encode
|
|
8098
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
8099
|
-
* @returns {$protobuf.Writer} Writer
|
|
8100
|
-
*/
|
|
8101
|
-
BuddyDeleted.encode = function encode(message, writer) {
|
|
8102
|
-
if (!writer)
|
|
8103
|
-
writer = $Writer.create();
|
|
8104
|
-
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
8105
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.userId);
|
|
8106
|
-
if (message.buddyUserId != null && message.hasOwnProperty("buddyUserId"))
|
|
8107
|
-
writer.uint32(/* id 2, wireType 2 =*/18).string(message.buddyUserId);
|
|
8108
|
-
return writer;
|
|
8109
|
-
};
|
|
8110
|
-
|
|
8111
|
-
/**
|
|
8112
|
-
* Encodes the specified BuddyDeleted message, length delimited. Does not implicitly {@link BuddyDeleted.verify|verify} messages.
|
|
8113
|
-
* @function encodeDelimited
|
|
8114
|
-
* @memberof BuddyDeleted
|
|
8115
|
-
* @static
|
|
8116
|
-
* @param {IBuddyDeleted} message BuddyDeleted message or plain object to encode
|
|
8117
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
8118
|
-
* @returns {$protobuf.Writer} Writer
|
|
8119
|
-
*/
|
|
8120
|
-
BuddyDeleted.encodeDelimited = function encodeDelimited(message, writer) {
|
|
8121
|
-
return this.encode(message, writer).ldelim();
|
|
8122
|
-
};
|
|
8123
|
-
|
|
8124
|
-
/**
|
|
8125
|
-
* Decodes a BuddyDeleted message from the specified reader or buffer.
|
|
8126
|
-
* @function decode
|
|
8127
|
-
* @memberof BuddyDeleted
|
|
8128
|
-
* @static
|
|
8129
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
8130
|
-
* @param {number} [length] Message length if known beforehand
|
|
8131
|
-
* @returns {BuddyDeleted} BuddyDeleted
|
|
8132
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
8133
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
8134
|
-
*/
|
|
8135
|
-
BuddyDeleted.decode = function decode(reader, length) {
|
|
8136
|
-
if (!(reader instanceof $Reader))
|
|
8137
|
-
reader = $Reader.create(reader);
|
|
8138
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.BuddyDeleted();
|
|
8139
|
-
while (reader.pos < end) {
|
|
8140
|
-
var tag = reader.uint32();
|
|
8141
|
-
switch (tag >>> 3) {
|
|
8142
|
-
case 1:
|
|
8143
|
-
message.userId = reader.string();
|
|
8144
|
-
break;
|
|
8145
|
-
case 2:
|
|
8146
|
-
message.buddyUserId = reader.string();
|
|
8147
|
-
break;
|
|
8148
|
-
default:
|
|
8149
|
-
reader.skipType(tag & 7);
|
|
8150
|
-
break;
|
|
8151
|
-
}
|
|
8152
|
-
}
|
|
8153
|
-
return message;
|
|
8154
|
-
};
|
|
8155
|
-
|
|
8156
|
-
/**
|
|
8157
|
-
* Decodes a BuddyDeleted message from the specified reader or buffer, length delimited.
|
|
8158
|
-
* @function decodeDelimited
|
|
8159
|
-
* @memberof BuddyDeleted
|
|
8160
|
-
* @static
|
|
8161
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
8162
|
-
* @returns {BuddyDeleted} BuddyDeleted
|
|
8163
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
8164
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
8165
|
-
*/
|
|
8166
|
-
BuddyDeleted.decodeDelimited = function decodeDelimited(reader) {
|
|
8167
|
-
if (!(reader instanceof $Reader))
|
|
8168
|
-
reader = new $Reader(reader);
|
|
8169
|
-
return this.decode(reader, reader.uint32());
|
|
8170
|
-
};
|
|
8171
|
-
|
|
8172
|
-
/**
|
|
8173
|
-
* Verifies a BuddyDeleted message.
|
|
8174
|
-
* @function verify
|
|
8175
|
-
* @memberof BuddyDeleted
|
|
8176
|
-
* @static
|
|
8177
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
8178
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
8179
|
-
*/
|
|
8180
|
-
BuddyDeleted.verify = function verify(message) {
|
|
8181
|
-
if (typeof message !== "object" || message === null)
|
|
8182
|
-
return "object expected";
|
|
8183
|
-
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
8184
|
-
if (!$util.isString(message.userId))
|
|
8185
|
-
return "userId: string expected";
|
|
8186
|
-
if (message.buddyUserId != null && message.hasOwnProperty("buddyUserId"))
|
|
8187
|
-
if (!$util.isString(message.buddyUserId))
|
|
8188
|
-
return "buddyUserId: string expected";
|
|
8189
|
-
return null;
|
|
8190
|
-
};
|
|
8191
|
-
|
|
8192
|
-
/**
|
|
8193
|
-
* Creates a BuddyDeleted message from a plain object. Also converts values to their respective internal types.
|
|
8194
|
-
* @function fromObject
|
|
8195
|
-
* @memberof BuddyDeleted
|
|
8196
|
-
* @static
|
|
8197
|
-
* @param {Object.<string,*>} object Plain object
|
|
8198
|
-
* @returns {BuddyDeleted} BuddyDeleted
|
|
8199
|
-
*/
|
|
8200
|
-
BuddyDeleted.fromObject = function fromObject(object) {
|
|
8201
|
-
if (object instanceof $root.BuddyDeleted)
|
|
8202
|
-
return object;
|
|
8203
|
-
var message = new $root.BuddyDeleted();
|
|
8204
|
-
if (object.userId != null)
|
|
8205
|
-
message.userId = String(object.userId);
|
|
8206
|
-
if (object.buddyUserId != null)
|
|
8207
|
-
message.buddyUserId = String(object.buddyUserId);
|
|
8208
|
-
return message;
|
|
8209
|
-
};
|
|
8210
|
-
|
|
8211
|
-
/**
|
|
8212
|
-
* Creates a plain object from a BuddyDeleted message. Also converts values to other types if specified.
|
|
8213
|
-
* @function toObject
|
|
8214
|
-
* @memberof BuddyDeleted
|
|
8215
|
-
* @static
|
|
8216
|
-
* @param {BuddyDeleted} message BuddyDeleted
|
|
8217
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
8218
|
-
* @returns {Object.<string,*>} Plain object
|
|
8219
|
-
*/
|
|
8220
|
-
BuddyDeleted.toObject = function toObject(message, options) {
|
|
8221
|
-
if (!options)
|
|
8222
|
-
options = {};
|
|
8223
|
-
var object = {};
|
|
8224
|
-
if (options.defaults) {
|
|
8225
|
-
object.userId = "";
|
|
8226
|
-
object.buddyUserId = "";
|
|
8227
|
-
}
|
|
8228
|
-
if (message.userId != null && message.hasOwnProperty("userId"))
|
|
8229
|
-
object.userId = message.userId;
|
|
8230
|
-
if (message.buddyUserId != null && message.hasOwnProperty("buddyUserId"))
|
|
8231
|
-
object.buddyUserId = message.buddyUserId;
|
|
8232
|
-
return object;
|
|
8233
|
-
};
|
|
8234
|
-
|
|
8235
|
-
/**
|
|
8236
|
-
* Converts this BuddyDeleted to JSON.
|
|
8237
|
-
* @function toJSON
|
|
8238
|
-
* @memberof BuddyDeleted
|
|
8239
|
-
* @instance
|
|
8240
|
-
* @returns {Object.<string,*>} JSON object
|
|
8241
|
-
*/
|
|
8242
|
-
BuddyDeleted.prototype.toJSON = function toJSON() {
|
|
8243
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
8244
|
-
};
|
|
8245
|
-
|
|
8246
|
-
return BuddyDeleted;
|
|
8247
|
-
})();
|
|
8248
|
-
|
|
8249
7961
|
$root.MessageSent = (function() {
|
|
8250
7962
|
|
|
8251
7963
|
/**
|
|
@@ -11744,252 +11456,6 @@ $root.ExperimentContentMapDeleted = (function() {
|
|
|
11744
11456
|
return ExperimentContentMapDeleted;
|
|
11745
11457
|
})();
|
|
11746
11458
|
|
|
11747
|
-
$root.AccessGroupCreated = (function() {
|
|
11748
|
-
|
|
11749
|
-
/**
|
|
11750
|
-
* Properties of an AccessGroupCreated.
|
|
11751
|
-
* @exports IAccessGroupCreated
|
|
11752
|
-
* @interface IAccessGroupCreated
|
|
11753
|
-
* @property {string|null} [accessGroupName] AccessGroupCreated accessGroupName
|
|
11754
|
-
* @property {string|null} [description] AccessGroupCreated description
|
|
11755
|
-
* @property {number|Long|null} [createdAt] AccessGroupCreated createdAt
|
|
11756
|
-
*/
|
|
11757
|
-
|
|
11758
|
-
/**
|
|
11759
|
-
* Constructs a new AccessGroupCreated.
|
|
11760
|
-
* @exports AccessGroupCreated
|
|
11761
|
-
* @classdesc Represents an AccessGroupCreated.
|
|
11762
|
-
* @implements IAccessGroupCreated
|
|
11763
|
-
* @constructor
|
|
11764
|
-
* @param {IAccessGroupCreated=} [properties] Properties to set
|
|
11765
|
-
*/
|
|
11766
|
-
function AccessGroupCreated(properties) {
|
|
11767
|
-
if (properties)
|
|
11768
|
-
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
11769
|
-
if (properties[keys[i]] != null)
|
|
11770
|
-
this[keys[i]] = properties[keys[i]];
|
|
11771
|
-
}
|
|
11772
|
-
|
|
11773
|
-
/**
|
|
11774
|
-
* AccessGroupCreated accessGroupName.
|
|
11775
|
-
* @member {string} accessGroupName
|
|
11776
|
-
* @memberof AccessGroupCreated
|
|
11777
|
-
* @instance
|
|
11778
|
-
*/
|
|
11779
|
-
AccessGroupCreated.prototype.accessGroupName = "";
|
|
11780
|
-
|
|
11781
|
-
/**
|
|
11782
|
-
* AccessGroupCreated description.
|
|
11783
|
-
* @member {string} description
|
|
11784
|
-
* @memberof AccessGroupCreated
|
|
11785
|
-
* @instance
|
|
11786
|
-
*/
|
|
11787
|
-
AccessGroupCreated.prototype.description = "";
|
|
11788
|
-
|
|
11789
|
-
/**
|
|
11790
|
-
* AccessGroupCreated createdAt.
|
|
11791
|
-
* @member {number|Long} createdAt
|
|
11792
|
-
* @memberof AccessGroupCreated
|
|
11793
|
-
* @instance
|
|
11794
|
-
*/
|
|
11795
|
-
AccessGroupCreated.prototype.createdAt = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
11796
|
-
|
|
11797
|
-
/**
|
|
11798
|
-
* Creates a new AccessGroupCreated instance using the specified properties.
|
|
11799
|
-
* @function create
|
|
11800
|
-
* @memberof AccessGroupCreated
|
|
11801
|
-
* @static
|
|
11802
|
-
* @param {IAccessGroupCreated=} [properties] Properties to set
|
|
11803
|
-
* @returns {AccessGroupCreated} AccessGroupCreated instance
|
|
11804
|
-
*/
|
|
11805
|
-
AccessGroupCreated.create = function create(properties) {
|
|
11806
|
-
return new AccessGroupCreated(properties);
|
|
11807
|
-
};
|
|
11808
|
-
|
|
11809
|
-
/**
|
|
11810
|
-
* Encodes the specified AccessGroupCreated message. Does not implicitly {@link AccessGroupCreated.verify|verify} messages.
|
|
11811
|
-
* @function encode
|
|
11812
|
-
* @memberof AccessGroupCreated
|
|
11813
|
-
* @static
|
|
11814
|
-
* @param {IAccessGroupCreated} message AccessGroupCreated message or plain object to encode
|
|
11815
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
11816
|
-
* @returns {$protobuf.Writer} Writer
|
|
11817
|
-
*/
|
|
11818
|
-
AccessGroupCreated.encode = function encode(message, writer) {
|
|
11819
|
-
if (!writer)
|
|
11820
|
-
writer = $Writer.create();
|
|
11821
|
-
if (message.accessGroupName != null && message.hasOwnProperty("accessGroupName"))
|
|
11822
|
-
writer.uint32(/* id 1, wireType 2 =*/10).string(message.accessGroupName);
|
|
11823
|
-
if (message.description != null && message.hasOwnProperty("description"))
|
|
11824
|
-
writer.uint32(/* id 2, wireType 2 =*/18).string(message.description);
|
|
11825
|
-
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
11826
|
-
writer.uint32(/* id 3, wireType 0 =*/24).uint64(message.createdAt);
|
|
11827
|
-
return writer;
|
|
11828
|
-
};
|
|
11829
|
-
|
|
11830
|
-
/**
|
|
11831
|
-
* Encodes the specified AccessGroupCreated message, length delimited. Does not implicitly {@link AccessGroupCreated.verify|verify} messages.
|
|
11832
|
-
* @function encodeDelimited
|
|
11833
|
-
* @memberof AccessGroupCreated
|
|
11834
|
-
* @static
|
|
11835
|
-
* @param {IAccessGroupCreated} message AccessGroupCreated message or plain object to encode
|
|
11836
|
-
* @param {$protobuf.Writer} [writer] Writer to encode to
|
|
11837
|
-
* @returns {$protobuf.Writer} Writer
|
|
11838
|
-
*/
|
|
11839
|
-
AccessGroupCreated.encodeDelimited = function encodeDelimited(message, writer) {
|
|
11840
|
-
return this.encode(message, writer).ldelim();
|
|
11841
|
-
};
|
|
11842
|
-
|
|
11843
|
-
/**
|
|
11844
|
-
* Decodes an AccessGroupCreated message from the specified reader or buffer.
|
|
11845
|
-
* @function decode
|
|
11846
|
-
* @memberof AccessGroupCreated
|
|
11847
|
-
* @static
|
|
11848
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
11849
|
-
* @param {number} [length] Message length if known beforehand
|
|
11850
|
-
* @returns {AccessGroupCreated} AccessGroupCreated
|
|
11851
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
11852
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
11853
|
-
*/
|
|
11854
|
-
AccessGroupCreated.decode = function decode(reader, length) {
|
|
11855
|
-
if (!(reader instanceof $Reader))
|
|
11856
|
-
reader = $Reader.create(reader);
|
|
11857
|
-
var end = length === undefined ? reader.len : reader.pos + length, message = new $root.AccessGroupCreated();
|
|
11858
|
-
while (reader.pos < end) {
|
|
11859
|
-
var tag = reader.uint32();
|
|
11860
|
-
switch (tag >>> 3) {
|
|
11861
|
-
case 1:
|
|
11862
|
-
message.accessGroupName = reader.string();
|
|
11863
|
-
break;
|
|
11864
|
-
case 2:
|
|
11865
|
-
message.description = reader.string();
|
|
11866
|
-
break;
|
|
11867
|
-
case 3:
|
|
11868
|
-
message.createdAt = reader.uint64();
|
|
11869
|
-
break;
|
|
11870
|
-
default:
|
|
11871
|
-
reader.skipType(tag & 7);
|
|
11872
|
-
break;
|
|
11873
|
-
}
|
|
11874
|
-
}
|
|
11875
|
-
return message;
|
|
11876
|
-
};
|
|
11877
|
-
|
|
11878
|
-
/**
|
|
11879
|
-
* Decodes an AccessGroupCreated message from the specified reader or buffer, length delimited.
|
|
11880
|
-
* @function decodeDelimited
|
|
11881
|
-
* @memberof AccessGroupCreated
|
|
11882
|
-
* @static
|
|
11883
|
-
* @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from
|
|
11884
|
-
* @returns {AccessGroupCreated} AccessGroupCreated
|
|
11885
|
-
* @throws {Error} If the payload is not a reader or valid buffer
|
|
11886
|
-
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
11887
|
-
*/
|
|
11888
|
-
AccessGroupCreated.decodeDelimited = function decodeDelimited(reader) {
|
|
11889
|
-
if (!(reader instanceof $Reader))
|
|
11890
|
-
reader = new $Reader(reader);
|
|
11891
|
-
return this.decode(reader, reader.uint32());
|
|
11892
|
-
};
|
|
11893
|
-
|
|
11894
|
-
/**
|
|
11895
|
-
* Verifies an AccessGroupCreated message.
|
|
11896
|
-
* @function verify
|
|
11897
|
-
* @memberof AccessGroupCreated
|
|
11898
|
-
* @static
|
|
11899
|
-
* @param {Object.<string,*>} message Plain object to verify
|
|
11900
|
-
* @returns {string|null} `null` if valid, otherwise the reason why it is not
|
|
11901
|
-
*/
|
|
11902
|
-
AccessGroupCreated.verify = function verify(message) {
|
|
11903
|
-
if (typeof message !== "object" || message === null)
|
|
11904
|
-
return "object expected";
|
|
11905
|
-
if (message.accessGroupName != null && message.hasOwnProperty("accessGroupName"))
|
|
11906
|
-
if (!$util.isString(message.accessGroupName))
|
|
11907
|
-
return "accessGroupName: string expected";
|
|
11908
|
-
if (message.description != null && message.hasOwnProperty("description"))
|
|
11909
|
-
if (!$util.isString(message.description))
|
|
11910
|
-
return "description: string expected";
|
|
11911
|
-
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
11912
|
-
if (!$util.isInteger(message.createdAt) && !(message.createdAt && $util.isInteger(message.createdAt.low) && $util.isInteger(message.createdAt.high)))
|
|
11913
|
-
return "createdAt: integer|Long expected";
|
|
11914
|
-
return null;
|
|
11915
|
-
};
|
|
11916
|
-
|
|
11917
|
-
/**
|
|
11918
|
-
* Creates an AccessGroupCreated message from a plain object. Also converts values to their respective internal types.
|
|
11919
|
-
* @function fromObject
|
|
11920
|
-
* @memberof AccessGroupCreated
|
|
11921
|
-
* @static
|
|
11922
|
-
* @param {Object.<string,*>} object Plain object
|
|
11923
|
-
* @returns {AccessGroupCreated} AccessGroupCreated
|
|
11924
|
-
*/
|
|
11925
|
-
AccessGroupCreated.fromObject = function fromObject(object) {
|
|
11926
|
-
if (object instanceof $root.AccessGroupCreated)
|
|
11927
|
-
return object;
|
|
11928
|
-
var message = new $root.AccessGroupCreated();
|
|
11929
|
-
if (object.accessGroupName != null)
|
|
11930
|
-
message.accessGroupName = String(object.accessGroupName);
|
|
11931
|
-
if (object.description != null)
|
|
11932
|
-
message.description = String(object.description);
|
|
11933
|
-
if (object.createdAt != null)
|
|
11934
|
-
if ($util.Long)
|
|
11935
|
-
(message.createdAt = $util.Long.fromValue(object.createdAt)).unsigned = true;
|
|
11936
|
-
else if (typeof object.createdAt === "string")
|
|
11937
|
-
message.createdAt = parseInt(object.createdAt, 10);
|
|
11938
|
-
else if (typeof object.createdAt === "number")
|
|
11939
|
-
message.createdAt = object.createdAt;
|
|
11940
|
-
else if (typeof object.createdAt === "object")
|
|
11941
|
-
message.createdAt = new $util.LongBits(object.createdAt.low >>> 0, object.createdAt.high >>> 0).toNumber(true);
|
|
11942
|
-
return message;
|
|
11943
|
-
};
|
|
11944
|
-
|
|
11945
|
-
/**
|
|
11946
|
-
* Creates a plain object from an AccessGroupCreated message. Also converts values to other types if specified.
|
|
11947
|
-
* @function toObject
|
|
11948
|
-
* @memberof AccessGroupCreated
|
|
11949
|
-
* @static
|
|
11950
|
-
* @param {AccessGroupCreated} message AccessGroupCreated
|
|
11951
|
-
* @param {$protobuf.IConversionOptions} [options] Conversion options
|
|
11952
|
-
* @returns {Object.<string,*>} Plain object
|
|
11953
|
-
*/
|
|
11954
|
-
AccessGroupCreated.toObject = function toObject(message, options) {
|
|
11955
|
-
if (!options)
|
|
11956
|
-
options = {};
|
|
11957
|
-
var object = {};
|
|
11958
|
-
if (options.defaults) {
|
|
11959
|
-
object.accessGroupName = "";
|
|
11960
|
-
object.description = "";
|
|
11961
|
-
if ($util.Long) {
|
|
11962
|
-
var long = new $util.Long(0, 0, true);
|
|
11963
|
-
object.createdAt = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
11964
|
-
} else
|
|
11965
|
-
object.createdAt = options.longs === String ? "0" : 0;
|
|
11966
|
-
}
|
|
11967
|
-
if (message.accessGroupName != null && message.hasOwnProperty("accessGroupName"))
|
|
11968
|
-
object.accessGroupName = message.accessGroupName;
|
|
11969
|
-
if (message.description != null && message.hasOwnProperty("description"))
|
|
11970
|
-
object.description = message.description;
|
|
11971
|
-
if (message.createdAt != null && message.hasOwnProperty("createdAt"))
|
|
11972
|
-
if (typeof message.createdAt === "number")
|
|
11973
|
-
object.createdAt = options.longs === String ? String(message.createdAt) : message.createdAt;
|
|
11974
|
-
else
|
|
11975
|
-
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;
|
|
11976
|
-
return object;
|
|
11977
|
-
};
|
|
11978
|
-
|
|
11979
|
-
/**
|
|
11980
|
-
* Converts this AccessGroupCreated to JSON.
|
|
11981
|
-
* @function toJSON
|
|
11982
|
-
* @memberof AccessGroupCreated
|
|
11983
|
-
* @instance
|
|
11984
|
-
* @returns {Object.<string,*>} JSON object
|
|
11985
|
-
*/
|
|
11986
|
-
AccessGroupCreated.prototype.toJSON = function toJSON() {
|
|
11987
|
-
return this.constructor.toObject(this, $protobuf.util.toJSONOptions);
|
|
11988
|
-
};
|
|
11989
|
-
|
|
11990
|
-
return AccessGroupCreated;
|
|
11991
|
-
})();
|
|
11992
|
-
|
|
11993
11459
|
$root.ReferralSignedUp = (function() {
|
|
11994
11460
|
|
|
11995
11461
|
/**
|
|
@@ -12969,7 +12435,6 @@ $root.SubscriptionCreated = (function() {
|
|
|
12969
12435
|
* @property {subscription.AutoRenewalStatus|null} [autoRenewalStatus] SubscriptionCreated autoRenewalStatus
|
|
12970
12436
|
* @property {subscription.IPlan|null} [plan] SubscriptionCreated plan
|
|
12971
12437
|
* @property {subscription.SubscriptionState|null} [subscriptionState] SubscriptionCreated subscriptionState
|
|
12972
|
-
* @property {Array.<subscription.Labels>|null} [labels] SubscriptionCreated labels
|
|
12973
12438
|
*/
|
|
12974
12439
|
|
|
12975
12440
|
/**
|
|
@@ -12981,7 +12446,6 @@ $root.SubscriptionCreated = (function() {
|
|
|
12981
12446
|
* @param {ISubscriptionCreated=} [properties] Properties to set
|
|
12982
12447
|
*/
|
|
12983
12448
|
function SubscriptionCreated(properties) {
|
|
12984
|
-
this.labels = [];
|
|
12985
12449
|
if (properties)
|
|
12986
12450
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
12987
12451
|
if (properties[keys[i]] != null)
|
|
@@ -13076,14 +12540,6 @@ $root.SubscriptionCreated = (function() {
|
|
|
13076
12540
|
*/
|
|
13077
12541
|
SubscriptionCreated.prototype.subscriptionState = 0;
|
|
13078
12542
|
|
|
13079
|
-
/**
|
|
13080
|
-
* SubscriptionCreated labels.
|
|
13081
|
-
* @member {Array.<subscription.Labels>} labels
|
|
13082
|
-
* @memberof SubscriptionCreated
|
|
13083
|
-
* @instance
|
|
13084
|
-
*/
|
|
13085
|
-
SubscriptionCreated.prototype.labels = $util.emptyArray;
|
|
13086
|
-
|
|
13087
12543
|
/**
|
|
13088
12544
|
* Creates a new SubscriptionCreated instance using the specified properties.
|
|
13089
12545
|
* @function create
|
|
@@ -13130,12 +12586,6 @@ $root.SubscriptionCreated = (function() {
|
|
|
13130
12586
|
$root.subscription.Plan.encode(message.plan, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
|
|
13131
12587
|
if (message.subscriptionState != null && message.hasOwnProperty("subscriptionState"))
|
|
13132
12588
|
writer.uint32(/* id 11, wireType 0 =*/88).int32(message.subscriptionState);
|
|
13133
|
-
if (message.labels != null && message.labels.length) {
|
|
13134
|
-
writer.uint32(/* id 12, wireType 2 =*/98).fork();
|
|
13135
|
-
for (var i = 0; i < message.labels.length; ++i)
|
|
13136
|
-
writer.int32(message.labels[i]);
|
|
13137
|
-
writer.ldelim();
|
|
13138
|
-
}
|
|
13139
12589
|
return writer;
|
|
13140
12590
|
};
|
|
13141
12591
|
|
|
@@ -13203,16 +12653,6 @@ $root.SubscriptionCreated = (function() {
|
|
|
13203
12653
|
case 11:
|
|
13204
12654
|
message.subscriptionState = reader.int32();
|
|
13205
12655
|
break;
|
|
13206
|
-
case 12:
|
|
13207
|
-
if (!(message.labels && message.labels.length))
|
|
13208
|
-
message.labels = [];
|
|
13209
|
-
if ((tag & 7) === 2) {
|
|
13210
|
-
var end2 = reader.uint32() + reader.pos;
|
|
13211
|
-
while (reader.pos < end2)
|
|
13212
|
-
message.labels.push(reader.int32());
|
|
13213
|
-
} else
|
|
13214
|
-
message.labels.push(reader.int32());
|
|
13215
|
-
break;
|
|
13216
12656
|
default:
|
|
13217
12657
|
reader.skipType(tag & 7);
|
|
13218
12658
|
break;
|
|
@@ -13308,17 +12748,6 @@ $root.SubscriptionCreated = (function() {
|
|
|
13308
12748
|
case 5:
|
|
13309
12749
|
break;
|
|
13310
12750
|
}
|
|
13311
|
-
if (message.labels != null && message.hasOwnProperty("labels")) {
|
|
13312
|
-
if (!Array.isArray(message.labels))
|
|
13313
|
-
return "labels: array expected";
|
|
13314
|
-
for (var i = 0; i < message.labels.length; ++i)
|
|
13315
|
-
switch (message.labels[i]) {
|
|
13316
|
-
default:
|
|
13317
|
-
return "labels: enum value[] expected";
|
|
13318
|
-
case 0:
|
|
13319
|
-
break;
|
|
13320
|
-
}
|
|
13321
|
-
}
|
|
13322
12751
|
return null;
|
|
13323
12752
|
};
|
|
13324
12753
|
|
|
@@ -13451,19 +12880,6 @@ $root.SubscriptionCreated = (function() {
|
|
|
13451
12880
|
message.subscriptionState = 5;
|
|
13452
12881
|
break;
|
|
13453
12882
|
}
|
|
13454
|
-
if (object.labels) {
|
|
13455
|
-
if (!Array.isArray(object.labels))
|
|
13456
|
-
throw TypeError(".SubscriptionCreated.labels: array expected");
|
|
13457
|
-
message.labels = [];
|
|
13458
|
-
for (var i = 0; i < object.labels.length; ++i)
|
|
13459
|
-
switch (object.labels[i]) {
|
|
13460
|
-
default:
|
|
13461
|
-
case "LABELS_FREE_TRIAL":
|
|
13462
|
-
case 0:
|
|
13463
|
-
message.labels[i] = 0;
|
|
13464
|
-
break;
|
|
13465
|
-
}
|
|
13466
|
-
}
|
|
13467
12883
|
return message;
|
|
13468
12884
|
};
|
|
13469
12885
|
|
|
@@ -13480,8 +12896,6 @@ $root.SubscriptionCreated = (function() {
|
|
|
13480
12896
|
if (!options)
|
|
13481
12897
|
options = {};
|
|
13482
12898
|
var object = {};
|
|
13483
|
-
if (options.arrays || options.defaults)
|
|
13484
|
-
object.labels = [];
|
|
13485
12899
|
if (options.defaults) {
|
|
13486
12900
|
object.id = 0;
|
|
13487
12901
|
if ($util.Long) {
|
|
@@ -13545,11 +12959,6 @@ $root.SubscriptionCreated = (function() {
|
|
|
13545
12959
|
object.plan = $root.subscription.Plan.toObject(message.plan, options);
|
|
13546
12960
|
if (message.subscriptionState != null && message.hasOwnProperty("subscriptionState"))
|
|
13547
12961
|
object.subscriptionState = options.enums === String ? $root.subscription.SubscriptionState[message.subscriptionState] : message.subscriptionState;
|
|
13548
|
-
if (message.labels && message.labels.length) {
|
|
13549
|
-
object.labels = [];
|
|
13550
|
-
for (var j = 0; j < message.labels.length; ++j)
|
|
13551
|
-
object.labels[j] = options.enums === String ? $root.subscription.Labels[message.labels[j]] : message.labels[j];
|
|
13552
|
-
}
|
|
13553
12962
|
return object;
|
|
13554
12963
|
};
|
|
13555
12964
|
|
|
@@ -13586,7 +12995,6 @@ $root.SubscriptionCancelled = (function() {
|
|
|
13586
12995
|
* @property {subscription.IPlan|null} [plan] SubscriptionCancelled plan
|
|
13587
12996
|
* @property {subscription.CancellationType|null} [cancellationType] SubscriptionCancelled cancellationType
|
|
13588
12997
|
* @property {subscription.SubscriptionState|null} [subscriptionState] SubscriptionCancelled subscriptionState
|
|
13589
|
-
* @property {Array.<subscription.Labels>|null} [labels] SubscriptionCancelled labels
|
|
13590
12998
|
*/
|
|
13591
12999
|
|
|
13592
13000
|
/**
|
|
@@ -13598,7 +13006,6 @@ $root.SubscriptionCancelled = (function() {
|
|
|
13598
13006
|
* @param {ISubscriptionCancelled=} [properties] Properties to set
|
|
13599
13007
|
*/
|
|
13600
13008
|
function SubscriptionCancelled(properties) {
|
|
13601
|
-
this.labels = [];
|
|
13602
13009
|
if (properties)
|
|
13603
13010
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
13604
13011
|
if (properties[keys[i]] != null)
|
|
@@ -13709,14 +13116,6 @@ $root.SubscriptionCancelled = (function() {
|
|
|
13709
13116
|
*/
|
|
13710
13117
|
SubscriptionCancelled.prototype.subscriptionState = 0;
|
|
13711
13118
|
|
|
13712
|
-
/**
|
|
13713
|
-
* SubscriptionCancelled labels.
|
|
13714
|
-
* @member {Array.<subscription.Labels>} labels
|
|
13715
|
-
* @memberof SubscriptionCancelled
|
|
13716
|
-
* @instance
|
|
13717
|
-
*/
|
|
13718
|
-
SubscriptionCancelled.prototype.labels = $util.emptyArray;
|
|
13719
|
-
|
|
13720
13119
|
/**
|
|
13721
13120
|
* Creates a new SubscriptionCancelled instance using the specified properties.
|
|
13722
13121
|
* @function create
|
|
@@ -13767,12 +13166,6 @@ $root.SubscriptionCancelled = (function() {
|
|
|
13767
13166
|
writer.uint32(/* id 12, wireType 0 =*/96).int32(message.cancellationType);
|
|
13768
13167
|
if (message.subscriptionState != null && message.hasOwnProperty("subscriptionState"))
|
|
13769
13168
|
writer.uint32(/* id 13, wireType 0 =*/104).int32(message.subscriptionState);
|
|
13770
|
-
if (message.labels != null && message.labels.length) {
|
|
13771
|
-
writer.uint32(/* id 14, wireType 2 =*/114).fork();
|
|
13772
|
-
for (var i = 0; i < message.labels.length; ++i)
|
|
13773
|
-
writer.int32(message.labels[i]);
|
|
13774
|
-
writer.ldelim();
|
|
13775
|
-
}
|
|
13776
13169
|
return writer;
|
|
13777
13170
|
};
|
|
13778
13171
|
|
|
@@ -13846,16 +13239,6 @@ $root.SubscriptionCancelled = (function() {
|
|
|
13846
13239
|
case 13:
|
|
13847
13240
|
message.subscriptionState = reader.int32();
|
|
13848
13241
|
break;
|
|
13849
|
-
case 14:
|
|
13850
|
-
if (!(message.labels && message.labels.length))
|
|
13851
|
-
message.labels = [];
|
|
13852
|
-
if ((tag & 7) === 2) {
|
|
13853
|
-
var end2 = reader.uint32() + reader.pos;
|
|
13854
|
-
while (reader.pos < end2)
|
|
13855
|
-
message.labels.push(reader.int32());
|
|
13856
|
-
} else
|
|
13857
|
-
message.labels.push(reader.int32());
|
|
13858
|
-
break;
|
|
13859
13242
|
default:
|
|
13860
13243
|
reader.skipType(tag & 7);
|
|
13861
13244
|
break;
|
|
@@ -13965,17 +13348,6 @@ $root.SubscriptionCancelled = (function() {
|
|
|
13965
13348
|
case 5:
|
|
13966
13349
|
break;
|
|
13967
13350
|
}
|
|
13968
|
-
if (message.labels != null && message.hasOwnProperty("labels")) {
|
|
13969
|
-
if (!Array.isArray(message.labels))
|
|
13970
|
-
return "labels: array expected";
|
|
13971
|
-
for (var i = 0; i < message.labels.length; ++i)
|
|
13972
|
-
switch (message.labels[i]) {
|
|
13973
|
-
default:
|
|
13974
|
-
return "labels: enum value[] expected";
|
|
13975
|
-
case 0:
|
|
13976
|
-
break;
|
|
13977
|
-
}
|
|
13978
|
-
}
|
|
13979
13351
|
return null;
|
|
13980
13352
|
};
|
|
13981
13353
|
|
|
@@ -14127,19 +13499,6 @@ $root.SubscriptionCancelled = (function() {
|
|
|
14127
13499
|
message.subscriptionState = 5;
|
|
14128
13500
|
break;
|
|
14129
13501
|
}
|
|
14130
|
-
if (object.labels) {
|
|
14131
|
-
if (!Array.isArray(object.labels))
|
|
14132
|
-
throw TypeError(".SubscriptionCancelled.labels: array expected");
|
|
14133
|
-
message.labels = [];
|
|
14134
|
-
for (var i = 0; i < object.labels.length; ++i)
|
|
14135
|
-
switch (object.labels[i]) {
|
|
14136
|
-
default:
|
|
14137
|
-
case "LABELS_FREE_TRIAL":
|
|
14138
|
-
case 0:
|
|
14139
|
-
message.labels[i] = 0;
|
|
14140
|
-
break;
|
|
14141
|
-
}
|
|
14142
|
-
}
|
|
14143
13502
|
return message;
|
|
14144
13503
|
};
|
|
14145
13504
|
|
|
@@ -14156,8 +13515,6 @@ $root.SubscriptionCancelled = (function() {
|
|
|
14156
13515
|
if (!options)
|
|
14157
13516
|
options = {};
|
|
14158
13517
|
var object = {};
|
|
14159
|
-
if (options.arrays || options.defaults)
|
|
14160
|
-
object.labels = [];
|
|
14161
13518
|
if (options.defaults) {
|
|
14162
13519
|
object.id = 0;
|
|
14163
13520
|
if ($util.Long) {
|
|
@@ -14227,11 +13584,6 @@ $root.SubscriptionCancelled = (function() {
|
|
|
14227
13584
|
object.cancellationType = options.enums === String ? $root.subscription.CancellationType[message.cancellationType] : message.cancellationType;
|
|
14228
13585
|
if (message.subscriptionState != null && message.hasOwnProperty("subscriptionState"))
|
|
14229
13586
|
object.subscriptionState = options.enums === String ? $root.subscription.SubscriptionState[message.subscriptionState] : message.subscriptionState;
|
|
14230
|
-
if (message.labels && message.labels.length) {
|
|
14231
|
-
object.labels = [];
|
|
14232
|
-
for (var j = 0; j < message.labels.length; ++j)
|
|
14233
|
-
object.labels[j] = options.enums === String ? $root.subscription.Labels[message.labels[j]] : message.labels[j];
|
|
14234
|
-
}
|
|
14235
13587
|
return object;
|
|
14236
13588
|
};
|
|
14237
13589
|
|
|
@@ -14266,8 +13618,6 @@ $root.SubscriptionRenewed = (function() {
|
|
|
14266
13618
|
* @property {subscription.AutoRenewalStatus|null} [autoRenewalStatus] SubscriptionRenewed autoRenewalStatus
|
|
14267
13619
|
* @property {subscription.IPlan|null} [plan] SubscriptionRenewed plan
|
|
14268
13620
|
* @property {subscription.SubscriptionState|null} [subscriptionState] SubscriptionRenewed subscriptionState
|
|
14269
|
-
* @property {Array.<subscription.Labels>|null} [labels] SubscriptionRenewed labels
|
|
14270
|
-
* @property {number|Long|null} [renewalCount] SubscriptionRenewed renewalCount
|
|
14271
13621
|
*/
|
|
14272
13622
|
|
|
14273
13623
|
/**
|
|
@@ -14279,7 +13629,6 @@ $root.SubscriptionRenewed = (function() {
|
|
|
14279
13629
|
* @param {ISubscriptionRenewed=} [properties] Properties to set
|
|
14280
13630
|
*/
|
|
14281
13631
|
function SubscriptionRenewed(properties) {
|
|
14282
|
-
this.labels = [];
|
|
14283
13632
|
if (properties)
|
|
14284
13633
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
14285
13634
|
if (properties[keys[i]] != null)
|
|
@@ -14374,22 +13723,6 @@ $root.SubscriptionRenewed = (function() {
|
|
|
14374
13723
|
*/
|
|
14375
13724
|
SubscriptionRenewed.prototype.subscriptionState = 0;
|
|
14376
13725
|
|
|
14377
|
-
/**
|
|
14378
|
-
* SubscriptionRenewed labels.
|
|
14379
|
-
* @member {Array.<subscription.Labels>} labels
|
|
14380
|
-
* @memberof SubscriptionRenewed
|
|
14381
|
-
* @instance
|
|
14382
|
-
*/
|
|
14383
|
-
SubscriptionRenewed.prototype.labels = $util.emptyArray;
|
|
14384
|
-
|
|
14385
|
-
/**
|
|
14386
|
-
* SubscriptionRenewed renewalCount.
|
|
14387
|
-
* @member {number|Long} renewalCount
|
|
14388
|
-
* @memberof SubscriptionRenewed
|
|
14389
|
-
* @instance
|
|
14390
|
-
*/
|
|
14391
|
-
SubscriptionRenewed.prototype.renewalCount = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
14392
|
-
|
|
14393
13726
|
/**
|
|
14394
13727
|
* Creates a new SubscriptionRenewed instance using the specified properties.
|
|
14395
13728
|
* @function create
|
|
@@ -14436,14 +13769,6 @@ $root.SubscriptionRenewed = (function() {
|
|
|
14436
13769
|
$root.subscription.Plan.encode(message.plan, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
|
|
14437
13770
|
if (message.subscriptionState != null && message.hasOwnProperty("subscriptionState"))
|
|
14438
13771
|
writer.uint32(/* id 11, wireType 0 =*/88).int32(message.subscriptionState);
|
|
14439
|
-
if (message.labels != null && message.labels.length) {
|
|
14440
|
-
writer.uint32(/* id 14, wireType 2 =*/114).fork();
|
|
14441
|
-
for (var i = 0; i < message.labels.length; ++i)
|
|
14442
|
-
writer.int32(message.labels[i]);
|
|
14443
|
-
writer.ldelim();
|
|
14444
|
-
}
|
|
14445
|
-
if (message.renewalCount != null && message.hasOwnProperty("renewalCount"))
|
|
14446
|
-
writer.uint32(/* id 15, wireType 0 =*/120).uint64(message.renewalCount);
|
|
14447
13772
|
return writer;
|
|
14448
13773
|
};
|
|
14449
13774
|
|
|
@@ -14511,19 +13836,6 @@ $root.SubscriptionRenewed = (function() {
|
|
|
14511
13836
|
case 11:
|
|
14512
13837
|
message.subscriptionState = reader.int32();
|
|
14513
13838
|
break;
|
|
14514
|
-
case 14:
|
|
14515
|
-
if (!(message.labels && message.labels.length))
|
|
14516
|
-
message.labels = [];
|
|
14517
|
-
if ((tag & 7) === 2) {
|
|
14518
|
-
var end2 = reader.uint32() + reader.pos;
|
|
14519
|
-
while (reader.pos < end2)
|
|
14520
|
-
message.labels.push(reader.int32());
|
|
14521
|
-
} else
|
|
14522
|
-
message.labels.push(reader.int32());
|
|
14523
|
-
break;
|
|
14524
|
-
case 15:
|
|
14525
|
-
message.renewalCount = reader.uint64();
|
|
14526
|
-
break;
|
|
14527
13839
|
default:
|
|
14528
13840
|
reader.skipType(tag & 7);
|
|
14529
13841
|
break;
|
|
@@ -14619,20 +13931,6 @@ $root.SubscriptionRenewed = (function() {
|
|
|
14619
13931
|
case 5:
|
|
14620
13932
|
break;
|
|
14621
13933
|
}
|
|
14622
|
-
if (message.labels != null && message.hasOwnProperty("labels")) {
|
|
14623
|
-
if (!Array.isArray(message.labels))
|
|
14624
|
-
return "labels: array expected";
|
|
14625
|
-
for (var i = 0; i < message.labels.length; ++i)
|
|
14626
|
-
switch (message.labels[i]) {
|
|
14627
|
-
default:
|
|
14628
|
-
return "labels: enum value[] expected";
|
|
14629
|
-
case 0:
|
|
14630
|
-
break;
|
|
14631
|
-
}
|
|
14632
|
-
}
|
|
14633
|
-
if (message.renewalCount != null && message.hasOwnProperty("renewalCount"))
|
|
14634
|
-
if (!$util.isInteger(message.renewalCount) && !(message.renewalCount && $util.isInteger(message.renewalCount.low) && $util.isInteger(message.renewalCount.high)))
|
|
14635
|
-
return "renewalCount: integer|Long expected";
|
|
14636
13934
|
return null;
|
|
14637
13935
|
};
|
|
14638
13936
|
|
|
@@ -14765,28 +14063,6 @@ $root.SubscriptionRenewed = (function() {
|
|
|
14765
14063
|
message.subscriptionState = 5;
|
|
14766
14064
|
break;
|
|
14767
14065
|
}
|
|
14768
|
-
if (object.labels) {
|
|
14769
|
-
if (!Array.isArray(object.labels))
|
|
14770
|
-
throw TypeError(".SubscriptionRenewed.labels: array expected");
|
|
14771
|
-
message.labels = [];
|
|
14772
|
-
for (var i = 0; i < object.labels.length; ++i)
|
|
14773
|
-
switch (object.labels[i]) {
|
|
14774
|
-
default:
|
|
14775
|
-
case "LABELS_FREE_TRIAL":
|
|
14776
|
-
case 0:
|
|
14777
|
-
message.labels[i] = 0;
|
|
14778
|
-
break;
|
|
14779
|
-
}
|
|
14780
|
-
}
|
|
14781
|
-
if (object.renewalCount != null)
|
|
14782
|
-
if ($util.Long)
|
|
14783
|
-
(message.renewalCount = $util.Long.fromValue(object.renewalCount)).unsigned = true;
|
|
14784
|
-
else if (typeof object.renewalCount === "string")
|
|
14785
|
-
message.renewalCount = parseInt(object.renewalCount, 10);
|
|
14786
|
-
else if (typeof object.renewalCount === "number")
|
|
14787
|
-
message.renewalCount = object.renewalCount;
|
|
14788
|
-
else if (typeof object.renewalCount === "object")
|
|
14789
|
-
message.renewalCount = new $util.LongBits(object.renewalCount.low >>> 0, object.renewalCount.high >>> 0).toNumber(true);
|
|
14790
14066
|
return message;
|
|
14791
14067
|
};
|
|
14792
14068
|
|
|
@@ -14803,8 +14079,6 @@ $root.SubscriptionRenewed = (function() {
|
|
|
14803
14079
|
if (!options)
|
|
14804
14080
|
options = {};
|
|
14805
14081
|
var object = {};
|
|
14806
|
-
if (options.arrays || options.defaults)
|
|
14807
|
-
object.labels = [];
|
|
14808
14082
|
if (options.defaults) {
|
|
14809
14083
|
object.id = 0;
|
|
14810
14084
|
if ($util.Long) {
|
|
@@ -14833,11 +14107,6 @@ $root.SubscriptionRenewed = (function() {
|
|
|
14833
14107
|
object.autoRenewalStatus = options.enums === String ? "UNKNOWN_STATUS" : 0;
|
|
14834
14108
|
object.plan = null;
|
|
14835
14109
|
object.subscriptionState = options.enums === String ? "SUBSTATE_UNKNOWN" : 0;
|
|
14836
|
-
if ($util.Long) {
|
|
14837
|
-
var long = new $util.Long(0, 0, true);
|
|
14838
|
-
object.renewalCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
14839
|
-
} else
|
|
14840
|
-
object.renewalCount = options.longs === String ? "0" : 0;
|
|
14841
14110
|
}
|
|
14842
14111
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
14843
14112
|
object.id = message.id;
|
|
@@ -14873,16 +14142,6 @@ $root.SubscriptionRenewed = (function() {
|
|
|
14873
14142
|
object.plan = $root.subscription.Plan.toObject(message.plan, options);
|
|
14874
14143
|
if (message.subscriptionState != null && message.hasOwnProperty("subscriptionState"))
|
|
14875
14144
|
object.subscriptionState = options.enums === String ? $root.subscription.SubscriptionState[message.subscriptionState] : message.subscriptionState;
|
|
14876
|
-
if (message.labels && message.labels.length) {
|
|
14877
|
-
object.labels = [];
|
|
14878
|
-
for (var j = 0; j < message.labels.length; ++j)
|
|
14879
|
-
object.labels[j] = options.enums === String ? $root.subscription.Labels[message.labels[j]] : message.labels[j];
|
|
14880
|
-
}
|
|
14881
|
-
if (message.renewalCount != null && message.hasOwnProperty("renewalCount"))
|
|
14882
|
-
if (typeof message.renewalCount === "number")
|
|
14883
|
-
object.renewalCount = options.longs === String ? String(message.renewalCount) : message.renewalCount;
|
|
14884
|
-
else
|
|
14885
|
-
object.renewalCount = options.longs === String ? $util.Long.prototype.toString.call(message.renewalCount) : options.longs === Number ? new $util.LongBits(message.renewalCount.low >>> 0, message.renewalCount.high >>> 0).toNumber(true) : message.renewalCount;
|
|
14886
14145
|
return object;
|
|
14887
14146
|
};
|
|
14888
14147
|
|
|
@@ -15939,7 +15198,6 @@ $root.SubscriptionGraced = (function() {
|
|
|
15939
15198
|
* @property {subscription.AutoRenewalStatus|null} [autoRenewalStatus] SubscriptionGraced autoRenewalStatus
|
|
15940
15199
|
* @property {subscription.IPlan|null} [plan] SubscriptionGraced plan
|
|
15941
15200
|
* @property {subscription.SubscriptionState|null} [subscriptionState] SubscriptionGraced subscriptionState
|
|
15942
|
-
* @property {Array.<subscription.Labels>|null} [labels] SubscriptionGraced labels
|
|
15943
15201
|
*/
|
|
15944
15202
|
|
|
15945
15203
|
/**
|
|
@@ -15951,7 +15209,6 @@ $root.SubscriptionGraced = (function() {
|
|
|
15951
15209
|
* @param {ISubscriptionGraced=} [properties] Properties to set
|
|
15952
15210
|
*/
|
|
15953
15211
|
function SubscriptionGraced(properties) {
|
|
15954
|
-
this.labels = [];
|
|
15955
15212
|
if (properties)
|
|
15956
15213
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
15957
15214
|
if (properties[keys[i]] != null)
|
|
@@ -16046,14 +15303,6 @@ $root.SubscriptionGraced = (function() {
|
|
|
16046
15303
|
*/
|
|
16047
15304
|
SubscriptionGraced.prototype.subscriptionState = 0;
|
|
16048
15305
|
|
|
16049
|
-
/**
|
|
16050
|
-
* SubscriptionGraced labels.
|
|
16051
|
-
* @member {Array.<subscription.Labels>} labels
|
|
16052
|
-
* @memberof SubscriptionGraced
|
|
16053
|
-
* @instance
|
|
16054
|
-
*/
|
|
16055
|
-
SubscriptionGraced.prototype.labels = $util.emptyArray;
|
|
16056
|
-
|
|
16057
15306
|
/**
|
|
16058
15307
|
* Creates a new SubscriptionGraced instance using the specified properties.
|
|
16059
15308
|
* @function create
|
|
@@ -16100,12 +15349,6 @@ $root.SubscriptionGraced = (function() {
|
|
|
16100
15349
|
$root.subscription.Plan.encode(message.plan, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
|
|
16101
15350
|
if (message.subscriptionState != null && message.hasOwnProperty("subscriptionState"))
|
|
16102
15351
|
writer.uint32(/* id 11, wireType 0 =*/88).int32(message.subscriptionState);
|
|
16103
|
-
if (message.labels != null && message.labels.length) {
|
|
16104
|
-
writer.uint32(/* id 12, wireType 2 =*/98).fork();
|
|
16105
|
-
for (var i = 0; i < message.labels.length; ++i)
|
|
16106
|
-
writer.int32(message.labels[i]);
|
|
16107
|
-
writer.ldelim();
|
|
16108
|
-
}
|
|
16109
15352
|
return writer;
|
|
16110
15353
|
};
|
|
16111
15354
|
|
|
@@ -16173,16 +15416,6 @@ $root.SubscriptionGraced = (function() {
|
|
|
16173
15416
|
case 11:
|
|
16174
15417
|
message.subscriptionState = reader.int32();
|
|
16175
15418
|
break;
|
|
16176
|
-
case 12:
|
|
16177
|
-
if (!(message.labels && message.labels.length))
|
|
16178
|
-
message.labels = [];
|
|
16179
|
-
if ((tag & 7) === 2) {
|
|
16180
|
-
var end2 = reader.uint32() + reader.pos;
|
|
16181
|
-
while (reader.pos < end2)
|
|
16182
|
-
message.labels.push(reader.int32());
|
|
16183
|
-
} else
|
|
16184
|
-
message.labels.push(reader.int32());
|
|
16185
|
-
break;
|
|
16186
15419
|
default:
|
|
16187
15420
|
reader.skipType(tag & 7);
|
|
16188
15421
|
break;
|
|
@@ -16278,17 +15511,6 @@ $root.SubscriptionGraced = (function() {
|
|
|
16278
15511
|
case 5:
|
|
16279
15512
|
break;
|
|
16280
15513
|
}
|
|
16281
|
-
if (message.labels != null && message.hasOwnProperty("labels")) {
|
|
16282
|
-
if (!Array.isArray(message.labels))
|
|
16283
|
-
return "labels: array expected";
|
|
16284
|
-
for (var i = 0; i < message.labels.length; ++i)
|
|
16285
|
-
switch (message.labels[i]) {
|
|
16286
|
-
default:
|
|
16287
|
-
return "labels: enum value[] expected";
|
|
16288
|
-
case 0:
|
|
16289
|
-
break;
|
|
16290
|
-
}
|
|
16291
|
-
}
|
|
16292
15514
|
return null;
|
|
16293
15515
|
};
|
|
16294
15516
|
|
|
@@ -16421,19 +15643,6 @@ $root.SubscriptionGraced = (function() {
|
|
|
16421
15643
|
message.subscriptionState = 5;
|
|
16422
15644
|
break;
|
|
16423
15645
|
}
|
|
16424
|
-
if (object.labels) {
|
|
16425
|
-
if (!Array.isArray(object.labels))
|
|
16426
|
-
throw TypeError(".SubscriptionGraced.labels: array expected");
|
|
16427
|
-
message.labels = [];
|
|
16428
|
-
for (var i = 0; i < object.labels.length; ++i)
|
|
16429
|
-
switch (object.labels[i]) {
|
|
16430
|
-
default:
|
|
16431
|
-
case "LABELS_FREE_TRIAL":
|
|
16432
|
-
case 0:
|
|
16433
|
-
message.labels[i] = 0;
|
|
16434
|
-
break;
|
|
16435
|
-
}
|
|
16436
|
-
}
|
|
16437
15646
|
return message;
|
|
16438
15647
|
};
|
|
16439
15648
|
|
|
@@ -16450,8 +15659,6 @@ $root.SubscriptionGraced = (function() {
|
|
|
16450
15659
|
if (!options)
|
|
16451
15660
|
options = {};
|
|
16452
15661
|
var object = {};
|
|
16453
|
-
if (options.arrays || options.defaults)
|
|
16454
|
-
object.labels = [];
|
|
16455
15662
|
if (options.defaults) {
|
|
16456
15663
|
object.id = 0;
|
|
16457
15664
|
if ($util.Long) {
|
|
@@ -16515,11 +15722,6 @@ $root.SubscriptionGraced = (function() {
|
|
|
16515
15722
|
object.plan = $root.subscription.Plan.toObject(message.plan, options);
|
|
16516
15723
|
if (message.subscriptionState != null && message.hasOwnProperty("subscriptionState"))
|
|
16517
15724
|
object.subscriptionState = options.enums === String ? $root.subscription.SubscriptionState[message.subscriptionState] : message.subscriptionState;
|
|
16518
|
-
if (message.labels && message.labels.length) {
|
|
16519
|
-
object.labels = [];
|
|
16520
|
-
for (var j = 0; j < message.labels.length; ++j)
|
|
16521
|
-
object.labels[j] = options.enums === String ? $root.subscription.Labels[message.labels[j]] : message.labels[j];
|
|
16522
|
-
}
|
|
16523
15725
|
return object;
|
|
16524
15726
|
};
|
|
16525
15727
|
|
|
@@ -16553,7 +15755,6 @@ $root.SubscriptionStarted = (function() {
|
|
|
16553
15755
|
* @property {subscription.AutoRenewalStatus|null} [autoRenewalStatus] SubscriptionStarted autoRenewalStatus
|
|
16554
15756
|
* @property {subscription.IPlan|null} [plan] SubscriptionStarted plan
|
|
16555
15757
|
* @property {subscription.SubscriptionState|null} [subscriptionState] SubscriptionStarted subscriptionState
|
|
16556
|
-
* @property {Array.<subscription.Labels>|null} [labels] SubscriptionStarted labels
|
|
16557
15758
|
*/
|
|
16558
15759
|
|
|
16559
15760
|
/**
|
|
@@ -16565,7 +15766,6 @@ $root.SubscriptionStarted = (function() {
|
|
|
16565
15766
|
* @param {ISubscriptionStarted=} [properties] Properties to set
|
|
16566
15767
|
*/
|
|
16567
15768
|
function SubscriptionStarted(properties) {
|
|
16568
|
-
this.labels = [];
|
|
16569
15769
|
if (properties)
|
|
16570
15770
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
16571
15771
|
if (properties[keys[i]] != null)
|
|
@@ -16652,14 +15852,6 @@ $root.SubscriptionStarted = (function() {
|
|
|
16652
15852
|
*/
|
|
16653
15853
|
SubscriptionStarted.prototype.subscriptionState = 0;
|
|
16654
15854
|
|
|
16655
|
-
/**
|
|
16656
|
-
* SubscriptionStarted labels.
|
|
16657
|
-
* @member {Array.<subscription.Labels>} labels
|
|
16658
|
-
* @memberof SubscriptionStarted
|
|
16659
|
-
* @instance
|
|
16660
|
-
*/
|
|
16661
|
-
SubscriptionStarted.prototype.labels = $util.emptyArray;
|
|
16662
|
-
|
|
16663
15855
|
/**
|
|
16664
15856
|
* Creates a new SubscriptionStarted instance using the specified properties.
|
|
16665
15857
|
* @function create
|
|
@@ -16704,12 +15896,6 @@ $root.SubscriptionStarted = (function() {
|
|
|
16704
15896
|
$root.subscription.Plan.encode(message.plan, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
|
|
16705
15897
|
if (message.subscriptionState != null && message.hasOwnProperty("subscriptionState"))
|
|
16706
15898
|
writer.uint32(/* id 11, wireType 0 =*/88).int32(message.subscriptionState);
|
|
16707
|
-
if (message.labels != null && message.labels.length) {
|
|
16708
|
-
writer.uint32(/* id 12, wireType 2 =*/98).fork();
|
|
16709
|
-
for (var i = 0; i < message.labels.length; ++i)
|
|
16710
|
-
writer.int32(message.labels[i]);
|
|
16711
|
-
writer.ldelim();
|
|
16712
|
-
}
|
|
16713
15899
|
return writer;
|
|
16714
15900
|
};
|
|
16715
15901
|
|
|
@@ -16774,16 +15960,6 @@ $root.SubscriptionStarted = (function() {
|
|
|
16774
15960
|
case 11:
|
|
16775
15961
|
message.subscriptionState = reader.int32();
|
|
16776
15962
|
break;
|
|
16777
|
-
case 12:
|
|
16778
|
-
if (!(message.labels && message.labels.length))
|
|
16779
|
-
message.labels = [];
|
|
16780
|
-
if ((tag & 7) === 2) {
|
|
16781
|
-
var end2 = reader.uint32() + reader.pos;
|
|
16782
|
-
while (reader.pos < end2)
|
|
16783
|
-
message.labels.push(reader.int32());
|
|
16784
|
-
} else
|
|
16785
|
-
message.labels.push(reader.int32());
|
|
16786
|
-
break;
|
|
16787
15963
|
default:
|
|
16788
15964
|
reader.skipType(tag & 7);
|
|
16789
15965
|
break;
|
|
@@ -16876,17 +16052,6 @@ $root.SubscriptionStarted = (function() {
|
|
|
16876
16052
|
case 5:
|
|
16877
16053
|
break;
|
|
16878
16054
|
}
|
|
16879
|
-
if (message.labels != null && message.hasOwnProperty("labels")) {
|
|
16880
|
-
if (!Array.isArray(message.labels))
|
|
16881
|
-
return "labels: array expected";
|
|
16882
|
-
for (var i = 0; i < message.labels.length; ++i)
|
|
16883
|
-
switch (message.labels[i]) {
|
|
16884
|
-
default:
|
|
16885
|
-
return "labels: enum value[] expected";
|
|
16886
|
-
case 0:
|
|
16887
|
-
break;
|
|
16888
|
-
}
|
|
16889
|
-
}
|
|
16890
16055
|
return null;
|
|
16891
16056
|
};
|
|
16892
16057
|
|
|
@@ -17017,19 +16182,6 @@ $root.SubscriptionStarted = (function() {
|
|
|
17017
16182
|
message.subscriptionState = 5;
|
|
17018
16183
|
break;
|
|
17019
16184
|
}
|
|
17020
|
-
if (object.labels) {
|
|
17021
|
-
if (!Array.isArray(object.labels))
|
|
17022
|
-
throw TypeError(".SubscriptionStarted.labels: array expected");
|
|
17023
|
-
message.labels = [];
|
|
17024
|
-
for (var i = 0; i < object.labels.length; ++i)
|
|
17025
|
-
switch (object.labels[i]) {
|
|
17026
|
-
default:
|
|
17027
|
-
case "LABELS_FREE_TRIAL":
|
|
17028
|
-
case 0:
|
|
17029
|
-
message.labels[i] = 0;
|
|
17030
|
-
break;
|
|
17031
|
-
}
|
|
17032
|
-
}
|
|
17033
16185
|
return message;
|
|
17034
16186
|
};
|
|
17035
16187
|
|
|
@@ -17046,8 +16198,6 @@ $root.SubscriptionStarted = (function() {
|
|
|
17046
16198
|
if (!options)
|
|
17047
16199
|
options = {};
|
|
17048
16200
|
var object = {};
|
|
17049
|
-
if (options.arrays || options.defaults)
|
|
17050
|
-
object.labels = [];
|
|
17051
16201
|
if (options.defaults) {
|
|
17052
16202
|
if ($util.Long) {
|
|
17053
16203
|
var long = new $util.Long(0, 0, true);
|
|
@@ -17108,11 +16258,6 @@ $root.SubscriptionStarted = (function() {
|
|
|
17108
16258
|
object.plan = $root.subscription.Plan.toObject(message.plan, options);
|
|
17109
16259
|
if (message.subscriptionState != null && message.hasOwnProperty("subscriptionState"))
|
|
17110
16260
|
object.subscriptionState = options.enums === String ? $root.subscription.SubscriptionState[message.subscriptionState] : message.subscriptionState;
|
|
17111
|
-
if (message.labels && message.labels.length) {
|
|
17112
|
-
object.labels = [];
|
|
17113
|
-
for (var j = 0; j < message.labels.length; ++j)
|
|
17114
|
-
object.labels[j] = options.enums === String ? $root.subscription.Labels[message.labels[j]] : message.labels[j];
|
|
17115
|
-
}
|
|
17116
16261
|
return object;
|
|
17117
16262
|
};
|
|
17118
16263
|
|
|
@@ -17147,7 +16292,6 @@ $root.SubscriptionEnded = (function() {
|
|
|
17147
16292
|
* @property {subscription.IPlan|null} [plan] SubscriptionEnded plan
|
|
17148
16293
|
* @property {subscription.CancellationType|null} [cancellationType] SubscriptionEnded cancellationType
|
|
17149
16294
|
* @property {subscription.SubscriptionState|null} [subscriptionState] SubscriptionEnded subscriptionState
|
|
17150
|
-
* @property {Array.<subscription.Labels>|null} [labels] SubscriptionEnded labels
|
|
17151
16295
|
*/
|
|
17152
16296
|
|
|
17153
16297
|
/**
|
|
@@ -17159,7 +16303,6 @@ $root.SubscriptionEnded = (function() {
|
|
|
17159
16303
|
* @param {ISubscriptionEnded=} [properties] Properties to set
|
|
17160
16304
|
*/
|
|
17161
16305
|
function SubscriptionEnded(properties) {
|
|
17162
|
-
this.labels = [];
|
|
17163
16306
|
if (properties)
|
|
17164
16307
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
17165
16308
|
if (properties[keys[i]] != null)
|
|
@@ -17254,14 +16397,6 @@ $root.SubscriptionEnded = (function() {
|
|
|
17254
16397
|
*/
|
|
17255
16398
|
SubscriptionEnded.prototype.subscriptionState = 0;
|
|
17256
16399
|
|
|
17257
|
-
/**
|
|
17258
|
-
* SubscriptionEnded labels.
|
|
17259
|
-
* @member {Array.<subscription.Labels>} labels
|
|
17260
|
-
* @memberof SubscriptionEnded
|
|
17261
|
-
* @instance
|
|
17262
|
-
*/
|
|
17263
|
-
SubscriptionEnded.prototype.labels = $util.emptyArray;
|
|
17264
|
-
|
|
17265
16400
|
/**
|
|
17266
16401
|
* Creates a new SubscriptionEnded instance using the specified properties.
|
|
17267
16402
|
* @function create
|
|
@@ -17308,12 +16443,6 @@ $root.SubscriptionEnded = (function() {
|
|
|
17308
16443
|
writer.uint32(/* id 11, wireType 0 =*/88).int32(message.cancellationType);
|
|
17309
16444
|
if (message.subscriptionState != null && message.hasOwnProperty("subscriptionState"))
|
|
17310
16445
|
writer.uint32(/* id 12, wireType 0 =*/96).int32(message.subscriptionState);
|
|
17311
|
-
if (message.labels != null && message.labels.length) {
|
|
17312
|
-
writer.uint32(/* id 13, wireType 2 =*/106).fork();
|
|
17313
|
-
for (var i = 0; i < message.labels.length; ++i)
|
|
17314
|
-
writer.int32(message.labels[i]);
|
|
17315
|
-
writer.ldelim();
|
|
17316
|
-
}
|
|
17317
16446
|
return writer;
|
|
17318
16447
|
};
|
|
17319
16448
|
|
|
@@ -17381,16 +16510,6 @@ $root.SubscriptionEnded = (function() {
|
|
|
17381
16510
|
case 12:
|
|
17382
16511
|
message.subscriptionState = reader.int32();
|
|
17383
16512
|
break;
|
|
17384
|
-
case 13:
|
|
17385
|
-
if (!(message.labels && message.labels.length))
|
|
17386
|
-
message.labels = [];
|
|
17387
|
-
if ((tag & 7) === 2) {
|
|
17388
|
-
var end2 = reader.uint32() + reader.pos;
|
|
17389
|
-
while (reader.pos < end2)
|
|
17390
|
-
message.labels.push(reader.int32());
|
|
17391
|
-
} else
|
|
17392
|
-
message.labels.push(reader.int32());
|
|
17393
|
-
break;
|
|
17394
16513
|
default:
|
|
17395
16514
|
reader.skipType(tag & 7);
|
|
17396
16515
|
break;
|
|
@@ -17492,17 +16611,6 @@ $root.SubscriptionEnded = (function() {
|
|
|
17492
16611
|
case 5:
|
|
17493
16612
|
break;
|
|
17494
16613
|
}
|
|
17495
|
-
if (message.labels != null && message.hasOwnProperty("labels")) {
|
|
17496
|
-
if (!Array.isArray(message.labels))
|
|
17497
|
-
return "labels: array expected";
|
|
17498
|
-
for (var i = 0; i < message.labels.length; ++i)
|
|
17499
|
-
switch (message.labels[i]) {
|
|
17500
|
-
default:
|
|
17501
|
-
return "labels: enum value[] expected";
|
|
17502
|
-
case 0:
|
|
17503
|
-
break;
|
|
17504
|
-
}
|
|
17505
|
-
}
|
|
17506
16614
|
return null;
|
|
17507
16615
|
};
|
|
17508
16616
|
|
|
@@ -17647,19 +16755,6 @@ $root.SubscriptionEnded = (function() {
|
|
|
17647
16755
|
message.subscriptionState = 5;
|
|
17648
16756
|
break;
|
|
17649
16757
|
}
|
|
17650
|
-
if (object.labels) {
|
|
17651
|
-
if (!Array.isArray(object.labels))
|
|
17652
|
-
throw TypeError(".SubscriptionEnded.labels: array expected");
|
|
17653
|
-
message.labels = [];
|
|
17654
|
-
for (var i = 0; i < object.labels.length; ++i)
|
|
17655
|
-
switch (object.labels[i]) {
|
|
17656
|
-
default:
|
|
17657
|
-
case "LABELS_FREE_TRIAL":
|
|
17658
|
-
case 0:
|
|
17659
|
-
message.labels[i] = 0;
|
|
17660
|
-
break;
|
|
17661
|
-
}
|
|
17662
|
-
}
|
|
17663
16758
|
return message;
|
|
17664
16759
|
};
|
|
17665
16760
|
|
|
@@ -17676,8 +16771,6 @@ $root.SubscriptionEnded = (function() {
|
|
|
17676
16771
|
if (!options)
|
|
17677
16772
|
options = {};
|
|
17678
16773
|
var object = {};
|
|
17679
|
-
if (options.arrays || options.defaults)
|
|
17680
|
-
object.labels = [];
|
|
17681
16774
|
if (options.defaults) {
|
|
17682
16775
|
if ($util.Long) {
|
|
17683
16776
|
var long = new $util.Long(0, 0, true);
|
|
@@ -17741,11 +16834,6 @@ $root.SubscriptionEnded = (function() {
|
|
|
17741
16834
|
object.cancellationType = options.enums === String ? $root.subscription.CancellationType[message.cancellationType] : message.cancellationType;
|
|
17742
16835
|
if (message.subscriptionState != null && message.hasOwnProperty("subscriptionState"))
|
|
17743
16836
|
object.subscriptionState = options.enums === String ? $root.subscription.SubscriptionState[message.subscriptionState] : message.subscriptionState;
|
|
17744
|
-
if (message.labels && message.labels.length) {
|
|
17745
|
-
object.labels = [];
|
|
17746
|
-
for (var j = 0; j < message.labels.length; ++j)
|
|
17747
|
-
object.labels[j] = options.enums === String ? $root.subscription.Labels[message.labels[j]] : message.labels[j];
|
|
17748
|
-
}
|
|
17749
16837
|
return object;
|
|
17750
16838
|
};
|
|
17751
16839
|
|
|
@@ -17779,7 +16867,6 @@ $root.SubscriptionRecovered = (function() {
|
|
|
17779
16867
|
* @property {subscription.AutoRenewalStatus|null} [autoRenewalStatus] SubscriptionRecovered autoRenewalStatus
|
|
17780
16868
|
* @property {subscription.IPlan|null} [plan] SubscriptionRecovered plan
|
|
17781
16869
|
* @property {subscription.SubscriptionState|null} [subscriptionState] SubscriptionRecovered subscriptionState
|
|
17782
|
-
* @property {Array.<subscription.Labels>|null} [labels] SubscriptionRecovered labels
|
|
17783
16870
|
*/
|
|
17784
16871
|
|
|
17785
16872
|
/**
|
|
@@ -17791,7 +16878,6 @@ $root.SubscriptionRecovered = (function() {
|
|
|
17791
16878
|
* @param {ISubscriptionRecovered=} [properties] Properties to set
|
|
17792
16879
|
*/
|
|
17793
16880
|
function SubscriptionRecovered(properties) {
|
|
17794
|
-
this.labels = [];
|
|
17795
16881
|
if (properties)
|
|
17796
16882
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
17797
16883
|
if (properties[keys[i]] != null)
|
|
@@ -17878,14 +16964,6 @@ $root.SubscriptionRecovered = (function() {
|
|
|
17878
16964
|
*/
|
|
17879
16965
|
SubscriptionRecovered.prototype.subscriptionState = 0;
|
|
17880
16966
|
|
|
17881
|
-
/**
|
|
17882
|
-
* SubscriptionRecovered labels.
|
|
17883
|
-
* @member {Array.<subscription.Labels>} labels
|
|
17884
|
-
* @memberof SubscriptionRecovered
|
|
17885
|
-
* @instance
|
|
17886
|
-
*/
|
|
17887
|
-
SubscriptionRecovered.prototype.labels = $util.emptyArray;
|
|
17888
|
-
|
|
17889
16967
|
/**
|
|
17890
16968
|
* Creates a new SubscriptionRecovered instance using the specified properties.
|
|
17891
16969
|
* @function create
|
|
@@ -17930,12 +17008,6 @@ $root.SubscriptionRecovered = (function() {
|
|
|
17930
17008
|
$root.subscription.Plan.encode(message.plan, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
|
|
17931
17009
|
if (message.subscriptionState != null && message.hasOwnProperty("subscriptionState"))
|
|
17932
17010
|
writer.uint32(/* id 11, wireType 0 =*/88).int32(message.subscriptionState);
|
|
17933
|
-
if (message.labels != null && message.labels.length) {
|
|
17934
|
-
writer.uint32(/* id 12, wireType 2 =*/98).fork();
|
|
17935
|
-
for (var i = 0; i < message.labels.length; ++i)
|
|
17936
|
-
writer.int32(message.labels[i]);
|
|
17937
|
-
writer.ldelim();
|
|
17938
|
-
}
|
|
17939
17011
|
return writer;
|
|
17940
17012
|
};
|
|
17941
17013
|
|
|
@@ -18000,16 +17072,6 @@ $root.SubscriptionRecovered = (function() {
|
|
|
18000
17072
|
case 11:
|
|
18001
17073
|
message.subscriptionState = reader.int32();
|
|
18002
17074
|
break;
|
|
18003
|
-
case 12:
|
|
18004
|
-
if (!(message.labels && message.labels.length))
|
|
18005
|
-
message.labels = [];
|
|
18006
|
-
if ((tag & 7) === 2) {
|
|
18007
|
-
var end2 = reader.uint32() + reader.pos;
|
|
18008
|
-
while (reader.pos < end2)
|
|
18009
|
-
message.labels.push(reader.int32());
|
|
18010
|
-
} else
|
|
18011
|
-
message.labels.push(reader.int32());
|
|
18012
|
-
break;
|
|
18013
17075
|
default:
|
|
18014
17076
|
reader.skipType(tag & 7);
|
|
18015
17077
|
break;
|
|
@@ -18102,17 +17164,6 @@ $root.SubscriptionRecovered = (function() {
|
|
|
18102
17164
|
case 5:
|
|
18103
17165
|
break;
|
|
18104
17166
|
}
|
|
18105
|
-
if (message.labels != null && message.hasOwnProperty("labels")) {
|
|
18106
|
-
if (!Array.isArray(message.labels))
|
|
18107
|
-
return "labels: array expected";
|
|
18108
|
-
for (var i = 0; i < message.labels.length; ++i)
|
|
18109
|
-
switch (message.labels[i]) {
|
|
18110
|
-
default:
|
|
18111
|
-
return "labels: enum value[] expected";
|
|
18112
|
-
case 0:
|
|
18113
|
-
break;
|
|
18114
|
-
}
|
|
18115
|
-
}
|
|
18116
17167
|
return null;
|
|
18117
17168
|
};
|
|
18118
17169
|
|
|
@@ -18243,19 +17294,6 @@ $root.SubscriptionRecovered = (function() {
|
|
|
18243
17294
|
message.subscriptionState = 5;
|
|
18244
17295
|
break;
|
|
18245
17296
|
}
|
|
18246
|
-
if (object.labels) {
|
|
18247
|
-
if (!Array.isArray(object.labels))
|
|
18248
|
-
throw TypeError(".SubscriptionRecovered.labels: array expected");
|
|
18249
|
-
message.labels = [];
|
|
18250
|
-
for (var i = 0; i < object.labels.length; ++i)
|
|
18251
|
-
switch (object.labels[i]) {
|
|
18252
|
-
default:
|
|
18253
|
-
case "LABELS_FREE_TRIAL":
|
|
18254
|
-
case 0:
|
|
18255
|
-
message.labels[i] = 0;
|
|
18256
|
-
break;
|
|
18257
|
-
}
|
|
18258
|
-
}
|
|
18259
17297
|
return message;
|
|
18260
17298
|
};
|
|
18261
17299
|
|
|
@@ -18272,8 +17310,6 @@ $root.SubscriptionRecovered = (function() {
|
|
|
18272
17310
|
if (!options)
|
|
18273
17311
|
options = {};
|
|
18274
17312
|
var object = {};
|
|
18275
|
-
if (options.arrays || options.defaults)
|
|
18276
|
-
object.labels = [];
|
|
18277
17313
|
if (options.defaults) {
|
|
18278
17314
|
if ($util.Long) {
|
|
18279
17315
|
var long = new $util.Long(0, 0, true);
|
|
@@ -18334,11 +17370,6 @@ $root.SubscriptionRecovered = (function() {
|
|
|
18334
17370
|
object.plan = $root.subscription.Plan.toObject(message.plan, options);
|
|
18335
17371
|
if (message.subscriptionState != null && message.hasOwnProperty("subscriptionState"))
|
|
18336
17372
|
object.subscriptionState = options.enums === String ? $root.subscription.SubscriptionState[message.subscriptionState] : message.subscriptionState;
|
|
18337
|
-
if (message.labels && message.labels.length) {
|
|
18338
|
-
object.labels = [];
|
|
18339
|
-
for (var j = 0; j < message.labels.length; ++j)
|
|
18340
|
-
object.labels[j] = options.enums === String ? $root.subscription.Labels[message.labels[j]] : message.labels[j];
|
|
18341
|
-
}
|
|
18342
17373
|
return object;
|
|
18343
17374
|
};
|
|
18344
17375
|
|