protobuf-platform 1.2.504 → 1.2.505

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.
@@ -56,6 +56,7 @@ goog.exportSymbol('proto.payment.GetDepositRequest', null, global);
56
56
  goog.exportSymbol('proto.payment.GetFileRequest', null, global);
57
57
  goog.exportSymbol('proto.payment.GetMethodRequest', null, global);
58
58
  goog.exportSymbol('proto.payment.GetOperationDetailsRequest', null, global);
59
+ goog.exportSymbol('proto.payment.GetPaymentMethodSnapshotsByIdsRequest', null, global);
59
60
  goog.exportSymbol('proto.payment.GetProviderRequest', null, global);
60
61
  goog.exportSymbol('proto.payment.GetProviderTranslationRequest', null, global);
61
62
  goog.exportSymbol('proto.payment.GetUserDepositCountRequest', null, global);
@@ -83,6 +84,8 @@ goog.exportSymbol('proto.payment.OperationLedgerItem', null, global);
83
84
  goog.exportSymbol('proto.payment.PaginationRequest', null, global);
84
85
  goog.exportSymbol('proto.payment.PaymentMethodConfigRequest', null, global);
85
86
  goog.exportSymbol('proto.payment.PaymentMethodConfigResponse', null, global);
87
+ goog.exportSymbol('proto.payment.PaymentMethodSnapshotItem', null, global);
88
+ goog.exportSymbol('proto.payment.PaymentMethodSnapshotItemsResponse', null, global);
86
89
  goog.exportSymbol('proto.payment.PaymentSearchRequest', null, global);
87
90
  goog.exportSymbol('proto.payment.PaymentStatusResponse', null, global);
88
91
  goog.exportSymbol('proto.payment.PingRequest', null, global);
@@ -644,6 +647,69 @@ if (goog.DEBUG && !COMPILED) {
644
647
  */
645
648
  proto.payment.PoorMethodsRequest.displayName = 'proto.payment.PoorMethodsRequest';
646
649
  }
