protobuf-platform 1.0.134 → 1.0.136

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/bonus/bonus_pb.js CHANGED
@@ -36,11 +36,15 @@ goog.exportSymbol('proto.bonus.BonusStatusesResponse', null, global);
36
36
  goog.exportSymbol('proto.bonus.BonusType', null, global);
37
37
  goog.exportSymbol('proto.bonus.BonusTypesResponse', null, global);
38
38
  goog.exportSymbol('proto.bonus.File', null, global);
39
+ goog.exportSymbol('proto.bonus.FreeSpinItem', null, global);
39
40
  goog.exportSymbol('proto.bonus.GetBonusRequest', null, global);
40
41
  goog.exportSymbol('proto.bonus.GetFileRequest', null, global);
42
+ goog.exportSymbol('proto.bonus.GetUserBonusRequest', null, global);
41
43
  goog.exportSymbol('proto.bonus.PaginationRequest', null, global);
42
44
  goog.exportSymbol('proto.bonus.PingRequest', null, global);
43
45
  goog.exportSymbol('proto.bonus.PongResponse', null, global);
46
+ goog.exportSymbol('proto.bonus.UserBonusItem', null, global);
47
+ goog.exportSymbol('proto.bonus.UserBonusItemsResponse', null, global);
44
48
  /**
45
49
  * Generated by JsPbCodeGenerator.
46
50
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -356,6 +360,90 @@ if (goog.DEBUG && !COMPILED) {
356
360
  */
357
361
  proto.bonus.BonusStatusResponse.displayName = 'proto.bonus.BonusStatusResponse';
358
362
  }
363
+ /**
364
+ * Generated by JsPbCodeGenerator.
365
+ * @param {Array=} opt_data Optional initial data array, typically from a
366
+ * server response, or constructed directly in Javascript. The array is used
367
+ * in place and becomes part of the constructed object. It is not cloned.
368
+ * If no data is provided, the constructed object will be empty, but still
369
+ * valid.
370
+ * @extends {jspb.Message}
371
+ * @constructor
372
+ */
373
+ proto.bonus.UserBonusItem = function(opt_data) {
374
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.bonus.UserBonusItem.repeatedFields_, null);
375
+ };
376
+ goog.inherits(proto.bonus.UserBonusItem, jspb.Message);
377
+ if (goog.DEBUG && !COMPILED) {
378
+ /**
379
+ * @public
380
+ * @override
381
+ */
382
+ proto.bonus.UserBonusItem.displayName = 'proto.bonus.UserBonusItem';
383
+ }
384
+ /**
385
+ * Generated by JsPbCodeGenerator.
386
+ * @param {Array=} opt_data Optional initial data array, typically from a
387
+ * server response, or constructed directly in Javascript. The array is used
388
+ * in place and becomes part of the constructed object. It is not cloned.
389
+ * If no data is provided, the constructed object will be empty, but still
390
+ * valid.
391
+ * @extends {jspb.Message}
392
+ * @constructor
393
+ */
394
+ proto.bonus.FreeSpinItem = function(opt_data) {
395
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
396
+ };
397
+ goog.inherits(proto.bonus.FreeSpinItem, jspb.Message);
398
+ if (goog.DEBUG && !COMPILED) {
399
+ /**
400
+ * @public
401
+ * @override
402
+ */
403
+ proto.bonus.FreeSpinItem.displayName = 'proto.bonus.FreeSpinItem';
404
+ }
405
+ /**
406
+ * Generated by JsPbCodeGenerator.
407
+ * @param {Array=} opt_data Optional initial data array, typically from a
408
+ * server response, or constructed directly in Javascript. The array is used
409
+ * in place and becomes part of the constructed object. It is not cloned.
410
+ * If no data is provided, the constructed object will be empty, but still
411
+ * valid.
412
+ * @extends {jspb.Message}
413
+ * @constructor
414
+ */
415
+ proto.bonus.GetUserBonusRequest = function(opt_data) {
416
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
417
+ };
418
+ goog.inherits(proto.bonus.GetUserBonusRequest, jspb.Message);
419
+ if (goog.DEBUG && !COMPILED) {
420
+ /**
421
+ * @public
422
+ * @override
423
+ */
424
+ proto.bonus.GetUserBonusRequest.displayName = 'proto.bonus.GetUserBonusRequest';
425
+ }
426
+ /**
427
+ * Generated by JsPbCodeGenerator.
428
+ * @param {Array=} opt_data Optional initial data array, typically from a
429
+ * server response, or constructed directly in Javascript. The array is used
430
+ * in place and becomes part of the constructed object. It is not cloned.
431
+ * If no data is provided, the constructed object will be empty, but still
432
+ * valid.
433
+ * @extends {jspb.Message}
434
+ * @constructor
435
+ */
436
+ proto.bonus.UserBonusItemsResponse = function(opt_data) {
437
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.bonus.UserBonusItemsResponse.repeatedFields_, null);
438
+ };
439
+ goog.inherits(proto.bonus.UserBonusItemsResponse, jspb.Message);
440
+ if (goog.DEBUG && !COMPILED) {
441
+ /**
442
+ * @public
443
+ * @override
444
+ */
445
+ proto.bonus.UserBonusItemsResponse.displayName = 'proto.bonus.UserBonusItemsResponse';
446
+ }
359
447
  /**
360
448
  * Generated by JsPbCodeGenerator.
361
449
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -1047,7 +1135,8 @@ proto.bonus.PaginationRequest.prototype.toObject = function(opt_includeInstance)
1047
1135
  proto.bonus.PaginationRequest.toObject = function(includeInstance, msg) {
1048
1136
  var f, obj = {
1049
1137
  limit: jspb.Message.getFieldWithDefault(msg, 1, 0),
1050
- offset: jspb.Message.getFieldWithDefault(msg, 2, 0)
1138
+ offset: jspb.Message.getFieldWithDefault(msg, 2, 0),
1139
+ userBonusParams: (f = msg.getUserBonusParams()) && proto.bonus.GetUserBonusRequest.toObject(includeInstance, f)
1051
1140
  };
1052
1141
 
1053
1142
  if (includeInstance) {
@@ -1092,6 +1181,11 @@ proto.bonus.PaginationRequest.deserializeBinaryFromReader = function(msg, reader
1092
1181
  var value = /** @type {number} */ (reader.readInt32());
1093
1182
  msg.setOffset(value);
1094
1183
  break;
1184
+ case 3:
1185
+ var value = new proto.bonus.GetUserBonusRequest;
1186
+ reader.readMessage(value,proto.bonus.GetUserBonusRequest.deserializeBinaryFromReader);
1187
+ msg.setUserBonusParams(value);
1188
+ break;
1095
1189
  default:
1096
1190
  reader.skipField();
1097
1191
  break;
@@ -1135,6 +1229,14 @@ proto.bonus.PaginationRequest.serializeBinaryToWriter = function(message, writer
1135
1229
  f
1136
1230
  );
1137
1231
  }
1232
+ f = message.getUserBonusParams();
1233
+ if (f != null) {
1234
+ writer.writeMessage(
1235
+ 3,
1236
+ f,
1237
+ proto.bonus.GetUserBonusRequest.serializeBinaryToWriter
1238
+ );
1239
+ }
1138
1240
  };
1139
1241
 
1140
1242
 
@@ -1174,6 +1276,43 @@ proto.bonus.PaginationRequest.prototype.setOffset = function(value) {
1174
1276
  };
1175
1277
 
1176
1278
 
1279
+ /**
1280
+ * optional GetUserBonusRequest user_bonus_params = 3;
1281
+ * @return {?proto.bonus.GetUserBonusRequest}
1282
+ */
1283
+ proto.bonus.PaginationRequest.prototype.getUserBonusParams = function() {
1284
+ return /** @type{?proto.bonus.GetUserBonusRequest} */ (
1285
+ jspb.Message.getWrapperField(this, proto.bonus.GetUserBonusRequest, 3));
1286
+ };
1287
+
1288
+
1289
+ /**
1290
+ * @param {?proto.bonus.GetUserBonusRequest|undefined} value
1291
+ * @return {!proto.bonus.PaginationRequest} returns this
1292
+ */
1293
+ proto.bonus.PaginationRequest.prototype.setUserBonusParams = function(value) {
1294
+ return jspb.Message.setWrapperField(this, 3, value);
1295
+ };
1296
+
1297
+
1298
+ /**
1299
+ * Clears the message field making it undefined.
1300
+ * @return {!proto.bonus.PaginationRequest} returns this
1301
+ */
1302
+ proto.bonus.PaginationRequest.prototype.clearUserBonusParams = function() {
1303
+ return this.setUserBonusParams(undefined);
1304
+ };
1305
+
1306
+
1307
+ /**
1308
+ * Returns whether this field is set.
1309
+ * @return {boolean}
1310
+ */
1311
+ proto.bonus.PaginationRequest.prototype.hasUserBonusParams = function() {
1312
+ return jspb.Message.getField(this, 3) != null;
1313
+ };
1314
+
1315
+
1177
1316
 
1178
1317
  /**
1179
1318
  * Oneof group definitions for this message. Each group defines the field
@@ -3473,7 +3612,7 @@ proto.bonus.BonusResponse.prototype.hasData = function() {
3473
3612
  * @private {!Array<number>}
3474
3613
  * @const
3475
3614
  */
3476
- proto.bonus.BonusItem.repeatedFields_ = [19,20];
3615
+ proto.bonus.BonusItem.repeatedFields_ = [19,20,21];
3477
3616
 
3478
3617
 
3479
3618
 
@@ -3527,7 +3666,9 @@ proto.bonus.BonusItem.toObject = function(includeInstance, msg) {
3527
3666
  activationRulesList: jspb.Message.toObjectList(msg.getActivationRulesList(),
3528
3667
  proto.bonus.ActivationRule.toObject, includeInstance),
3529
3668
  rewardsList: jspb.Message.toObjectList(msg.getRewardsList(),
3530
- proto.bonus.BonusReward.toObject, includeInstance)
3669
+ proto.bonus.BonusReward.toObject, includeInstance),
3670
+ betsRangeList: jspb.Message.toObjectList(msg.getBetsRangeList(),
3671
+ proto.bonus.BetsRange.toObject, includeInstance)
3531
3672
  };
3532
3673
 
3533
3674
  if (includeInstance) {
@@ -3646,6 +3787,11 @@ proto.bonus.BonusItem.deserializeBinaryFromReader = function(msg, reader) {
3646
3787
  reader.readMessage(value,proto.bonus.BonusReward.deserializeBinaryFromReader);
3647
3788
  msg.addRewards(value);
3648
3789
  break;
3790
+ case 21:
3791
+ var value = new proto.bonus.BetsRange;
3792
+ reader.readMessage(value,proto.bonus.BetsRange.deserializeBinaryFromReader);
3793
+ msg.addBetsRange(value);
3794
+ break;
3649
3795
  default:
3650
3796
  reader.skipField();
3651
3797
  break;
@@ -3817,6 +3963,14 @@ proto.bonus.BonusItem.serializeBinaryToWriter = function(message, writer) {
3817
3963
  proto.bonus.BonusReward.serializeBinaryToWriter
3818
3964
  );
3819
3965
  }
3966
+ f = message.getBetsRangeList();
3967
+ if (f.length > 0) {
3968
+ writer.writeRepeatedMessage(
3969
+ 21,
3970
+ f,
3971
+ proto.bonus.BetsRange.serializeBinaryToWriter
3972
+ );
3973
+ }
3820
3974
  };
3821
3975
 
3822
3976
 
@@ -4544,6 +4698,44 @@ proto.bonus.BonusItem.prototype.clearRewardsList = function() {
4544
4698
  };
4545
4699
 
4546
4700
 
