protobuf-platform 1.1.56 → 1.1.58
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 +13 -1
- package/bonus/bonus_pb.js +374 -1
- package/loyalty/loyalty.proto +12 -1
- package/loyalty/loyalty_pb.js +299 -2
- package/package.json +1 -1
package/bonus/bonus.proto
CHANGED
@@ -34,7 +34,19 @@ message PongResponse { string pong = 1; }
|
|
34
34
|
message File { bytes media = 1; }
|
35
35
|
message GetFileRequest { string file_name = 1; string instance_type = 2; }
|
36
36
|
//Common
|
37
|
-
message PaginationRequest {
|
37
|
+
message PaginationRequest {
|
38
|
+
int32 limit = 1;
|
39
|
+
int32 offset = 2;
|
40
|
+
optional GetUserBonusRequest user_bonus_params = 3;
|
41
|
+
optional SearchBonusRequest search_bonus_params = 4;
|
42
|
+
}
|
43
|
+
//Bonus search
|
44
|
+
message SearchBonusRequest {
|
45
|
+
optional string title = 1;
|
46
|
+
optional int32 type_id = 2;
|
47
|
+
repeated string currencies = 3;
|
48
|
+
optional int32 status_id = 4;
|
49
|
+
}
|
38
50
|
//Bonus CRUD | Requests
|
39
51
|
message BonusRequest {
|
40
52
|
oneof request {
|
package/bonus/bonus_pb.js
CHANGED
@@ -48,6 +48,7 @@ goog.exportSymbol('proto.bonus.GetUserBonusRequest', null, global);
|
|
48
48
|
goog.exportSymbol('proto.bonus.PaginationRequest', null, global);
|
49
49
|
goog.exportSymbol('proto.bonus.PingRequest', null, global);
|
50
50
|
goog.exportSymbol('proto.bonus.PongResponse', null, global);
|
51
|
+
goog.exportSymbol('proto.bonus.SearchBonusRequest', null, global);
|
51
52
|
goog.exportSymbol('proto.bonus.UserBonusItem', null, global);
|
52
53
|
goog.exportSymbol('proto.bonus.UserBonusItemsResponse', null, global);
|
53
54
|
/**
|
@@ -155,6 +156,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
155
156
|
*/
|
156
157
|
proto.bonus.PaginationRequest.displayName = 'proto.bonus.PaginationRequest';
|
157
158
|
}
|
159
|
+
/**
|
160
|
+
* Generated by JsPbCodeGenerator.
|
161
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
162
|
+
* server response, or constructed directly in Javascript. The array is used
|
163
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
164
|
+
* If no data is provided, the constructed object will be empty, but still
|
165
|
+
* valid.
|
166
|
+
* @extends {jspb.Message}
|
167
|
+
* @constructor
|
168
|
+
*/
|
169
|
+
proto.bonus.SearchBonusRequest = function(opt_data) {
|
170
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.bonus.SearchBonusRequest.repeatedFields_, null);
|
171
|
+
};
|
172
|
+
goog.inherits(proto.bonus.SearchBonusRequest, jspb.Message);
|
173
|
+
if (goog.DEBUG && !COMPILED) {
|
174
|
+
/**
|
175
|
+
* @public
|
176
|
+
* @override
|
177
|
+
*/
|
178
|
+
proto.bonus.SearchBonusRequest.displayName = 'proto.bonus.SearchBonusRequest';
|
179
|
+
}
|
158
180
|
/**
|
159
181
|
* Generated by JsPbCodeGenerator.
|
160
182
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
@@ -1246,7 +1268,8 @@ proto.bonus.PaginationRequest.toObject = function(includeInstance, msg) {
|
|
1246
1268
|
var f, obj = {
|
1247
1269
|
limit: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
1248
1270
|
offset: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
1249
|
-
userBonusParams: (f = msg.getUserBonusParams()) && proto.bonus.GetUserBonusRequest.toObject(includeInstance, f)
|
1271
|
+
userBonusParams: (f = msg.getUserBonusParams()) && proto.bonus.GetUserBonusRequest.toObject(includeInstance, f),
|
1272
|
+
searchBonusParams: (f = msg.getSearchBonusParams()) && proto.bonus.SearchBonusRequest.toObject(includeInstance, f)
|
1250
1273
|
};
|
1251
1274
|
|
1252
1275
|
if (includeInstance) {
|
@@ -1296,6 +1319,11 @@ proto.bonus.PaginationRequest.deserializeBinaryFromReader = function(msg, reader
|
|
1296
1319
|
reader.readMessage(value,proto.bonus.GetUserBonusRequest.deserializeBinaryFromReader);
|
1297
1320
|
msg.setUserBonusParams(value);
|
1298
1321
|
break;
|
1322
|
+
case 4:
|
1323
|
+
var value = new proto.bonus.SearchBonusRequest;
|
1324
|
+
reader.readMessage(value,proto.bonus.SearchBonusRequest.deserializeBinaryFromReader);
|
1325
|
+
msg.setSearchBonusParams(value);
|
1326
|
+
break;
|
1299
1327
|
default:
|
1300
1328
|
reader.skipField();
|
1301
1329
|
break;
|
@@ -1347,6 +1375,14 @@ proto.bonus.PaginationRequest.serializeBinaryToWriter = function(message, writer
|
|
1347
1375
|
proto.bonus.GetUserBonusRequest.serializeBinaryToWriter
|
1348
1376
|
);
|
1349
1377
|
}
|
1378
|
+
f = message.getSearchBonusParams();
|
1379
|
+
if (f != null) {
|
1380
|
+
writer.writeMessage(
|
1381
|
+
4,
|
1382
|
+
f,
|
1383
|
+
proto.bonus.SearchBonusRequest.serializeBinaryToWriter
|
1384
|
+
);
|
1385
|
+
}
|
1350
1386
|
};
|
1351
1387
|
|
1352
1388
|
|
@@ -1423,6 +1459,343 @@ proto.bonus.PaginationRequest.prototype.hasUserBonusParams = function() {
|
|
1423
1459
|
};
|
1424
1460
|
|
1425
1461
|
|
1462
|
+
/**
|
1463
|
+
* optional SearchBonusRequest search_bonus_params = 4;
|
1464
|
+
* @return {?proto.bonus.SearchBonusRequest}
|
1465
|
+
*/
|
1466
|
+
proto.bonus.PaginationRequest.prototype.getSearchBonusParams = function() {
|
1467
|
+
return /** @type{?proto.bonus.SearchBonusRequest} */ (
|
1468
|
+
jspb.Message.getWrapperField(this, proto.bonus.SearchBonusRequest, 4));
|
1469
|
+
};
|
1470
|
+
|
1471
|
+
|
1472
|
+
/**
|
1473
|
+
* @param {?proto.bonus.SearchBonusRequest|undefined} value
|
1474
|
+
* @return {!proto.bonus.PaginationRequest} returns this
|
1475
|
+
*/
|
1476
|
+
proto.bonus.PaginationRequest.prototype.setSearchBonusParams = function(value) {
|
1477
|
+
return jspb.Message.setWrapperField(this, 4, value);
|
1478
|
+
};
|
1479
|
+
|
1480
|
+
|
1481
|
+
/**
|
1482
|
+
* Clears the message field making it undefined.
|
1483
|
+
* @return {!proto.bonus.PaginationRequest} returns this
|
1484
|
+
*/
|
1485
|
+
proto.bonus.PaginationRequest.prototype.clearSearchBonusParams = function() {
|
1486
|
+
return this.setSearchBonusParams(undefined);
|
1487
|
+
};
|
1488
|
+
|
1489
|
+
|
1490
|
+
/**
|
1491
|
+
* Returns whether this field is set.
|
1492
|
+
* @return {boolean}
|
1493
|
+
*/
|
1494
|
+
proto.bonus.PaginationRequest.prototype.hasSearchBonusParams = function() {
|
1495
|
+
return jspb.Message.getField(this, 4) != null;
|
1496
|
+
};
|
1497
|
+
|
1498
|
+
|
1499
|
+
|
1500
|
+
/**
|
1501
|
+
* List of repeated fields within this message type.
|
1502
|
+
* @private {!Array<number>}
|
1503
|
+
* @const
|
1504
|
+
*/
|
1505
|
+
proto.bonus.SearchBonusRequest.repeatedFields_ = [3];
|
1506
|
+
|
1507
|
+
|
1508
|
+
|
1509
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
1510
|
+
/**
|
1511
|
+
* Creates an object representation of this proto.
|
1512
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
1513
|
+
* Optional fields that are not set will be set to undefined.
|
1514
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
1515
|
+
* For the list of reserved names please see:
|
1516
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
1517
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
1518
|
+
* JSPB instance for transitional soy proto support:
|
1519
|
+
* http://goto/soy-param-migration
|
1520
|
+
* @return {!Object}
|
1521
|
+
*/
|
1522
|
+
proto.bonus.SearchBonusRequest.prototype.toObject = function(opt_includeInstance) {
|
1523
|
+
return proto.bonus.SearchBonusRequest.toObject(opt_includeInstance, this);
|
1524
|
+
};
|
1525
|
+
|
1526
|
+
|
1527
|
+
/**
|
1528
|
+
* Static version of the {@see toObject} method.
|
1529
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
1530
|
+
* the JSPB instance for transitional soy proto support:
|
1531
|
+
* http://goto/soy-param-migration
|
1532
|
+
* @param {!proto.bonus.SearchBonusRequest} msg The msg instance to transform.
|
1533
|
+
* @return {!Object}
|
1534
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1535
|
+
*/
|
1536
|
+
proto.bonus.SearchBonusRequest.toObject = function(includeInstance, msg) {
|
1537
|
+
var f, obj = {
|
1538
|
+
title: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
1539
|
+
typeId: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
1540
|
+
currenciesList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
|
1541
|
+
statusId: jspb.Message.getFieldWithDefault(msg, 4, 0)
|
1542
|
+
};
|
1543
|
+
|
1544
|
+
if (includeInstance) {
|
1545
|
+
obj.$jspbMessageInstance = msg;
|
1546
|
+
}
|
1547
|
+
return obj;
|
1548
|
+
};
|
1549
|
+
}
|
1550
|
+
|
1551
|
+
|
1552
|
+
/**
|
1553
|
+
* Deserializes binary data (in protobuf wire format).
|
1554
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
1555
|
+
* @return {!proto.bonus.SearchBonusRequest}
|
1556
|
+
*/
|
1557
|
+
proto.bonus.SearchBonusRequest.deserializeBinary = function(bytes) {
|
1558
|
+
var reader = new jspb.BinaryReader(bytes);
|
1559
|
+
var msg = new proto.bonus.SearchBonusRequest;
|
1560
|
+
return proto.bonus.SearchBonusRequest.deserializeBinaryFromReader(msg, reader);
|
1561
|
+
};
|
1562
|
+
|
1563
|
+
|
1564
|
+
/**
|
1565
|
+
* Deserializes binary data (in protobuf wire format) from the
|
1566
|
+
* given reader into the given message object.
|
1567
|
+
* @param {!proto.bonus.SearchBonusRequest} msg The message object to deserialize into.
|
1568
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
1569
|
+
* @return {!proto.bonus.SearchBonusRequest}
|
1570
|
+
*/
|
1571
|
+
proto.bonus.SearchBonusRequest.deserializeBinaryFromReader = function(msg, reader) {
|
1572
|
+
while (reader.nextField()) {
|
1573
|
+
if (reader.isEndGroup()) {
|
1574
|
+
break;
|
1575
|
+
}
|
1576
|
+
var field = reader.getFieldNumber();
|
1577
|
+
switch (field) {
|
1578
|
+
case 1:
|
1579
|
+
var value = /** @type {string} */ (reader.readString());
|
1580
|
+
msg.setTitle(value);
|
1581
|
+
break;
|
1582
|
+
case 2:
|
1583
|
+
var value = /** @type {number} */ (reader.readInt32());
|
1584
|
+
msg.setTypeId(value);
|
1585
|
+
break;
|
1586
|
+
case 3:
|
1587
|
+
var value = /** @type {string} */ (reader.readString());
|
1588
|
+
msg.addCurrencies(value);
|
1589
|
+
break;
|
1590
|
+
case 4:
|
1591
|
+
var value = /** @type {number} */ (reader.readInt32());
|
1592
|
+
msg.setStatusId(value);
|
1593
|
+
break;
|
1594
|
+
default:
|
1595
|
+
reader.skipField();
|
1596
|
+
break;
|
1597
|
+
}
|
1598
|
+
}
|
1599
|
+
return msg;
|
1600
|
+
};
|
1601
|
+
|
1602
|
+
|
1603
|
+
/**
|
1604
|
+
* Serializes the message to binary data (in protobuf wire format).
|
1605
|
+
* @return {!Uint8Array}
|
1606
|
+
*/
|
1607
|
+
proto.bonus.SearchBonusRequest.prototype.serializeBinary = function() {
|
1608
|
+
var writer = new jspb.BinaryWriter();
|
1609
|
+
proto.bonus.SearchBonusRequest.serializeBinaryToWriter(this, writer);
|
1610
|
+
return writer.getResultBuffer();
|
1611
|
+
};
|
1612
|
+
|
1613
|
+
|
1614
|
+
/**
|
1615
|
+
* Serializes the given message to binary data (in protobuf wire
|
1616
|
+
* format), writing to the given BinaryWriter.
|
1617
|
+
* @param {!proto.bonus.SearchBonusRequest} message
|
1618
|
+
* @param {!jspb.BinaryWriter} writer
|
1619
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
1620
|
+
*/
|
1621
|
+
proto.bonus.SearchBonusRequest.serializeBinaryToWriter = function(message, writer) {
|
1622
|
+
var f = undefined;
|
1623
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 1));
|
1624
|
+
if (f != null) {
|
1625
|
+
writer.writeString(
|
1626
|
+
1,
|
1627
|
+
f
|
1628
|
+
);
|
1629
|
+
}
|
1630
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 2));
|
1631
|
+
if (f != null) {
|
1632
|
+
writer.writeInt32(
|
1633
|
+
2,
|
1634
|
+
f
|
1635
|
+
);
|
1636
|
+
}
|
1637
|
+
f = message.getCurrenciesList();
|
1638
|
+
if (f.length > 0) {
|
1639
|
+
writer.writeRepeatedString(
|
1640
|
+
3,
|
1641
|
+
f
|
1642
|
+
);
|
1643
|
+
}
|
1644
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 4));
|
1645
|
+
if (f != null) {
|
1646
|
+
writer.writeInt32(
|
1647
|
+
4,
|
1648
|
+
f
|
1649
|
+
);
|
1650
|
+
}
|
1651
|
+
};
|
1652
|
+
|
1653
|
+
|
1654
|
+
/**
|
1655
|
+
* optional string title = 1;
|
1656
|
+
* @return {string}
|
1657
|
+
*/
|
1658
|
+
proto.bonus.SearchBonusRequest.prototype.getTitle = function() {
|
1659
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
1660
|
+
};
|
1661
|
+
|
1662
|
+
|
1663
|
+
/**
|
1664
|
+
* @param {string} value
|
1665
|
+
* @return {!proto.bonus.SearchBonusRequest} returns this
|
1666
|
+
*/
|
1667
|
+
proto.bonus.SearchBonusRequest.prototype.setTitle = function(value) {
|
1668
|
+
return jspb.Message.setField(this, 1, value);
|
1669
|
+
};
|
1670
|
+
|
1671
|
+
|
1672
|
+
/**
|
1673
|
+
* Clears the field making it undefined.
|
1674
|
+
* @return {!proto.bonus.SearchBonusRequest} returns this
|
1675
|
+
*/
|
1676
|
+
proto.bonus.SearchBonusRequest.prototype.clearTitle = function() {
|
1677
|
+
return jspb.Message.setField(this, 1, undefined);
|
1678
|
+
};
|
1679
|
+
|
1680
|
+
|
1681
|
+
/**
|
1682
|
+
* Returns whether this field is set.
|
1683
|
+
* @return {boolean}
|
1684
|
+
*/
|
1685
|
+
proto.bonus.SearchBonusRequest.prototype.hasTitle = function() {
|
1686
|
+
return jspb.Message.getField(this, 1) != null;
|
1687
|
+
};
|
1688
|
+
|
1689
|
+
|
1690
|
+
/**
|
1691
|
+
* optional int32 type_id = 2;
|
1692
|
+
* @return {number}
|
1693
|
+
*/
|
1694
|
+
proto.bonus.SearchBonusRequest.prototype.getTypeId = function() {
|
1695
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
1696
|
+
};
|
1697
|
+
|
1698
|
+
|
1699
|
+
/**
|
1700
|
+
* @param {number} value
|
1701
|
+
* @return {!proto.bonus.SearchBonusRequest} returns this
|
1702
|
+
*/
|
1703
|
+
proto.bonus.SearchBonusRequest.prototype.setTypeId = function(value) {
|
1704
|
+
return jspb.Message.setField(this, 2, value);
|
1705
|
+
};
|
1706
|
+
|
1707
|
+
|
1708
|
+
/**
|
1709
|
+
* Clears the field making it undefined.
|
1710
|
+
* @return {!proto.bonus.SearchBonusRequest} returns this
|
1711
|
+
*/
|
1712
|
+
proto.bonus.SearchBonusRequest.prototype.clearTypeId = function() {
|
1713
|
+
return jspb.Message.setField(this, 2, undefined);
|
1714
|
+
};
|
1715
|
+
|
1716
|
+
|
1717
|
+
/**
|
1718
|
+
* Returns whether this field is set.
|
1719
|
+
* @return {boolean}
|
1720
|
+
*/
|
1721
|
+
proto.bonus.SearchBonusRequest.prototype.hasTypeId = function() {
|
1722
|
+
return jspb.Message.getField(this, 2) != null;
|
1723
|
+
};
|
1724
|
+
|
1725
|
+
|
1726
|
+
/**
|
1727
|
+
* repeated string currencies = 3;
|
1728
|
+
* @return {!Array<string>}
|
1729
|
+
*/
|
1730
|
+
proto.bonus.SearchBonusRequest.prototype.getCurrenciesList = function() {
|
1731
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
|
1732
|
+
};
|
1733
|
+
|
1734
|
+
|
1735
|
+
/**
|
1736
|
+
* @param {!Array<string>} value
|
1737
|
+
* @return {!proto.bonus.SearchBonusRequest} returns this
|
1738
|
+
*/
|
1739
|
+
proto.bonus.SearchBonusRequest.prototype.setCurrenciesList = function(value) {
|
1740
|
+
return jspb.Message.setField(this, 3, value || []);
|
1741
|
+
};
|
1742
|
+
|
1743
|
+
|
1744
|
+
/**
|
1745
|
+
* @param {string} value
|
1746
|
+
* @param {number=} opt_index
|
1747
|
+
* @return {!proto.bonus.SearchBonusRequest} returns this
|
1748
|
+
*/
|
1749
|
+
proto.bonus.SearchBonusRequest.prototype.addCurrencies = function(value, opt_index) {
|
1750
|
+
return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
|
1751
|
+
};
|
1752
|
+
|
1753
|
+
|
1754
|
+
/**
|
1755
|
+
* Clears the list making it empty but non-null.
|
1756
|
+
* @return {!proto.bonus.SearchBonusRequest} returns this
|
1757
|
+
*/
|
1758
|
+
proto.bonus.SearchBonusRequest.prototype.clearCurrenciesList = function() {
|
1759
|
+
return this.setCurrenciesList([]);
|
1760
|
+
};
|
1761
|
+
|
1762
|
+
|
1763
|
+
/**
|
1764
|
+
* optional int32 status_id = 4;
|
1765
|
+
* @return {number}
|
1766
|
+
*/
|
1767
|
+
proto.bonus.SearchBonusRequest.prototype.getStatusId = function() {
|
1768
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
1769
|
+
};
|
1770
|
+
|
1771
|
+
|
1772
|
+
/**
|
1773
|
+
* @param {number} value
|
1774
|
+
* @return {!proto.bonus.SearchBonusRequest} returns this
|
1775
|
+
*/
|
1776
|
+
proto.bonus.SearchBonusRequest.prototype.setStatusId = function(value) {
|
1777
|
+
return jspb.Message.setField(this, 4, value);
|
1778
|
+
};
|
1779
|
+
|
1780
|
+
|
1781
|
+
/**
|
1782
|
+
* Clears the field making it undefined.
|
1783
|
+
* @return {!proto.bonus.SearchBonusRequest} returns this
|
1784
|
+
*/
|
1785
|
+
proto.bonus.SearchBonusRequest.prototype.clearStatusId = function() {
|
1786
|
+
return jspb.Message.setField(this, 4, undefined);
|
1787
|
+
};
|
1788
|
+
|
1789
|
+
|
1790
|
+
/**
|
1791
|
+
* Returns whether this field is set.
|
1792
|
+
* @return {boolean}
|
1793
|
+
*/
|
1794
|
+
proto.bonus.SearchBonusRequest.prototype.hasStatusId = function() {
|
1795
|
+
return jspb.Message.getField(this, 4) != null;
|
1796
|
+
};
|
1797
|
+
|
1798
|
+
|
1426
1799
|
|
1427
1800
|
/**
|
1428
1801
|
* Oneof group definitions for this message. Each group defines the field
|
package/loyalty/loyalty.proto
CHANGED
@@ -24,11 +24,22 @@ service Loyalty {
|
|
24
24
|
|
25
25
|
message PingRequest { string ping = 1; }
|
26
26
|
message PongResponse { string pong = 1; }
|
27
|
-
message PaginationRequest {
|
27
|
+
message PaginationRequest {
|
28
|
+
int32 limit = 1;
|
29
|
+
int32 offset = 2;
|
30
|
+
optional LoyaltySearchRequest loyalty_search_params = 3;
|
31
|
+
optional string type = 4;
|
32
|
+
}
|
28
33
|
message LoyaltySearchRequest {
|
29
34
|
optional int32 loyalty_id = 1;
|
30
35
|
optional int32 user_id = 2;
|
31
36
|
optional string loyalty_title = 3;
|
37
|
+
optional int32 loyalty_level = 4;
|
38
|
+
optional int32 is_active = 5;
|
39
|
+
repeated string geo = 6;
|
40
|
+
repeated string currencies = 7;
|
41
|
+
optional int32 number_of_deposit = 8;
|
42
|
+
optional int32 number_of_step = 9;
|
32
43
|
}
|
33
44
|
//Media
|
34
45
|
message File { bytes media = 1; }
|
package/loyalty/loyalty_pb.js
CHANGED
@@ -122,7 +122,7 @@ if (goog.DEBUG && !COMPILED) {
|
|
122
122
|
* @constructor
|
123
123
|
*/
|
124
124
|
proto.loyalty.LoyaltySearchRequest = function(opt_data) {
|
125
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
125
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.loyalty.LoyaltySearchRequest.repeatedFields_, null);
|
126
126
|
};
|
127
127
|
goog.inherits(proto.loyalty.LoyaltySearchRequest, jspb.Message);
|
128
128
|
if (goog.DEBUG && !COMPILED) {
|
@@ -1114,6 +1114,13 @@ proto.loyalty.PaginationRequest.prototype.hasType = function() {
|
|
1114
1114
|
|
1115
1115
|
|
1116
1116
|
|
1117
|
+
/**
|
1118
|
+
* List of repeated fields within this message type.
|
1119
|
+
* @private {!Array<number>}
|
1120
|
+
* @const
|
1121
|
+
*/
|
1122
|
+
proto.loyalty.LoyaltySearchRequest.repeatedFields_ = [6,7];
|
1123
|
+
|
1117
1124
|
|
1118
1125
|
|
1119
1126
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
@@ -1147,7 +1154,13 @@ proto.loyalty.LoyaltySearchRequest.toObject = function(includeInstance, msg) {
|
|
1147
1154
|
var f, obj = {
|
1148
1155
|
loyaltyId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
1149
1156
|
userId: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
1150
|
-
loyaltyTitle: jspb.Message.getFieldWithDefault(msg, 3, "")
|
1157
|
+
loyaltyTitle: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
1158
|
+
loyaltyLevel: jspb.Message.getFieldWithDefault(msg, 4, 0),
|
1159
|
+
isActive: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
1160
|
+
geoList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f,
|
1161
|
+
currenciesList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f,
|
1162
|
+
numberOfDeposit: jspb.Message.getFieldWithDefault(msg, 8, 0),
|
1163
|
+
numberOfStep: jspb.Message.getFieldWithDefault(msg, 9, 0)
|
1151
1164
|
};
|
1152
1165
|
|
1153
1166
|
if (includeInstance) {
|
@@ -1196,6 +1209,30 @@ proto.loyalty.LoyaltySearchRequest.deserializeBinaryFromReader = function(msg, r
|
|
1196
1209
|
var value = /** @type {string} */ (reader.readString());
|
1197
1210
|
msg.setLoyaltyTitle(value);
|
1198
1211
|
break;
|
1212
|
+
case 4:
|
1213
|
+
var value = /** @type {number} */ (reader.readInt32());
|
1214
|
+
msg.setLoyaltyLevel(value);
|
1215
|
+
break;
|
1216
|
+
case 5:
|
1217
|
+
var value = /** @type {number} */ (reader.readInt32());
|
1218
|
+
msg.setIsActive(value);
|
1219
|
+
break;
|
1220
|
+
case 6:
|
1221
|
+
var value = /** @type {string} */ (reader.readString());
|
1222
|
+
msg.addGeo(value);
|
1223
|
+
break;
|
1224
|
+
case 7:
|
1225
|
+
var value = /** @type {string} */ (reader.readString());
|
1226
|
+
msg.addCurrencies(value);
|
1227
|
+
break;
|
1228
|
+
case 8:
|
1229
|
+
var value = /** @type {number} */ (reader.readInt32());
|
1230
|
+
msg.setNumberOfDeposit(value);
|
1231
|
+
break;
|
1232
|
+
case 9:
|
1233
|
+
var value = /** @type {number} */ (reader.readInt32());
|
1234
|
+
msg.setNumberOfStep(value);
|
1235
|
+
break;
|
1199
1236
|
default:
|
1200
1237
|
reader.skipField();
|
1201
1238
|
break;
|
@@ -1246,6 +1283,48 @@ proto.loyalty.LoyaltySearchRequest.serializeBinaryToWriter = function(message, w
|
|
1246
1283
|
f
|
1247
1284
|
);
|
1248
1285
|
}
|
1286
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 4));
|
1287
|
+
if (f != null) {
|
1288
|
+
writer.writeInt32(
|
1289
|
+
4,
|
1290
|
+
f
|
1291
|
+
);
|
1292
|
+
}
|
1293
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 5));
|
1294
|
+
if (f != null) {
|
1295
|
+
writer.writeInt32(
|
1296
|
+
5,
|
1297
|
+
f
|
1298
|
+
);
|
1299
|
+
}
|
1300
|
+
f = message.getGeoList();
|
1301
|
+
if (f.length > 0) {
|
1302
|
+
writer.writeRepeatedString(
|
1303
|
+
6,
|
1304
|
+
f
|
1305
|
+
);
|
1306
|
+
}
|
1307
|
+
f = message.getCurrenciesList();
|
1308
|
+
if (f.length > 0) {
|
1309
|
+
writer.writeRepeatedString(
|
1310
|
+
7,
|
1311
|
+
f
|
1312
|
+
);
|
1313
|
+
}
|
1314
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 8));
|
1315
|
+
if (f != null) {
|
1316
|
+
writer.writeInt32(
|
1317
|
+
8,
|
1318
|
+
f
|
1319
|
+
);
|
1320
|
+
}
|
1321
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 9));
|
1322
|
+
if (f != null) {
|
1323
|
+
writer.writeInt32(
|
1324
|
+
9,
|
1325
|
+
f
|
1326
|
+
);
|
1327
|
+
}
|
1249
1328
|
};
|
1250
1329
|
|
1251
1330
|
|
@@ -1357,6 +1436,224 @@ proto.loyalty.LoyaltySearchRequest.prototype.hasLoyaltyTitle = function() {
|
|
1357
1436
|
};
|
1358
1437
|
|
1359
1438
|
|
1439
|
+
/**
|
1440
|
+
* optional int32 loyalty_level = 4;
|
1441
|
+
* @return {number}
|
1442
|
+
*/
|
1443
|
+
proto.loyalty.LoyaltySearchRequest.prototype.getLoyaltyLevel = function() {
|
1444
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
|
1445
|
+
};
|
1446
|
+
|
1447
|
+
|
1448
|
+
/**
|
1449
|
+
* @param {number} value
|
1450
|
+
* @return {!proto.loyalty.LoyaltySearchRequest} returns this
|
1451
|
+
*/
|
1452
|
+
proto.loyalty.LoyaltySearchRequest.prototype.setLoyaltyLevel = function(value) {
|
1453
|
+
return jspb.Message.setField(this, 4, value);
|
1454
|
+
};
|
1455
|
+
|
1456
|
+
|
1457
|
+
/**
|
1458
|
+
* Clears the field making it undefined.
|
1459
|
+
* @return {!proto.loyalty.LoyaltySearchRequest} returns this
|
1460
|
+
*/
|
1461
|
+
proto.loyalty.LoyaltySearchRequest.prototype.clearLoyaltyLevel = function() {
|
1462
|
+
return jspb.Message.setField(this, 4, undefined);
|
1463
|
+
};
|
1464
|
+
|
1465
|
+
|
1466
|
+
/**
|
1467
|
+
* Returns whether this field is set.
|
1468
|
+
* @return {boolean}
|
1469
|
+
*/
|
1470
|
+
proto.loyalty.LoyaltySearchRequest.prototype.hasLoyaltyLevel = function() {
|
1471
|
+
return jspb.Message.getField(this, 4) != null;
|
1472
|
+
};
|
1473
|
+
|
1474
|
+
|
1475
|
+
/**
|
1476
|
+
* optional int32 is_active = 5;
|
1477
|
+
* @return {number}
|
1478
|
+
*/
|
1479
|
+
proto.loyalty.LoyaltySearchRequest.prototype.getIsActive = function() {
|
1480
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
1481
|
+
};
|
1482
|
+
|
1483
|
+
|
1484
|
+
/**
|
1485
|
+
* @param {number} value
|
1486
|
+
* @return {!proto.loyalty.LoyaltySearchRequest} returns this
|
1487
|
+
*/
|
1488
|
+
proto.loyalty.LoyaltySearchRequest.prototype.setIsActive = function(value) {
|
1489
|
+
return jspb.Message.setField(this, 5, value);
|
1490
|
+
};
|
1491
|
+
|
1492
|
+
|
1493
|
+
/**
|
1494
|
+
* Clears the field making it undefined.
|
1495
|
+
* @return {!proto.loyalty.LoyaltySearchRequest} returns this
|
1496
|
+
*/
|
1497
|
+
proto.loyalty.LoyaltySearchRequest.prototype.clearIsActive = function() {
|
1498
|
+
return jspb.Message.setField(this, 5, undefined);
|
1499
|
+
};
|
1500
|
+
|
1501
|
+
|
1502
|
+
/**
|
1503
|
+
* Returns whether this field is set.
|
1504
|
+
* @return {boolean}
|
1505
|
+
*/
|
1506
|
+
proto.loyalty.LoyaltySearchRequest.prototype.hasIsActive = function() {
|
1507
|
+
return jspb.Message.getField(this, 5) != null;
|
1508
|
+
};
|
1509
|
+
|
1510
|
+
|
1511
|
+
/**
|
1512
|
+
* repeated string geo = 6;
|
1513
|
+
* @return {!Array<string>}
|
1514
|
+
*/
|
1515
|
+
proto.loyalty.LoyaltySearchRequest.prototype.getGeoList = function() {
|
1516
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 6));
|
1517
|
+
};
|
1518
|
+
|
1519
|
+
|
1520
|
+
/**
|
1521
|
+
* @param {!Array<string>} value
|
1522
|
+
* @return {!proto.loyalty.LoyaltySearchRequest} returns this
|
1523
|
+
*/
|
1524
|
+
proto.loyalty.LoyaltySearchRequest.prototype.setGeoList = function(value) {
|
1525
|
+
return jspb.Message.setField(this, 6, value || []);
|
1526
|
+
};
|
1527
|
+
|
1528
|
+
|
1529
|
+
/**
|
1530
|
+
* @param {string} value
|
1531
|
+
* @param {number=} opt_index
|
1532
|
+
* @return {!proto.loyalty.LoyaltySearchRequest} returns this
|
1533
|
+
*/
|
1534
|
+
proto.loyalty.LoyaltySearchRequest.prototype.addGeo = function(value, opt_index) {
|
1535
|
+
return jspb.Message.addToRepeatedField(this, 6, value, opt_index);
|
1536
|
+
};
|
1537
|
+
|
1538
|
+
|
1539
|
+
/**
|
1540
|
+
* Clears the list making it empty but non-null.
|
1541
|
+
* @return {!proto.loyalty.LoyaltySearchRequest} returns this
|
1542
|
+
*/
|
1543
|
+
proto.loyalty.LoyaltySearchRequest.prototype.clearGeoList = function() {
|
1544
|
+
return this.setGeoList([]);
|
1545
|
+
};
|
1546
|
+
|
1547
|
+
|
1548
|
+
/**
|
1549
|
+
* repeated string currencies = 7;
|
1550
|
+
* @return {!Array<string>}
|
1551
|
+
*/
|
1552
|
+
proto.loyalty.LoyaltySearchRequest.prototype.getCurrenciesList = function() {
|
1553
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 7));
|
1554
|
+
};
|
1555
|
+
|
1556
|
+
|
1557
|
+
/**
|
1558
|
+
* @param {!Array<string>} value
|
1559
|
+
* @return {!proto.loyalty.LoyaltySearchRequest} returns this
|
1560
|
+
*/
|
1561
|
+
proto.loyalty.LoyaltySearchRequest.prototype.setCurrenciesList = function(value) {
|
1562
|
+
return jspb.Message.setField(this, 7, value || []);
|
1563
|
+
};
|
1564
|
+
|
1565
|
+
|
1566
|
+
/**
|
1567
|
+
* @param {string} value
|
1568
|
+
* @param {number=} opt_index
|
1569
|
+
* @return {!proto.loyalty.LoyaltySearchRequest} returns this
|
1570
|
+
*/
|
1571
|
+
proto.loyalty.LoyaltySearchRequest.prototype.addCurrencies = function(value, opt_index) {
|
1572
|
+
return jspb.Message.addToRepeatedField(this, 7, value, opt_index);
|
1573
|
+
};
|
1574
|
+
|
1575
|
+
|
1576
|
+
/**
|
1577
|
+
* Clears the list making it empty but non-null.
|
1578
|
+
* @return {!proto.loyalty.LoyaltySearchRequest} returns this
|
1579
|
+
*/
|
1580
|
+
proto.loyalty.LoyaltySearchRequest.prototype.clearCurrenciesList = function() {
|
1581
|
+
return this.setCurrenciesList([]);
|
1582
|
+
};
|
1583
|
+
|
1584
|
+
|
1585
|
+
/**
|
1586
|
+
* optional int32 number_of_deposit = 8;
|
1587
|
+
* @return {number}
|
1588
|
+
*/
|
1589
|
+
proto.loyalty.LoyaltySearchRequest.prototype.getNumberOfDeposit = function() {
|
1590
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
|
1591
|
+
};
|
1592
|
+
|
1593
|
+
|
1594
|
+
/**
|
1595
|
+
* @param {number} value
|
1596
|
+
* @return {!proto.loyalty.LoyaltySearchRequest} returns this
|
1597
|
+
*/
|
1598
|
+
proto.loyalty.LoyaltySearchRequest.prototype.setNumberOfDeposit = function(value) {
|
1599
|
+
return jspb.Message.setField(this, 8, value);
|
1600
|
+
};
|
1601
|
+
|
1602
|
+
|
1603
|
+
/**
|
1604
|
+
* Clears the field making it undefined.
|
1605
|
+
* @return {!proto.loyalty.LoyaltySearchRequest} returns this
|
1606
|
+
*/
|
1607
|
+
proto.loyalty.LoyaltySearchRequest.prototype.clearNumberOfDeposit = function() {
|
1608
|
+
return jspb.Message.setField(this, 8, undefined);
|
1609
|
+
};
|
1610
|
+
|
1611
|
+
|
1612
|
+
/**
|
1613
|
+
* Returns whether this field is set.
|
1614
|
+
* @return {boolean}
|
1615
|
+
*/
|
1616
|
+
proto.loyalty.LoyaltySearchRequest.prototype.hasNumberOfDeposit = function() {
|
1617
|
+
return jspb.Message.getField(this, 8) != null;
|
1618
|
+
};
|
1619
|
+
|
1620
|
+
|
1621
|
+
/**
|
1622
|
+
* optional int32 number_of_step = 9;
|
1623
|
+
* @return {number}
|
1624
|
+
*/
|
1625
|
+
proto.loyalty.LoyaltySearchRequest.prototype.getNumberOfStep = function() {
|
1626
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 9, 0));
|
1627
|
+
};
|
1628
|
+
|
1629
|
+
|
1630
|
+
/**
|
1631
|
+
* @param {number} value
|
1632
|
+
* @return {!proto.loyalty.LoyaltySearchRequest} returns this
|
1633
|
+
*/
|
1634
|
+
proto.loyalty.LoyaltySearchRequest.prototype.setNumberOfStep = function(value) {
|
1635
|
+
return jspb.Message.setField(this, 9, value);
|
1636
|
+
};
|
1637
|
+
|
1638
|
+
|
1639
|
+
/**
|
1640
|
+
* Clears the field making it undefined.
|
1641
|
+
* @return {!proto.loyalty.LoyaltySearchRequest} returns this
|
1642
|
+
*/
|
1643
|
+
proto.loyalty.LoyaltySearchRequest.prototype.clearNumberOfStep = function() {
|
1644
|
+
return jspb.Message.setField(this, 9, undefined);
|
1645
|
+
};
|
1646
|
+
|
1647
|
+
|
1648
|
+
/**
|
1649
|
+
* Returns whether this field is set.
|
1650
|
+
* @return {boolean}
|
1651
|
+
*/
|
1652
|
+
proto.loyalty.LoyaltySearchRequest.prototype.hasNumberOfStep = function() {
|
1653
|
+
return jspb.Message.getField(this, 9) != null;
|
1654
|
+
};
|
1655
|
+
|
1656
|
+
|
1360
1657
|
|
1361
1658
|
|
1362
1659
|
|