protobuf-platform 1.2.1 → 1.2.2

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.1",
3
+ "version": "1.2.2",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/user/user.proto CHANGED
@@ -209,6 +209,7 @@ message UserDataResponse {
209
209
  optional int32 ranking_points = 32;
210
210
  optional int32 coins = 33;
211
211
  optional string nickname = 34;
212
+ optional string cookies = 35;
212
213
  }
213
214
  message UsersResponse {
214
215
  repeated UserDataResponse items = 1;
package/user/user_pb.js CHANGED
@@ -6980,7 +6980,8 @@ proto.user.UserDataResponse.toObject = function(includeInstance, msg) {
6980
6980
  kycConfirmed: jspb.Message.getFieldWithDefault(msg, 31, 0),
6981
6981
  rankingPoints: jspb.Message.getFieldWithDefault(msg, 32, 0),
6982
6982
  coins: jspb.Message.getFieldWithDefault(msg, 33, 0),
6983
- nickname: jspb.Message.getFieldWithDefault(msg, 34, "")
6983
+ nickname: jspb.Message.getFieldWithDefault(msg, 34, ""),
6984
+ cookies: jspb.Message.getFieldWithDefault(msg, 35, "")
6984
6985
  };
6985
6986
 
6986
6987
  if (includeInstance) {
@@ -7154,6 +7155,10 @@ proto.user.UserDataResponse.deserializeBinaryFromReader = function(msg, reader)
7154
7155
  var value = /** @type {string} */ (reader.readString());
7155
7156
  msg.setNickname(value);
7156
7157
  break;
7158
+ case 35:
7159
+ var value = /** @type {string} */ (reader.readString());
7160
+ msg.setCookies(value);
7161
+ break;
7157
7162
  default:
7158
7163
  reader.skipField();
7159
7164
  break;
@@ -7422,6 +7427,13 @@ proto.user.UserDataResponse.serializeBinaryToWriter = function(message, writer)
7422
7427
  f
7423
7428
  );
7424
7429
  }
7430
+ f = /** @type {string} */ (jspb.Message.getField(message, 35));
7431
+ if (f != null) {
7432
+ writer.writeString(
7433
+ 35,
7434
+ f
7435
+ );
7436
+ }
7425
7437
  };
7426
7438
 
7427
7439
 
@@ -8614,6 +8626,42 @@ proto.user.UserDataResponse.prototype.hasNickname = function() {
8614
8626
  };
8615
8627
 
8616
8628
 
8629
+ /**
8630
+ * optional string cookies = 35;
8631
+ * @return {string}
8632
+ */
8633
+ proto.user.UserDataResponse.prototype.getCookies = function() {
8634
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 35, ""));
8635
+ };
8636
+
8637
+
8638
+ /**
8639
+ * @param {string} value
8640
+ * @return {!proto.user.UserDataResponse} returns this
8641
+ */
8642
+ proto.user.UserDataResponse.prototype.setCookies = function(value) {
8643
+ return jspb.Message.setField(this, 35, value);
8644
+ };
8645
+
8646
+
8647
+ /**
8648
+ * Clears the field making it undefined.
8649
+ * @return {!proto.user.UserDataResponse} returns this
8650
+ */
8651
+ proto.user.UserDataResponse.prototype.clearCookies = function() {
8652
+ return jspb.Message.setField(this, 35, undefined);
8653
+ };
8654
+
8655
+
8656
+ /**
8657
+ * Returns whether this field is set.
8658
+ * @return {boolean}
8659
+ */
8660
+ proto.user.UserDataResponse.prototype.hasCookies = function() {
8661
+ return jspb.Message.getField(this, 35) != null;
8662
+ };
8663
+
8664
+
8617
8665
 
8618
8666
  /**
8619
8667
  * List of repeated fields within this message type.