protobuf-platform 1.2.226 → 1.2.229
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 +25 -0
- package/bonus/bonus_grpc_pb.js +33 -0
- package/bonus/bonus_pb.js +1014 -0
- package/cms/cms.proto +1 -0
- package/cms/cms_pb.js +49 -1
- package/package.json +1 -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 getDepositEligibleUserBonuses(GetDepositEligibleUserBonusesRequest) returns (DepositEligibleUserBonusesResponse);
|
|
29
30
|
//Common lists
|
|
30
31
|
rpc readListBonusTypes(PaginationRequest) returns (BonusTypesResponse);
|
|
31
32
|
rpc readListBonusStatuses(PaginationRequest) returns (BonusStatusesResponse);
|
|
@@ -282,6 +283,30 @@ message UserBonusItemsResponse {
|
|
|
282
283
|
optional int32 total_pages = 2;
|
|
283
284
|
optional int32 total_items = 3;
|
|
284
285
|
}
|
|
286
|
+
message GetDepositEligibleUserBonusesRequest {
|
|
287
|
+
int32 user_id = 1;
|
|
288
|
+
optional string currency = 2;
|
|
289
|
+
optional string country = 3;
|
|
290
|
+
optional string locale = 4;
|
|
291
|
+
}
|
|
292
|
+
message DepositEligibleUserBonusesResponse {
|
|
293
|
+
repeated DepositEligibleUserBonusItem items = 1;
|
|
294
|
+
}
|
|
295
|
+
message DepositEligibleUserBonusItem {
|
|
296
|
+
int32 user_bonus_id = 1;
|
|
297
|
+
// UI fields
|
|
298
|
+
optional string title = 2;
|
|
299
|
+
// Images
|
|
300
|
+
optional string image = 3; // file name / relative path
|
|
301
|
+
optional string image_cdn = 4; // absolute CDN URL
|
|
302
|
+
// Deposit activation config
|
|
303
|
+
optional string currency = 5;
|
|
304
|
+
optional float deposit_min = 6;
|
|
305
|
+
optional float deposit_max = 7;
|
|
306
|
+
optional int32 number_of_deposit = 8;
|
|
307
|
+
// Display/validity
|
|
308
|
+
optional string activation_until = 9;
|
|
309
|
+
}
|
|
285
310
|
//Common Lists
|
|
286
311
|
message BonusType {
|
|
287
312
|
int32 id = 1;
|
package/bonus/bonus_grpc_pb.js
CHANGED
|
@@ -147,6 +147,17 @@ function deserialize_bonus_DashboardResponse(buffer_arg) {
|
|
|
147
147
|
return bonus_pb.DashboardResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
148
148
|
}
|
|
149
149
|
|
|
150
|
+
function serialize_bonus_DepositEligibleUserBonusesResponse(arg) {
|
|
151
|
+
if (!(arg instanceof bonus_pb.DepositEligibleUserBonusesResponse)) {
|
|
152
|
+
throw new Error('Expected argument of type bonus.DepositEligibleUserBonusesResponse');
|
|
153
|
+
}
|
|
154
|
+
return Buffer.from(arg.serializeBinary());
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
function deserialize_bonus_DepositEligibleUserBonusesResponse(buffer_arg) {
|
|
158
|
+
return bonus_pb.DepositEligibleUserBonusesResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
159
|
+
}
|
|
160
|
+
|
|
150
161
|
function serialize_bonus_File(arg) {
|
|
151
162
|
if (!(arg instanceof bonus_pb.File)) {
|
|
152
163
|
throw new Error('Expected argument of type bonus.File');
|
|
@@ -191,6 +202,17 @@ function deserialize_bonus_GetBonusTranslationRequest(buffer_arg) {
|
|
|
191
202
|
return bonus_pb.GetBonusTranslationRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
192
203
|
}
|
|
193
204
|
|
|
205
|
+
function serialize_bonus_GetDepositEligibleUserBonusesRequest(arg) {
|
|
206
|
+
if (!(arg instanceof bonus_pb.GetDepositEligibleUserBonusesRequest)) {
|
|
207
|
+
throw new Error('Expected argument of type bonus.GetDepositEligibleUserBonusesRequest');
|
|
208
|
+
}
|
|
209
|
+
return Buffer.from(arg.serializeBinary());
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
function deserialize_bonus_GetDepositEligibleUserBonusesRequest(buffer_arg) {
|
|
213
|
+
return bonus_pb.GetDepositEligibleUserBonusesRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
214
|
+
}
|
|
215
|
+
|
|
194
216
|
function serialize_bonus_GetFileRequest(arg) {
|
|
195
217
|
if (!(arg instanceof bonus_pb.GetFileRequest)) {
|
|
196
218
|
throw new Error('Expected argument of type bonus.GetFileRequest');
|
|
@@ -514,6 +536,17 @@ claimUserBonus: {
|
|
|
514
536
|
responseSerialize: serialize_bonus_UserBonusItemsResponse,
|
|
515
537
|
responseDeserialize: deserialize_bonus_UserBonusItemsResponse,
|
|
516
538
|
},
|
|
539
|
+
getDepositEligibleUserBonuses: {
|
|
540
|
+
path: '/bonus.Bonus/getDepositEligibleUserBonuses',
|
|
541
|
+
requestStream: false,
|
|
542
|
+
responseStream: false,
|
|
543
|
+
requestType: bonus_pb.GetDepositEligibleUserBonusesRequest,
|
|
544
|
+
responseType: bonus_pb.DepositEligibleUserBonusesResponse,
|
|
545
|
+
requestSerialize: serialize_bonus_GetDepositEligibleUserBonusesRequest,
|
|
546
|
+
requestDeserialize: deserialize_bonus_GetDepositEligibleUserBonusesRequest,
|
|
547
|
+
responseSerialize: serialize_bonus_DepositEligibleUserBonusesResponse,
|
|
548
|
+
responseDeserialize: deserialize_bonus_DepositEligibleUserBonusesResponse,
|
|
549
|
+
},
|
|
517
550
|
// Common lists
|
|
518
551
|
readListBonusTypes: {
|
|
519
552
|
path: '/bonus.Bonus/readListBonusTypes',
|
package/bonus/bonus_pb.js
CHANGED
|
@@ -43,12 +43,15 @@ goog.exportSymbol('proto.bonus.BonusTypesResponse', null, global);
|
|
|
43
43
|
goog.exportSymbol('proto.bonus.CurrencyStatusItem', null, global);
|
|
44
44
|
goog.exportSymbol('proto.bonus.DashboardRequest', null, global);
|
|
45
45
|
goog.exportSymbol('proto.bonus.DashboardResponse', null, global);
|
|
46
|
+
goog.exportSymbol('proto.bonus.DepositEligibleUserBonusItem', null, global);
|
|
47
|
+
goog.exportSymbol('proto.bonus.DepositEligibleUserBonusesResponse', null, global);
|
|
46
48
|
goog.exportSymbol('proto.bonus.File', null, global);
|
|
47
49
|
goog.exportSymbol('proto.bonus.FreeSpinItem', null, global);
|
|
48
50
|
goog.exportSymbol('proto.bonus.GameItem', null, global);
|
|
49
51
|
goog.exportSymbol('proto.bonus.GetBonusBySlugRequest', null, global);
|
|
50
52
|
goog.exportSymbol('proto.bonus.GetBonusRequest', null, global);
|
|
51
53
|
goog.exportSymbol('proto.bonus.GetBonusTranslationRequest', null, global);
|
|
54
|
+
goog.exportSymbol('proto.bonus.GetDepositEligibleUserBonusesRequest', null, global);
|
|
52
55
|
goog.exportSymbol('proto.bonus.GetFileRequest', null, global);
|
|
53
56
|
goog.exportSymbol('proto.bonus.GetUserBonusRequest', null, global);
|
|
54
57
|
goog.exportSymbol('proto.bonus.ItemsBunchRequest', null, global);
|
|
@@ -688,6 +691,69 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
688
691
|
*/
|
|
689
692
|
proto.bonus.UserBonusItemsResponse.displayName = 'proto.bonus.UserBonusItemsResponse';
|
|
690
693
|
}
|
|
694
|
+
/**
|
|
695
|
+
* Generated by JsPbCodeGenerator.
|
|
696
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
697
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
698
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
699
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
700
|
+
* valid.
|
|
701
|
+
* @extends {jspb.Message}
|
|
702
|
+
* @constructor
|
|
703
|
+
*/
|
|
704
|
+
proto.bonus.GetDepositEligibleUserBonusesRequest = function(opt_data) {
|
|
705
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
706
|
+
};
|
|
707
|
+
goog.inherits(proto.bonus.GetDepositEligibleUserBonusesRequest, jspb.Message);
|
|
708
|
+
if (goog.DEBUG && !COMPILED) {
|
|
709
|
+
/**
|
|
710
|
+
* @public
|
|
711
|
+
* @override
|
|
712
|
+
*/
|
|
713
|
+
proto.bonus.GetDepositEligibleUserBonusesRequest.displayName = 'proto.bonus.GetDepositEligibleUserBonusesRequest';
|
|
714
|
+
}
|
|
715
|
+
/**
|
|
716
|
+
* Generated by JsPbCodeGenerator.
|
|
717
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
718
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
719
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
720
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
721
|
+
* valid.
|
|
722
|
+
* @extends {jspb.Message}
|
|
723
|
+
* @constructor
|
|
724
|
+
*/
|
|
725
|
+
proto.bonus.DepositEligibleUserBonusesResponse = function(opt_data) {
|
|
726
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.bonus.DepositEligibleUserBonusesResponse.repeatedFields_, null);
|
|
727
|
+
};
|
|
728
|
+
goog.inherits(proto.bonus.DepositEligibleUserBonusesResponse, jspb.Message);
|
|
729
|
+
if (goog.DEBUG && !COMPILED) {
|
|
730
|
+
/**
|
|
731
|
+
* @public
|
|
732
|
+
* @override
|
|
733
|
+
*/
|
|
734
|
+
proto.bonus.DepositEligibleUserBonusesResponse.displayName = 'proto.bonus.DepositEligibleUserBonusesResponse';
|
|
735
|
+
}
|
|
736
|
+
/**
|
|
737
|
+
* Generated by JsPbCodeGenerator.
|
|
738
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
739
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
740
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
741
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
742
|
+
* valid.
|
|
743
|
+
* @extends {jspb.Message}
|
|
744
|
+
* @constructor
|
|
745
|
+
*/
|
|
746
|
+
proto.bonus.DepositEligibleUserBonusItem = function(opt_data) {
|
|
747
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
748
|
+
};
|
|
749
|
+
goog.inherits(proto.bonus.DepositEligibleUserBonusItem, jspb.Message);
|
|
750
|
+
if (goog.DEBUG && !COMPILED) {
|
|
751
|
+
/**
|
|
752
|
+
* @public
|
|
753
|
+
* @override
|
|
754
|
+
*/
|
|
755
|
+
proto.bonus.DepositEligibleUserBonusItem.displayName = 'proto.bonus.DepositEligibleUserBonusItem';
|
|
756
|
+
}
|
|
691
757
|
/**
|
|
692
758
|
* Generated by JsPbCodeGenerator.
|
|
693
759
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -12478,6 +12544,954 @@ proto.bonus.UserBonusItemsResponse.prototype.hasTotalItems = function() {
|
|
|
12478
12544
|
|
|
12479
12545
|
|
|
12480
12546
|
|
|
12547
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
12548
|
+
/**
|
|
12549
|
+
* Creates an object representation of this proto.
|
|
12550
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
12551
|
+
* Optional fields that are not set will be set to undefined.
|
|
12552
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
12553
|
+
* For the list of reserved names please see:
|
|
12554
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
12555
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
12556
|
+
* JSPB instance for transitional soy proto support:
|
|
12557
|
+
* http://goto/soy-param-migration
|
|
12558
|
+
* @return {!Object}
|
|
12559
|
+
*/
|
|
12560
|
+
proto.bonus.GetDepositEligibleUserBonusesRequest.prototype.toObject = function(opt_includeInstance) {
|
|
12561
|
+
return proto.bonus.GetDepositEligibleUserBonusesRequest.toObject(opt_includeInstance, this);
|
|
12562
|
+
};
|
|
12563
|
+
|
|
12564
|
+
|
|
12565
|
+
/**
|
|
12566
|
+
* Static version of the {@see toObject} method.
|
|
12567
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
12568
|
+
* the JSPB instance for transitional soy proto support:
|
|
12569
|
+
* http://goto/soy-param-migration
|
|
12570
|
+
* @param {!proto.bonus.GetDepositEligibleUserBonusesRequest} msg The msg instance to transform.
|
|
12571
|
+
* @return {!Object}
|
|
12572
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
12573
|
+
*/
|
|
12574
|
+
proto.bonus.GetDepositEligibleUserBonusesRequest.toObject = function(includeInstance, msg) {
|
|
12575
|
+
var f, obj = {
|
|
12576
|
+
userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
12577
|
+
currency: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
12578
|
+
country: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
12579
|
+
locale: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
12580
|
+
};
|
|
12581
|
+
|
|
12582
|
+
if (includeInstance) {
|
|
12583
|
+
obj.$jspbMessageInstance = msg;
|
|
12584
|
+
}
|
|
12585
|
+
return obj;
|
|
12586
|
+
};
|
|
12587
|
+
}
|
|
12588
|
+
|
|
12589
|
+
|
|
12590
|
+
/**
|
|
12591
|
+
* Deserializes binary data (in protobuf wire format).
|
|
12592
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
12593
|
+
* @return {!proto.bonus.GetDepositEligibleUserBonusesRequest}
|
|
12594
|
+
*/
|
|
12595
|
+
proto.bonus.GetDepositEligibleUserBonusesRequest.deserializeBinary = function(bytes) {
|
|
12596
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
12597
|
+
var msg = new proto.bonus.GetDepositEligibleUserBonusesRequest;
|
|
12598
|
+
return proto.bonus.GetDepositEligibleUserBonusesRequest.deserializeBinaryFromReader(msg, reader);
|
|
12599
|
+
};
|
|
12600
|
+
|
|
12601
|
+
|
|
12602
|
+
/**
|
|
12603
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
12604
|
+
* given reader into the given message object.
|
|
12605
|
+
* @param {!proto.bonus.GetDepositEligibleUserBonusesRequest} msg The message object to deserialize into.
|
|
12606
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
12607
|
+
* @return {!proto.bonus.GetDepositEligibleUserBonusesRequest}
|
|
12608
|
+
*/
|
|
12609
|
+
proto.bonus.GetDepositEligibleUserBonusesRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
12610
|
+
while (reader.nextField()) {
|
|
12611
|
+
if (reader.isEndGroup()) {
|
|
12612
|
+
break;
|
|
12613
|
+
}
|
|
12614
|
+
var field = reader.getFieldNumber();
|
|
12615
|
+
switch (field) {
|
|
12616
|
+
case 1:
|
|
12617
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
12618
|
+
msg.setUserId(value);
|
|
12619
|
+
break;
|
|
12620
|
+
case 2:
|
|
12621
|
+
var value = /** @type {string} */ (reader.readString());
|
|
12622
|
+
msg.setCurrency(value);
|
|
12623
|
+
break;
|
|
12624
|
+
case 3:
|
|
12625
|
+
var value = /** @type {string} */ (reader.readString());
|
|
12626
|
+
msg.setCountry(value);
|
|
12627
|
+
break;
|
|
12628
|
+
case 4:
|
|
12629
|
+
var value = /** @type {string} */ (reader.readString());
|
|
12630
|
+
msg.setLocale(value);
|
|
12631
|
+
break;
|
|
12632
|
+
default:
|
|
12633
|
+
reader.skipField();
|
|
12634
|
+
break;
|
|
12635
|
+
}
|
|
12636
|
+
}
|
|
12637
|
+
return msg;
|
|
12638
|
+
};
|
|
12639
|
+
|
|
12640
|
+
|
|
12641
|
+
/**
|
|
12642
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
12643
|
+
* @return {!Uint8Array}
|
|
12644
|
+
*/
|
|
12645
|
+
proto.bonus.GetDepositEligibleUserBonusesRequest.prototype.serializeBinary = function() {
|
|
12646
|
+
var writer = new jspb.BinaryWriter();
|
|
12647
|
+
proto.bonus.GetDepositEligibleUserBonusesRequest.serializeBinaryToWriter(this, writer);
|
|
12648
|
+
return writer.getResultBuffer();
|
|
12649
|
+
};
|
|
12650
|
+
|
|
12651
|
+
|
|
12652
|
+
/**
|
|
12653
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
12654
|
+
* format), writing to the given BinaryWriter.
|
|
12655
|
+
* @param {!proto.bonus.GetDepositEligibleUserBonusesRequest} message
|
|
12656
|
+
* @param {!jspb.BinaryWriter} writer
|
|
12657
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
12658
|
+
*/
|
|
12659
|
+
proto.bonus.GetDepositEligibleUserBonusesRequest.serializeBinaryToWriter = function(message, writer) {
|
|
12660
|
+
var f = undefined;
|
|
12661
|
+
f = message.getUserId();
|
|
12662
|
+
if (f !== 0) {
|
|
12663
|
+
writer.writeInt32(
|
|
12664
|
+
1,
|
|
12665
|
+
f
|
|
12666
|
+
);
|
|
12667
|
+
}
|
|
12668
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
|
12669
|
+
if (f != null) {
|
|
12670
|
+
writer.writeString(
|
|
12671
|
+
2,
|
|
12672
|
+
f
|
|
12673
|
+
);
|
|
12674
|
+
}
|
|
12675
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
|
12676
|
+
if (f != null) {
|
|
12677
|
+
writer.writeString(
|
|
12678
|
+
3,
|
|
12679
|
+
f
|
|
12680
|
+
);
|
|
12681
|
+
}
|
|
12682
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
|
12683
|
+
if (f != null) {
|
|
12684
|
+
writer.writeString(
|
|
12685
|
+
4,
|
|
12686
|
+
f
|
|
12687
|
+
);
|
|
12688
|
+
}
|
|
12689
|
+
};
|
|
12690
|
+
|
|
12691
|
+
|
|
12692
|
+
/**
|
|
12693
|
+
* optional int32 user_id = 1;
|
|
12694
|
+
* @return {number}
|
|
12695
|
+
*/
|
|
12696
|
+
proto.bonus.GetDepositEligibleUserBonusesRequest.prototype.getUserId = function() {
|
|
12697
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
12698
|
+
};
|
|
12699
|
+
|
|
12700
|
+
|
|
12701
|
+
/**
|
|
12702
|
+
* @param {number} value
|
|
12703
|
+
* @return {!proto.bonus.GetDepositEligibleUserBonusesRequest} returns this
|
|
12704
|
+
*/
|
|
12705
|
+
proto.bonus.GetDepositEligibleUserBonusesRequest.prototype.setUserId = function(value) {
|
|
12706
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
12707
|
+
};
|
|
12708
|
+
|
|
12709
|
+
|
|
12710
|
+
/**
|
|
12711
|
+
* optional string currency = 2;
|
|
12712
|
+
* @return {string}
|
|
12713
|
+
*/
|
|
12714
|
+
proto.bonus.GetDepositEligibleUserBonusesRequest.prototype.getCurrency = function() {
|
|
12715
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
12716
|
+
};
|
|
12717
|
+
|
|
12718
|
+
|
|
12719
|
+
/**
|
|
12720
|
+
* @param {string} value
|
|
12721
|
+
* @return {!proto.bonus.GetDepositEligibleUserBonusesRequest} returns this
|
|
12722
|
+
*/
|
|
12723
|
+
proto.bonus.GetDepositEligibleUserBonusesRequest.prototype.setCurrency = function(value) {
|
|
12724
|
+
return jspb.Message.setField(this, 2, value);
|
|
12725
|
+
};
|
|
12726
|
+
|
|
12727
|
+
|
|
12728
|
+
/**
|
|
12729
|
+
* Clears the field making it undefined.
|
|
12730
|
+
* @return {!proto.bonus.GetDepositEligibleUserBonusesRequest} returns this
|
|
12731
|
+
*/
|
|
12732
|
+
proto.bonus.GetDepositEligibleUserBonusesRequest.prototype.clearCurrency = function() {
|
|
12733
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
12734
|
+
};
|
|
12735
|
+
|
|
12736
|
+
|
|
12737
|
+
/**
|
|
12738
|
+
* Returns whether this field is set.
|
|
12739
|
+
* @return {boolean}
|
|
12740
|
+
*/
|
|
12741
|
+
proto.bonus.GetDepositEligibleUserBonusesRequest.prototype.hasCurrency = function() {
|
|
12742
|
+
return jspb.Message.getField(this, 2) != null;
|
|
12743
|
+
};
|
|
12744
|
+
|
|
12745
|
+
|
|
12746
|
+
/**
|
|
12747
|
+
* optional string country = 3;
|
|
12748
|
+
* @return {string}
|
|
12749
|
+
*/
|
|
12750
|
+
proto.bonus.GetDepositEligibleUserBonusesRequest.prototype.getCountry = function() {
|
|
12751
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
12752
|
+
};
|
|
12753
|
+
|
|
12754
|
+
|
|
12755
|
+
/**
|
|
12756
|
+
* @param {string} value
|
|
12757
|
+
* @return {!proto.bonus.GetDepositEligibleUserBonusesRequest} returns this
|
|
12758
|
+
*/
|
|
12759
|
+
proto.bonus.GetDepositEligibleUserBonusesRequest.prototype.setCountry = function(value) {
|
|
12760
|
+
return jspb.Message.setField(this, 3, value);
|
|
12761
|
+
};
|
|
12762
|
+
|
|
12763
|
+
|
|
12764
|
+
/**
|
|
12765
|
+
* Clears the field making it undefined.
|
|
12766
|
+
* @return {!proto.bonus.GetDepositEligibleUserBonusesRequest} returns this
|
|
12767
|
+
*/
|
|
12768
|
+
proto.bonus.GetDepositEligibleUserBonusesRequest.prototype.clearCountry = function() {
|
|
12769
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
12770
|
+
};
|
|
12771
|
+
|
|
12772
|
+
|
|
12773
|
+
/**
|
|
12774
|
+
* Returns whether this field is set.
|
|
12775
|
+
* @return {boolean}
|
|
12776
|
+
*/
|
|
12777
|
+
proto.bonus.GetDepositEligibleUserBonusesRequest.prototype.hasCountry = function() {
|
|
12778
|
+
return jspb.Message.getField(this, 3) != null;
|
|
12779
|
+
};
|
|
12780
|
+
|
|
12781
|
+
|
|
12782
|
+
/**
|
|
12783
|
+
* optional string locale = 4;
|
|
12784
|
+
* @return {string}
|
|
12785
|
+
*/
|
|
12786
|
+
proto.bonus.GetDepositEligibleUserBonusesRequest.prototype.getLocale = function() {
|
|
12787
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
12788
|
+
};
|
|
12789
|
+
|
|
12790
|
+
|
|
12791
|
+
/**
|
|
12792
|
+
* @param {string} value
|
|
12793
|
+
* @return {!proto.bonus.GetDepositEligibleUserBonusesRequest} returns this
|
|
12794
|
+
*/
|
|
12795
|
+
proto.bonus.GetDepositEligibleUserBonusesRequest.prototype.setLocale = function(value) {
|
|
12796
|
+
return jspb.Message.setField(this, 4, value);
|
|
12797
|
+
};
|
|
12798
|
+
|
|
12799
|
+
|
|
12800
|
+
/**
|
|
12801
|
+
* Clears the field making it undefined.
|
|
12802
|
+
* @return {!proto.bonus.GetDepositEligibleUserBonusesRequest} returns this
|
|
12803
|
+
*/
|
|
12804
|
+
proto.bonus.GetDepositEligibleUserBonusesRequest.prototype.clearLocale = function() {
|
|
12805
|
+
return jspb.Message.setField(this, 4, undefined);
|
|
12806
|
+
};
|
|
12807
|
+
|
|
12808
|
+
|
|
12809
|
+
/**
|
|
12810
|
+
* Returns whether this field is set.
|
|
12811
|
+
* @return {boolean}
|
|
12812
|
+
*/
|
|
12813
|
+
proto.bonus.GetDepositEligibleUserBonusesRequest.prototype.hasLocale = function() {
|
|
12814
|
+
return jspb.Message.getField(this, 4) != null;
|
|
12815
|
+
};
|
|
12816
|
+
|
|
12817
|
+
|
|
12818
|
+
|
|
12819
|
+
/**
|
|
12820
|
+
* List of repeated fields within this message type.
|
|
12821
|
+
* @private {!Array<number>}
|
|
12822
|
+
* @const
|
|
12823
|
+
*/
|
|
12824
|
+
proto.bonus.DepositEligibleUserBonusesResponse.repeatedFields_ = [1];
|
|
12825
|
+
|
|
12826
|
+
|
|
12827
|
+
|
|
12828
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
12829
|
+
/**
|
|
12830
|
+
* Creates an object representation of this proto.
|
|
12831
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
12832
|
+
* Optional fields that are not set will be set to undefined.
|
|
12833
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
12834
|
+
* For the list of reserved names please see:
|
|
12835
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
12836
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
12837
|
+
* JSPB instance for transitional soy proto support:
|
|
12838
|
+
* http://goto/soy-param-migration
|
|
12839
|
+
* @return {!Object}
|
|
12840
|
+
*/
|
|
12841
|
+
proto.bonus.DepositEligibleUserBonusesResponse.prototype.toObject = function(opt_includeInstance) {
|
|
12842
|
+
return proto.bonus.DepositEligibleUserBonusesResponse.toObject(opt_includeInstance, this);
|
|
12843
|
+
};
|
|
12844
|
+
|
|
12845
|
+
|
|
12846
|
+
/**
|
|
12847
|
+
* Static version of the {@see toObject} method.
|
|
12848
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
12849
|
+
* the JSPB instance for transitional soy proto support:
|
|
12850
|
+
* http://goto/soy-param-migration
|
|
12851
|
+
* @param {!proto.bonus.DepositEligibleUserBonusesResponse} msg The msg instance to transform.
|
|
12852
|
+
* @return {!Object}
|
|
12853
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
12854
|
+
*/
|
|
12855
|
+
proto.bonus.DepositEligibleUserBonusesResponse.toObject = function(includeInstance, msg) {
|
|
12856
|
+
var f, obj = {
|
|
12857
|
+
itemsList: jspb.Message.toObjectList(msg.getItemsList(),
|
|
12858
|
+
proto.bonus.DepositEligibleUserBonusItem.toObject, includeInstance)
|
|
12859
|
+
};
|
|
12860
|
+
|
|
12861
|
+
if (includeInstance) {
|
|
12862
|
+
obj.$jspbMessageInstance = msg;
|
|
12863
|
+
}
|
|
12864
|
+
return obj;
|
|
12865
|
+
};
|
|
12866
|
+
}
|
|
12867
|
+
|
|
12868
|
+
|
|
12869
|
+
/**
|
|
12870
|
+
* Deserializes binary data (in protobuf wire format).
|
|
12871
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
12872
|
+
* @return {!proto.bonus.DepositEligibleUserBonusesResponse}
|
|
12873
|
+
*/
|
|
12874
|
+
proto.bonus.DepositEligibleUserBonusesResponse.deserializeBinary = function(bytes) {
|
|
12875
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
12876
|
+
var msg = new proto.bonus.DepositEligibleUserBonusesResponse;
|
|
12877
|
+
return proto.bonus.DepositEligibleUserBonusesResponse.deserializeBinaryFromReader(msg, reader);
|
|
12878
|
+
};
|
|
12879
|
+
|
|
12880
|
+
|
|
12881
|
+
/**
|
|
12882
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
12883
|
+
* given reader into the given message object.
|
|
12884
|
+
* @param {!proto.bonus.DepositEligibleUserBonusesResponse} msg The message object to deserialize into.
|
|
12885
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
12886
|
+
* @return {!proto.bonus.DepositEligibleUserBonusesResponse}
|
|
12887
|
+
*/
|
|
12888
|
+
proto.bonus.DepositEligibleUserBonusesResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
12889
|
+
while (reader.nextField()) {
|
|
12890
|
+
if (reader.isEndGroup()) {
|
|
12891
|
+
break;
|
|
12892
|
+
}
|
|
12893
|
+
var field = reader.getFieldNumber();
|
|
12894
|
+
switch (field) {
|
|
12895
|
+
case 1:
|
|
12896
|
+
var value = new proto.bonus.DepositEligibleUserBonusItem;
|
|
12897
|
+
reader.readMessage(value,proto.bonus.DepositEligibleUserBonusItem.deserializeBinaryFromReader);
|
|
12898
|
+
msg.addItems(value);
|
|
12899
|
+
break;
|
|
12900
|
+
default:
|
|
12901
|
+
reader.skipField();
|
|
12902
|
+
break;
|
|
12903
|
+
}
|
|
12904
|
+
}
|
|
12905
|
+
return msg;
|
|
12906
|
+
};
|
|
12907
|
+
|
|
12908
|
+
|
|
12909
|
+
/**
|
|
12910
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
12911
|
+
* @return {!Uint8Array}
|
|
12912
|
+
*/
|
|
12913
|
+
proto.bonus.DepositEligibleUserBonusesResponse.prototype.serializeBinary = function() {
|
|
12914
|
+
var writer = new jspb.BinaryWriter();
|
|
12915
|
+
proto.bonus.DepositEligibleUserBonusesResponse.serializeBinaryToWriter(this, writer);
|
|
12916
|
+
return writer.getResultBuffer();
|
|
12917
|
+
};
|
|
12918
|
+
|
|
12919
|
+
|
|
12920
|
+
/**
|
|
12921
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
12922
|
+
* format), writing to the given BinaryWriter.
|
|
12923
|
+
* @param {!proto.bonus.DepositEligibleUserBonusesResponse} message
|
|
12924
|
+
* @param {!jspb.BinaryWriter} writer
|
|
12925
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
12926
|
+
*/
|
|
12927
|
+
proto.bonus.DepositEligibleUserBonusesResponse.serializeBinaryToWriter = function(message, writer) {
|
|
12928
|
+
var f = undefined;
|
|
12929
|
+
f = message.getItemsList();
|
|
12930
|
+
if (f.length > 0) {
|
|
12931
|
+
writer.writeRepeatedMessage(
|
|
12932
|
+
1,
|
|
12933
|
+
f,
|
|
12934
|
+
proto.bonus.DepositEligibleUserBonusItem.serializeBinaryToWriter
|
|
12935
|
+
);
|
|
12936
|
+
}
|
|
12937
|
+
};
|
|
12938
|
+
|
|
12939
|
+
|
|
12940
|
+
/**
|
|
12941
|
+
* repeated DepositEligibleUserBonusItem items = 1;
|
|
12942
|
+
* @return {!Array<!proto.bonus.DepositEligibleUserBonusItem>}
|
|
12943
|
+
*/
|
|
12944
|
+
proto.bonus.DepositEligibleUserBonusesResponse.prototype.getItemsList = function() {
|
|
12945
|
+
return /** @type{!Array<!proto.bonus.DepositEligibleUserBonusItem>} */ (
|
|
12946
|
+
jspb.Message.getRepeatedWrapperField(this, proto.bonus.DepositEligibleUserBonusItem, 1));
|
|
12947
|
+
};
|
|
12948
|
+
|
|
12949
|
+
|
|
12950
|
+
/**
|
|
12951
|
+
* @param {!Array<!proto.bonus.DepositEligibleUserBonusItem>} value
|
|
12952
|
+
* @return {!proto.bonus.DepositEligibleUserBonusesResponse} returns this
|
|
12953
|
+
*/
|
|
12954
|
+
proto.bonus.DepositEligibleUserBonusesResponse.prototype.setItemsList = function(value) {
|
|
12955
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
12956
|
+
};
|
|
12957
|
+
|
|
12958
|
+
|
|
12959
|
+
/**
|
|
12960
|
+
* @param {!proto.bonus.DepositEligibleUserBonusItem=} opt_value
|
|
12961
|
+
* @param {number=} opt_index
|
|
12962
|
+
* @return {!proto.bonus.DepositEligibleUserBonusItem}
|
|
12963
|
+
*/
|
|
12964
|
+
proto.bonus.DepositEligibleUserBonusesResponse.prototype.addItems = function(opt_value, opt_index) {
|
|
12965
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.bonus.DepositEligibleUserBonusItem, opt_index);
|
|
12966
|
+
};
|
|
12967
|
+
|
|
12968
|
+
|
|
12969
|
+
/**
|
|
12970
|
+
* Clears the list making it empty but non-null.
|
|
12971
|
+
* @return {!proto.bonus.DepositEligibleUserBonusesResponse} returns this
|
|
12972
|
+
*/
|
|
12973
|
+
proto.bonus.DepositEligibleUserBonusesResponse.prototype.clearItemsList = function() {
|
|
12974
|
+
return this.setItemsList([]);
|
|
12975
|
+
};
|
|
12976
|
+
|
|
12977
|
+
|
|
12978
|
+
|
|
12979
|
+
|
|
12980
|
+
|
|
12981
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
12982
|
+
/**
|
|
12983
|
+
* Creates an object representation of this proto.
|
|
12984
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
12985
|
+
* Optional fields that are not set will be set to undefined.
|
|
12986
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
12987
|
+
* For the list of reserved names please see:
|
|
12988
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
12989
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
12990
|
+
* JSPB instance for transitional soy proto support:
|
|
12991
|
+
* http://goto/soy-param-migration
|
|
12992
|
+
* @return {!Object}
|
|
12993
|
+
*/
|
|
12994
|
+
proto.bonus.DepositEligibleUserBonusItem.prototype.toObject = function(opt_includeInstance) {
|
|
12995
|
+
return proto.bonus.DepositEligibleUserBonusItem.toObject(opt_includeInstance, this);
|
|
12996
|
+
};
|
|
12997
|
+
|
|
12998
|
+
|
|
12999
|
+
/**
|
|
13000
|
+
* Static version of the {@see toObject} method.
|
|
13001
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
13002
|
+
* the JSPB instance for transitional soy proto support:
|
|
13003
|
+
* http://goto/soy-param-migration
|
|
13004
|
+
* @param {!proto.bonus.DepositEligibleUserBonusItem} msg The msg instance to transform.
|
|
13005
|
+
* @return {!Object}
|
|
13006
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
13007
|
+
*/
|
|
13008
|
+
proto.bonus.DepositEligibleUserBonusItem.toObject = function(includeInstance, msg) {
|
|
13009
|
+
var f, obj = {
|
|
13010
|
+
userBonusId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
13011
|
+
title: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
13012
|
+
image: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
13013
|
+
imageCdn: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
13014
|
+
currency: jspb.Message.getFieldWithDefault(msg, 5, ""),
|
|
13015
|
+
depositMin: jspb.Message.getFloatingPointFieldWithDefault(msg, 6, 0.0),
|
|
13016
|
+
depositMax: jspb.Message.getFloatingPointFieldWithDefault(msg, 7, 0.0),
|
|
13017
|
+
numberOfDeposit: jspb.Message.getFieldWithDefault(msg, 8, 0),
|
|
13018
|
+
activationUntil: jspb.Message.getFieldWithDefault(msg, 9, "")
|
|
13019
|
+
};
|
|
13020
|
+
|
|
13021
|
+
if (includeInstance) {
|
|
13022
|
+
obj.$jspbMessageInstance = msg;
|
|
13023
|
+
}
|
|
13024
|
+
return obj;
|
|
13025
|
+
};
|
|
13026
|
+
}
|
|
13027
|
+
|
|
13028
|
+
|
|
13029
|
+
/**
|
|
13030
|
+
* Deserializes binary data (in protobuf wire format).
|
|
13031
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
13032
|
+
* @return {!proto.bonus.DepositEligibleUserBonusItem}
|
|
13033
|
+
*/
|
|
13034
|
+
proto.bonus.DepositEligibleUserBonusItem.deserializeBinary = function(bytes) {
|
|
13035
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
13036
|
+
var msg = new proto.bonus.DepositEligibleUserBonusItem;
|
|
13037
|
+
return proto.bonus.DepositEligibleUserBonusItem.deserializeBinaryFromReader(msg, reader);
|
|
13038
|
+
};
|
|
13039
|
+
|
|
13040
|
+
|
|
13041
|
+
/**
|
|
13042
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
13043
|
+
* given reader into the given message object.
|
|
13044
|
+
* @param {!proto.bonus.DepositEligibleUserBonusItem} msg The message object to deserialize into.
|
|
13045
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
13046
|
+
* @return {!proto.bonus.DepositEligibleUserBonusItem}
|
|
13047
|
+
*/
|
|
13048
|
+
proto.bonus.DepositEligibleUserBonusItem.deserializeBinaryFromReader = function(msg, reader) {
|
|
13049
|
+
while (reader.nextField()) {
|
|
13050
|
+
if (reader.isEndGroup()) {
|
|
13051
|
+
break;
|
|
13052
|
+
}
|
|
13053
|
+
var field = reader.getFieldNumber();
|
|
13054
|
+
switch (field) {
|
|
13055
|
+
case 1:
|
|
13056
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
13057
|
+
msg.setUserBonusId(value);
|
|
13058
|
+
break;
|
|
13059
|
+
case 2:
|
|
13060
|
+
var value = /** @type {string} */ (reader.readString());
|
|
13061
|
+
msg.setTitle(value);
|
|
13062
|
+
break;
|
|
13063
|
+
case 3:
|
|
13064
|
+
var value = /** @type {string} */ (reader.readString());
|
|
13065
|
+
msg.setImage(value);
|
|
13066
|
+
break;
|
|
13067
|
+
case 4:
|
|
13068
|
+
var value = /** @type {string} */ (reader.readString());
|
|
13069
|
+
msg.setImageCdn(value);
|
|
13070
|
+
break;
|
|
13071
|
+
case 5:
|
|
13072
|
+
var value = /** @type {string} */ (reader.readString());
|
|
13073
|
+
msg.setCurrency(value);
|
|
13074
|
+
break;
|
|
13075
|
+
case 6:
|
|
13076
|
+
var value = /** @type {number} */ (reader.readFloat());
|
|
13077
|
+
msg.setDepositMin(value);
|
|
13078
|
+
break;
|
|
13079
|
+
case 7:
|
|
13080
|
+
var value = /** @type {number} */ (reader.readFloat());
|
|
13081
|
+
msg.setDepositMax(value);
|
|
13082
|
+
break;
|
|
13083
|
+
case 8:
|
|
13084
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
13085
|
+
msg.setNumberOfDeposit(value);
|
|
13086
|
+
break;
|
|
13087
|
+
case 9:
|
|
13088
|
+
var value = /** @type {string} */ (reader.readString());
|
|
13089
|
+
msg.setActivationUntil(value);
|
|
13090
|
+
break;
|
|
13091
|
+
default:
|
|
13092
|
+
reader.skipField();
|
|
13093
|
+
break;
|
|
13094
|
+
}
|
|
13095
|
+
}
|
|
13096
|
+
return msg;
|
|
13097
|
+
};
|
|
13098
|
+
|
|
13099
|
+
|
|
13100
|
+
/**
|
|
13101
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
13102
|
+
* @return {!Uint8Array}
|
|
13103
|
+
*/
|
|
13104
|
+
proto.bonus.DepositEligibleUserBonusItem.prototype.serializeBinary = function() {
|
|
13105
|
+
var writer = new jspb.BinaryWriter();
|
|
13106
|
+
proto.bonus.DepositEligibleUserBonusItem.serializeBinaryToWriter(this, writer);
|
|
13107
|
+
return writer.getResultBuffer();
|
|
13108
|
+
};
|
|
13109
|
+
|
|
13110
|
+
|
|
13111
|
+
/**
|
|
13112
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
13113
|
+
* format), writing to the given BinaryWriter.
|
|
13114
|
+
* @param {!proto.bonus.DepositEligibleUserBonusItem} message
|
|
13115
|
+
* @param {!jspb.BinaryWriter} writer
|
|
13116
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
13117
|
+
*/
|
|
13118
|
+
proto.bonus.DepositEligibleUserBonusItem.serializeBinaryToWriter = function(message, writer) {
|
|
13119
|
+
var f = undefined;
|
|
13120
|
+
f = message.getUserBonusId();
|
|
13121
|
+
if (f !== 0) {
|
|
13122
|
+
writer.writeInt32(
|
|
13123
|
+
1,
|
|
13124
|
+
f
|
|
13125
|
+
);
|
|
13126
|
+
}
|
|
13127
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
|
13128
|
+
if (f != null) {
|
|
13129
|
+
writer.writeString(
|
|
13130
|
+
2,
|
|
13131
|
+
f
|
|
13132
|
+
);
|
|
13133
|
+
}
|
|
13134
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
|
13135
|
+
if (f != null) {
|
|
13136
|
+
writer.writeString(
|
|
13137
|
+
3,
|
|
13138
|
+
f
|
|
13139
|
+
);
|
|
13140
|
+
}
|
|
13141
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
|
13142
|
+
if (f != null) {
|
|
13143
|
+
writer.writeString(
|
|
13144
|
+
4,
|
|
13145
|
+
f
|
|
13146
|
+
);
|
|
13147
|
+
}
|
|
13148
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 5));
|
|
13149
|
+
if (f != null) {
|
|
13150
|
+
writer.writeString(
|
|
13151
|
+
5,
|
|
13152
|
+
f
|
|
13153
|
+
);
|
|
13154
|
+
}
|
|
13155
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 6));
|
|
13156
|
+
if (f != null) {
|
|
13157
|
+
writer.writeFloat(
|
|
13158
|
+
6,
|
|
13159
|
+
f
|
|
13160
|
+
);
|
|
13161
|
+
}
|
|
13162
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 7));
|
|
13163
|
+
if (f != null) {
|
|
13164
|
+
writer.writeFloat(
|
|
13165
|
+
7,
|
|
13166
|
+
f
|
|
13167
|
+
);
|
|
13168
|
+
}
|
|
13169
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 8));
|
|
13170
|
+
if (f != null) {
|
|
13171
|
+
writer.writeInt32(
|
|
13172
|
+
8,
|
|
13173
|
+
f
|
|
13174
|
+
);
|
|
13175
|
+
}
|
|
13176
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 9));
|
|
13177
|
+
if (f != null) {
|
|
13178
|
+
writer.writeString(
|
|
13179
|
+
9,
|
|
13180
|
+
f
|
|
13181
|
+
);
|
|
13182
|
+
}
|
|
13183
|
+
};
|
|
13184
|
+
|
|
13185
|
+
|
|
13186
|
+
/**
|
|
13187
|
+
* optional int32 user_bonus_id = 1;
|
|
13188
|
+
* @return {number}
|
|
13189
|
+
*/
|
|
13190
|
+
proto.bonus.DepositEligibleUserBonusItem.prototype.getUserBonusId = function() {
|
|
13191
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
13192
|
+
};
|
|
13193
|
+
|
|
13194
|
+
|
|
13195
|
+
/**
|
|
13196
|
+
* @param {number} value
|
|
13197
|
+
* @return {!proto.bonus.DepositEligibleUserBonusItem} returns this
|
|
13198
|
+
*/
|
|
13199
|
+
proto.bonus.DepositEligibleUserBonusItem.prototype.setUserBonusId = function(value) {
|
|
13200
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
13201
|
+
};
|
|
13202
|
+
|
|
13203
|
+
|
|
13204
|
+
/**
|
|
13205
|
+
* optional string title = 2;
|
|
13206
|
+
* @return {string}
|
|
13207
|
+
*/
|
|
13208
|
+
proto.bonus.DepositEligibleUserBonusItem.prototype.getTitle = function() {
|
|
13209
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
13210
|
+
};
|
|
13211
|
+
|
|
13212
|
+
|
|
13213
|
+
/**
|
|
13214
|
+
* @param {string} value
|
|
13215
|
+
* @return {!proto.bonus.DepositEligibleUserBonusItem} returns this
|
|
13216
|
+
*/
|
|
13217
|
+
proto.bonus.DepositEligibleUserBonusItem.prototype.setTitle = function(value) {
|
|
13218
|
+
return jspb.Message.setField(this, 2, value);
|
|
13219
|
+
};
|
|
13220
|
+
|
|
13221
|
+
|
|
13222
|
+
/**
|
|
13223
|
+
* Clears the field making it undefined.
|
|
13224
|
+
* @return {!proto.bonus.DepositEligibleUserBonusItem} returns this
|
|
13225
|
+
*/
|
|
13226
|
+
proto.bonus.DepositEligibleUserBonusItem.prototype.clearTitle = function() {
|
|
13227
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
13228
|
+
};
|
|
13229
|
+
|
|
13230
|
+
|
|
13231
|
+
/**
|
|
13232
|
+
* Returns whether this field is set.
|
|
13233
|
+
* @return {boolean}
|
|
13234
|
+
*/
|
|
13235
|
+
proto.bonus.DepositEligibleUserBonusItem.prototype.hasTitle = function() {
|
|
13236
|
+
return jspb.Message.getField(this, 2) != null;
|
|
13237
|
+
};
|
|
13238
|
+
|
|
13239
|
+
|
|
13240
|
+
/**
|
|
13241
|
+
* optional string image = 3;
|
|
13242
|
+
* @return {string}
|
|
13243
|
+
*/
|
|
13244
|
+
proto.bonus.DepositEligibleUserBonusItem.prototype.getImage = function() {
|
|
13245
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
13246
|
+
};
|
|
13247
|
+
|
|
13248
|
+
|
|
13249
|
+
/**
|
|
13250
|
+
* @param {string} value
|
|
13251
|
+
* @return {!proto.bonus.DepositEligibleUserBonusItem} returns this
|
|
13252
|
+
*/
|
|
13253
|
+
proto.bonus.DepositEligibleUserBonusItem.prototype.setImage = function(value) {
|
|
13254
|
+
return jspb.Message.setField(this, 3, value);
|
|
13255
|
+
};
|
|
13256
|
+
|
|
13257
|
+
|
|
13258
|
+
/**
|
|
13259
|
+
* Clears the field making it undefined.
|
|
13260
|
+
* @return {!proto.bonus.DepositEligibleUserBonusItem} returns this
|
|
13261
|
+
*/
|
|
13262
|
+
proto.bonus.DepositEligibleUserBonusItem.prototype.clearImage = function() {
|
|
13263
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
13264
|
+
};
|
|
13265
|
+
|
|
13266
|
+
|
|
13267
|
+
/**
|
|
13268
|
+
* Returns whether this field is set.
|
|
13269
|
+
* @return {boolean}
|
|
13270
|
+
*/
|
|
13271
|
+
proto.bonus.DepositEligibleUserBonusItem.prototype.hasImage = function() {
|
|
13272
|
+
return jspb.Message.getField(this, 3) != null;
|
|
13273
|
+
};
|
|
13274
|
+
|
|
13275
|
+
|
|
13276
|
+
/**
|
|
13277
|
+
* optional string image_cdn = 4;
|
|
13278
|
+
* @return {string}
|
|
13279
|
+
*/
|
|
13280
|
+
proto.bonus.DepositEligibleUserBonusItem.prototype.getImageCdn = function() {
|
|
13281
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
13282
|
+
};
|
|
13283
|
+
|
|
13284
|
+
|
|
13285
|
+
/**
|
|
13286
|
+
* @param {string} value
|
|
13287
|
+
* @return {!proto.bonus.DepositEligibleUserBonusItem} returns this
|
|
13288
|
+
*/
|
|
13289
|
+
proto.bonus.DepositEligibleUserBonusItem.prototype.setImageCdn = function(value) {
|
|
13290
|
+
return jspb.Message.setField(this, 4, value);
|
|
13291
|
+
};
|
|
13292
|
+
|
|
13293
|
+
|
|
13294
|
+
/**
|
|
13295
|
+
* Clears the field making it undefined.
|
|
13296
|
+
* @return {!proto.bonus.DepositEligibleUserBonusItem} returns this
|
|
13297
|
+
*/
|
|
13298
|
+
proto.bonus.DepositEligibleUserBonusItem.prototype.clearImageCdn = function() {
|
|
13299
|
+
return jspb.Message.setField(this, 4, undefined);
|
|
13300
|
+
};
|
|
13301
|
+
|
|
13302
|
+
|
|
13303
|
+
/**
|
|
13304
|
+
* Returns whether this field is set.
|
|
13305
|
+
* @return {boolean}
|
|
13306
|
+
*/
|
|
13307
|
+
proto.bonus.DepositEligibleUserBonusItem.prototype.hasImageCdn = function() {
|
|
13308
|
+
return jspb.Message.getField(this, 4) != null;
|
|
13309
|
+
};
|
|
13310
|
+
|
|
13311
|
+
|
|
13312
|
+
/**
|
|
13313
|
+
* optional string currency = 5;
|
|
13314
|
+
* @return {string}
|
|
13315
|
+
*/
|
|
13316
|
+
proto.bonus.DepositEligibleUserBonusItem.prototype.getCurrency = function() {
|
|
13317
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
|
|
13318
|
+
};
|
|
13319
|
+
|
|
13320
|
+
|
|
13321
|
+
/**
|
|
13322
|
+
* @param {string} value
|
|
13323
|
+
* @return {!proto.bonus.DepositEligibleUserBonusItem} returns this
|
|
13324
|
+
*/
|
|
13325
|
+
proto.bonus.DepositEligibleUserBonusItem.prototype.setCurrency = function(value) {
|
|
13326
|
+
return jspb.Message.setField(this, 5, value);
|
|
13327
|
+
};
|
|
13328
|
+
|
|
13329
|
+
|
|
13330
|
+
/**
|
|
13331
|
+
* Clears the field making it undefined.
|
|
13332
|
+
* @return {!proto.bonus.DepositEligibleUserBonusItem} returns this
|
|
13333
|
+
*/
|
|
13334
|
+
proto.bonus.DepositEligibleUserBonusItem.prototype.clearCurrency = function() {
|
|
13335
|
+
return jspb.Message.setField(this, 5, undefined);
|
|
13336
|
+
};
|
|
13337
|
+
|
|
13338
|
+
|
|
13339
|
+
/**
|
|
13340
|
+
* Returns whether this field is set.
|
|
13341
|
+
* @return {boolean}
|
|
13342
|
+
*/
|
|
13343
|
+
proto.bonus.DepositEligibleUserBonusItem.prototype.hasCurrency = function() {
|
|
13344
|
+
return jspb.Message.getField(this, 5) != null;
|
|
13345
|
+
};
|
|
13346
|
+
|
|
13347
|
+
|
|
13348
|
+
/**
|
|
13349
|
+
* optional float deposit_min = 6;
|
|
13350
|
+
* @return {number}
|
|
13351
|
+
*/
|
|
13352
|
+
proto.bonus.DepositEligibleUserBonusItem.prototype.getDepositMin = function() {
|
|
13353
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 6, 0.0));
|
|
13354
|
+
};
|
|
13355
|
+
|
|
13356
|
+
|
|
13357
|
+
/**
|
|
13358
|
+
* @param {number} value
|
|
13359
|
+
* @return {!proto.bonus.DepositEligibleUserBonusItem} returns this
|
|
13360
|
+
*/
|
|
13361
|
+
proto.bonus.DepositEligibleUserBonusItem.prototype.setDepositMin = function(value) {
|
|
13362
|
+
return jspb.Message.setField(this, 6, value);
|
|
13363
|
+
};
|
|
13364
|
+
|
|
13365
|
+
|
|
13366
|
+
/**
|
|
13367
|
+
* Clears the field making it undefined.
|
|
13368
|
+
* @return {!proto.bonus.DepositEligibleUserBonusItem} returns this
|
|
13369
|
+
*/
|
|
13370
|
+
proto.bonus.DepositEligibleUserBonusItem.prototype.clearDepositMin = function() {
|
|
13371
|
+
return jspb.Message.setField(this, 6, undefined);
|
|
13372
|
+
};
|
|
13373
|
+
|
|
13374
|
+
|
|
13375
|
+
/**
|
|
13376
|
+
* Returns whether this field is set.
|
|
13377
|
+
* @return {boolean}
|
|
13378
|
+
*/
|
|
13379
|
+
proto.bonus.DepositEligibleUserBonusItem.prototype.hasDepositMin = function() {
|
|
13380
|
+
return jspb.Message.getField(this, 6) != null;
|
|
13381
|
+
};
|
|
13382
|
+
|
|
13383
|
+
|
|
13384
|
+
/**
|
|
13385
|
+
* optional float deposit_max = 7;
|
|
13386
|
+
* @return {number}
|
|
13387
|
+
*/
|
|
13388
|
+
proto.bonus.DepositEligibleUserBonusItem.prototype.getDepositMax = function() {
|
|
13389
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 7, 0.0));
|
|
13390
|
+
};
|
|
13391
|
+
|
|
13392
|
+
|
|
13393
|
+
/**
|
|
13394
|
+
* @param {number} value
|
|
13395
|
+
* @return {!proto.bonus.DepositEligibleUserBonusItem} returns this
|
|
13396
|
+
*/
|
|
13397
|
+
proto.bonus.DepositEligibleUserBonusItem.prototype.setDepositMax = function(value) {
|
|
13398
|
+
return jspb.Message.setField(this, 7, value);
|
|
13399
|
+
};
|
|
13400
|
+
|
|
13401
|
+
|
|
13402
|
+
/**
|
|
13403
|
+
* Clears the field making it undefined.
|
|
13404
|
+
* @return {!proto.bonus.DepositEligibleUserBonusItem} returns this
|
|
13405
|
+
*/
|
|
13406
|
+
proto.bonus.DepositEligibleUserBonusItem.prototype.clearDepositMax = function() {
|
|
13407
|
+
return jspb.Message.setField(this, 7, undefined);
|
|
13408
|
+
};
|
|
13409
|
+
|
|
13410
|
+
|
|
13411
|
+
/**
|
|
13412
|
+
* Returns whether this field is set.
|
|
13413
|
+
* @return {boolean}
|
|
13414
|
+
*/
|
|
13415
|
+
proto.bonus.DepositEligibleUserBonusItem.prototype.hasDepositMax = function() {
|
|
13416
|
+
return jspb.Message.getField(this, 7) != null;
|
|
13417
|
+
};
|
|
13418
|
+
|
|
13419
|
+
|
|
13420
|
+
/**
|
|
13421
|
+
* optional int32 number_of_deposit = 8;
|
|
13422
|
+
* @return {number}
|
|
13423
|
+
*/
|
|
13424
|
+
proto.bonus.DepositEligibleUserBonusItem.prototype.getNumberOfDeposit = function() {
|
|
13425
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
|
|
13426
|
+
};
|
|
13427
|
+
|
|
13428
|
+
|
|
13429
|
+
/**
|
|
13430
|
+
* @param {number} value
|
|
13431
|
+
* @return {!proto.bonus.DepositEligibleUserBonusItem} returns this
|
|
13432
|
+
*/
|
|
13433
|
+
proto.bonus.DepositEligibleUserBonusItem.prototype.setNumberOfDeposit = function(value) {
|
|
13434
|
+
return jspb.Message.setField(this, 8, value);
|
|
13435
|
+
};
|
|
13436
|
+
|
|
13437
|
+
|
|
13438
|
+
/**
|
|
13439
|
+
* Clears the field making it undefined.
|
|
13440
|
+
* @return {!proto.bonus.DepositEligibleUserBonusItem} returns this
|
|
13441
|
+
*/
|
|
13442
|
+
proto.bonus.DepositEligibleUserBonusItem.prototype.clearNumberOfDeposit = function() {
|
|
13443
|
+
return jspb.Message.setField(this, 8, undefined);
|
|
13444
|
+
};
|
|
13445
|
+
|
|
13446
|
+
|
|
13447
|
+
/**
|
|
13448
|
+
* Returns whether this field is set.
|
|
13449
|
+
* @return {boolean}
|
|
13450
|
+
*/
|
|
13451
|
+
proto.bonus.DepositEligibleUserBonusItem.prototype.hasNumberOfDeposit = function() {
|
|
13452
|
+
return jspb.Message.getField(this, 8) != null;
|
|
13453
|
+
};
|
|
13454
|
+
|
|
13455
|
+
|
|
13456
|
+
/**
|
|
13457
|
+
* optional string activation_until = 9;
|
|
13458
|
+
* @return {string}
|
|
13459
|
+
*/
|
|
13460
|
+
proto.bonus.DepositEligibleUserBonusItem.prototype.getActivationUntil = function() {
|
|
13461
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
|
|
13462
|
+
};
|
|
13463
|
+
|
|
13464
|
+
|
|
13465
|
+
/**
|
|
13466
|
+
* @param {string} value
|
|
13467
|
+
* @return {!proto.bonus.DepositEligibleUserBonusItem} returns this
|
|
13468
|
+
*/
|
|
13469
|
+
proto.bonus.DepositEligibleUserBonusItem.prototype.setActivationUntil = function(value) {
|
|
13470
|
+
return jspb.Message.setField(this, 9, value);
|
|
13471
|
+
};
|
|
13472
|
+
|
|
13473
|
+
|
|
13474
|
+
/**
|
|
13475
|
+
* Clears the field making it undefined.
|
|
13476
|
+
* @return {!proto.bonus.DepositEligibleUserBonusItem} returns this
|
|
13477
|
+
*/
|
|
13478
|
+
proto.bonus.DepositEligibleUserBonusItem.prototype.clearActivationUntil = function() {
|
|
13479
|
+
return jspb.Message.setField(this, 9, undefined);
|
|
13480
|
+
};
|
|
13481
|
+
|
|
13482
|
+
|
|
13483
|
+
/**
|
|
13484
|
+
* Returns whether this field is set.
|
|
13485
|
+
* @return {boolean}
|
|
13486
|
+
*/
|
|
13487
|
+
proto.bonus.DepositEligibleUserBonusItem.prototype.hasActivationUntil = function() {
|
|
13488
|
+
return jspb.Message.getField(this, 9) != null;
|
|
13489
|
+
};
|
|
13490
|
+
|
|
13491
|
+
|
|
13492
|
+
|
|
13493
|
+
|
|
13494
|
+
|
|
12481
13495
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
12482
13496
|
/**
|
|
12483
13497
|
* Creates an object representation of this proto.
|
package/cms/cms.proto
CHANGED
package/cms/cms_pb.js
CHANGED
|
@@ -17325,7 +17325,8 @@ proto.cms.PromoTranslationResponse.prototype.toObject = function(opt_includeInst
|
|
|
17325
17325
|
proto.cms.PromoTranslationResponse.toObject = function(includeInstance, msg) {
|
|
17326
17326
|
var f, obj = {
|
|
17327
17327
|
title: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
17328
|
-
content: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
17328
|
+
content: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
17329
|
+
isActive: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
|
|
17329
17330
|
};
|
|
17330
17331
|
|
|
17331
17332
|
if (includeInstance) {
|
|
@@ -17370,6 +17371,10 @@ proto.cms.PromoTranslationResponse.deserializeBinaryFromReader = function(msg, r
|
|
|
17370
17371
|
var value = /** @type {string} */ (reader.readString());
|
|
17371
17372
|
msg.setContent(value);
|
|
17372
17373
|
break;
|
|
17374
|
+
case 3:
|
|
17375
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
|
17376
|
+
msg.setIsActive(value);
|
|
17377
|
+
break;
|
|
17373
17378
|
default:
|
|
17374
17379
|
reader.skipField();
|
|
17375
17380
|
break;
|
|
@@ -17413,6 +17418,13 @@ proto.cms.PromoTranslationResponse.serializeBinaryToWriter = function(message, w
|
|
|
17413
17418
|
f
|
|
17414
17419
|
);
|
|
17415
17420
|
}
|
|
17421
|
+
f = /** @type {boolean} */ (jspb.Message.getField(message, 3));
|
|
17422
|
+
if (f != null) {
|
|
17423
|
+
writer.writeBool(
|
|
17424
|
+
3,
|
|
17425
|
+
f
|
|
17426
|
+
);
|
|
17427
|
+
}
|
|
17416
17428
|
};
|
|
17417
17429
|
|
|
17418
17430
|
|
|
@@ -17488,6 +17500,42 @@ proto.cms.PromoTranslationResponse.prototype.hasContent = function() {
|
|
|
17488
17500
|
};
|
|
17489
17501
|
|
|
17490
17502
|
|
|
17503
|
+
/**
|
|
17504
|
+
* optional bool is_active = 3;
|
|
17505
|
+
* @return {boolean}
|
|
17506
|
+
*/
|
|
17507
|
+
proto.cms.PromoTranslationResponse.prototype.getIsActive = function() {
|
|
17508
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
|
|
17509
|
+
};
|
|
17510
|
+
|
|
17511
|
+
|
|
17512
|
+
/**
|
|
17513
|
+
* @param {boolean} value
|
|
17514
|
+
* @return {!proto.cms.PromoTranslationResponse} returns this
|
|
17515
|
+
*/
|
|
17516
|
+
proto.cms.PromoTranslationResponse.prototype.setIsActive = function(value) {
|
|
17517
|
+
return jspb.Message.setField(this, 3, value);
|
|
17518
|
+
};
|
|
17519
|
+
|
|
17520
|
+
|
|
17521
|
+
/**
|
|
17522
|
+
* Clears the field making it undefined.
|
|
17523
|
+
* @return {!proto.cms.PromoTranslationResponse} returns this
|
|
17524
|
+
*/
|
|
17525
|
+
proto.cms.PromoTranslationResponse.prototype.clearIsActive = function() {
|
|
17526
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
17527
|
+
};
|
|
17528
|
+
|
|
17529
|
+
|
|
17530
|
+
/**
|
|
17531
|
+
* Returns whether this field is set.
|
|
17532
|
+
* @return {boolean}
|
|
17533
|
+
*/
|
|
17534
|
+
proto.cms.PromoTranslationResponse.prototype.hasIsActive = function() {
|
|
17535
|
+
return jspb.Message.getField(this, 3) != null;
|
|
17536
|
+
};
|
|
17537
|
+
|
|
17538
|
+
|
|
17491
17539
|
|
|
17492
17540
|
/**
|
|
17493
17541
|
* Oneof group definitions for this message. Each group defines the field
|