protobuf-platform 1.2.62 → 1.2.63

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.
@@ -44,6 +44,7 @@ message LoyaltySearchRequest {
44
44
  repeated string currencies = 7;
45
45
  optional int32 number_of_deposit = 8;
46
46
  optional int32 number_of_step = 9;
47
+ optional string locale = 10;
47
48
  }
48
49
  message ItemsBunchRequest {
49
50
  repeated int32 ids = 1;
@@ -1318,7 +1318,8 @@ proto.loyalty.LoyaltySearchRequest.toObject = function(includeInstance, msg) {
1318
1318
  geoList: (f = jspb.Message.getRepeatedField(msg, 6)) == null ? undefined : f,
1319
1319
  currenciesList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f,
1320
1320
  numberOfDeposit: jspb.Message.getFieldWithDefault(msg, 8, 0),
1321
- numberOfStep: jspb.Message.getFieldWithDefault(msg, 9, 0)
1321
+ numberOfStep: jspb.Message.getFieldWithDefault(msg, 9, 0),
1322
+ locale: jspb.Message.getFieldWithDefault(msg, 10, "")
1322
1323
  };
1323
1324
 
1324
1325
  if (includeInstance) {
@@ -1391,6 +1392,10 @@ proto.loyalty.LoyaltySearchRequest.deserializeBinaryFromReader = function(msg, r
1391
1392
  var value = /** @type {number} */ (reader.readInt32());
1392
1393
  msg.setNumberOfStep(value);
1393
1394
  break;
1395
+ case 10:
1396
+ var value = /** @type {string} */ (reader.readString());
1397
+ msg.setLocale(value);
1398
+ break;
1394
1399
  default:
1395
1400
  reader.skipField();
1396
1401
  break;
@@ -1483,6 +1488,13 @@ proto.loyalty.LoyaltySearchRequest.serializeBinaryToWriter = function(message, w
1483
1488
  f
1484
1489
  );
1485
1490
  }
1491
+ f = /** @type {string} */ (jspb.Message.getField(message, 10));
1492
+ if (f != null) {
1493
+ writer.writeString(
1494
+ 10,
1495
+ f
1496
+ );
1497
+ }
1486
1498
  };
1487
1499
 
1488
1500
 
@@ -1812,6 +1824,42 @@ proto.loyalty.LoyaltySearchRequest.prototype.hasNumberOfStep = function() {
1812
1824
  };
1813
1825
 
1814
1826
 
1827
+ /**
1828
+ * optional string locale = 10;
1829
+ * @return {string}
1830
+ */
1831
+ proto.loyalty.LoyaltySearchRequest.prototype.getLocale = function() {
1832
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
1833
+ };
1834
+
1835
+
1836
+ /**
1837
+ * @param {string} value
1838
+ * @return {!proto.loyalty.LoyaltySearchRequest} returns this
1839
+ */
1840
+ proto.loyalty.LoyaltySearchRequest.prototype.setLocale = function(value) {
1841
+ return jspb.Message.setField(this, 10, value);
1842
+ };
1843
+
1844
+
1845
+ /**
1846
+ * Clears the field making it undefined.
1847
+ * @return {!proto.loyalty.LoyaltySearchRequest} returns this
1848
+ */
1849
+ proto.loyalty.LoyaltySearchRequest.prototype.clearLocale = function() {
1850
+ return jspb.Message.setField(this, 10, undefined);
1851
+ };
1852
+
1853
+
1854
+ /**
1855
+ * Returns whether this field is set.
1856
+ * @return {boolean}
1857
+ */
1858
+ proto.loyalty.LoyaltySearchRequest.prototype.hasLocale = function() {
1859
+ return jspb.Message.getField(this, 10) != null;
1860
+ };
1861
+
1862
+
1815
1863
 
1816
1864
  /**
1817
1865
  * List of repeated fields within this message type.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.62",
3
+ "version": "1.2.63",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {