protobuf-platform 1.2.317 → 1.2.320

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/user/user_pb.js CHANGED
@@ -48,6 +48,7 @@ goog.exportSymbol('proto.user.GetSegmentRuleRequest', null, global);
48
48
  goog.exportSymbol('proto.user.GetSumSubApplicantRequest', null, global);
49
49
  goog.exportSymbol('proto.user.GetUserLimitsRequest', null, global);
50
50
  goog.exportSymbol('proto.user.GetUserSegmentIdsRequest', null, global);
51
+ goog.exportSymbol('proto.user.GetUserWalletBalancesRequest', null, global);
51
52
  goog.exportSymbol('proto.user.GoogleLoginRequest', null, global);
52
53
  goog.exportSymbol('proto.user.LimitStatusResponse', null, global);
53
54
  goog.exportSymbol('proto.user.LoggedInResponse', null, global);
@@ -140,6 +141,8 @@ goog.exportSymbol('proto.user.UserSearchParams', null, global);
140
141
  goog.exportSymbol('proto.user.UserSegmentIdsResponse', null, global);
141
142
  goog.exportSymbol('proto.user.UserStatusResponse', null, global);
142
143
  goog.exportSymbol('proto.user.UserToggleGameStatusResponse', null, global);
144
+ goog.exportSymbol('proto.user.UserWalletBalanceItem', null, global);
145
+ goog.exportSymbol('proto.user.UserWalletBalancesResponse', null, global);
143
146
  goog.exportSymbol('proto.user.UsersResponse', null, global);
144
147
  goog.exportSymbol('proto.user.VerificationStatus', null, global);
145
148
  goog.exportSymbol('proto.user.VerificationStatusItemsResponse', null, global);
@@ -605,6 +608,69 @@ if (goog.DEBUG && !COMPILED) {
605
608
  */
606
609
  proto.user.CheckWithdrawalEligibilityResponse.displayName = 'proto.user.CheckWithdrawalEligibilityResponse';
607
610
  }
