protobuf-platform 1.2.319 → 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.
@@ -30,6 +30,9 @@ goog.exportSymbol('proto.config.ConfigStatusResponse', null, global);
30
30
  goog.exportSymbol('proto.config.CountriesRequest', null, global);
31
31
  goog.exportSymbol('proto.config.CountriesResponse', null, global);
32
32
  goog.exportSymbol('proto.config.CountryItem', null, global);
33
+ goog.exportSymbol('proto.config.CurrenciesRatesRequest', null, global);
34
+ goog.exportSymbol('proto.config.CurrenciesRatesResponse', null, global);
35
+ goog.exportSymbol('proto.config.CurrencyRateItem', null, global);
33
36
  goog.exportSymbol('proto.config.CurrencyRateRequest', null, global);
34
37
  goog.exportSymbol('proto.config.CurrencyRateResponse', null, global);
35
38
  goog.exportSymbol('proto.config.ErrorRequest', null, global);
@@ -395,6 +398,69 @@ if (goog.DEBUG && !COMPILED) {
395
398
  */
396
399
  proto.config.CurrencyRateResponse.displayName = 'proto.config.CurrencyRateResponse';
397
400
  }
401
+ /**
402
+ * Generated by JsPbCodeGenerator.
403
+ * @param {Array=} opt_data Optional initial data array, typically from a
404
+ * server response, or constructed directly in Javascript. The array is used
405
+ * in place and becomes part of the constructed object. It is not cloned.
406
+ * If no data is provided, the constructed object will be empty, but still
407
+ * valid.
408
+ * @extends {jspb.Message}
409
+ * @constructor
410
+ */
411
+ proto.config.CurrenciesRatesRequest = function(opt_data) {
412
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.config.CurrenciesRatesRequest.repeatedFields_, null);
413
+ };
414
+ goog.inherits(proto.config.CurrenciesRatesRequest, jspb.Message);
415
+ if (goog.DEBUG && !COMPILED) {
416
+ /**
417
+ * @public
418
+ * @override
419
+ */
420
+ proto.config.CurrenciesRatesRequest.displayName = 'proto.config.CurrenciesRatesRequest';
421
+ }
422
+ /**
423
+ * Generated by JsPbCodeGenerator.
424
+ * @param {Array=} opt_data Optional initial data array, typically from a
425
+ * server response, or constructed directly in Javascript. The array is used
426
+ * in place and becomes part of the constructed object. It is not cloned.
427
+ * If no data is provided, the constructed object will be empty, but still
428
+ * valid.
429
+ * @extends {jspb.Message}
430
+ * @constructor
431
+ */
432
+ proto.config.CurrencyRateItem = function(opt_data) {
433
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
434
+ };
435
+ goog.inherits(proto.config.CurrencyRateItem, jspb.Message);
436
+ if (goog.DEBUG && !COMPILED) {
437
+ /**
438
+ * @public
439
+ * @override
440
+ */
441
+ proto.config.CurrencyRateItem.displayName = 'proto.config.CurrencyRateItem';
442
+ }
443
+ /**
444
+ * Generated by JsPbCodeGenerator.
445
+ * @param {Array=} opt_data Optional initial data array, typically from a
446
+ * server response, or constructed directly in Javascript. The array is used
447
+ * in place and becomes part of the constructed object. It is not cloned.
448
+ * If no data is provided, the constructed object will be empty, but still
449
+ * valid.
450
+ * @extends {jspb.Message}
451
+ * @constructor
452
+ */
453
+ proto.config.CurrenciesRatesResponse = function(opt_data) {
454
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.config.CurrenciesRatesResponse.repeatedFields_, null);
455
+ };
456
+ goog.inherits(proto.config.CurrenciesRatesResponse, jspb.Message);
457
+ if (goog.DEBUG && !COMPILED) {
458
+ /**
459
+ * @public
460
+ * @override
461
+ */
462
+ proto.config.CurrenciesRatesResponse.displayName = 'proto.config.CurrenciesRatesResponse';
463
+ }
398
464
  /**
399
465
  * Generated by JsPbCodeGenerator.
400
466
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -4308,6 +4374,602 @@ proto.config.CurrencyRateResponse.prototype.setRate = function(value) {
4308
4374
 
4309
4375
 
4310
4376
 
4377
+ /**
4378
+ * List of repeated fields within this message type.
4379
+ * @private {!Array<number>}
4380
+ * @const
4381
+ */
4382
+ proto.config.CurrenciesRatesRequest.repeatedFields_ = [3];
4383
+
4384
+
4385
+
4386
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4387
+ /**
4388
+ * Creates an object representation of this proto.
4389
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4390
+ * Optional fields that are not set will be set to undefined.
4391
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4392
+ * For the list of reserved names please see:
4393
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4394
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4395
+ * JSPB instance for transitional soy proto support:
4396
+ * http://goto/soy-param-migration
4397
+ * @return {!Object}
4398
+ */
4399
+ proto.config.CurrenciesRatesRequest.prototype.toObject = function(opt_includeInstance) {
4400
+ return proto.config.CurrenciesRatesRequest.toObject(opt_includeInstance, this);
4401
+ };
4402
+
4403
+
4404
+ /**
4405
+ * Static version of the {@see toObject} method.
4406
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4407
+ * the JSPB instance for transitional soy proto support:
4408
+ * http://goto/soy-param-migration
4409
+ * @param {!proto.config.CurrenciesRatesRequest} msg The msg instance to transform.
4410
+ * @return {!Object}
4411
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4412
+ */
4413
+ proto.config.CurrenciesRatesRequest.toObject = function(includeInstance, msg) {
4414
+ var f, obj = {
4415
+ environment: jspb.Message.getFieldWithDefault(msg, 1, ""),
4416
+ customer: jspb.Message.getFieldWithDefault(msg, 2, ""),
4417
+ currencyFromList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
4418
+ currencyTo: jspb.Message.getFieldWithDefault(msg, 4, "")
4419
+ };
4420
+
4421
+ if (includeInstance) {
4422
+ obj.$jspbMessageInstance = msg;
4423
+ }
4424
+ return obj;
4425
+ };
4426
+ }
4427
+
4428
+
4429
+ /**
4430
+ * Deserializes binary data (in protobuf wire format).
4431
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4432
+ * @return {!proto.config.CurrenciesRatesRequest}
4433
+ */
4434
+ proto.config.CurrenciesRatesRequest.deserializeBinary = function(bytes) {
4435
+ var reader = new jspb.BinaryReader(bytes);
4436
+ var msg = new proto.config.CurrenciesRatesRequest;
4437
+ return proto.config.CurrenciesRatesRequest.deserializeBinaryFromReader(msg, reader);
4438
+ };
4439
+
4440
+
4441
+ /**
4442
+ * Deserializes binary data (in protobuf wire format) from the
4443
+ * given reader into the given message object.
4444
+ * @param {!proto.config.CurrenciesRatesRequest} msg The message object to deserialize into.
4445
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4446
+ * @return {!proto.config.CurrenciesRatesRequest}
4447
+ */
4448
+ proto.config.CurrenciesRatesRequest.deserializeBinaryFromReader = function(msg, reader) {
4449
+ while (reader.nextField()) {
4450
+ if (reader.isEndGroup()) {
4451
+ break;
4452
+ }
4453
+ var field = reader.getFieldNumber();
4454
+ switch (field) {
4455
+ case 1:
4456
+ var value = /** @type {string} */ (reader.readString());
4457
+ msg.setEnvironment(value);
4458
+ break;
4459
+ case 2:
4460
+ var value = /** @type {string} */ (reader.readString());
4461
+ msg.setCustomer(value);
4462
+ break;
4463
+ case 3:
4464
+ var value = /** @type {string} */ (reader.readString());
4465
+ msg.addCurrencyFrom(value);
4466
+ break;
4467
+ case 4:
4468
+ var value = /** @type {string} */ (reader.readString());
4469
+ msg.setCurrencyTo(value);
4470
+ break;
4471
+ default:
4472
+ reader.skipField();
4473
+ break;
4474
+ }
4475
+ }
4476
+ return msg;
4477
+ };
4478
+
4479
+
4480
+ /**
4481
+ * Serializes the message to binary data (in protobuf wire format).
4482
+ * @return {!Uint8Array}
4483
+ */
4484
+ proto.config.CurrenciesRatesRequest.prototype.serializeBinary = function() {
4485
+ var writer = new jspb.BinaryWriter();
4486
+ proto.config.CurrenciesRatesRequest.serializeBinaryToWriter(this, writer);
4487
+ return writer.getResultBuffer();
4488
+ };
4489
+
4490
+
4491
+ /**
4492
+ * Serializes the given message to binary data (in protobuf wire
4493
+ * format), writing to the given BinaryWriter.
4494
+ * @param {!proto.config.CurrenciesRatesRequest} message
4495
+ * @param {!jspb.BinaryWriter} writer
4496
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4497
+ */
4498
+ proto.config.CurrenciesRatesRequest.serializeBinaryToWriter = function(message, writer) {
4499
+ var f = undefined;
4500
+ f = message.getEnvironment();
4501
+ if (f.length > 0) {
4502
+ writer.writeString(
4503
+ 1,
4504
+ f
4505
+ );
4506
+ }
4507
+ f = message.getCustomer();
4508
+ if (f.length > 0) {
4509
+ writer.writeString(
4510
+ 2,
4511
+ f
4512
+ );
4513
+ }
4514
+ f = message.getCurrencyFromList();
4515
+ if (f.length > 0) {
4516
+ writer.writeRepeatedString(
4517
+ 3,
4518
+ f
4519
+ );
4520
+ }
4521
+ f = message.getCurrencyTo();
4522
+ if (f.length > 0) {
4523
+ writer.writeString(
4524
+ 4,
4525
+ f
4526
+ );
4527
+ }
4528
+ };
4529
+
4530
+
4531
+ /**
4532
+ * optional string environment = 1;
4533
+ * @return {string}
4534
+ */
4535
+ proto.config.CurrenciesRatesRequest.prototype.getEnvironment = function() {
4536
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
4537
+ };
4538
+
4539
+
4540
+ /**
4541
+ * @param {string} value
4542
+ * @return {!proto.config.CurrenciesRatesRequest} returns this
4543
+ */
4544
+ proto.config.CurrenciesRatesRequest.prototype.setEnvironment = function(value) {
4545
+ return jspb.Message.setProto3StringField(this, 1, value);
4546
+ };
4547
+
4548
+
4549
+ /**
4550
+ * optional string customer = 2;
4551
+ * @return {string}
4552
+ */
4553
+ proto.config.CurrenciesRatesRequest.prototype.getCustomer = function() {
4554
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
4555
+ };
4556
+
4557
+
4558
+ /**
4559
+ * @param {string} value
4560
+ * @return {!proto.config.CurrenciesRatesRequest} returns this
4561
+ */
4562
+ proto.config.CurrenciesRatesRequest.prototype.setCustomer = function(value) {
4563
+ return jspb.Message.setProto3StringField(this, 2, value);
4564
+ };
4565
+
4566
+
4567
+ /**
4568
+ * repeated string currency_from = 3;
4569
+ * @return {!Array<string>}
4570
+ */
4571
+ proto.config.CurrenciesRatesRequest.prototype.getCurrencyFromList = function() {
4572
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
4573
+ };
4574
+
4575
+
4576
+ /**
4577
+ * @param {!Array<string>} value
4578
+ * @return {!proto.config.CurrenciesRatesRequest} returns this
4579
+ */
4580
+ proto.config.CurrenciesRatesRequest.prototype.setCurrencyFromList = function(value) {
4581
+ return jspb.Message.setField(this, 3, value || []);
4582
+ };
4583
+
4584
+
4585
+ /**
4586
+ * @param {string} value
4587
+ * @param {number=} opt_index
4588
+ * @return {!proto.config.CurrenciesRatesRequest} returns this
4589
+ */
4590
+ proto.config.CurrenciesRatesRequest.prototype.addCurrencyFrom = function(value, opt_index) {
4591
+ return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
4592
+ };
4593
+
4594
+
4595
+ /**
4596
+ * Clears the list making it empty but non-null.
4597
+ * @return {!proto.config.CurrenciesRatesRequest} returns this
4598
+ */
4599
+ proto.config.CurrenciesRatesRequest.prototype.clearCurrencyFromList = function() {
4600
+ return this.setCurrencyFromList([]);
4601
+ };
4602
+
4603
+
4604
+ /**
4605
+ * optional string currency_to = 4;
4606
+ * @return {string}
4607
+ */
4608
+ proto.config.CurrenciesRatesRequest.prototype.getCurrencyTo = function() {
4609
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
4610
+ };
4611
+
4612
+
4613
+ /**
4614
+ * @param {string} value
4615
+ * @return {!proto.config.CurrenciesRatesRequest} returns this
4616
+ */
4617
+ proto.config.CurrenciesRatesRequest.prototype.setCurrencyTo = function(value) {
4618
+ return jspb.Message.setProto3StringField(this, 4, value);
4619
+ };
4620
+
4621
+
4622
+
4623
+
4624
+
4625
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4626
+ /**
4627
+ * Creates an object representation of this proto.
4628
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4629
+ * Optional fields that are not set will be set to undefined.
4630
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4631
+ * For the list of reserved names please see:
4632
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4633
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4634
+ * JSPB instance for transitional soy proto support:
4635
+ * http://goto/soy-param-migration
4636
+ * @return {!Object}
4637
+ */
4638
+ proto.config.CurrencyRateItem.prototype.toObject = function(opt_includeInstance) {
4639
+ return proto.config.CurrencyRateItem.toObject(opt_includeInstance, this);
4640
+ };
4641
+
4642
+
4643
+ /**
4644
+ * Static version of the {@see toObject} method.
4645
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4646
+ * the JSPB instance for transitional soy proto support:
4647
+ * http://goto/soy-param-migration
4648
+ * @param {!proto.config.CurrencyRateItem} msg The msg instance to transform.
4649
+ * @return {!Object}
4650
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4651
+ */
4652
+ proto.config.CurrencyRateItem.toObject = function(includeInstance, msg) {
4653
+ var f, obj = {
4654
+ currencyFrom: jspb.Message.getFieldWithDefault(msg, 1, ""),
4655
+ currencyTo: jspb.Message.getFieldWithDefault(msg, 2, ""),
4656
+ rate: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0)
4657
+ };
4658
+
4659
+ if (includeInstance) {
4660
+ obj.$jspbMessageInstance = msg;
4661
+ }
4662
+ return obj;
4663
+ };
4664
+ }
4665
+
4666
+
4667
+ /**
4668
+ * Deserializes binary data (in protobuf wire format).
4669
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4670
+ * @return {!proto.config.CurrencyRateItem}
4671
+ */
4672
+ proto.config.CurrencyRateItem.deserializeBinary = function(bytes) {
4673
+ var reader = new jspb.BinaryReader(bytes);
4674
+ var msg = new proto.config.CurrencyRateItem;
4675
+ return proto.config.CurrencyRateItem.deserializeBinaryFromReader(msg, reader);
4676
+ };
4677
+
4678
+
4679
+ /**
4680
+ * Deserializes binary data (in protobuf wire format) from the
4681
+ * given reader into the given message object.
4682
+ * @param {!proto.config.CurrencyRateItem} msg The message object to deserialize into.
4683
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4684
+ * @return {!proto.config.CurrencyRateItem}
4685
+ */
4686
+ proto.config.CurrencyRateItem.deserializeBinaryFromReader = function(msg, reader) {
4687
+ while (reader.nextField()) {
4688
+ if (reader.isEndGroup()) {
4689
+ break;
4690
+ }
4691
+ var field = reader.getFieldNumber();
4692
+ switch (field) {
4693
+ case 1:
4694
+ var value = /** @type {string} */ (reader.readString());
4695
+ msg.setCurrencyFrom(value);
4696
+ break;
4697
+ case 2:
4698
+ var value = /** @type {string} */ (reader.readString());
4699
+ msg.setCurrencyTo(value);
4700
+ break;
4701
+ case 3:
4702
+ var value = /** @type {number} */ (reader.readDouble());
4703
+ msg.setRate(value);
4704
+ break;
4705
+ default:
4706
+ reader.skipField();
4707
+ break;
4708
+ }
4709
+ }
4710
+ return msg;
4711
+ };
4712
+
4713
+
4714
+ /**
4715
+ * Serializes the message to binary data (in protobuf wire format).
4716
+ * @return {!Uint8Array}
4717
+ */
4718
+ proto.config.CurrencyRateItem.prototype.serializeBinary = function() {
4719
+ var writer = new jspb.BinaryWriter();
4720
+ proto.config.CurrencyRateItem.serializeBinaryToWriter(this, writer);
4721
+ return writer.getResultBuffer();
4722
+ };
4723
+
4724
+
4725
+ /**
4726
+ * Serializes the given message to binary data (in protobuf wire
4727
+ * format), writing to the given BinaryWriter.
4728
+ * @param {!proto.config.CurrencyRateItem} message
4729
+ * @param {!jspb.BinaryWriter} writer
4730
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4731
+ */
4732
+ proto.config.CurrencyRateItem.serializeBinaryToWriter = function(message, writer) {
4733
+ var f = undefined;
4734
+ f = message.getCurrencyFrom();
4735
+ if (f.length > 0) {
4736
+ writer.writeString(
4737
+ 1,
4738
+ f
4739
+ );
4740
+ }
4741
+ f = message.getCurrencyTo();
4742
+ if (f.length > 0) {
4743
+ writer.writeString(
4744
+ 2,
4745
+ f
4746
+ );
4747
+ }
4748
+ f = message.getRate();
4749
+ if (f !== 0.0) {
4750
+ writer.writeDouble(
4751
+ 3,
4752
+ f
4753
+ );
4754
+ }
4755
+ };
4756
+
4757
+
4758
+ /**
4759
+ * optional string currency_from = 1;
4760
+ * @return {string}
4761
+ */
4762
+ proto.config.CurrencyRateItem.prototype.getCurrencyFrom = function() {
4763
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
4764
+ };
4765
+
4766
+
4767
+ /**
4768
+ * @param {string} value
4769
+ * @return {!proto.config.CurrencyRateItem} returns this
4770
+ */
4771
+ proto.config.CurrencyRateItem.prototype.setCurrencyFrom = function(value) {
4772
+ return jspb.Message.setProto3StringField(this, 1, value);
4773
+ };
4774
+
4775
+
4776
+ /**
4777
+ * optional string currency_to = 2;
4778
+ * @return {string}
4779
+ */
4780
+ proto.config.CurrencyRateItem.prototype.getCurrencyTo = function() {
4781
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
4782
+ };
4783
+
4784
+
4785
+ /**
4786
+ * @param {string} value
4787
+ * @return {!proto.config.CurrencyRateItem} returns this
4788
+ */
4789
+ proto.config.CurrencyRateItem.prototype.setCurrencyTo = function(value) {
4790
+ return jspb.Message.setProto3StringField(this, 2, value);
4791
+ };
4792
+
4793
+
4794
+ /**
4795
+ * optional double rate = 3;
4796
+ * @return {number}
4797
+ */
4798
+ proto.config.CurrencyRateItem.prototype.getRate = function() {
4799
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
4800
+ };
4801
+
4802
+
4803
+ /**
4804
+ * @param {number} value
4805
+ * @return {!proto.config.CurrencyRateItem} returns this
4806
+ */
4807
+ proto.config.CurrencyRateItem.prototype.setRate = function(value) {
4808
+ return jspb.Message.setProto3FloatField(this, 3, value);
4809
+ };
4810
+
4811
+
4812
+
4813
+ /**
4814
+ * List of repeated fields within this message type.
4815
+ * @private {!Array<number>}
4816
+ * @const
4817
+ */
4818
+ proto.config.CurrenciesRatesResponse.repeatedFields_ = [1];
4819
+
4820
+
4821
+
4822
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4823
+ /**
4824
+ * Creates an object representation of this proto.
4825
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4826
+ * Optional fields that are not set will be set to undefined.
4827
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4828
+ * For the list of reserved names please see:
4829
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4830
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4831
+ * JSPB instance for transitional soy proto support:
4832
+ * http://goto/soy-param-migration
4833
+ * @return {!Object}
4834
+ */
4835
+ proto.config.CurrenciesRatesResponse.prototype.toObject = function(opt_includeInstance) {
4836
+ return proto.config.CurrenciesRatesResponse.toObject(opt_includeInstance, this);
4837
+ };
4838
+
4839
+
4840
+ /**
4841
+ * Static version of the {@see toObject} method.
4842
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4843
+ * the JSPB instance for transitional soy proto support:
4844
+ * http://goto/soy-param-migration
4845
+ * @param {!proto.config.CurrenciesRatesResponse} msg The msg instance to transform.
4846
+ * @return {!Object}
4847
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4848
+ */
4849
+ proto.config.CurrenciesRatesResponse.toObject = function(includeInstance, msg) {
4850
+ var f, obj = {
4851
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
4852
+ proto.config.CurrencyRateItem.toObject, includeInstance)
4853
+ };
4854
+
4855
+ if (includeInstance) {
4856
+ obj.$jspbMessageInstance = msg;
4857
+ }
4858
+ return obj;
4859
+ };
4860
+ }
4861
+
4862
+
4863
+ /**
4864
+ * Deserializes binary data (in protobuf wire format).
4865
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4866
+ * @return {!proto.config.CurrenciesRatesResponse}
4867
+ */
4868
+ proto.config.CurrenciesRatesResponse.deserializeBinary = function(bytes) {
4869
+ var reader = new jspb.BinaryReader(bytes);
4870
+ var msg = new proto.config.CurrenciesRatesResponse;
4871
+ return proto.config.CurrenciesRatesResponse.deserializeBinaryFromReader(msg, reader);
4872
+ };
4873
+
4874
+
4875
+ /**
4876
+ * Deserializes binary data (in protobuf wire format) from the
4877
+ * given reader into the given message object.
4878
+ * @param {!proto.config.CurrenciesRatesResponse} msg The message object to deserialize into.
4879
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4880
+ * @return {!proto.config.CurrenciesRatesResponse}
4881
+ */
4882
+ proto.config.CurrenciesRatesResponse.deserializeBinaryFromReader = function(msg, reader) {
4883
+ while (reader.nextField()) {
4884
+ if (reader.isEndGroup()) {
4885
+ break;
4886
+ }
4887
+ var field = reader.getFieldNumber();
4888
+ switch (field) {
4889
+ case 1:
4890
+ var value = new proto.config.CurrencyRateItem;
4891
+ reader.readMessage(value,proto.config.CurrencyRateItem.deserializeBinaryFromReader);
4892
+ msg.addItems(value);
4893
+ break;
4894
+ default:
4895
+ reader.skipField();
4896
+ break;
4897
+ }
4898
+ }
4899
+ return msg;
4900
+ };
4901
+
4902
+
4903
+ /**
4904
+ * Serializes the message to binary data (in protobuf wire format).
4905
+ * @return {!Uint8Array}
4906
+ */
4907
+ proto.config.CurrenciesRatesResponse.prototype.serializeBinary = function() {
4908
+ var writer = new jspb.BinaryWriter();
4909
+ proto.config.CurrenciesRatesResponse.serializeBinaryToWriter(this, writer);
4910
+ return writer.getResultBuffer();
4911
+ };
4912
+
4913
+
4914
+ /**
4915
+ * Serializes the given message to binary data (in protobuf wire
4916
+ * format), writing to the given BinaryWriter.
4917
+ * @param {!proto.config.CurrenciesRatesResponse} message
4918
+ * @param {!jspb.BinaryWriter} writer
4919
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4920
+ */
4921
+ proto.config.CurrenciesRatesResponse.serializeBinaryToWriter = function(message, writer) {
4922
+ var f = undefined;
4923
+ f = message.getItemsList();
4924
+ if (f.length > 0) {
4925
+ writer.writeRepeatedMessage(
4926
+ 1,
4927
+ f,
4928
+ proto.config.CurrencyRateItem.serializeBinaryToWriter
4929
+ );
4930
+ }
4931
+ };
4932
+
4933
+
4934
+ /**
4935
+ * repeated CurrencyRateItem items = 1;
4936
+ * @return {!Array<!proto.config.CurrencyRateItem>}
4937
+ */
4938
+ proto.config.CurrenciesRatesResponse.prototype.getItemsList = function() {
4939
+ return /** @type{!Array<!proto.config.CurrencyRateItem>} */ (
4940
+ jspb.Message.getRepeatedWrapperField(this, proto.config.CurrencyRateItem, 1));
4941
+ };
4942
+
4943
+
4944
+ /**
4945
+ * @param {!Array<!proto.config.CurrencyRateItem>} value
4946
+ * @return {!proto.config.CurrenciesRatesResponse} returns this
4947
+ */
4948
+ proto.config.CurrenciesRatesResponse.prototype.setItemsList = function(value) {
4949
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
4950
+ };
4951
+
4952
+
4953
+ /**
4954
+ * @param {!proto.config.CurrencyRateItem=} opt_value
4955
+ * @param {number=} opt_index
4956
+ * @return {!proto.config.CurrencyRateItem}
4957
+ */
4958
+ proto.config.CurrenciesRatesResponse.prototype.addItems = function(opt_value, opt_index) {
4959
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.config.CurrencyRateItem, opt_index);
4960
+ };
4961
+
4962
+
4963
+ /**
4964
+ * Clears the list making it empty but non-null.
4965
+ * @return {!proto.config.CurrenciesRatesResponse} returns this
4966
+ */
4967
+ proto.config.CurrenciesRatesResponse.prototype.clearItemsList = function() {
4968
+ return this.setItemsList([]);
4969
+ };
4970
+
4971
+
4972
+
4311
4973
 
