protobuf-platform 1.0.292 → 1.0.294
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/cashback/cashback.proto +17 -0
- package/cashback/cashback_grpc_pb.js +33 -0
- package/cashback/cashback_pb.js +750 -2
- package/game/game.proto +2 -2
- package/game/game_pb.js +26 -26
- package/package.json +1 -1
package/cashback/cashback.proto
CHANGED
@@ -11,6 +11,7 @@ service Cashback {
|
|
11
11
|
rpc updateSingleCashback(stream CashbackRequest) returns (CashbackResponse);
|
12
12
|
rpc deleteSingleCashback(GetCashbackRequest) returns (CashbackStatusResponse);
|
13
13
|
rpc readListCashbacks(PaginationRequest) returns (CashbackItemsResponse);
|
14
|
+
rpc setCashbackConfig(CashbackConfigRequest) returns (CashbackConfigItem);
|
14
15
|
}
|
15
16
|
//Technical
|
16
17
|
message PingRequest { string ping = 1; }
|
@@ -35,6 +36,7 @@ message CashbackItem {
|
|
35
36
|
optional int32 level = 7;
|
36
37
|
optional string type = 8;
|
37
38
|
optional string checking_at = 9;
|
39
|
+
repeated CashbackConfigItem config = 10;
|
38
40
|
}
|
39
41
|
message CashbackRequest {
|
40
42
|
oneof request {
|
@@ -67,4 +69,19 @@ message CashbackItemsResponse {
|
|
67
69
|
message CashbackStatusResponse {
|
68
70
|
string status = 1;
|
69
71
|
}
|
72
|
+
message CashbackConfigRequest {
|
73
|
+
int32 cashback_id = 1;
|
74
|
+
string currency = 2;
|
75
|
+
optional float min = 3;
|
76
|
+
optional float max = 4;
|
77
|
+
optional float percentage = 5;
|
78
|
+
}
|
79
|
+
|
80
|
+
message CashbackConfigItem {
|
81
|
+
optional int32 cashback_id = 1;
|
82
|
+
optional string currency = 2;
|
83
|
+
optional float min = 3;
|
84
|
+
optional float max = 4;
|
85
|
+
optional float percentage = 5;
|
86
|
+
}
|
70
87
|
|
@@ -4,6 +4,28 @@
|
|
4
4
|
var grpc = require('@grpc/grpc-js');
|
5
5
|
var cashback_pb = require('./cashback_pb.js');
|
6
6
|
|
7
|
+
function serialize_cashback_CashbackConfigItem(arg) {
|
8
|
+
if (!(arg instanceof cashback_pb.CashbackConfigItem)) {
|
9
|
+
throw new Error('Expected argument of type cashback.CashbackConfigItem');
|
10
|
+
}
|
11
|
+
return Buffer.from(arg.serializeBinary());
|
12
|
+
}
|
13
|
+
|
14
|
+
function deserialize_cashback_CashbackConfigItem(buffer_arg) {
|
15
|
+
return cashback_pb.CashbackConfigItem.deserializeBinary(new Uint8Array(buffer_arg));
|
16
|
+
}
|
17
|
+
|
18
|
+
function serialize_cashback_CashbackConfigRequest(arg) {
|
19
|
+
if (!(arg instanceof cashback_pb.CashbackConfigRequest)) {
|
20
|
+
throw new Error('Expected argument of type cashback.CashbackConfigRequest');
|
21
|
+
}
|
22
|
+
return Buffer.from(arg.serializeBinary());
|
23
|
+
}
|
24
|
+
|
25
|
+
function deserialize_cashback_CashbackConfigRequest(buffer_arg) {
|
26
|
+
return cashback_pb.CashbackConfigRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
27
|
+
}
|
28
|
+
|
7
29
|
function serialize_cashback_CashbackItemsResponse(arg) {
|
8
30
|
if (!(arg instanceof cashback_pb.CashbackItemsResponse)) {
|
9
31
|
throw new Error('Expected argument of type cashback.CashbackItemsResponse');
|
@@ -194,6 +216,17 @@ createSingleCashback: {
|
|
194
216
|
responseSerialize: serialize_cashback_CashbackItemsResponse,
|
195
217
|
responseDeserialize: deserialize_cashback_CashbackItemsResponse,
|
196
218
|
},
|
219
|
+
setCashbackConfig: {
|
220
|
+
path: '/cashback.Cashback/setCashbackConfig',
|
221
|
+
requestStream: false,
|
222
|
+
responseStream: false,
|
223
|
+
requestType: cashback_pb.CashbackConfigRequest,
|
224
|
+
responseType: cashback_pb.CashbackConfigItem,
|
225
|
+
requestSerialize: serialize_cashback_CashbackConfigRequest,
|
226
|
+
requestDeserialize: deserialize_cashback_CashbackConfigRequest,
|
227
|
+
responseSerialize: serialize_cashback_CashbackConfigItem,
|
228
|
+
responseDeserialize: deserialize_cashback_CashbackConfigItem,
|
229
|
+
},
|
197
230
|
};
|
198
231
|
|
199
232
|
exports.CashbackClient = grpc.makeGenericClientConstructor(CashbackService);
|
package/cashback/cashback_pb.js
CHANGED
@@ -21,6 +21,8 @@ var global = (function() {
|
|
21
21
|
return Function('return this')();
|
22
22
|
}.call(null));
|
23
23
|
|
24
|
+
goog.exportSymbol('proto.cashback.CashbackConfigItem', null, global);
|
25
|
+
goog.exportSymbol('proto.cashback.CashbackConfigRequest', null, global);
|
24
26
|
goog.exportSymbol('proto.cashback.CashbackItem', null, global);
|
25
27
|
goog.exportSymbol('proto.cashback.CashbackItemRequest', null, global);
|
26
28
|
goog.exportSymbol('proto.cashback.CashbackItemsResponse', null, global);
|
@@ -172,7 +174,7 @@ if (goog.DEBUG && !COMPILED) {
|
|
172
174
|
* @constructor
|
173
175
|
*/
|
174
176
|
proto.cashback.CashbackItem = function(opt_data) {
|
175
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
177
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.cashback.CashbackItem.repeatedFields_, null);
|
176
178
|
};
|
177
179
|
goog.inherits(proto.cashback.CashbackItem, jspb.Message);
|
178
180
|
if (goog.DEBUG && !COMPILED) {
|
@@ -308,6 +310,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
308
310
|
*/
|
309
311
|
proto.cashback.CashbackStatusResponse.displayName = 'proto.cashback.CashbackStatusResponse';
|
310
312
|
}
|
313
|
+
/**
|
314
|
+
* Generated by JsPbCodeGenerator.
|
315
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
316
|
+
* server response, or constructed directly in Javascript. The array is used
|
317
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
318
|
+
* If no data is provided, the constructed object will be empty, but still
|
319
|
+
* valid.
|
320
|
+
* @extends {jspb.Message}
|
321
|
+
* @constructor
|
322
|
+
*/
|
323
|
+
proto.cashback.CashbackConfigRequest = function(opt_data) {
|
324
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
325
|
+
};
|
326
|
+
goog.inherits(proto.cashback.CashbackConfigRequest, jspb.Message);
|
327
|
+
if (goog.DEBUG && !COMPILED) {
|
328
|
+
/**
|
329
|
+
* @public
|
330
|
+
* @override
|
331
|
+
*/
|
332
|
+
proto.cashback.CashbackConfigRequest.displayName = 'proto.cashback.CashbackConfigRequest';
|
333
|
+
}
|
334
|
+
/**
|
335
|
+
* Generated by JsPbCodeGenerator.
|
336
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
337
|
+
* server response, or constructed directly in Javascript. The array is used
|
338
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
339
|
+
* If no data is provided, the constructed object will be empty, but still
|
340
|
+
* valid.
|
341
|
+
* @extends {jspb.Message}
|
342
|
+
* @constructor
|
343
|
+
*/
|
344
|
+
proto.cashback.CashbackConfigItem = function(opt_data) {
|
345
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
346
|
+
};
|
347
|
+
goog.inherits(proto.cashback.CashbackConfigItem, jspb.Message);
|
348
|
+
if (goog.DEBUG && !COMPILED) {
|
349
|
+
/**
|
350
|
+
* @public
|
351
|
+
* @override
|
352
|
+
*/
|
353
|
+
proto.cashback.CashbackConfigItem.displayName = 'proto.cashback.CashbackConfigItem';
|
354
|
+
}
|
311
355
|
|
312
356
|
|
313
357
|
|
@@ -1434,6 +1478,13 @@ proto.cashback.UserSearchRequest.prototype.hasCurrency = function() {
|
|
1434
1478
|
|
1435
1479
|
|
1436
1480
|
|
1481
|
+
/**
|
1482
|
+
* List of repeated fields within this message type.
|
1483
|
+
* @private {!Array<number>}
|
1484
|
+
* @const
|
1485
|
+
*/
|
1486
|
+
proto.cashback.CashbackItem.repeatedFields_ = [10];
|
1487
|
+
|
1437
1488
|
|
1438
1489
|
|
1439
1490
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
@@ -1472,7 +1523,9 @@ proto.cashback.CashbackItem.toObject = function(includeInstance, msg) {
|
|
1472
1523
|
image: jspb.Message.getFieldWithDefault(msg, 6, ""),
|
1473
1524
|
level: jspb.Message.getFieldWithDefault(msg, 7, 0),
|
1474
1525
|
type: jspb.Message.getFieldWithDefault(msg, 8, ""),
|
1475
|
-
checkingAt: jspb.Message.getFieldWithDefault(msg, 9, "")
|
1526
|
+
checkingAt: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
1527
|
+
configList: jspb.Message.toObjectList(msg.getConfigList(),
|
1528
|
+
proto.cashback.CashbackConfigItem.toObject, includeInstance)
|
1476
1529
|
};
|
1477
1530
|
|
1478
1531
|
if (includeInstance) {
|
@@ -1541,6 +1594,11 @@ proto.cashback.CashbackItem.deserializeBinaryFromReader = function(msg, reader)
|
|
1541
1594
|
var value = /** @type {string} */ (reader.readString());
|
1542
1595
|
msg.setCheckingAt(value);
|
1543
1596
|
break;
|
1597
|
+
case 10:
|
1598
|
+
var value = new proto.cashback.CashbackConfigItem;
|
1599
|
+
reader.readMessage(value,proto.cashback.CashbackConfigItem.deserializeBinaryFromReader);
|
1600
|
+
msg.addConfig(value);
|
1601
|
+
break;
|
1544
1602
|
default:
|
1545
1603
|
reader.skipField();
|
1546
1604
|
break;
|
@@ -1626,6 +1684,14 @@ proto.cashback.CashbackItem.serializeBinaryToWriter = function(message, writer)
|
|
1626
1684
|
f
|
1627
1685
|
);
|
1628
1686
|
}
|
1687
|
+
f = message.getConfigList();
|
1688
|
+
if (f.length > 0) {
|
1689
|
+
writer.writeRepeatedMessage(
|
1690
|
+
10,
|
1691
|
+
f,
|
1692
|
+
proto.cashback.CashbackConfigItem.serializeBinaryToWriter
|
1693
|
+
);
|
1694
|
+
}
|
1629
1695
|
};
|
1630
1696
|
|
1631
1697
|
|
@@ -1917,6 +1983,44 @@ proto.cashback.CashbackItem.prototype.hasCheckingAt = function() {
|
|
1917
1983
|
};
|
1918
1984
|
|
1919
1985
|
|
1986
|
+
/**
|
1987
|
+
* repeated CashbackConfigItem config = 10;
|
1988
|
+
* @return {!Array<!proto.cashback.CashbackConfigItem>}
|
1989
|
+
*/
|
1990
|
+
proto.cashback.CashbackItem.prototype.getConfigList = function() {
|
1991
|
+
return /** @type{!Array<!proto.cashback.CashbackConfigItem>} */ (
|
1992
|
+
jspb.Message.getRepeatedWrapperField(this, proto.cashback.CashbackConfigItem, 10));
|
1993
|
+
};
|
1994
|
+
|
1995
|
+
|
1996
|
+
/**
|
1997
|
+
* @param {!Array<!proto.cashback.CashbackConfigItem>} value
|
1998
|
+
* @return {!proto.cashback.CashbackItem} returns this
|
1999
|
+
*/
|
2000
|
+
proto.cashback.CashbackItem.prototype.setConfigList = function(value) {
|
2001
|
+
return jspb.Message.setRepeatedWrapperField(this, 10, value);
|
2002
|
+
};
|
2003
|
+
|
2004
|
+
|
2005
|
+
/**
|
2006
|
+
* @param {!proto.cashback.CashbackConfigItem=} opt_value
|
2007
|
+
* @param {number=} opt_index
|
2008
|
+
* @return {!proto.cashback.CashbackConfigItem}
|
2009
|
+
*/
|
2010
|
+
proto.cashback.CashbackItem.prototype.addConfig = function(opt_value, opt_index) {
|
2011
|
+
return jspb.Message.addToRepeatedWrapperField(this, 10, opt_value, proto.cashback.CashbackConfigItem, opt_index);
|
2012
|
+
};
|
2013
|
+
|
2014
|
+
|
2015
|
+
/**
|
2016
|
+
* Clears the list making it empty but non-null.
|
2017
|
+
* @return {!proto.cashback.CashbackItem} returns this
|
2018
|
+
*/
|
2019
|
+
proto.cashback.CashbackItem.prototype.clearConfigList = function() {
|
2020
|
+
return this.setConfigList([]);
|
2021
|
+
};
|
2022
|
+
|
2023
|
+
|
1920
2024
|
|
1921
2025
|
/**
|
1922
2026
|
* Oneof group definitions for this message. Each group defines the field
|
@@ -3296,4 +3400,648 @@ proto.cashback.CashbackStatusResponse.prototype.setStatus = function(value) {
|
|
3296
3400
|
};
|
3297
3401
|
|
3298
3402
|
|
3403
|
+
|
3404
|
+
|
3405
|
+
|
3406
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
3407
|
+
/**
|
3408
|
+
* Creates an object representation of this proto.
|
3409
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
3410
|
+
* Optional fields that are not set will be set to undefined.
|
3411
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
3412
|
+
* For the list of reserved names please see:
|
3413
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
3414
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
3415
|
+
* JSPB instance for transitional soy proto support:
|
3416
|
+
* http://goto/soy-param-migration
|
3417
|
+
* @return {!Object}
|
3418
|
+
*/
|
3419
|
+
proto.cashback.CashbackConfigRequest.prototype.toObject = function(opt_includeInstance) {
|
3420
|
+
return proto.cashback.CashbackConfigRequest.toObject(opt_includeInstance, this);
|
3421
|
+
};
|
3422
|
+
|
3423
|
+
|
3424
|
+
/**
|
3425
|
+
* Static version of the {@see toObject} method.
|
3426
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
3427
|
+
* the JSPB instance for transitional soy proto support:
|
3428
|
+
* http://goto/soy-param-migration
|
3429
|
+
* @param {!proto.cashback.CashbackConfigRequest} msg The msg instance to transform.
|
3430
|
+
* @return {!Object}
|
3431
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
3432
|
+
*/
|
3433
|
+
proto.cashback.CashbackConfigRequest.toObject = function(includeInstance, msg) {
|
3434
|
+
var f, obj = {
|
3435
|
+
cashbackId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
3436
|
+
currency: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
3437
|
+
min: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
|
3438
|
+
max: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
|
3439
|
+
percentage: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0)
|
3440
|
+
};
|
3441
|
+
|
3442
|
+
if (includeInstance) {
|
3443
|
+
obj.$jspbMessageInstance = msg;
|
3444
|
+
}
|
3445
|
+
return obj;
|
3446
|
+
};
|
3447
|
+
}
|
3448
|
+
|
3449
|
+
|
3450
|
+
/**
|
3451
|
+
* Deserializes binary data (in protobuf wire format).
|
3452
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
3453
|
+
* @return {!proto.cashback.CashbackConfigRequest}
|
3454
|
+
*/
|
3455
|
+
proto.cashback.CashbackConfigRequest.deserializeBinary = function(bytes) {
|
3456
|
+
var reader = new jspb.BinaryReader(bytes);
|
3457
|
+
var msg = new proto.cashback.CashbackConfigRequest;
|
3458
|
+
return proto.cashback.CashbackConfigRequest.deserializeBinaryFromReader(msg, reader);
|
3459
|
+
};
|
3460
|
+
|
3461
|
+
|
3462
|
+
/**
|
3463
|
+
* Deserializes binary data (in protobuf wire format) from the
|
3464
|
+
* given reader into the given message object.
|
3465
|
+
* @param {!proto.cashback.CashbackConfigRequest} msg The message object to deserialize into.
|
3466
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
3467
|
+
* @return {!proto.cashback.CashbackConfigRequest}
|
3468
|
+
*/
|
3469
|
+
proto.cashback.CashbackConfigRequest.deserializeBinaryFromReader = function(msg, reader) {
|
3470
|
+
while (reader.nextField()) {
|
3471
|
+
if (reader.isEndGroup()) {
|
3472
|
+
break;
|
3473
|
+
}
|
3474
|
+
var field = reader.getFieldNumber();
|
3475
|
+
switch (field) {
|
3476
|
+
case 1:
|
3477
|
+
var value = /** @type {number} */ (reader.readInt32());
|
3478
|
+
msg.setCashbackId(value);
|
3479
|
+
break;
|
3480
|
+
case 2:
|
3481
|
+
var value = /** @type {string} */ (reader.readString());
|
3482
|
+
msg.setCurrency(value);
|
3483
|
+
break;
|
3484
|
+
case 3:
|
3485
|
+
var value = /** @type {number} */ (reader.readFloat());
|
3486
|
+
msg.setMin(value);
|
3487
|
+
break;
|
3488
|
+
case 4:
|
3489
|
+
var value = /** @type {number} */ (reader.readFloat());
|
3490
|
+
msg.setMax(value);
|
3491
|
+
break;
|
3492
|
+
case 5:
|
3493
|
+
var value = /** @type {number} */ (reader.readFloat());
|
3494
|
+
msg.setPercentage(value);
|
3495
|
+
break;
|
3496
|
+
default:
|
3497
|
+
reader.skipField();
|
3498
|
+
break;
|
3499
|
+
}
|
3500
|
+
}
|
3501
|
+
return msg;
|
3502
|
+
};
|
3503
|
+
|
3504
|
+
|
3505
|
+
/**
|
3506
|
+
* Serializes the message to binary data (in protobuf wire format).
|
3507
|
+
* @return {!Uint8Array}
|
3508
|
+
*/
|
3509
|
+
proto.cashback.CashbackConfigRequest.prototype.serializeBinary = function() {
|
3510
|
+
var writer = new jspb.BinaryWriter();
|
3511
|
+
proto.cashback.CashbackConfigRequest.serializeBinaryToWriter(this, writer);
|
3512
|
+
return writer.getResultBuffer();
|
3513
|
+
};
|
3514
|
+
|
3515
|
+
|
3516
|
+
/**
|
3517
|
+
* Serializes the given message to binary data (in protobuf wire
|
3518
|
+
* format), writing to the given BinaryWriter.
|
3519
|
+
* @param {!proto.cashback.CashbackConfigRequest} message
|
3520
|
+
* @param {!jspb.BinaryWriter} writer
|
3521
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
3522
|
+
*/
|
3523
|
+
proto.cashback.CashbackConfigRequest.serializeBinaryToWriter = function(message, writer) {
|
3524
|
+
var f = undefined;
|
3525
|
+
f = message.getCashbackId();
|
3526
|
+
if (f !== 0) {
|
3527
|
+
writer.writeInt32(
|
3528
|
+
1,
|
3529
|
+
f
|
3530
|
+
);
|
3531
|
+
}
|
3532
|
+
f = message.getCurrency();
|
3533
|
+
if (f.length > 0) {
|
3534
|
+
writer.writeString(
|
3535
|
+
2,
|
3536
|
+
f
|
3537
|
+
);
|
3538
|
+
}
|
3539
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
3540
|
+
if (f != null) {
|
3541
|
+
writer.writeFloat(
|
3542
|
+
3,
|
3543
|
+
f
|
3544
|
+
);
|
3545
|
+
}
|
3546
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 4));
|
3547
|
+
if (f != null) {
|
3548
|
+
writer.writeFloat(
|
3549
|
+
4,
|
3550
|
+
f
|
3551
|
+
);
|
3552
|
+
}
|
3553
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 5));
|
3554
|
+
if (f != null) {
|
3555
|
+
writer.writeFloat(
|
3556
|
+
5,
|
3557
|
+
f
|
3558
|
+
);
|
3559
|
+
}
|
3560
|
+
};
|
3561
|
+
|
3562
|
+
|
3563
|
+
/**
|
3564
|
+
* optional int32 cashback_id = 1;
|
3565
|
+
* @return {number}
|
3566
|
+
*/
|
3567
|
+
proto.cashback.CashbackConfigRequest.prototype.getCashbackId = function() {
|
3568
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
3569
|
+
};
|
3570
|
+
|
3571
|
+
|
3572
|
+
/**
|
3573
|
+
* @param {number} value
|
3574
|
+
* @return {!proto.cashback.CashbackConfigRequest} returns this
|
3575
|
+
*/
|
3576
|
+
proto.cashback.CashbackConfigRequest.prototype.setCashbackId = function(value) {
|
3577
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
3578
|
+
};
|
3579
|
+
|
3580
|
+
|
3581
|
+
/**
|
3582
|
+
* optional string currency = 2;
|
3583
|
+
* @return {string}
|
3584
|
+
*/
|
3585
|
+
proto.cashback.CashbackConfigRequest.prototype.getCurrency = function() {
|
3586
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
3587
|
+
};
|
3588
|
+
|
3589
|
+
|
3590
|
+
/**
|
3591
|
+
* @param {string} value
|
3592
|
+
* @return {!proto.cashback.CashbackConfigRequest} returns this
|
3593
|
+
*/
|
3594
|
+
proto.cashback.CashbackConfigRequest.prototype.setCurrency = function(value) {
|
3595
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
3596
|
+
};
|
3597
|
+
|
3598
|
+
|
3599
|
+
/**
|
3600
|
+
* optional float min = 3;
|
3601
|
+
* @return {number}
|
3602
|
+
*/
|
3603
|
+
proto.cashback.CashbackConfigRequest.prototype.getMin = function() {
|
3604
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
|
3605
|
+
};
|
3606
|
+
|
3607
|
+
|
3608
|
+
/**
|
3609
|
+
* @param {number} value
|
3610
|
+
* @return {!proto.cashback.CashbackConfigRequest} returns this
|
3611
|
+
*/
|
3612
|
+
proto.cashback.CashbackConfigRequest.prototype.setMin = function(value) {
|
3613
|
+
return jspb.Message.setField(this, 3, value);
|
3614
|
+
};
|
3615
|
+
|
3616
|
+
|
3617
|
+
/**
|
3618
|
+
* Clears the field making it undefined.
|
3619
|
+
* @return {!proto.cashback.CashbackConfigRequest} returns this
|
3620
|
+
*/
|
3621
|
+
proto.cashback.CashbackConfigRequest.prototype.clearMin = function() {
|
3622
|
+
return jspb.Message.setField(this, 3, undefined);
|
3623
|
+
};
|
3624
|
+
|
3625
|
+
|
3626
|
+
/**
|
3627
|
+
* Returns whether this field is set.
|
3628
|
+
* @return {boolean}
|
3629
|
+
*/
|
3630
|
+
proto.cashback.CashbackConfigRequest.prototype.hasMin = function() {
|
3631
|
+
return jspb.Message.getField(this, 3) != null;
|
3632
|
+
};
|
3633
|
+
|
3634
|
+
|
3635
|
+
/**
|
3636
|
+
* optional float max = 4;
|
3637
|
+
* @return {number}
|
3638
|
+
*/
|
3639
|
+
proto.cashback.CashbackConfigRequest.prototype.getMax = function() {
|
3640
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
|
3641
|
+
};
|
3642
|
+
|
3643
|
+
|
3644
|
+
/**
|
3645
|
+
* @param {number} value
|
3646
|
+
* @return {!proto.cashback.CashbackConfigRequest} returns this
|
3647
|
+
*/
|
3648
|
+
proto.cashback.CashbackConfigRequest.prototype.setMax = function(value) {
|
3649
|
+
return jspb.Message.setField(this, 4, value);
|
3650
|
+
};
|
3651
|
+
|
3652
|
+
|
3653
|
+
/**
|
3654
|
+
* Clears the field making it undefined.
|
3655
|
+
* @return {!proto.cashback.CashbackConfigRequest} returns this
|
3656
|
+
*/
|
3657
|
+
proto.cashback.CashbackConfigRequest.prototype.clearMax = function() {
|
3658
|
+
return jspb.Message.setField(this, 4, undefined);
|
3659
|
+
};
|
3660
|
+
|
3661
|
+
|
3662
|
+
/**
|
3663
|
+
* Returns whether this field is set.
|
3664
|
+
* @return {boolean}
|
3665
|
+
*/
|
3666
|
+
proto.cashback.CashbackConfigRequest.prototype.hasMax = function() {
|
3667
|
+
return jspb.Message.getField(this, 4) != null;
|
3668
|
+
};
|
3669
|
+
|
3670
|
+
|
3671
|
+
/**
|
3672
|
+
* optional float percentage = 5;
|
3673
|
+
* @return {number}
|
3674
|
+
*/
|
3675
|
+
proto.cashback.CashbackConfigRequest.prototype.getPercentage = function() {
|
3676
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0));
|
3677
|
+
};
|
3678
|
+
|
3679
|
+
|
3680
|
+
/**
|
3681
|
+
* @param {number} value
|
3682
|
+
* @return {!proto.cashback.CashbackConfigRequest} returns this
|
3683
|
+
*/
|
3684
|
+
proto.cashback.CashbackConfigRequest.prototype.setPercentage = function(value) {
|
3685
|
+
return jspb.Message.setField(this, 5, value);
|
3686
|
+
};
|
3687
|
+
|
3688
|
+
|
3689
|
+
/**
|
3690
|
+
* Clears the field making it undefined.
|
3691
|
+
* @return {!proto.cashback.CashbackConfigRequest} returns this
|
3692
|
+
*/
|
3693
|
+
proto.cashback.CashbackConfigRequest.prototype.clearPercentage = function() {
|
3694
|
+
return jspb.Message.setField(this, 5, undefined);
|
3695
|
+
};
|
3696
|
+
|
3697
|
+
|
3698
|
+
/**
|
3699
|
+
* Returns whether this field is set.
|
3700
|
+
* @return {boolean}
|
3701
|
+
*/
|
3702
|
+
proto.cashback.CashbackConfigRequest.prototype.hasPercentage = function() {
|
3703
|
+
return jspb.Message.getField(this, 5) != null;
|
3704
|
+
};
|
3705
|
+
|
3706
|
+
|
3707
|
+
|
3708
|
+
|
3709
|
+
|
3710
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
3711
|
+
/**
|
3712
|
+
* Creates an object representation of this proto.
|
3713
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
3714
|
+
* Optional fields that are not set will be set to undefined.
|
3715
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
3716
|
+
* For the list of reserved names please see:
|
3717
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
3718
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
3719
|
+
* JSPB instance for transitional soy proto support:
|
3720
|
+
* http://goto/soy-param-migration
|
3721
|
+
* @return {!Object}
|
3722
|
+
*/
|
3723
|
+
proto.cashback.CashbackConfigItem.prototype.toObject = function(opt_includeInstance) {
|
3724
|
+
return proto.cashback.CashbackConfigItem.toObject(opt_includeInstance, this);
|
3725
|
+
};
|
3726
|
+
|
3727
|
+
|
3728
|
+
/**
|
3729
|
+
* Static version of the {@see toObject} method.
|
3730
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
3731
|
+
* the JSPB instance for transitional soy proto support:
|
3732
|
+
* http://goto/soy-param-migration
|
3733
|
+
* @param {!proto.cashback.CashbackConfigItem} msg The msg instance to transform.
|
3734
|
+
* @return {!Object}
|
3735
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
3736
|
+
*/
|
3737
|
+
proto.cashback.CashbackConfigItem.toObject = function(includeInstance, msg) {
|
3738
|
+
var f, obj = {
|
3739
|
+
cashbackId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
3740
|
+
currency: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
3741
|
+
min: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
|
3742
|
+
max: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
|
3743
|
+
percentage: jspb.Message.getFloatingPointFieldWithDefault(msg, 5, 0.0)
|
3744
|
+
};
|
3745
|
+
|
3746
|
+
if (includeInstance) {
|
3747
|
+
obj.$jspbMessageInstance = msg;
|
3748
|
+
}
|
3749
|
+
return obj;
|
3750
|
+
};
|
3751
|
+
}
|
3752
|
+
|
3753
|
+
|
3754
|
+
/**
|
3755
|
+
* Deserializes binary data (in protobuf wire format).
|
3756
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
3757
|
+
* @return {!proto.cashback.CashbackConfigItem}
|
3758
|
+
*/
|
3759
|
+
proto.cashback.CashbackConfigItem.deserializeBinary = function(bytes) {
|
3760
|
+
var reader = new jspb.BinaryReader(bytes);
|
3761
|
+
var msg = new proto.cashback.CashbackConfigItem;
|
3762
|
+
return proto.cashback.CashbackConfigItem.deserializeBinaryFromReader(msg, reader);
|
3763
|
+
};
|
3764
|
+
|
3765
|
+
|
3766
|
+
/**
|
3767
|
+
* Deserializes binary data (in protobuf wire format) from the
|
3768
|
+
* given reader into the given message object.
|
3769
|
+
* @param {!proto.cashback.CashbackConfigItem} msg The message object to deserialize into.
|
3770
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
3771
|
+
* @return {!proto.cashback.CashbackConfigItem}
|
3772
|
+
*/
|
3773
|
+
proto.cashback.CashbackConfigItem.deserializeBinaryFromReader = function(msg, reader) {
|
3774
|
+
while (reader.nextField()) {
|
3775
|
+
if (reader.isEndGroup()) {
|
3776
|
+
break;
|
3777
|
+
}
|
3778
|
+
var field = reader.getFieldNumber();
|
3779
|
+
switch (field) {
|
3780
|
+
case 1:
|
3781
|
+
var value = /** @type {number} */ (reader.readInt32());
|
3782
|
+
msg.setCashbackId(value);
|
3783
|
+
break;
|
3784
|
+
case 2:
|
3785
|
+
var value = /** @type {string} */ (reader.readString());
|
3786
|
+
msg.setCurrency(value);
|
3787
|
+
break;
|
3788
|
+
case 3:
|
3789
|
+
var value = /** @type {number} */ (reader.readFloat());
|
3790
|
+
msg.setMin(value);
|
3791
|
+
break;
|
3792
|
+
case 4:
|
3793
|
+
var value = /** @type {number} */ (reader.readFloat());
|
3794
|
+
msg.setMax(value);
|
3795
|
+
break;
|
3796
|
+
case 5:
|
3797
|
+
var value = /** @type {number} */ (reader.readFloat());
|
3798
|
+
msg.setPercentage(value);
|
3799
|
+
break;
|
3800
|
+
default:
|
3801
|
+
reader.skipField();
|
3802
|
+
break;
|
3803
|
+
}
|
3804
|
+
}
|
3805
|
+
return msg;
|
3806
|
+
};
|
3807
|
+
|
3808
|
+
|
3809
|
+
/**
|
3810
|
+
* Serializes the message to binary data (in protobuf wire format).
|
3811
|
+
* @return {!Uint8Array}
|
3812
|
+
*/
|
3813
|
+
proto.cashback.CashbackConfigItem.prototype.serializeBinary = function() {
|
3814
|
+
var writer = new jspb.BinaryWriter();
|
3815
|
+
proto.cashback.CashbackConfigItem.serializeBinaryToWriter(this, writer);
|
3816
|
+
return writer.getResultBuffer();
|
3817
|
+
};
|
3818
|
+
|
3819
|
+
|
3820
|
+
/**
|
3821
|
+
* Serializes the given message to binary data (in protobuf wire
|
3822
|
+
* format), writing to the given BinaryWriter.
|
3823
|
+
* @param {!proto.cashback.CashbackConfigItem} message
|
3824
|
+
* @param {!jspb.BinaryWriter} writer
|
3825
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
3826
|
+
*/
|
3827
|
+
proto.cashback.CashbackConfigItem.serializeBinaryToWriter = function(message, writer) {
|
3828
|
+
var f = undefined;
|
3829
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 1));
|
3830
|
+
if (f != null) {
|
3831
|
+
writer.writeInt32(
|
3832
|
+
1,
|
3833
|
+
f
|
3834
|
+
);
|
3835
|
+
}
|
3836
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
3837
|
+
if (f != null) {
|
3838
|
+
writer.writeString(
|
3839
|
+
2,
|
3840
|
+
f
|
3841
|
+
);
|
3842
|
+
}
|
3843
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
3844
|
+
if (f != null) {
|
3845
|
+
writer.writeFloat(
|
3846
|
+
3,
|
3847
|
+
f
|
3848
|
+
);
|
3849
|
+
}
|
3850
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 4));
|
3851
|
+
if (f != null) {
|
3852
|
+
writer.writeFloat(
|
3853
|
+
4,
|
3854
|
+
f
|
3855
|
+
);
|
3856
|
+
}
|
3857
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 5));
|
3858
|
+
if (f != null) {
|
3859
|
+
writer.writeFloat(
|
3860
|
+
5,
|
3861
|
+
f
|
3862
|
+
);
|
3863
|
+
}
|
3864
|
+
};
|
3865
|
+
|
3866
|
+
|
3867
|
+
/**
|
3868
|
+
* optional int32 cashback_id = 1;
|
3869
|
+
* @return {number}
|
3870
|
+
*/
|
3871
|
+
proto.cashback.CashbackConfigItem.prototype.getCashbackId = function() {
|
3872
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
3873
|
+
};
|
3874
|
+
|
3875
|
+
|
3876
|
+
/**
|
3877
|
+
* @param {number} value
|
3878
|
+
* @return {!proto.cashback.CashbackConfigItem} returns this
|
3879
|
+
*/
|
3880
|
+
proto.cashback.CashbackConfigItem.prototype.setCashbackId = function(value) {
|
3881
|
+
return jspb.Message.setField(this, 1, value);
|
3882
|
+
};
|
3883
|
+
|
3884
|
+
|
3885
|
+
/**
|
3886
|
+
* Clears the field making it undefined.
|
3887
|
+
* @return {!proto.cashback.CashbackConfigItem} returns this
|
3888
|
+
*/
|
3889
|
+
proto.cashback.CashbackConfigItem.prototype.clearCashbackId = function() {
|
3890
|
+
return jspb.Message.setField(this, 1, undefined);
|
3891
|
+
};
|
3892
|
+
|
3893
|
+
|
3894
|
+
/**
|
3895
|
+
* Returns whether this field is set.
|
3896
|
+
* @return {boolean}
|
3897
|
+
*/
|
3898
|
+
proto.cashback.CashbackConfigItem.prototype.hasCashbackId = function() {
|
3899
|
+
return jspb.Message.getField(this, 1) != null;
|
3900
|
+
};
|
3901
|
+
|
3902
|
+
|
3903
|
+
/**
|
3904
|
+
* optional string currency = 2;
|
3905
|
+
* @return {string}
|
3906
|
+
*/
|
3907
|
+
proto.cashback.CashbackConfigItem.prototype.getCurrency = function() {
|
3908
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
3909
|
+
};
|
3910
|
+
|
3911
|
+
|
3912
|
+
/**
|
3913
|
+
* @param {string} value
|
3914
|
+
* @return {!proto.cashback.CashbackConfigItem} returns this
|
3915
|
+
*/
|
3916
|
+
proto.cashback.CashbackConfigItem.prototype.setCurrency = function(value) {
|
3917
|
+
return jspb.Message.setField(this, 2, value);
|
3918
|
+
};
|
3919
|
+
|
3920
|
+
|
3921
|
+
/**
|
3922
|
+
* Clears the field making it undefined.
|
3923
|
+
* @return {!proto.cashback.CashbackConfigItem} returns this
|
3924
|
+
*/
|
3925
|
+
proto.cashback.CashbackConfigItem.prototype.clearCurrency = function() {
|
3926
|
+
return jspb.Message.setField(this, 2, undefined);
|
3927
|
+
};
|
3928
|
+
|
3929
|
+
|
3930
|
+
/**
|
3931
|
+
* Returns whether this field is set.
|
3932
|
+
* @return {boolean}
|
3933
|
+
*/
|
3934
|
+
proto.cashback.CashbackConfigItem.prototype.hasCurrency = function() {
|
3935
|
+
return jspb.Message.getField(this, 2) != null;
|
3936
|
+
};
|
3937
|
+
|
3938
|
+
|
3939
|
+
/**
|
3940
|
+
* optional float min = 3;
|
3941
|
+
* @return {number}
|
3942
|
+
*/
|
3943
|
+
proto.cashback.CashbackConfigItem.prototype.getMin = function() {
|
3944
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
|
3945
|
+
};
|
3946
|
+
|
3947
|
+
|
3948
|
+
/**
|
3949
|
+
* @param {number} value
|
3950
|
+
* @return {!proto.cashback.CashbackConfigItem} returns this
|
3951
|
+
*/
|
3952
|
+
proto.cashback.CashbackConfigItem.prototype.setMin = function(value) {
|
3953
|
+
return jspb.Message.setField(this, 3, value);
|
3954
|
+
};
|
3955
|
+
|
3956
|
+
|
3957
|
+
/**
|
3958
|
+
* Clears the field making it undefined.
|
3959
|
+
* @return {!proto.cashback.CashbackConfigItem} returns this
|
3960
|
+
*/
|
3961
|
+
proto.cashback.CashbackConfigItem.prototype.clearMin = function() {
|
3962
|
+
return jspb.Message.setField(this, 3, undefined);
|
3963
|
+
};
|
3964
|
+
|
3965
|
+
|
3966
|
+
/**
|
3967
|
+
* Returns whether this field is set.
|
3968
|
+
* @return {boolean}
|
3969
|
+
*/
|
3970
|
+
proto.cashback.CashbackConfigItem.prototype.hasMin = function() {
|
3971
|
+
return jspb.Message.getField(this, 3) != null;
|
3972
|
+
};
|
3973
|
+
|
3974
|
+
|
3975
|
+
/**
|
3976
|
+
* optional float max = 4;
|
3977
|
+
* @return {number}
|
3978
|
+
*/
|
3979
|
+
proto.cashback.CashbackConfigItem.prototype.getMax = function() {
|
3980
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
|
3981
|
+
};
|
3982
|
+
|
3983
|
+
|
3984
|
+
/**
|
3985
|
+
* @param {number} value
|
3986
|
+
* @return {!proto.cashback.CashbackConfigItem} returns this
|
3987
|
+
*/
|
3988
|
+
proto.cashback.CashbackConfigItem.prototype.setMax = function(value) {
|
3989
|
+
return jspb.Message.setField(this, 4, value);
|
3990
|
+
};
|
3991
|
+
|
3992
|
+
|
3993
|
+
/**
|
3994
|
+
* Clears the field making it undefined.
|
3995
|
+
* @return {!proto.cashback.CashbackConfigItem} returns this
|
3996
|
+
*/
|
3997
|
+
proto.cashback.CashbackConfigItem.prototype.clearMax = function() {
|
3998
|
+
return jspb.Message.setField(this, 4, undefined);
|
3999
|
+
};
|
4000
|
+
|
4001
|
+
|
4002
|
+
/**
|
4003
|
+
* Returns whether this field is set.
|
4004
|
+
* @return {boolean}
|
4005
|
+
*/
|
4006
|
+
proto.cashback.CashbackConfigItem.prototype.hasMax = function() {
|
4007
|
+
return jspb.Message.getField(this, 4) != null;
|
4008
|
+
};
|
4009
|
+
|
4010
|
+
|
4011
|
+
/**
|
4012
|
+
* optional float percentage = 5;
|
4013
|
+
* @return {number}
|
4014
|
+
*/
|
4015
|
+
proto.cashback.CashbackConfigItem.prototype.getPercentage = function() {
|
4016
|
+
return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 5, 0.0));
|
4017
|
+
};
|
4018
|
+
|
4019
|
+
|
4020
|
+
/**
|
4021
|
+
* @param {number} value
|
4022
|
+
* @return {!proto.cashback.CashbackConfigItem} returns this
|
4023
|
+
*/
|
4024
|
+
proto.cashback.CashbackConfigItem.prototype.setPercentage = function(value) {
|
4025
|
+
return jspb.Message.setField(this, 5, value);
|
4026
|
+
};
|
4027
|
+
|
4028
|
+
|
4029
|
+
/**
|
4030
|
+
* Clears the field making it undefined.
|
4031
|
+
* @return {!proto.cashback.CashbackConfigItem} returns this
|
4032
|
+
*/
|
4033
|
+
proto.cashback.CashbackConfigItem.prototype.clearPercentage = function() {
|
4034
|
+
return jspb.Message.setField(this, 5, undefined);
|
4035
|
+
};
|
4036
|
+
|
4037
|
+
|
4038
|
+
/**
|
4039
|
+
* Returns whether this field is set.
|
4040
|
+
* @return {boolean}
|
4041
|
+
*/
|
4042
|
+
proto.cashback.CashbackConfigItem.prototype.hasPercentage = function() {
|
4043
|
+
return jspb.Message.getField(this, 5) != null;
|
4044
|
+
};
|
4045
|
+
|
4046
|
+
|
3299
4047
|
goog.object.extend(exports, proto.cashback);
|
package/game/game.proto
CHANGED
@@ -577,7 +577,7 @@ message GetCashBackListRequest {
|
|
577
577
|
}
|
578
578
|
message CashBackListRequest {
|
579
579
|
optional int32 id = 1;
|
580
|
-
optional
|
580
|
+
optional string cashback_type = 2;
|
581
581
|
optional string title = 3;
|
582
582
|
optional string description = 4;
|
583
583
|
}
|
@@ -587,7 +587,7 @@ message CashBackListGamesRequest {
|
|
587
587
|
}
|
588
588
|
message CashBackListItem {
|
589
589
|
int32 id = 1;
|
590
|
-
|
590
|
+
string cashback_type = 2;
|
591
591
|
string title = 3;
|
592
592
|
optional string description = 4;
|
593
593
|
}
|
package/game/game_pb.js
CHANGED
@@ -23881,7 +23881,7 @@ proto.game.CashBackListRequest.prototype.toObject = function(opt_includeInstance
|
|
23881
23881
|
proto.game.CashBackListRequest.toObject = function(includeInstance, msg) {
|
23882
23882
|
var f, obj = {
|
23883
23883
|
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
23884
|
-
|
23884
|
+
cashbackType: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
23885
23885
|
title: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
23886
23886
|
description: jspb.Message.getFieldWithDefault(msg, 4, "")
|
23887
23887
|
};
|
@@ -23925,8 +23925,8 @@ proto.game.CashBackListRequest.deserializeBinaryFromReader = function(msg, reade
|
|
23925
23925
|
msg.setId(value);
|
23926
23926
|
break;
|
23927
23927
|
case 2:
|
23928
|
-
var value = /** @type {
|
23929
|
-
msg.
|
23928
|
+
var value = /** @type {string} */ (reader.readString());
|
23929
|
+
msg.setCashbackType(value);
|
23930
23930
|
break;
|
23931
23931
|
case 3:
|
23932
23932
|
var value = /** @type {string} */ (reader.readString());
|
@@ -23972,9 +23972,9 @@ proto.game.CashBackListRequest.serializeBinaryToWriter = function(message, write
|
|
23972
23972
|
f
|
23973
23973
|
);
|
23974
23974
|
}
|
23975
|
-
f = /** @type {
|
23975
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
23976
23976
|
if (f != null) {
|
23977
|
-
writer.
|
23977
|
+
writer.writeString(
|
23978
23978
|
2,
|
23979
23979
|
f
|
23980
23980
|
);
|
@@ -24033,19 +24033,19 @@ proto.game.CashBackListRequest.prototype.hasId = function() {
|
|
24033
24033
|
|
24034
24034
|
|
24035
24035
|
/**
|
24036
|
-
* optional
|
24037
|
-
* @return {
|
24036
|
+
* optional string cashback_type = 2;
|
24037
|
+
* @return {string}
|
24038
24038
|
*/
|
24039
|
-
proto.game.CashBackListRequest.prototype.
|
24040
|
-
return /** @type {
|
24039
|
+
proto.game.CashBackListRequest.prototype.getCashbackType = function() {
|
24040
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
24041
24041
|
};
|
24042
24042
|
|
24043
24043
|
|
24044
24044
|
/**
|
24045
|
-
* @param {
|
24045
|
+
* @param {string} value
|
24046
24046
|
* @return {!proto.game.CashBackListRequest} returns this
|
24047
24047
|
*/
|
24048
|
-
proto.game.CashBackListRequest.prototype.
|
24048
|
+
proto.game.CashBackListRequest.prototype.setCashbackType = function(value) {
|
24049
24049
|
return jspb.Message.setField(this, 2, value);
|
24050
24050
|
};
|
24051
24051
|
|
@@ -24054,7 +24054,7 @@ proto.game.CashBackListRequest.prototype.setCashbackId = function(value) {
|
|
24054
24054
|
* Clears the field making it undefined.
|
24055
24055
|
* @return {!proto.game.CashBackListRequest} returns this
|
24056
24056
|
*/
|
24057
|
-
proto.game.CashBackListRequest.prototype.
|
24057
|
+
proto.game.CashBackListRequest.prototype.clearCashbackType = function() {
|
24058
24058
|
return jspb.Message.setField(this, 2, undefined);
|
24059
24059
|
};
|
24060
24060
|
|
@@ -24063,7 +24063,7 @@ proto.game.CashBackListRequest.prototype.clearCashbackId = function() {
|
|
24063
24063
|
* Returns whether this field is set.
|
24064
24064
|
* @return {boolean}
|
24065
24065
|
*/
|
24066
|
-
proto.game.CashBackListRequest.prototype.
|
24066
|
+
proto.game.CashBackListRequest.prototype.hasCashbackType = function() {
|
24067
24067
|
return jspb.Message.getField(this, 2) != null;
|
24068
24068
|
};
|
24069
24069
|
|
@@ -24361,7 +24361,7 @@ proto.game.CashBackListItem.prototype.toObject = function(opt_includeInstance) {
|
|
24361
24361
|
proto.game.CashBackListItem.toObject = function(includeInstance, msg) {
|
24362
24362
|
var f, obj = {
|
24363
24363
|
id: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
24364
|
-
|
24364
|
+
cashbackType: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
24365
24365
|
title: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
24366
24366
|
description: jspb.Message.getFieldWithDefault(msg, 4, "")
|
24367
24367
|
};
|
@@ -24405,8 +24405,8 @@ proto.game.CashBackListItem.deserializeBinaryFromReader = function(msg, reader)
|
|
24405
24405
|
msg.setId(value);
|
24406
24406
|
break;
|
24407
24407
|
case 2:
|
24408
|
-
var value = /** @type {
|
24409
|
-
msg.
|
24408
|
+
var value = /** @type {string} */ (reader.readString());
|
24409
|
+
msg.setCashbackType(value);
|
24410
24410
|
break;
|
24411
24411
|
case 3:
|
24412
24412
|
var value = /** @type {string} */ (reader.readString());
|
@@ -24452,9 +24452,9 @@ proto.game.CashBackListItem.serializeBinaryToWriter = function(message, writer)
|
|
24452
24452
|
f
|
24453
24453
|
);
|
24454
24454
|
}
|
24455
|
-
f = message.
|
24456
|
-
if (f
|
24457
|
-
writer.
|
24455
|
+
f = message.getCashbackType();
|
24456
|
+
if (f.length > 0) {
|
24457
|
+
writer.writeString(
|
24458
24458
|
2,
|
24459
24459
|
f
|
24460
24460
|
);
|
@@ -24495,20 +24495,20 @@ proto.game.CashBackListItem.prototype.setId = function(value) {
|
|
24495
24495
|
|
24496
24496
|
|
24497
24497
|
/**
|
24498
|
-
* optional
|
24499
|
-
* @return {
|
24498
|
+
* optional string cashback_type = 2;
|
24499
|
+
* @return {string}
|
24500
24500
|
*/
|
24501
|
-
proto.game.CashBackListItem.prototype.
|
24502
|
-
return /** @type {
|
24501
|
+
proto.game.CashBackListItem.prototype.getCashbackType = function() {
|
24502
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
24503
24503
|
};
|
24504
24504
|
|
24505
24505
|
|
24506
24506
|
/**
|
24507
|
-
* @param {
|
24507
|
+
* @param {string} value
|
24508
24508
|
* @return {!proto.game.CashBackListItem} returns this
|
24509
24509
|
*/
|
24510
|
-
proto.game.CashBackListItem.prototype.
|
24511
|
-
return jspb.Message.
|
24510
|
+
proto.game.CashBackListItem.prototype.setCashbackType = function(value) {
|
24511
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
24512
24512
|
};
|
24513
24513
|
|
24514
24514
|
|