protobuf-platform 1.1.66 → 1.1.67
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 +3 -2
- package/bonus/bonus_pb.js +59 -11
- package/package.json +1 -1
package/bonus/bonus.proto
CHANGED
@@ -37,8 +37,9 @@ message GetFileRequest { string file_name = 1; string instance_type = 2; }
|
|
37
37
|
message PaginationRequest {
|
38
38
|
int32 limit = 1;
|
39
39
|
int32 offset = 2;
|
40
|
-
optional
|
41
|
-
optional
|
40
|
+
optional string order = 3;
|
41
|
+
optional GetUserBonusRequest user_bonus_params = 4;
|
42
|
+
optional SearchBonusRequest search_bonus_params = 5;
|
42
43
|
}
|
43
44
|
//Bonus search
|
44
45
|
message SearchBonusRequest {
|
package/bonus/bonus_pb.js
CHANGED
@@ -1268,6 +1268,7 @@ proto.bonus.PaginationRequest.toObject = function(includeInstance, msg) {
|
|
1268
1268
|
var f, obj = {
|
1269
1269
|
limit: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
1270
1270
|
offset: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
1271
|
+
order: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
1271
1272
|
userBonusParams: (f = msg.getUserBonusParams()) && proto.bonus.GetUserBonusRequest.toObject(includeInstance, f),
|
1272
1273
|
searchBonusParams: (f = msg.getSearchBonusParams()) && proto.bonus.SearchBonusRequest.toObject(includeInstance, f)
|
1273
1274
|
};
|
@@ -1315,11 +1316,15 @@ proto.bonus.PaginationRequest.deserializeBinaryFromReader = function(msg, reader
|
|
1315
1316
|
msg.setOffset(value);
|
1316
1317
|
break;
|
1317
1318
|
case 3:
|
1319
|
+
var value = /** @type {string} */ (reader.readString());
|
1320
|
+
msg.setOrder(value);
|
1321
|
+
break;
|
1322
|
+
case 4:
|
1318
1323
|
var value = new proto.bonus.GetUserBonusRequest;
|
1319
1324
|
reader.readMessage(value,proto.bonus.GetUserBonusRequest.deserializeBinaryFromReader);
|
1320
1325
|
msg.setUserBonusParams(value);
|
1321
1326
|
break;
|
1322
|
-
case
|
1327
|
+
case 5:
|
1323
1328
|
var value = new proto.bonus.SearchBonusRequest;
|
1324
1329
|
reader.readMessage(value,proto.bonus.SearchBonusRequest.deserializeBinaryFromReader);
|
1325
1330
|
msg.setSearchBonusParams(value);
|
@@ -1367,10 +1372,17 @@ proto.bonus.PaginationRequest.serializeBinaryToWriter = function(message, writer
|
|
1367
1372
|
f
|
1368
1373
|
);
|
1369
1374
|
}
|
1375
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
1376
|
+
if (f != null) {
|
1377
|
+
writer.writeString(
|
1378
|
+
3,
|
1379
|
+
f
|
1380
|
+
);
|
1381
|
+
}
|
1370
1382
|
f = message.getUserBonusParams();
|
1371
1383
|
if (f != null) {
|
1372
1384
|
writer.writeMessage(
|
1373
|
-
|
1385
|
+
4,
|
1374
1386
|
f,
|
1375
1387
|
proto.bonus.GetUserBonusRequest.serializeBinaryToWriter
|
1376
1388
|
);
|
@@ -1378,7 +1390,7 @@ proto.bonus.PaginationRequest.serializeBinaryToWriter = function(message, writer
|
|
1378
1390
|
f = message.getSearchBonusParams();
|
1379
1391
|
if (f != null) {
|
1380
1392
|
writer.writeMessage(
|
1381
|
-
|
1393
|
+
5,
|
1382
1394
|
f,
|
1383
1395
|
proto.bonus.SearchBonusRequest.serializeBinaryToWriter
|
1384
1396
|
);
|
@@ -1423,12 +1435,48 @@ proto.bonus.PaginationRequest.prototype.setOffset = function(value) {
|
|
1423
1435
|
|
1424
1436
|
|
1425
1437
|
/**
|
1426
|
-
* optional
|
1438
|
+
* optional string order = 3;
|
1439
|
+
* @return {string}
|
1440
|
+
*/
|
1441
|
+
proto.bonus.PaginationRequest.prototype.getOrder = function() {
|
1442
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
1443
|
+
};
|
1444
|
+
|
1445
|
+
|
1446
|
+
/**
|
1447
|
+
* @param {string} value
|
1448
|
+
* @return {!proto.bonus.PaginationRequest} returns this
|
1449
|
+
*/
|
1450
|
+
proto.bonus.PaginationRequest.prototype.setOrder = function(value) {
|
1451
|
+
return jspb.Message.setField(this, 3, value);
|
1452
|
+
};
|
1453
|
+
|
1454
|
+
|
1455
|
+
/**
|
1456
|
+
* Clears the field making it undefined.
|
1457
|
+
* @return {!proto.bonus.PaginationRequest} returns this
|
1458
|
+
*/
|
1459
|
+
proto.bonus.PaginationRequest.prototype.clearOrder = function() {
|
1460
|
+
return jspb.Message.setField(this, 3, undefined);
|
1461
|
+
};
|
1462
|
+
|
1463
|
+
|
1464
|
+
/**
|
1465
|
+
* Returns whether this field is set.
|
1466
|
+
* @return {boolean}
|
1467
|
+
*/
|
1468
|
+
proto.bonus.PaginationRequest.prototype.hasOrder = function() {
|
1469
|
+
return jspb.Message.getField(this, 3) != null;
|
1470
|
+
};
|
1471
|
+
|
1472
|
+
|
1473
|
+
/**
|
1474
|
+
* optional GetUserBonusRequest user_bonus_params = 4;
|
1427
1475
|
* @return {?proto.bonus.GetUserBonusRequest}
|
1428
1476
|
*/
|
1429
1477
|
proto.bonus.PaginationRequest.prototype.getUserBonusParams = function() {
|
1430
1478
|
return /** @type{?proto.bonus.GetUserBonusRequest} */ (
|
1431
|
-
jspb.Message.getWrapperField(this, proto.bonus.GetUserBonusRequest,
|
1479
|
+
jspb.Message.getWrapperField(this, proto.bonus.GetUserBonusRequest, 4));
|
1432
1480
|
};
|
1433
1481
|
|
1434
1482
|
|
@@ -1437,7 +1485,7 @@ proto.bonus.PaginationRequest.prototype.getUserBonusParams = function() {
|
|
1437
1485
|
* @return {!proto.bonus.PaginationRequest} returns this
|
1438
1486
|
*/
|
1439
1487
|
proto.bonus.PaginationRequest.prototype.setUserBonusParams = function(value) {
|
1440
|
-
return jspb.Message.setWrapperField(this,
|
1488
|
+
return jspb.Message.setWrapperField(this, 4, value);
|
1441
1489
|
};
|
1442
1490
|
|
1443
1491
|
|
@@ -1455,17 +1503,17 @@ proto.bonus.PaginationRequest.prototype.clearUserBonusParams = function() {
|
|
1455
1503
|
* @return {boolean}
|
1456
1504
|
*/
|
1457
1505
|
proto.bonus.PaginationRequest.prototype.hasUserBonusParams = function() {
|
1458
|
-
return jspb.Message.getField(this,
|
1506
|
+
return jspb.Message.getField(this, 4) != null;
|
1459
1507
|
};
|
1460
1508
|
|
1461
1509
|
|
1462
1510
|
/**
|
1463
|
-
* optional SearchBonusRequest search_bonus_params =
|
1511
|
+
* optional SearchBonusRequest search_bonus_params = 5;
|
1464
1512
|
* @return {?proto.bonus.SearchBonusRequest}
|
1465
1513
|
*/
|
1466
1514
|
proto.bonus.PaginationRequest.prototype.getSearchBonusParams = function() {
|
1467
1515
|
return /** @type{?proto.bonus.SearchBonusRequest} */ (
|
1468
|
-
jspb.Message.getWrapperField(this, proto.bonus.SearchBonusRequest,
|
1516
|
+
jspb.Message.getWrapperField(this, proto.bonus.SearchBonusRequest, 5));
|
1469
1517
|
};
|
1470
1518
|
|
1471
1519
|
|
@@ -1474,7 +1522,7 @@ proto.bonus.PaginationRequest.prototype.getSearchBonusParams = function() {
|
|
1474
1522
|
* @return {!proto.bonus.PaginationRequest} returns this
|
1475
1523
|
*/
|
1476
1524
|
proto.bonus.PaginationRequest.prototype.setSearchBonusParams = function(value) {
|
1477
|
-
return jspb.Message.setWrapperField(this,
|
1525
|
+
return jspb.Message.setWrapperField(this, 5, value);
|
1478
1526
|
};
|
1479
1527
|
|
1480
1528
|
|
@@ -1492,7 +1540,7 @@ proto.bonus.PaginationRequest.prototype.clearSearchBonusParams = function() {
|
|
1492
1540
|
* @return {boolean}
|
1493
1541
|
*/
|
1494
1542
|
proto.bonus.PaginationRequest.prototype.hasSearchBonusParams = function() {
|
1495
|
-
return jspb.Message.getField(this,
|
1543
|
+
return jspb.Message.getField(this, 5) != null;
|
1496
1544
|
};
|
1497
1545
|
|
1498
1546
|
|