4701
+ /**
4702
+ * repeated BetsRange bets_range = 21;
4703
+ * @return {!Array<!proto.bonus.BetsRange>}
4704
+ */
4705
+ proto.bonus.BonusItem.prototype.getBetsRangeList = function() {
4706
+ return /** @type{!Array<!proto.bonus.BetsRange>} */ (
4707
+ jspb.Message.getRepeatedWrapperField(this, proto.bonus.BetsRange, 21));
4708
+ };
4709
+
4710
+
4711
+ /**
4712
+ * @param {!Array<!proto.bonus.BetsRange>} value
4713
+ * @return {!proto.bonus.BonusItem} returns this
4714
+ */
4715
+ proto.bonus.BonusItem.prototype.setBetsRangeList = function(value) {
4716
+ return jspb.Message.setRepeatedWrapperField(this, 21, value);
4717
+ };
4718
+
4719
+
4720
+ /**
4721
+ * @param {!proto.bonus.BetsRange=} opt_value
4722
+ * @param {number=} opt_index
4723
+ * @return {!proto.bonus.BetsRange}
4724
+ */
4725
+ proto.bonus.BonusItem.prototype.addBetsRange = function(opt_value, opt_index) {
4726
+ return jspb.Message.addToRepeatedWrapperField(this, 21, opt_value, proto.bonus.BetsRange, opt_index);
4727
+ };
4728
+
4729
+
4730
+ /**
4731
+ * Clears the list making it empty but non-null.
4732
+ * @return {!proto.bonus.BonusItem} returns this
4733
+ */
4734
+ proto.bonus.BonusItem.prototype.clearBetsRangeList = function() {
4735
+ return this.setBetsRangeList([]);
4736
+ };
4737
+
4738
+
4547
4739
 
