protobuf-platform 1.2.366 → 1.2.368
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 +19 -0
- package/bonus/bonus_grpc_pb.js +33 -0
- package/bonus/bonus_pb.js +911 -1
- package/package.json +1 -1
- package/payment/payment.proto +9 -0
- package/payment/payment_grpc_pb.js +33 -0
- package/payment/payment_pb.js +382 -0
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,10 @@ 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, ""),
|
|
10067
|
+
canActivate: jspb.Message.getBooleanFieldWithDefault(msg, 31, false)
|
|
10021
10068
|
};
|
|
10022
10069
|
|
|
10023
10070
|
if (includeInstance) {
|
|
@@ -10168,6 +10215,18 @@ proto.bonus.UserBonusItem.deserializeBinaryFromReader = function(msg, reader) {
|
|
|
10168
10215
|
var value = /** @type {number} */ (reader.readFloat());
|
|
10169
10216
|
msg.setRewardFreeBet(value);
|
|
10170
10217
|
break;
|
|
10218
|
+
case 29:
|
|
10219
|
+
var value = /** @type {string} */ (reader.readString());
|
|
10220
|
+
msg.setClosedAt(value);
|
|
10221
|
+
break;
|
|
10222
|
+
case 30:
|
|
10223
|
+
var value = /** @type {string} */ (reader.readString());
|
|
10224
|
+
msg.setHistoryType(value);
|
|
10225
|
+
break;
|
|
10226
|
+
case 31:
|
|
10227
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
10228
|
+
msg.setCanActivate(value);
|
|
10229
|
+
break;
|
|
10171
10230
|
default:
|
|
10172
10231
|
reader.skipField();
|
|
10173
10232
|
break;
|
|
@@ -10395,6 +10454,27 @@ proto.bonus.UserBonusItem.serializeBinaryToWriter = function(message, writer) {
|
|
|
10395
10454
|
f
|
|
10396
10455
|
);
|
|
10397
10456
|
}
|
|
10457
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 29));
|
|
10458
|
+
if (f != null) {
|
|
10459
|
+
writer.writeString(
|
|
10460
|
+
29,
|
|
10461
|
+
f
|
|
10462
|
+
);
|
|
10463
|
+
}
|
|
10464
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 30));
|
|
10465
|
+
if (f != null) {
|
|
10466
|
+
writer.writeString(
|
|
10467
|
+
30,
|
|
10468
|
+
f
|
|
10469
|
+
);
|
|
10470
|
+
}
|
|
10471
|
+
f = /** @type {boolean} */ (jspb.Message.getField(message, 31));
|
|
10472
|
+
if (f != null) {
|
|
10473
|
+
writer.writeBool(
|
|
10474
|
+
31,
|
|
10475
|
+
f
|
|
10476
|
+
);
|
|
10477
|
+
}
|
|
10398
10478
|
};
|
|
10399
10479
|
|
|
10400
10480
|
|
|
@@ -11409,6 +11489,114 @@ proto.bonus.UserBonusItem.prototype.hasRewardFreeBet = function() {
|
|
|
11409
11489
|
};
|
|
11410
11490
|
|
|
11411
11491
|
|
|
11492
|
+
/**
|
|
11493
|
+
* optional string closed_at = 29;
|
|
11494
|
+
* @return {string}
|
|
11495
|
+
*/
|
|
11496
|
+
proto.bonus.UserBonusItem.prototype.getClosedAt = function() {
|
|
11497
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 29, ""));
|
|
11498
|
+
};
|
|
11499
|
+
|
|
11500
|
+
|
|
11501
|
+
/**
|
|
11502
|
+
* @param {string} value
|
|
11503
|
+
* @return {!proto.bonus.UserBonusItem} returns this
|
|
11504
|
+
*/
|
|
11505
|
+
proto.bonus.UserBonusItem.prototype.setClosedAt = function(value) {
|
|
11506
|
+
return jspb.Message.setField(this, 29, value);
|
|
11507
|
+
};
|
|
11508
|
+
|
|
11509
|
+
|
|
11510
|
+
/**
|
|
11511
|
+
* Clears the field making it undefined.
|
|
11512
|
+
* @return {!proto.bonus.UserBonusItem} returns this
|
|
11513
|
+
*/
|
|
11514
|
+
proto.bonus.UserBonusItem.prototype.clearClosedAt = function() {
|
|
11515
|
+
return jspb.Message.setField(this, 29, undefined);
|
|
11516
|
+
};
|
|
11517
|
+
|
|
11518
|
+
|
|
11519
|
+
/**
|
|
11520
|
+
* Returns whether this field is set.
|
|
11521
|
+
* @return {boolean}
|
|
11522
|
+
*/
|
|
11523
|
+
proto.bonus.UserBonusItem.prototype.hasClosedAt = function() {
|
|
11524
|
+
return jspb.Message.getField(this, 29) != null;
|
|
11525
|
+
};
|
|
11526
|
+
|
|
11527
|
+
|
|
11528
|
+
/**
|
|
11529
|
+
* optional string history_type = 30;
|
|
11530
|
+
* @return {string}
|
|
11531
|
+
*/
|
|
11532
|
+
proto.bonus.UserBonusItem.prototype.getHistoryType = function() {
|
|
11533
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 30, ""));
|
|
11534
|
+
};
|
|
11535
|
+
|
|
11536
|
+
|
|
11537
|
+
/**
|
|
11538
|
+
* @param {string} value
|
|
11539
|
+
* @return {!proto.bonus.UserBonusItem} returns this
|
|
11540
|
+
*/
|
|
11541
|
+
proto.bonus.UserBonusItem.prototype.setHistoryType = function(value) {
|
|
11542
|
+
return jspb.Message.setField(this, 30, value);
|
|
11543
|
+
};
|
|
11544
|
+
|
|
11545
|
+
|
|
11546
|
+
/**
|
|
11547
|
+
* Clears the field making it undefined.
|
|
11548
|
+
* @return {!proto.bonus.UserBonusItem} returns this
|
|
11549
|
+
*/
|
|
11550
|
+
proto.bonus.UserBonusItem.prototype.clearHistoryType = function() {
|
|
11551
|
+
return jspb.Message.setField(this, 30, undefined);
|
|
11552
|
+
};
|
|
11553
|
+
|
|
11554
|
+
|
|
11555
|
+
/**
|
|
11556
|
+
* Returns whether this field is set.
|
|
11557
|
+
* @return {boolean}
|
|
11558
|
+
*/
|
|
11559
|
+
proto.bonus.UserBonusItem.prototype.hasHistoryType = function() {
|
|
11560
|
+
return jspb.Message.getField(this, 30) != null;
|
|
11561
|
+
};
|
|
11562
|
+
|
|
11563
|
+
|
|
11564
|
+
/**
|
|
11565
|
+
* optional bool can_activate = 31;
|
|
11566
|
+
* @return {boolean}
|
|
11567
|
+
*/
|
|
11568
|
+
proto.bonus.UserBonusItem.prototype.getCanActivate = function() {
|
|
11569
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 31, false));
|
|
11570
|
+
};
|
|
11571
|
+
|
|
11572
|
+
|
|
11573
|
+
/**
|
|
11574
|
+
* @param {boolean} value
|
|
11575
|
+
* @return {!proto.bonus.UserBonusItem} returns this
|
|
11576
|
+
*/
|
|
11577
|
+
proto.bonus.UserBonusItem.prototype.setCanActivate = function(value) {
|
|
11578
|
+
return jspb.Message.setField(this, 31, value);
|
|
11579
|
+
};
|
|
11580
|
+
|
|
11581
|
+
|
|
11582
|
+
/**
|
|
11583
|
+
* Clears the field making it undefined.
|
|
11584
|
+
* @return {!proto.bonus.UserBonusItem} returns this
|
|
11585
|
+
*/
|
|
11586
|
+
proto.bonus.UserBonusItem.prototype.clearCanActivate = function() {
|
|
11587
|
+
return jspb.Message.setField(this, 31, undefined);
|
|
11588
|
+
};
|
|
11589
|
+
|
|
11590
|
+
|
|
11591
|
+
/**
|
|
11592
|
+
* Returns whether this field is set.
|
|
11593
|
+
* @return {boolean}
|
|
11594
|
+
*/
|
|
11595
|
+
proto.bonus.UserBonusItem.prototype.hasCanActivate = function() {
|
|
11596
|
+
return jspb.Message.getField(this, 31) != null;
|
|
11597
|
+
};
|
|
11598
|
+
|
|
11599
|
+
|
|
11412
11600
|
|
|
11413
11601
|
|
|
11414
11602
|
|
|
@@ -13414,6 +13602,728 @@ proto.bonus.UserBonusItemsResponse.prototype.hasTotalItems = function() {
|
|
|
13414
13602
|
|
|
13415
13603
|
|
|
13416
13604
|
|
|
13605
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
13606
|
+
/**
|
|
13607
|
+
* Creates an object representation of this proto.
|
|
13608
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
13609
|
+
* Optional fields that are not set will be set to undefined.
|
|
13610
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
13611
|
+
* For the list of reserved names please see:
|
|
13612
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
13613
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
13614
|
+
* JSPB instance for transitional soy proto support:
|
|
13615
|
+
* http://goto/soy-param-migration
|
|
13616
|
+
* @return {!Object}
|
|
13617
|
+
*/
|
|
13618
|
+
proto.bonus.GetUserBonusHistoryRequest.prototype.toObject = function(opt_includeInstance) {
|
|
13619
|
+
return proto.bonus.GetUserBonusHistoryRequest.toObject(opt_includeInstance, this);
|
|
13620
|
+
};
|
|
13621
|
+
|
|
13622
|
+
|
|
13623
|
+
/**
|
|
13624
|
+
* Static version of the {@see toObject} method.
|
|
13625
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
13626
|
+
* the JSPB instance for transitional soy proto support:
|
|
13627
|
+
* http://goto/soy-param-migration
|
|
13628
|
+
* @param {!proto.bonus.GetUserBonusHistoryRequest} msg The msg instance to transform.
|
|
13629
|
+
* @return {!Object}
|
|
13630
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
13631
|
+
*/
|
|
13632
|
+
proto.bonus.GetUserBonusHistoryRequest.toObject = function(includeInstance, msg) {
|
|
13633
|
+
var f, obj = {
|
|
13634
|
+
userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
13635
|
+
type: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
13636
|
+
currency: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
13637
|
+
country: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
13638
|
+
locale: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
13639
|
+
isMobile: jspb.Message.getBooleanFieldWithDefault(msg, 6, false),
|
|
13640
|
+
limit: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
|
13641
|
+
offset: jspb.Message.getFieldWithDefault(msg, 8, 0)
|
|
13642
|
+
};
|
|
13643
|
+
|
|
13644
|
+
if (includeInstance) {
|
|
13645
|
+
obj.$jspbMessageInstance = msg;
|
|
13646
|
+
}
|
|
13647
|
+
return obj;
|
|
13648
|
+
};
|
|
13649
|
+
}
|
|
13650
|
+
|
|
13651
|
+
|
|
13652
|
+
/**
|
|
13653
|
+
* Deserializes binary data (in protobuf wire format).
|
|
13654
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
13655
|
+
* @return {!proto.bonus.GetUserBonusHistoryRequest}
|
|
13656
|
+
*/
|
|
13657
|
+
proto.bonus.GetUserBonusHistoryRequest.deserializeBinary = function(bytes) {
|
|
13658
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
13659
|
+
var msg = new proto.bonus.GetUserBonusHistoryRequest;
|
|
13660
|
+
return proto.bonus.GetUserBonusHistoryRequest.deserializeBinaryFromReader(msg, reader);
|
|
13661
|
+
};
|
|
13662
|
+
|
|
13663
|
+
|
|
13664
|
+
/**
|
|
13665
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
13666
|
+
* given reader into the given message object.
|
|
13667
|
+
* @param {!proto.bonus.GetUserBonusHistoryRequest} msg The message object to deserialize into.
|
|
13668
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
13669
|
+
* @return {!proto.bonus.GetUserBonusHistoryRequest}
|
|
13670
|
+
*/
|
|
13671
|
+
proto.bonus.GetUserBonusHistoryRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
13672
|
+
while (reader.nextField()) {
|
|
13673
|
+
if (reader.isEndGroup()) {
|
|
13674
|
+
break;
|
|
13675
|
+
}
|
|
13676
|
+
var field = reader.getFieldNumber();
|
|
13677
|
+
switch (field) {
|
|
13678
|
+
case 1:
|
|
13679
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
13680
|
+
msg.setUserId(value);
|
|
13681
|
+
break;
|
|
13682
|
+
case 2:
|
|
13683
|
+
var value = /** @type {string} */ (reader.readString());
|
|
13684
|
+
msg.setType(value);
|
|
13685
|
+
break;
|
|
13686
|
+
case 3:
|
|
13687
|
+
var value = /** @type {string} */ (reader.readString());
|
|
13688
|
+
msg.setCurrency(value);
|
|
13689
|
+
break;
|
|
13690
|
+
case 4:
|
|
13691
|
+
var value = /** @type {string} */ (reader.readString());
|
|
13692
|
+
msg.setCountry(value);
|
|
13693
|
+
break;
|
|
13694
|
+
case 5:
|
|
13695
|
+
var value = /** @type {string} */ (reader.readString());
|
|
13696
|
+
msg.setLocale(value);
|
|
13697
|
+
break;
|
|
13698
|
+
case 6:
|
|
13699
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
13700
|
+
msg.setIsMobile(value);
|
|
13701
|
+
break;
|
|
13702
|
+
case 7:
|
|
13703
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
13704
|
+
msg.setLimit(value);
|
|
13705
|
+
break;
|
|
13706
|
+
case 8:
|
|
13707
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
13708
|
+
msg.setOffset(value);
|
|
13709
|
+
break;
|
|
13710
|
+
default:
|
|
13711
|
+
reader.skipField();
|
|
13712
|
+
break;
|
|
13713
|
+
}
|
|
13714
|
+
}
|
|
13715
|
+
return msg;
|
|
13716
|
+
};
|
|
13717
|
+
|
|
13718
|
+
|
|
13719
|
+
/**
|
|
13720
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
13721
|
+
* @return {!Uint8Array}
|
|
13722
|
+
*/
|
|
13723
|
+
proto.bonus.GetUserBonusHistoryRequest.prototype.serializeBinary = function() {
|
|
13724
|
+
var writer = new jspb.BinaryWriter();
|
|
13725
|
+
proto.bonus.GetUserBonusHistoryRequest.serializeBinaryToWriter(this, writer);
|
|
13726
|
+
return writer.getResultBuffer();
|
|
13727
|
+
};
|
|
13728
|
+
|
|
13729
|
+
|
|
13730
|
+
/**
|
|
13731
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
13732
|
+
* format), writing to the given BinaryWriter.
|
|
13733
|
+
* @param {!proto.bonus.GetUserBonusHistoryRequest} message
|
|
13734
|
+
* @param {!jspb.BinaryWriter} writer
|
|
13735
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
13736
|
+
*/
|
|
13737
|
+
proto.bonus.GetUserBonusHistoryRequest.serializeBinaryToWriter = function(message, writer) {
|
|
13738
|
+
var f = undefined;
|
|
13739
|
+
f = message.getUserId();
|
|
13740
|
+
if (f !== 0) {
|
|
13741
|
+
writer.writeInt32(
|
|
13742
|
+
1,
|
|
13743
|
+
f
|
|
13744
|
+
);
|
|
13745
|
+
}
|
|
13746
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
|
13747
|
+
if (f != null) {
|
|
13748
|
+
writer.writeString(
|
|
13749
|
+
2,
|
|
13750
|
+
f
|
|
13751
|
+
);
|
|
13752
|
+
}
|
|
13753
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
|
13754
|
+
if (f != null) {
|
|
13755
|
+
writer.writeString(
|
|
13756
|
+
3,
|
|
13757
|
+
f
|
|
13758
|
+
);
|
|
13759
|
+
}
|
|
13760
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
|
13761
|
+
if (f != null) {
|
|
13762
|
+
writer.writeString(
|
|
13763
|
+
4,
|
|
13764
|
+
f
|
|
13765
|
+
);
|
|
13766
|
+
}
|
|
13767
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 5));
|
|
13768
|
+
if (f != null) {
|
|
13769
|
+
writer.writeString(
|
|
13770
|
+
5,
|
|
13771
|
+
f
|
|
13772
|
+
);
|
|
13773
|
+
}
|
|
13774
|
+
f = /** @type {boolean} */ (jspb.Message.getField(message, 6));
|
|
13775
|
+
if (f != null) {
|
|
13776
|
+
writer.writeBool(
|
|
13777
|
+
6,
|
|
13778
|
+
f
|
|
13779
|
+
);
|
|
13780
|
+
}
|
|
13781
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 7));
|
|
13782
|
+
if (f != null) {
|
|
13783
|
+
writer.writeInt32(
|
|
13784
|
+
7,
|
|
13785
|
+
f
|
|
13786
|
+
);
|
|
13787
|
+
}
|
|
13788
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 8));
|
|
13789
|
+
if (f != null) {
|
|
13790
|
+
writer.writeInt32(
|
|
13791
|
+
8,
|
|
13792
|
+
f
|
|
13793
|
+
);
|
|
13794
|
+
}
|
|
13795
|
+
};
|
|
13796
|
+
|
|
13797
|
+
|
|
13798
|
+
/**
|
|
13799
|
+
* optional int32 user_id = 1;
|
|
13800
|
+
* @return {number}
|
|
13801
|
+
*/
|
|
13802
|
+
proto.bonus.GetUserBonusHistoryRequest.prototype.getUserId = function() {
|
|
13803
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
13804
|
+
};
|
|
13805
|
+
|
|
13806
|
+
|
|
13807
|
+
/**
|
|
13808
|
+
* @param {number} value
|
|
13809
|
+
* @return {!proto.bonus.GetUserBonusHistoryRequest} returns this
|
|
13810
|
+
*/
|
|
13811
|
+
proto.bonus.GetUserBonusHistoryRequest.prototype.setUserId = function(value) {
|
|
13812
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
13813
|
+
};
|
|
13814
|
+
|
|
13815
|
+
|
|
13816
|
+
/**
|
|
13817
|
+
* optional string type = 2;
|
|
13818
|
+
* @return {string}
|
|
13819
|
+
*/
|
|
13820
|
+
proto.bonus.GetUserBonusHistoryRequest.prototype.getType = function() {
|
|
13821
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
13822
|
+
};
|
|
13823
|
+
|
|
13824
|
+
|
|
13825
|
+
/**
|
|
13826
|
+
* @param {string} value
|
|
13827
|
+
* @return {!proto.bonus.GetUserBonusHistoryRequest} returns this
|
|
13828
|
+
*/
|
|
13829
|
+
proto.bonus.GetUserBonusHistoryRequest.prototype.setType = function(value) {
|
|
13830
|
+
return jspb.Message.setField(this, 2, value);
|
|
13831
|
+
};
|
|
13832
|
+
|
|
13833
|
+
|
|
13834
|
+
/**
|
|
13835
|
+
* Clears the field making it undefined.
|
|
13836
|
+
* @return {!proto.bonus.GetUserBonusHistoryRequest} returns this
|
|
13837
|
+
*/
|
|
13838
|
+
proto.bonus.GetUserBonusHistoryRequest.prototype.clearType = function() {
|
|
13839
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
13840
|
+
};
|
|
13841
|
+
|
|
13842
|
+
|
|
13843
|
+
/**
|
|
13844
|
+
* Returns whether this field is set.
|
|
13845
|
+
* @return {boolean}
|
|
13846
|
+
*/
|
|
13847
|
+
proto.bonus.GetUserBonusHistoryRequest.prototype.hasType = function() {
|
|
13848
|
+
return jspb.Message.getField(this, 2) != null;
|
|
13849
|
+
};
|
|
13850
|
+
|
|
13851
|
+
|
|
13852
|
+
/**
|
|
13853
|
+
* optional string currency = 3;
|
|
13854
|
+
* @return {string}
|
|
13855
|
+
*/
|
|
13856
|
+
proto.bonus.GetUserBonusHistoryRequest.prototype.getCurrency = function() {
|
|
13857
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
13858
|
+
};
|
|
13859
|
+
|
|
13860
|
+
|
|
13861
|
+
/**
|
|
13862
|
+
* @param {string} value
|
|
13863
|
+
* @return {!proto.bonus.GetUserBonusHistoryRequest} returns this
|
|
13864
|
+
*/
|
|
13865
|
+
proto.bonus.GetUserBonusHistoryRequest.prototype.setCurrency = function(value) {
|
|
13866
|
+
return jspb.Message.setField(this, 3, value);
|
|
13867
|
+
};
|
|
13868
|
+
|
|
13869
|
+
|
|
13870
|
+
/**
|
|
13871
|
+
* Clears the field making it undefined.
|
|
13872
|
+
* @return {!proto.bonus.GetUserBonusHistoryRequest} returns this
|
|
13873
|
+
*/
|
|
13874
|
+
proto.bonus.GetUserBonusHistoryRequest.prototype.clearCurrency = function() {
|
|
13875
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
13876
|
+
};
|
|
13877
|
+
|
|
13878
|
+
|
|
13879
|
+
/**
|
|
13880
|
+
* Returns whether this field is set.
|
|
13881
|
+
* @return {boolean}
|
|
13882
|
+
*/
|
|
13883
|
+
proto.bonus.GetUserBonusHistoryRequest.prototype.hasCurrency = function() {
|
|
13884
|
+
return jspb.Message.getField(this, 3) != null;
|
|
13885
|
+
};
|
|
13886
|
+
|
|
13887
|
+
|
|
13888
|
+
/**
|
|
13889
|
+
* optional string country = 4;
|
|
13890
|
+
* @return {string}
|
|
13891
|
+
*/
|
|
13892
|
+
proto.bonus.GetUserBonusHistoryRequest.prototype.getCountry = function() {
|
|
13893
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
13894
|
+
};
|
|
13895
|
+
|
|
13896
|
+
|
|
13897
|
+
/**
|
|
13898
|
+
* @param {string} value
|
|
13899
|
+
* @return {!proto.bonus.GetUserBonusHistoryRequest} returns this
|
|
13900
|
+
*/
|
|
13901
|
+
proto.bonus.GetUserBonusHistoryRequest.prototype.setCountry = function(value) {
|
|
13902
|
+
return jspb.Message.setField(this, 4, value);
|
|
13903
|
+
};
|
|
13904
|
+
|
|
13905
|
+
|
|
13906
|
+
/**
|
|
13907
|
+
* Clears the field making it undefined.
|
|
13908
|
+
* @return {!proto.bonus.GetUserBonusHistoryRequest} returns this
|
|
13909
|
+
*/
|
|
13910
|
+
proto.bonus.GetUserBonusHistoryRequest.prototype.clearCountry = function() {
|
|
13911
|
+
return jspb.Message.setField(this, 4, undefined);
|
|
13912
|
+
};
|
|
13913
|
+
|
|
13914
|
+
|
|
13915
|
+
/**
|
|
13916
|
+
* Returns whether this field is set.
|
|
13917
|
+
* @return {boolean}
|
|
13918
|
+
*/
|
|
13919
|
+
proto.bonus.GetUserBonusHistoryRequest.prototype.hasCountry = function() {
|
|
13920
|
+
return jspb.Message.getField(this, 4) != null;
|
|
13921
|
+
};
|
|
13922
|
+
|
|
13923
|
+
|
|
13924
|
+
/**
|
|
13925
|
+
* optional string locale = 5;
|
|
13926
|
+
* @return {string}
|
|
13927
|
+
*/
|
|
13928
|
+
proto.bonus.GetUserBonusHistoryRequest.prototype.getLocale = function() {
|
|
13929
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
13930
|
+
};
|
|
13931
|
+
|
|
13932
|
+
|
|
13933
|
+
/**
|
|
13934
|
+
* @param {string} value
|
|
13935
|
+
* @return {!proto.bonus.GetUserBonusHistoryRequest} returns this
|
|
13936
|
+
*/
|
|
13937
|
+
proto.bonus.GetUserBonusHistoryRequest.prototype.setLocale = function(value) {
|
|
13938
|
+
return jspb.Message.setField(this, 5, value);
|
|
13939
|
+
};
|
|
13940
|
+
|
|
13941
|
+
|
|
13942
|
+
/**
|
|
13943
|
+
* Clears the field making it undefined.
|
|
13944
|
+
* @return {!proto.bonus.GetUserBonusHistoryRequest} returns this
|
|
13945
|
+
*/
|
|
13946
|
+
proto.bonus.GetUserBonusHistoryRequest.prototype.clearLocale = function() {
|
|
13947
|
+
return jspb.Message.setField(this, 5, undefined);
|
|
13948
|
+
};
|
|
13949
|
+
|
|
13950
|
+
|
|
13951
|
+
/**
|
|
13952
|
+
* Returns whether this field is set.
|
|
13953
|
+
* @return {boolean}
|
|
13954
|
+
*/
|
|
13955
|
+
proto.bonus.GetUserBonusHistoryRequest.prototype.hasLocale = function() {
|
|
13956
|
+
return jspb.Message.getField(this, 5) != null;
|
|
13957
|
+
};
|
|
13958
|
+
|
|
13959
|
+
|
|
13960
|
+
/**
|
|
13961
|
+
* optional bool is_mobile = 6;
|
|
13962
|
+
* @return {boolean}
|
|
13963
|
+
*/
|
|
13964
|
+
proto.bonus.GetUserBonusHistoryRequest.prototype.getIsMobile = function() {
|
|
13965
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false));
|
|
13966
|
+
};
|
|
13967
|
+
|
|
13968
|
+
|
|
13969
|
+
/**
|
|
13970
|
+
* @param {boolean} value
|
|
13971
|
+
* @return {!proto.bonus.GetUserBonusHistoryRequest} returns this
|
|
13972
|
+
*/
|
|
13973
|
+
proto.bonus.GetUserBonusHistoryRequest.prototype.setIsMobile = function(value) {
|
|
13974
|
+
return jspb.Message.setField(this, 6, value);
|
|
13975
|
+
};
|
|
13976
|
+
|
|
13977
|
+
|
|
13978
|
+
/**
|
|
13979
|
+
* Clears the field making it undefined.
|
|
13980
|
+
* @return {!proto.bonus.GetUserBonusHistoryRequest} returns this
|
|
13981
|
+
*/
|
|
13982
|
+
proto.bonus.GetUserBonusHistoryRequest.prototype.clearIsMobile = function() {
|
|
13983
|
+
return jspb.Message.setField(this, 6, undefined);
|
|
13984
|
+
};
|
|
13985
|
+
|
|
13986
|
+
|
|
13987
|
+
/**
|
|
13988
|
+
* Returns whether this field is set.
|
|
13989
|
+
* @return {boolean}
|
|
13990
|
+
*/
|
|
13991
|
+
proto.bonus.GetUserBonusHistoryRequest.prototype.hasIsMobile = function() {
|
|
13992
|
+
return jspb.Message.getField(this, 6) != null;
|
|
13993
|
+
};
|
|
13994
|
+
|
|
13995
|
+
|
|
13996
|
+
/**
|
|
13997
|
+
* optional int32 limit = 7;
|
|
13998
|
+
* @return {number}
|
|
13999
|
+
*/
|
|
14000
|
+
proto.bonus.GetUserBonusHistoryRequest.prototype.getLimit = function() {
|
|
14001
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
|
|
14002
|
+
};
|
|
14003
|
+
|
|
14004
|
+
|
|
14005
|
+
/**
|
|
14006
|
+
* @param {number} value
|
|
14007
|
+
* @return {!proto.bonus.GetUserBonusHistoryRequest} returns this
|
|
14008
|
+
*/
|
|
14009
|
+
proto.bonus.GetUserBonusHistoryRequest.prototype.setLimit = function(value) {
|
|
14010
|
+
return jspb.Message.setField(this, 7, value);
|
|
14011
|
+
};
|
|
14012
|
+
|
|
14013
|
+
|
|
14014
|
+
/**
|
|
14015
|
+
* Clears the field making it undefined.
|
|
14016
|
+
* @return {!proto.bonus.GetUserBonusHistoryRequest} returns this
|
|
14017
|
+
*/
|
|
14018
|
+
proto.bonus.GetUserBonusHistoryRequest.prototype.clearLimit = function() {
|
|
14019
|
+
return jspb.Message.setField(this, 7, undefined);
|
|
14020
|
+
};
|
|
14021
|
+
|
|
14022
|
+
|
|
14023
|
+
/**
|
|
14024
|
+
* Returns whether this field is set.
|
|
14025
|
+
* @return {boolean}
|
|
14026
|
+
*/
|
|
14027
|
+
proto.bonus.GetUserBonusHistoryRequest.prototype.hasLimit = function() {
|
|
14028
|
+
return jspb.Message.getField(this, 7) != null;
|
|
14029
|
+
};
|
|
14030
|
+
|
|
14031
|
+
|
|
14032
|
+
/**
|
|
14033
|
+
* optional int32 offset = 8;
|
|
14034
|
+
* @return {number}
|
|
14035
|
+
*/
|
|
14036
|
+
proto.bonus.GetUserBonusHistoryRequest.prototype.getOffset = function() {
|
|
14037
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
|
|
14038
|
+
};
|
|
14039
|
+
|
|
14040
|
+
|
|
14041
|
+
/**
|
|
14042
|
+
* @param {number} value
|
|
14043
|
+
* @return {!proto.bonus.GetUserBonusHistoryRequest} returns this
|
|
14044
|
+
*/
|
|
14045
|
+
proto.bonus.GetUserBonusHistoryRequest.prototype.setOffset = function(value) {
|
|
14046
|
+
return jspb.Message.setField(this, 8, value);
|
|
14047
|
+
};
|
|
14048
|
+
|
|
14049
|
+
|
|
14050
|
+
/**
|
|
14051
|
+
* Clears the field making it undefined.
|
|
14052
|
+
* @return {!proto.bonus.GetUserBonusHistoryRequest} returns this
|
|
14053
|
+
*/
|
|
14054
|
+
proto.bonus.GetUserBonusHistoryRequest.prototype.clearOffset = function() {
|
|
14055
|
+
return jspb.Message.setField(this, 8, undefined);
|
|
14056
|
+
};
|
|
14057
|
+
|
|
14058
|
+
|
|
14059
|
+
/**
|
|
14060
|
+
* Returns whether this field is set.
|
|
14061
|
+
* @return {boolean}
|
|
14062
|
+
*/
|
|
14063
|
+
proto.bonus.GetUserBonusHistoryRequest.prototype.hasOffset = function() {
|
|
14064
|
+
return jspb.Message.getField(this, 8) != null;
|
|
14065
|
+
};
|
|
14066
|
+
|
|
14067
|
+
|
|
14068
|
+
|
|
14069
|
+
/**
|
|
14070
|
+
* List of repeated fields within this message type.
|
|
14071
|
+
* @private {!Array<number>}
|
|
14072
|
+
* @const
|
|
14073
|
+
*/
|
|
14074
|
+
proto.bonus.UserBonusHistoryResponse.repeatedFields_ = [1];
|
|
14075
|
+
|
|
14076
|
+
|
|
14077
|
+
|
|
14078
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
14079
|
+
/**
|
|
14080
|
+
* Creates an object representation of this proto.
|
|
14081
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
14082
|
+
* Optional fields that are not set will be set to undefined.
|
|
14083
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
14084
|
+
* For the list of reserved names please see:
|
|
14085
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
14086
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
14087
|
+
* JSPB instance for transitional soy proto support:
|
|
14088
|
+
* http://goto/soy-param-migration
|
|
14089
|
+
* @return {!Object}
|
|
14090
|
+
*/
|
|
14091
|
+
proto.bonus.UserBonusHistoryResponse.prototype.toObject = function(opt_includeInstance) {
|
|
14092
|
+
return proto.bonus.UserBonusHistoryResponse.toObject(opt_includeInstance, this);
|
|
14093
|
+
};
|
|
14094
|
+
|
|
14095
|
+
|
|
14096
|
+
/**
|
|
14097
|
+
* Static version of the {@see toObject} method.
|
|
14098
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
14099
|
+
* the JSPB instance for transitional soy proto support:
|
|
14100
|
+
* http://goto/soy-param-migration
|
|
14101
|
+
* @param {!proto.bonus.UserBonusHistoryResponse} msg The msg instance to transform.
|
|
14102
|
+
* @return {!Object}
|
|
14103
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
14104
|
+
*/
|
|
14105
|
+
proto.bonus.UserBonusHistoryResponse.toObject = function(includeInstance, msg) {
|
|
14106
|
+
var f, obj = {
|
|
14107
|
+
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
|
14108
|
+
proto.bonus.UserBonusItem.toObject, includeInstance),
|
|
14109
|
+
totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
14110
|
+
totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
|
14111
|
+
};
|
|
14112
|
+
|
|
14113
|
+
if (includeInstance) {
|
|
14114
|
+
obj.$jspbMessageInstance = msg;
|
|
14115
|
+
}
|
|
14116
|
+
return obj;
|
|
14117
|
+
};
|
|
14118
|
+
}
|
|
14119
|
+
|
|
14120
|
+
|
|
14121
|
+
/**
|
|
14122
|
+
* Deserializes binary data (in protobuf wire format).
|
|
14123
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
14124
|
+
* @return {!proto.bonus.UserBonusHistoryResponse}
|
|
14125
|
+
*/
|
|
14126
|
+
proto.bonus.UserBonusHistoryResponse.deserializeBinary = function(bytes) {
|
|
14127
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
14128
|
+
var msg = new proto.bonus.UserBonusHistoryResponse;
|
|
14129
|
+
return proto.bonus.UserBonusHistoryResponse.deserializeBinaryFromReader(msg, reader);
|
|
14130
|
+
};
|
|
14131
|
+
|
|
14132
|
+
|
|
14133
|
+
/**
|
|
14134
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
14135
|
+
* given reader into the given message object.
|
|
14136
|
+
* @param {!proto.bonus.UserBonusHistoryResponse} msg The message object to deserialize into.
|
|
14137
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
14138
|
+
* @return {!proto.bonus.UserBonusHistoryResponse}
|
|
14139
|
+
*/
|
|
14140
|
+
proto.bonus.UserBonusHistoryResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
14141
|
+
while (reader.nextField()) {
|
|
14142
|
+
if (reader.isEndGroup()) {
|
|
14143
|
+
break;
|
|
14144
|
+
}
|
|
14145
|
+
var field = reader.getFieldNumber();
|
|
14146
|
+
switch (field) {
|
|
14147
|
+
case 1:
|
|
14148
|
+
var value = new proto.bonus.UserBonusItem;
|
|
14149
|
+
reader.readMessage(value,proto.bonus.UserBonusItem.deserializeBinaryFromReader);
|
|
14150
|
+
msg.addItems(value);
|
|
14151
|
+
break;
|
|
14152
|
+
case 2:
|
|
14153
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
14154
|
+
msg.setTotalPages(value);
|
|
14155
|
+
break;
|
|
14156
|
+
case 3:
|
|
14157
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
14158
|
+
msg.setTotalItems(value);
|
|
14159
|
+
break;
|
|
14160
|
+
default:
|
|
14161
|
+
reader.skipField();
|
|
14162
|
+
break;
|
|
14163
|
+
}
|
|
14164
|
+
}
|
|
14165
|
+
return msg;
|
|
14166
|
+
};
|
|
14167
|
+
|
|
14168
|
+
|
|
14169
|
+
/**
|
|
14170
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
14171
|
+
* @return {!Uint8Array}
|
|
14172
|
+
*/
|
|
14173
|
+
proto.bonus.UserBonusHistoryResponse.prototype.serializeBinary = function() {
|
|
14174
|
+
var writer = new jspb.BinaryWriter();
|
|
14175
|
+
proto.bonus.UserBonusHistoryResponse.serializeBinaryToWriter(this, writer);
|
|
14176
|
+
return writer.getResultBuffer();
|
|
14177
|
+
};
|
|
14178
|
+
|
|
14179
|
+
|
|
14180
|
+
/**
|
|
14181
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
14182
|
+
* format), writing to the given BinaryWriter.
|
|
14183
|
+
* @param {!proto.bonus.UserBonusHistoryResponse} message
|
|
14184
|
+
* @param {!jspb.BinaryWriter} writer
|
|
14185
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
14186
|
+
*/
|
|
14187
|
+
proto.bonus.UserBonusHistoryResponse.serializeBinaryToWriter = function(message, writer) {
|
|
14188
|
+
var f = undefined;
|
|
14189
|
+
f = message.getItemsList();
|
|
14190
|
+
if (f.length > 0) {
|
|
14191
|
+
writer.writeRepeatedMessage(
|
|
14192
|
+
1,
|
|
14193
|
+
f,
|
|
14194
|
+
proto.bonus.UserBonusItem.serializeBinaryToWriter
|
|
14195
|
+
);
|
|
14196
|
+
}
|
|
14197
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
|
14198
|
+
if (f != null) {
|
|
14199
|
+
writer.writeInt32(
|
|
14200
|
+
2,
|
|
14201
|
+
f
|
|
14202
|
+
);
|
|
14203
|
+
}
|
|
14204
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
|
14205
|
+
if (f != null) {
|
|
14206
|
+
writer.writeInt32(
|
|
14207
|
+
3,
|
|
14208
|
+
f
|
|
14209
|
+
);
|
|
14210
|
+
}
|
|
14211
|
+
};
|
|
14212
|
+
|
|
14213
|
+
|
|
14214
|
+
/**
|
|
14215
|
+
* repeated UserBonusItem items = 1;
|
|
14216
|
+
* @return {!Array<!proto.bonus.UserBonusItem>}
|
|
14217
|
+
*/
|
|
14218
|
+
proto.bonus.UserBonusHistoryResponse.prototype.getItemsList = function() {
|
|
14219
|
+
return /** @type{!Array<!proto.bonus.UserBonusItem>} */ (
|
|
14220
|
+
jspb.Message.getRepeatedWrapperField(this, proto.bonus.UserBonusItem, 1));
|
|
14221
|
+
};
|
|
14222
|
+
|
|
14223
|
+
|
|
14224
|
+
/**
|
|
14225
|
+
* @param {!Array<!proto.bonus.UserBonusItem>} value
|
|
14226
|
+
* @return {!proto.bonus.UserBonusHistoryResponse} returns this
|
|
14227
|
+
*/
|
|
14228
|
+
proto.bonus.UserBonusHistoryResponse.prototype.setItemsList = function(value) {
|
|
14229
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
14230
|
+
};
|
|
14231
|
+
|
|
14232
|
+
|
|
14233
|
+
/**
|
|
14234
|
+
* @param {!proto.bonus.UserBonusItem=} opt_value
|
|
14235
|
+
* @param {number=} opt_index
|
|
14236
|
+
* @return {!proto.bonus.UserBonusItem}
|
|
14237
|
+
*/
|
|
14238
|
+
proto.bonus.UserBonusHistoryResponse.prototype.addItems = function(opt_value, opt_index) {
|
|
14239
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.bonus.UserBonusItem, opt_index);
|
|
14240
|
+
};
|
|
14241
|
+
|
|
14242
|
+
|
|
14243
|
+
/**
|
|
14244
|
+
* Clears the list making it empty but non-null.
|
|
14245
|
+
* @return {!proto.bonus.UserBonusHistoryResponse} returns this
|
|
14246
|
+
*/
|
|
14247
|
+
proto.bonus.UserBonusHistoryResponse.prototype.clearItemsList = function() {
|
|
14248
|
+
return this.setItemsList([]);
|
|
14249
|
+
};
|
|
14250
|
+
|
|
14251
|
+
|
|
14252
|
+
/**
|
|
14253
|
+
* optional int32 total_pages = 2;
|
|
14254
|
+
* @return {number}
|
|
14255
|
+
*/
|
|
14256
|
+
proto.bonus.UserBonusHistoryResponse.prototype.getTotalPages = function() {
|
|
14257
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
14258
|
+
};
|
|
14259
|
+
|
|
14260
|
+
|
|
14261
|
+
/**
|
|
14262
|
+
* @param {number} value
|
|
14263
|
+
* @return {!proto.bonus.UserBonusHistoryResponse} returns this
|
|
14264
|
+
*/
|
|
14265
|
+
proto.bonus.UserBonusHistoryResponse.prototype.setTotalPages = function(value) {
|
|
14266
|
+
return jspb.Message.setField(this, 2, value);
|
|
14267
|
+
};
|
|
14268
|
+
|
|
14269
|
+
|
|
14270
|
+
/**
|
|
14271
|
+
* Clears the field making it undefined.
|
|
14272
|
+
* @return {!proto.bonus.UserBonusHistoryResponse} returns this
|
|
14273
|
+
*/
|
|
14274
|
+
proto.bonus.UserBonusHistoryResponse.prototype.clearTotalPages = function() {
|
|
14275
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
14276
|
+
};
|
|
14277
|
+
|
|
14278
|
+
|
|
14279
|
+
/**
|
|
14280
|
+
* Returns whether this field is set.
|
|
14281
|
+
* @return {boolean}
|
|
14282
|
+
*/
|
|
14283
|
+
proto.bonus.UserBonusHistoryResponse.prototype.hasTotalPages = function() {
|
|
14284
|
+
return jspb.Message.getField(this, 2) != null;
|
|
14285
|
+
};
|
|
14286
|
+
|
|
14287
|
+
|
|
14288
|
+
/**
|
|
14289
|
+
* optional int32 total_items = 3;
|
|
14290
|
+
* @return {number}
|
|
14291
|
+
*/
|
|
14292
|
+
proto.bonus.UserBonusHistoryResponse.prototype.getTotalItems = function() {
|
|
14293
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
14294
|
+
};
|
|
14295
|
+
|
|
14296
|
+
|
|
14297
|
+
/**
|
|
14298
|
+
* @param {number} value
|
|
14299
|
+
* @return {!proto.bonus.UserBonusHistoryResponse} returns this
|
|
14300
|
+
*/
|
|
14301
|
+
proto.bonus.UserBonusHistoryResponse.prototype.setTotalItems = function(value) {
|
|
14302
|
+
return jspb.Message.setField(this, 3, value);
|
|
14303
|
+
};
|
|
14304
|
+
|
|
14305
|
+
|
|
14306
|
+
/**
|
|
14307
|
+
* Clears the field making it undefined.
|
|
14308
|
+
* @return {!proto.bonus.UserBonusHistoryResponse} returns this
|
|
14309
|
+
*/
|
|
14310
|
+
proto.bonus.UserBonusHistoryResponse.prototype.clearTotalItems = function() {
|
|
14311
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
14312
|
+
};
|
|
14313
|
+
|
|
14314
|
+
|
|
14315
|
+
/**
|
|
14316
|
+
* Returns whether this field is set.
|
|
14317
|
+
* @return {boolean}
|
|
14318
|
+
*/
|
|
14319
|
+
proto.bonus.UserBonusHistoryResponse.prototype.hasTotalItems = function() {
|
|
14320
|
+
return jspb.Message.getField(this, 3) != null;
|
|
14321
|
+
};
|
|
14322
|
+
|
|
14323
|
+
|
|
14324
|
+
|
|
14325
|
+
|
|
14326
|
+
|
|
13417
14327
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
13418
14328
|
/**
|
|
13419
14329
|
* Creates an object representation of this proto.
|