611
+ /**
612
+ * Generated by JsPbCodeGenerator.
613
+ * @param {Array=} opt_data Optional initial data array, typically from a
614
+ * server response, or constructed directly in Javascript. The array is used
615
+ * in place and becomes part of the constructed object. It is not cloned.
616
+ * If no data is provided, the constructed object will be empty, but still
617
+ * valid.
618
+ * @extends {jspb.Message}
619
+ * @constructor
620
+ */
621
+ proto.user.GetUserWalletBalancesRequest = function(opt_data) {
622
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
623
+ };
624
+ goog.inherits(proto.user.GetUserWalletBalancesRequest, jspb.Message);
625
+ if (goog.DEBUG && !COMPILED) {
626
+ /**
627
+ * @public
628
+ * @override
629
+ */
630
+ proto.user.GetUserWalletBalancesRequest.displayName = 'proto.user.GetUserWalletBalancesRequest';
631
+ }
632
+ /**
633
+ * Generated by JsPbCodeGenerator.
634
+ * @param {Array=} opt_data Optional initial data array, typically from a
635
+ * server response, or constructed directly in Javascript. The array is used
636
+ * in place and becomes part of the constructed object. It is not cloned.
637
+ * If no data is provided, the constructed object will be empty, but still
638
+ * valid.
639
+ * @extends {jspb.Message}
640
+ * @constructor
641
+ */
642
+ proto.user.UserWalletBalanceItem = function(opt_data) {
643
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
644
+ };
645
+ goog.inherits(proto.user.UserWalletBalanceItem, jspb.Message);
646
+ if (goog.DEBUG && !COMPILED) {
647
+ /**
648
+ * @public
649
+ * @override
650
+ */
651
+ proto.user.UserWalletBalanceItem.displayName = 'proto.user.UserWalletBalanceItem';
652
+ }
653
+ /**
654
+ * Generated by JsPbCodeGenerator.
655
+ * @param {Array=} opt_data Optional initial data array, typically from a
656
+ * server response, or constructed directly in Javascript. The array is used
657
+ * in place and becomes part of the constructed object. It is not cloned.
658
+ * If no data is provided, the constructed object will be empty, but still
659
+ * valid.
660
+ * @extends {jspb.Message}
661
+ * @constructor
662
+ */
663
+ proto.user.UserWalletBalancesResponse = function(opt_data) {
664
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.user.UserWalletBalancesResponse.repeatedFields_, null);
665
+ };
666
+ goog.inherits(proto.user.UserWalletBalancesResponse, jspb.Message);
667
+ if (goog.DEBUG && !COMPILED) {
668
+ /**
669
+ * @public
670
+ * @override
671
+ */
672
+ proto.user.UserWalletBalancesResponse.displayName = 'proto.user.UserWalletBalancesResponse';
673
+ }
608
674
  /**
609
675
  * Generated by JsPbCodeGenerator.
610
676
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -11097,6 +11163,564 @@ proto.user.CheckWithdrawalEligibilityResponse.prototype.hasCurrencyScale = funct
11097
11163
 
11098
11164
 
11099
11165
 
11166
+ if (jspb.Message.GENERATE_TO_OBJECT) {
11167
+ /**
11168
+ * Creates an object representation of this proto.
11169
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
11170
+ * Optional fields that are not set will be set to undefined.
11171
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
11172
+ * For the list of reserved names please see:
11173
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
11174
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
11175
+ * JSPB instance for transitional soy proto support:
11176
+ * http://goto/soy-param-migration
11177
+ * @return {!Object}
11178
+ */
11179
+ proto.user.GetUserWalletBalancesRequest.prototype.toObject = function(opt_includeInstance) {
11180
+ return proto.user.GetUserWalletBalancesRequest.toObject(opt_includeInstance, this);
11181
+ };
11182
+
11183
+
11184
+ /**
11185
+ * Static version of the {@see toObject} method.
11186
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
11187
+ * the JSPB instance for transitional soy proto support:
11188
+ * http://goto/soy-param-migration
11189
+ * @param {!proto.user.GetUserWalletBalancesRequest} msg The msg instance to transform.
11190
+ * @return {!Object}
11191
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11192
+ */
11193
+ proto.user.GetUserWalletBalancesRequest.toObject = function(includeInstance, msg) {
11194
+ var f, obj = {
11195
+ userId: jspb.Message.getFieldWithDefault(msg, 1, 0)
11196
+ };
11197
+
11198
+ if (includeInstance) {
11199
+ obj.$jspbMessageInstance = msg;
11200
+ }
11201
+ return obj;
11202
+ };
11203
+ }
11204
+
11205
+
11206
+ /**
11207
+ * Deserializes binary data (in protobuf wire format).
11208
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
11209
+ * @return {!proto.user.GetUserWalletBalancesRequest}
11210
+ */
11211
+ proto.user.GetUserWalletBalancesRequest.deserializeBinary = function(bytes) {
11212
+ var reader = new jspb.BinaryReader(bytes);
11213
+ var msg = new proto.user.GetUserWalletBalancesRequest;
11214
+ return proto.user.GetUserWalletBalancesRequest.deserializeBinaryFromReader(msg, reader);
11215
+ };
11216
+
11217
+
11218
+ /**
11219
+ * Deserializes binary data (in protobuf wire format) from the
11220
+ * given reader into the given message object.
11221
+ * @param {!proto.user.GetUserWalletBalancesRequest} msg The message object to deserialize into.
11222
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
11223
+ * @return {!proto.user.GetUserWalletBalancesRequest}
11224
+ */
11225
+ proto.user.GetUserWalletBalancesRequest.deserializeBinaryFromReader = function(msg, reader) {
11226
+ while (reader.nextField()) {
11227
+ if (reader.isEndGroup()) {
11228
+ break;
11229
+ }
11230
+ var field = reader.getFieldNumber();
11231
+ switch (field) {
11232
+ case 1:
11233
+ var value = /** @type {number} */ (reader.readInt32());
11234
+ msg.setUserId(value);
11235
+ break;
11236
+ default:
11237
+ reader.skipField();
11238
+ break;
11239
+ }
11240
+ }
11241
+ return msg;
11242
+ };
11243
+
11244
+
11245
+ /**
11246
+ * Serializes the message to binary data (in protobuf wire format).
11247
+ * @return {!Uint8Array}
11248
+ */
11249
+ proto.user.GetUserWalletBalancesRequest.prototype.serializeBinary = function() {
11250
+ var writer = new jspb.BinaryWriter();
11251
+ proto.user.GetUserWalletBalancesRequest.serializeBinaryToWriter(this, writer);
11252
+ return writer.getResultBuffer();
11253
+ };
11254
+
11255
+
11256
+ /**
11257
+ * Serializes the given message to binary data (in protobuf wire
11258
+ * format), writing to the given BinaryWriter.
11259
+ * @param {!proto.user.GetUserWalletBalancesRequest} message
11260
+ * @param {!jspb.BinaryWriter} writer
11261
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11262
+ */
11263
+ proto.user.GetUserWalletBalancesRequest.serializeBinaryToWriter = function(message, writer) {
11264
+ var f = undefined;
11265
+ f = message.getUserId();
11266
+ if (f !== 0) {
11267
+ writer.writeInt32(
11268
+ 1,
11269
+ f
11270
+ );
11271
+ }
11272
+ };
11273
+
11274
+
11275
+ /**
11276
+ * optional int32 user_id = 1;
11277
+ * @return {number}
11278
+ */
11279
+ proto.user.GetUserWalletBalancesRequest.prototype.getUserId = function() {
11280
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
11281
+ };
11282
+
11283
+
11284
+ /**
11285
+ * @param {number} value
11286
+ * @return {!proto.user.GetUserWalletBalancesRequest} returns this
11287
+ */
11288
+ proto.user.GetUserWalletBalancesRequest.prototype.setUserId = function(value) {
11289
+ return jspb.Message.setProto3IntField(this, 1, value);
11290
+ };
11291
+
11292
+
11293
+
11294
+
11295
+
11296
+ if (jspb.Message.GENERATE_TO_OBJECT) {
11297
+ /**
11298
+ * Creates an object representation of this proto.
11299
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
11300
+ * Optional fields that are not set will be set to undefined.
11301
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
11302
+ * For the list of reserved names please see:
11303
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
11304
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
11305
+ * JSPB instance for transitional soy proto support:
11306
+ * http://goto/soy-param-migration
11307
+ * @return {!Object}
11308
+ */
11309
+ proto.user.UserWalletBalanceItem.prototype.toObject = function(opt_includeInstance) {
11310
+ return proto.user.UserWalletBalanceItem.toObject(opt_includeInstance, this);
11311
+ };
11312
+
11313
+
11314
+ /**
11315
+ * Static version of the {@see toObject} method.
11316
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
11317
+ * the JSPB instance for transitional soy proto support:
11318
+ * http://goto/soy-param-migration
11319
+ * @param {!proto.user.UserWalletBalanceItem} msg The msg instance to transform.
11320
+ * @return {!Object}
11321
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11322
+ */
11323
+ proto.user.UserWalletBalanceItem.toObject = function(includeInstance, msg) {
11324
+ var f, obj = {
11325
+ currency: jspb.Message.getFieldWithDefault(msg, 1, ""),
11326
+ currencyScale: jspb.Message.getFieldWithDefault(msg, 2, 0),
11327
+ realAmountMinor: jspb.Message.getFieldWithDefault(msg, 3, 0),
11328
+ bonusAmountMinor: jspb.Message.getFieldWithDefault(msg, 4, 0),
11329
+ updatedAt: jspb.Message.getFieldWithDefault(msg, 5, "")
11330
+ };
11331
+
11332
+ if (includeInstance) {
11333
+ obj.$jspbMessageInstance = msg;
11334
+ }
11335
+ return obj;
11336
+ };
11337
+ }
11338
+
11339
+
11340
+ /**
11341
+ * Deserializes binary data (in protobuf wire format).
11342
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
11343
+ * @return {!proto.user.UserWalletBalanceItem}
11344
+ */
11345
+ proto.user.UserWalletBalanceItem.deserializeBinary = function(bytes) {
11346
+ var reader = new jspb.BinaryReader(bytes);
11347
+ var msg = new proto.user.UserWalletBalanceItem;
11348
+ return proto.user.UserWalletBalanceItem.deserializeBinaryFromReader(msg, reader);
11349
+ };
11350
+
11351
+
11352
+ /**
11353
+ * Deserializes binary data (in protobuf wire format) from the
11354
+ * given reader into the given message object.
11355
+ * @param {!proto.user.UserWalletBalanceItem} msg The message object to deserialize into.
11356
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
11357
+ * @return {!proto.user.UserWalletBalanceItem}
11358
+ */
11359
+ proto.user.UserWalletBalanceItem.deserializeBinaryFromReader = function(msg, reader) {
11360
+ while (reader.nextField()) {
11361
+ if (reader.isEndGroup()) {
11362
+ break;
11363
+ }
11364
+ var field = reader.getFieldNumber();
11365
+ switch (field) {
11366
+ case 1:
11367
+ var value = /** @type {string} */ (reader.readString());
11368
+ msg.setCurrency(value);
11369
+ break;
11370
+ case 2:
11371
+ var value = /** @type {number} */ (reader.readInt32());
11372
+ msg.setCurrencyScale(value);
11373
+ break;
11374
+ case 3:
11375
+ var value = /** @type {number} */ (reader.readInt64());
11376
+ msg.setRealAmountMinor(value);
11377
+ break;
11378
+ case 4:
11379
+ var value = /** @type {number} */ (reader.readInt64());
11380
+ msg.setBonusAmountMinor(value);
11381
+ break;
11382
+ case 5:
11383
+ var value = /** @type {string} */ (reader.readString());
11384
+ msg.setUpdatedAt(value);
11385
+ break;
11386
+ default:
11387
+ reader.skipField();
11388
+ break;
11389
+ }
11390
+ }
11391
+ return msg;
11392
+ };
11393
+
11394
+
11395
+ /**
11396
+ * Serializes the message to binary data (in protobuf wire format).
11397
+ * @return {!Uint8Array}
11398
+ */
11399
+ proto.user.UserWalletBalanceItem.prototype.serializeBinary = function() {
11400
+ var writer = new jspb.BinaryWriter();
11401
+ proto.user.UserWalletBalanceItem.serializeBinaryToWriter(this, writer);
11402
+ return writer.getResultBuffer();
11403
+ };
11404
+
11405
+
11406
+ /**
11407
+ * Serializes the given message to binary data (in protobuf wire
11408
+ * format), writing to the given BinaryWriter.
11409
+ * @param {!proto.user.UserWalletBalanceItem} message
11410
+ * @param {!jspb.BinaryWriter} writer
11411
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11412
+ */
11413
+ proto.user.UserWalletBalanceItem.serializeBinaryToWriter = function(message, writer) {
11414
+ var f = undefined;
11415
+ f = message.getCurrency();
11416
+ if (f.length > 0) {
11417
+ writer.writeString(
11418
+ 1,
11419
+ f
11420
+ );
11421
+ }
11422
+ f = message.getCurrencyScale();
11423
+ if (f !== 0) {
11424
+ writer.writeInt32(
11425
+ 2,
11426
+ f
11427
+ );
11428
+ }
11429
+ f = message.getRealAmountMinor();
11430
+ if (f !== 0) {
11431
+ writer.writeInt64(
11432
+ 3,
11433
+ f
11434
+ );
11435
+ }
11436
+ f = message.getBonusAmountMinor();
11437
+ if (f !== 0) {
11438
+ writer.writeInt64(
11439
+ 4,
11440
+ f
11441
+ );
11442
+ }
11443
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
11444
+ if (f != null) {
11445
+ writer.writeString(
11446
+ 5,
11447
+ f
11448
+ );
11449
+ }
11450
+ };
11451
+
11452
+
11453
+ /**
11454
+ * optional string currency = 1;
11455
+ * @return {string}
11456
+ */
11457
+ proto.user.UserWalletBalanceItem.prototype.getCurrency = function() {
11458
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
11459
+ };
11460
+
11461
+
11462
+ /**
11463
+ * @param {string} value
11464
+ * @return {!proto.user.UserWalletBalanceItem} returns this
11465
+ */
11466
+ proto.user.UserWalletBalanceItem.prototype.setCurrency = function(value) {
11467
+ return jspb.Message.setProto3StringField(this, 1, value);
11468
+ };
11469
+
11470
+
11471
+ /**
11472
+ * optional int32 currency_scale = 2;
11473
+ * @return {number}
11474
+ */
11475
+ proto.user.UserWalletBalanceItem.prototype.getCurrencyScale = function() {
11476
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
11477
+ };
11478
+
11479
+
11480
+ /**
11481
+ * @param {number} value
11482
+ * @return {!proto.user.UserWalletBalanceItem} returns this
11483
+ */
11484
+ proto.user.UserWalletBalanceItem.prototype.setCurrencyScale = function(value) {
11485
+ return jspb.Message.setProto3IntField(this, 2, value);
11486
+ };
11487
+
11488
+
11489
+ /**
11490
+ * optional int64 real_amount_minor = 3;
11491
+ * @return {number}
11492
+ */
11493
+ proto.user.UserWalletBalanceItem.prototype.getRealAmountMinor = function() {
11494
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
11495
+ };
11496
+
11497
+
11498
+ /**
11499
+ * @param {number} value
11500
+ * @return {!proto.user.UserWalletBalanceItem} returns this
11501
+ */
11502
+ proto.user.UserWalletBalanceItem.prototype.setRealAmountMinor = function(value) {
11503
+ return jspb.Message.setProto3IntField(this, 3, value);
11504
+ };
11505
+
11506
+
11507
+ /**
11508
+ * optional int64 bonus_amount_minor = 4;
11509
+ * @return {number}
11510
+ */
11511
+ proto.user.UserWalletBalanceItem.prototype.getBonusAmountMinor = function() {
11512
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
11513
+ };
11514
+
11515
+
11516
+ /**
11517
+ * @param {number} value
11518
+ * @return {!proto.user.UserWalletBalanceItem} returns this
11519
+ */
11520
+ proto.user.UserWalletBalanceItem.prototype.setBonusAmountMinor = function(value) {
11521
+ return jspb.Message.setProto3IntField(this, 4, value);
11522
+ };
11523
+
11524
+
11525
+ /**
11526
+ * optional string updated_at = 5;
11527
+ * @return {string}
11528
+ */
11529
+ proto.user.UserWalletBalanceItem.prototype.getUpdatedAt = function() {
11530
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
11531
+ };
11532
+
11533
+
11534
+ /**
11535
+ * @param {string} value
11536
+ * @return {!proto.user.UserWalletBalanceItem} returns this
11537
+ */
11538
+ proto.user.UserWalletBalanceItem.prototype.setUpdatedAt = function(value) {
11539
+ return jspb.Message.setField(this, 5, value);
11540
+ };
11541
+
11542
+
11543
+ /**
11544
+ * Clears the field making it undefined.
11545
+ * @return {!proto.user.UserWalletBalanceItem} returns this
11546
+ */
11547
+ proto.user.UserWalletBalanceItem.prototype.clearUpdatedAt = function() {
11548
+ return jspb.Message.setField(this, 5, undefined);
11549
+ };
11550
+
11551
+
11552
+ /**
11553
+ * Returns whether this field is set.
11554
+ * @return {boolean}
11555
+ */
11556
+ proto.user.UserWalletBalanceItem.prototype.hasUpdatedAt = function() {
11557
+ return jspb.Message.getField(this, 5) != null;
11558
+ };
11559
+
11560
+
11561
+
11562
+ /**
11563
+ * List of repeated fields within this message type.
11564
+ * @private {!Array<number>}
11565
+ * @const
11566
+ */
11567
+ proto.user.UserWalletBalancesResponse.repeatedFields_ = [1];
11568
+
11569
+
11570
+
11571
+ if (jspb.Message.GENERATE_TO_OBJECT) {
11572
+ /**
11573
+ * Creates an object representation of this proto.
11574
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
11575
+ * Optional fields that are not set will be set to undefined.
11576
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
11577
+ * For the list of reserved names please see:
11578
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
11579
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
11580
+ * JSPB instance for transitional soy proto support:
11581
+ * http://goto/soy-param-migration
11582
+ * @return {!Object}
11583
+ */
11584
+ proto.user.UserWalletBalancesResponse.prototype.toObject = function(opt_includeInstance) {
11585
+ return proto.user.UserWalletBalancesResponse.toObject(opt_includeInstance, this);
11586
+ };
11587
+
11588
+
11589
+ /**
11590
+ * Static version of the {@see toObject} method.
11591
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
11592
+ * the JSPB instance for transitional soy proto support:
11593
+ * http://goto/soy-param-migration
11594
+ * @param {!proto.user.UserWalletBalancesResponse} msg The msg instance to transform.
11595
+ * @return {!Object}
11596
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11597
+ */
11598
+ proto.user.UserWalletBalancesResponse.toObject = function(includeInstance, msg) {
11599
+ var f, obj = {
11600
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
11601
+ proto.user.UserWalletBalanceItem.toObject, includeInstance)
11602
+ };
11603
+
11604
+ if (includeInstance) {
11605
+ obj.$jspbMessageInstance = msg;
11606
+ }
11607
+ return obj;
11608
+ };
11609
+ }
11610
+
11611
+
11612
+ /**
11613
+ * Deserializes binary data (in protobuf wire format).
11614
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
11615
+ * @return {!proto.user.UserWalletBalancesResponse}
11616
+ */
11617
+ proto.user.UserWalletBalancesResponse.deserializeBinary = function(bytes) {
11618
+ var reader = new jspb.BinaryReader(bytes);
11619
+ var msg = new proto.user.UserWalletBalancesResponse;
11620
+ return proto.user.UserWalletBalancesResponse.deserializeBinaryFromReader(msg, reader);
11621
+ };
11622
+
11623
+
11624
+ /**
11625
+ * Deserializes binary data (in protobuf wire format) from the
11626
+ * given reader into the given message object.
11627
+ * @param {!proto.user.UserWalletBalancesResponse} msg The message object to deserialize into.
11628
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
11629
+ * @return {!proto.user.UserWalletBalancesResponse}
11630
+ */
11631
+ proto.user.UserWalletBalancesResponse.deserializeBinaryFromReader = function(msg, reader) {
11632
+ while (reader.nextField()) {
11633
+ if (reader.isEndGroup()) {
11634
+ break;
11635
+ }
11636
+ var field = reader.getFieldNumber();
11637
+ switch (field) {
11638
+ case 1:
11639
+ var value = new proto.user.UserWalletBalanceItem;
11640
+ reader.readMessage(value,proto.user.UserWalletBalanceItem.deserializeBinaryFromReader);
11641
+ msg.addItems(value);
11642
+ break;
11643
+ default:
11644
+ reader.skipField();
11645
+ break;
11646
+ }
11647
+ }
11648
+ return msg;
11649
+ };
11650
+
11651
+
11652
+ /**
11653
+ * Serializes the message to binary data (in protobuf wire format).
11654
+ * @return {!Uint8Array}
11655
+ */
11656
+ proto.user.UserWalletBalancesResponse.prototype.serializeBinary = function() {
11657
+ var writer = new jspb.BinaryWriter();
11658
+ proto.user.UserWalletBalancesResponse.serializeBinaryToWriter(this, writer);
11659
+ return writer.getResultBuffer();
11660
+ };
11661
+
11662
+
11663
+ /**
11664
+ * Serializes the given message to binary data (in protobuf wire
11665
+ * format), writing to the given BinaryWriter.
11666
+ * @param {!proto.user.UserWalletBalancesResponse} message
11667
+ * @param {!jspb.BinaryWriter} writer
11668
+ * @suppress {unusedLocalVariables} f is only used for nested messages
11669
+ */
11670
+ proto.user.UserWalletBalancesResponse.serializeBinaryToWriter = function(message, writer) {
11671
+ var f = undefined;
11672
+ f = message.getItemsList();
11673
+ if (f.length > 0) {
11674
+ writer.writeRepeatedMessage(
11675
+ 1,
11676
+ f,
11677
+ proto.user.UserWalletBalanceItem.serializeBinaryToWriter
11678
+ );
11679
+ }
11680
+ };
11681
+
11682
+
11683
+ /**
11684
+ * repeated UserWalletBalanceItem items = 1;
11685
+ * @return {!Array<!proto.user.UserWalletBalanceItem>}
11686
+ */
11687
+ proto.user.UserWalletBalancesResponse.prototype.getItemsList = function() {
11688
+ return /** @type{!Array<!proto.user.UserWalletBalanceItem>} */ (
11689
+ jspb.Message.getRepeatedWrapperField(this, proto.user.UserWalletBalanceItem, 1));
11690
+ };
11691
+
11692
+
11693
+ /**
11694
+ * @param {!Array<!proto.user.UserWalletBalanceItem>} value
11695
+ * @return {!proto.user.UserWalletBalancesResponse} returns this
11696
+ */
11697
+ proto.user.UserWalletBalancesResponse.prototype.setItemsList = function(value) {
11698
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
11699
+ };
11700
+
11701
+
11702
+ /**
11703
+ * @param {!proto.user.UserWalletBalanceItem=} opt_value
11704
+ * @param {number=} opt_index
11705
+ * @return {!proto.user.UserWalletBalanceItem}
11706
+ */
11707
+ proto.user.UserWalletBalancesResponse.prototype.addItems = function(opt_value, opt_index) {
11708
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.user.UserWalletBalanceItem, opt_index);
11709
+ };
11710
+
11711
+
11712
+ /**
11713
+ * Clears the list making it empty but non-null.
11714
+ * @return {!proto.user.UserWalletBalancesResponse} returns this
11715
+ */
11716
+ proto.user.UserWalletBalancesResponse.prototype.clearItemsList = function() {
11717
+ return this.setItemsList([]);
11718
+ };
11719
+
11720
+
11721
+
11722
+
11723
+
11100
11724
  if (jspb.Message.GENERATE_TO_OBJECT) {
11101
11725
  /**
11102
11726
  * Creates an object representation of this proto.