4548
4740
  /**
4549
4741
  * List of repeated fields within this message type.
@@ -4931,6 +5123,2281 @@ proto.bonus.BonusStatusResponse.prototype.setStatus = function(value) {
4931
5123
 
4932
5124
 
4933
5125
 
5126
+ /**
5127
+ * List of repeated fields within this message type.
5128
+ * @private {!Array<number>}
5129
+ * @const
5130
+ */
5131
+ proto.bonus.UserBonusItem.repeatedFields_ = [4];
5132
+
5133
+
5134
+
5135
+ if (jspb.Message.GENERATE_TO_OBJECT) {
5136
+ /**
5137
+ * Creates an object representation of this proto.
5138
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
5139
+ * Optional fields that are not set will be set to undefined.
5140
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
5141
+ * For the list of reserved names please see:
5142
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
5143
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
5144
+ * JSPB instance for transitional soy proto support:
5145
+ * http://goto/soy-param-migration
5146
+ * @return {!Object}
5147
+ */
5148
+ proto.bonus.UserBonusItem.prototype.toObject = function(opt_includeInstance) {
5149
+ return proto.bonus.UserBonusItem.toObject(opt_includeInstance, this);
5150
+ };
5151
+
5152
+
5153
+ /**
5154
+ * Static version of the {@see toObject} method.
5155
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
5156
+ * the JSPB instance for transitional soy proto support:
5157
+ * http://goto/soy-param-migration
5158
+ * @param {!proto.bonus.UserBonusItem} msg The msg instance to transform.
5159
+ * @return {!Object}
5160
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5161
+ */
5162
+ proto.bonus.UserBonusItem.toObject = function(includeInstance, msg) {
5163
+ var f, obj = {
5164
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
5165
+ userId: jspb.Message.getFieldWithDefault(msg, 2, 0),
5166
+ bonus: (f = msg.getBonus()) && proto.bonus.BonusItem.toObject(includeInstance, f),
5167
+ freeSpinList: jspb.Message.toObjectList(msg.getFreeSpinList(),
5168
+ proto.bonus.FreeSpinItem.toObject, includeInstance),
5169
+ depositId: jspb.Message.getFieldWithDefault(msg, 5, 0),
5170
+ realBalanceReward: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0),
5171
+ bonusBalanceReward: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0),
5172
+ coinsReward: jspb.Message.getFloatingPointFieldWithDefault(msg, 8, 0.0),
5173
+ loyaltyReward: jspb.Message.getFloatingPointFieldWithDefault(msg, 9, 0.0),
5174
+ rankingReward: jspb.Message.getFloatingPointFieldWithDefault(msg, 10, 0.0),
5175
+ totalWagerAmount: jspb.Message.getFloatingPointFieldWithDefault(msg, 11, 0.0),
5176
+ currentWagerAmount: jspb.Message.getFloatingPointFieldWithDefault(msg, 12, 0.0),
5177
+ status: jspb.Message.getFieldWithDefault(msg, 13, ""),
5178
+ expiredAt: jspb.Message.getFieldWithDefault(msg, 14, ""),
5179
+ claimedAt: jspb.Message.getFieldWithDefault(msg, 15, ""),
5180
+ activatedAt: jspb.Message.getFieldWithDefault(msg, 16, ""),
5181
+ completedAt: jspb.Message.getFieldWithDefault(msg, 17, ""),
5182
+ canceledAt: jspb.Message.getFieldWithDefault(msg, 18, "")
5183
+ };
5184
+
5185
+ if (includeInstance) {
5186
+ obj.$jspbMessageInstance = msg;
5187
+ }
5188
+ return obj;
5189
+ };
5190
+ }
5191
+
5192
+
5193
+ /**
5194
+ * Deserializes binary data (in protobuf wire format).
5195
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
5196
+ * @return {!proto.bonus.UserBonusItem}
5197
+ */
5198
+ proto.bonus.UserBonusItem.deserializeBinary = function(bytes) {
5199
+ var reader = new jspb.BinaryReader(bytes);
5200
+ var msg = new proto.bonus.UserBonusItem;
5201
+ return proto.bonus.UserBonusItem.deserializeBinaryFromReader(msg, reader);
5202
+ };
5203
+
5204
+
5205
+ /**
5206
+ * Deserializes binary data (in protobuf wire format) from the
5207
+ * given reader into the given message object.
5208
+ * @param {!proto.bonus.UserBonusItem} msg The message object to deserialize into.
5209
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
5210
+ * @return {!proto.bonus.UserBonusItem}
5211
+ */
5212
+ proto.bonus.UserBonusItem.deserializeBinaryFromReader = function(msg, reader) {
5213
+ while (reader.nextField()) {
5214
+ if (reader.isEndGroup()) {
5215
+ break;
5216
+ }
5217
+ var field = reader.getFieldNumber();
5218
+ switch (field) {
5219
+ case 1:
5220
+ var value = /** @type {number} */ (reader.readInt32());
5221
+ msg.setId(value);
5222
+ break;
5223
+ case 2:
5224
+ var value = /** @type {number} */ (reader.readInt32());
5225
+ msg.setUserId(value);
5226
+ break;
5227
+ case 3:
5228
+ var value = new proto.bonus.BonusItem;
5229
+ reader.readMessage(value,proto.bonus.BonusItem.deserializeBinaryFromReader);
5230
+ msg.setBonus(value);
5231
+ break;
5232
+ case 4:
5233
+ var value = new proto.bonus.FreeSpinItem;
5234
+ reader.readMessage(value,proto.bonus.FreeSpinItem.deserializeBinaryFromReader);
5235
+ msg.addFreeSpin(value);
5236
+ break;
5237
+ case 5:
5238
+ var value = /** @type {number} */ (reader.readInt32());
5239
+ msg.setDepositId(value);
5240
+ break;
5241
+ case 6:
5242
+ var value = /** @type {number} */ (reader.readFloat());
5243
+ msg.setRealBalanceReward(value);
5244
+ break;
5245
+ case 7:
5246
+ var value = /** @type {number} */ (reader.readFloat());
5247
+ msg.setBonusBalanceReward(value);
5248
+ break;
5249
+ case 8:
5250
+ var value = /** @type {number} */ (reader.readFloat());
5251
+ msg.setCoinsReward(value);
5252
+ break;
5253
+ case 9:
5254
+ var value = /** @type {number} */ (reader.readFloat());
5255
+ msg.setLoyaltyReward(value);
5256
+ break;
5257
+ case 10:
5258
+ var value = /** @type {number} */ (reader.readFloat());
5259
+ msg.setRankingReward(value);
5260
+ break;
5261
+ case 11:
5262
+ var value = /** @type {number} */ (reader.readFloat());
5263
+ msg.setTotalWagerAmount(value);
5264
+ break;
5265
+ case 12:
5266
+ var value = /** @type {number} */ (reader.readFloat());
5267
+ msg.setCurrentWagerAmount(value);
5268
+ break;
5269
+ case 13:
5270
+ var value = /** @type {string} */ (reader.readString());
5271
+ msg.setStatus(value);
5272
+ break;
5273
+ case 14:
5274
+ var value = /** @type {string} */ (reader.readString());
5275
+ msg.setExpiredAt(value);
5276
+ break;
5277
+ case 15:
5278
+ var value = /** @type {string} */ (reader.readString());
5279
+ msg.setClaimedAt(value);
5280
+ break;
5281
+ case 16:
5282
+ var value = /** @type {string} */ (reader.readString());
5283
+ msg.setActivatedAt(value);
5284
+ break;
5285
+ case 17:
5286
+ var value = /** @type {string} */ (reader.readString());
5287
+ msg.setCompletedAt(value);
5288
+ break;
5289
+ case 18:
5290
+ var value = /** @type {string} */ (reader.readString());
5291
+ msg.setCanceledAt(value);
5292
+ break;
5293
+ default:
5294
+ reader.skipField();
5295
+ break;
5296
+ }
5297
+ }
5298
+ return msg;
5299
+ };
5300
+
5301
+
5302
+ /**
5303
+ * Serializes the message to binary data (in protobuf wire format).
5304
+ * @return {!Uint8Array}
5305
+ */
5306
+ proto.bonus.UserBonusItem.prototype.serializeBinary = function() {
5307
+ var writer = new jspb.BinaryWriter();
5308
+ proto.bonus.UserBonusItem.serializeBinaryToWriter(this, writer);
5309
+ return writer.getResultBuffer();
5310
+ };
5311
+
5312
+
5313
+ /**
5314
+ * Serializes the given message to binary data (in protobuf wire
5315
+ * format), writing to the given BinaryWriter.
5316
+ * @param {!proto.bonus.UserBonusItem} message
5317
+ * @param {!jspb.BinaryWriter} writer
5318
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5319
+ */
5320
+ proto.bonus.UserBonusItem.serializeBinaryToWriter = function(message, writer) {
5321
+ var f = undefined;
5322
+ f = /** @type {number} */ (jspb.Message.getField(message, 1));
5323
+ if (f != null) {
5324
+ writer.writeInt32(
5325
+ 1,
5326
+ f
5327
+ );
5328
+ }
5329
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
5330
+ if (f != null) {
5331
+ writer.writeInt32(
5332
+ 2,
5333
+ f
5334
+ );
5335
+ }
5336
+ f = message.getBonus();
5337
+ if (f != null) {
5338
+ writer.writeMessage(
5339
+ 3,
5340
+ f,
5341
+ proto.bonus.BonusItem.serializeBinaryToWriter
5342
+ );
5343
+ }
5344
+ f = message.getFreeSpinList();
5345
+ if (f.length > 0) {
5346
+ writer.writeRepeatedMessage(
5347
+ 4,
5348
+ f,
5349
+ proto.bonus.FreeSpinItem.serializeBinaryToWriter
5350
+ );
5351
+ }
5352
+ f = /** @type {number} */ (jspb.Message.getField(message, 5));
5353
+ if (f != null) {
5354
+ writer.writeInt32(
5355
+ 5,
5356
+ f
5357
+ );
5358
+ }
5359
+ f = /** @type {number} */ (jspb.Message.getField(message, 6));
5360
+ if (f != null) {
5361
+ writer.writeFloat(
5362
+ 6,
5363
+ f
5364
+ );
5365
+ }
5366
+ f = /** @type {number} */ (jspb.Message.getField(message, 7));
5367
+ if (f != null) {
5368
+ writer.writeFloat(
5369
+ 7,
5370
+ f
5371
+ );
5372
+ }
5373
+ f = /** @type {number} */ (jspb.Message.getField(message, 8));
5374
+ if (f != null) {
5375
+ writer.writeFloat(
5376
+ 8,
5377
+ f
5378
+ );
5379
+ }
5380
+ f = /** @type {number} */ (jspb.Message.getField(message, 9));
5381
+ if (f != null) {
5382
+ writer.writeFloat(
5383
+ 9,
5384
+ f
5385
+ );
5386
+ }
5387
+ f = /** @type {number} */ (jspb.Message.getField(message, 10));
5388
+ if (f != null) {
5389
+ writer.writeFloat(
5390
+ 10,
5391
+ f
5392
+ );
5393
+ }
5394
+ f = /** @type {number} */ (jspb.Message.getField(message, 11));
5395
+ if (f != null) {
5396
+ writer.writeFloat(
5397
+ 11,
5398
+ f
5399
+ );
5400
+ }
5401
+ f = /** @type {number} */ (jspb.Message.getField(message, 12));
5402
+ if (f != null) {
5403
+ writer.writeFloat(
5404
+ 12,
5405
+ f
5406
+ );
5407
+ }
5408
+ f = /** @type {string} */ (jspb.Message.getField(message, 13));
5409
+ if (f != null) {
5410
+ writer.writeString(
5411
+ 13,
5412
+ f
5413
+ );
5414
+ }
5415
+ f = /** @type {string} */ (jspb.Message.getField(message, 14));
5416
+ if (f != null) {
5417
+ writer.writeString(
5418
+ 14,
5419
+ f
5420
+ );
5421
+ }
5422
+ f = /** @type {string} */ (jspb.Message.getField(message, 15));
5423
+ if (f != null) {
5424
+ writer.writeString(
5425
+ 15,
5426
+ f
5427
+ );
5428
+ }
5429
+ f = /** @type {string} */ (jspb.Message.getField(message, 16));
5430
+ if (f != null) {
5431
+ writer.writeString(
5432
+ 16,
5433
+ f
5434
+ );
5435
+ }
5436
+ f = /** @type {string} */ (jspb.Message.getField(message, 17));
5437
+ if (f != null) {
5438
+ writer.writeString(
5439
+ 17,
5440
+ f
5441
+ );
5442
+ }
5443
+ f = /** @type {string} */ (jspb.Message.getField(message, 18));
5444
+ if (f != null) {
5445
+ writer.writeString(
5446
+ 18,
5447
+ f
5448
+ );
5449
+ }
5450
+ };
5451
+
5452
+
5453
+ /**
5454
+ * optional int32 id = 1;
5455
+ * @return {number}
5456
+ */
5457
+ proto.bonus.UserBonusItem.prototype.getId = function() {
5458
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
5459
+ };
5460
+
5461
+
5462
+ /**
5463
+ * @param {number} value
5464
+ * @return {!proto.bonus.UserBonusItem} returns this
5465
+ */
5466
+ proto.bonus.UserBonusItem.prototype.setId = function(value) {
5467
+ return jspb.Message.setField(this, 1, value);
5468
+ };
5469
+
5470
+
5471
+ /**
5472
+ * Clears the field making it undefined.
5473
+ * @return {!proto.bonus.UserBonusItem} returns this
5474
+ */
5475
+ proto.bonus.UserBonusItem.prototype.clearId = function() {
5476
+ return jspb.Message.setField(this, 1, undefined);
5477
+ };
5478
+
5479
+
5480
+ /**
5481
+ * Returns whether this field is set.
5482
+ * @return {boolean}
5483
+ */
5484
+ proto.bonus.UserBonusItem.prototype.hasId = function() {
5485
+ return jspb.Message.getField(this, 1) != null;
5486
+ };
5487
+
5488
+
5489
+ /**
5490
+ * optional int32 user_id = 2;
5491
+ * @return {number}
5492
+ */
5493
+ proto.bonus.UserBonusItem.prototype.getUserId = function() {
5494
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
5495
+ };
5496
+
5497
+
5498
+ /**
5499
+ * @param {number} value
5500
+ * @return {!proto.bonus.UserBonusItem} returns this
5501
+ */
5502
+ proto.bonus.UserBonusItem.prototype.setUserId = function(value) {
5503
+ return jspb.Message.setField(this, 2, value);
5504
+ };
5505
+
5506
+
5507
+ /**
5508
+ * Clears the field making it undefined.
5509
+ * @return {!proto.bonus.UserBonusItem} returns this
5510
+ */
5511
+ proto.bonus.UserBonusItem.prototype.clearUserId = function() {
5512
+ return jspb.Message.setField(this, 2, undefined);
5513
+ };
5514
+
5515
+
5516
+ /**
5517
+ * Returns whether this field is set.
5518
+ * @return {boolean}
5519
+ */
5520
+ proto.bonus.UserBonusItem.prototype.hasUserId = function() {
5521
+ return jspb.Message.getField(this, 2) != null;
5522
+ };
5523
+
5524
+
5525
+ /**
5526
+ * optional BonusItem bonus = 3;
5527
+ * @return {?proto.bonus.BonusItem}
5528
+ */
5529
+ proto.bonus.UserBonusItem.prototype.getBonus = function() {
5530
+ return /** @type{?proto.bonus.BonusItem} */ (
5531
+ jspb.Message.getWrapperField(this, proto.bonus.BonusItem, 3));
5532
+ };
5533
+
5534
+
5535
+ /**
5536
+ * @param {?proto.bonus.BonusItem|undefined} value
5537
+ * @return {!proto.bonus.UserBonusItem} returns this
5538
+ */
5539
+ proto.bonus.UserBonusItem.prototype.setBonus = function(value) {
5540
+ return jspb.Message.setWrapperField(this, 3, value);
5541
+ };
5542
+
5543
+
5544
+ /**
5545
+ * Clears the message field making it undefined.
5546
+ * @return {!proto.bonus.UserBonusItem} returns this
5547
+ */
5548
+ proto.bonus.UserBonusItem.prototype.clearBonus = function() {
5549
+ return this.setBonus(undefined);
5550
+ };
5551
+
5552
+
5553
+ /**
5554
+ * Returns whether this field is set.
5555
+ * @return {boolean}
5556
+ */
5557
+ proto.bonus.UserBonusItem.prototype.hasBonus = function() {
5558
+ return jspb.Message.getField(this, 3) != null;
5559
+ };
5560
+
5561
+
5562
+ /**
5563
+ * repeated FreeSpinItem free_spin = 4;
5564
+ * @return {!Array<!proto.bonus.FreeSpinItem>}
5565
+ */
5566
+ proto.bonus.UserBonusItem.prototype.getFreeSpinList = function() {
5567
+ return /** @type{!Array<!proto.bonus.FreeSpinItem>} */ (
5568
+ jspb.Message.getRepeatedWrapperField(this, proto.bonus.FreeSpinItem, 4));
5569
+ };
5570
+
5571
+
5572
+ /**
5573
+ * @param {!Array<!proto.bonus.FreeSpinItem>} value
5574
+ * @return {!proto.bonus.UserBonusItem} returns this
5575
+ */
5576
+ proto.bonus.UserBonusItem.prototype.setFreeSpinList = function(value) {
5577
+ return jspb.Message.setRepeatedWrapperField(this, 4, value);
5578
+ };
5579
+
5580
+
5581
+ /**
5582
+ * @param {!proto.bonus.FreeSpinItem=} opt_value
5583
+ * @param {number=} opt_index
5584
+ * @return {!proto.bonus.FreeSpinItem}
5585
+ */
5586
+ proto.bonus.UserBonusItem.prototype.addFreeSpin = function(opt_value, opt_index) {
5587
+ return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.bonus.FreeSpinItem, opt_index);
5588
+ };
5589
+
5590
+
5591
+ /**
5592
+ * Clears the list making it empty but non-null.
5593
+ * @return {!proto.bonus.UserBonusItem} returns this
5594
+ */
5595
+ proto.bonus.UserBonusItem.prototype.clearFreeSpinList = function() {
5596
+ return this.setFreeSpinList([]);
5597
+ };
5598
+
5599
+
5600
+ /**
5601
+ * optional int32 deposit_id = 5;
5602
+ * @return {number}
5603
+ */
5604
+ proto.bonus.UserBonusItem.prototype.getDepositId = function() {
5605
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
5606
+ };
5607
+
5608
+
5609
+ /**
5610
+ * @param {number} value
5611
+ * @return {!proto.bonus.UserBonusItem} returns this
5612
+ */
5613
+ proto.bonus.UserBonusItem.prototype.setDepositId = function(value) {
5614
+ return jspb.Message.setField(this, 5, value);
5615
+ };
5616
+
5617
+
5618
+ /**
5619
+ * Clears the field making it undefined.
5620
+ * @return {!proto.bonus.UserBonusItem} returns this
5621
+ */
5622
+ proto.bonus.UserBonusItem.prototype.clearDepositId = function() {
5623
+ return jspb.Message.setField(this, 5, undefined);
5624
+ };
5625
+
5626
+
5627
+ /**
5628
+ * Returns whether this field is set.
5629
+ * @return {boolean}
5630
+ */
5631
+ proto.bonus.UserBonusItem.prototype.hasDepositId = function() {
5632
+ return jspb.Message.getField(this, 5) != null;
5633
+ };
5634
+
5635
+
5636
+ /**
5637
+ * optional float real_balance_reward = 6;
5638
+ * @return {number}
5639
+ */
5640
+ proto.bonus.UserBonusItem.prototype.getRealBalanceReward = function() {
5641
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0));
5642
+ };
5643
+
5644
+
5645
+ /**
5646
+ * @param {number} value
5647
+ * @return {!proto.bonus.UserBonusItem} returns this
5648
+ */
5649
+ proto.bonus.UserBonusItem.prototype.setRealBalanceReward = function(value) {
5650
+ return jspb.Message.setField(this, 6, value);
5651
+ };
5652
+
5653
+
5654
+ /**
5655
+ * Clears the field making it undefined.
5656
+ * @return {!proto.bonus.UserBonusItem} returns this
5657
+ */
5658
+ proto.bonus.UserBonusItem.prototype.clearRealBalanceReward = function() {
5659
+ return jspb.Message.setField(this, 6, undefined);
5660
+ };
5661
+
5662
+
5663
+ /**
5664
+ * Returns whether this field is set.
5665
+ * @return {boolean}
5666
+ */
5667
+ proto.bonus.UserBonusItem.prototype.hasRealBalanceReward = function() {
5668
+ return jspb.Message.getField(this, 6) != null;
5669
+ };
5670
+
5671
+
5672
+ /**
5673
+ * optional float bonus_balance_reward = 7;
5674
+ * @return {number}
5675
+ */
5676
+ proto.bonus.UserBonusItem.prototype.getBonusBalanceReward = function() {
5677
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 7, 0.0));
5678
+ };
5679
+
5680
+
5681
+ /**
5682
+ * @param {number} value
5683
+ * @return {!proto.bonus.UserBonusItem} returns this
5684
+ */
5685
+ proto.bonus.UserBonusItem.prototype.setBonusBalanceReward = function(value) {
5686
+ return jspb.Message.setField(this, 7, value);
5687
+ };
5688
+
5689
+
5690
+ /**
5691
+ * Clears the field making it undefined.
5692
+ * @return {!proto.bonus.UserBonusItem} returns this
5693
+ */
5694
+ proto.bonus.UserBonusItem.prototype.clearBonusBalanceReward = function() {
5695
+ return jspb.Message.setField(this, 7, undefined);
5696
+ };
5697
+
5698
+
5699
+ /**
5700
+ * Returns whether this field is set.
5701
+ * @return {boolean}
5702
+ */
5703
+ proto.bonus.UserBonusItem.prototype.hasBonusBalanceReward = function() {
5704
+ return jspb.Message.getField(this, 7) != null;
5705
+ };
5706
+
5707
+
5708
+ /**
5709
+ * optional float coins_reward = 8;
5710
+ * @return {number}
5711
+ */
5712
+ proto.bonus.UserBonusItem.prototype.getCoinsReward = function() {
5713
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 8, 0.0));
5714
+ };
5715
+
5716
+
5717
+ /**
5718
+ * @param {number} value
5719
+ * @return {!proto.bonus.UserBonusItem} returns this
5720
+ */
5721
+ proto.bonus.UserBonusItem.prototype.setCoinsReward = function(value) {
5722
+ return jspb.Message.setField(this, 8, value);
5723
+ };
5724
+
5725
+
5726
+ /**
5727
+ * Clears the field making it undefined.
5728
+ * @return {!proto.bonus.UserBonusItem} returns this
5729
+ */
5730
+ proto.bonus.UserBonusItem.prototype.clearCoinsReward = function() {
5731
+ return jspb.Message.setField(this, 8, undefined);
5732
+ };
5733
+
5734
+
5735
+ /**
5736
+ * Returns whether this field is set.
5737
+ * @return {boolean}
5738
+ */
5739
+ proto.bonus.UserBonusItem.prototype.hasCoinsReward = function() {
5740
+ return jspb.Message.getField(this, 8) != null;
5741
+ };
5742
+
5743
+
5744
+ /**
5745
+ * optional float loyalty_reward = 9;
5746
+ * @return {number}
5747
+ */
5748
+ proto.bonus.UserBonusItem.prototype.getLoyaltyReward = function() {
5749
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 9, 0.0));
5750
+ };
5751
+
5752
+
5753
+ /**
5754
+ * @param {number} value
5755
+ * @return {!proto.bonus.UserBonusItem} returns this
5756
+ */
5757
+ proto.bonus.UserBonusItem.prototype.setLoyaltyReward = function(value) {
5758
+ return jspb.Message.setField(this, 9, value);
5759
+ };
5760
+
5761
+
5762
+ /**
5763
+ * Clears the field making it undefined.
5764
+ * @return {!proto.bonus.UserBonusItem} returns this
5765
+ */
5766
+ proto.bonus.UserBonusItem.prototype.clearLoyaltyReward = function() {
5767
+ return jspb.Message.setField(this, 9, undefined);
5768
+ };
5769
+
5770
+
5771
+ /**
5772
+ * Returns whether this field is set.
5773
+ * @return {boolean}
5774
+ */
5775
+ proto.bonus.UserBonusItem.prototype.hasLoyaltyReward = function() {
5776
+ return jspb.Message.getField(this, 9) != null;
5777
+ };
5778
+
5779
+
5780
+ /**
5781
+ * optional float ranking_reward = 10;
5782
+ * @return {number}
5783
+ */
5784
+ proto.bonus.UserBonusItem.prototype.getRankingReward = function() {
5785
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 10, 0.0));
5786
+ };
5787
+
5788
+
5789
+ /**
5790
+ * @param {number} value
5791
+ * @return {!proto.bonus.UserBonusItem} returns this
5792
+ */
5793
+ proto.bonus.UserBonusItem.prototype.setRankingReward = function(value) {
5794
+ return jspb.Message.setField(this, 10, value);
5795
+ };
5796
+
5797
+
5798
+ /**
5799
+ * Clears the field making it undefined.
5800
+ * @return {!proto.bonus.UserBonusItem} returns this
5801
+ */
5802
+ proto.bonus.UserBonusItem.prototype.clearRankingReward = function() {
5803
+ return jspb.Message.setField(this, 10, undefined);
5804
+ };
5805
+
5806
+
5807
+ /**
5808
+ * Returns whether this field is set.
5809
+ * @return {boolean}
5810
+ */
5811
+ proto.bonus.UserBonusItem.prototype.hasRankingReward = function() {
5812
+ return jspb.Message.getField(this, 10) != null;
5813
+ };
5814
+
5815
+
5816
+ /**
5817
+ * optional float total_wager_amount = 11;
5818
+ * @return {number}
5819
+ */
5820
+ proto.bonus.UserBonusItem.prototype.getTotalWagerAmount = function() {
5821
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 11, 0.0));
5822
+ };
5823
+
5824
+
5825
+ /**
5826
+ * @param {number} value
5827
+ * @return {!proto.bonus.UserBonusItem} returns this
5828
+ */
5829
+ proto.bonus.UserBonusItem.prototype.setTotalWagerAmount = function(value) {
5830
+ return jspb.Message.setField(this, 11, value);
5831
+ };
5832
+
5833
+
5834
+ /**
5835
+ * Clears the field making it undefined.
5836
+ * @return {!proto.bonus.UserBonusItem} returns this
5837
+ */
5838
+ proto.bonus.UserBonusItem.prototype.clearTotalWagerAmount = function() {
5839
+ return jspb.Message.setField(this, 11, undefined);
5840
+ };
5841
+
5842
+
5843
+ /**
5844
+ * Returns whether this field is set.
5845
+ * @return {boolean}
5846
+ */
5847
+ proto.bonus.UserBonusItem.prototype.hasTotalWagerAmount = function() {
5848
+ return jspb.Message.getField(this, 11) != null;
5849
+ };
5850
+
5851
+
5852
+ /**
5853
+ * optional float current_wager_amount = 12;
5854
+ * @return {number}
5855
+ */
5856
+ proto.bonus.UserBonusItem.prototype.getCurrentWagerAmount = function() {
5857
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 12, 0.0));
5858
+ };
5859
+
5860
+
5861
+ /**
5862
+ * @param {number} value
5863
+ * @return {!proto.bonus.UserBonusItem} returns this
5864
+ */
5865
+ proto.bonus.UserBonusItem.prototype.setCurrentWagerAmount = function(value) {
5866
+ return jspb.Message.setField(this, 12, value);
5867
+ };
5868
+
5869
+
5870
+ /**
5871
+ * Clears the field making it undefined.
5872
+ * @return {!proto.bonus.UserBonusItem} returns this
5873
+ */
5874
+ proto.bonus.UserBonusItem.prototype.clearCurrentWagerAmount = function() {
5875
+ return jspb.Message.setField(this, 12, undefined);
5876
+ };
5877
+
5878
+
5879
+ /**
5880
+ * Returns whether this field is set.
5881
+ * @return {boolean}
5882
+ */
5883
+ proto.bonus.UserBonusItem.prototype.hasCurrentWagerAmount = function() {
5884
+ return jspb.Message.getField(this, 12) != null;
5885
+ };
5886
+
5887
+
5888
+ /**
5889
+ * optional string status = 13;
5890
+ * @return {string}
5891
+ */
5892
+ proto.bonus.UserBonusItem.prototype.getStatus = function() {
5893
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
5894
+ };
5895
+
5896
+
5897
+ /**
5898
+ * @param {string} value
5899
+ * @return {!proto.bonus.UserBonusItem} returns this
5900
+ */
5901
+ proto.bonus.UserBonusItem.prototype.setStatus = function(value) {
5902
+ return jspb.Message.setField(this, 13, value);
5903
+ };
5904
+
5905
+
5906
+ /**
5907
+ * Clears the field making it undefined.
5908
+ * @return {!proto.bonus.UserBonusItem} returns this
5909
+ */
5910
+ proto.bonus.UserBonusItem.prototype.clearStatus = function() {
5911
+ return jspb.Message.setField(this, 13, undefined);
5912
+ };
5913
+
5914
+
5915
+ /**
5916
+ * Returns whether this field is set.
5917
+ * @return {boolean}
5918
+ */
5919
+ proto.bonus.UserBonusItem.prototype.hasStatus = function() {
5920
+ return jspb.Message.getField(this, 13) != null;
5921
+ };
5922
+
5923
+
5924
+ /**
5925
+ * optional string expired_at = 14;
5926
+ * @return {string}
5927
+ */
5928
+ proto.bonus.UserBonusItem.prototype.getExpiredAt = function() {
5929
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
5930
+ };
5931
+
5932
+
5933
+ /**
5934
+ * @param {string} value
5935
+ * @return {!proto.bonus.UserBonusItem} returns this
5936
+ */
5937
+ proto.bonus.UserBonusItem.prototype.setExpiredAt = function(value) {
5938
+ return jspb.Message.setField(this, 14, value);
5939
+ };
5940
+
5941
+
5942
+ /**
5943
+ * Clears the field making it undefined.
5944
+ * @return {!proto.bonus.UserBonusItem} returns this
5945
+ */
5946
+ proto.bonus.UserBonusItem.prototype.clearExpiredAt = function() {
5947
+ return jspb.Message.setField(this, 14, undefined);
5948
+ };
5949
+
5950
+
5951
+ /**
5952
+ * Returns whether this field is set.
5953
+ * @return {boolean}
5954
+ */
5955
+ proto.bonus.UserBonusItem.prototype.hasExpiredAt = function() {
5956
+ return jspb.Message.getField(this, 14) != null;
5957
+ };
5958
+
5959
+
5960
+ /**
5961
+ * optional string claimed_at = 15;
5962
+ * @return {string}
5963
+ */
5964
+ proto.bonus.UserBonusItem.prototype.getClaimedAt = function() {
5965
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
5966
+ };
5967
+
5968
+
5969
+ /**
5970
+ * @param {string} value
5971
+ * @return {!proto.bonus.UserBonusItem} returns this
5972
+ */
5973
+ proto.bonus.UserBonusItem.prototype.setClaimedAt = function(value) {
5974
+ return jspb.Message.setField(this, 15, value);
5975
+ };
5976
+
5977
+
5978
+ /**
5979
+ * Clears the field making it undefined.
5980
+ * @return {!proto.bonus.UserBonusItem} returns this
5981
+ */
5982
+ proto.bonus.UserBonusItem.prototype.clearClaimedAt = function() {
5983
+ return jspb.Message.setField(this, 15, undefined);
5984
+ };
5985
+
5986
+
5987
+ /**
5988
+ * Returns whether this field is set.
5989
+ * @return {boolean}
5990
+ */
5991
+ proto.bonus.UserBonusItem.prototype.hasClaimedAt = function() {
5992
+ return jspb.Message.getField(this, 15) != null;
5993
+ };
5994
+
5995
+
5996
+ /**
5997
+ * optional string activated_at = 16;
5998
+ * @return {string}
5999
+ */
6000
+ proto.bonus.UserBonusItem.prototype.getActivatedAt = function() {
6001
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, ""));
6002
+ };
6003
+
6004
+
6005
+ /**
6006
+ * @param {string} value
6007
+ * @return {!proto.bonus.UserBonusItem} returns this
6008
+ */
6009
+ proto.bonus.UserBonusItem.prototype.setActivatedAt = function(value) {
6010
+ return jspb.Message.setField(this, 16, value);
6011
+ };
6012
+
6013
+
6014
+ /**
6015
+ * Clears the field making it undefined.
6016
+ * @return {!proto.bonus.UserBonusItem} returns this
6017
+ */
6018
+ proto.bonus.UserBonusItem.prototype.clearActivatedAt = function() {
6019
+ return jspb.Message.setField(this, 16, undefined);
6020
+ };
6021
+
6022
+
6023
+ /**
6024
+ * Returns whether this field is set.
6025
+ * @return {boolean}
6026
+ */
6027
+ proto.bonus.UserBonusItem.prototype.hasActivatedAt = function() {
6028
+ return jspb.Message.getField(this, 16) != null;
6029
+ };
6030
+
6031
+
6032
+ /**
6033
+ * optional string completed_at = 17;
6034
+ * @return {string}
6035
+ */
6036
+ proto.bonus.UserBonusItem.prototype.getCompletedAt = function() {
6037
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, ""));
6038
+ };
6039
+
6040
+
6041
+ /**
6042
+ * @param {string} value
6043
+ * @return {!proto.bonus.UserBonusItem} returns this
6044
+ */
6045
+ proto.bonus.UserBonusItem.prototype.setCompletedAt = function(value) {
6046
+ return jspb.Message.setField(this, 17, value);
6047
+ };
6048
+
6049
+
6050
+ /**
6051
+ * Clears the field making it undefined.
6052
+ * @return {!proto.bonus.UserBonusItem} returns this
6053
+ */
6054
+ proto.bonus.UserBonusItem.prototype.clearCompletedAt = function() {
6055
+ return jspb.Message.setField(this, 17, undefined);
6056
+ };
6057
+
6058
+
6059
+ /**
6060
+ * Returns whether this field is set.
6061
+ * @return {boolean}
6062
+ */
6063
+ proto.bonus.UserBonusItem.prototype.hasCompletedAt = function() {
6064
+ return jspb.Message.getField(this, 17) != null;
6065
+ };
6066
+
6067
+
6068
+ /**
6069
+ * optional string canceled_at = 18;
6070
+ * @return {string}
6071
+ */
6072
+ proto.bonus.UserBonusItem.prototype.getCanceledAt = function() {
6073
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, ""));
6074
+ };
6075
+
6076
+
6077
+ /**
6078
+ * @param {string} value
6079
+ * @return {!proto.bonus.UserBonusItem} returns this
6080
+ */
6081
+ proto.bonus.UserBonusItem.prototype.setCanceledAt = function(value) {
6082
+ return jspb.Message.setField(this, 18, value);
6083
+ };
6084
+
6085
+
6086
+ /**
6087
+ * Clears the field making it undefined.
6088
+ * @return {!proto.bonus.UserBonusItem} returns this
6089
+ */
6090
+ proto.bonus.UserBonusItem.prototype.clearCanceledAt = function() {
6091
+ return jspb.Message.setField(this, 18, undefined);
6092
+ };
6093
+
6094
+
6095
+ /**
6096
+ * Returns whether this field is set.
6097
+ * @return {boolean}
6098
+ */
6099
+ proto.bonus.UserBonusItem.prototype.hasCanceledAt = function() {
6100
+ return jspb.Message.getField(this, 18) != null;
6101
+ };
6102
+
6103
+
6104
+
6105
+
6106
+
6107
+ if (jspb.Message.GENERATE_TO_OBJECT) {
6108
+ /**
6109
+ * Creates an object representation of this proto.
6110
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
6111
+ * Optional fields that are not set will be set to undefined.
6112
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
6113
+ * For the list of reserved names please see:
6114
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
6115
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
6116
+ * JSPB instance for transitional soy proto support:
6117
+ * http://goto/soy-param-migration
6118
+ * @return {!Object}
6119
+ */
6120
+ proto.bonus.FreeSpinItem.prototype.toObject = function(opt_includeInstance) {
6121
+ return proto.bonus.FreeSpinItem.toObject(opt_includeInstance, this);
6122
+ };
6123
+
6124
+
6125
+ /**
6126
+ * Static version of the {@see toObject} method.
6127
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
6128
+ * the JSPB instance for transitional soy proto support:
6129
+ * http://goto/soy-param-migration
6130
+ * @param {!proto.bonus.FreeSpinItem} msg The msg instance to transform.
6131
+ * @return {!Object}
6132
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6133
+ */
6134
+ proto.bonus.FreeSpinItem.toObject = function(includeInstance, msg) {
6135
+ var f, obj = {
6136
+ gameId: jspb.Message.getFieldWithDefault(msg, 1, 0),
6137
+ publicId: jspb.Message.getFieldWithDefault(msg, 2, ""),
6138
+ currency: jspb.Message.getFieldWithDefault(msg, 3, ""),
6139
+ quantity: jspb.Message.getFieldWithDefault(msg, 4, 0),
6140
+ quantityUsed: jspb.Message.getFieldWithDefault(msg, 5, 0),
6141
+ status: jspb.Message.getFieldWithDefault(msg, 6, ""),
6142
+ spinAmount: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0),
6143
+ expired: jspb.Message.getFieldWithDefault(msg, 8, ""),
6144
+ gameTitle: jspb.Message.getFieldWithDefault(msg, 9, ""),
6145
+ gameSlug: jspb.Message.getFieldWithDefault(msg, 10, ""),
6146
+ gameProviderTitle: jspb.Message.getFieldWithDefault(msg, 11, ""),
6147
+ gameProviderSlug: jspb.Message.getFieldWithDefault(msg, 12, "")
6148
+ };
6149
+
6150
+ if (includeInstance) {
6151
+ obj.$jspbMessageInstance = msg;
6152
+ }
6153
+ return obj;
6154
+ };
6155
+ }
6156
+
6157
+
6158
+ /**
6159
+ * Deserializes binary data (in protobuf wire format).
6160
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
6161
+ * @return {!proto.bonus.FreeSpinItem}
6162
+ */
6163
+ proto.bonus.FreeSpinItem.deserializeBinary = function(bytes) {
6164
+ var reader = new jspb.BinaryReader(bytes);
6165
+ var msg = new proto.bonus.FreeSpinItem;
6166
+ return proto.bonus.FreeSpinItem.deserializeBinaryFromReader(msg, reader);
6167
+ };
6168
+
6169
+
6170
+ /**
6171
+ * Deserializes binary data (in protobuf wire format) from the
6172
+ * given reader into the given message object.
6173
+ * @param {!proto.bonus.FreeSpinItem} msg The message object to deserialize into.
6174
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
6175
+ * @return {!proto.bonus.FreeSpinItem}
6176
+ */
6177
+ proto.bonus.FreeSpinItem.deserializeBinaryFromReader = function(msg, reader) {
6178
+ while (reader.nextField()) {
6179
+ if (reader.isEndGroup()) {
6180
+ break;
6181
+ }
6182
+ var field = reader.getFieldNumber();
6183
+ switch (field) {
6184
+ case 1:
6185
+ var value = /** @type {number} */ (reader.readInt32());
6186
+ msg.setGameId(value);
6187
+ break;
6188
+ case 2:
6189
+ var value = /** @type {string} */ (reader.readString());
6190
+ msg.setPublicId(value);
6191
+ break;
6192
+ case 3:
6193
+ var value = /** @type {string} */ (reader.readString());
6194
+ msg.setCurrency(value);
6195
+ break;
6196
+ case 4:
6197
+ var value = /** @type {number} */ (reader.readInt32());
6198
+ msg.setQuantity(value);
6199
+ break;
6200
+ case 5:
6201
+ var value = /** @type {number} */ (reader.readInt32());
6202
+ msg.setQuantityUsed(value);
6203
+ break;
6204
+ case 6:
6205
+ var value = /** @type {string} */ (reader.readString());
6206
+ msg.setStatus(value);
6207
+ break;
6208
+ case 7:
6209
+ var value = /** @type {number} */ (reader.readFloat());
6210
+ msg.setSpinAmount(value);
6211
+ break;
6212
+ case 8:
6213
+ var value = /** @type {string} */ (reader.readString());
6214
+ msg.setExpired(value);
6215
+ break;
6216
+ case 9:
6217
+ var value = /** @type {string} */ (reader.readString());
6218
+ msg.setGameTitle(value);
6219
+ break;
6220
+ case 10:
6221
+ var value = /** @type {string} */ (reader.readString());
6222
+ msg.setGameSlug(value);
6223
+ break;
6224
+ case 11:
6225
+ var value = /** @type {string} */ (reader.readString());
6226
+ msg.setGameProviderTitle(value);
6227
+ break;
6228
+ case 12:
6229
+ var value = /** @type {string} */ (reader.readString());
6230
+ msg.setGameProviderSlug(value);
6231
+ break;
6232
+ default:
6233
+ reader.skipField();
6234
+ break;
6235
+ }
6236
+ }
6237
+ return msg;
6238
+ };
6239
+
6240
+
6241
+ /**
6242
+ * Serializes the message to binary data (in protobuf wire format).
6243
+ * @return {!Uint8Array}
6244
+ */
6245
+ proto.bonus.FreeSpinItem.prototype.serializeBinary = function() {
6246
+ var writer = new jspb.BinaryWriter();
6247
+ proto.bonus.FreeSpinItem.serializeBinaryToWriter(this, writer);
6248
+ return writer.getResultBuffer();
6249
+ };
6250
+
6251
+
6252
+ /**
6253
+ * Serializes the given message to binary data (in protobuf wire
6254
+ * format), writing to the given BinaryWriter.
6255
+ * @param {!proto.bonus.FreeSpinItem} message
6256
+ * @param {!jspb.BinaryWriter} writer
6257
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6258
+ */
6259
+ proto.bonus.FreeSpinItem.serializeBinaryToWriter = function(message, writer) {
6260
+ var f = undefined;
6261
+ f = message.getGameId();
6262
+ if (f !== 0) {
6263
+ writer.writeInt32(
6264
+ 1,
6265
+ f
6266
+ );
6267
+ }
6268
+ f = message.getPublicId();
6269
+ if (f.length > 0) {
6270
+ writer.writeString(
6271
+ 2,
6272
+ f
6273
+ );
6274
+ }
6275
+ f = message.getCurrency();
6276
+ if (f.length > 0) {
6277
+ writer.writeString(
6278
+ 3,
6279
+ f
6280
+ );
6281
+ }
6282
+ f = /** @type {number} */ (jspb.Message.getField(message, 4));
6283
+ if (f != null) {
6284
+ writer.writeInt32(
6285
+ 4,
6286
+ f
6287
+ );
6288
+ }
6289
+ f = /** @type {number} */ (jspb.Message.getField(message, 5));
6290
+ if (f != null) {
6291
+ writer.writeInt32(
6292
+ 5,
6293
+ f
6294
+ );
6295
+ }
6296
+ f = /** @type {string} */ (jspb.Message.getField(message, 6));
6297
+ if (f != null) {
6298
+ writer.writeString(
6299
+ 6,
6300
+ f
6301
+ );
6302
+ }
6303
+ f = /** @type {number} */ (jspb.Message.getField(message, 7));
6304
+ if (f != null) {
6305
+ writer.writeFloat(
6306
+ 7,
6307
+ f
6308
+ );
6309
+ }
6310
+ f = /** @type {string} */ (jspb.Message.getField(message, 8));
6311
+ if (f != null) {
6312
+ writer.writeString(
6313
+ 8,
6314
+ f
6315
+ );
6316
+ }
6317
+ f = /** @type {string} */ (jspb.Message.getField(message, 9));
6318
+ if (f != null) {
6319
+ writer.writeString(
6320
+ 9,
6321
+ f
6322
+ );
6323
+ }
6324
+ f = /** @type {string} */ (jspb.Message.getField(message, 10));
6325
+ if (f != null) {
6326
+ writer.writeString(
6327
+ 10,
6328
+ f
6329
+ );
6330
+ }
6331
+ f = /** @type {string} */ (jspb.Message.getField(message, 11));
6332
+ if (f != null) {
6333
+ writer.writeString(
6334
+ 11,
6335
+ f
6336
+ );
6337
+ }
6338
+ f = /** @type {string} */ (jspb.Message.getField(message, 12));
6339
+ if (f != null) {
6340
+ writer.writeString(
6341
+ 12,
6342
+ f
6343
+ );
6344
+ }
6345
+ };
6346
+
6347
+
6348
+ /**
6349
+ * optional int32 game_id = 1;
6350
+ * @return {number}
6351
+ */
6352
+ proto.bonus.FreeSpinItem.prototype.getGameId = function() {
6353
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
6354
+ };
6355
+
6356
+
6357
+ /**
6358
+ * @param {number} value
6359
+ * @return {!proto.bonus.FreeSpinItem} returns this
6360
+ */
6361
+ proto.bonus.FreeSpinItem.prototype.setGameId = function(value) {
6362
+ return jspb.Message.setProto3IntField(this, 1, value);
6363
+ };
6364
+
6365
+
6366
+ /**
6367
+ * optional string public_id = 2;
6368
+ * @return {string}
6369
+ */
6370
+ proto.bonus.FreeSpinItem.prototype.getPublicId = function() {
6371
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
6372
+ };
6373
+
6374
+
6375
+ /**
6376
+ * @param {string} value
6377
+ * @return {!proto.bonus.FreeSpinItem} returns this
6378
+ */
6379
+ proto.bonus.FreeSpinItem.prototype.setPublicId = function(value) {
6380
+ return jspb.Message.setProto3StringField(this, 2, value);
6381
+ };
6382
+
6383
+
6384
+ /**
6385
+ * optional string currency = 3;
6386
+ * @return {string}
6387
+ */
6388
+ proto.bonus.FreeSpinItem.prototype.getCurrency = function() {
6389
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
6390
+ };
6391
+
6392
+
6393
+ /**
6394
+ * @param {string} value
6395
+ * @return {!proto.bonus.FreeSpinItem} returns this
6396
+ */
6397
+ proto.bonus.FreeSpinItem.prototype.setCurrency = function(value) {
6398
+ return jspb.Message.setProto3StringField(this, 3, value);
6399
+ };
6400
+
6401
+
6402
+ /**
6403
+ * optional int32 quantity = 4;
6404
+ * @return {number}
6405
+ */
6406
+ proto.bonus.FreeSpinItem.prototype.getQuantity = function() {
6407
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
6408
+ };
6409
+
6410
+
6411
+ /**
6412
+ * @param {number} value
6413
+ * @return {!proto.bonus.FreeSpinItem} returns this
6414
+ */
6415
+ proto.bonus.FreeSpinItem.prototype.setQuantity = function(value) {
6416
+ return jspb.Message.setField(this, 4, value);
6417
+ };
6418
+
6419
+
6420
+ /**
6421
+ * Clears the field making it undefined.
6422
+ * @return {!proto.bonus.FreeSpinItem} returns this
6423
+ */
6424
+ proto.bonus.FreeSpinItem.prototype.clearQuantity = function() {
6425
+ return jspb.Message.setField(this, 4, undefined);
6426
+ };
6427
+
6428
+
6429
+ /**
6430
+ * Returns whether this field is set.
6431
+ * @return {boolean}
6432
+ */
6433
+ proto.bonus.FreeSpinItem.prototype.hasQuantity = function() {
6434
+ return jspb.Message.getField(this, 4) != null;
6435
+ };
6436
+
6437
+
6438
+ /**
6439
+ * optional int32 quantity_used = 5;
6440
+ * @return {number}
6441
+ */
6442
+ proto.bonus.FreeSpinItem.prototype.getQuantityUsed = function() {
6443
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
6444
+ };
6445
+
6446
+
6447
+ /**
6448
+ * @param {number} value
6449
+ * @return {!proto.bonus.FreeSpinItem} returns this
6450
+ */
6451
+ proto.bonus.FreeSpinItem.prototype.setQuantityUsed = function(value) {
6452
+ return jspb.Message.setField(this, 5, value);
6453
+ };
6454
+
6455
+
6456
+ /**
6457
+ * Clears the field making it undefined.
6458
+ * @return {!proto.bonus.FreeSpinItem} returns this
6459
+ */
6460
+ proto.bonus.FreeSpinItem.prototype.clearQuantityUsed = function() {
6461
+ return jspb.Message.setField(this, 5, undefined);
6462
+ };
6463
+
6464
+
6465
+ /**
6466
+ * Returns whether this field is set.
6467
+ * @return {boolean}
6468
+ */
6469
+ proto.bonus.FreeSpinItem.prototype.hasQuantityUsed = function() {
6470
+ return jspb.Message.getField(this, 5) != null;
6471
+ };
6472
+
6473
+
6474
+ /**
6475
+ * optional string status = 6;
6476
+ * @return {string}
6477
+ */
6478
+ proto.bonus.FreeSpinItem.prototype.getStatus = function() {
6479
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
6480
+ };
6481
+
6482
+
6483
+ /**
6484
+ * @param {string} value
6485
+ * @return {!proto.bonus.FreeSpinItem} returns this
6486
+ */
6487
+ proto.bonus.FreeSpinItem.prototype.setStatus = function(value) {
6488
+ return jspb.Message.setField(this, 6, value);
6489
+ };
6490
+
6491
+
6492
+ /**
6493
+ * Clears the field making it undefined.
6494
+ * @return {!proto.bonus.FreeSpinItem} returns this
6495
+ */
6496
+ proto.bonus.FreeSpinItem.prototype.clearStatus = function() {
6497
+ return jspb.Message.setField(this, 6, undefined);
6498
+ };
6499
+
6500
+
6501
+ /**
6502
+ * Returns whether this field is set.
6503
+ * @return {boolean}
6504
+ */
6505
+ proto.bonus.FreeSpinItem.prototype.hasStatus = function() {
6506
+ return jspb.Message.getField(this, 6) != null;
6507
+ };
6508
+
6509
+
6510
+ /**
6511
+ * optional float spin_amount = 7;
6512
+ * @return {number}
6513
+ */
6514
+ proto.bonus.FreeSpinItem.prototype.getSpinAmount = function() {
6515
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 7, 0.0));
6516
+ };
6517
+
6518
+
6519
+ /**
6520
+ * @param {number} value
6521
+ * @return {!proto.bonus.FreeSpinItem} returns this
6522
+ */
6523
+ proto.bonus.FreeSpinItem.prototype.setSpinAmount = function(value) {
6524
+ return jspb.Message.setField(this, 7, value);
6525
+ };
6526
+
6527
+
6528
+ /**
6529
+ * Clears the field making it undefined.
6530
+ * @return {!proto.bonus.FreeSpinItem} returns this
6531
+ */
6532
+ proto.bonus.FreeSpinItem.prototype.clearSpinAmount = function() {
6533
+ return jspb.Message.setField(this, 7, undefined);
6534
+ };
6535
+
6536
+
6537
+ /**
6538
+ * Returns whether this field is set.
6539
+ * @return {boolean}
6540
+ */
6541
+ proto.bonus.FreeSpinItem.prototype.hasSpinAmount = function() {
6542
+ return jspb.Message.getField(this, 7) != null;
6543
+ };
6544
+
6545
+
6546
+ /**
6547
+ * optional string expired = 8;
6548
+ * @return {string}
6549
+ */
6550
+ proto.bonus.FreeSpinItem.prototype.getExpired = function() {
6551
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
6552
+ };
6553
+
6554
+
6555
+ /**
6556
+ * @param {string} value
6557
+ * @return {!proto.bonus.FreeSpinItem} returns this
6558
+ */
6559
+ proto.bonus.FreeSpinItem.prototype.setExpired = function(value) {
6560
+ return jspb.Message.setField(this, 8, value);
6561
+ };
6562
+
6563
+
6564
+ /**
6565
+ * Clears the field making it undefined.
6566
+ * @return {!proto.bonus.FreeSpinItem} returns this
6567
+ */
6568
+ proto.bonus.FreeSpinItem.prototype.clearExpired = function() {
6569
+ return jspb.Message.setField(this, 8, undefined);
6570
+ };
6571
+
6572
+
6573
+ /**
6574
+ * Returns whether this field is set.
6575
+ * @return {boolean}
6576
+ */
6577
+ proto.bonus.FreeSpinItem.prototype.hasExpired = function() {
6578
+ return jspb.Message.getField(this, 8) != null;
6579
+ };
6580
+
6581
+
6582
+ /**
6583
+ * optional string game_title = 9;
6584
+ * @return {string}
6585
+ */
6586
+ proto.bonus.FreeSpinItem.prototype.getGameTitle = function() {
6587
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
6588
+ };
6589
+
6590
+
6591
+ /**
6592
+ * @param {string} value
6593
+ * @return {!proto.bonus.FreeSpinItem} returns this
6594
+ */
6595
+ proto.bonus.FreeSpinItem.prototype.setGameTitle = function(value) {
6596
+ return jspb.Message.setField(this, 9, value);
6597
+ };
6598
+
6599
+
6600
+ /**
6601
+ * Clears the field making it undefined.
6602
+ * @return {!proto.bonus.FreeSpinItem} returns this
6603
+ */
6604
+ proto.bonus.FreeSpinItem.prototype.clearGameTitle = function() {
6605
+ return jspb.Message.setField(this, 9, undefined);
6606
+ };
6607
+
6608
+
6609
+ /**
6610
+ * Returns whether this field is set.
6611
+ * @return {boolean}
6612
+ */
6613
+ proto.bonus.FreeSpinItem.prototype.hasGameTitle = function() {
6614
+ return jspb.Message.getField(this, 9) != null;
6615
+ };
6616
+
6617
+
6618
+ /**
6619
+ * optional string game_slug = 10;
6620
+ * @return {string}
6621
+ */
6622
+ proto.bonus.FreeSpinItem.prototype.getGameSlug = function() {
6623
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
6624
+ };
6625
+
6626
+
6627
+ /**
6628
+ * @param {string} value
6629
+ * @return {!proto.bonus.FreeSpinItem} returns this
6630
+ */
6631
+ proto.bonus.FreeSpinItem.prototype.setGameSlug = function(value) {
6632
+ return jspb.Message.setField(this, 10, value);
6633
+ };
6634
+
6635
+
6636
+ /**
6637
+ * Clears the field making it undefined.
6638
+ * @return {!proto.bonus.FreeSpinItem} returns this
6639
+ */
6640
+ proto.bonus.FreeSpinItem.prototype.clearGameSlug = function() {
6641
+ return jspb.Message.setField(this, 10, undefined);
6642
+ };
6643
+
6644
+
6645
+ /**
6646
+ * Returns whether this field is set.
6647
+ * @return {boolean}
6648
+ */
6649
+ proto.bonus.FreeSpinItem.prototype.hasGameSlug = function() {
6650
+ return jspb.Message.getField(this, 10) != null;
6651
+ };
6652
+
6653
+
6654
+ /**
6655
+ * optional string game_provider_title = 11;
6656
+ * @return {string}
6657
+ */
6658
+ proto.bonus.FreeSpinItem.prototype.getGameProviderTitle = function() {
6659
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
6660
+ };
6661
+
6662
+
6663
+ /**
6664
+ * @param {string} value
6665
+ * @return {!proto.bonus.FreeSpinItem} returns this
6666
+ */
6667
+ proto.bonus.FreeSpinItem.prototype.setGameProviderTitle = function(value) {
6668
+ return jspb.Message.setField(this, 11, value);
6669
+ };
6670
+
6671
+
6672
+ /**
6673
+ * Clears the field making it undefined.
6674
+ * @return {!proto.bonus.FreeSpinItem} returns this
6675
+ */
6676
+ proto.bonus.FreeSpinItem.prototype.clearGameProviderTitle = function() {
6677
+ return jspb.Message.setField(this, 11, undefined);
6678
+ };
6679
+
6680
+
6681
+ /**
6682
+ * Returns whether this field is set.
6683
+ * @return {boolean}
6684
+ */
6685
+ proto.bonus.FreeSpinItem.prototype.hasGameProviderTitle = function() {
6686
+ return jspb.Message.getField(this, 11) != null;
6687
+ };
6688
+
6689
+
6690
+ /**
6691
+ * optional string game_provider_slug = 12;
6692
+ * @return {string}
6693
+ */
6694
+ proto.bonus.FreeSpinItem.prototype.getGameProviderSlug = function() {
6695
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
6696
+ };
6697
+
6698
+
6699
+ /**
6700
+ * @param {string} value
6701
+ * @return {!proto.bonus.FreeSpinItem} returns this
6702
+ */
6703
+ proto.bonus.FreeSpinItem.prototype.setGameProviderSlug = function(value) {
6704
+ return jspb.Message.setField(this, 12, value);
6705
+ };
6706
+
6707
+
6708
+ /**
6709
+ * Clears the field making it undefined.
6710
+ * @return {!proto.bonus.FreeSpinItem} returns this
6711
+ */
6712
+ proto.bonus.FreeSpinItem.prototype.clearGameProviderSlug = function() {
6713
+ return jspb.Message.setField(this, 12, undefined);
6714
+ };
6715
+
6716
+
6717
+ /**
6718
+ * Returns whether this field is set.
6719
+ * @return {boolean}
6720
+ */
6721
+ proto.bonus.FreeSpinItem.prototype.hasGameProviderSlug = function() {
6722
+ return jspb.Message.getField(this, 12) != null;
6723
+ };
6724
+
6725
+
6726
+
6727
+
6728
+
6729
+ if (jspb.Message.GENERATE_TO_OBJECT) {
6730
+ /**
6731
+ * Creates an object representation of this proto.
6732
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
6733
+ * Optional fields that are not set will be set to undefined.
6734
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
6735
+ * For the list of reserved names please see:
6736
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
6737
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
6738
+ * JSPB instance for transitional soy proto support:
6739
+ * http://goto/soy-param-migration
6740
+ * @return {!Object}
6741
+ */
6742
+ proto.bonus.GetUserBonusRequest.prototype.toObject = function(opt_includeInstance) {
6743
+ return proto.bonus.GetUserBonusRequest.toObject(opt_includeInstance, this);
6744
+ };
6745
+
6746
+
6747
+ /**
6748
+ * Static version of the {@see toObject} method.
6749
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
6750
+ * the JSPB instance for transitional soy proto support:
6751
+ * http://goto/soy-param-migration
6752
+ * @param {!proto.bonus.GetUserBonusRequest} msg The msg instance to transform.
6753
+ * @return {!Object}
6754
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6755
+ */
6756
+ proto.bonus.GetUserBonusRequest.toObject = function(includeInstance, msg) {
6757
+ var f, obj = {
6758
+ userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
6759
+ bonusId: jspb.Message.getFieldWithDefault(msg, 2, 0),
6760
+ userBonusId: jspb.Message.getFieldWithDefault(msg, 3, 0),
6761
+ status: jspb.Message.getFieldWithDefault(msg, 4, ""),
6762
+ currency: jspb.Message.getFieldWithDefault(msg, 5, ""),
6763
+ country: jspb.Message.getFieldWithDefault(msg, 6, ""),
6764
+ locale: jspb.Message.getFieldWithDefault(msg, 7, "")
6765
+ };
6766
+
6767
+ if (includeInstance) {
6768
+ obj.$jspbMessageInstance = msg;
6769
+ }
6770
+ return obj;
6771
+ };
6772
+ }
6773
+
6774
+
6775
+ /**
6776
+ * Deserializes binary data (in protobuf wire format).
6777
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
6778
+ * @return {!proto.bonus.GetUserBonusRequest}
6779
+ */
6780
+ proto.bonus.GetUserBonusRequest.deserializeBinary = function(bytes) {
6781
+ var reader = new jspb.BinaryReader(bytes);
6782
+ var msg = new proto.bonus.GetUserBonusRequest;
6783
+ return proto.bonus.GetUserBonusRequest.deserializeBinaryFromReader(msg, reader);
6784
+ };
6785
+
6786
+
6787
+ /**
6788
+ * Deserializes binary data (in protobuf wire format) from the
6789
+ * given reader into the given message object.
6790
+ * @param {!proto.bonus.GetUserBonusRequest} msg The message object to deserialize into.
6791
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
6792
+ * @return {!proto.bonus.GetUserBonusRequest}
6793
+ */
6794
+ proto.bonus.GetUserBonusRequest.deserializeBinaryFromReader = function(msg, reader) {
6795
+ while (reader.nextField()) {
6796
+ if (reader.isEndGroup()) {
6797
+ break;
6798
+ }
6799
+ var field = reader.getFieldNumber();
6800
+ switch (field) {
6801
+ case 1:
6802
+ var value = /** @type {number} */ (reader.readInt32());
6803
+ msg.setUserId(value);
6804
+ break;
6805
+ case 2:
6806
+ var value = /** @type {number} */ (reader.readInt32());
6807
+ msg.setBonusId(value);
6808
+ break;
6809
+ case 3:
6810
+ var value = /** @type {number} */ (reader.readInt32());
6811
+ msg.setUserBonusId(value);
6812
+ break;
6813
+ case 4:
6814
+ var value = /** @type {string} */ (reader.readString());
6815
+ msg.setStatus(value);
6816
+ break;
6817
+ case 5:
6818
+ var value = /** @type {string} */ (reader.readString());
6819
+ msg.setCurrency(value);
6820
+ break;
6821
+ case 6:
6822
+ var value = /** @type {string} */ (reader.readString());
6823
+ msg.setCountry(value);
6824
+ break;
6825
+ case 7:
6826
+ var value = /** @type {string} */ (reader.readString());
6827
+ msg.setLocale(value);
6828
+ break;
6829
+ default:
6830
+ reader.skipField();
6831
+ break;
6832
+ }
6833
+ }
6834
+ return msg;
6835
+ };
6836
+
6837
+
6838
+ /**
6839
+ * Serializes the message to binary data (in protobuf wire format).
6840
+ * @return {!Uint8Array}
6841
+ */
6842
+ proto.bonus.GetUserBonusRequest.prototype.serializeBinary = function() {
6843
+ var writer = new jspb.BinaryWriter();
6844
+ proto.bonus.GetUserBonusRequest.serializeBinaryToWriter(this, writer);
6845
+ return writer.getResultBuffer();
6846
+ };
6847
+
6848
+
6849
+ /**
6850
+ * Serializes the given message to binary data (in protobuf wire
6851
+ * format), writing to the given BinaryWriter.
6852
+ * @param {!proto.bonus.GetUserBonusRequest} message
6853
+ * @param {!jspb.BinaryWriter} writer
6854
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6855
+ */
6856
+ proto.bonus.GetUserBonusRequest.serializeBinaryToWriter = function(message, writer) {
6857
+ var f = undefined;
6858
+ f = message.getUserId();
6859
+ if (f !== 0) {
6860
+ writer.writeInt32(
6861
+ 1,
6862
+ f
6863
+ );
6864
+ }
6865
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
6866
+ if (f != null) {
6867
+ writer.writeInt32(
6868
+ 2,
6869
+ f
6870
+ );
6871
+ }
6872
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
6873
+ if (f != null) {
6874
+ writer.writeInt32(
6875
+ 3,
6876
+ f
6877
+ );
6878
+ }
6879
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
6880
+ if (f != null) {
6881
+ writer.writeString(
6882
+ 4,
6883
+ f
6884
+ );
6885
+ }
6886
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
6887
+ if (f != null) {
6888
+ writer.writeString(
6889
+ 5,
6890
+ f
6891
+ );
6892
+ }
6893
+ f = /** @type {string} */ (jspb.Message.getField(message, 6));
6894
+ if (f != null) {
6895
+ writer.writeString(
6896
+ 6,
6897
+ f
6898
+ );
6899
+ }
6900
+ f = /** @type {string} */ (jspb.Message.getField(message, 7));
6901
+ if (f != null) {
6902
+ writer.writeString(
6903
+ 7,
6904
+ f
6905
+ );
6906
+ }
6907
+ };
6908
+
6909
+
6910
+ /**
6911
+ * optional int32 user_id = 1;
6912
+ * @return {number}
6913
+ */
6914
+ proto.bonus.GetUserBonusRequest.prototype.getUserId = function() {
6915
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
6916
+ };
6917
+
6918
+
6919
+ /**
6920
+ * @param {number} value
6921
+ * @return {!proto.bonus.GetUserBonusRequest} returns this
6922
+ */
6923
+ proto.bonus.GetUserBonusRequest.prototype.setUserId = function(value) {
6924
+ return jspb.Message.setProto3IntField(this, 1, value);
6925
+ };
6926
+
6927
+
6928
+ /**
6929
+ * optional int32 bonus_id = 2;
6930
+ * @return {number}
6931
+ */
6932
+ proto.bonus.GetUserBonusRequest.prototype.getBonusId = function() {
6933
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
6934
+ };
6935
+
6936
+
6937
+ /**
6938
+ * @param {number} value
6939
+ * @return {!proto.bonus.GetUserBonusRequest} returns this
6940
+ */
6941
+ proto.bonus.GetUserBonusRequest.prototype.setBonusId = function(value) {
6942
+ return jspb.Message.setField(this, 2, value);
6943
+ };
6944
+
6945
+
6946
+ /**
6947
+ * Clears the field making it undefined.
6948
+ * @return {!proto.bonus.GetUserBonusRequest} returns this
6949
+ */
6950
+ proto.bonus.GetUserBonusRequest.prototype.clearBonusId = function() {
6951
+ return jspb.Message.setField(this, 2, undefined);
6952
+ };
6953
+
6954
+
6955
+ /**
6956
+ * Returns whether this field is set.
6957
+ * @return {boolean}
6958
+ */
6959
+ proto.bonus.GetUserBonusRequest.prototype.hasBonusId = function() {
6960
+ return jspb.Message.getField(this, 2) != null;
6961
+ };
6962
+
6963
+
6964
+ /**
6965
+ * optional int32 user_bonus_id = 3;
6966
+ * @return {number}
6967
+ */
6968
+ proto.bonus.GetUserBonusRequest.prototype.getUserBonusId = function() {
6969
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
6970
+ };
6971
+
6972
+
6973
+ /**
6974
+ * @param {number} value
6975
+ * @return {!proto.bonus.GetUserBonusRequest} returns this
6976
+ */
6977
+ proto.bonus.GetUserBonusRequest.prototype.setUserBonusId = function(value) {
6978
+ return jspb.Message.setField(this, 3, value);
6979
+ };
6980
+
6981
+
6982
+ /**
6983
+ * Clears the field making it undefined.
6984
+ * @return {!proto.bonus.GetUserBonusRequest} returns this
6985
+ */
6986
+ proto.bonus.GetUserBonusRequest.prototype.clearUserBonusId = function() {
6987
+ return jspb.Message.setField(this, 3, undefined);
6988
+ };
6989
+
6990
+
6991
+ /**
6992
+ * Returns whether this field is set.
6993
+ * @return {boolean}
6994
+ */
6995
+ proto.bonus.GetUserBonusRequest.prototype.hasUserBonusId = function() {
6996
+ return jspb.Message.getField(this, 3) != null;
6997
+ };
6998
+
6999
+
7000
+ /**
7001
+ * optional string status = 4;
7002
+ * @return {string}
7003
+ */
7004
+ proto.bonus.GetUserBonusRequest.prototype.getStatus = function() {
7005
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
7006
+ };
7007
+
7008
+
7009
+ /**
7010
+ * @param {string} value
7011
+ * @return {!proto.bonus.GetUserBonusRequest} returns this
7012
+ */
7013
+ proto.bonus.GetUserBonusRequest.prototype.setStatus = function(value) {
7014
+ return jspb.Message.setField(this, 4, value);
7015
+ };
7016
+
7017
+
7018
+ /**
7019
+ * Clears the field making it undefined.
7020
+ * @return {!proto.bonus.GetUserBonusRequest} returns this
7021
+ */
7022
+ proto.bonus.GetUserBonusRequest.prototype.clearStatus = function() {
7023
+ return jspb.Message.setField(this, 4, undefined);
7024
+ };
7025
+
7026
+
7027
+ /**
7028
+ * Returns whether this field is set.
7029
+ * @return {boolean}
7030
+ */
7031
+ proto.bonus.GetUserBonusRequest.prototype.hasStatus = function() {
7032
+ return jspb.Message.getField(this, 4) != null;
7033
+ };
7034
+
7035
+
7036
+ /**
7037
+ * optional string currency = 5;
7038
+ * @return {string}
7039
+ */
7040
+ proto.bonus.GetUserBonusRequest.prototype.getCurrency = function() {
7041
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
7042
+ };
7043
+
7044
+
7045
+ /**
7046
+ * @param {string} value
7047
+ * @return {!proto.bonus.GetUserBonusRequest} returns this
7048
+ */
7049
+ proto.bonus.GetUserBonusRequest.prototype.setCurrency = function(value) {
7050
+ return jspb.Message.setField(this, 5, value);
7051
+ };
7052
+
7053
+
7054
+ /**
7055
+ * Clears the field making it undefined.
7056
+ * @return {!proto.bonus.GetUserBonusRequest} returns this
7057
+ */
7058
+ proto.bonus.GetUserBonusRequest.prototype.clearCurrency = function() {
7059
+ return jspb.Message.setField(this, 5, undefined);
7060
+ };
7061
+
7062
+
7063
+ /**
7064
+ * Returns whether this field is set.
7065
+ * @return {boolean}
7066
+ */
7067
+ proto.bonus.GetUserBonusRequest.prototype.hasCurrency = function() {
7068
+ return jspb.Message.getField(this, 5) != null;
7069
+ };
7070
+
7071
+
7072
+ /**
7073
+ * optional string country = 6;
7074
+ * @return {string}
7075
+ */
7076
+ proto.bonus.GetUserBonusRequest.prototype.getCountry = function() {
7077
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
7078
+ };
7079
+
7080
+
7081
+ /**
7082
+ * @param {string} value
7083
+ * @return {!proto.bonus.GetUserBonusRequest} returns this
7084
+ */
7085
+ proto.bonus.GetUserBonusRequest.prototype.setCountry = function(value) {
7086
+ return jspb.Message.setField(this, 6, value);
7087
+ };
7088
+
7089
+
7090
+ /**
7091
+ * Clears the field making it undefined.
7092
+ * @return {!proto.bonus.GetUserBonusRequest} returns this
7093
+ */
7094
+ proto.bonus.GetUserBonusRequest.prototype.clearCountry = function() {
7095
+ return jspb.Message.setField(this, 6, undefined);
7096
+ };
7097
+
7098
+
7099
+ /**
7100
+ * Returns whether this field is set.
7101
+ * @return {boolean}
7102
+ */
7103
+ proto.bonus.GetUserBonusRequest.prototype.hasCountry = function() {
7104
+ return jspb.Message.getField(this, 6) != null;
7105
+ };
7106
+
7107
+
7108
+ /**
7109
+ * optional string locale = 7;
7110
+ * @return {string}
7111
+ */
7112
+ proto.bonus.GetUserBonusRequest.prototype.getLocale = function() {
7113
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
7114
+ };
7115
+
7116
+
7117
+ /**
7118
+ * @param {string} value
7119
+ * @return {!proto.bonus.GetUserBonusRequest} returns this
7120
+ */
7121
+ proto.bonus.GetUserBonusRequest.prototype.setLocale = function(value) {
7122
+ return jspb.Message.setField(this, 7, value);
7123
+ };
7124
+
7125
+
7126
+ /**
7127
+ * Clears the field making it undefined.
7128
+ * @return {!proto.bonus.GetUserBonusRequest} returns this
7129
+ */
7130
+ proto.bonus.GetUserBonusRequest.prototype.clearLocale = function() {
7131
+ return jspb.Message.setField(this, 7, undefined);
7132
+ };
7133
+
7134
+
7135
+ /**
7136
+ * Returns whether this field is set.
7137
+ * @return {boolean}
7138
+ */
7139
+ proto.bonus.GetUserBonusRequest.prototype.hasLocale = function() {
7140
+ return jspb.Message.getField(this, 7) != null;
7141
+ };
7142
+
7143
+
7144
+
7145
+ /**
7146
+ * List of repeated fields within this message type.
7147
+ * @private {!Array<number>}
7148
+ * @const
7149
+ */
7150
+ proto.bonus.UserBonusItemsResponse.repeatedFields_ = [1];
7151
+
7152
+
7153
+
7154
+ if (jspb.Message.GENERATE_TO_OBJECT) {
7155
+ /**
7156
+ * Creates an object representation of this proto.
7157
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
7158
+ * Optional fields that are not set will be set to undefined.
7159
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
7160
+ * For the list of reserved names please see:
7161
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
7162
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
7163
+ * JSPB instance for transitional soy proto support:
7164
+ * http://goto/soy-param-migration
7165
+ * @return {!Object}
7166
+ */
7167
+ proto.bonus.UserBonusItemsResponse.prototype.toObject = function(opt_includeInstance) {
7168
+ return proto.bonus.UserBonusItemsResponse.toObject(opt_includeInstance, this);
7169
+ };
7170
+
7171
+
7172
+ /**
7173
+ * Static version of the {@see toObject} method.
7174
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
7175
+ * the JSPB instance for transitional soy proto support:
7176
+ * http://goto/soy-param-migration
7177
+ * @param {!proto.bonus.UserBonusItemsResponse} msg The msg instance to transform.
7178
+ * @return {!Object}
7179
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7180
+ */
7181
+ proto.bonus.UserBonusItemsResponse.toObject = function(includeInstance, msg) {
7182
+ var f, obj = {
7183
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
7184
+ proto.bonus.UserBonusItem.toObject, includeInstance),
7185
+ totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
7186
+ totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
7187
+ };
7188
+
7189
+ if (includeInstance) {
7190
+ obj.$jspbMessageInstance = msg;
7191
+ }
7192
+ return obj;
7193
+ };
7194
+ }
7195
+
7196
+
7197
+ /**
7198
+ * Deserializes binary data (in protobuf wire format).
7199
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
7200
+ * @return {!proto.bonus.UserBonusItemsResponse}
7201
+ */
7202
+ proto.bonus.UserBonusItemsResponse.deserializeBinary = function(bytes) {
7203
+ var reader = new jspb.BinaryReader(bytes);
7204
+ var msg = new proto.bonus.UserBonusItemsResponse;
7205
+ return proto.bonus.UserBonusItemsResponse.deserializeBinaryFromReader(msg, reader);
7206
+ };
7207
+
7208
+
7209
+ /**
7210
+ * Deserializes binary data (in protobuf wire format) from the
7211
+ * given reader into the given message object.
7212
+ * @param {!proto.bonus.UserBonusItemsResponse} msg The message object to deserialize into.
7213
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
7214
+ * @return {!proto.bonus.UserBonusItemsResponse}
7215
+ */
7216
+ proto.bonus.UserBonusItemsResponse.deserializeBinaryFromReader = function(msg, reader) {
7217
+ while (reader.nextField()) {
7218
+ if (reader.isEndGroup()) {
7219
+ break;
7220
+ }
7221
+ var field = reader.getFieldNumber();
7222
+ switch (field) {
7223
+ case 1:
7224
+ var value = new proto.bonus.UserBonusItem;
7225
+ reader.readMessage(value,proto.bonus.UserBonusItem.deserializeBinaryFromReader);
7226
+ msg.addItems(value);
7227
+ break;
7228
+ case 2:
7229
+ var value = /** @type {number} */ (reader.readInt32());
7230
+ msg.setTotalPages(value);
7231
+ break;
7232
+ case 3:
7233
+ var value = /** @type {number} */ (reader.readInt32());
7234
+ msg.setTotalItems(value);
7235
+ break;
7236
+ default:
7237
+ reader.skipField();
7238
+ break;
7239
+ }
7240
+ }
7241
+ return msg;
7242
+ };
7243
+
7244
+
7245
+ /**
7246
+ * Serializes the message to binary data (in protobuf wire format).
7247
+ * @return {!Uint8Array}
7248
+ */
7249
+ proto.bonus.UserBonusItemsResponse.prototype.serializeBinary = function() {
7250
+ var writer = new jspb.BinaryWriter();
7251
+ proto.bonus.UserBonusItemsResponse.serializeBinaryToWriter(this, writer);
7252
+ return writer.getResultBuffer();
7253
+ };
7254
+
7255
+
7256
+ /**
7257
+ * Serializes the given message to binary data (in protobuf wire
7258
+ * format), writing to the given BinaryWriter.
7259
+ * @param {!proto.bonus.UserBonusItemsResponse} message
7260
+ * @param {!jspb.BinaryWriter} writer
7261
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7262
+ */
7263
+ proto.bonus.UserBonusItemsResponse.serializeBinaryToWriter = function(message, writer) {
7264
+ var f = undefined;
7265
+ f = message.getItemsList();
7266
+ if (f.length > 0) {
7267
+ writer.writeRepeatedMessage(
7268
+ 1,
7269
+ f,
7270
+ proto.bonus.UserBonusItem.serializeBinaryToWriter
7271
+ );
7272
+ }
7273
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
7274
+ if (f != null) {
7275
+ writer.writeInt32(
7276
+ 2,
7277
+ f
7278
+ );
7279
+ }
7280
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
7281
+ if (f != null) {
7282
+ writer.writeInt32(
7283
+ 3,
7284
+ f
7285
+ );
7286
+ }
7287
+ };
7288
+
7289
+
7290
+ /**
7291
+ * repeated UserBonusItem items = 1;
7292
+ * @return {!Array<!proto.bonus.UserBonusItem>}
7293
+ */
7294
+ proto.bonus.UserBonusItemsResponse.prototype.getItemsList = function() {
7295
+ return /** @type{!Array<!proto.bonus.UserBonusItem>} */ (
7296
+ jspb.Message.getRepeatedWrapperField(this, proto.bonus.UserBonusItem, 1));
7297
+ };
7298
+
7299
+
7300
+ /**
7301
+ * @param {!Array<!proto.bonus.UserBonusItem>} value
7302
+ * @return {!proto.bonus.UserBonusItemsResponse} returns this
7303
+ */
7304
+ proto.bonus.UserBonusItemsResponse.prototype.setItemsList = function(value) {
7305
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
7306
+ };
7307
+
7308
+
7309
+ /**
7310
+ * @param {!proto.bonus.UserBonusItem=} opt_value
7311
+ * @param {number=} opt_index
7312
+ * @return {!proto.bonus.UserBonusItem}
7313
+ */
7314
+ proto.bonus.UserBonusItemsResponse.prototype.addItems = function(opt_value, opt_index) {
7315
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.bonus.UserBonusItem, opt_index);
7316
+ };
7317
+
7318
+
7319
+ /**
7320
+ * Clears the list making it empty but non-null.
7321
+ * @return {!proto.bonus.UserBonusItemsResponse} returns this
7322
+ */
7323
+ proto.bonus.UserBonusItemsResponse.prototype.clearItemsList = function() {
7324
+ return this.setItemsList([]);
7325
+ };
7326
+
7327
+
7328
+ /**
7329
+ * optional int32 total_pages = 2;
7330
+ * @return {number}
7331
+ */
7332
+ proto.bonus.UserBonusItemsResponse.prototype.getTotalPages = function() {
7333
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
7334
+ };
7335
+
7336
+
7337
+ /**
7338
+ * @param {number} value
7339
+ * @return {!proto.bonus.UserBonusItemsResponse} returns this
7340
+ */
7341
+ proto.bonus.UserBonusItemsResponse.prototype.setTotalPages = function(value) {
7342
+ return jspb.Message.setField(this, 2, value);
7343
+ };
7344
+
7345
+
7346
+ /**
7347
+ * Clears the field making it undefined.
7348
+ * @return {!proto.bonus.UserBonusItemsResponse} returns this
7349
+ */
7350
+ proto.bonus.UserBonusItemsResponse.prototype.clearTotalPages = function() {
7351
+ return jspb.Message.setField(this, 2, undefined);
7352
+ };
7353
+
7354
+
7355
+ /**
7356
+ * Returns whether this field is set.
7357
+ * @return {boolean}
7358
+ */
7359
+ proto.bonus.UserBonusItemsResponse.prototype.hasTotalPages = function() {
7360
+ return jspb.Message.getField(this, 2) != null;
7361
+ };
7362
+
7363
+
7364
+ /**
7365
+ * optional int32 total_items = 3;
7366
+ * @return {number}
7367
+ */
7368
+ proto.bonus.UserBonusItemsResponse.prototype.getTotalItems = function() {
7369
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
7370
+ };
7371
+
7372
+
7373
+ /**
7374
+ * @param {number} value
7375
+ * @return {!proto.bonus.UserBonusItemsResponse} returns this
7376
+ */
7377
+ proto.bonus.UserBonusItemsResponse.prototype.setTotalItems = function(value) {
7378
+ return jspb.Message.setField(this, 3, value);
7379
+ };
7380
+
7381
+
7382
+ /**
7383
+ * Clears the field making it undefined.
7384
+ * @return {!proto.bonus.UserBonusItemsResponse} returns this
7385
+ */
7386
+ proto.bonus.UserBonusItemsResponse.prototype.clearTotalItems = function() {
7387
+ return jspb.Message.setField(this, 3, undefined);
7388
+ };
7389
+
7390
+
7391
+ /**
7392
+ * Returns whether this field is set.
7393
+ * @return {boolean}
7394
+ */
7395
+ proto.bonus.UserBonusItemsResponse.prototype.hasTotalItems = function() {
7396
+ return jspb.Message.getField(this, 3) != null;
7397
+ };
7398
+
7399
+
7400
+
4934
7401
 
4935
7402
 
4936
7403
  if (jspb.Message.GENERATE_TO_OBJECT) {