protobuf-platform 1.2.338 → 1.2.340

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/game/game.proto CHANGED
@@ -913,6 +913,7 @@ message SEOInstanceResponse {
913
913
  repeated SEOAttribute attributes = 1;
914
914
  optional string full_description = 2;
915
915
  repeated SEOInstanceRelation relations = 3;
916
+ optional GameImages images = 4;
916
917
  }
917
918
  //Segmentation
918
919
  message SegmentedUserRequest {
package/game/game_pb.js CHANGED
@@ -38304,7 +38304,8 @@ proto.game.SEOInstanceResponse.toObject = function(includeInstance, msg) {
38304
38304
  proto.game.SEOAttribute.toObject, includeInstance),
38305
38305
  fullDescription: jspb.Message.getFieldWithDefault(msg, 2, ""),
38306
38306
  relationsList: jspb.Message.toObjectList(msg.getRelationsList(),
38307
- proto.game.SEOInstanceRelation.toObject, includeInstance)
38307
+ proto.game.SEOInstanceRelation.toObject, includeInstance),
38308
+ images: (f = msg.getImages()) && proto.game.GameImages.toObject(includeInstance, f)
38308
38309
  };
38309
38310
 
38310
38311
  if (includeInstance) {
@@ -38355,6 +38356,11 @@ proto.game.SEOInstanceResponse.deserializeBinaryFromReader = function(msg, reade
38355
38356
  reader.readMessage(value,proto.game.SEOInstanceRelation.deserializeBinaryFromReader);
38356
38357
  msg.addRelations(value);
38357
38358
  break;
38359
+ case 4:
38360
+ var value = new proto.game.GameImages;
38361
+ reader.readMessage(value,proto.game.GameImages.deserializeBinaryFromReader);
38362
+ msg.setImages(value);
38363
+ break;
38358
38364
  default:
38359
38365
  reader.skipField();
38360
38366
  break;
@@ -38407,6 +38413,14 @@ proto.game.SEOInstanceResponse.serializeBinaryToWriter = function(message, write
38407
38413
  proto.game.SEOInstanceRelation.serializeBinaryToWriter
38408
38414
  );
38409
38415
  }
38416
+ f = message.getImages();
38417
+ if (f != null) {
38418
+ writer.writeMessage(
38419
+ 4,
38420
+ f,
38421
+ proto.game.GameImages.serializeBinaryToWriter
38422
+ );
38423
+ }
38410
38424
  };
38411
38425
 
38412
38426
 
@@ -38522,6 +38536,43 @@ proto.game.SEOInstanceResponse.prototype.clearRelationsList = function() {
38522
38536
  };
38523
38537
 
38524
38538
 
38539
+ /**
38540
+ * optional GameImages images = 4;
38541
+ * @return {?proto.game.GameImages}
38542
+ */
38543
+ proto.game.SEOInstanceResponse.prototype.getImages = function() {
38544
+ return /** @type{?proto.game.GameImages} */ (
38545
+ jspb.Message.getWrapperField(this, proto.game.GameImages, 4));
38546
+ };
38547
+
38548
+
38549
+ /**
38550
+ * @param {?proto.game.GameImages|undefined} value
38551
+ * @return {!proto.game.SEOInstanceResponse} returns this
38552
+ */
38553
+ proto.game.SEOInstanceResponse.prototype.setImages = function(value) {
38554
+ return jspb.Message.setWrapperField(this, 4, value);
38555
+ };
38556
+
38557
+
38558
+ /**
38559
+ * Clears the message field making it undefined.
38560
+ * @return {!proto.game.SEOInstanceResponse} returns this
38561
+ */
38562
+ proto.game.SEOInstanceResponse.prototype.clearImages = function() {
38563
+ return this.setImages(undefined);
38564
+ };
38565
+
38566
+
38567
+ /**
38568
+ * Returns whether this field is set.
38569
+ * @return {boolean}
38570
+ */
38571
+ proto.game.SEOInstanceResponse.prototype.hasImages = function() {
38572
+ return jspb.Message.getField(this, 4) != null;
38573
+ };
38574
+
38575
+
38525
38576
 
