protobuf-platform 1.1.20 → 1.1.21

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.1.20",
3
+ "version": "1.1.21",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/user/user.proto CHANGED
@@ -188,6 +188,7 @@ message UserDataResponse {
188
188
  optional int32 kyc_confirmed = 31;
189
189
  optional int32 ranking_points = 32;
190
190
  optional int32 coins = 33;
191
+ optional string nickname = 34;
191
192
  }
192
193
  message UsersResponse {
193
194
  repeated UserDataResponse items = 1;
package/user/user_pb.js CHANGED
@@ -6077,7 +6077,8 @@ proto.user.UserDataResponse.toObject = function(includeInstance, msg) {
6077
6077
  phoneConfirmed: jspb.Message.getFieldWithDefault(msg, 30, 0),
6078
6078
  kycConfirmed: jspb.Message.getFieldWithDefault(msg, 31, 0),
6079
6079
  rankingPoints: jspb.Message.getFieldWithDefault(msg, 32, 0),
6080
- coins: jspb.Message.getFieldWithDefault(msg, 33, 0)
6080
+ coins: jspb.Message.getFieldWithDefault(msg, 33, 0),
6081
+ nickname: jspb.Message.getFieldWithDefault(msg, 34, "")
6081
6082
  };
6082
6083
 
6083
6084
  if (includeInstance) {
@@ -6247,6 +6248,10 @@ proto.user.UserDataResponse.deserializeBinaryFromReader = function(msg, reader)
6247
6248
  var value = /** @type {number} */ (reader.readInt32());
6248
6249
  msg.setCoins(value);
6249
6250
  break;
6251
+ case 34:
6252
+ var value = /** @type {string} */ (reader.readString());
6253
+ msg.setNickname(value);
6254
+ break;
6250
6255
  default:
6251
6256
  reader.skipField();
6252
6257
  break;
@@ -6508,6 +6513,13 @@ proto.user.UserDataResponse.serializeBinaryToWriter = function(message, writer)
6508
6513
  f
6509
6514
  );
6510
6515
  }
6516
+ f = /** @type {string} */ (jspb.Message.getField(message, 34));
6517
+ if (f != null) {
6518
+ writer.writeString(
6519
+ 34,
6520
+ f
6521
+ );
6522
+ }
6511
6523
  };
6512
6524
 
6513
6525
 
@@ -7664,6 +7676,42 @@ proto.user.UserDataResponse.prototype.hasCoins = function() {
7664
7676
  };
7665
7677
 
7666
7678
 
7679
+ /**
7680
+ * optional string nickname = 34;
7681
+ * @return {string}
7682
+ */
7683
+ proto.user.UserDataResponse.prototype.getNickname = function() {
7684
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 34, ""));
7685
+ };
7686
+
7687
+
7688
+ /**
7689
+ * @param {string} value
7690
+ * @return {!proto.user.UserDataResponse} returns this
7691
+ */
7692
+ proto.user.UserDataResponse.prototype.setNickname = function(value) {
7693
+ return jspb.Message.setField(this, 34, value);
7694
+ };
7695
+
7696
+
7697
+ /**
7698
+ * Clears the field making it undefined.
7699
+ * @return {!proto.user.UserDataResponse} returns this
7700
+ */
7701
+ proto.user.UserDataResponse.prototype.clearNickname = function() {
7702
+ return jspb.Message.setField(this, 34, undefined);
7703
+ };
7704
+
7705
+
7706
+ /**
7707
+ * Returns whether this field is set.
7708
+ * @return {boolean}
7709
+ */
7710
+ proto.user.UserDataResponse.prototype.hasNickname = function() {
7711
+ return jspb.Message.getField(this, 34) != null;
7712
+ };
7713
+
7714
+
7667
7715
 
7668
7716
  /**
7669
7717
  * List of repeated fields within this message type.