protobuf-platform 1.0.128 → 1.0.129
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/package.json +1 -1
- package/user/user.proto +1 -0
- package/user/user_pb.js +49 -1
package/package.json
CHANGED
package/user/user.proto
CHANGED
package/user/user_pb.js
CHANGED
@@ -1385,7 +1385,8 @@ proto.user.RegistrationRequest.toObject = function(includeInstance, msg) {
|
|
1385
1385
|
birthday: jspb.Message.getFieldWithDefault(msg, 9, ""),
|
1386
1386
|
locale: jspb.Message.getFieldWithDefault(msg, 10, ""),
|
1387
1387
|
emailSubscription: jspb.Message.getBooleanFieldWithDefault(msg, 11, false),
|
1388
|
-
affiliateId: jspb.Message.getFieldWithDefault(msg, 12, 0)
|
1388
|
+
affiliateId: jspb.Message.getFieldWithDefault(msg, 12, 0),
|
1389
|
+
promoCode: jspb.Message.getFieldWithDefault(msg, 13, "")
|
1389
1390
|
};
|
1390
1391
|
|
1391
1392
|
if (includeInstance) {
|
@@ -1470,6 +1471,10 @@ proto.user.RegistrationRequest.deserializeBinaryFromReader = function(msg, reade
|
|
1470
1471
|
var value = /** @type {number} */ (reader.readInt32());
|
1471
1472
|
msg.setAffiliateId(value);
|
1472
1473
|
break;
|
1474
|
+
case 13:
|
1475
|
+
var value = /** @type {string} */ (reader.readString());
|
1476
|
+
msg.setPromoCode(value);
|
1477
|
+
break;
|
1473
1478
|
default:
|
1474
1479
|
reader.skipField();
|
1475
1480
|
break;
|
@@ -1583,6 +1588,13 @@ proto.user.RegistrationRequest.serializeBinaryToWriter = function(message, write
|
|
1583
1588
|
f
|
1584
1589
|
);
|
1585
1590
|
}
|
1591
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 13));
|
1592
|
+
if (f != null) {
|
1593
|
+
writer.writeString(
|
1594
|
+
13,
|
1595
|
+
f
|
1596
|
+
);
|
1597
|
+
}
|
1586
1598
|
};
|
1587
1599
|
|
1588
1600
|
|
@@ -1964,6 +1976,42 @@ proto.user.RegistrationRequest.prototype.hasAffiliateId = function() {
|
|
1964
1976
|
};
|
1965
1977
|
|
1966
1978
|
|
1979
|
+
/**
|
1980
|
+
* optional string promo_code = 13;
|
1981
|
+
* @return {string}
|
1982
|
+
*/
|
1983
|
+
proto.user.RegistrationRequest.prototype.getPromoCode = function() {
|
1984
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
|
1985
|
+
};
|
1986
|
+
|
1987
|
+
|
1988
|
+
/**
|
1989
|
+
* @param {string} value
|
1990
|
+
* @return {!proto.user.RegistrationRequest} returns this
|
1991
|
+
*/
|
1992
|
+
proto.user.RegistrationRequest.prototype.setPromoCode = function(value) {
|
1993
|
+
return jspb.Message.setField(this, 13, value);
|
1994
|
+
};
|
1995
|
+
|
1996
|
+
|
1997
|
+
/**
|
1998
|
+
* Clears the field making it undefined.
|
1999
|
+
* @return {!proto.user.RegistrationRequest} returns this
|
2000
|
+
*/
|
2001
|
+
proto.user.RegistrationRequest.prototype.clearPromoCode = function() {
|
2002
|
+
return jspb.Message.setField(this, 13, undefined);
|
2003
|
+
};
|
2004
|
+
|
2005
|
+
|
2006
|
+
/**
|
2007
|
+
* Returns whether this field is set.
|
2008
|
+
* @return {boolean}
|
2009
|
+
*/
|
2010
|
+
proto.user.RegistrationRequest.prototype.hasPromoCode = function() {
|
2011
|
+
return jspb.Message.getField(this, 13) != null;
|
2012
|
+
};
|
2013
|
+
|
2014
|
+
|
1967
2015
|
|
1968
2016
|
|
1969
2017
|
|