650
+ /**
651
+ * Generated by JsPbCodeGenerator.
652
+ * @param {Array=} opt_data Optional initial data array, typically from a
653
+ * server response, or constructed directly in Javascript. The array is used
654
+ * in place and becomes part of the constructed object. It is not cloned.
655
+ * If no data is provided, the constructed object will be empty, but still
656
+ * valid.
657
+ * @extends {jspb.Message}
658
+ * @constructor
659
+ */
660
+ proto.payment.GetPaymentMethodSnapshotsByIdsRequest = function(opt_data) {
661
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.payment.GetPaymentMethodSnapshotsByIdsRequest.repeatedFields_, null);
662
+ };
663
+ goog.inherits(proto.payment.GetPaymentMethodSnapshotsByIdsRequest, jspb.Message);
664
+ if (goog.DEBUG && !COMPILED) {
665
+ /**
666
+ * @public
667
+ * @override
668
+ */
669
+ proto.payment.GetPaymentMethodSnapshotsByIdsRequest.displayName = 'proto.payment.GetPaymentMethodSnapshotsByIdsRequest';
670
+ }
671
+ /**
672
+ * Generated by JsPbCodeGenerator.
673
+ * @param {Array=} opt_data Optional initial data array, typically from a
674
+ * server response, or constructed directly in Javascript. The array is used
675
+ * in place and becomes part of the constructed object. It is not cloned.
676
+ * If no data is provided, the constructed object will be empty, but still
677
+ * valid.
678
+ * @extends {jspb.Message}
679
+ * @constructor
680
+ */
681
+ proto.payment.PaymentMethodSnapshotItem = function(opt_data) {
682
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
683
+ };
684
+ goog.inherits(proto.payment.PaymentMethodSnapshotItem, jspb.Message);
685
+ if (goog.DEBUG && !COMPILED) {
686
+ /**
687
+ * @public
688
+ * @override
689
+ */
690
+ proto.payment.PaymentMethodSnapshotItem.displayName = 'proto.payment.PaymentMethodSnapshotItem';
691
+ }
692
+ /**
693
+ * Generated by JsPbCodeGenerator.
694
+ * @param {Array=} opt_data Optional initial data array, typically from a
695
+ * server response, or constructed directly in Javascript. The array is used
696
+ * in place and becomes part of the constructed object. It is not cloned.
697
+ * If no data is provided, the constructed object will be empty, but still
698
+ * valid.
699
+ * @extends {jspb.Message}
700
+ * @constructor
701
+ */
702
+ proto.payment.PaymentMethodSnapshotItemsResponse = function(opt_data) {
703
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.payment.PaymentMethodSnapshotItemsResponse.repeatedFields_, null);
704
+ };
705
+ goog.inherits(proto.payment.PaymentMethodSnapshotItemsResponse, jspb.Message);
706
+ if (goog.DEBUG && !COMPILED) {
707
+ /**
708
+ * @public
709
+ * @override
710
+ */
711
+ proto.payment.PaymentMethodSnapshotItemsResponse.displayName = 'proto.payment.PaymentMethodSnapshotItemsResponse';
712
+ }
647
713
  /**
648
714
  * Generated by JsPbCodeGenerator.
649
715
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -9308,6 +9374,1030 @@ proto.payment.PoorMethodsRequest.prototype.clearMethodIdsList = function() {
9308
9374
 
9309
9375
 
9310
9376
 
9377
+ /**
9378
+ * List of repeated fields within this message type.
9379
+ * @private {!Array<number>}
9380
+ * @const
9381
+ */
9382
+ proto.payment.GetPaymentMethodSnapshotsByIdsRequest.repeatedFields_ = [1];
9383
+
9384
+
9385
+
9386
+ if (jspb.Message.GENERATE_TO_OBJECT) {
9387
+ /**
9388
+ * Creates an object representation of this proto.
9389
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
9390
+ * Optional fields that are not set will be set to undefined.
9391
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
9392
+ * For the list of reserved names please see:
9393
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
9394
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
9395
+ * JSPB instance for transitional soy proto support:
9396
+ * http://goto/soy-param-migration
9397
+ * @return {!Object}
9398
+ */
9399
+ proto.payment.GetPaymentMethodSnapshotsByIdsRequest.prototype.toObject = function(opt_includeInstance) {
9400
+ return proto.payment.GetPaymentMethodSnapshotsByIdsRequest.toObject(opt_includeInstance, this);
9401
+ };
9402
+
9403
+
9404
+ /**
9405
+ * Static version of the {@see toObject} method.
9406
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
9407
+ * the JSPB instance for transitional soy proto support:
9408
+ * http://goto/soy-param-migration
9409
+ * @param {!proto.payment.GetPaymentMethodSnapshotsByIdsRequest} msg The msg instance to transform.
9410
+ * @return {!Object}
9411
+ * @suppress {unusedLocalVariables} f is only used for nested messages
9412
+ */
9413
+ proto.payment.GetPaymentMethodSnapshotsByIdsRequest.toObject = function(includeInstance, msg) {
9414
+ var f, obj = {
9415
+ idsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
9416
+ };
9417
+
9418
+ if (includeInstance) {
9419
+ obj.$jspbMessageInstance = msg;
9420
+ }
9421
+ return obj;
9422
+ };
9423
+ }
9424
+
9425
+
9426
+ /**
9427
+ * Deserializes binary data (in protobuf wire format).
9428
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
9429
+ * @return {!proto.payment.GetPaymentMethodSnapshotsByIdsRequest}
9430
+ */
9431
+ proto.payment.GetPaymentMethodSnapshotsByIdsRequest.deserializeBinary = function(bytes) {
9432
+ var reader = new jspb.BinaryReader(bytes);
9433
+ var msg = new proto.payment.GetPaymentMethodSnapshotsByIdsRequest;
9434
+ return proto.payment.GetPaymentMethodSnapshotsByIdsRequest.deserializeBinaryFromReader(msg, reader);
9435
+ };
9436
+
9437
+
9438
+ /**
9439
+ * Deserializes binary data (in protobuf wire format) from the
9440
+ * given reader into the given message object.
9441
+ * @param {!proto.payment.GetPaymentMethodSnapshotsByIdsRequest} msg The message object to deserialize into.
9442
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
9443
+ * @return {!proto.payment.GetPaymentMethodSnapshotsByIdsRequest}
9444
+ */
9445
+ proto.payment.GetPaymentMethodSnapshotsByIdsRequest.deserializeBinaryFromReader = function(msg, reader) {
9446
+ while (reader.nextField()) {
9447
+ if (reader.isEndGroup()) {
9448
+ break;
9449
+ }
9450
+ var field = reader.getFieldNumber();
9451
+ switch (field) {
9452
+ case 1:
9453
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
9454
+ for (var i = 0; i < values.length; i++) {
9455
+ msg.addIds(values[i]);
9456
+ }
9457
+ break;
9458
+ default:
9459
+ reader.skipField();
9460
+ break;
9461
+ }
9462
+ }
9463
+ return msg;
9464
+ };
9465
+
9466
+
9467
+ /**
9468
+ * Serializes the message to binary data (in protobuf wire format).
9469
+ * @return {!Uint8Array}
9470
+ */
9471
+ proto.payment.GetPaymentMethodSnapshotsByIdsRequest.prototype.serializeBinary = function() {
9472
+ var writer = new jspb.BinaryWriter();
9473
+ proto.payment.GetPaymentMethodSnapshotsByIdsRequest.serializeBinaryToWriter(this, writer);
9474
+ return writer.getResultBuffer();
9475
+ };
9476
+
9477
+
9478
+ /**
9479
+ * Serializes the given message to binary data (in protobuf wire
9480
+ * format), writing to the given BinaryWriter.
9481
+ * @param {!proto.payment.GetPaymentMethodSnapshotsByIdsRequest} message
9482
+ * @param {!jspb.BinaryWriter} writer
9483
+ * @suppress {unusedLocalVariables} f is only used for nested messages
9484
+ */
9485
+ proto.payment.GetPaymentMethodSnapshotsByIdsRequest.serializeBinaryToWriter = function(message, writer) {
9486
+ var f = undefined;
9487
+ f = message.getIdsList();
9488
+ if (f.length > 0) {
9489
+ writer.writePackedInt32(
9490
+ 1,
9491
+ f
9492
+ );
9493
+ }
9494
+ };
9495
+
9496
+
9497
+ /**
9498
+ * repeated int32 ids = 1;
9499
+ * @return {!Array<number>}
9500
+ */
9501
+ proto.payment.GetPaymentMethodSnapshotsByIdsRequest.prototype.getIdsList = function() {
9502
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 1));
9503
+ };
9504
+
9505
+
9506
+ /**
9507
+ * @param {!Array<number>} value
9508
+ * @return {!proto.payment.GetPaymentMethodSnapshotsByIdsRequest} returns this
9509
+ */
9510
+ proto.payment.GetPaymentMethodSnapshotsByIdsRequest.prototype.setIdsList = function(value) {
9511
+ return jspb.Message.setField(this, 1, value || []);
9512
+ };
9513
+
9514
+
9515
+ /**
9516
+ * @param {number} value
9517
+ * @param {number=} opt_index
9518
+ * @return {!proto.payment.GetPaymentMethodSnapshotsByIdsRequest} returns this
9519
+ */
9520
+ proto.payment.GetPaymentMethodSnapshotsByIdsRequest.prototype.addIds = function(value, opt_index) {
9521
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
9522
+ };
9523
+
9524
+
9525
+ /**
9526
+ * Clears the list making it empty but non-null.
9527
+ * @return {!proto.payment.GetPaymentMethodSnapshotsByIdsRequest} returns this
9528
+ */
9529
+ proto.payment.GetPaymentMethodSnapshotsByIdsRequest.prototype.clearIdsList = function() {
9530
+ return this.setIdsList([]);
9531
+ };
9532
+
9533
+
9534
+
9535
+
9536
+
9537
+ if (jspb.Message.GENERATE_TO_OBJECT) {
9538
+ /**
9539
+ * Creates an object representation of this proto.
9540
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
9541
+ * Optional fields that are not set will be set to undefined.
9542
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
9543
+ * For the list of reserved names please see:
9544
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
9545
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
9546
+ * JSPB instance for transitional soy proto support:
9547
+ * http://goto/soy-param-migration
9548
+ * @return {!Object}
9549
+ */
9550
+ proto.payment.PaymentMethodSnapshotItem.prototype.toObject = function(opt_includeInstance) {
9551
+ return proto.payment.PaymentMethodSnapshotItem.toObject(opt_includeInstance, this);
9552
+ };
9553
+
9554
+
9555
+ /**
9556
+ * Static version of the {@see toObject} method.
9557
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
9558
+ * the JSPB instance for transitional soy proto support:
9559
+ * http://goto/soy-param-migration
9560
+ * @param {!proto.payment.PaymentMethodSnapshotItem} msg The msg instance to transform.
9561
+ * @return {!Object}
9562
+ * @suppress {unusedLocalVariables} f is only used for nested messages
9563
+ */
9564
+ proto.payment.PaymentMethodSnapshotItem.toObject = function(includeInstance, msg) {
9565
+ var f, obj = {
9566
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
9567
+ title: jspb.Message.getFieldWithDefault(msg, 2, ""),
9568
+ code: jspb.Message.getFieldWithDefault(msg, 3, ""),
9569
+ description: jspb.Message.getFieldWithDefault(msg, 4, ""),
9570
+ image: jspb.Message.getFieldWithDefault(msg, 5, ""),
9571
+ imageCdn: jspb.Message.getFieldWithDefault(msg, 6, ""),
9572
+ isActive: jspb.Message.getBooleanFieldWithDefault(msg, 7, false),
9573
+ transactionType: jspb.Message.getFieldWithDefault(msg, 8, ""),
9574
+ currencyType: jspb.Message.getFieldWithDefault(msg, 9, ""),
9575
+ providerId: jspb.Message.getFieldWithDefault(msg, 10, 0),
9576
+ providerTitle: jspb.Message.getFieldWithDefault(msg, 11, ""),
9577
+ providerImage: jspb.Message.getFieldWithDefault(msg, 12, ""),
9578
+ providerImageCdn: jspb.Message.getFieldWithDefault(msg, 13, "")
9579
+ };
9580
+
9581
+ if (includeInstance) {
9582
+ obj.$jspbMessageInstance = msg;
9583
+ }
9584
+ return obj;
9585
+ };
9586
+ }
9587
+
9588
+
9589
+ /**
9590
+ * Deserializes binary data (in protobuf wire format).
9591
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
9592
+ * @return {!proto.payment.PaymentMethodSnapshotItem}
9593
+ */
9594
+ proto.payment.PaymentMethodSnapshotItem.deserializeBinary = function(bytes) {
9595
+ var reader = new jspb.BinaryReader(bytes);
9596
+ var msg = new proto.payment.PaymentMethodSnapshotItem;
9597
+ return proto.payment.PaymentMethodSnapshotItem.deserializeBinaryFromReader(msg, reader);
9598
+ };
9599
+
9600
+
9601
+ /**
9602
+ * Deserializes binary data (in protobuf wire format) from the
9603
+ * given reader into the given message object.
9604
+ * @param {!proto.payment.PaymentMethodSnapshotItem} msg The message object to deserialize into.
9605
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
9606
+ * @return {!proto.payment.PaymentMethodSnapshotItem}
9607
+ */
9608
+ proto.payment.PaymentMethodSnapshotItem.deserializeBinaryFromReader = function(msg, reader) {
9609
+ while (reader.nextField()) {
9610
+ if (reader.isEndGroup()) {
9611
+ break;
9612
+ }
9613
+ var field = reader.getFieldNumber();
9614
+ switch (field) {
9615
+ case 1:
9616
+ var value = /** @type {number} */ (reader.readInt32());
9617
+ msg.setId(value);
9618
+ break;
9619
+ case 2:
9620
+ var value = /** @type {string} */ (reader.readString());
9621
+ msg.setTitle(value);
9622
+ break;
9623
+ case 3:
9624
+ var value = /** @type {string} */ (reader.readString());
9625
+ msg.setCode(value);
9626
+ break;
9627
+ case 4:
9628
+ var value = /** @type {string} */ (reader.readString());
9629
+ msg.setDescription(value);
9630
+ break;
9631
+ case 5:
9632
+ var value = /** @type {string} */ (reader.readString());
9633
+ msg.setImage(value);
9634
+ break;
9635
+ case 6:
9636
+ var value = /** @type {string} */ (reader.readString());
9637
+ msg.setImageCdn(value);
9638
+ break;
9639
+ case 7:
9640
+ var value = /** @type {boolean} */ (reader.readBool());
9641
+ msg.setIsActive(value);
9642
+ break;
9643
+ case 8:
9644
+ var value = /** @type {string} */ (reader.readString());
9645
+ msg.setTransactionType(value);
9646
+ break;
9647
+ case 9:
9648
+ var value = /** @type {string} */ (reader.readString());
9649
+ msg.setCurrencyType(value);
9650
+ break;
9651
+ case 10:
9652
+ var value = /** @type {number} */ (reader.readInt32());
9653
+ msg.setProviderId(value);
9654
+ break;
9655
+ case 11:
9656
+ var value = /** @type {string} */ (reader.readString());
9657
+ msg.setProviderTitle(value);
9658
+ break;
9659
+ case 12:
9660
+ var value = /** @type {string} */ (reader.readString());
9661
+ msg.setProviderImage(value);
9662
+ break;
9663
+ case 13:
9664
+ var value = /** @type {string} */ (reader.readString());
9665
+ msg.setProviderImageCdn(value);
9666
+ break;
9667
+ default:
9668
+ reader.skipField();
9669
+ break;
9670
+ }
9671
+ }
9672
+ return msg;
9673
+ };
9674
+
9675
+
9676
+ /**
9677
+ * Serializes the message to binary data (in protobuf wire format).
9678
+ * @return {!Uint8Array}
9679
+ */
9680
+ proto.payment.PaymentMethodSnapshotItem.prototype.serializeBinary = function() {
9681
+ var writer = new jspb.BinaryWriter();
9682
+ proto.payment.PaymentMethodSnapshotItem.serializeBinaryToWriter(this, writer);
9683
+ return writer.getResultBuffer();
9684
+ };
9685
+
9686
+
9687
+ /**
9688
+ * Serializes the given message to binary data (in protobuf wire
9689
+ * format), writing to the given BinaryWriter.
9690
+ * @param {!proto.payment.PaymentMethodSnapshotItem} message
9691
+ * @param {!jspb.BinaryWriter} writer
9692
+ * @suppress {unusedLocalVariables} f is only used for nested messages
9693
+ */
9694
+ proto.payment.PaymentMethodSnapshotItem.serializeBinaryToWriter = function(message, writer) {
9695
+ var f = undefined;
9696
+ f = message.getId();
9697
+ if (f !== 0) {
9698
+ writer.writeInt32(
9699
+ 1,
9700
+ f
9701
+ );
9702
+ }
9703
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
9704
+ if (f != null) {
9705
+ writer.writeString(
9706
+ 2,
9707
+ f
9708
+ );
9709
+ }
9710
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
9711
+ if (f != null) {
9712
+ writer.writeString(
9713
+ 3,
9714
+ f
9715
+ );
9716
+ }
9717
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
9718
+ if (f != null) {
9719
+ writer.writeString(
9720
+ 4,
9721
+ f
9722
+ );
9723
+ }
9724
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
9725
+ if (f != null) {
9726
+ writer.writeString(
9727
+ 5,
9728
+ f
9729
+ );
9730
+ }
9731
+ f = /** @type {string} */ (jspb.Message.getField(message, 6));
9732
+ if (f != null) {
9733
+ writer.writeString(
9734
+ 6,
9735
+ f
9736
+ );
9737
+ }
9738
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 7));
9739
+ if (f != null) {
9740
+ writer.writeBool(
9741
+ 7,
9742
+ f
9743
+ );
9744
+ }
9745
+ f = /** @type {string} */ (jspb.Message.getField(message, 8));
9746
+ if (f != null) {
9747
+ writer.writeString(
9748
+ 8,
9749
+ f
9750
+ );
9751
+ }
9752
+ f = /** @type {string} */ (jspb.Message.getField(message, 9));
9753
+ if (f != null) {
9754
+ writer.writeString(
9755
+ 9,
9756
+ f
9757
+ );
9758
+ }
9759
+ f = /** @type {number} */ (jspb.Message.getField(message, 10));
9760
+ if (f != null) {
9761
+ writer.writeInt32(
9762
+ 10,
9763
+ f
9764
+ );
9765
+ }
9766
+ f = /** @type {string} */ (jspb.Message.getField(message, 11));
9767
+ if (f != null) {
9768
+ writer.writeString(
9769
+ 11,
9770
+ f
9771
+ );
9772
+ }
9773
+ f = /** @type {string} */ (jspb.Message.getField(message, 12));
9774
+ if (f != null) {
9775
+ writer.writeString(
9776
+ 12,
9777
+ f
9778
+ );
9779
+ }
9780
+ f = /** @type {string} */ (jspb.Message.getField(message, 13));
9781
+ if (f != null) {
9782
+ writer.writeString(
9783
+ 13,
9784
+ f
9785
+ );
9786
+ }
9787
+ };
9788
+
9789
+
9790
+ /**
9791
+ * optional int32 id = 1;
9792
+ * @return {number}
9793
+ */
9794
+ proto.payment.PaymentMethodSnapshotItem.prototype.getId = function() {
9795
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
9796
+ };
9797
+
9798
+
9799
+ /**
9800
+ * @param {number} value
9801
+ * @return {!proto.payment.PaymentMethodSnapshotItem} returns this
9802
+ */
9803
+ proto.payment.PaymentMethodSnapshotItem.prototype.setId = function(value) {
9804
+ return jspb.Message.setProto3IntField(this, 1, value);
9805
+ };
9806
+
9807
+
9808
+ /**
9809
+ * optional string title = 2;
9810
+ * @return {string}
9811
+ */
9812
+ proto.payment.PaymentMethodSnapshotItem.prototype.getTitle = function() {
9813
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
9814
+ };
9815
+
9816
+
9817
+ /**
9818
+ * @param {string} value
9819
+ * @return {!proto.payment.PaymentMethodSnapshotItem} returns this
9820
+ */
9821
+ proto.payment.PaymentMethodSnapshotItem.prototype.setTitle = function(value) {
9822
+ return jspb.Message.setField(this, 2, value);
9823
+ };
9824
+
9825
+
9826
+ /**
9827
+ * Clears the field making it undefined.
9828
+ * @return {!proto.payment.PaymentMethodSnapshotItem} returns this
9829
+ */
9830
+ proto.payment.PaymentMethodSnapshotItem.prototype.clearTitle = function() {
9831
+ return jspb.Message.setField(this, 2, undefined);
9832
+ };
9833
+
9834
+
9835
+ /**
9836
+ * Returns whether this field is set.
9837
+ * @return {boolean}
9838
+ */
9839
+ proto.payment.PaymentMethodSnapshotItem.prototype.hasTitle = function() {
9840
+ return jspb.Message.getField(this, 2) != null;
9841
+ };
9842
+
9843
+
9844
+ /**
9845
+ * optional string code = 3;
9846
+ * @return {string}
9847
+ */
9848
+ proto.payment.PaymentMethodSnapshotItem.prototype.getCode = function() {
9849
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
9850
+ };
9851
+
9852
+
9853
+ /**
9854
+ * @param {string} value
9855
+ * @return {!proto.payment.PaymentMethodSnapshotItem} returns this
9856
+ */
9857
+ proto.payment.PaymentMethodSnapshotItem.prototype.setCode = function(value) {
9858
+ return jspb.Message.setField(this, 3, value);
9859
+ };
9860
+
9861
+
9862
+ /**
9863
+ * Clears the field making it undefined.
9864
+ * @return {!proto.payment.PaymentMethodSnapshotItem} returns this
9865
+ */
9866
+ proto.payment.PaymentMethodSnapshotItem.prototype.clearCode = function() {
9867
+ return jspb.Message.setField(this, 3, undefined);
9868
+ };
9869
+
9870
+
9871
+ /**
9872
+ * Returns whether this field is set.
9873
+ * @return {boolean}
9874
+ */
9875
+ proto.payment.PaymentMethodSnapshotItem.prototype.hasCode = function() {
9876
+ return jspb.Message.getField(this, 3) != null;
9877
+ };
9878
+
9879
+
9880
+ /**
9881
+ * optional string description = 4;
9882
+ * @return {string}
9883
+ */
9884
+ proto.payment.PaymentMethodSnapshotItem.prototype.getDescription = function() {
9885
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
9886
+ };
9887
+
9888
+
9889
+ /**
9890
+ * @param {string} value
9891
+ * @return {!proto.payment.PaymentMethodSnapshotItem} returns this
9892
+ */
9893
+ proto.payment.PaymentMethodSnapshotItem.prototype.setDescription = function(value) {
9894
+ return jspb.Message.setField(this, 4, value);
9895
+ };
9896
+
9897
+
9898
+ /**
9899
+ * Clears the field making it undefined.
9900
+ * @return {!proto.payment.PaymentMethodSnapshotItem} returns this
9901
+ */
9902
+ proto.payment.PaymentMethodSnapshotItem.prototype.clearDescription = function() {
9903
+ return jspb.Message.setField(this, 4, undefined);
9904
+ };
9905
+
9906
+
9907
+ /**
9908
+ * Returns whether this field is set.
9909
+ * @return {boolean}
9910
+ */
9911
+ proto.payment.PaymentMethodSnapshotItem.prototype.hasDescription = function() {
9912
+ return jspb.Message.getField(this, 4) != null;
9913
+ };
9914
+
9915
+
9916
+ /**
9917
+ * optional string image = 5;
9918
+ * @return {string}
9919
+ */
9920
+ proto.payment.PaymentMethodSnapshotItem.prototype.getImage = function() {
9921
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
9922
+ };
9923
+
9924
+
9925
+ /**
9926
+ * @param {string} value
9927
+ * @return {!proto.payment.PaymentMethodSnapshotItem} returns this
9928
+ */
9929
+ proto.payment.PaymentMethodSnapshotItem.prototype.setImage = function(value) {
9930
+ return jspb.Message.setField(this, 5, value);
9931
+ };
9932
+
9933
+
9934
+ /**
9935
+ * Clears the field making it undefined.
9936
+ * @return {!proto.payment.PaymentMethodSnapshotItem} returns this
9937
+ */
9938
+ proto.payment.PaymentMethodSnapshotItem.prototype.clearImage = function() {
9939
+ return jspb.Message.setField(this, 5, undefined);
9940
+ };
9941
+
9942
+
9943
+ /**
9944
+ * Returns whether this field is set.
9945
+ * @return {boolean}
9946
+ */
9947
+ proto.payment.PaymentMethodSnapshotItem.prototype.hasImage = function() {
9948
+ return jspb.Message.getField(this, 5) != null;
9949
+ };
9950
+
9951
+
9952
+ /**
9953
+ * optional string image_cdn = 6;
9954
+ * @return {string}
9955
+ */
9956
+ proto.payment.PaymentMethodSnapshotItem.prototype.getImageCdn = function() {
9957
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
9958
+ };
9959
+
9960
+
9961
+ /**
9962
+ * @param {string} value
9963
+ * @return {!proto.payment.PaymentMethodSnapshotItem} returns this
9964
+ */
9965
+ proto.payment.PaymentMethodSnapshotItem.prototype.setImageCdn = function(value) {
9966
+ return jspb.Message.setField(this, 6, value);
9967
+ };
9968
+
9969
+
9970
+ /**
9971
+ * Clears the field making it undefined.
9972
+ * @return {!proto.payment.PaymentMethodSnapshotItem} returns this
9973
+ */
9974
+ proto.payment.PaymentMethodSnapshotItem.prototype.clearImageCdn = function() {
9975
+ return jspb.Message.setField(this, 6, undefined);
9976
+ };
9977
+
9978
+
9979
+ /**
9980
+ * Returns whether this field is set.
9981
+ * @return {boolean}
9982
+ */
9983
+ proto.payment.PaymentMethodSnapshotItem.prototype.hasImageCdn = function() {
9984
+ return jspb.Message.getField(this, 6) != null;
9985
+ };
9986
+
9987
+
9988
+ /**
9989
+ * optional bool is_active = 7;
9990
+ * @return {boolean}
9991
+ */
9992
+ proto.payment.PaymentMethodSnapshotItem.prototype.getIsActive = function() {
9993
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false));
9994
+ };
9995
+
9996
+
9997
+ /**
9998
+ * @param {boolean} value
9999
+ * @return {!proto.payment.PaymentMethodSnapshotItem} returns this
10000
+ */
10001
+ proto.payment.PaymentMethodSnapshotItem.prototype.setIsActive = function(value) {
10002
+ return jspb.Message.setField(this, 7, value);
10003
+ };
10004
+
10005
+
10006
+ /**
10007
+ * Clears the field making it undefined.
10008
+ * @return {!proto.payment.PaymentMethodSnapshotItem} returns this
10009
+ */
10010
+ proto.payment.PaymentMethodSnapshotItem.prototype.clearIsActive = function() {
10011
+ return jspb.Message.setField(this, 7, undefined);
10012
+ };
10013
+
10014
+
10015
+ /**
10016
+ * Returns whether this field is set.
10017
+ * @return {boolean}
10018
+ */
10019
+ proto.payment.PaymentMethodSnapshotItem.prototype.hasIsActive = function() {
10020
+ return jspb.Message.getField(this, 7) != null;
10021
+ };
10022
+
10023
+
10024
+ /**
10025
+ * optional string transaction_type = 8;
10026
+ * @return {string}
10027
+ */
10028
+ proto.payment.PaymentMethodSnapshotItem.prototype.getTransactionType = function() {
10029
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
10030
+ };
10031
+
10032
+
10033
+ /**
10034
+ * @param {string} value
10035
+ * @return {!proto.payment.PaymentMethodSnapshotItem} returns this
10036
+ */
10037
+ proto.payment.PaymentMethodSnapshotItem.prototype.setTransactionType = function(value) {
10038
+ return jspb.Message.setField(this, 8, value);
10039
+ };
10040
+
10041
+
10042
+ /**
10043
+ * Clears the field making it undefined.
10044
+ * @return {!proto.payment.PaymentMethodSnapshotItem} returns this
10045
+ */
10046
+ proto.payment.PaymentMethodSnapshotItem.prototype.clearTransactionType = function() {
10047
+ return jspb.Message.setField(this, 8, undefined);
10048
+ };
10049
+
10050
+
10051
+ /**
10052
+ * Returns whether this field is set.
10053
+ * @return {boolean}
10054
+ */
10055
+ proto.payment.PaymentMethodSnapshotItem.prototype.hasTransactionType = function() {
10056
+ return jspb.Message.getField(this, 8) != null;
10057
+ };
10058
+
10059
+
10060
+ /**
10061
+ * optional string currency_type = 9;
10062
+ * @return {string}
10063
+ */
10064
+ proto.payment.PaymentMethodSnapshotItem.prototype.getCurrencyType = function() {
10065
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
10066
+ };
10067
+
10068
+
10069
+ /**
10070
+ * @param {string} value
10071
+ * @return {!proto.payment.PaymentMethodSnapshotItem} returns this
10072
+ */
10073
+ proto.payment.PaymentMethodSnapshotItem.prototype.setCurrencyType = function(value) {
10074
+ return jspb.Message.setField(this, 9, value);
10075
+ };
10076
+
10077
+
10078
+ /**
10079
+ * Clears the field making it undefined.
10080
+ * @return {!proto.payment.PaymentMethodSnapshotItem} returns this
10081
+ */
10082
+ proto.payment.PaymentMethodSnapshotItem.prototype.clearCurrencyType = function() {
10083
+ return jspb.Message.setField(this, 9, undefined);
10084
+ };
10085
+
10086
+
10087
+ /**
10088
+ * Returns whether this field is set.
10089
+ * @return {boolean}
10090
+ */
10091
+ proto.payment.PaymentMethodSnapshotItem.prototype.hasCurrencyType = function() {
10092
+ return jspb.Message.getField(this, 9) != null;
10093
+ };
10094
+
10095
+
10096
+ /**
10097
+ * optional int32 provider_id = 10;
10098
+ * @return {number}
10099
+ */
10100
+ proto.payment.PaymentMethodSnapshotItem.prototype.getProviderId = function() {
10101
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 10, 0));
10102
+ };
10103
+
10104
+
10105
+ /**
10106
+ * @param {number} value
10107
+ * @return {!proto.payment.PaymentMethodSnapshotItem} returns this
10108
+ */
10109
+ proto.payment.PaymentMethodSnapshotItem.prototype.setProviderId = function(value) {
10110
+ return jspb.Message.setField(this, 10, value);
10111
+ };
10112
+
10113
+
10114
+ /**
10115
+ * Clears the field making it undefined.
10116
+ * @return {!proto.payment.PaymentMethodSnapshotItem} returns this
10117
+ */
10118
+ proto.payment.PaymentMethodSnapshotItem.prototype.clearProviderId = function() {
10119
+ return jspb.Message.setField(this, 10, undefined);
10120
+ };
10121
+
10122
+
10123
+ /**
10124
+ * Returns whether this field is set.
10125
+ * @return {boolean}
10126
+ */
10127
+ proto.payment.PaymentMethodSnapshotItem.prototype.hasProviderId = function() {
10128
+ return jspb.Message.getField(this, 10) != null;
10129
+ };
10130
+
10131
+
10132
+ /**
10133
+ * optional string provider_title = 11;
10134
+ * @return {string}
10135
+ */
10136
+ proto.payment.PaymentMethodSnapshotItem.prototype.getProviderTitle = function() {
10137
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
10138
+ };
10139
+
10140
+
10141
+ /**
10142
+ * @param {string} value
10143
+ * @return {!proto.payment.PaymentMethodSnapshotItem} returns this
10144
+ */
10145
+ proto.payment.PaymentMethodSnapshotItem.prototype.setProviderTitle = function(value) {
10146
+ return jspb.Message.setField(this, 11, value);
10147
+ };
10148
+
10149
+
10150
+ /**
10151
+ * Clears the field making it undefined.
10152
+ * @return {!proto.payment.PaymentMethodSnapshotItem} returns this
10153
+ */
10154
+ proto.payment.PaymentMethodSnapshotItem.prototype.clearProviderTitle = function() {
10155
+ return jspb.Message.setField(this, 11, undefined);
10156
+ };
10157
+
10158
+
10159
+ /**
10160
+ * Returns whether this field is set.
10161
+ * @return {boolean}
10162
+ */
10163
+ proto.payment.PaymentMethodSnapshotItem.prototype.hasProviderTitle = function() {
10164
+ return jspb.Message.getField(this, 11) != null;
10165
+ };
10166
+
10167
+
10168
+ /**
10169
+ * optional string provider_image = 12;
10170
+ * @return {string}
10171
+ */
10172
+ proto.payment.PaymentMethodSnapshotItem.prototype.getProviderImage = function() {
10173
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
10174
+ };
10175
+
10176
+
10177
+ /**
10178
+ * @param {string} value
10179
+ * @return {!proto.payment.PaymentMethodSnapshotItem} returns this
10180
+ */
10181
+ proto.payment.PaymentMethodSnapshotItem.prototype.setProviderImage = function(value) {
10182
+ return jspb.Message.setField(this, 12, value);
10183
+ };
10184
+
10185
+
10186
+ /**
10187
+ * Clears the field making it undefined.
10188
+ * @return {!proto.payment.PaymentMethodSnapshotItem} returns this
10189
+ */
10190
+ proto.payment.PaymentMethodSnapshotItem.prototype.clearProviderImage = function() {
10191
+ return jspb.Message.setField(this, 12, undefined);
10192
+ };
10193
+
10194
+
10195
+ /**
10196
+ * Returns whether this field is set.
10197
+ * @return {boolean}
10198
+ */
10199
+ proto.payment.PaymentMethodSnapshotItem.prototype.hasProviderImage = function() {
10200
+ return jspb.Message.getField(this, 12) != null;
10201
+ };
10202
+
10203
+
10204
+ /**
10205
+ * optional string provider_image_cdn = 13;
10206
+ * @return {string}
10207
+ */
10208
+ proto.payment.PaymentMethodSnapshotItem.prototype.getProviderImageCdn = function() {
10209
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
10210
+ };
10211
+
10212
+
10213
+ /**
10214
+ * @param {string} value
10215
+ * @return {!proto.payment.PaymentMethodSnapshotItem} returns this
10216
+ */
10217
+ proto.payment.PaymentMethodSnapshotItem.prototype.setProviderImageCdn = function(value) {
10218
+ return jspb.Message.setField(this, 13, value);
10219
+ };
10220
+
10221
+
10222
+ /**
10223
+ * Clears the field making it undefined.
10224
+ * @return {!proto.payment.PaymentMethodSnapshotItem} returns this
10225
+ */
10226
+ proto.payment.PaymentMethodSnapshotItem.prototype.clearProviderImageCdn = function() {
10227
+ return jspb.Message.setField(this, 13, undefined);
10228
+ };
10229
+
10230
+
10231
+ /**
10232
+ * Returns whether this field is set.
10233
+ * @return {boolean}
10234
+ */
10235
+ proto.payment.PaymentMethodSnapshotItem.prototype.hasProviderImageCdn = function() {
10236
+ return jspb.Message.getField(this, 13) != null;
10237
+ };
10238
+
10239
+
10240
+
10241
+ /**
10242
+ * List of repeated fields within this message type.
10243
+ * @private {!Array<number>}
10244
+ * @const
10245
+ */
10246
+ proto.payment.PaymentMethodSnapshotItemsResponse.repeatedFields_ = [1];
10247
+
10248
+
10249
+
10250
+ if (jspb.Message.GENERATE_TO_OBJECT) {
10251
+ /**
10252
+ * Creates an object representation of this proto.
10253
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
10254
+ * Optional fields that are not set will be set to undefined.
10255
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
10256
+ * For the list of reserved names please see:
10257
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
10258
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
10259
+ * JSPB instance for transitional soy proto support:
10260
+ * http://goto/soy-param-migration
10261
+ * @return {!Object}
10262
+ */
10263
+ proto.payment.PaymentMethodSnapshotItemsResponse.prototype.toObject = function(opt_includeInstance) {
10264
+ return proto.payment.PaymentMethodSnapshotItemsResponse.toObject(opt_includeInstance, this);
10265
+ };
10266
+
10267
+
10268
+ /**
10269
+ * Static version of the {@see toObject} method.
10270
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
10271
+ * the JSPB instance for transitional soy proto support:
10272
+ * http://goto/soy-param-migration
10273
+ * @param {!proto.payment.PaymentMethodSnapshotItemsResponse} msg The msg instance to transform.
10274
+ * @return {!Object}
10275
+ * @suppress {unusedLocalVariables} f is only used for nested messages
10276
+ */
10277
+ proto.payment.PaymentMethodSnapshotItemsResponse.toObject = function(includeInstance, msg) {
10278
+ var f, obj = {
10279
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
10280
+ proto.payment.PaymentMethodSnapshotItem.toObject, includeInstance)
10281
+ };
10282
+
10283
+ if (includeInstance) {
10284
+ obj.$jspbMessageInstance = msg;
10285
+ }
10286
+ return obj;
10287
+ };
10288
+ }
10289
+
10290
+
10291
+ /**
10292
+ * Deserializes binary data (in protobuf wire format).
10293
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
10294
+ * @return {!proto.payment.PaymentMethodSnapshotItemsResponse}
10295
+ */
10296
+ proto.payment.PaymentMethodSnapshotItemsResponse.deserializeBinary = function(bytes) {
10297
+ var reader = new jspb.BinaryReader(bytes);
10298
+ var msg = new proto.payment.PaymentMethodSnapshotItemsResponse;
10299
+ return proto.payment.PaymentMethodSnapshotItemsResponse.deserializeBinaryFromReader(msg, reader);
10300
+ };
10301
+
10302
+
10303
+ /**
10304
+ * Deserializes binary data (in protobuf wire format) from the
10305
+ * given reader into the given message object.
10306
+ * @param {!proto.payment.PaymentMethodSnapshotItemsResponse} msg The message object to deserialize into.
10307
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
10308
+ * @return {!proto.payment.PaymentMethodSnapshotItemsResponse}
10309
+ */
10310
+ proto.payment.PaymentMethodSnapshotItemsResponse.deserializeBinaryFromReader = function(msg, reader) {
10311
+ while (reader.nextField()) {
10312
+ if (reader.isEndGroup()) {
10313
+ break;
10314
+ }
10315
+ var field = reader.getFieldNumber();
10316
+ switch (field) {
10317
+ case 1:
10318
+ var value = new proto.payment.PaymentMethodSnapshotItem;
10319
+ reader.readMessage(value,proto.payment.PaymentMethodSnapshotItem.deserializeBinaryFromReader);
10320
+ msg.addItems(value);
10321
+ break;
10322
+ default:
10323
+ reader.skipField();
10324
+ break;
10325
+ }
10326
+ }
10327
+ return msg;
10328
+ };
10329
+
10330
+
10331
+ /**
10332
+ * Serializes the message to binary data (in protobuf wire format).
10333
+ * @return {!Uint8Array}
10334
+ */
10335
+ proto.payment.PaymentMethodSnapshotItemsResponse.prototype.serializeBinary = function() {
10336
+ var writer = new jspb.BinaryWriter();
10337
+ proto.payment.PaymentMethodSnapshotItemsResponse.serializeBinaryToWriter(this, writer);
10338
+ return writer.getResultBuffer();
10339
+ };
10340
+
10341
+
10342
+ /**
10343
+ * Serializes the given message to binary data (in protobuf wire
10344
+ * format), writing to the given BinaryWriter.
10345
+ * @param {!proto.payment.PaymentMethodSnapshotItemsResponse} message
10346
+ * @param {!jspb.BinaryWriter} writer
10347
+ * @suppress {unusedLocalVariables} f is only used for nested messages
10348
+ */
10349
+ proto.payment.PaymentMethodSnapshotItemsResponse.serializeBinaryToWriter = function(message, writer) {
10350
+ var f = undefined;
10351
+ f = message.getItemsList();
10352
+ if (f.length > 0) {
10353
+ writer.writeRepeatedMessage(
10354
+ 1,
10355
+ f,
10356
+ proto.payment.PaymentMethodSnapshotItem.serializeBinaryToWriter
10357
+ );
10358
+ }
10359
+ };
10360
+
10361
+
10362
+ /**
10363
+ * repeated PaymentMethodSnapshotItem items = 1;
10364
+ * @return {!Array<!proto.payment.PaymentMethodSnapshotItem>}
10365
+ */
10366
+ proto.payment.PaymentMethodSnapshotItemsResponse.prototype.getItemsList = function() {
10367
+ return /** @type{!Array<!proto.payment.PaymentMethodSnapshotItem>} */ (
10368
+ jspb.Message.getRepeatedWrapperField(this, proto.payment.PaymentMethodSnapshotItem, 1));
10369
+ };
10370
+
10371
+
10372
+ /**
10373
+ * @param {!Array<!proto.payment.PaymentMethodSnapshotItem>} value
10374
+ * @return {!proto.payment.PaymentMethodSnapshotItemsResponse} returns this
10375
+ */
10376
+ proto.payment.PaymentMethodSnapshotItemsResponse.prototype.setItemsList = function(value) {
10377
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
10378
+ };
10379
+
10380
+
10381
+ /**
10382
+ * @param {!proto.payment.PaymentMethodSnapshotItem=} opt_value
10383
+ * @param {number=} opt_index
10384
+ * @return {!proto.payment.PaymentMethodSnapshotItem}
10385
+ */
10386
+ proto.payment.PaymentMethodSnapshotItemsResponse.prototype.addItems = function(opt_value, opt_index) {
10387
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.payment.PaymentMethodSnapshotItem, opt_index);
10388
+ };
10389
+
10390
+
10391
+ /**
10392
+ * Clears the list making it empty but non-null.
10393
+ * @return {!proto.payment.PaymentMethodSnapshotItemsResponse} returns this
10394
+ */
10395
+ proto.payment.PaymentMethodSnapshotItemsResponse.prototype.clearItemsList = function() {
10396
+ return this.setItemsList([]);
10397
+ };
10398
+
10399
+
10400
+
9311
10401
 
9312
10402
 
9313
10403
  if (jspb.Message.GENERATE_TO_OBJECT) {