protobuf-platform 1.2.415 → 1.2.417

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.2.415",
3
+ "version": "1.2.417",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/user/user.proto CHANGED
@@ -229,6 +229,7 @@ message LoginRequest {
229
229
  optional string country = 7;
230
230
  optional string city = 8;
231
231
  optional int32 two_fa = 9;
232
+ optional string nick_name = 10;
232
233
  }
233
234
  message TelegramLoginRequest {
234
235
  string telegram_user_id = 1;
package/user/user_pb.js CHANGED
@@ -7900,7 +7900,8 @@ proto.user.LoginRequest.toObject = function(includeInstance, msg) {
7900
7900
  device: jspb.Message.getFieldWithDefault(msg, 6, ""),
7901
7901
  country: jspb.Message.getFieldWithDefault(msg, 7, ""),
7902
7902
  city: jspb.Message.getFieldWithDefault(msg, 8, ""),
7903
- twoFa: jspb.Message.getFieldWithDefault(msg, 9, 0)
7903
+ twoFa: jspb.Message.getFieldWithDefault(msg, 9, 0),
7904
+ nickName: jspb.Message.getFieldWithDefault(msg, 10, "")
7904
7905
  };
7905
7906
 
7906
7907
  if (includeInstance) {
@@ -7973,6 +7974,10 @@ proto.user.LoginRequest.deserializeBinaryFromReader = function(msg, reader) {
7973
7974
  var value = /** @type {number} */ (reader.readInt32());
7974
7975
  msg.setTwoFa(value);
7975
7976
  break;
7977
+ case 10:
7978
+ var value = /** @type {string} */ (reader.readString());
7979
+ msg.setNickName(value);
7980
+ break;
7976
7981
  default:
7977
7982
  reader.skipField();
7978
7983
  break;
@@ -8065,6 +8070,13 @@ proto.user.LoginRequest.serializeBinaryToWriter = function(message, writer) {
8065
8070
  f
8066
8071
  );
8067
8072
  }
8073
+ f = /** @type {string} */ (jspb.Message.getField(message, 10));
8074
+ if (f != null) {
8075
+ writer.writeString(
8076
+ 10,
8077
+ f
8078
+ );
8079
+ }
8068
8080
  };
8069
8081
 
8070
8082
 
@@ -8374,6 +8386,42 @@ proto.user.LoginRequest.prototype.hasTwoFa = function() {
8374
8386
  };
8375
8387
 
8376
8388
 
8389
+ /**
8390
+ * optional string nick_name = 10;
8391
+ * @return {string}
8392
+ */
8393
+ proto.user.LoginRequest.prototype.getNickName = function() {
8394
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
8395
+ };
8396
+
8397
+
8398
+ /**
8399
+ * @param {string} value
8400
+ * @return {!proto.user.LoginRequest} returns this
8401
+ */
8402
+ proto.user.LoginRequest.prototype.setNickName = function(value) {
8403
+ return jspb.Message.setField(this, 10, value);
8404
+ };
8405
+
8406
+
8407
+ /**
8408
+ * Clears the field making it undefined.
8409
+ * @return {!proto.user.LoginRequest} returns this
8410
+ */
8411
+ proto.user.LoginRequest.prototype.clearNickName = function() {
8412
+ return jspb.Message.setField(this, 10, undefined);
8413
+ };
8414
+
8415
+
8416
+ /**
8417
+ * Returns whether this field is set.
8418
+ * @return {boolean}
8419
+ */
8420
+ proto.user.LoginRequest.prototype.hasNickName = function() {
8421
+ return jspb.Message.getField(this, 10) != null;
8422
+ };
8423
+
8424
+
8377
8425
 
8378
8426
 
8379
8427