protobuf-platform 1.2.365 → 1.2.367
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bonus/bonus.proto +18 -0
- package/bonus/bonus_grpc_pb.js +33 -0
- package/bonus/bonus_pb.js +863 -1
- package/package.json +1 -1
- package/payment/payment.proto +1 -0
- package/payment/payment_pb.js +49 -1
package/bonus/bonus.proto
CHANGED
|
@@ -26,6 +26,7 @@ service Bonus {
|
|
|
26
26
|
rpc getUserBonuses(PaginationRequest) returns (UserBonusItemsResponse);
|
|
27
27
|
rpc checkBonusForUser(GetUserBonusRequest) returns (UserBonusItem);
|
|
28
28
|
rpc getUserBonusesHistory(PaginationRequest) returns (UserBonusItemsResponse);
|
|
29
|
+
rpc getUserBonusHistory(GetUserBonusHistoryRequest) returns (UserBonusHistoryResponse);
|
|
29
30
|
rpc getDepositEligibleUserBonuses(GetDepositEligibleUserBonusesRequest) returns (DepositEligibleUserBonusesResponse);
|
|
30
31
|
rpc getActiveWageringUserBonuses(GetActiveWageringUserBonusesRequest) returns (ActiveWageringUserBonusesResponse);
|
|
31
32
|
rpc getCommonUserBonusItems(GetCommonUserBonusItemsRequest) returns (GetCommonUserBonusItemsResponse);
|
|
@@ -261,6 +262,8 @@ message UserBonusItem {
|
|
|
261
262
|
optional bool has_free_bet = 26;
|
|
262
263
|
optional string status_free_bet = 27;
|
|
263
264
|
optional float reward_free_bet = 28;
|
|
265
|
+
optional string closed_at = 29;
|
|
266
|
+
optional string history_type = 30;
|
|
264
267
|
}
|
|
265
268
|
message FreeSpinItem {
|
|
266
269
|
int32 game_id = 1;
|
|
@@ -305,6 +308,21 @@ message UserBonusItemsResponse {
|
|
|
305
308
|
optional int32 total_pages = 2;
|
|
306
309
|
optional int32 total_items = 3;
|
|
307
310
|
}
|
|
311
|
+
message GetUserBonusHistoryRequest {
|
|
312
|
+
int32 user_id = 1;
|
|
313
|
+
optional string type = 2;
|
|
314
|
+
optional string currency = 3;
|
|
315
|
+
optional string country = 4;
|
|
316
|
+
optional string locale = 5;
|
|
317
|
+
optional bool is_mobile = 6;
|
|
318
|
+
optional int32 limit = 7;
|
|
319
|
+
optional int32 offset = 8;
|
|
320
|
+
}
|
|
321
|
+
message UserBonusHistoryResponse {
|
|
322
|
+
repeated UserBonusItem items = 1;
|
|
323
|
+
optional int32 total_pages = 2;
|
|
324
|
+
optional int32 total_items = 3;
|
|
325
|
+
}
|
|
308
326
|
message GetDepositEligibleUserBonusesRequest {
|
|
309
327
|
int32 user_id = 1;
|
|
310
328
|
optional string currency = 2;
|
package/bonus/bonus_grpc_pb.js
CHANGED
|
@@ -268,6 +268,17 @@ function deserialize_bonus_GetFileRequest(buffer_arg) {
|
|
|
268
268
|
return bonus_pb.GetFileRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
269
269
|
}
|
|
270
270
|
|
|
271
|
+
function serialize_bonus_GetUserBonusHistoryRequest(arg) {
|
|
272
|
+
if (!(arg instanceof bonus_pb.GetUserBonusHistoryRequest)) {
|
|
273
|
+
throw new Error('Expected argument of type bonus.GetUserBonusHistoryRequest');
|
|
274
|
+
}
|
|
275
|
+
return Buffer.from(arg.serializeBinary());
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
function deserialize_bonus_GetUserBonusHistoryRequest(buffer_arg) {
|
|
279
|
+
return bonus_pb.GetUserBonusHistoryRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
280
|
+
}
|
|
281
|
+
|
|
271
282
|
function serialize_bonus_GetUserBonusRequest(arg) {
|
|
272
283
|
if (!(arg instanceof bonus_pb.GetUserBonusRequest)) {
|
|
273
284
|
throw new Error('Expected argument of type bonus.GetUserBonusRequest');
|
|
@@ -323,6 +334,17 @@ function deserialize_bonus_PongResponse(buffer_arg) {
|
|
|
323
334
|
return bonus_pb.PongResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
324
335
|
}
|
|
325
336
|
|
|
337
|
+
function serialize_bonus_UserBonusHistoryResponse(arg) {
|
|
338
|
+
if (!(arg instanceof bonus_pb.UserBonusHistoryResponse)) {
|
|
339
|
+
throw new Error('Expected argument of type bonus.UserBonusHistoryResponse');
|
|
340
|
+
}
|
|
341
|
+
return Buffer.from(arg.serializeBinary());
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
function deserialize_bonus_UserBonusHistoryResponse(buffer_arg) {
|
|
345
|
+
return bonus_pb.UserBonusHistoryResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
346
|
+
}
|
|
347
|
+
|
|
326
348
|
function serialize_bonus_UserBonusItem(arg) {
|
|
327
349
|
if (!(arg instanceof bonus_pb.UserBonusItem)) {
|
|
328
350
|
throw new Error('Expected argument of type bonus.UserBonusItem');
|
|
@@ -602,6 +624,17 @@ claimUserBonus: {
|
|
|
602
624
|
responseSerialize: serialize_bonus_UserBonusItemsResponse,
|
|
603
625
|
responseDeserialize: deserialize_bonus_UserBonusItemsResponse,
|
|
604
626
|
},
|
|
627
|
+
getUserBonusHistory: {
|
|
628
|
+
path: '/bonus.Bonus/getUserBonusHistory',
|
|
629
|
+
requestStream: false,
|
|
630
|
+
responseStream: false,
|
|
631
|
+
requestType: bonus_pb.GetUserBonusHistoryRequest,
|
|
632
|
+
responseType: bonus_pb.UserBonusHistoryResponse,
|
|
633
|
+
requestSerialize: serialize_bonus_GetUserBonusHistoryRequest,
|
|
634
|
+
requestDeserialize: deserialize_bonus_GetUserBonusHistoryRequest,
|
|
635
|
+
responseSerialize: serialize_bonus_UserBonusHistoryResponse,
|
|
636
|
+
responseDeserialize: deserialize_bonus_UserBonusHistoryResponse,
|
|
637
|
+
},
|
|
605
638
|
getDepositEligibleUserBonuses: {
|
|
606
639
|
path: '/bonus.Bonus/getDepositEligibleUserBonuses',
|
|
607
640
|
requestStream: false,
|
package/bonus/bonus_pb.js
CHANGED
|
@@ -60,12 +60,14 @@ goog.exportSymbol('proto.bonus.GetCommonUserBonusItemsRequest', null, global);
|
|
|
60
60
|
goog.exportSymbol('proto.bonus.GetCommonUserBonusItemsResponse', null, global);
|
|
61
61
|
goog.exportSymbol('proto.bonus.GetDepositEligibleUserBonusesRequest', null, global);
|
|
62
62
|
goog.exportSymbol('proto.bonus.GetFileRequest', null, global);
|
|
63
|
+
goog.exportSymbol('proto.bonus.GetUserBonusHistoryRequest', null, global);
|
|
63
64
|
goog.exportSymbol('proto.bonus.GetUserBonusRequest', null, global);
|
|
64
65
|
goog.exportSymbol('proto.bonus.ItemsBunchRequest', null, global);
|
|
65
66
|
goog.exportSymbol('proto.bonus.PaginationRequest', null, global);
|
|
66
67
|
goog.exportSymbol('proto.bonus.PingRequest', null, global);
|
|
67
68
|
goog.exportSymbol('proto.bonus.PongResponse', null, global);
|
|
68
69
|
goog.exportSymbol('proto.bonus.SearchBonusRequest', null, global);
|
|
70
|
+
goog.exportSymbol('proto.bonus.UserBonusHistoryResponse', null, global);
|
|
69
71
|
goog.exportSymbol('proto.bonus.UserBonusItem', null, global);
|
|
70
72
|
goog.exportSymbol('proto.bonus.UserBonusItemsResponse', null, global);
|
|
71
73
|
goog.exportSymbol('proto.bonus.ValidateSelectedWageringUserBonusRequest', null, global);
|
|
@@ -700,6 +702,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
700
702
|
*/
|
|
701
703
|
proto.bonus.UserBonusItemsResponse.displayName = 'proto.bonus.UserBonusItemsResponse';
|
|
702
704
|
}
|
|
705
|
+
/**
|
|
706
|
+
* Generated by JsPbCodeGenerator.
|
|
707
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
708
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
709
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
710
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
711
|
+
* valid.
|
|
712
|
+
* @extends {jspb.Message}
|
|
713
|
+
* @constructor
|
|
714
|
+
*/
|
|
715
|
+
proto.bonus.GetUserBonusHistoryRequest = function(opt_data) {
|
|
716
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
717
|
+
};
|
|
718
|
+
goog.inherits(proto.bonus.GetUserBonusHistoryRequest, jspb.Message);
|
|
719
|
+
if (goog.DEBUG && !COMPILED) {
|
|
720
|
+
/**
|
|
721
|
+
* @public
|
|
722
|
+
* @override
|
|
723
|
+
*/
|
|
724
|
+
proto.bonus.GetUserBonusHistoryRequest.displayName = 'proto.bonus.GetUserBonusHistoryRequest';
|
|
725
|
+
}
|
|
726
|
+
/**
|
|
727
|
+
* Generated by JsPbCodeGenerator.
|
|
728
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
729
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
730
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
731
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
732
|
+
* valid.
|
|
733
|
+
* @extends {jspb.Message}
|
|
734
|
+
* @constructor
|
|
735
|
+
*/
|
|
736
|
+
proto.bonus.UserBonusHistoryResponse = function(opt_data) {
|
|
737
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.bonus.UserBonusHistoryResponse.repeatedFields_, null);
|
|
738
|
+
};
|
|
739
|
+
goog.inherits(proto.bonus.UserBonusHistoryResponse, jspb.Message);
|
|
740
|
+
if (goog.DEBUG && !COMPILED) {
|
|
741
|
+
/**
|
|
742
|
+
* @public
|
|
743
|
+
* @override
|
|
744
|
+
*/
|
|
745
|
+
proto.bonus.UserBonusHistoryResponse.displayName = 'proto.bonus.UserBonusHistoryResponse';
|
|
746
|
+
}
|
|
703
747
|
/**
|
|
704
748
|
* Generated by JsPbCodeGenerator.
|
|
705
749
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -10017,7 +10061,9 @@ proto.bonus.UserBonusItem.toObject = function(includeInstance, msg) {
|
|
|
10017
10061
|
cancellationAmount: jspb.Message.getFloatingPointFieldWithDefault(msg, 25, 0.0),
|
|
10018
10062
|
hasFreeBet: jspb.Message.getBooleanFieldWithDefault(msg, 26, false),
|
|
10019
10063
|
statusFreeBet: jspb.Message.getFieldWithDefault(msg, 27, ""),
|
|
10020
|
-
rewardFreeBet: jspb.Message.getFloatingPointFieldWithDefault(msg, 28, 0.0)
|
|
10064
|
+
rewardFreeBet: jspb.Message.getFloatingPointFieldWithDefault(msg, 28, 0.0),
|
|
10065
|
+
closedAt: jspb.Message.getFieldWithDefault(msg, 29, ""),
|
|
10066
|
+
historyType: jspb.Message.getFieldWithDefault(msg, 30, "")
|
|
10021
10067
|
};
|
|
10022
10068
|
|
|
10023
10069
|
if (includeInstance) {
|
|
@@ -10168,6 +10214,14 @@ proto.bonus.UserBonusItem.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
10168
10214
|
var value = /** @type {number} */ (reader.readFloat());
|
|
10169
10215
|
msg.setRewardFreeBet(value);
|
|
10170
10216
|
break;
|
|
10217
|
+
case 29:
|
|
10218
|
+
var value = /** @type {string} */ (reader.readString());
|
|
10219
|
+
msg.setClosedAt(value);
|
|
10220
|
+
break;
|
|
10221
|
+
case 30:
|
|
10222
|
+
var value = /** @type {string} */ (reader.readString());
|
|
10223
|
+
msg.setHistoryType(value);
|
|
10224
|
+
break;
|
|
10171
10225
|
default:
|
|
10172
10226
|
reader.skipField();
|
|
10173
10227
|
break;
|
|
@@ -10395,6 +10449,20 @@ proto.bonus.UserBonusItem.serializeBinaryToWriter = function(message, writer) {
|
|
|
10395
10449
|
f
|
|
10396
10450
|
);
|
|
10397
10451
|
}
|
|
10452
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 29));
|
|
10453
|
+
if (f != null) {
|
|
10454
|
+
writer.writeString(
|
|
10455
|
+
29,
|
|
10456
|
+
f
|
|
10457
|
+
);
|
|
10458
|
+
}
|
|
10459
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 30));
|
|
10460
|
+
if (f != null) {
|
|
10461
|
+
writer.writeString(
|
|
10462
|
+
30,
|
|
10463
|
+
f
|
|
10464
|
+
);
|
|
10465
|
+
}
|
|
10398
10466
|
};
|
|
10399
10467
|
|
|
10400
10468
|
|
|
@@ -11409,6 +11477,78 @@ proto.bonus.UserBonusItem.prototype.hasRewardFreeBet = function() {
|
|
|
11409
11477
|
};
|
|
11410
11478
|
|
|
11411
11479
|
|
|
11480
|
+
/**
|
|
11481
|
+
* optional string closed_at = 29;
|
|
11482
|
+
* @return {string}
|
|
11483
|
+
*/
|
|
11484
|
+
proto.bonus.UserBonusItem.prototype.getClosedAt = function() {
|
|
11485
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 29, ""));
|
|
11486
|
+
};
|
|
11487
|
+
|
|
11488
|
+
|
|
11489
|
+
/**
|
|
11490
|
+
* @param {string} value
|
|
11491
|
+
* @return {!proto.bonus.UserBonusItem} returns this
|
|
11492
|
+
*/
|
|
11493
|
+
proto.bonus.UserBonusItem.prototype.setClosedAt = function(value) {
|
|
11494
|
+
return jspb.Message.setField(this, 29, value);
|
|
11495
|
+
};
|
|
11496
|
+
|
|
11497
|
+
|
|
11498
|
+
/**
|
|
11499
|
+
* Clears the field making it undefined.
|
|
11500
|
+
* @return {!proto.bonus.UserBonusItem} returns this
|
|
11501
|
+
*/
|
|
11502
|
+
proto.bonus.UserBonusItem.prototype.clearClosedAt = function() {
|
|
11503
|
+
return jspb.Message.setField(this, 29, undefined);
|
|
11504
|
+
};
|
|
11505
|
+
|
|
11506
|
+
|
|
11507
|
+
/**
|
|
11508
|
+
* Returns whether this field is set.
|
|
11509
|
+
* @return {boolean}
|
|
11510
|
+
*/
|
|
11511
|
+
proto.bonus.UserBonusItem.prototype.hasClosedAt = function() {
|
|
11512
|
+
return jspb.Message.getField(this, 29) != null;
|
|
11513
|
+
};
|
|
11514
|
+
|
|
11515
|
+
|
|
11516
|
+
/**
|
|
11517
|
+
* optional string history_type = 30;
|
|
11518
|
+
* @return {string}
|
|
11519
|
+
*/
|
|
11520
|
+
proto.bonus.UserBonusItem.prototype.getHistoryType = function() {
|
|
11521
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 30, ""));
|
|
11522
|
+
};
|
|
11523
|
+
|
|
11524
|
+
|
|
11525
|
+
/**
|
|
11526
|
+
* @param {string} value
|
|
11527
|
+
* @return {!proto.bonus.UserBonusItem} returns this
|
|
11528
|
+
*/
|
|
11529
|
+
proto.bonus.UserBonusItem.prototype.setHistoryType = function(value) {
|
|
11530
|
+
return jspb.Message.setField(this, 30, value);
|
|
11531
|
+
};
|
|
11532
|
+
|
|
11533
|
+
|
|
11534
|
+
/**
|
|
11535
|
+
* Clears the field making it undefined.
|
|
11536
|
+
* @return {!proto.bonus.UserBonusItem} returns this
|
|
11537
|
+
*/
|
|
11538
|
+
proto.bonus.UserBonusItem.prototype.clearHistoryType = function() {
|
|
11539
|
+
return jspb.Message.setField(this, 30, undefined);
|
|
11540
|
+
};
|
|
11541
|
+
|
|
11542
|
+
|
|
11543
|
+
/**
|
|
11544
|
+
* Returns whether this field is set.
|
|
11545
|
+
* @return {boolean}
|
|
11546
|
+
*/
|
|
11547
|
+
proto.bonus.UserBonusItem.prototype.hasHistoryType = function() {
|
|
11548
|
+
return jspb.Message.getField(this, 30) != null;
|
|
11549
|
+
};
|
|
11550
|
+
|
|
11551
|
+
|
|
11412
11552
|
|
|
11413
11553
|
|
|
11414
11554
|
|
|
@@ -13414,6 +13554,728 @@ proto.bonus.UserBonusItemsResponse.prototype.hasTotalItems = function() {
|
|
|
13414
13554
|
|
|
13415
13555
|
|
|
13416
13556
|
|
|
13557
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
13558
|
+
/**
|
|
13559
|
+
* Creates an object representation of this proto.
|
|
13560
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
13561
|
+
* Optional fields that are not set will be set to undefined.
|
|
13562
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
13563
|
+
* For the list of reserved names please see:
|
|
13564
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
13565
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
13566
|
+
* JSPB instance for transitional soy proto support:
|
|
13567
|
+
* http://goto/soy-param-migration
|
|
13568
|
+
* @return {!Object}
|
|
13569
|
+
*/
|
|
13570
|
+
proto.bonus.GetUserBonusHistoryRequest.prototype.toObject = function(opt_includeInstance) {
|
|
13571
|
+
return proto.bonus.GetUserBonusHistoryRequest.toObject(opt_includeInstance, this);
|
|
13572
|
+
};
|
|
13573
|
+
|
|
13574
|
+
|
|
13575
|
+
/**
|
|
13576
|
+
* Static version of the {@see toObject} method.
|
|
13577
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
13578
|
+
* the JSPB instance for transitional soy proto support:
|
|
13579
|
+
* http://goto/soy-param-migration
|
|
13580
|
+
* @param {!proto.bonus.GetUserBonusHistoryRequest} msg The msg instance to transform.
|
|
13581
|
+
* @return {!Object}
|
|
13582
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
13583
|
+
*/
|
|
13584
|
+
proto.bonus.GetUserBonusHistoryRequest.toObject = function(includeInstance, msg) {
|
|
13585
|
+
var f, obj = {
|
|
13586
|
+
userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
13587
|
+
type: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
13588
|
+
currency: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
13589
|
+
country: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
13590
|
+
locale: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
13591
|
+
isMobile: jspb.Message.getBooleanFieldWithDefault(msg, 6, false),
|
|
13592
|
+
limit: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
|
13593
|
+
offset: jspb.Message.getFieldWithDefault(msg, 8, 0)
|
|
13594
|
+
};
|
|
13595
|
+
|
|
13596
|
+
if (includeInstance) {
|
|
13597
|
+
obj.$jspbMessageInstance = msg;
|
|
13598
|
+
}
|
|
13599
|
+
return obj;
|
|
13600
|
+
};
|
|
13601
|
+
}
|
|
13602
|
+
|
|
13603
|
+
|
|
13604
|
+
/**
|
|
13605
|
+
* Deserializes binary data (in protobuf wire format).
|
|
13606
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
13607
|
+
* @return {!proto.bonus.GetUserBonusHistoryRequest}
|
|
13608
|
+
*/
|
|
13609
|
+
proto.bonus.GetUserBonusHistoryRequest.deserializeBinary = function(bytes) {
|
|
13610
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
13611
|
+
var msg = new proto.bonus.GetUserBonusHistoryRequest;
|
|
13612
|
+
return proto.bonus.GetUserBonusHistoryRequest.deserializeBinaryFromReader(msg, reader);
|
|
13613
|
+
};
|
|
13614
|
+
|
|
13615
|
+
|
|
13616
|
+
/**
|
|
13617
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
13618
|
+
* given reader into the given message object.
|
|
13619
|
+
* @param {!proto.bonus.GetUserBonusHistoryRequest} msg The message object to deserialize into.
|
|
13620
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
13621
|
+
* @return {!proto.bonus.GetUserBonusHistoryRequest}
|
|
13622
|
+
*/
|
|
13623
|
+
proto.bonus.GetUserBonusHistoryRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
13624
|
+
while (reader.nextField()) {
|
|
13625
|
+
if (reader.isEndGroup()) {
|
|
13626
|
+
break;
|
|
13627
|
+
}
|
|
13628
|
+
var field = reader.getFieldNumber();
|
|
13629
|
+
switch (field) {
|
|
13630
|
+
case 1:
|
|
13631
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
13632
|
+
msg.setUserId(value);
|
|
13633
|
+
break;
|
|
13634
|
+
case 2:
|
|
13635
|
+
var value = /** @type {string} */ (reader.readString());
|
|
13636
|
+
msg.setType(value);
|
|
13637
|
+
break;
|
|
13638
|
+
case 3:
|
|
13639
|
+
var value = /** @type {string} */ (reader.readString());
|
|
13640
|
+
msg.setCurrency(value);
|
|
13641
|
+
break;
|
|
13642
|
+
case 4:
|
|
13643
|
+
var value = /** @type {string} */ (reader.readString());
|
|
13644
|
+
msg.setCountry(value);
|
|
13645
|
+
break;
|
|
13646
|
+
case 5:
|
|
13647
|
+
var value = /** @type {string} */ (reader.readString());
|
|
13648
|
+
msg.setLocale(value);
|
|
13649
|
+
break;
|
|
13650
|
+
case 6:
|
|
13651
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
13652
|
+
msg.setIsMobile(value);
|
|
13653
|
+
break;
|
|
13654
|
+
case 7:
|
|
13655
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
13656
|
+
msg.setLimit(value);
|
|
13657
|
+
break;
|
|
13658
|
+
case 8:
|
|
13659
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
13660
|
+
msg.setOffset(value);
|
|
13661
|
+
break;
|
|
13662
|
+
default:
|
|
13663
|
+
reader.skipField();
|
|
13664
|
+
break;
|
|
13665
|
+
}
|
|
13666
|
+
}
|
|
13667
|
+
return msg;
|
|
13668
|
+
};
|
|
13669
|
+
|
|
13670
|
+
|
|
13671
|
+
/**
|
|
13672
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
13673
|
+
* @return {!Uint8Array}
|
|
13674
|
+
*/
|
|
13675
|
+
proto.bonus.GetUserBonusHistoryRequest.prototype.serializeBinary = function() {
|
|
13676
|
+
var writer = new jspb.BinaryWriter();
|
|
13677
|
+
proto.bonus.GetUserBonusHistoryRequest.serializeBinaryToWriter(this, writer);
|
|
13678
|
+
return writer.getResultBuffer();
|
|
13679
|
+
};
|
|
13680
|
+
|
|
13681
|
+
|
|
13682
|
+
/**
|
|
13683
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
13684
|
+
* format), writing to the given BinaryWriter.
|
|
13685
|
+
* @param {!proto.bonus.GetUserBonusHistoryRequest} message
|
|
13686
|
+
* @param {!jspb.BinaryWriter} writer
|
|
13687
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
13688
|
+
*/
|
|
13689
|
+
proto.bonus.GetUserBonusHistoryRequest.serializeBinaryToWriter = function(message, writer) {
|
|
13690
|
+
var f = undefined;
|
|
13691
|
+
f = message.getUserId();
|
|
13692
|
+
if (f !== 0) {
|
|
13693
|
+
writer.writeInt32(
|
|
13694
|
+
1,
|
|
13695
|
+
f
|
|
13696
|
+
);
|
|
13697
|
+
}
|
|
13698
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
|
13699
|
+
if (f != null) {
|
|
13700
|
+
writer.writeString(
|
|
13701
|
+
2,
|
|
13702
|
+
f
|
|
13703
|
+
);
|
|
13704
|
+
}
|
|
13705
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
|
13706
|
+
if (f != null) {
|
|
13707
|
+
writer.writeString(
|
|
13708
|
+
3,
|
|
13709
|
+
f
|
|
13710
|
+
);
|
|
13711
|
+
}
|
|
13712
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
|
13713
|
+
if (f != null) {
|
|
13714
|
+
writer.writeString(
|
|
13715
|
+
4,
|
|
13716
|
+
f
|
|
13717
|
+
);
|
|
13718
|
+
}
|
|
13719
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 5));
|
|
13720
|
+
if (f != null) {
|
|
13721
|
+
writer.writeString(
|
|
13722
|
+
5,
|
|
13723
|
+
f
|
|
13724
|
+
);
|
|
13725
|
+
}
|
|
13726
|
+
f = /** @type {boolean} */ (jspb.Message.getField(message, 6));
|
|
13727
|
+
if (f != null) {
|
|
13728
|
+
writer.writeBool(
|
|
13729
|
+
6,
|
|
13730
|
+
f
|
|
13731
|
+
);
|
|
13732
|
+
}
|
|
13733
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 7));
|
|
13734
|
+
if (f != null) {
|
|
13735
|
+
writer.writeInt32(
|
|
13736
|
+
7,
|
|
13737
|
+
f
|
|
13738
|
+
);
|
|
13739
|
+
}
|
|
13740
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 8));
|
|
13741
|
+
if (f != null) {
|
|
13742
|
+
writer.writeInt32(
|
|
13743
|
+
8,
|
|
13744
|
+
f
|
|
13745
|
+
);
|
|
13746
|
+
}
|
|
13747
|
+
};
|
|
13748
|
+
|
|
13749
|
+
|
|
13750
|
+
/**
|
|
13751
|
+
* optional int32 user_id = 1;
|
|
13752
|
+
* @return {number}
|
|
13753
|
+
*/
|
|
13754
|
+
proto.bonus.GetUserBonusHistoryRequest.prototype.getUserId = function() {
|
|
13755
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
13756
|
+
};
|
|
13757
|
+
|
|
13758
|
+
|
|
13759
|
+
/**
|
|
13760
|
+
* @param {number} value
|
|
13761
|
+
* @return {!proto.bonus.GetUserBonusHistoryRequest} returns this
|
|
13762
|
+
*/
|
|
13763
|
+
proto.bonus.GetUserBonusHistoryRequest.prototype.setUserId = function(value) {
|
|
13764
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
13765
|
+
};
|
|
13766
|
+
|
|
13767
|
+
|
|
13768
|
+
/**
|
|
13769
|
+
* optional string type = 2;
|
|
13770
|
+
* @return {string}
|
|
13771
|
+
*/
|
|
13772
|
+
proto.bonus.GetUserBonusHistoryRequest.prototype.getType = function() {
|
|
13773
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
13774
|
+
};
|
|
13775
|
+
|
|
13776
|
+
|
|
13777
|
+
/**
|
|
13778
|
+
* @param {string} value
|
|
13779
|
+
* @return {!proto.bonus.GetUserBonusHistoryRequest} returns this
|
|
13780
|
+
*/
|
|
13781
|
+
proto.bonus.GetUserBonusHistoryRequest.prototype.setType = function(value) {
|
|
13782
|
+
return jspb.Message.setField(this, 2, value);
|
|
13783
|
+
};
|
|
13784
|
+
|
|
13785
|
+
|
|
13786
|
+
/**
|
|
13787
|
+
* Clears the field making it undefined.
|
|
13788
|
+
* @return {!proto.bonus.GetUserBonusHistoryRequest} returns this
|
|
13789
|
+
*/
|
|
13790
|
+
proto.bonus.GetUserBonusHistoryRequest.prototype.clearType = function() {
|
|
13791
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
13792
|
+
};
|
|
13793
|
+
|
|
13794
|
+
|
|
13795
|
+
/**
|
|
13796
|
+
* Returns whether this field is set.
|
|
13797
|
+
* @return {boolean}
|
|
13798
|
+
*/
|
|
13799
|
+
proto.bonus.GetUserBonusHistoryRequest.prototype.hasType = function() {
|
|
13800
|
+
return jspb.Message.getField(this, 2) != null;
|
|
13801
|
+
};
|
|
13802
|
+
|
|
13803
|
+
|
|
13804
|
+
/**
|
|
13805
|
+
* optional string currency = 3;
|
|
13806
|
+
* @return {string}
|
|
13807
|
+
*/
|
|
13808
|
+
proto.bonus.GetUserBonusHistoryRequest.prototype.getCurrency = function() {
|
|
13809
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
13810
|
+
};
|
|
13811
|
+
|
|
13812
|
+
|
|
13813
|
+
/**
|
|
13814
|
+
* @param {string} value
|
|
13815
|
+
* @return {!proto.bonus.GetUserBonusHistoryRequest} returns this
|
|
13816
|
+
*/
|
|
13817
|
+
proto.bonus.GetUserBonusHistoryRequest.prototype.setCurrency = function(value) {
|
|
13818
|
+
return jspb.Message.setField(this, 3, value);
|
|
13819
|
+
};
|
|
13820
|
+
|
|
13821
|
+
|
|
13822
|
+
/**
|
|
13823
|
+
* Clears the field making it undefined.
|
|
13824
|
+
* @return {!proto.bonus.GetUserBonusHistoryRequest} returns this
|
|
13825
|
+
*/
|
|
13826
|
+
proto.bonus.GetUserBonusHistoryRequest.prototype.clearCurrency = function() {
|
|
13827
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
13828
|
+
};
|
|
13829
|
+
|
|
13830
|
+
|
|
13831
|
+
/**
|
|
13832
|
+
* Returns whether this field is set.
|
|
13833
|
+
* @return {boolean}
|
|
13834
|
+
*/
|
|
13835
|
+
proto.bonus.GetUserBonusHistoryRequest.prototype.hasCurrency = function() {
|
|
13836
|
+
return jspb.Message.getField(this, 3) != null;
|
|
13837
|
+
};
|
|
13838
|
+
|
|
13839
|
+
|
|
13840
|
+
/**
|
|
13841
|
+
* optional string country = 4;
|
|
13842
|
+
* @return {string}
|
|
13843
|
+
*/
|
|
13844
|
+
proto.bonus.GetUserBonusHistoryRequest.prototype.getCountry = function() {
|
|
13845
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
13846
|
+
};
|
|
13847
|
+
|
|
13848
|
+
|
|
13849
|
+
/**
|
|
13850
|
+
* @param {string} value
|
|
13851
|
+
* @return {!proto.bonus.GetUserBonusHistoryRequest} returns this
|
|
13852
|
+
*/
|
|
13853
|
+
proto.bonus.GetUserBonusHistoryRequest.prototype.setCountry = function(value) {
|
|
13854
|
+
return jspb.Message.setField(this, 4, value);
|
|
13855
|
+
};
|
|
13856
|
+
|
|
13857
|
+
|
|
13858
|
+
/**
|
|
13859
|
+
* Clears the field making it undefined.
|
|
13860
|
+
* @return {!proto.bonus.GetUserBonusHistoryRequest} returns this
|
|
13861
|
+
*/
|
|
13862
|
+
proto.bonus.GetUserBonusHistoryRequest.prototype.clearCountry = function() {
|
|
13863
|
+
return jspb.Message.setField(this, 4, undefined);
|
|
13864
|
+
};
|
|
13865
|
+
|
|
13866
|
+
|
|
13867
|
+
/**
|
|
13868
|
+
* Returns whether this field is set.
|
|
13869
|
+
* @return {boolean}
|
|
13870
|
+
*/
|
|
13871
|
+
proto.bonus.GetUserBonusHistoryRequest.prototype.hasCountry = function() {
|
|
13872
|
+
return jspb.Message.getField(this, 4) != null;
|
|
13873
|
+
};
|
|
13874
|
+
|
|
13875
|
+
|
|
13876
|
+
/**
|
|
13877
|
+
* optional string locale = 5;
|
|
13878
|
+
* @return {string}
|
|
13879
|
+
*/
|
|
13880
|
+
proto.bonus.GetUserBonusHistoryRequest.prototype.getLocale = function() {
|
|
13881
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
13882
|
+
};
|
|
13883
|
+
|
|
13884
|
+
|
|
13885
|
+
/**
|
|
13886
|
+
* @param {string} value
|
|
13887
|
+
* @return {!proto.bonus.GetUserBonusHistoryRequest} returns this
|
|
13888
|
+
*/
|
|
13889
|
+
proto.bonus.GetUserBonusHistoryRequest.prototype.setLocale = function(value) {
|
|
13890
|
+
return jspb.Message.setField(this, 5, value);
|
|
13891
|
+
};
|
|
13892
|
+
|
|
13893
|
+
|
|
13894
|
+
/**
|
|
13895
|
+
* Clears the field making it undefined.
|
|
13896
|
+
* @return {!proto.bonus.GetUserBonusHistoryRequest} returns this
|
|
13897
|
+
*/
|
|
13898
|
+
proto.bonus.GetUserBonusHistoryRequest.prototype.clearLocale = function() {
|
|
13899
|
+
return jspb.Message.setField(this, 5, undefined);
|
|
13900
|
+
};
|
|
13901
|
+
|
|
13902
|
+
|
|
13903
|
+
/**
|
|
13904
|
+
* Returns whether this field is set.
|
|
13905
|
+
* @return {boolean}
|
|
13906
|
+
*/
|
|
13907
|
+
proto.bonus.GetUserBonusHistoryRequest.prototype.hasLocale = function() {
|
|
13908
|
+
return jspb.Message.getField(this, 5) != null;
|
|
13909
|
+
};
|
|
13910
|
+
|
|
13911
|
+
|
|
13912
|
+
/**
|
|
13913
|
+
* optional bool is_mobile = 6;
|
|
13914
|
+
* @return {boolean}
|
|
13915
|
+
*/
|
|
13916
|
+
proto.bonus.GetUserBonusHistoryRequest.prototype.getIsMobile = function() {
|
|
13917
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false));
|
|
13918
|
+
};
|
|
13919
|
+
|
|
13920
|
+
|
|
13921
|
+
/**
|
|
13922
|
+
* @param {boolean} value
|
|
13923
|
+
* @return {!proto.bonus.GetUserBonusHistoryRequest} returns this
|
|
13924
|
+
*/
|
|
13925
|
+
proto.bonus.GetUserBonusHistoryRequest.prototype.setIsMobile = function(value) {
|
|
13926
|
+
return jspb.Message.setField(this, 6, value);
|
|
13927
|
+
};
|
|
13928
|
+
|
|
13929
|
+
|
|
13930
|
+
/**
|
|
13931
|
+
* Clears the field making it undefined.
|
|
13932
|
+
* @return {!proto.bonus.GetUserBonusHistoryRequest} returns this
|
|
13933
|
+
*/
|
|
13934
|
+
proto.bonus.GetUserBonusHistoryRequest.prototype.clearIsMobile = function() {
|
|
13935
|
+
return jspb.Message.setField(this, 6, undefined);
|
|
13936
|
+
};
|
|
13937
|
+
|
|
13938
|
+
|
|
13939
|
+
/**
|
|
13940
|
+
* Returns whether this field is set.
|
|
13941
|
+
* @return {boolean}
|
|
13942
|
+
*/
|
|
13943
|
+
proto.bonus.GetUserBonusHistoryRequest.prototype.hasIsMobile = function() {
|
|
13944
|
+
return jspb.Message.getField(this, 6) != null;
|
|
13945
|
+
};
|
|
13946
|
+
|
|
13947
|
+
|
|
13948
|
+
/**
|
|
13949
|
+
* optional int32 limit = 7;
|
|
13950
|
+
* @return {number}
|
|
13951
|
+
*/
|
|
13952
|
+
proto.bonus.GetUserBonusHistoryRequest.prototype.getLimit = function() {
|
|
13953
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
|
13954
|
+
};
|
|
13955
|
+
|
|
13956
|
+
|
|
13957
|
+
/**
|
|
13958
|
+
* @param {number} value
|
|
13959
|
+
* @return {!proto.bonus.GetUserBonusHistoryRequest} returns this
|
|
13960
|
+
*/
|
|
13961
|
+
proto.bonus.GetUserBonusHistoryRequest.prototype.setLimit = function(value) {
|
|
13962
|
+
return jspb.Message.setField(this, 7, value);
|
|
13963
|
+
};
|
|
13964
|
+
|
|
13965
|
+
|
|
13966
|
+
/**
|
|
13967
|
+
* Clears the field making it undefined.
|
|
13968
|
+
* @return {!proto.bonus.GetUserBonusHistoryRequest} returns this
|
|
13969
|
+
*/
|
|
13970
|
+
proto.bonus.GetUserBonusHistoryRequest.prototype.clearLimit = function() {
|
|
13971
|
+
return jspb.Message.setField(this, 7, undefined);
|
|
13972
|
+
};
|
|
13973
|
+
|
|
13974
|
+
|
|
13975
|
+
/**
|
|
13976
|
+
* Returns whether this field is set.
|
|
13977
|
+
* @return {boolean}
|
|
13978
|
+
*/
|
|
13979
|
+
proto.bonus.GetUserBonusHistoryRequest.prototype.hasLimit = function() {
|
|
13980
|
+
return jspb.Message.getField(this, 7) != null;
|
|
13981
|
+
};
|
|
13982
|
+
|
|
13983
|
+
|
|
13984
|
+
/**
|
|
13985
|
+
* optional int32 offset = 8;
|
|
13986
|
+
* @return {number}
|
|
13987
|
+
*/
|
|
13988
|
+
proto.bonus.GetUserBonusHistoryRequest.prototype.getOffset = function() {
|
|
13989
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
|
|
13990
|
+
};
|
|
13991
|
+
|
|
13992
|
+
|
|
13993
|
+
/**
|
|
13994
|
+
* @param {number} value
|
|
13995
|
+
* @return {!proto.bonus.GetUserBonusHistoryRequest} returns this
|
|
13996
|
+
*/
|
|
13997
|
+
proto.bonus.GetUserBonusHistoryRequest.prototype.setOffset = function(value) {
|
|
13998
|
+
return jspb.Message.setField(this, 8, value);
|
|
13999
|
+
};
|
|
14000
|
+
|
|
14001
|
+
|
|
14002
|
+
/**
|
|
14003
|
+
* Clears the field making it undefined.
|
|
14004
|
+
* @return {!proto.bonus.GetUserBonusHistoryRequest} returns this
|
|
14005
|
+
*/
|
|
14006
|
+
proto.bonus.GetUserBonusHistoryRequest.prototype.clearOffset = function() {
|
|
14007
|
+
return jspb.Message.setField(this, 8, undefined);
|
|
14008
|
+
};
|
|
14009
|
+
|
|
14010
|
+
|
|
14011
|
+
/**
|
|
14012
|
+
* Returns whether this field is set.
|
|
14013
|
+
* @return {boolean}
|
|
14014
|
+
*/
|
|
14015
|
+
proto.bonus.GetUserBonusHistoryRequest.prototype.hasOffset = function() {
|
|
14016
|
+
return jspb.Message.getField(this, 8) != null;
|
|
14017
|
+
};
|
|
14018
|
+
|
|
14019
|
+
|
|
14020
|
+
|
|
14021
|
+
/**
|
|
14022
|
+
* List of repeated fields within this message type.
|
|
14023
|
+
* @private {!Array<number>}
|
|
14024
|
+
* @const
|
|
14025
|
+
*/
|
|
14026
|
+
proto.bonus.UserBonusHistoryResponse.repeatedFields_ = [1];
|
|
14027
|
+
|
|
14028
|
+
|
|
14029
|
+
|
|
14030
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
14031
|
+
/**
|
|
14032
|
+
* Creates an object representation of this proto.
|
|
14033
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
14034
|
+
* Optional fields that are not set will be set to undefined.
|
|
14035
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
14036
|
+
* For the list of reserved names please see:
|
|
14037
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
14038
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
14039
|
+
* JSPB instance for transitional soy proto support:
|
|
14040
|
+
* http://goto/soy-param-migration
|
|
14041
|
+
* @return {!Object}
|
|
14042
|
+
*/
|
|
14043
|
+
proto.bonus.UserBonusHistoryResponse.prototype.toObject = function(opt_includeInstance) {
|
|
14044
|
+
return proto.bonus.UserBonusHistoryResponse.toObject(opt_includeInstance, this);
|
|
14045
|
+
};
|
|
14046
|
+
|
|
14047
|
+
|
|
14048
|
+
/**
|
|
14049
|
+
* Static version of the {@see toObject} method.
|
|
14050
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
14051
|
+
* the JSPB instance for transitional soy proto support:
|
|
14052
|
+
* http://goto/soy-param-migration
|
|
14053
|
+
* @param {!proto.bonus.UserBonusHistoryResponse} msg The msg instance to transform.
|
|
14054
|
+
* @return {!Object}
|
|
14055
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
14056
|
+
*/
|
|
14057
|
+
proto.bonus.UserBonusHistoryResponse.toObject = function(includeInstance, msg) {
|
|
14058
|
+
var f, obj = {
|
|
14059
|
+
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
|
14060
|
+
proto.bonus.UserBonusItem.toObject, includeInstance),
|
|
14061
|
+
totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
14062
|
+
totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
|
14063
|
+
};
|
|
14064
|
+
|
|
14065
|
+
if (includeInstance) {
|
|
14066
|
+
obj.$jspbMessageInstance = msg;
|
|
14067
|
+
}
|
|
14068
|
+
return obj;
|
|
14069
|
+
};
|
|
14070
|
+
}
|
|
14071
|
+
|
|
14072
|
+
|
|
14073
|
+
/**
|
|
14074
|
+
* Deserializes binary data (in protobuf wire format).
|
|
14075
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
14076
|
+
* @return {!proto.bonus.UserBonusHistoryResponse}
|
|
14077
|
+
*/
|
|
14078
|
+
proto.bonus.UserBonusHistoryResponse.deserializeBinary = function(bytes) {
|
|
14079
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
14080
|
+
var msg = new proto.bonus.UserBonusHistoryResponse;
|
|
14081
|
+
return proto.bonus.UserBonusHistoryResponse.deserializeBinaryFromReader(msg, reader);
|
|
14082
|
+
};
|
|
14083
|
+
|
|
14084
|
+
|
|
14085
|
+
/**
|
|
14086
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
14087
|
+
* given reader into the given message object.
|
|
14088
|
+
* @param {!proto.bonus.UserBonusHistoryResponse} msg The message object to deserialize into.
|
|
14089
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
14090
|
+
* @return {!proto.bonus.UserBonusHistoryResponse}
|
|
14091
|
+
*/
|
|
14092
|
+
proto.bonus.UserBonusHistoryResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
14093
|
+
while (reader.nextField()) {
|
|
14094
|
+
if (reader.isEndGroup()) {
|
|
14095
|
+
break;
|
|
14096
|
+
}
|
|
14097
|
+
var field = reader.getFieldNumber();
|
|
14098
|
+
switch (field) {
|
|
14099
|
+
case 1:
|
|
14100
|
+
var value = new proto.bonus.UserBonusItem;
|
|
14101
|
+
reader.readMessage(value,proto.bonus.UserBonusItem.deserializeBinaryFromReader);
|
|
14102
|
+
msg.addItems(value);
|
|
14103
|
+
break;
|
|
14104
|
+
case 2:
|
|
14105
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
14106
|
+
msg.setTotalPages(value);
|
|
14107
|
+
break;
|
|
14108
|
+
case 3:
|
|
14109
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
14110
|
+
msg.setTotalItems(value);
|
|
14111
|
+
break;
|
|
14112
|
+
default:
|
|
14113
|
+
reader.skipField();
|
|
14114
|
+
break;
|
|
14115
|
+
}
|
|
14116
|
+
}
|
|
14117
|
+
return msg;
|
|
14118
|
+
};
|
|
14119
|
+
|
|
14120
|
+
|
|
14121
|
+
/**
|
|
14122
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
14123
|
+
* @return {!Uint8Array}
|
|
14124
|
+
*/
|
|
14125
|
+
proto.bonus.UserBonusHistoryResponse.prototype.serializeBinary = function() {
|
|
14126
|
+
var writer = new jspb.BinaryWriter();
|
|
14127
|
+
proto.bonus.UserBonusHistoryResponse.serializeBinaryToWriter(this, writer);
|
|
14128
|
+
return writer.getResultBuffer();
|
|
14129
|
+
};
|
|
14130
|
+
|
|
14131
|
+
|
|
14132
|
+
/**
|
|
14133
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
14134
|
+
* format), writing to the given BinaryWriter.
|
|
14135
|
+
* @param {!proto.bonus.UserBonusHistoryResponse} message
|
|
14136
|
+
* @param {!jspb.BinaryWriter} writer
|
|
14137
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
14138
|
+
*/
|
|
14139
|
+
proto.bonus.UserBonusHistoryResponse.serializeBinaryToWriter = function(message, writer) {
|
|
14140
|
+
var f = undefined;
|
|
14141
|
+
f = message.getItemsList();
|
|
14142
|
+
if (f.length > 0) {
|
|
14143
|
+
writer.writeRepeatedMessage(
|
|
14144
|
+
1,
|
|
14145
|
+
f,
|
|
14146
|
+
proto.bonus.UserBonusItem.serializeBinaryToWriter
|
|
14147
|
+
);
|
|
14148
|
+
}
|
|
14149
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
|
14150
|
+
if (f != null) {
|
|
14151
|
+
writer.writeInt32(
|
|
14152
|
+
2,
|
|
14153
|
+
f
|
|
14154
|
+
);
|
|
14155
|
+
}
|
|
14156
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
|
14157
|
+
if (f != null) {
|
|
14158
|
+
writer.writeInt32(
|
|
14159
|
+
3,
|
|
14160
|
+
f
|
|
14161
|
+
);
|
|
14162
|
+
}
|
|
14163
|
+
};
|
|
14164
|
+
|
|
14165
|
+
|
|
14166
|
+
/**
|
|
14167
|
+
* repeated UserBonusItem items = 1;
|
|
14168
|
+
* @return {!Array<!proto.bonus.UserBonusItem>}
|
|
14169
|
+
*/
|
|
14170
|
+
proto.bonus.UserBonusHistoryResponse.prototype.getItemsList = function() {
|
|
14171
|
+
return /** @type{!Array<!proto.bonus.UserBonusItem>} */ (
|
|
14172
|
+
jspb.Message.getRepeatedWrapperField(this, proto.bonus.UserBonusItem, 1));
|
|
14173
|
+
};
|
|
14174
|
+
|
|
14175
|
+
|
|
14176
|
+
/**
|
|
14177
|
+
* @param {!Array<!proto.bonus.UserBonusItem>} value
|
|
14178
|
+
* @return {!proto.bonus.UserBonusHistoryResponse} returns this
|
|
14179
|
+
*/
|
|
14180
|
+
proto.bonus.UserBonusHistoryResponse.prototype.setItemsList = function(value) {
|
|
14181
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
14182
|
+
};
|
|
14183
|
+
|
|
14184
|
+
|
|
14185
|
+
/**
|
|
14186
|
+
* @param {!proto.bonus.UserBonusItem=} opt_value
|
|
14187
|
+
* @param {number=} opt_index
|
|
14188
|
+
* @return {!proto.bonus.UserBonusItem}
|
|
14189
|
+
*/
|
|
14190
|
+
proto.bonus.UserBonusHistoryResponse.prototype.addItems = function(opt_value, opt_index) {
|
|
14191
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.bonus.UserBonusItem, opt_index);
|
|
14192
|
+
};
|
|
14193
|
+
|
|
14194
|
+
|
|
14195
|
+
/**
|
|
14196
|
+
* Clears the list making it empty but non-null.
|
|
14197
|
+
* @return {!proto.bonus.UserBonusHistoryResponse} returns this
|
|
14198
|
+
*/
|
|
14199
|
+
proto.bonus.UserBonusHistoryResponse.prototype.clearItemsList = function() {
|
|
14200
|
+
return this.setItemsList([]);
|
|
14201
|
+
};
|
|
14202
|
+
|
|
14203
|
+
|
|
14204
|
+
/**
|
|
14205
|
+
* optional int32 total_pages = 2;
|
|
14206
|
+
* @return {number}
|
|
14207
|
+
*/
|
|
14208
|
+
proto.bonus.UserBonusHistoryResponse.prototype.getTotalPages = function() {
|
|
14209
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
14210
|
+
};
|
|
14211
|
+
|
|
14212
|
+
|
|
14213
|
+
/**
|
|
14214
|
+
* @param {number} value
|
|
14215
|
+
* @return {!proto.bonus.UserBonusHistoryResponse} returns this
|
|
14216
|
+
*/
|
|
14217
|
+
proto.bonus.UserBonusHistoryResponse.prototype.setTotalPages = function(value) {
|
|
14218
|
+
return jspb.Message.setField(this, 2, value);
|
|
14219
|
+
};
|
|
14220
|
+
|
|
14221
|
+
|
|
14222
|
+
/**
|
|
14223
|
+
* Clears the field making it undefined.
|
|
14224
|
+
* @return {!proto.bonus.UserBonusHistoryResponse} returns this
|
|
14225
|
+
*/
|
|
14226
|
+
proto.bonus.UserBonusHistoryResponse.prototype.clearTotalPages = function() {
|
|
14227
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
14228
|
+
};
|
|
14229
|
+
|
|
14230
|
+
|
|
14231
|
+
/**
|
|
14232
|
+
* Returns whether this field is set.
|
|
14233
|
+
* @return {boolean}
|
|
14234
|
+
*/
|
|
14235
|
+
proto.bonus.UserBonusHistoryResponse.prototype.hasTotalPages = function() {
|
|
14236
|
+
return jspb.Message.getField(this, 2) != null;
|
|
14237
|
+
};
|
|
14238
|
+
|
|
14239
|
+
|
|
14240
|
+
/**
|
|
14241
|
+
* optional int32 total_items = 3;
|
|
14242
|
+
* @return {number}
|
|
14243
|
+
*/
|
|
14244
|
+
proto.bonus.UserBonusHistoryResponse.prototype.getTotalItems = function() {
|
|
14245
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
14246
|
+
};
|
|
14247
|
+
|
|
14248
|
+
|
|
14249
|
+
/**
|
|
14250
|
+
* @param {number} value
|
|
14251
|
+
* @return {!proto.bonus.UserBonusHistoryResponse} returns this
|
|
14252
|
+
*/
|
|
14253
|
+
proto.bonus.UserBonusHistoryResponse.prototype.setTotalItems = function(value) {
|
|
14254
|
+
return jspb.Message.setField(this, 3, value);
|
|
14255
|
+
};
|
|
14256
|
+
|
|
14257
|
+
|
|
14258
|
+
/**
|
|
14259
|
+
* Clears the field making it undefined.
|
|
14260
|
+
* @return {!proto.bonus.UserBonusHistoryResponse} returns this
|
|
14261
|
+
*/
|
|
14262
|
+
proto.bonus.UserBonusHistoryResponse.prototype.clearTotalItems = function() {
|
|
14263
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
14264
|
+
};
|
|
14265
|
+
|
|
14266
|
+
|
|
14267
|
+
/**
|
|
14268
|
+
* Returns whether this field is set.
|
|
14269
|
+
* @return {boolean}
|
|
14270
|
+
*/
|
|
14271
|
+
proto.bonus.UserBonusHistoryResponse.prototype.hasTotalItems = function() {
|
|
14272
|
+
return jspb.Message.getField(this, 3) != null;
|
|
14273
|
+
};
|
|
14274
|
+
|
|
14275
|
+
|
|
14276
|
+
|
|
14277
|
+
|
|
14278
|
+
|
|
13417
14279
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
13418
14280
|
/**
|
|
13419
14281
|
* Creates an object representation of this proto.
|
package/package.json
CHANGED
package/payment/payment.proto
CHANGED
package/payment/payment_pb.js
CHANGED
|
@@ -11923,7 +11923,8 @@ proto.payment.AttemptDepositRequest.toObject = function(includeInstance, msg) {
|
|
|
11923
11923
|
javaEnabled: jspb.Message.getFieldWithDefault(msg, 20, 0),
|
|
11924
11924
|
javascriptEnabled: jspb.Message.getFieldWithDefault(msg, 21, 0),
|
|
11925
11925
|
acceptLanguage: jspb.Message.getFieldWithDefault(msg, 22, ""),
|
|
11926
|
-
acceptHeader: jspb.Message.getFieldWithDefault(msg, 23, "")
|
|
11926
|
+
acceptHeader: jspb.Message.getFieldWithDefault(msg, 23, ""),
|
|
11927
|
+
userBirthday: jspb.Message.getFieldWithDefault(msg, 24, "")
|
|
11927
11928
|
};
|
|
11928
11929
|
|
|
11929
11930
|
if (includeInstance) {
|
|
@@ -12052,6 +12053,10 @@ proto.payment.AttemptDepositRequest.deserializeBinaryFromReader = function(msg,
|
|
|
12052
12053
|
var value = /** @type {string} */ (reader.readString());
|
|
12053
12054
|
msg.setAcceptHeader(value);
|
|
12054
12055
|
break;
|
|
12056
|
+
case 24:
|
|
12057
|
+
var value = /** @type {string} */ (reader.readString());
|
|
12058
|
+
msg.setUserBirthday(value);
|
|
12059
|
+
break;
|
|
12055
12060
|
default:
|
|
12056
12061
|
reader.skipField();
|
|
12057
12062
|
break;
|
|
@@ -12242,6 +12247,13 @@ proto.payment.AttemptDepositRequest.serializeBinaryToWriter = function(message,
|
|
|
12242
12247
|
f
|
|
12243
12248
|
);
|
|
12244
12249
|
}
|
|
12250
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 24));
|
|
12251
|
+
if (f != null) {
|
|
12252
|
+
writer.writeString(
|
|
12253
|
+
24,
|
|
12254
|
+
f
|
|
12255
|
+
);
|
|
12256
|
+
}
|
|
12245
12257
|
};
|
|
12246
12258
|
|
|
12247
12259
|
|
|
@@ -13019,6 +13031,42 @@ proto.payment.AttemptDepositRequest.prototype.hasAcceptHeader = function() {
|
|
|
13019
13031
|
};
|
|
13020
13032
|
|
|
13021
13033
|
|
|
13034
|
+
/**
|
|
13035
|
+
* optional string user_birthday = 24;
|
|
13036
|
+
* @return {string}
|
|
13037
|
+
*/
|
|
13038
|
+
proto.payment.AttemptDepositRequest.prototype.getUserBirthday = function() {
|
|
13039
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 24, ""));
|
|
13040
|
+
};
|
|
13041
|
+
|
|
13042
|
+
|
|
13043
|
+
/**
|
|
13044
|
+
* @param {string} value
|
|
13045
|
+
* @return {!proto.payment.AttemptDepositRequest} returns this
|
|
13046
|
+
*/
|
|
13047
|
+
proto.payment.AttemptDepositRequest.prototype.setUserBirthday = function(value) {
|
|
13048
|
+
return jspb.Message.setField(this, 24, value);
|
|
13049
|
+
};
|
|
13050
|
+
|
|
13051
|
+
|
|
13052
|
+
/**
|
|
13053
|
+
* Clears the field making it undefined.
|
|
13054
|
+
* @return {!proto.payment.AttemptDepositRequest} returns this
|
|
13055
|
+
*/
|
|
13056
|
+
proto.payment.AttemptDepositRequest.prototype.clearUserBirthday = function() {
|
|
13057
|
+
return jspb.Message.setField(this, 24, undefined);
|
|
13058
|
+
};
|
|
13059
|
+
|
|
13060
|
+
|
|
13061
|
+
/**
|
|
13062
|
+
* Returns whether this field is set.
|
|
13063
|
+
* @return {boolean}
|
|
13064
|
+
*/
|
|
13065
|
+
proto.payment.AttemptDepositRequest.prototype.hasUserBirthday = function() {
|
|
13066
|
+
return jspb.Message.getField(this, 24) != null;
|
|
13067
|
+
};
|
|
13068
|
+
|
|
13069
|
+
|
|
13022
13070
|
|
|
13023
13071
|
|
|
13024
13072
|
|