38526
38577
  /**
38527
38578
  * List of repeated fields within this message type.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.338",
3
+ "version": "1.2.340",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -45,6 +45,7 @@ service Payment {
45
45
  rpc userPaymentsInfo(GetUserPaymentsInfoRequest) returns (UserPaymentsInfoResponse);
46
46
  rpc userDepositHistory(GetUserPaymentsInfoRequest) returns (UserDepositItemsResponse);
47
47
  rpc userWithdrawalHistory(GetUserPaymentsInfoRequest) returns (UserWithdrawalItemsResponse);
48
+ rpc userPaymentHistory(GetUserPaymentsInfoRequest) returns (UserPaymentHistoryItemsResponse);
48
49
  rpc getPaymentMethodsForUser(GetUserPaymentsInfoRequest) returns (UserPaymentMethodsResponse);
49
50
  //Segmentation
50
51
  rpc getSegmentedUsers(SegmentedUserRequest) returns (SegmentedUserResponse);
@@ -511,6 +512,30 @@ message UserWithdrawalItemsResponse {
511
512
  optional int32 total_pages = 2;
512
513
  optional int32 total_items = 3;
513
514
  }
515
+ message UserPaymentHistoryItem {
516
+ string transaction_type = 1;
517
+ int32 transaction_id = 2;
518
+ float amount = 3;
519
+ optional float amount_attempt = 4;
520
+ optional float amount_paid = 5;
521
+ optional float fee = 6;
522
+ string currency = 7;
523
+ optional string payment_method_title = 8;
524
+ optional string payment_provider_image = 9;
525
+ optional string payment_provider_image_cdn = 10;
526
+ optional string payment_provider_title = 11;
527
+ optional int32 status_id = 12;
528
+ optional string created = 13;
529
+ optional string status = 14;
530
+ optional string destination = 15;
531
+ optional string destination_type = 16;
532
+ optional string external_ref = 17;
533
+ }
534
+ message UserPaymentHistoryItemsResponse {
535
+ repeated UserPaymentHistoryItem items = 1;
536
+ optional int32 total_pages = 2;
537
+ optional int32 total_items = 3;
538
+ }
514
539
  //Users
515
540
  message UserPaymentMethodItem {
516
541
  int32 method_id = 1;
@@ -543,6 +543,17 @@ function deserialize_payment_UserDepositItemsResponse(buffer_arg) {
543
543
  return payment_pb.UserDepositItemsResponse.deserializeBinary(new Uint8Array(buffer_arg));
544
544
  }
545
545
 
546
+ function serialize_payment_UserPaymentHistoryItemsResponse(arg) {
547
+ if (!(arg instanceof payment_pb.UserPaymentHistoryItemsResponse)) {
548
+ throw new Error('Expected argument of type payment.UserPaymentHistoryItemsResponse');
549
+ }
550
+ return Buffer.from(arg.serializeBinary());
551
+ }
552
+
553
+ function deserialize_payment_UserPaymentHistoryItemsResponse(buffer_arg) {
554
+ return payment_pb.UserPaymentHistoryItemsResponse.deserializeBinary(new Uint8Array(buffer_arg));
555
+ }
556
+
546
557
  function serialize_payment_UserPaymentMethodsResponse(arg) {
547
558
  if (!(arg instanceof payment_pb.UserPaymentMethodsResponse)) {
548
559
  throw new Error('Expected argument of type payment.UserPaymentMethodsResponse');
@@ -1003,6 +1014,17 @@ userPaymentsInfo: {
1003
1014
  responseSerialize: serialize_payment_UserWithdrawalItemsResponse,
1004
1015
  responseDeserialize: deserialize_payment_UserWithdrawalItemsResponse,
1005
1016
  },
1017
+ userPaymentHistory: {
1018
+ path: '/payment.Payment/userPaymentHistory',
1019
+ requestStream: false,
1020
+ responseStream: false,
1021
+ requestType: payment_pb.GetUserPaymentsInfoRequest,
1022
+ responseType: payment_pb.UserPaymentHistoryItemsResponse,
1023
+ requestSerialize: serialize_payment_GetUserPaymentsInfoRequest,
1024
+ requestDeserialize: deserialize_payment_GetUserPaymentsInfoRequest,
1025
+ responseSerialize: serialize_payment_UserPaymentHistoryItemsResponse,
1026
+ responseDeserialize: deserialize_payment_UserPaymentHistoryItemsResponse,
1027
+ },
1006
1028
  getPaymentMethodsForUser: {
1007
1029
  path: '/payment.Payment/getPaymentMethodsForUser',
1008
1030
  requestStream: false,
@@ -86,6 +86,8 @@ goog.exportSymbol('proto.payment.SyncCurrenciesRequest', null, global);
86
86
  goog.exportSymbol('proto.payment.UpdateCurrencyRequest', null, global);
87
87
  goog.exportSymbol('proto.payment.UserDepositItem', null, global);
88
88
  goog.exportSymbol('proto.payment.UserDepositItemsResponse', null, global);
89
+ goog.exportSymbol('proto.payment.UserPaymentHistoryItem', null, global);
90
+ goog.exportSymbol('proto.payment.UserPaymentHistoryItemsResponse', null, global);
89
91
  goog.exportSymbol('proto.payment.UserPaymentMethodItem', null, global);
90
92
  goog.exportSymbol('proto.payment.UserPaymentMethodsResponse', null, global);
91
93
  goog.exportSymbol('proto.payment.UserPaymentsInfoResponse', null, global);
@@ -1292,6 +1294,48 @@ if (goog.DEBUG && !COMPILED) {
1292
1294
  */
1293
1295
  proto.payment.UserWithdrawalItemsResponse.displayName = 'proto.payment.UserWithdrawalItemsResponse';
1294
1296
  }
1297
+ /**
1298
+ * Generated by JsPbCodeGenerator.
1299
+ * @param {Array=} opt_data Optional initial data array, typically from a
1300
+ * server response, or constructed directly in Javascript. The array is used
1301
+ * in place and becomes part of the constructed object. It is not cloned.
1302
+ * If no data is provided, the constructed object will be empty, but still
1303
+ * valid.
1304
+ * @extends {jspb.Message}
1305
+ * @constructor
1306
+ */
1307
+ proto.payment.UserPaymentHistoryItem = function(opt_data) {
1308
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1309
+ };
1310
+ goog.inherits(proto.payment.UserPaymentHistoryItem, jspb.Message);
1311
+ if (goog.DEBUG && !COMPILED) {
1312
+ /**
1313
+ * @public
1314
+ * @override
1315
+ */
1316
+ proto.payment.UserPaymentHistoryItem.displayName = 'proto.payment.UserPaymentHistoryItem';
1317
+ }
1318
+ /**
1319
+ * Generated by JsPbCodeGenerator.
1320
+ * @param {Array=} opt_data Optional initial data array, typically from a
1321
+ * server response, or constructed directly in Javascript. The array is used
1322
+ * in place and becomes part of the constructed object. It is not cloned.
1323
+ * If no data is provided, the constructed object will be empty, but still
1324
+ * valid.
1325
+ * @extends {jspb.Message}
1326
+ * @constructor
1327
+ */
1328
+ proto.payment.UserPaymentHistoryItemsResponse = function(opt_data) {
1329
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.payment.UserPaymentHistoryItemsResponse.repeatedFields_, null);
1330
+ };
1331
+ goog.inherits(proto.payment.UserPaymentHistoryItemsResponse, jspb.Message);
1332
+ if (goog.DEBUG && !COMPILED) {
1333
+ /**
1334
+ * @public
1335
+ * @override
1336
+ */
1337
+ proto.payment.UserPaymentHistoryItemsResponse.displayName = 'proto.payment.UserPaymentHistoryItemsResponse';
1338
+ }
1295
1339
  /**
1296
1340
  * Generated by JsPbCodeGenerator.
1297
1341
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -21698,6 +21742,1106 @@ proto.payment.UserWithdrawalItemsResponse.prototype.hasTotalItems = function() {
21698
21742
 
21699
21743
 
21700
21744
 
21745
+ if (jspb.Message.GENERATE_TO_OBJECT) {
21746
+ /**
21747
+ * Creates an object representation of this proto.
21748
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
21749
+ * Optional fields that are not set will be set to undefined.
21750
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
21751
+ * For the list of reserved names please see:
21752
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
21753
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
21754
+ * JSPB instance for transitional soy proto support:
21755
+ * http://goto/soy-param-migration
21756
+ * @return {!Object}
21757
+ */
21758
+ proto.payment.UserPaymentHistoryItem.prototype.toObject = function(opt_includeInstance) {
21759
+ return proto.payment.UserPaymentHistoryItem.toObject(opt_includeInstance, this);
21760
+ };
21761
+
21762
+
21763
+ /**
21764
+ * Static version of the {@see toObject} method.
21765
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
21766
+ * the JSPB instance for transitional soy proto support:
21767
+ * http://goto/soy-param-migration
21768
+ * @param {!proto.payment.UserPaymentHistoryItem} msg The msg instance to transform.
21769
+ * @return {!Object}
21770
+ * @suppress {unusedLocalVariables} f is only used for nested messages
21771
+ */
21772
+ proto.payment.UserPaymentHistoryItem.toObject = function(includeInstance, msg) {
21773
+ var f, obj = {
21774
+ transactionType: jspb.Message.getFieldWithDefault(msg, 1, ""),
21775
+ transactionId: jspb.Message.getFieldWithDefault(msg, 2, 0),
21776
+ amount: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
21777
+ amountAttempt: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
21778
+ amountPaid: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0),
21779
+ fee: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0),
21780
+ currency: jspb.Message.getFieldWithDefault(msg, 7, ""),
21781
+ paymentMethodTitle: jspb.Message.getFieldWithDefault(msg, 8, ""),
21782
+ paymentProviderImage: jspb.Message.getFieldWithDefault(msg, 9, ""),
21783
+ paymentProviderImageCdn: jspb.Message.getFieldWithDefault(msg, 10, ""),
21784
+ paymentProviderTitle: jspb.Message.getFieldWithDefault(msg, 11, ""),
21785
+ statusId: jspb.Message.getFieldWithDefault(msg, 12, 0),
21786
+ created: jspb.Message.getFieldWithDefault(msg, 13, ""),
21787
+ status: jspb.Message.getFieldWithDefault(msg, 14, ""),
21788
+ destination: jspb.Message.getFieldWithDefault(msg, 15, ""),
21789
+ destinationType: jspb.Message.getFieldWithDefault(msg, 16, ""),
21790
+ externalRef: jspb.Message.getFieldWithDefault(msg, 17, "")
21791
+ };
21792
+
21793
+ if (includeInstance) {
21794
+ obj.$jspbMessageInstance = msg;
21795
+ }
21796
+ return obj;
21797
+ };
21798
+ }
21799
+
21800
+
21801
+ /**
21802
+ * Deserializes binary data (in protobuf wire format).
21803
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
21804
+ * @return {!proto.payment.UserPaymentHistoryItem}
21805
+ */
21806
+ proto.payment.UserPaymentHistoryItem.deserializeBinary = function(bytes) {
21807
+ var reader = new jspb.BinaryReader(bytes);
21808
+ var msg = new proto.payment.UserPaymentHistoryItem;
21809
+ return proto.payment.UserPaymentHistoryItem.deserializeBinaryFromReader(msg, reader);
21810
+ };
21811
+
21812
+
21813
+ /**
21814
+ * Deserializes binary data (in protobuf wire format) from the
21815
+ * given reader into the given message object.
21816
+ * @param {!proto.payment.UserPaymentHistoryItem} msg The message object to deserialize into.
21817
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
21818
+ * @return {!proto.payment.UserPaymentHistoryItem}
21819
+ */
21820
+ proto.payment.UserPaymentHistoryItem.deserializeBinaryFromReader = function(msg, reader) {
21821
+ while (reader.nextField()) {
21822
+ if (reader.isEndGroup()) {
21823
+ break;
21824
+ }
21825
+ var field = reader.getFieldNumber();
21826
+ switch (field) {
21827
+ case 1:
21828
+ var value = /** @type {string} */ (reader.readString());
21829
+ msg.setTransactionType(value);
21830
+ break;
21831
+ case 2:
21832
+ var value = /** @type {number} */ (reader.readInt32());
21833
+ msg.setTransactionId(value);
21834
+ break;
21835
+ case 3:
21836
+ var value = /** @type {number} */ (reader.readFloat());
21837
+ msg.setAmount(value);
21838
+ break;
21839
+ case 4:
21840
+ var value = /** @type {number} */ (reader.readFloat());
21841
+ msg.setAmountAttempt(value);
21842
+ break;
21843
+ case 5:
21844
+ var value = /** @type {number} */ (reader.readFloat());
21845
+ msg.setAmountPaid(value);
21846
+ break;
21847
+ case 6:
21848
+ var value = /** @type {number} */ (reader.readFloat());
21849
+ msg.setFee(value);
21850
+ break;
21851
+ case 7:
21852
+ var value = /** @type {string} */ (reader.readString());
21853
+ msg.setCurrency(value);
21854
+ break;
21855
+ case 8:
21856
+ var value = /** @type {string} */ (reader.readString());
21857
+ msg.setPaymentMethodTitle(value);
21858
+ break;
21859
+ case 9:
21860
+ var value = /** @type {string} */ (reader.readString());
21861
+ msg.setPaymentProviderImage(value);
21862
+ break;
21863
+ case 10:
21864
+ var value = /** @type {string} */ (reader.readString());
21865
+ msg.setPaymentProviderImageCdn(value);
21866
+ break;
21867
+ case 11:
21868
+ var value = /** @type {string} */ (reader.readString());
21869
+ msg.setPaymentProviderTitle(value);
21870
+ break;
21871
+ case 12:
21872
+ var value = /** @type {number} */ (reader.readInt32());
21873
+ msg.setStatusId(value);
21874
+ break;
21875
+ case 13:
21876
+ var value = /** @type {string} */ (reader.readString());
21877
+ msg.setCreated(value);
21878
+ break;
21879
+ case 14:
21880
+ var value = /** @type {string} */ (reader.readString());
21881
+ msg.setStatus(value);
21882
+ break;
21883
+ case 15:
21884
+ var value = /** @type {string} */ (reader.readString());
21885
+ msg.setDestination(value);
21886
+ break;
21887
+ case 16:
21888
+ var value = /** @type {string} */ (reader.readString());
21889
+ msg.setDestinationType(value);
21890
+ break;
21891
+ case 17:
21892
+ var value = /** @type {string} */ (reader.readString());
21893
+ msg.setExternalRef(value);
21894
+ break;
21895
+ default:
21896
+ reader.skipField();
21897
+ break;
21898
+ }
21899
+ }
21900
+ return msg;
21901
+ };
21902
+
21903
+
21904
+ /**
21905
+ * Serializes the message to binary data (in protobuf wire format).
21906
+ * @return {!Uint8Array}
21907
+ */
21908
+ proto.payment.UserPaymentHistoryItem.prototype.serializeBinary = function() {
21909
+ var writer = new jspb.BinaryWriter();
21910
+ proto.payment.UserPaymentHistoryItem.serializeBinaryToWriter(this, writer);
21911
+ return writer.getResultBuffer();
21912
+ };
21913
+
21914
+
21915
+ /**
21916
+ * Serializes the given message to binary data (in protobuf wire
21917
+ * format), writing to the given BinaryWriter.
21918
+ * @param {!proto.payment.UserPaymentHistoryItem} message
21919
+ * @param {!jspb.BinaryWriter} writer
21920
+ * @suppress {unusedLocalVariables} f is only used for nested messages
21921
+ */
21922
+ proto.payment.UserPaymentHistoryItem.serializeBinaryToWriter = function(message, writer) {
21923
+ var f = undefined;
21924
+ f = message.getTransactionType();
21925
+ if (f.length > 0) {
21926
+ writer.writeString(
21927
+ 1,
21928
+ f
21929
+ );
21930
+ }
21931
+ f = message.getTransactionId();
21932
+ if (f !== 0) {
21933
+ writer.writeInt32(
21934
+ 2,
21935
+ f
21936
+ );
21937
+ }
21938
+ f = message.getAmount();
21939
+ if (f !== 0.0) {
21940
+ writer.writeFloat(
21941
+ 3,
21942
+ f
21943
+ );
21944
+ }
21945
+ f = /** @type {number} */ (jspb.Message.getField(message, 4));
21946
+ if (f != null) {
21947
+ writer.writeFloat(
21948
+ 4,
21949
+ f
21950
+ );
21951
+ }
21952
+ f = /** @type {number} */ (jspb.Message.getField(message, 5));
21953
+ if (f != null) {
21954
+ writer.writeFloat(
21955
+ 5,
21956
+ f
21957
+ );
21958
+ }
21959
+ f = /** @type {number} */ (jspb.Message.getField(message, 6));
21960
+ if (f != null) {
21961
+ writer.writeFloat(
21962
+ 6,
21963
+ f
21964
+ );
21965
+ }
21966
+ f = message.getCurrency();
21967
+ if (f.length > 0) {
21968
+ writer.writeString(
21969
+ 7,
21970
+ f
21971
+ );
21972
+ }
21973
+ f = /** @type {string} */ (jspb.Message.getField(message, 8));
21974
+ if (f != null) {
21975
+ writer.writeString(
21976
+ 8,
21977
+ f
21978
+ );
21979
+ }
21980
+ f = /** @type {string} */ (jspb.Message.getField(message, 9));
21981
+ if (f != null) {
21982
+ writer.writeString(
21983
+ 9,
21984
+ f
21985
+ );
21986
+ }
21987
+ f = /** @type {string} */ (jspb.Message.getField(message, 10));
21988
+ if (f != null) {
21989
+ writer.writeString(
21990
+ 10,
21991
+ f
21992
+ );
21993
+ }
21994
+ f = /** @type {string} */ (jspb.Message.getField(message, 11));
21995
+ if (f != null) {
21996
+ writer.writeString(
21997
+ 11,
21998
+ f
21999
+ );
22000
+ }
22001
+ f = /** @type {number} */ (jspb.Message.getField(message, 12));
22002
+ if (f != null) {
22003
+ writer.writeInt32(
22004
+ 12,
22005
+ f
22006
+ );
22007
+ }
22008
+ f = /** @type {string} */ (jspb.Message.getField(message, 13));
22009
+ if (f != null) {
22010
+ writer.writeString(
22011
+ 13,
22012
+ f
22013
+ );
22014
+ }
22015
+ f = /** @type {string} */ (jspb.Message.getField(message, 14));
22016
+ if (f != null) {
22017
+ writer.writeString(
22018
+ 14,
22019
+ f
22020
+ );
22021
+ }
22022
+ f = /** @type {string} */ (jspb.Message.getField(message, 15));
22023
+ if (f != null) {
22024
+ writer.writeString(
22025
+ 15,
22026
+ f
22027
+ );
22028
+ }
22029
+ f = /** @type {string} */ (jspb.Message.getField(message, 16));
22030
+ if (f != null) {
22031
+ writer.writeString(
22032
+ 16,
22033
+ f
22034
+ );
22035
+ }
22036
+ f = /** @type {string} */ (jspb.Message.getField(message, 17));
22037
+ if (f != null) {
22038
+ writer.writeString(
22039
+ 17,
22040
+ f
22041
+ );
22042
+ }
22043
+ };
22044
+
22045
+
22046
+ /**
22047
+ * optional string transaction_type = 1;
22048
+ * @return {string}
22049
+ */
22050
+ proto.payment.UserPaymentHistoryItem.prototype.getTransactionType = function() {
22051
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
22052
+ };
22053
+
22054
+
22055
+ /**
22056
+ * @param {string} value
22057
+ * @return {!proto.payment.UserPaymentHistoryItem} returns this
22058
+ */
22059
+ proto.payment.UserPaymentHistoryItem.prototype.setTransactionType = function(value) {
22060
+ return jspb.Message.setProto3StringField(this, 1, value);
22061
+ };
22062
+
22063
+
22064
+ /**
22065
+ * optional int32 transaction_id = 2;
22066
+ * @return {number}
22067
+ */
22068
+ proto.payment.UserPaymentHistoryItem.prototype.getTransactionId = function() {
22069
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
22070
+ };
22071
+
22072
+
22073
+ /**
22074
+ * @param {number} value
22075
+ * @return {!proto.payment.UserPaymentHistoryItem} returns this
22076
+ */
22077
+ proto.payment.UserPaymentHistoryItem.prototype.setTransactionId = function(value) {
22078
+ return jspb.Message.setProto3IntField(this, 2, value);
22079
+ };
22080
+
22081
+
22082
+ /**
22083
+ * optional float amount = 3;
22084
+ * @return {number}
22085
+ */
22086
+ proto.payment.UserPaymentHistoryItem.prototype.getAmount = function() {
22087
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
22088
+ };
22089
+
22090
+
22091
+ /**
22092
+ * @param {number} value
22093
+ * @return {!proto.payment.UserPaymentHistoryItem} returns this
22094
+ */
22095
+ proto.payment.UserPaymentHistoryItem.prototype.setAmount = function(value) {
22096
+ return jspb.Message.setProto3FloatField(this, 3, value);
22097
+ };
22098
+
22099
+
22100
+ /**
22101
+ * optional float amount_attempt = 4;
22102
+ * @return {number}
22103
+ */
22104
+ proto.payment.UserPaymentHistoryItem.prototype.getAmountAttempt = function() {
22105
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
22106
+ };
22107
+
22108
+
22109
+ /**
22110
+ * @param {number} value
22111
+ * @return {!proto.payment.UserPaymentHistoryItem} returns this
22112
+ */
22113
+ proto.payment.UserPaymentHistoryItem.prototype.setAmountAttempt = function(value) {
22114
+ return jspb.Message.setField(this, 4, value);
22115
+ };
22116
+
22117
+
22118
+ /**
22119
+ * Clears the field making it undefined.
22120
+ * @return {!proto.payment.UserPaymentHistoryItem} returns this
22121
+ */
22122
+ proto.payment.UserPaymentHistoryItem.prototype.clearAmountAttempt = function() {
22123
+ return jspb.Message.setField(this, 4, undefined);
22124
+ };
22125
+
22126
+
22127
+ /**
22128
+ * Returns whether this field is set.
22129
+ * @return {boolean}
22130
+ */
22131
+ proto.payment.UserPaymentHistoryItem.prototype.hasAmountAttempt = function() {
22132
+ return jspb.Message.getField(this, 4) != null;
22133
+ };
22134
+
22135
+
22136
+ /**
22137
+ * optional float amount_paid = 5;
22138
+ * @return {number}
22139
+ */
22140
+ proto.payment.UserPaymentHistoryItem.prototype.getAmountPaid = function() {
22141
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0));
22142
+ };
22143
+
22144
+
22145
+ /**
22146
+ * @param {number} value
22147
+ * @return {!proto.payment.UserPaymentHistoryItem} returns this
22148
+ */
22149
+ proto.payment.UserPaymentHistoryItem.prototype.setAmountPaid = function(value) {
22150
+ return jspb.Message.setField(this, 5, value);
22151
+ };
22152
+
22153
+
22154
+ /**
22155
+ * Clears the field making it undefined.
22156
+ * @return {!proto.payment.UserPaymentHistoryItem} returns this
22157
+ */
22158
+ proto.payment.UserPaymentHistoryItem.prototype.clearAmountPaid = function() {
22159
+ return jspb.Message.setField(this, 5, undefined);
22160
+ };
22161
+
22162
+
22163
+ /**
22164
+ * Returns whether this field is set.
22165
+ * @return {boolean}
22166
+ */
22167
+ proto.payment.UserPaymentHistoryItem.prototype.hasAmountPaid = function() {
22168
+ return jspb.Message.getField(this, 5) != null;
22169
+ };
22170
+
22171
+
22172
+ /**
22173
+ * optional float fee = 6;
22174
+ * @return {number}
22175
+ */
22176
+ proto.payment.UserPaymentHistoryItem.prototype.getFee = function() {
22177
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0));
22178
+ };
22179
+
22180
+
22181
+ /**
22182
+ * @param {number} value
22183
+ * @return {!proto.payment.UserPaymentHistoryItem} returns this
22184
+ */
22185
+ proto.payment.UserPaymentHistoryItem.prototype.setFee = function(value) {
22186
+ return jspb.Message.setField(this, 6, value);
22187
+ };
22188
+
22189
+
22190
+ /**
22191
+ * Clears the field making it undefined.
22192
+ * @return {!proto.payment.UserPaymentHistoryItem} returns this
22193
+ */
22194
+ proto.payment.UserPaymentHistoryItem.prototype.clearFee = function() {
22195
+ return jspb.Message.setField(this, 6, undefined);
22196
+ };
22197
+
22198
+
22199
+ /**
22200
+ * Returns whether this field is set.
22201
+ * @return {boolean}
22202
+ */
22203
+ proto.payment.UserPaymentHistoryItem.prototype.hasFee = function() {
22204
+ return jspb.Message.getField(this, 6) != null;
22205
+ };
22206
+
22207
+
22208
+ /**
22209
+ * optional string currency = 7;
22210
+ * @return {string}
22211
+ */
22212
+ proto.payment.UserPaymentHistoryItem.prototype.getCurrency = function() {
22213
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
22214
+ };
22215
+
22216
+
22217
+ /**
22218
+ * @param {string} value
22219
+ * @return {!proto.payment.UserPaymentHistoryItem} returns this
22220
+ */
22221
+ proto.payment.UserPaymentHistoryItem.prototype.setCurrency = function(value) {
22222
+ return jspb.Message.setProto3StringField(this, 7, value);
22223
+ };
22224
+
22225
+
22226
+ /**
22227
+ * optional string payment_method_title = 8;
22228
+ * @return {string}
22229
+ */
22230
+ proto.payment.UserPaymentHistoryItem.prototype.getPaymentMethodTitle = function() {
22231
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
22232
+ };
22233
+
22234
+
22235
+ /**
22236
+ * @param {string} value
22237
+ * @return {!proto.payment.UserPaymentHistoryItem} returns this
22238
+ */
22239
+ proto.payment.UserPaymentHistoryItem.prototype.setPaymentMethodTitle = function(value) {
22240
+ return jspb.Message.setField(this, 8, value);
22241
+ };
22242
+
22243
+
22244
+ /**
22245
+ * Clears the field making it undefined.
22246
+ * @return {!proto.payment.UserPaymentHistoryItem} returns this
22247
+ */
22248
+ proto.payment.UserPaymentHistoryItem.prototype.clearPaymentMethodTitle = function() {
22249
+ return jspb.Message.setField(this, 8, undefined);
22250
+ };
22251
+
22252
+
22253
+ /**
22254
+ * Returns whether this field is set.
22255
+ * @return {boolean}
22256
+ */
22257
+ proto.payment.UserPaymentHistoryItem.prototype.hasPaymentMethodTitle = function() {
22258
+ return jspb.Message.getField(this, 8) != null;
22259
+ };
22260
+
22261
+
22262
+ /**
22263
+ * optional string payment_provider_image = 9;
22264
+ * @return {string}
22265
+ */
22266
+ proto.payment.UserPaymentHistoryItem.prototype.getPaymentProviderImage = function() {
22267
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
22268
+ };
22269
+
22270
+
22271
+ /**
22272
+ * @param {string} value
22273
+ * @return {!proto.payment.UserPaymentHistoryItem} returns this
22274
+ */
22275
+ proto.payment.UserPaymentHistoryItem.prototype.setPaymentProviderImage = function(value) {
22276
+ return jspb.Message.setField(this, 9, value);
22277
+ };
22278
+
22279
+
22280
+ /**
22281
+ * Clears the field making it undefined.
22282
+ * @return {!proto.payment.UserPaymentHistoryItem} returns this
22283
+ */
22284
+ proto.payment.UserPaymentHistoryItem.prototype.clearPaymentProviderImage = function() {
22285
+ return jspb.Message.setField(this, 9, undefined);
22286
+ };
22287
+
22288
+
22289
+ /**
22290
+ * Returns whether this field is set.
22291
+ * @return {boolean}
22292
+ */
22293
+ proto.payment.UserPaymentHistoryItem.prototype.hasPaymentProviderImage = function() {
22294
+ return jspb.Message.getField(this, 9) != null;
22295
+ };
22296
+
22297
+
22298
+ /**
22299
+ * optional string payment_provider_image_cdn = 10;
22300
+ * @return {string}
22301
+ */
22302
+ proto.payment.UserPaymentHistoryItem.prototype.getPaymentProviderImageCdn = function() {
22303
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
22304
+ };
22305
+
22306
+
22307
+ /**
22308
+ * @param {string} value
22309
+ * @return {!proto.payment.UserPaymentHistoryItem} returns this
22310
+ */
22311
+ proto.payment.UserPaymentHistoryItem.prototype.setPaymentProviderImageCdn = function(value) {
22312
+ return jspb.Message.setField(this, 10, value);
22313
+ };
22314
+
22315
+
22316
+ /**
22317
+ * Clears the field making it undefined.
22318
+ * @return {!proto.payment.UserPaymentHistoryItem} returns this
22319
+ */
22320
+ proto.payment.UserPaymentHistoryItem.prototype.clearPaymentProviderImageCdn = function() {
22321
+ return jspb.Message.setField(this, 10, undefined);
22322
+ };
22323
+
22324
+
22325
+ /**
22326
+ * Returns whether this field is set.
22327
+ * @return {boolean}
22328
+ */
22329
+ proto.payment.UserPaymentHistoryItem.prototype.hasPaymentProviderImageCdn = function() {
22330
+ return jspb.Message.getField(this, 10) != null;
22331
+ };
22332
+
22333
+
22334
+ /**
22335
+ * optional string payment_provider_title = 11;
22336
+ * @return {string}
22337
+ */
22338
+ proto.payment.UserPaymentHistoryItem.prototype.getPaymentProviderTitle = function() {
22339
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
22340
+ };
22341
+
22342
+
22343
+ /**
22344
+ * @param {string} value
22345
+ * @return {!proto.payment.UserPaymentHistoryItem} returns this
22346
+ */
22347
+ proto.payment.UserPaymentHistoryItem.prototype.setPaymentProviderTitle = function(value) {
22348
+ return jspb.Message.setField(this, 11, value);
22349
+ };
22350
+
22351
+
22352
+ /**
22353
+ * Clears the field making it undefined.
22354
+ * @return {!proto.payment.UserPaymentHistoryItem} returns this
22355
+ */
22356
+ proto.payment.UserPaymentHistoryItem.prototype.clearPaymentProviderTitle = function() {
22357
+ return jspb.Message.setField(this, 11, undefined);
22358
+ };
22359
+
22360
+
22361
+ /**
22362
+ * Returns whether this field is set.
22363
+ * @return {boolean}
22364
+ */
22365
+ proto.payment.UserPaymentHistoryItem.prototype.hasPaymentProviderTitle = function() {
22366
+ return jspb.Message.getField(this, 11) != null;
22367
+ };
22368
+
22369
+
22370
+ /**
22371
+ * optional int32 status_id = 12;
22372
+ * @return {number}
22373
+ */
22374
+ proto.payment.UserPaymentHistoryItem.prototype.getStatusId = function() {
22375
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0));
22376
+ };
22377
+
22378
+
22379
+ /**
22380
+ * @param {number} value
22381
+ * @return {!proto.payment.UserPaymentHistoryItem} returns this
22382
+ */
22383
+ proto.payment.UserPaymentHistoryItem.prototype.setStatusId = function(value) {
22384
+ return jspb.Message.setField(this, 12, value);
22385
+ };
22386
+
22387
+
22388
+ /**
22389
+ * Clears the field making it undefined.
22390
+ * @return {!proto.payment.UserPaymentHistoryItem} returns this
22391
+ */
22392
+ proto.payment.UserPaymentHistoryItem.prototype.clearStatusId = function() {
22393
+ return jspb.Message.setField(this, 12, undefined);
22394
+ };
22395
+
22396
+
22397
+ /**
22398
+ * Returns whether this field is set.
22399
+ * @return {boolean}
22400
+ */
22401
+ proto.payment.UserPaymentHistoryItem.prototype.hasStatusId = function() {
22402
+ return jspb.Message.getField(this, 12) != null;
22403
+ };
22404
+
22405
+
22406
+ /**
22407
+ * optional string created = 13;
22408
+ * @return {string}
22409
+ */
22410
+ proto.payment.UserPaymentHistoryItem.prototype.getCreated = function() {
22411
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
22412
+ };
22413
+
22414
+
22415
+ /**
22416
+ * @param {string} value
22417
+ * @return {!proto.payment.UserPaymentHistoryItem} returns this
22418
+ */
22419
+ proto.payment.UserPaymentHistoryItem.prototype.setCreated = function(value) {
22420
+ return jspb.Message.setField(this, 13, value);
22421
+ };
22422
+
22423
+
22424
+ /**
22425
+ * Clears the field making it undefined.
22426
+ * @return {!proto.payment.UserPaymentHistoryItem} returns this
22427
+ */
22428
+ proto.payment.UserPaymentHistoryItem.prototype.clearCreated = function() {
22429
+ return jspb.Message.setField(this, 13, undefined);
22430
+ };
22431
+
22432
+
22433
+ /**
22434
+ * Returns whether this field is set.
22435
+ * @return {boolean}
22436
+ */
22437
+ proto.payment.UserPaymentHistoryItem.prototype.hasCreated = function() {
22438
+ return jspb.Message.getField(this, 13) != null;
22439
+ };
22440
+
22441
+
22442
+ /**
22443
+ * optional string status = 14;
22444
+ * @return {string}
22445
+ */
22446
+ proto.payment.UserPaymentHistoryItem.prototype.getStatus = function() {
22447
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
22448
+ };
22449
+
22450
+
22451
+ /**
22452
+ * @param {string} value
22453
+ * @return {!proto.payment.UserPaymentHistoryItem} returns this
22454
+ */
22455
+ proto.payment.UserPaymentHistoryItem.prototype.setStatus = function(value) {
22456
+ return jspb.Message.setField(this, 14, value);
22457
+ };
22458
+
22459
+
22460
+ /**
22461
+ * Clears the field making it undefined.
22462
+ * @return {!proto.payment.UserPaymentHistoryItem} returns this
22463
+ */
22464
+ proto.payment.UserPaymentHistoryItem.prototype.clearStatus = function() {
22465
+ return jspb.Message.setField(this, 14, undefined);
22466
+ };
22467
+
22468
+
22469
+ /**
22470
+ * Returns whether this field is set.
22471
+ * @return {boolean}
22472
+ */
22473
+ proto.payment.UserPaymentHistoryItem.prototype.hasStatus = function() {
22474
+ return jspb.Message.getField(this, 14) != null;
22475
+ };
22476
+
22477
+
22478
+ /**
22479
+ * optional string destination = 15;
22480
+ * @return {string}
22481
+ */
22482
+ proto.payment.UserPaymentHistoryItem.prototype.getDestination = function() {
22483
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 15, ""));
22484
+ };
22485
+
22486
+
22487
+ /**
22488
+ * @param {string} value
22489
+ * @return {!proto.payment.UserPaymentHistoryItem} returns this
22490
+ */
22491
+ proto.payment.UserPaymentHistoryItem.prototype.setDestination = function(value) {
22492
+ return jspb.Message.setField(this, 15, value);
22493
+ };
22494
+
22495
+
22496
+ /**
22497
+ * Clears the field making it undefined.
22498
+ * @return {!proto.payment.UserPaymentHistoryItem} returns this
22499
+ */
22500
+ proto.payment.UserPaymentHistoryItem.prototype.clearDestination = function() {
22501
+ return jspb.Message.setField(this, 15, undefined);
22502
+ };
22503
+
22504
+
22505
+ /**
22506
+ * Returns whether this field is set.
22507
+ * @return {boolean}
22508
+ */
22509
+ proto.payment.UserPaymentHistoryItem.prototype.hasDestination = function() {
22510
+ return jspb.Message.getField(this, 15) != null;
22511
+ };
22512
+
22513
+
22514
+ /**
22515
+ * optional string destination_type = 16;
22516
+ * @return {string}
22517
+ */
22518
+ proto.payment.UserPaymentHistoryItem.prototype.getDestinationType = function() {
22519
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 16, ""));
22520
+ };
22521
+
22522
+
22523
+ /**
22524
+ * @param {string} value
22525
+ * @return {!proto.payment.UserPaymentHistoryItem} returns this
22526
+ */
22527
+ proto.payment.UserPaymentHistoryItem.prototype.setDestinationType = function(value) {
22528
+ return jspb.Message.setField(this, 16, value);
22529
+ };
22530
+
22531
+
22532
+ /**
22533
+ * Clears the field making it undefined.
22534
+ * @return {!proto.payment.UserPaymentHistoryItem} returns this
22535
+ */
22536
+ proto.payment.UserPaymentHistoryItem.prototype.clearDestinationType = function() {
22537
+ return jspb.Message.setField(this, 16, undefined);
22538
+ };
22539
+
22540
+
22541
+ /**
22542
+ * Returns whether this field is set.
22543
+ * @return {boolean}
22544
+ */
22545
+ proto.payment.UserPaymentHistoryItem.prototype.hasDestinationType = function() {
22546
+ return jspb.Message.getField(this, 16) != null;
22547
+ };
22548
+
22549
+
22550
+ /**
22551
+ * optional string external_ref = 17;
22552
+ * @return {string}
22553
+ */
22554
+ proto.payment.UserPaymentHistoryItem.prototype.getExternalRef = function() {
22555
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, ""));
22556
+ };
22557
+
22558
+
22559
+ /**
22560
+ * @param {string} value
22561
+ * @return {!proto.payment.UserPaymentHistoryItem} returns this
22562
+ */
22563
+ proto.payment.UserPaymentHistoryItem.prototype.setExternalRef = function(value) {
22564
+ return jspb.Message.setField(this, 17, value);
22565
+ };
22566
+
22567
+
22568
+ /**
22569
+ * Clears the field making it undefined.
22570
+ * @return {!proto.payment.UserPaymentHistoryItem} returns this
22571
+ */
22572
+ proto.payment.UserPaymentHistoryItem.prototype.clearExternalRef = function() {
22573
+ return jspb.Message.setField(this, 17, undefined);
22574
+ };
22575
+
22576
+
22577
+ /**
22578
+ * Returns whether this field is set.
22579
+ * @return {boolean}
22580
+ */
22581
+ proto.payment.UserPaymentHistoryItem.prototype.hasExternalRef = function() {
22582
+ return jspb.Message.getField(this, 17) != null;
22583
+ };
22584
+
22585
+
22586
+
22587
+ /**
22588
+ * List of repeated fields within this message type.
22589
+ * @private {!Array<number>}
22590
+ * @const
22591
+ */
22592
+ proto.payment.UserPaymentHistoryItemsResponse.repeatedFields_ = [1];
22593
+
22594
+
22595
+
22596
+ if (jspb.Message.GENERATE_TO_OBJECT) {
22597
+ /**
22598
+ * Creates an object representation of this proto.
22599
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
22600
+ * Optional fields that are not set will be set to undefined.
22601
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
22602
+ * For the list of reserved names please see:
22603
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
22604
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
22605
+ * JSPB instance for transitional soy proto support:
22606
+ * http://goto/soy-param-migration
22607
+ * @return {!Object}
22608
+ */
22609
+ proto.payment.UserPaymentHistoryItemsResponse.prototype.toObject = function(opt_includeInstance) {
22610
+ return proto.payment.UserPaymentHistoryItemsResponse.toObject(opt_includeInstance, this);
22611
+ };
22612
+
22613
+
22614
+ /**
22615
+ * Static version of the {@see toObject} method.
22616
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
22617
+ * the JSPB instance for transitional soy proto support:
22618
+ * http://goto/soy-param-migration
22619
+ * @param {!proto.payment.UserPaymentHistoryItemsResponse} msg The msg instance to transform.
22620
+ * @return {!Object}
22621
+ * @suppress {unusedLocalVariables} f is only used for nested messages
22622
+ */
22623
+ proto.payment.UserPaymentHistoryItemsResponse.toObject = function(includeInstance, msg) {
22624
+ var f, obj = {
22625
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
22626
+ proto.payment.UserPaymentHistoryItem.toObject, includeInstance),
22627
+ totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
22628
+ totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
22629
+ };
22630
+
22631
+ if (includeInstance) {
22632
+ obj.$jspbMessageInstance = msg;
22633
+ }
22634
+ return obj;
22635
+ };
22636
+ }
22637
+
22638
+
22639
+ /**
22640
+ * Deserializes binary data (in protobuf wire format).
22641
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
22642
+ * @return {!proto.payment.UserPaymentHistoryItemsResponse}
22643
+ */
22644
+ proto.payment.UserPaymentHistoryItemsResponse.deserializeBinary = function(bytes) {
22645
+ var reader = new jspb.BinaryReader(bytes);
22646
+ var msg = new proto.payment.UserPaymentHistoryItemsResponse;
22647
+ return proto.payment.UserPaymentHistoryItemsResponse.deserializeBinaryFromReader(msg, reader);
22648
+ };
22649
+
22650
+
22651
+ /**
22652
+ * Deserializes binary data (in protobuf wire format) from the
22653
+ * given reader into the given message object.
22654
+ * @param {!proto.payment.UserPaymentHistoryItemsResponse} msg The message object to deserialize into.
22655
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
22656
+ * @return {!proto.payment.UserPaymentHistoryItemsResponse}
22657
+ */
22658
+ proto.payment.UserPaymentHistoryItemsResponse.deserializeBinaryFromReader = function(msg, reader) {
22659
+ while (reader.nextField()) {
22660
+ if (reader.isEndGroup()) {
22661
+ break;
22662
+ }
22663
+ var field = reader.getFieldNumber();
22664
+ switch (field) {
22665
+ case 1:
22666
+ var value = new proto.payment.UserPaymentHistoryItem;
22667
+ reader.readMessage(value,proto.payment.UserPaymentHistoryItem.deserializeBinaryFromReader);
22668
+ msg.addItems(value);
22669
+ break;
22670
+ case 2:
22671
+ var value = /** @type {number} */ (reader.readInt32());
22672
+ msg.setTotalPages(value);
22673
+ break;
22674
+ case 3:
22675
+ var value = /** @type {number} */ (reader.readInt32());
22676
+ msg.setTotalItems(value);
22677
+ break;
22678
+ default:
22679
+ reader.skipField();
22680
+ break;
22681
+ }
22682
+ }
22683
+ return msg;
22684
+ };
22685
+
22686
+
22687
+ /**
22688
+ * Serializes the message to binary data (in protobuf wire format).
22689
+ * @return {!Uint8Array}
22690
+ */
22691
+ proto.payment.UserPaymentHistoryItemsResponse.prototype.serializeBinary = function() {
22692
+ var writer = new jspb.BinaryWriter();
22693
+ proto.payment.UserPaymentHistoryItemsResponse.serializeBinaryToWriter(this, writer);
22694
+ return writer.getResultBuffer();
22695
+ };
22696
+
22697
+
22698
+ /**
22699
+ * Serializes the given message to binary data (in protobuf wire
22700
+ * format), writing to the given BinaryWriter.
22701
+ * @param {!proto.payment.UserPaymentHistoryItemsResponse} message
22702
+ * @param {!jspb.BinaryWriter} writer
22703
+ * @suppress {unusedLocalVariables} f is only used for nested messages
22704
+ */
22705
+ proto.payment.UserPaymentHistoryItemsResponse.serializeBinaryToWriter = function(message, writer) {
22706
+ var f = undefined;
22707
+ f = message.getItemsList();
22708
+ if (f.length > 0) {
22709
+ writer.writeRepeatedMessage(
22710
+ 1,
22711
+ f,
22712
+ proto.payment.UserPaymentHistoryItem.serializeBinaryToWriter
22713
+ );
22714
+ }
22715
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
22716
+ if (f != null) {
22717
+ writer.writeInt32(
22718
+ 2,
22719
+ f
22720
+ );
22721
+ }
22722
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
22723
+ if (f != null) {
22724
+ writer.writeInt32(
22725
+ 3,
22726
+ f
22727
+ );
22728
+ }
22729
+ };
22730
+
22731
+
22732
+ /**
22733
+ * repeated UserPaymentHistoryItem items = 1;
22734
+ * @return {!Array<!proto.payment.UserPaymentHistoryItem>}
22735
+ */
22736
+ proto.payment.UserPaymentHistoryItemsResponse.prototype.getItemsList = function() {
22737
+ return /** @type{!Array<!proto.payment.UserPaymentHistoryItem>} */ (
22738
+ jspb.Message.getRepeatedWrapperField(this, proto.payment.UserPaymentHistoryItem, 1));
22739
+ };
22740
+
22741
+
22742
+ /**
22743
+ * @param {!Array<!proto.payment.UserPaymentHistoryItem>} value
22744
+ * @return {!proto.payment.UserPaymentHistoryItemsResponse} returns this
22745
+ */
22746
+ proto.payment.UserPaymentHistoryItemsResponse.prototype.setItemsList = function(value) {
22747
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
22748
+ };
22749
+
22750
+
22751
+ /**
22752
+ * @param {!proto.payment.UserPaymentHistoryItem=} opt_value
22753
+ * @param {number=} opt_index
22754
+ * @return {!proto.payment.UserPaymentHistoryItem}
22755
+ */
22756
+ proto.payment.UserPaymentHistoryItemsResponse.prototype.addItems = function(opt_value, opt_index) {
22757
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.payment.UserPaymentHistoryItem, opt_index);
22758
+ };
22759
+
22760
+
22761
+ /**
22762
+ * Clears the list making it empty but non-null.
22763
+ * @return {!proto.payment.UserPaymentHistoryItemsResponse} returns this
22764
+ */
22765
+ proto.payment.UserPaymentHistoryItemsResponse.prototype.clearItemsList = function() {
22766
+ return this.setItemsList([]);
22767
+ };
22768
+
22769
+
22770
+ /**
22771
+ * optional int32 total_pages = 2;
22772
+ * @return {number}
22773
+ */
22774
+ proto.payment.UserPaymentHistoryItemsResponse.prototype.getTotalPages = function() {
22775
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
22776
+ };
22777
+
22778
+
22779
+ /**
22780
+ * @param {number} value
22781
+ * @return {!proto.payment.UserPaymentHistoryItemsResponse} returns this
22782
+ */
22783
+ proto.payment.UserPaymentHistoryItemsResponse.prototype.setTotalPages = function(value) {
22784
+ return jspb.Message.setField(this, 2, value);
22785
+ };
22786
+
22787
+
22788
+ /**
22789
+ * Clears the field making it undefined.
22790
+ * @return {!proto.payment.UserPaymentHistoryItemsResponse} returns this
22791
+ */
22792
+ proto.payment.UserPaymentHistoryItemsResponse.prototype.clearTotalPages = function() {
22793
+ return jspb.Message.setField(this, 2, undefined);
22794
+ };
22795
+
22796
+
22797
+ /**
22798
+ * Returns whether this field is set.
22799
+ * @return {boolean}
22800
+ */
22801
+ proto.payment.UserPaymentHistoryItemsResponse.prototype.hasTotalPages = function() {
22802
+ return jspb.Message.getField(this, 2) != null;
22803
+ };
22804
+
22805
+
22806
+ /**
22807
+ * optional int32 total_items = 3;
22808
+ * @return {number}
22809
+ */
22810
+ proto.payment.UserPaymentHistoryItemsResponse.prototype.getTotalItems = function() {
22811
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
22812
+ };
22813
+
22814
+
22815
+ /**
22816
+ * @param {number} value
22817
+ * @return {!proto.payment.UserPaymentHistoryItemsResponse} returns this
22818
+ */
22819
+ proto.payment.UserPaymentHistoryItemsResponse.prototype.setTotalItems = function(value) {
22820
+ return jspb.Message.setField(this, 3, value);
22821
+ };
22822
+
22823
+
22824
+ /**
22825
+ * Clears the field making it undefined.
22826
+ * @return {!proto.payment.UserPaymentHistoryItemsResponse} returns this
22827
+ */
22828
+ proto.payment.UserPaymentHistoryItemsResponse.prototype.clearTotalItems = function() {
22829
+ return jspb.Message.setField(this, 3, undefined);
22830
+ };
22831
+
22832
+
22833
+ /**
22834
+ * Returns whether this field is set.
22835
+ * @return {boolean}
22836
+ */
22837
+ proto.payment.UserPaymentHistoryItemsResponse.prototype.hasTotalItems = function() {
22838
+ return jspb.Message.getField(this, 3) != null;
22839
+ };
22840
+
22841
+
22842
+
22843
+
22844
+
21701
22845
  if (jspb.Message.GENERATE_TO_OBJECT) {
21702
22846
  /**
21703
22847
  * Creates an object representation of this proto.