@headspace/protos-events 1.68.0 → 1.70.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 +67 -0
- package/lib/index.js +510 -0
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -1175,6 +1175,11 @@ export namespace subscription {
|
|
|
1175
1175
|
CT_PASSIVE = 2
|
|
1176
1176
|
}
|
|
1177
1177
|
|
|
1178
|
+
/** Labels enum. */
|
|
1179
|
+
enum Labels {
|
|
1180
|
+
LABELS_FREE_TRIAL = 0
|
|
1181
|
+
}
|
|
1182
|
+
|
|
1178
1183
|
/** SubscriptionState enum. */
|
|
1179
1184
|
enum SubscriptionState {
|
|
1180
1185
|
SUBSTATE_UNKNOWN = 0,
|
|
@@ -2021,6 +2026,9 @@ export namespace userdomain {
|
|
|
2021
2026
|
|
|
2022
2027
|
/** User signupPlatform */
|
|
2023
2028
|
signupPlatform?: (userdomain.Platform|null);
|
|
2029
|
+
|
|
2030
|
+
/** User registrationConnection */
|
|
2031
|
+
registrationConnection?: (userdomain.Connection|null);
|
|
2024
2032
|
}
|
|
2025
2033
|
|
|
2026
2034
|
/** Represents a User. */
|
|
@@ -2056,6 +2064,9 @@ export namespace userdomain {
|
|
|
2056
2064
|
/** User signupPlatform. */
|
|
2057
2065
|
public signupPlatform: userdomain.Platform;
|
|
2058
2066
|
|
|
2067
|
+
/** User registrationConnection. */
|
|
2068
|
+
public registrationConnection: userdomain.Connection;
|
|
2069
|
+
|
|
2059
2070
|
/**
|
|
2060
2071
|
* Creates a new User instance using the specified properties.
|
|
2061
2072
|
* @param [properties] Properties to set
|
|
@@ -2136,6 +2147,14 @@ export namespace userdomain {
|
|
|
2136
2147
|
ALEXA = 4,
|
|
2137
2148
|
GOOGLE_ASSISTANT = 5
|
|
2138
2149
|
}
|
|
2150
|
+
|
|
2151
|
+
/** Connection enum. */
|
|
2152
|
+
enum Connection {
|
|
2153
|
+
UNKNOWN = 0,
|
|
2154
|
+
EMAIL = 1,
|
|
2155
|
+
FACEBOOK = 2,
|
|
2156
|
+
SPOTIFY = 3
|
|
2157
|
+
}
|
|
2139
2158
|
}
|
|
2140
2159
|
|
|
2141
2160
|
/** Properties of a UserRoleUpdated. */
|
|
@@ -5131,6 +5150,9 @@ export interface ISubscriptionCreated {
|
|
|
5131
5150
|
|
|
5132
5151
|
/** SubscriptionCreated subscriptionState */
|
|
5133
5152
|
subscriptionState?: (subscription.SubscriptionState|null);
|
|
5153
|
+
|
|
5154
|
+
/** SubscriptionCreated labels */
|
|
5155
|
+
labels?: (subscription.Labels[]|null);
|
|
5134
5156
|
}
|
|
5135
5157
|
|
|
5136
5158
|
/** Represents a SubscriptionCreated. */
|
|
@@ -5175,6 +5197,9 @@ export class SubscriptionCreated implements ISubscriptionCreated {
|
|
|
5175
5197
|
/** SubscriptionCreated subscriptionState. */
|
|
5176
5198
|
public subscriptionState: subscription.SubscriptionState;
|
|
5177
5199
|
|
|
5200
|
+
/** SubscriptionCreated labels. */
|
|
5201
|
+
public labels: subscription.Labels[];
|
|
5202
|
+
|
|
5178
5203
|
/**
|
|
5179
5204
|
* Creates a new SubscriptionCreated instance using the specified properties.
|
|
5180
5205
|
* @param [properties] Properties to set
|
|
@@ -5287,6 +5312,9 @@ export interface ISubscriptionCancelled {
|
|
|
5287
5312
|
|
|
5288
5313
|
/** SubscriptionCancelled subscriptionState */
|
|
5289
5314
|
subscriptionState?: (subscription.SubscriptionState|null);
|
|
5315
|
+
|
|
5316
|
+
/** SubscriptionCancelled labels */
|
|
5317
|
+
labels?: (subscription.Labels[]|null);
|
|
5290
5318
|
}
|
|
5291
5319
|
|
|
5292
5320
|
/** Represents a SubscriptionCancelled. */
|
|
@@ -5337,6 +5365,9 @@ export class SubscriptionCancelled implements ISubscriptionCancelled {
|
|
|
5337
5365
|
/** SubscriptionCancelled subscriptionState. */
|
|
5338
5366
|
public subscriptionState: subscription.SubscriptionState;
|
|
5339
5367
|
|
|
5368
|
+
/** SubscriptionCancelled labels. */
|
|
5369
|
+
public labels: subscription.Labels[];
|
|
5370
|
+
|
|
5340
5371
|
/**
|
|
5341
5372
|
* Creates a new SubscriptionCancelled instance using the specified properties.
|
|
5342
5373
|
* @param [properties] Properties to set
|
|
@@ -5443,6 +5474,12 @@ export interface ISubscriptionRenewed {
|
|
|
5443
5474
|
|
|
5444
5475
|
/** SubscriptionRenewed subscriptionState */
|
|
5445
5476
|
subscriptionState?: (subscription.SubscriptionState|null);
|
|
5477
|
+
|
|
5478
|
+
/** SubscriptionRenewed labels */
|
|
5479
|
+
labels?: (subscription.Labels[]|null);
|
|
5480
|
+
|
|
5481
|
+
/** SubscriptionRenewed renewalCount */
|
|
5482
|
+
renewalCount?: (number|Long|null);
|
|
5446
5483
|
}
|
|
5447
5484
|
|
|
5448
5485
|
/** Represents a SubscriptionRenewed. */
|
|
@@ -5487,6 +5524,12 @@ export class SubscriptionRenewed implements ISubscriptionRenewed {
|
|
|
5487
5524
|
/** SubscriptionRenewed subscriptionState. */
|
|
5488
5525
|
public subscriptionState: subscription.SubscriptionState;
|
|
5489
5526
|
|
|
5527
|
+
/** SubscriptionRenewed labels. */
|
|
5528
|
+
public labels: subscription.Labels[];
|
|
5529
|
+
|
|
5530
|
+
/** SubscriptionRenewed renewalCount. */
|
|
5531
|
+
public renewalCount: (number|Long);
|
|
5532
|
+
|
|
5490
5533
|
/**
|
|
5491
5534
|
* Creates a new SubscriptionRenewed instance using the specified properties.
|
|
5492
5535
|
* @param [properties] Properties to set
|
|
@@ -5959,6 +6002,9 @@ export interface ISubscriptionGraced {
|
|
|
5959
6002
|
|
|
5960
6003
|
/** SubscriptionGraced subscriptionState */
|
|
5961
6004
|
subscriptionState?: (subscription.SubscriptionState|null);
|
|
6005
|
+
|
|
6006
|
+
/** SubscriptionGraced labels */
|
|
6007
|
+
labels?: (subscription.Labels[]|null);
|
|
5962
6008
|
}
|
|
5963
6009
|
|
|
5964
6010
|
/** Represents a SubscriptionGraced. */
|
|
@@ -6003,6 +6049,9 @@ export class SubscriptionGraced implements ISubscriptionGraced {
|
|
|
6003
6049
|
/** SubscriptionGraced subscriptionState. */
|
|
6004
6050
|
public subscriptionState: subscription.SubscriptionState;
|
|
6005
6051
|
|
|
6052
|
+
/** SubscriptionGraced labels. */
|
|
6053
|
+
public labels: subscription.Labels[];
|
|
6054
|
+
|
|
6006
6055
|
/**
|
|
6007
6056
|
* Creates a new SubscriptionGraced instance using the specified properties.
|
|
6008
6057
|
* @param [properties] Properties to set
|
|
@@ -6106,6 +6155,9 @@ export interface ISubscriptionStarted {
|
|
|
6106
6155
|
|
|
6107
6156
|
/** SubscriptionStarted subscriptionState */
|
|
6108
6157
|
subscriptionState?: (subscription.SubscriptionState|null);
|
|
6158
|
+
|
|
6159
|
+
/** SubscriptionStarted labels */
|
|
6160
|
+
labels?: (subscription.Labels[]|null);
|
|
6109
6161
|
}
|
|
6110
6162
|
|
|
6111
6163
|
/** Represents a SubscriptionStarted. */
|
|
@@ -6147,6 +6199,9 @@ export class SubscriptionStarted implements ISubscriptionStarted {
|
|
|
6147
6199
|
/** SubscriptionStarted subscriptionState. */
|
|
6148
6200
|
public subscriptionState: subscription.SubscriptionState;
|
|
6149
6201
|
|
|
6202
|
+
/** SubscriptionStarted labels. */
|
|
6203
|
+
public labels: subscription.Labels[];
|
|
6204
|
+
|
|
6150
6205
|
/**
|
|
6151
6206
|
* Creates a new SubscriptionStarted instance using the specified properties.
|
|
6152
6207
|
* @param [properties] Properties to set
|
|
@@ -6253,6 +6308,9 @@ export interface ISubscriptionEnded {
|
|
|
6253
6308
|
|
|
6254
6309
|
/** SubscriptionEnded subscriptionState */
|
|
6255
6310
|
subscriptionState?: (subscription.SubscriptionState|null);
|
|
6311
|
+
|
|
6312
|
+
/** SubscriptionEnded labels */
|
|
6313
|
+
labels?: (subscription.Labels[]|null);
|
|
6256
6314
|
}
|
|
6257
6315
|
|
|
6258
6316
|
/** Represents a SubscriptionEnded. */
|
|
@@ -6297,6 +6355,9 @@ export class SubscriptionEnded implements ISubscriptionEnded {
|
|
|
6297
6355
|
/** SubscriptionEnded subscriptionState. */
|
|
6298
6356
|
public subscriptionState: subscription.SubscriptionState;
|
|
6299
6357
|
|
|
6358
|
+
/** SubscriptionEnded labels. */
|
|
6359
|
+
public labels: subscription.Labels[];
|
|
6360
|
+
|
|
6300
6361
|
/**
|
|
6301
6362
|
* Creates a new SubscriptionEnded instance using the specified properties.
|
|
6302
6363
|
* @param [properties] Properties to set
|
|
@@ -6400,6 +6461,9 @@ export interface ISubscriptionRecovered {
|
|
|
6400
6461
|
|
|
6401
6462
|
/** SubscriptionRecovered subscriptionState */
|
|
6402
6463
|
subscriptionState?: (subscription.SubscriptionState|null);
|
|
6464
|
+
|
|
6465
|
+
/** SubscriptionRecovered labels */
|
|
6466
|
+
labels?: (subscription.Labels[]|null);
|
|
6403
6467
|
}
|
|
6404
6468
|
|
|
6405
6469
|
/** Represents a SubscriptionRecovered. */
|
|
@@ -6441,6 +6505,9 @@ export class SubscriptionRecovered implements ISubscriptionRecovered {
|
|
|
6441
6505
|
/** SubscriptionRecovered subscriptionState. */
|
|
6442
6506
|
public subscriptionState: subscription.SubscriptionState;
|
|
6443
6507
|
|
|
6508
|
+
/** SubscriptionRecovered labels. */
|
|
6509
|
+
public labels: subscription.Labels[];
|
|
6510
|
+
|
|
6444
6511
|
/**
|
|
6445
6512
|
* Creates a new SubscriptionRecovered instance using the specified properties.
|
|
6446
6513
|
* @param [properties] Properties to set
|
package/lib/index.js
CHANGED
|
@@ -2664,6 +2664,18 @@ $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
|
+
|
|
2667
2679
|
/**
|
|
2668
2680
|
* SubscriptionState enum.
|
|
2669
2681
|
* @name subscription.SubscriptionState
|
|
@@ -4812,6 +4824,7 @@ $root.userdomain = (function() {
|
|
|
4812
4824
|
* @property {string|null} [countryCode] User countryCode
|
|
4813
4825
|
* @property {string|null} [stateCode] User stateCode
|
|
4814
4826
|
* @property {userdomain.Platform|null} [signupPlatform] User signupPlatform
|
|
4827
|
+
* @property {userdomain.Connection|null} [registrationConnection] User registrationConnection
|
|
4815
4828
|
*/
|
|
4816
4829
|
|
|
4817
4830
|
/**
|
|
@@ -4893,6 +4906,14 @@ $root.userdomain = (function() {
|
|
|
4893
4906
|
*/
|
|
4894
4907
|
User.prototype.signupPlatform = 0;
|
|
4895
4908
|
|
|
4909
|
+
/**
|
|
4910
|
+
* User registrationConnection.
|
|
4911
|
+
* @member {userdomain.Connection} registrationConnection
|
|
4912
|
+
* @memberof userdomain.User
|
|
4913
|
+
* @instance
|
|
4914
|
+
*/
|
|
4915
|
+
User.prototype.registrationConnection = 0;
|
|
4916
|
+
|
|
4896
4917
|
/**
|
|
4897
4918
|
* Creates a new User instance using the specified properties.
|
|
4898
4919
|
* @function create
|
|
@@ -4933,6 +4954,8 @@ $root.userdomain = (function() {
|
|
|
4933
4954
|
writer.uint32(/* id 7, wireType 2 =*/58).string(message.stateCode);
|
|
4934
4955
|
if (message.signupPlatform != null && message.hasOwnProperty("signupPlatform"))
|
|
4935
4956
|
writer.uint32(/* id 8, wireType 0 =*/64).int32(message.signupPlatform);
|
|
4957
|
+
if (message.registrationConnection != null && message.hasOwnProperty("registrationConnection"))
|
|
4958
|
+
writer.uint32(/* id 9, wireType 0 =*/72).int32(message.registrationConnection);
|
|
4936
4959
|
return writer;
|
|
4937
4960
|
};
|
|
4938
4961
|
|
|
@@ -4991,6 +5014,9 @@ $root.userdomain = (function() {
|
|
|
4991
5014
|
case 8:
|
|
4992
5015
|
message.signupPlatform = reader.int32();
|
|
4993
5016
|
break;
|
|
5017
|
+
case 9:
|
|
5018
|
+
message.registrationConnection = reader.int32();
|
|
5019
|
+
break;
|
|
4994
5020
|
default:
|
|
4995
5021
|
reader.skipType(tag & 7);
|
|
4996
5022
|
break;
|
|
@@ -5059,6 +5085,16 @@ $root.userdomain = (function() {
|
|
|
5059
5085
|
case 5:
|
|
5060
5086
|
break;
|
|
5061
5087
|
}
|
|
5088
|
+
if (message.registrationConnection != null && message.hasOwnProperty("registrationConnection"))
|
|
5089
|
+
switch (message.registrationConnection) {
|
|
5090
|
+
default:
|
|
5091
|
+
return "registrationConnection: enum value expected";
|
|
5092
|
+
case 0:
|
|
5093
|
+
case 1:
|
|
5094
|
+
case 2:
|
|
5095
|
+
case 3:
|
|
5096
|
+
break;
|
|
5097
|
+
}
|
|
5062
5098
|
return null;
|
|
5063
5099
|
};
|
|
5064
5100
|
|
|
@@ -5114,6 +5150,24 @@ $root.userdomain = (function() {
|
|
|
5114
5150
|
message.signupPlatform = 5;
|
|
5115
5151
|
break;
|
|
5116
5152
|
}
|
|
5153
|
+
switch (object.registrationConnection) {
|
|
5154
|
+
case "UNKNOWN":
|
|
5155
|
+
case 0:
|
|
5156
|
+
message.registrationConnection = 0;
|
|
5157
|
+
break;
|
|
5158
|
+
case "EMAIL":
|
|
5159
|
+
case 1:
|
|
5160
|
+
message.registrationConnection = 1;
|
|
5161
|
+
break;
|
|
5162
|
+
case "FACEBOOK":
|
|
5163
|
+
case 2:
|
|
5164
|
+
message.registrationConnection = 2;
|
|
5165
|
+
break;
|
|
5166
|
+
case "SPOTIFY":
|
|
5167
|
+
case 3:
|
|
5168
|
+
message.registrationConnection = 3;
|
|
5169
|
+
break;
|
|
5170
|
+
}
|
|
5117
5171
|
return message;
|
|
5118
5172
|
};
|
|
5119
5173
|
|
|
@@ -5139,6 +5193,7 @@ $root.userdomain = (function() {
|
|
|
5139
5193
|
object.countryCode = "";
|
|
5140
5194
|
object.stateCode = "";
|
|
5141
5195
|
object.signupPlatform = options.enums === String ? "UNKNOWN_PLATFORM" : 0;
|
|
5196
|
+
object.registrationConnection = options.enums === String ? "UNKNOWN" : 0;
|
|
5142
5197
|
}
|
|
5143
5198
|
if (message.hsId != null && message.hasOwnProperty("hsId"))
|
|
5144
5199
|
object.hsId = message.hsId;
|
|
@@ -5156,6 +5211,8 @@ $root.userdomain = (function() {
|
|
|
5156
5211
|
object.stateCode = message.stateCode;
|
|
5157
5212
|
if (message.signupPlatform != null && message.hasOwnProperty("signupPlatform"))
|
|
5158
5213
|
object.signupPlatform = options.enums === String ? $root.userdomain.Platform[message.signupPlatform] : message.signupPlatform;
|
|
5214
|
+
if (message.registrationConnection != null && message.hasOwnProperty("registrationConnection"))
|
|
5215
|
+
object.registrationConnection = options.enums === String ? $root.userdomain.Connection[message.registrationConnection] : message.registrationConnection;
|
|
5159
5216
|
return object;
|
|
5160
5217
|
};
|
|
5161
5218
|
|
|
@@ -5195,6 +5252,24 @@ $root.userdomain = (function() {
|
|
|
5195
5252
|
return values;
|
|
5196
5253
|
})();
|
|
5197
5254
|
|
|
5255
|
+
/**
|
|
5256
|
+
* Connection enum.
|
|
5257
|
+
* @name userdomain.Connection
|
|
5258
|
+
* @enum {string}
|
|
5259
|
+
* @property {number} UNKNOWN=0 UNKNOWN value
|
|
5260
|
+
* @property {number} EMAIL=1 EMAIL value
|
|
5261
|
+
* @property {number} FACEBOOK=2 FACEBOOK value
|
|
5262
|
+
* @property {number} SPOTIFY=3 SPOTIFY value
|
|
5263
|
+
*/
|
|
5264
|
+
userdomain.Connection = (function() {
|
|
5265
|
+
var valuesById = {}, values = Object.create(valuesById);
|
|
5266
|
+
values[valuesById[0] = "UNKNOWN"] = 0;
|
|
5267
|
+
values[valuesById[1] = "EMAIL"] = 1;
|
|
5268
|
+
values[valuesById[2] = "FACEBOOK"] = 2;
|
|
5269
|
+
values[valuesById[3] = "SPOTIFY"] = 3;
|
|
5270
|
+
return values;
|
|
5271
|
+
})();
|
|
5272
|
+
|
|
5198
5273
|
return userdomain;
|
|
5199
5274
|
})();
|
|
5200
5275
|
|
|
@@ -12435,6 +12510,7 @@ $root.SubscriptionCreated = (function() {
|
|
|
12435
12510
|
* @property {subscription.AutoRenewalStatus|null} [autoRenewalStatus] SubscriptionCreated autoRenewalStatus
|
|
12436
12511
|
* @property {subscription.IPlan|null} [plan] SubscriptionCreated plan
|
|
12437
12512
|
* @property {subscription.SubscriptionState|null} [subscriptionState] SubscriptionCreated subscriptionState
|
|
12513
|
+
* @property {Array.<subscription.Labels>|null} [labels] SubscriptionCreated labels
|
|
12438
12514
|
*/
|
|
12439
12515
|
|
|
12440
12516
|
/**
|
|
@@ -12446,6 +12522,7 @@ $root.SubscriptionCreated = (function() {
|
|
|
12446
12522
|
* @param {ISubscriptionCreated=} [properties] Properties to set
|
|
12447
12523
|
*/
|
|
12448
12524
|
function SubscriptionCreated(properties) {
|
|
12525
|
+
this.labels = [];
|
|
12449
12526
|
if (properties)
|
|
12450
12527
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
12451
12528
|
if (properties[keys[i]] != null)
|
|
@@ -12540,6 +12617,14 @@ $root.SubscriptionCreated = (function() {
|
|
|
12540
12617
|
*/
|
|
12541
12618
|
SubscriptionCreated.prototype.subscriptionState = 0;
|
|
12542
12619
|
|
|
12620
|
+
/**
|
|
12621
|
+
* SubscriptionCreated labels.
|
|
12622
|
+
* @member {Array.<subscription.Labels>} labels
|
|
12623
|
+
* @memberof SubscriptionCreated
|
|
12624
|
+
* @instance
|
|
12625
|
+
*/
|
|
12626
|
+
SubscriptionCreated.prototype.labels = $util.emptyArray;
|
|
12627
|
+
|
|
12543
12628
|
/**
|
|
12544
12629
|
* Creates a new SubscriptionCreated instance using the specified properties.
|
|
12545
12630
|
* @function create
|
|
@@ -12586,6 +12671,12 @@ $root.SubscriptionCreated = (function() {
|
|
|
12586
12671
|
$root.subscription.Plan.encode(message.plan, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
|
|
12587
12672
|
if (message.subscriptionState != null && message.hasOwnProperty("subscriptionState"))
|
|
12588
12673
|
writer.uint32(/* id 11, wireType 0 =*/88).int32(message.subscriptionState);
|
|
12674
|
+
if (message.labels != null && message.labels.length) {
|
|
12675
|
+
writer.uint32(/* id 12, wireType 2 =*/98).fork();
|
|
12676
|
+
for (var i = 0; i < message.labels.length; ++i)
|
|
12677
|
+
writer.int32(message.labels[i]);
|
|
12678
|
+
writer.ldelim();
|
|
12679
|
+
}
|
|
12589
12680
|
return writer;
|
|
12590
12681
|
};
|
|
12591
12682
|
|
|
@@ -12653,6 +12744,16 @@ $root.SubscriptionCreated = (function() {
|
|
|
12653
12744
|
case 11:
|
|
12654
12745
|
message.subscriptionState = reader.int32();
|
|
12655
12746
|
break;
|
|
12747
|
+
case 12:
|
|
12748
|
+
if (!(message.labels && message.labels.length))
|
|
12749
|
+
message.labels = [];
|
|
12750
|
+
if ((tag & 7) === 2) {
|
|
12751
|
+
var end2 = reader.uint32() + reader.pos;
|
|
12752
|
+
while (reader.pos < end2)
|
|
12753
|
+
message.labels.push(reader.int32());
|
|
12754
|
+
} else
|
|
12755
|
+
message.labels.push(reader.int32());
|
|
12756
|
+
break;
|
|
12656
12757
|
default:
|
|
12657
12758
|
reader.skipType(tag & 7);
|
|
12658
12759
|
break;
|
|
@@ -12748,6 +12849,17 @@ $root.SubscriptionCreated = (function() {
|
|
|
12748
12849
|
case 5:
|
|
12749
12850
|
break;
|
|
12750
12851
|
}
|
|
12852
|
+
if (message.labels != null && message.hasOwnProperty("labels")) {
|
|
12853
|
+
if (!Array.isArray(message.labels))
|
|
12854
|
+
return "labels: array expected";
|
|
12855
|
+
for (var i = 0; i < message.labels.length; ++i)
|
|
12856
|
+
switch (message.labels[i]) {
|
|
12857
|
+
default:
|
|
12858
|
+
return "labels: enum value[] expected";
|
|
12859
|
+
case 0:
|
|
12860
|
+
break;
|
|
12861
|
+
}
|
|
12862
|
+
}
|
|
12751
12863
|
return null;
|
|
12752
12864
|
};
|
|
12753
12865
|
|
|
@@ -12880,6 +12992,19 @@ $root.SubscriptionCreated = (function() {
|
|
|
12880
12992
|
message.subscriptionState = 5;
|
|
12881
12993
|
break;
|
|
12882
12994
|
}
|
|
12995
|
+
if (object.labels) {
|
|
12996
|
+
if (!Array.isArray(object.labels))
|
|
12997
|
+
throw TypeError(".SubscriptionCreated.labels: array expected");
|
|
12998
|
+
message.labels = [];
|
|
12999
|
+
for (var i = 0; i < object.labels.length; ++i)
|
|
13000
|
+
switch (object.labels[i]) {
|
|
13001
|
+
default:
|
|
13002
|
+
case "LABELS_FREE_TRIAL":
|
|
13003
|
+
case 0:
|
|
13004
|
+
message.labels[i] = 0;
|
|
13005
|
+
break;
|
|
13006
|
+
}
|
|
13007
|
+
}
|
|
12883
13008
|
return message;
|
|
12884
13009
|
};
|
|
12885
13010
|
|
|
@@ -12896,6 +13021,8 @@ $root.SubscriptionCreated = (function() {
|
|
|
12896
13021
|
if (!options)
|
|
12897
13022
|
options = {};
|
|
12898
13023
|
var object = {};
|
|
13024
|
+
if (options.arrays || options.defaults)
|
|
13025
|
+
object.labels = [];
|
|
12899
13026
|
if (options.defaults) {
|
|
12900
13027
|
object.id = 0;
|
|
12901
13028
|
if ($util.Long) {
|
|
@@ -12959,6 +13086,11 @@ $root.SubscriptionCreated = (function() {
|
|
|
12959
13086
|
object.plan = $root.subscription.Plan.toObject(message.plan, options);
|
|
12960
13087
|
if (message.subscriptionState != null && message.hasOwnProperty("subscriptionState"))
|
|
12961
13088
|
object.subscriptionState = options.enums === String ? $root.subscription.SubscriptionState[message.subscriptionState] : message.subscriptionState;
|
|
13089
|
+
if (message.labels && message.labels.length) {
|
|
13090
|
+
object.labels = [];
|
|
13091
|
+
for (var j = 0; j < message.labels.length; ++j)
|
|
13092
|
+
object.labels[j] = options.enums === String ? $root.subscription.Labels[message.labels[j]] : message.labels[j];
|
|
13093
|
+
}
|
|
12962
13094
|
return object;
|
|
12963
13095
|
};
|
|
12964
13096
|
|
|
@@ -12995,6 +13127,7 @@ $root.SubscriptionCancelled = (function() {
|
|
|
12995
13127
|
* @property {subscription.IPlan|null} [plan] SubscriptionCancelled plan
|
|
12996
13128
|
* @property {subscription.CancellationType|null} [cancellationType] SubscriptionCancelled cancellationType
|
|
12997
13129
|
* @property {subscription.SubscriptionState|null} [subscriptionState] SubscriptionCancelled subscriptionState
|
|
13130
|
+
* @property {Array.<subscription.Labels>|null} [labels] SubscriptionCancelled labels
|
|
12998
13131
|
*/
|
|
12999
13132
|
|
|
13000
13133
|
/**
|
|
@@ -13006,6 +13139,7 @@ $root.SubscriptionCancelled = (function() {
|
|
|
13006
13139
|
* @param {ISubscriptionCancelled=} [properties] Properties to set
|
|
13007
13140
|
*/
|
|
13008
13141
|
function SubscriptionCancelled(properties) {
|
|
13142
|
+
this.labels = [];
|
|
13009
13143
|
if (properties)
|
|
13010
13144
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
13011
13145
|
if (properties[keys[i]] != null)
|
|
@@ -13116,6 +13250,14 @@ $root.SubscriptionCancelled = (function() {
|
|
|
13116
13250
|
*/
|
|
13117
13251
|
SubscriptionCancelled.prototype.subscriptionState = 0;
|
|
13118
13252
|
|
|
13253
|
+
/**
|
|
13254
|
+
* SubscriptionCancelled labels.
|
|
13255
|
+
* @member {Array.<subscription.Labels>} labels
|
|
13256
|
+
* @memberof SubscriptionCancelled
|
|
13257
|
+
* @instance
|
|
13258
|
+
*/
|
|
13259
|
+
SubscriptionCancelled.prototype.labels = $util.emptyArray;
|
|
13260
|
+
|
|
13119
13261
|
/**
|
|
13120
13262
|
* Creates a new SubscriptionCancelled instance using the specified properties.
|
|
13121
13263
|
* @function create
|
|
@@ -13166,6 +13308,12 @@ $root.SubscriptionCancelled = (function() {
|
|
|
13166
13308
|
writer.uint32(/* id 12, wireType 0 =*/96).int32(message.cancellationType);
|
|
13167
13309
|
if (message.subscriptionState != null && message.hasOwnProperty("subscriptionState"))
|
|
13168
13310
|
writer.uint32(/* id 13, wireType 0 =*/104).int32(message.subscriptionState);
|
|
13311
|
+
if (message.labels != null && message.labels.length) {
|
|
13312
|
+
writer.uint32(/* id 14, wireType 2 =*/114).fork();
|
|
13313
|
+
for (var i = 0; i < message.labels.length; ++i)
|
|
13314
|
+
writer.int32(message.labels[i]);
|
|
13315
|
+
writer.ldelim();
|
|
13316
|
+
}
|
|
13169
13317
|
return writer;
|
|
13170
13318
|
};
|
|
13171
13319
|
|
|
@@ -13239,6 +13387,16 @@ $root.SubscriptionCancelled = (function() {
|
|
|
13239
13387
|
case 13:
|
|
13240
13388
|
message.subscriptionState = reader.int32();
|
|
13241
13389
|
break;
|
|
13390
|
+
case 14:
|
|
13391
|
+
if (!(message.labels && message.labels.length))
|
|
13392
|
+
message.labels = [];
|
|
13393
|
+
if ((tag & 7) === 2) {
|
|
13394
|
+
var end2 = reader.uint32() + reader.pos;
|
|
13395
|
+
while (reader.pos < end2)
|
|
13396
|
+
message.labels.push(reader.int32());
|
|
13397
|
+
} else
|
|
13398
|
+
message.labels.push(reader.int32());
|
|
13399
|
+
break;
|
|
13242
13400
|
default:
|
|
13243
13401
|
reader.skipType(tag & 7);
|
|
13244
13402
|
break;
|
|
@@ -13348,6 +13506,17 @@ $root.SubscriptionCancelled = (function() {
|
|
|
13348
13506
|
case 5:
|
|
13349
13507
|
break;
|
|
13350
13508
|
}
|
|
13509
|
+
if (message.labels != null && message.hasOwnProperty("labels")) {
|
|
13510
|
+
if (!Array.isArray(message.labels))
|
|
13511
|
+
return "labels: array expected";
|
|
13512
|
+
for (var i = 0; i < message.labels.length; ++i)
|
|
13513
|
+
switch (message.labels[i]) {
|
|
13514
|
+
default:
|
|
13515
|
+
return "labels: enum value[] expected";
|
|
13516
|
+
case 0:
|
|
13517
|
+
break;
|
|
13518
|
+
}
|
|
13519
|
+
}
|
|
13351
13520
|
return null;
|
|
13352
13521
|
};
|
|
13353
13522
|
|
|
@@ -13499,6 +13668,19 @@ $root.SubscriptionCancelled = (function() {
|
|
|
13499
13668
|
message.subscriptionState = 5;
|
|
13500
13669
|
break;
|
|
13501
13670
|
}
|
|
13671
|
+
if (object.labels) {
|
|
13672
|
+
if (!Array.isArray(object.labels))
|
|
13673
|
+
throw TypeError(".SubscriptionCancelled.labels: array expected");
|
|
13674
|
+
message.labels = [];
|
|
13675
|
+
for (var i = 0; i < object.labels.length; ++i)
|
|
13676
|
+
switch (object.labels[i]) {
|
|
13677
|
+
default:
|
|
13678
|
+
case "LABELS_FREE_TRIAL":
|
|
13679
|
+
case 0:
|
|
13680
|
+
message.labels[i] = 0;
|
|
13681
|
+
break;
|
|
13682
|
+
}
|
|
13683
|
+
}
|
|
13502
13684
|
return message;
|
|
13503
13685
|
};
|
|
13504
13686
|
|
|
@@ -13515,6 +13697,8 @@ $root.SubscriptionCancelled = (function() {
|
|
|
13515
13697
|
if (!options)
|
|
13516
13698
|
options = {};
|
|
13517
13699
|
var object = {};
|
|
13700
|
+
if (options.arrays || options.defaults)
|
|
13701
|
+
object.labels = [];
|
|
13518
13702
|
if (options.defaults) {
|
|
13519
13703
|
object.id = 0;
|
|
13520
13704
|
if ($util.Long) {
|
|
@@ -13584,6 +13768,11 @@ $root.SubscriptionCancelled = (function() {
|
|
|
13584
13768
|
object.cancellationType = options.enums === String ? $root.subscription.CancellationType[message.cancellationType] : message.cancellationType;
|
|
13585
13769
|
if (message.subscriptionState != null && message.hasOwnProperty("subscriptionState"))
|
|
13586
13770
|
object.subscriptionState = options.enums === String ? $root.subscription.SubscriptionState[message.subscriptionState] : message.subscriptionState;
|
|
13771
|
+
if (message.labels && message.labels.length) {
|
|
13772
|
+
object.labels = [];
|
|
13773
|
+
for (var j = 0; j < message.labels.length; ++j)
|
|
13774
|
+
object.labels[j] = options.enums === String ? $root.subscription.Labels[message.labels[j]] : message.labels[j];
|
|
13775
|
+
}
|
|
13587
13776
|
return object;
|
|
13588
13777
|
};
|
|
13589
13778
|
|
|
@@ -13618,6 +13807,8 @@ $root.SubscriptionRenewed = (function() {
|
|
|
13618
13807
|
* @property {subscription.AutoRenewalStatus|null} [autoRenewalStatus] SubscriptionRenewed autoRenewalStatus
|
|
13619
13808
|
* @property {subscription.IPlan|null} [plan] SubscriptionRenewed plan
|
|
13620
13809
|
* @property {subscription.SubscriptionState|null} [subscriptionState] SubscriptionRenewed subscriptionState
|
|
13810
|
+
* @property {Array.<subscription.Labels>|null} [labels] SubscriptionRenewed labels
|
|
13811
|
+
* @property {number|Long|null} [renewalCount] SubscriptionRenewed renewalCount
|
|
13621
13812
|
*/
|
|
13622
13813
|
|
|
13623
13814
|
/**
|
|
@@ -13629,6 +13820,7 @@ $root.SubscriptionRenewed = (function() {
|
|
|
13629
13820
|
* @param {ISubscriptionRenewed=} [properties] Properties to set
|
|
13630
13821
|
*/
|
|
13631
13822
|
function SubscriptionRenewed(properties) {
|
|
13823
|
+
this.labels = [];
|
|
13632
13824
|
if (properties)
|
|
13633
13825
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
13634
13826
|
if (properties[keys[i]] != null)
|
|
@@ -13723,6 +13915,22 @@ $root.SubscriptionRenewed = (function() {
|
|
|
13723
13915
|
*/
|
|
13724
13916
|
SubscriptionRenewed.prototype.subscriptionState = 0;
|
|
13725
13917
|
|
|
13918
|
+
/**
|
|
13919
|
+
* SubscriptionRenewed labels.
|
|
13920
|
+
* @member {Array.<subscription.Labels>} labels
|
|
13921
|
+
* @memberof SubscriptionRenewed
|
|
13922
|
+
* @instance
|
|
13923
|
+
*/
|
|
13924
|
+
SubscriptionRenewed.prototype.labels = $util.emptyArray;
|
|
13925
|
+
|
|
13926
|
+
/**
|
|
13927
|
+
* SubscriptionRenewed renewalCount.
|
|
13928
|
+
* @member {number|Long} renewalCount
|
|
13929
|
+
* @memberof SubscriptionRenewed
|
|
13930
|
+
* @instance
|
|
13931
|
+
*/
|
|
13932
|
+
SubscriptionRenewed.prototype.renewalCount = $util.Long ? $util.Long.fromBits(0,0,true) : 0;
|
|
13933
|
+
|
|
13726
13934
|
/**
|
|
13727
13935
|
* Creates a new SubscriptionRenewed instance using the specified properties.
|
|
13728
13936
|
* @function create
|
|
@@ -13769,6 +13977,14 @@ $root.SubscriptionRenewed = (function() {
|
|
|
13769
13977
|
$root.subscription.Plan.encode(message.plan, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
|
|
13770
13978
|
if (message.subscriptionState != null && message.hasOwnProperty("subscriptionState"))
|
|
13771
13979
|
writer.uint32(/* id 11, wireType 0 =*/88).int32(message.subscriptionState);
|
|
13980
|
+
if (message.labels != null && message.labels.length) {
|
|
13981
|
+
writer.uint32(/* id 14, wireType 2 =*/114).fork();
|
|
13982
|
+
for (var i = 0; i < message.labels.length; ++i)
|
|
13983
|
+
writer.int32(message.labels[i]);
|
|
13984
|
+
writer.ldelim();
|
|
13985
|
+
}
|
|
13986
|
+
if (message.renewalCount != null && message.hasOwnProperty("renewalCount"))
|
|
13987
|
+
writer.uint32(/* id 15, wireType 0 =*/120).uint64(message.renewalCount);
|
|
13772
13988
|
return writer;
|
|
13773
13989
|
};
|
|
13774
13990
|
|
|
@@ -13836,6 +14052,19 @@ $root.SubscriptionRenewed = (function() {
|
|
|
13836
14052
|
case 11:
|
|
13837
14053
|
message.subscriptionState = reader.int32();
|
|
13838
14054
|
break;
|
|
14055
|
+
case 14:
|
|
14056
|
+
if (!(message.labels && message.labels.length))
|
|
14057
|
+
message.labels = [];
|
|
14058
|
+
if ((tag & 7) === 2) {
|
|
14059
|
+
var end2 = reader.uint32() + reader.pos;
|
|
14060
|
+
while (reader.pos < end2)
|
|
14061
|
+
message.labels.push(reader.int32());
|
|
14062
|
+
} else
|
|
14063
|
+
message.labels.push(reader.int32());
|
|
14064
|
+
break;
|
|
14065
|
+
case 15:
|
|
14066
|
+
message.renewalCount = reader.uint64();
|
|
14067
|
+
break;
|
|
13839
14068
|
default:
|
|
13840
14069
|
reader.skipType(tag & 7);
|
|
13841
14070
|
break;
|
|
@@ -13931,6 +14160,20 @@ $root.SubscriptionRenewed = (function() {
|
|
|
13931
14160
|
case 5:
|
|
13932
14161
|
break;
|
|
13933
14162
|
}
|
|
14163
|
+
if (message.labels != null && message.hasOwnProperty("labels")) {
|
|
14164
|
+
if (!Array.isArray(message.labels))
|
|
14165
|
+
return "labels: array expected";
|
|
14166
|
+
for (var i = 0; i < message.labels.length; ++i)
|
|
14167
|
+
switch (message.labels[i]) {
|
|
14168
|
+
default:
|
|
14169
|
+
return "labels: enum value[] expected";
|
|
14170
|
+
case 0:
|
|
14171
|
+
break;
|
|
14172
|
+
}
|
|
14173
|
+
}
|
|
14174
|
+
if (message.renewalCount != null && message.hasOwnProperty("renewalCount"))
|
|
14175
|
+
if (!$util.isInteger(message.renewalCount) && !(message.renewalCount && $util.isInteger(message.renewalCount.low) && $util.isInteger(message.renewalCount.high)))
|
|
14176
|
+
return "renewalCount: integer|Long expected";
|
|
13934
14177
|
return null;
|
|
13935
14178
|
};
|
|
13936
14179
|
|
|
@@ -14063,6 +14306,28 @@ $root.SubscriptionRenewed = (function() {
|
|
|
14063
14306
|
message.subscriptionState = 5;
|
|
14064
14307
|
break;
|
|
14065
14308
|
}
|
|
14309
|
+
if (object.labels) {
|
|
14310
|
+
if (!Array.isArray(object.labels))
|
|
14311
|
+
throw TypeError(".SubscriptionRenewed.labels: array expected");
|
|
14312
|
+
message.labels = [];
|
|
14313
|
+
for (var i = 0; i < object.labels.length; ++i)
|
|
14314
|
+
switch (object.labels[i]) {
|
|
14315
|
+
default:
|
|
14316
|
+
case "LABELS_FREE_TRIAL":
|
|
14317
|
+
case 0:
|
|
14318
|
+
message.labels[i] = 0;
|
|
14319
|
+
break;
|
|
14320
|
+
}
|
|
14321
|
+
}
|
|
14322
|
+
if (object.renewalCount != null)
|
|
14323
|
+
if ($util.Long)
|
|
14324
|
+
(message.renewalCount = $util.Long.fromValue(object.renewalCount)).unsigned = true;
|
|
14325
|
+
else if (typeof object.renewalCount === "string")
|
|
14326
|
+
message.renewalCount = parseInt(object.renewalCount, 10);
|
|
14327
|
+
else if (typeof object.renewalCount === "number")
|
|
14328
|
+
message.renewalCount = object.renewalCount;
|
|
14329
|
+
else if (typeof object.renewalCount === "object")
|
|
14330
|
+
message.renewalCount = new $util.LongBits(object.renewalCount.low >>> 0, object.renewalCount.high >>> 0).toNumber(true);
|
|
14066
14331
|
return message;
|
|
14067
14332
|
};
|
|
14068
14333
|
|
|
@@ -14079,6 +14344,8 @@ $root.SubscriptionRenewed = (function() {
|
|
|
14079
14344
|
if (!options)
|
|
14080
14345
|
options = {};
|
|
14081
14346
|
var object = {};
|
|
14347
|
+
if (options.arrays || options.defaults)
|
|
14348
|
+
object.labels = [];
|
|
14082
14349
|
if (options.defaults) {
|
|
14083
14350
|
object.id = 0;
|
|
14084
14351
|
if ($util.Long) {
|
|
@@ -14107,6 +14374,11 @@ $root.SubscriptionRenewed = (function() {
|
|
|
14107
14374
|
object.autoRenewalStatus = options.enums === String ? "UNKNOWN_STATUS" : 0;
|
|
14108
14375
|
object.plan = null;
|
|
14109
14376
|
object.subscriptionState = options.enums === String ? "SUBSTATE_UNKNOWN" : 0;
|
|
14377
|
+
if ($util.Long) {
|
|
14378
|
+
var long = new $util.Long(0, 0, true);
|
|
14379
|
+
object.renewalCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long;
|
|
14380
|
+
} else
|
|
14381
|
+
object.renewalCount = options.longs === String ? "0" : 0;
|
|
14110
14382
|
}
|
|
14111
14383
|
if (message.id != null && message.hasOwnProperty("id"))
|
|
14112
14384
|
object.id = message.id;
|
|
@@ -14142,6 +14414,16 @@ $root.SubscriptionRenewed = (function() {
|
|
|
14142
14414
|
object.plan = $root.subscription.Plan.toObject(message.plan, options);
|
|
14143
14415
|
if (message.subscriptionState != null && message.hasOwnProperty("subscriptionState"))
|
|
14144
14416
|
object.subscriptionState = options.enums === String ? $root.subscription.SubscriptionState[message.subscriptionState] : message.subscriptionState;
|
|
14417
|
+
if (message.labels && message.labels.length) {
|
|
14418
|
+
object.labels = [];
|
|
14419
|
+
for (var j = 0; j < message.labels.length; ++j)
|
|
14420
|
+
object.labels[j] = options.enums === String ? $root.subscription.Labels[message.labels[j]] : message.labels[j];
|
|
14421
|
+
}
|
|
14422
|
+
if (message.renewalCount != null && message.hasOwnProperty("renewalCount"))
|
|
14423
|
+
if (typeof message.renewalCount === "number")
|
|
14424
|
+
object.renewalCount = options.longs === String ? String(message.renewalCount) : message.renewalCount;
|
|
14425
|
+
else
|
|
14426
|
+
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;
|
|
14145
14427
|
return object;
|
|
14146
14428
|
};
|
|
14147
14429
|
|
|
@@ -15198,6 +15480,7 @@ $root.SubscriptionGraced = (function() {
|
|
|
15198
15480
|
* @property {subscription.AutoRenewalStatus|null} [autoRenewalStatus] SubscriptionGraced autoRenewalStatus
|
|
15199
15481
|
* @property {subscription.IPlan|null} [plan] SubscriptionGraced plan
|
|
15200
15482
|
* @property {subscription.SubscriptionState|null} [subscriptionState] SubscriptionGraced subscriptionState
|
|
15483
|
+
* @property {Array.<subscription.Labels>|null} [labels] SubscriptionGraced labels
|
|
15201
15484
|
*/
|
|
15202
15485
|
|
|
15203
15486
|
/**
|
|
@@ -15209,6 +15492,7 @@ $root.SubscriptionGraced = (function() {
|
|
|
15209
15492
|
* @param {ISubscriptionGraced=} [properties] Properties to set
|
|
15210
15493
|
*/
|
|
15211
15494
|
function SubscriptionGraced(properties) {
|
|
15495
|
+
this.labels = [];
|
|
15212
15496
|
if (properties)
|
|
15213
15497
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
15214
15498
|
if (properties[keys[i]] != null)
|
|
@@ -15303,6 +15587,14 @@ $root.SubscriptionGraced = (function() {
|
|
|
15303
15587
|
*/
|
|
15304
15588
|
SubscriptionGraced.prototype.subscriptionState = 0;
|
|
15305
15589
|
|
|
15590
|
+
/**
|
|
15591
|
+
* SubscriptionGraced labels.
|
|
15592
|
+
* @member {Array.<subscription.Labels>} labels
|
|
15593
|
+
* @memberof SubscriptionGraced
|
|
15594
|
+
* @instance
|
|
15595
|
+
*/
|
|
15596
|
+
SubscriptionGraced.prototype.labels = $util.emptyArray;
|
|
15597
|
+
|
|
15306
15598
|
/**
|
|
15307
15599
|
* Creates a new SubscriptionGraced instance using the specified properties.
|
|
15308
15600
|
* @function create
|
|
@@ -15349,6 +15641,12 @@ $root.SubscriptionGraced = (function() {
|
|
|
15349
15641
|
$root.subscription.Plan.encode(message.plan, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
|
|
15350
15642
|
if (message.subscriptionState != null && message.hasOwnProperty("subscriptionState"))
|
|
15351
15643
|
writer.uint32(/* id 11, wireType 0 =*/88).int32(message.subscriptionState);
|
|
15644
|
+
if (message.labels != null && message.labels.length) {
|
|
15645
|
+
writer.uint32(/* id 12, wireType 2 =*/98).fork();
|
|
15646
|
+
for (var i = 0; i < message.labels.length; ++i)
|
|
15647
|
+
writer.int32(message.labels[i]);
|
|
15648
|
+
writer.ldelim();
|
|
15649
|
+
}
|
|
15352
15650
|
return writer;
|
|
15353
15651
|
};
|
|
15354
15652
|
|
|
@@ -15416,6 +15714,16 @@ $root.SubscriptionGraced = (function() {
|
|
|
15416
15714
|
case 11:
|
|
15417
15715
|
message.subscriptionState = reader.int32();
|
|
15418
15716
|
break;
|
|
15717
|
+
case 12:
|
|
15718
|
+
if (!(message.labels && message.labels.length))
|
|
15719
|
+
message.labels = [];
|
|
15720
|
+
if ((tag & 7) === 2) {
|
|
15721
|
+
var end2 = reader.uint32() + reader.pos;
|
|
15722
|
+
while (reader.pos < end2)
|
|
15723
|
+
message.labels.push(reader.int32());
|
|
15724
|
+
} else
|
|
15725
|
+
message.labels.push(reader.int32());
|
|
15726
|
+
break;
|
|
15419
15727
|
default:
|
|
15420
15728
|
reader.skipType(tag & 7);
|
|
15421
15729
|
break;
|
|
@@ -15511,6 +15819,17 @@ $root.SubscriptionGraced = (function() {
|
|
|
15511
15819
|
case 5:
|
|
15512
15820
|
break;
|
|
15513
15821
|
}
|
|
15822
|
+
if (message.labels != null && message.hasOwnProperty("labels")) {
|
|
15823
|
+
if (!Array.isArray(message.labels))
|
|
15824
|
+
return "labels: array expected";
|
|
15825
|
+
for (var i = 0; i < message.labels.length; ++i)
|
|
15826
|
+
switch (message.labels[i]) {
|
|
15827
|
+
default:
|
|
15828
|
+
return "labels: enum value[] expected";
|
|
15829
|
+
case 0:
|
|
15830
|
+
break;
|
|
15831
|
+
}
|
|
15832
|
+
}
|
|
15514
15833
|
return null;
|
|
15515
15834
|
};
|
|
15516
15835
|
|
|
@@ -15643,6 +15962,19 @@ $root.SubscriptionGraced = (function() {
|
|
|
15643
15962
|
message.subscriptionState = 5;
|
|
15644
15963
|
break;
|
|
15645
15964
|
}
|
|
15965
|
+
if (object.labels) {
|
|
15966
|
+
if (!Array.isArray(object.labels))
|
|
15967
|
+
throw TypeError(".SubscriptionGraced.labels: array expected");
|
|
15968
|
+
message.labels = [];
|
|
15969
|
+
for (var i = 0; i < object.labels.length; ++i)
|
|
15970
|
+
switch (object.labels[i]) {
|
|
15971
|
+
default:
|
|
15972
|
+
case "LABELS_FREE_TRIAL":
|
|
15973
|
+
case 0:
|
|
15974
|
+
message.labels[i] = 0;
|
|
15975
|
+
break;
|
|
15976
|
+
}
|
|
15977
|
+
}
|
|
15646
15978
|
return message;
|
|
15647
15979
|
};
|
|
15648
15980
|
|
|
@@ -15659,6 +15991,8 @@ $root.SubscriptionGraced = (function() {
|
|
|
15659
15991
|
if (!options)
|
|
15660
15992
|
options = {};
|
|
15661
15993
|
var object = {};
|
|
15994
|
+
if (options.arrays || options.defaults)
|
|
15995
|
+
object.labels = [];
|
|
15662
15996
|
if (options.defaults) {
|
|
15663
15997
|
object.id = 0;
|
|
15664
15998
|
if ($util.Long) {
|
|
@@ -15722,6 +16056,11 @@ $root.SubscriptionGraced = (function() {
|
|
|
15722
16056
|
object.plan = $root.subscription.Plan.toObject(message.plan, options);
|
|
15723
16057
|
if (message.subscriptionState != null && message.hasOwnProperty("subscriptionState"))
|
|
15724
16058
|
object.subscriptionState = options.enums === String ? $root.subscription.SubscriptionState[message.subscriptionState] : message.subscriptionState;
|
|
16059
|
+
if (message.labels && message.labels.length) {
|
|
16060
|
+
object.labels = [];
|
|
16061
|
+
for (var j = 0; j < message.labels.length; ++j)
|
|
16062
|
+
object.labels[j] = options.enums === String ? $root.subscription.Labels[message.labels[j]] : message.labels[j];
|
|
16063
|
+
}
|
|
15725
16064
|
return object;
|
|
15726
16065
|
};
|
|
15727
16066
|
|
|
@@ -15755,6 +16094,7 @@ $root.SubscriptionStarted = (function() {
|
|
|
15755
16094
|
* @property {subscription.AutoRenewalStatus|null} [autoRenewalStatus] SubscriptionStarted autoRenewalStatus
|
|
15756
16095
|
* @property {subscription.IPlan|null} [plan] SubscriptionStarted plan
|
|
15757
16096
|
* @property {subscription.SubscriptionState|null} [subscriptionState] SubscriptionStarted subscriptionState
|
|
16097
|
+
* @property {Array.<subscription.Labels>|null} [labels] SubscriptionStarted labels
|
|
15758
16098
|
*/
|
|
15759
16099
|
|
|
15760
16100
|
/**
|
|
@@ -15766,6 +16106,7 @@ $root.SubscriptionStarted = (function() {
|
|
|
15766
16106
|
* @param {ISubscriptionStarted=} [properties] Properties to set
|
|
15767
16107
|
*/
|
|
15768
16108
|
function SubscriptionStarted(properties) {
|
|
16109
|
+
this.labels = [];
|
|
15769
16110
|
if (properties)
|
|
15770
16111
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
15771
16112
|
if (properties[keys[i]] != null)
|
|
@@ -15852,6 +16193,14 @@ $root.SubscriptionStarted = (function() {
|
|
|
15852
16193
|
*/
|
|
15853
16194
|
SubscriptionStarted.prototype.subscriptionState = 0;
|
|
15854
16195
|
|
|
16196
|
+
/**
|
|
16197
|
+
* SubscriptionStarted labels.
|
|
16198
|
+
* @member {Array.<subscription.Labels>} labels
|
|
16199
|
+
* @memberof SubscriptionStarted
|
|
16200
|
+
* @instance
|
|
16201
|
+
*/
|
|
16202
|
+
SubscriptionStarted.prototype.labels = $util.emptyArray;
|
|
16203
|
+
|
|
15855
16204
|
/**
|
|
15856
16205
|
* Creates a new SubscriptionStarted instance using the specified properties.
|
|
15857
16206
|
* @function create
|
|
@@ -15896,6 +16245,12 @@ $root.SubscriptionStarted = (function() {
|
|
|
15896
16245
|
$root.subscription.Plan.encode(message.plan, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
|
|
15897
16246
|
if (message.subscriptionState != null && message.hasOwnProperty("subscriptionState"))
|
|
15898
16247
|
writer.uint32(/* id 11, wireType 0 =*/88).int32(message.subscriptionState);
|
|
16248
|
+
if (message.labels != null && message.labels.length) {
|
|
16249
|
+
writer.uint32(/* id 12, wireType 2 =*/98).fork();
|
|
16250
|
+
for (var i = 0; i < message.labels.length; ++i)
|
|
16251
|
+
writer.int32(message.labels[i]);
|
|
16252
|
+
writer.ldelim();
|
|
16253
|
+
}
|
|
15899
16254
|
return writer;
|
|
15900
16255
|
};
|
|
15901
16256
|
|
|
@@ -15960,6 +16315,16 @@ $root.SubscriptionStarted = (function() {
|
|
|
15960
16315
|
case 11:
|
|
15961
16316
|
message.subscriptionState = reader.int32();
|
|
15962
16317
|
break;
|
|
16318
|
+
case 12:
|
|
16319
|
+
if (!(message.labels && message.labels.length))
|
|
16320
|
+
message.labels = [];
|
|
16321
|
+
if ((tag & 7) === 2) {
|
|
16322
|
+
var end2 = reader.uint32() + reader.pos;
|
|
16323
|
+
while (reader.pos < end2)
|
|
16324
|
+
message.labels.push(reader.int32());
|
|
16325
|
+
} else
|
|
16326
|
+
message.labels.push(reader.int32());
|
|
16327
|
+
break;
|
|
15963
16328
|
default:
|
|
15964
16329
|
reader.skipType(tag & 7);
|
|
15965
16330
|
break;
|
|
@@ -16052,6 +16417,17 @@ $root.SubscriptionStarted = (function() {
|
|
|
16052
16417
|
case 5:
|
|
16053
16418
|
break;
|
|
16054
16419
|
}
|
|
16420
|
+
if (message.labels != null && message.hasOwnProperty("labels")) {
|
|
16421
|
+
if (!Array.isArray(message.labels))
|
|
16422
|
+
return "labels: array expected";
|
|
16423
|
+
for (var i = 0; i < message.labels.length; ++i)
|
|
16424
|
+
switch (message.labels[i]) {
|
|
16425
|
+
default:
|
|
16426
|
+
return "labels: enum value[] expected";
|
|
16427
|
+
case 0:
|
|
16428
|
+
break;
|
|
16429
|
+
}
|
|
16430
|
+
}
|
|
16055
16431
|
return null;
|
|
16056
16432
|
};
|
|
16057
16433
|
|
|
@@ -16182,6 +16558,19 @@ $root.SubscriptionStarted = (function() {
|
|
|
16182
16558
|
message.subscriptionState = 5;
|
|
16183
16559
|
break;
|
|
16184
16560
|
}
|
|
16561
|
+
if (object.labels) {
|
|
16562
|
+
if (!Array.isArray(object.labels))
|
|
16563
|
+
throw TypeError(".SubscriptionStarted.labels: array expected");
|
|
16564
|
+
message.labels = [];
|
|
16565
|
+
for (var i = 0; i < object.labels.length; ++i)
|
|
16566
|
+
switch (object.labels[i]) {
|
|
16567
|
+
default:
|
|
16568
|
+
case "LABELS_FREE_TRIAL":
|
|
16569
|
+
case 0:
|
|
16570
|
+
message.labels[i] = 0;
|
|
16571
|
+
break;
|
|
16572
|
+
}
|
|
16573
|
+
}
|
|
16185
16574
|
return message;
|
|
16186
16575
|
};
|
|
16187
16576
|
|
|
@@ -16198,6 +16587,8 @@ $root.SubscriptionStarted = (function() {
|
|
|
16198
16587
|
if (!options)
|
|
16199
16588
|
options = {};
|
|
16200
16589
|
var object = {};
|
|
16590
|
+
if (options.arrays || options.defaults)
|
|
16591
|
+
object.labels = [];
|
|
16201
16592
|
if (options.defaults) {
|
|
16202
16593
|
if ($util.Long) {
|
|
16203
16594
|
var long = new $util.Long(0, 0, true);
|
|
@@ -16258,6 +16649,11 @@ $root.SubscriptionStarted = (function() {
|
|
|
16258
16649
|
object.plan = $root.subscription.Plan.toObject(message.plan, options);
|
|
16259
16650
|
if (message.subscriptionState != null && message.hasOwnProperty("subscriptionState"))
|
|
16260
16651
|
object.subscriptionState = options.enums === String ? $root.subscription.SubscriptionState[message.subscriptionState] : message.subscriptionState;
|
|
16652
|
+
if (message.labels && message.labels.length) {
|
|
16653
|
+
object.labels = [];
|
|
16654
|
+
for (var j = 0; j < message.labels.length; ++j)
|
|
16655
|
+
object.labels[j] = options.enums === String ? $root.subscription.Labels[message.labels[j]] : message.labels[j];
|
|
16656
|
+
}
|
|
16261
16657
|
return object;
|
|
16262
16658
|
};
|
|
16263
16659
|
|
|
@@ -16292,6 +16688,7 @@ $root.SubscriptionEnded = (function() {
|
|
|
16292
16688
|
* @property {subscription.IPlan|null} [plan] SubscriptionEnded plan
|
|
16293
16689
|
* @property {subscription.CancellationType|null} [cancellationType] SubscriptionEnded cancellationType
|
|
16294
16690
|
* @property {subscription.SubscriptionState|null} [subscriptionState] SubscriptionEnded subscriptionState
|
|
16691
|
+
* @property {Array.<subscription.Labels>|null} [labels] SubscriptionEnded labels
|
|
16295
16692
|
*/
|
|
16296
16693
|
|
|
16297
16694
|
/**
|
|
@@ -16303,6 +16700,7 @@ $root.SubscriptionEnded = (function() {
|
|
|
16303
16700
|
* @param {ISubscriptionEnded=} [properties] Properties to set
|
|
16304
16701
|
*/
|
|
16305
16702
|
function SubscriptionEnded(properties) {
|
|
16703
|
+
this.labels = [];
|
|
16306
16704
|
if (properties)
|
|
16307
16705
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
16308
16706
|
if (properties[keys[i]] != null)
|
|
@@ -16397,6 +16795,14 @@ $root.SubscriptionEnded = (function() {
|
|
|
16397
16795
|
*/
|
|
16398
16796
|
SubscriptionEnded.prototype.subscriptionState = 0;
|
|
16399
16797
|
|
|
16798
|
+
/**
|
|
16799
|
+
* SubscriptionEnded labels.
|
|
16800
|
+
* @member {Array.<subscription.Labels>} labels
|
|
16801
|
+
* @memberof SubscriptionEnded
|
|
16802
|
+
* @instance
|
|
16803
|
+
*/
|
|
16804
|
+
SubscriptionEnded.prototype.labels = $util.emptyArray;
|
|
16805
|
+
|
|
16400
16806
|
/**
|
|
16401
16807
|
* Creates a new SubscriptionEnded instance using the specified properties.
|
|
16402
16808
|
* @function create
|
|
@@ -16443,6 +16849,12 @@ $root.SubscriptionEnded = (function() {
|
|
|
16443
16849
|
writer.uint32(/* id 11, wireType 0 =*/88).int32(message.cancellationType);
|
|
16444
16850
|
if (message.subscriptionState != null && message.hasOwnProperty("subscriptionState"))
|
|
16445
16851
|
writer.uint32(/* id 12, wireType 0 =*/96).int32(message.subscriptionState);
|
|
16852
|
+
if (message.labels != null && message.labels.length) {
|
|
16853
|
+
writer.uint32(/* id 13, wireType 2 =*/106).fork();
|
|
16854
|
+
for (var i = 0; i < message.labels.length; ++i)
|
|
16855
|
+
writer.int32(message.labels[i]);
|
|
16856
|
+
writer.ldelim();
|
|
16857
|
+
}
|
|
16446
16858
|
return writer;
|
|
16447
16859
|
};
|
|
16448
16860
|
|
|
@@ -16510,6 +16922,16 @@ $root.SubscriptionEnded = (function() {
|
|
|
16510
16922
|
case 12:
|
|
16511
16923
|
message.subscriptionState = reader.int32();
|
|
16512
16924
|
break;
|
|
16925
|
+
case 13:
|
|
16926
|
+
if (!(message.labels && message.labels.length))
|
|
16927
|
+
message.labels = [];
|
|
16928
|
+
if ((tag & 7) === 2) {
|
|
16929
|
+
var end2 = reader.uint32() + reader.pos;
|
|
16930
|
+
while (reader.pos < end2)
|
|
16931
|
+
message.labels.push(reader.int32());
|
|
16932
|
+
} else
|
|
16933
|
+
message.labels.push(reader.int32());
|
|
16934
|
+
break;
|
|
16513
16935
|
default:
|
|
16514
16936
|
reader.skipType(tag & 7);
|
|
16515
16937
|
break;
|
|
@@ -16611,6 +17033,17 @@ $root.SubscriptionEnded = (function() {
|
|
|
16611
17033
|
case 5:
|
|
16612
17034
|
break;
|
|
16613
17035
|
}
|
|
17036
|
+
if (message.labels != null && message.hasOwnProperty("labels")) {
|
|
17037
|
+
if (!Array.isArray(message.labels))
|
|
17038
|
+
return "labels: array expected";
|
|
17039
|
+
for (var i = 0; i < message.labels.length; ++i)
|
|
17040
|
+
switch (message.labels[i]) {
|
|
17041
|
+
default:
|
|
17042
|
+
return "labels: enum value[] expected";
|
|
17043
|
+
case 0:
|
|
17044
|
+
break;
|
|
17045
|
+
}
|
|
17046
|
+
}
|
|
16614
17047
|
return null;
|
|
16615
17048
|
};
|
|
16616
17049
|
|
|
@@ -16755,6 +17188,19 @@ $root.SubscriptionEnded = (function() {
|
|
|
16755
17188
|
message.subscriptionState = 5;
|
|
16756
17189
|
break;
|
|
16757
17190
|
}
|
|
17191
|
+
if (object.labels) {
|
|
17192
|
+
if (!Array.isArray(object.labels))
|
|
17193
|
+
throw TypeError(".SubscriptionEnded.labels: array expected");
|
|
17194
|
+
message.labels = [];
|
|
17195
|
+
for (var i = 0; i < object.labels.length; ++i)
|
|
17196
|
+
switch (object.labels[i]) {
|
|
17197
|
+
default:
|
|
17198
|
+
case "LABELS_FREE_TRIAL":
|
|
17199
|
+
case 0:
|
|
17200
|
+
message.labels[i] = 0;
|
|
17201
|
+
break;
|
|
17202
|
+
}
|
|
17203
|
+
}
|
|
16758
17204
|
return message;
|
|
16759
17205
|
};
|
|
16760
17206
|
|
|
@@ -16771,6 +17217,8 @@ $root.SubscriptionEnded = (function() {
|
|
|
16771
17217
|
if (!options)
|
|
16772
17218
|
options = {};
|
|
16773
17219
|
var object = {};
|
|
17220
|
+
if (options.arrays || options.defaults)
|
|
17221
|
+
object.labels = [];
|
|
16774
17222
|
if (options.defaults) {
|
|
16775
17223
|
if ($util.Long) {
|
|
16776
17224
|
var long = new $util.Long(0, 0, true);
|
|
@@ -16834,6 +17282,11 @@ $root.SubscriptionEnded = (function() {
|
|
|
16834
17282
|
object.cancellationType = options.enums === String ? $root.subscription.CancellationType[message.cancellationType] : message.cancellationType;
|
|
16835
17283
|
if (message.subscriptionState != null && message.hasOwnProperty("subscriptionState"))
|
|
16836
17284
|
object.subscriptionState = options.enums === String ? $root.subscription.SubscriptionState[message.subscriptionState] : message.subscriptionState;
|
|
17285
|
+
if (message.labels && message.labels.length) {
|
|
17286
|
+
object.labels = [];
|
|
17287
|
+
for (var j = 0; j < message.labels.length; ++j)
|
|
17288
|
+
object.labels[j] = options.enums === String ? $root.subscription.Labels[message.labels[j]] : message.labels[j];
|
|
17289
|
+
}
|
|
16837
17290
|
return object;
|
|
16838
17291
|
};
|
|
16839
17292
|
|
|
@@ -16867,6 +17320,7 @@ $root.SubscriptionRecovered = (function() {
|
|
|
16867
17320
|
* @property {subscription.AutoRenewalStatus|null} [autoRenewalStatus] SubscriptionRecovered autoRenewalStatus
|
|
16868
17321
|
* @property {subscription.IPlan|null} [plan] SubscriptionRecovered plan
|
|
16869
17322
|
* @property {subscription.SubscriptionState|null} [subscriptionState] SubscriptionRecovered subscriptionState
|
|
17323
|
+
* @property {Array.<subscription.Labels>|null} [labels] SubscriptionRecovered labels
|
|
16870
17324
|
*/
|
|
16871
17325
|
|
|
16872
17326
|
/**
|
|
@@ -16878,6 +17332,7 @@ $root.SubscriptionRecovered = (function() {
|
|
|
16878
17332
|
* @param {ISubscriptionRecovered=} [properties] Properties to set
|
|
16879
17333
|
*/
|
|
16880
17334
|
function SubscriptionRecovered(properties) {
|
|
17335
|
+
this.labels = [];
|
|
16881
17336
|
if (properties)
|
|
16882
17337
|
for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i)
|
|
16883
17338
|
if (properties[keys[i]] != null)
|
|
@@ -16964,6 +17419,14 @@ $root.SubscriptionRecovered = (function() {
|
|
|
16964
17419
|
*/
|
|
16965
17420
|
SubscriptionRecovered.prototype.subscriptionState = 0;
|
|
16966
17421
|
|
|
17422
|
+
/**
|
|
17423
|
+
* SubscriptionRecovered labels.
|
|
17424
|
+
* @member {Array.<subscription.Labels>} labels
|
|
17425
|
+
* @memberof SubscriptionRecovered
|
|
17426
|
+
* @instance
|
|
17427
|
+
*/
|
|
17428
|
+
SubscriptionRecovered.prototype.labels = $util.emptyArray;
|
|
17429
|
+
|
|
16967
17430
|
/**
|
|
16968
17431
|
* Creates a new SubscriptionRecovered instance using the specified properties.
|
|
16969
17432
|
* @function create
|
|
@@ -17008,6 +17471,12 @@ $root.SubscriptionRecovered = (function() {
|
|
|
17008
17471
|
$root.subscription.Plan.encode(message.plan, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim();
|
|
17009
17472
|
if (message.subscriptionState != null && message.hasOwnProperty("subscriptionState"))
|
|
17010
17473
|
writer.uint32(/* id 11, wireType 0 =*/88).int32(message.subscriptionState);
|
|
17474
|
+
if (message.labels != null && message.labels.length) {
|
|
17475
|
+
writer.uint32(/* id 12, wireType 2 =*/98).fork();
|
|
17476
|
+
for (var i = 0; i < message.labels.length; ++i)
|
|
17477
|
+
writer.int32(message.labels[i]);
|
|
17478
|
+
writer.ldelim();
|
|
17479
|
+
}
|
|
17011
17480
|
return writer;
|
|
17012
17481
|
};
|
|
17013
17482
|
|
|
@@ -17072,6 +17541,16 @@ $root.SubscriptionRecovered = (function() {
|
|
|
17072
17541
|
case 11:
|
|
17073
17542
|
message.subscriptionState = reader.int32();
|
|
17074
17543
|
break;
|
|
17544
|
+
case 12:
|
|
17545
|
+
if (!(message.labels && message.labels.length))
|
|
17546
|
+
message.labels = [];
|
|
17547
|
+
if ((tag & 7) === 2) {
|
|
17548
|
+
var end2 = reader.uint32() + reader.pos;
|
|
17549
|
+
while (reader.pos < end2)
|
|
17550
|
+
message.labels.push(reader.int32());
|
|
17551
|
+
} else
|
|
17552
|
+
message.labels.push(reader.int32());
|
|
17553
|
+
break;
|
|
17075
17554
|
default:
|
|
17076
17555
|
reader.skipType(tag & 7);
|
|
17077
17556
|
break;
|
|
@@ -17164,6 +17643,17 @@ $root.SubscriptionRecovered = (function() {
|
|
|
17164
17643
|
case 5:
|
|
17165
17644
|
break;
|
|
17166
17645
|
}
|
|
17646
|
+
if (message.labels != null && message.hasOwnProperty("labels")) {
|
|
17647
|
+
if (!Array.isArray(message.labels))
|
|
17648
|
+
return "labels: array expected";
|
|
17649
|
+
for (var i = 0; i < message.labels.length; ++i)
|
|
17650
|
+
switch (message.labels[i]) {
|
|
17651
|
+
default:
|
|
17652
|
+
return "labels: enum value[] expected";
|
|
17653
|
+
case 0:
|
|
17654
|
+
break;
|
|
17655
|
+
}
|
|
17656
|
+
}
|
|
17167
17657
|
return null;
|
|
17168
17658
|
};
|
|
17169
17659
|
|
|
@@ -17294,6 +17784,19 @@ $root.SubscriptionRecovered = (function() {
|
|
|
17294
17784
|
message.subscriptionState = 5;
|
|
17295
17785
|
break;
|
|
17296
17786
|
}
|
|
17787
|
+
if (object.labels) {
|
|
17788
|
+
if (!Array.isArray(object.labels))
|
|
17789
|
+
throw TypeError(".SubscriptionRecovered.labels: array expected");
|
|
17790
|
+
message.labels = [];
|
|
17791
|
+
for (var i = 0; i < object.labels.length; ++i)
|
|
17792
|
+
switch (object.labels[i]) {
|
|
17793
|
+
default:
|
|
17794
|
+
case "LABELS_FREE_TRIAL":
|
|
17795
|
+
case 0:
|
|
17796
|
+
message.labels[i] = 0;
|
|
17797
|
+
break;
|
|
17798
|
+
}
|
|
17799
|
+
}
|
|
17297
17800
|
return message;
|
|
17298
17801
|
};
|
|
17299
17802
|
|
|
@@ -17310,6 +17813,8 @@ $root.SubscriptionRecovered = (function() {
|
|
|
17310
17813
|
if (!options)
|
|
17311
17814
|
options = {};
|
|
17312
17815
|
var object = {};
|
|
17816
|
+
if (options.arrays || options.defaults)
|
|
17817
|
+
object.labels = [];
|
|
17313
17818
|
if (options.defaults) {
|
|
17314
17819
|
if ($util.Long) {
|
|
17315
17820
|
var long = new $util.Long(0, 0, true);
|
|
@@ -17370,6 +17875,11 @@ $root.SubscriptionRecovered = (function() {
|
|
|
17370
17875
|
object.plan = $root.subscription.Plan.toObject(message.plan, options);
|
|
17371
17876
|
if (message.subscriptionState != null && message.hasOwnProperty("subscriptionState"))
|
|
17372
17877
|
object.subscriptionState = options.enums === String ? $root.subscription.SubscriptionState[message.subscriptionState] : message.subscriptionState;
|
|
17878
|
+
if (message.labels && message.labels.length) {
|
|
17879
|
+
object.labels = [];
|
|
17880
|
+
for (var j = 0; j < message.labels.length; ++j)
|
|
17881
|
+
object.labels[j] = options.enums === String ? $root.subscription.Labels[message.labels[j]] : message.labels[j];
|
|
17882
|
+
}
|
|
17373
17883
|
return object;
|
|
17374
17884
|
};
|
|
17375
17885
|
|
package/package.json
CHANGED