protobuf-platform 1.2.61 → 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.61",
3
+ "version": "1.2.63",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/user/user.proto CHANGED
@@ -124,6 +124,7 @@ message RegistrationRequest {
124
124
  optional string postal_code = 20;
125
125
  optional string referral = 21;
126
126
  optional string device = 22;
127
+ optional string affiliate_info = 23;
127
128
  }
128
129
  message LoggedInResponse {
129
130
  int32 id = 1;
package/user/user_pb.js CHANGED
@@ -3646,7 +3646,8 @@ proto.user.RegistrationRequest.toObject = function(includeInstance, msg) {
3646
3646
  phone: jspb.Message.getFieldWithDefault(msg, 19, ""),
3647
3647
  postalCode: jspb.Message.getFieldWithDefault(msg, 20, ""),
3648
3648
  referral: jspb.Message.getFieldWithDefault(msg, 21, ""),
3649
- device: jspb.Message.getFieldWithDefault(msg, 22, "")
3649
+ device: jspb.Message.getFieldWithDefault(msg, 22, ""),
3650
+ affiliateInfo: jspb.Message.getFieldWithDefault(msg, 23, "")
3650
3651
  };
3651
3652
 
3652
3653
  if (includeInstance) {
@@ -3771,6 +3772,10 @@ proto.user.RegistrationRequest.deserializeBinaryFromReader = function(msg, reade
3771
3772
  var value = /** @type {string} */ (reader.readString());
3772
3773
  msg.setDevice(value);
3773
3774
  break;
3775
+ case 23:
3776
+ var value = /** @type {string} */ (reader.readString());
3777
+ msg.setAffiliateInfo(value);
3778
+ break;
3774
3779
  default:
3775
3780
  reader.skipField();
3776
3781
  break;
@@ -3954,6 +3959,13 @@ proto.user.RegistrationRequest.serializeBinaryToWriter = function(message, write
3954
3959
  f
3955
3960
  );
3956
3961
  }
3962
+ f = /** @type {string} */ (jspb.Message.getField(message, 23));
3963
+ if (f != null) {
3964
+ writer.writeString(
3965
+ 23,
3966
+ f
3967
+ );
3968
+ }
3957
3969
  };
3958
3970
 
3959
3971
 
@@ -4695,6 +4707,42 @@ proto.user.RegistrationRequest.prototype.hasDevice = function() {
4695
4707
  };
4696
4708
 
4697
4709
 
4710
+ /**
4711
+ * optional string affiliate_info = 23;
4712
+ * @return {string}
4713
+ */
4714
+ proto.user.RegistrationRequest.prototype.getAffiliateInfo = function() {
4715
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 23, ""));
4716
+ };
4717
+
4718
+
4719
+ /**
4720
+ * @param {string} value
4721
+ * @return {!proto.user.RegistrationRequest} returns this
4722
+ */
4723
+ proto.user.RegistrationRequest.prototype.setAffiliateInfo = function(value) {
4724
+ return jspb.Message.setField(this, 23, value);
4725
+ };
4726
+
4727
+
4728
+ /**
4729
+ * Clears the field making it undefined.
4730
+ * @return {!proto.user.RegistrationRequest} returns this
4731
+ */
4732
+ proto.user.RegistrationRequest.prototype.clearAffiliateInfo = function() {
4733
+ return jspb.Message.setField(this, 23, undefined);
4734
+ };
4735
+
4736
+
4737
+ /**
4738
+ * Returns whether this field is set.
4739
+ * @return {boolean}
4740
+ */
4741
+ proto.user.RegistrationRequest.prototype.hasAffiliateInfo = function() {
4742
+ return jspb.Message.getField(this, 23) != null;
4743
+ };
4744
+
4745
+
4698
4746
 
4699
4747
 
4700
4748