4312
4974
 
4313
4975
  if (jspb.Message.GENERATE_TO_OBJECT) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.319",
3
+ "version": "1.2.320",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/user/user.proto CHANGED
@@ -14,6 +14,7 @@ service User {
14
14
  rpc getUserBalance(UserDataRequest) returns (UserDataResponse);
15
15
  rpc updateUserBalance(UserBalanceRequest) returns (UserDataResponse);
16
16
  rpc checkWithdrawalEligibility(CheckWithdrawalEligibilityRequest) returns (CheckWithdrawalEligibilityResponse);
17
+ rpc getUserWalletBalances(GetUserWalletBalancesRequest) returns (UserWalletBalancesResponse);
17
18
  rpc getUserCachedData(UserDataRequest) returns (UserDataResponse);
18
19
  rpc getPumpKingsMyTokenWidgetLaunchData(GetPumpKingsMyTokenWidgetLaunchDataRequest) returns (GetPumpKingsMyTokenWidgetLaunchDataResponse);
19
20
  rpc getUserAffiliateAttribution(UserAffiliateAttributionRequest) returns (UserAffiliateAttributionResponse);
@@ -280,6 +281,19 @@ message CheckWithdrawalEligibilityResponse {
280
281
  optional string currency = 4;
281
282
  optional int32 currency_scale = 5;
282
283
  }
284
+ message GetUserWalletBalancesRequest {
285
+ int32 user_id = 1;
286
+ }
287
+ message UserWalletBalanceItem {
288
+ string currency = 1;
289
+ int32 currency_scale = 2;
290
+ int64 real_amount_minor = 3;
291
+ int64 bonus_amount_minor = 4;
292
+ optional string updated_at = 5;
293
+ }
294
+ message UserWalletBalancesResponse {
295
+ repeated UserWalletBalanceItem items = 1;
296
+ }
283
297
  message UserPasswordRequest {
284
298
  int32 id = 1;
285
299
  string current_password = 2;