protobuf-platform 1.1.75 → 1.1.77

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/game/game.proto CHANGED
@@ -495,6 +495,7 @@ message InitGameSessionRequest {
495
495
  optional string language = 9;
496
496
  optional string user_device = 10;
497
497
  optional int32 user_bonus_id = 11;
498
+ optional string user_session_id = 12;
498
499
  }
499
500
  message InitDemoGameSessionRequest {
500
501
  string game_slug = 1;
package/game/game_pb.js CHANGED
@@ -20468,7 +20468,8 @@ proto.game.InitGameSessionRequest.toObject = function(includeInstance, msg) {
20468
20468
  returnUrl: jspb.Message.getFieldWithDefault(msg, 8, ""),
20469
20469
  language: jspb.Message.getFieldWithDefault(msg, 9, ""),
20470
20470
  userDevice: jspb.Message.getFieldWithDefault(msg, 10, ""),
20471
- userBonusId: jspb.Message.getFieldWithDefault(msg, 11, 0)
20471
+ userBonusId: jspb.Message.getFieldWithDefault(msg, 11, 0),
20472
+ userSessionId: jspb.Message.getFieldWithDefault(msg, 12, "")
20472
20473
  };
20473
20474
 
20474
20475
  if (includeInstance) {
@@ -20549,6 +20550,10 @@ proto.game.InitGameSessionRequest.deserializeBinaryFromReader = function(msg, re
20549
20550
  var value = /** @type {number} */ (reader.readInt32());
20550
20551
  msg.setUserBonusId(value);
20551
20552
  break;
20553
+ case 12:
20554
+ var value = /** @type {string} */ (reader.readString());
20555
+ msg.setUserSessionId(value);
20556
+ break;
20552
20557
  default:
20553
20558
  reader.skipField();
20554
20559
  break;
@@ -20655,6 +20660,13 @@ proto.game.InitGameSessionRequest.serializeBinaryToWriter = function(message, wr
20655
20660
  f
20656
20661
  );
20657
20662
  }
20663
+ f = /** @type {string} */ (jspb.Message.getField(message, 12));
20664
+ if (f != null) {
20665
+ writer.writeString(
20666
+ 12,
20667
+ f
20668
+ );
20669
+ }
20658
20670
  };
20659
20671
 
20660
20672
 
@@ -20946,6 +20958,42 @@ proto.game.InitGameSessionRequest.prototype.hasUserBonusId = function() {
20946
20958
  };
20947
20959
 
20948
20960
 
20961
+ /**
20962
+ * optional string user_session_id = 12;
20963
+ * @return {string}
20964
+ */
20965
+ proto.game.InitGameSessionRequest.prototype.getUserSessionId = function() {
20966
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
20967
+ };
20968
+
20969
+
20970
+ /**
20971
+ * @param {string} value
20972
+ * @return {!proto.game.InitGameSessionRequest} returns this
20973
+ */
20974
+ proto.game.InitGameSessionRequest.prototype.setUserSessionId = function(value) {
20975
+ return jspb.Message.setField(this, 12, value);
20976
+ };
20977
+
20978
+
20979
+ /**
20980
+ * Clears the field making it undefined.
20981
+ * @return {!proto.game.InitGameSessionRequest} returns this
20982
+ */
20983
+ proto.game.InitGameSessionRequest.prototype.clearUserSessionId = function() {
20984
+ return jspb.Message.setField(this, 12, undefined);
20985
+ };
20986
+
20987
+
20988
+ /**
20989
+ * Returns whether this field is set.
20990
+ * @return {boolean}
20991
+ */
20992
+ proto.game.InitGameSessionRequest.prototype.hasUserSessionId = function() {
20993
+ return jspb.Message.getField(this, 12) != null;
20994
+ };
20995
+
20996
+
20949
20997
 
20950
20998
 
20951
20999
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.1.75",
3
+ "version": "1.1.77",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/user/user.proto CHANGED
@@ -119,8 +119,9 @@ message LoggedInResponse {
119
119
  string role = 5;
120
120
  string permissions = 6;
121
121
  string locale = 7;
122
- string first_name = 8;
123
- string last_name = 9;
122
+ optional string first_name = 8;
123
+ optional string last_name = 9;
124
+ optional string session_id = 10;
124
125
  }
125
126
  message LoginRequest {
126
127
  string email = 1;
package/user/user_pb.js CHANGED
@@ -4129,7 +4129,8 @@ proto.user.LoggedInResponse.toObject = function(includeInstance, msg) {
4129
4129
  permissions: jspb.Message.getFieldWithDefault(msg, 6, ""),
4130
4130
  locale: jspb.Message.getFieldWithDefault(msg, 7, ""),
4131
4131
  firstName: jspb.Message.getFieldWithDefault(msg, 8, ""),
4132
- lastName: jspb.Message.getFieldWithDefault(msg, 9, "")
4132
+ lastName: jspb.Message.getFieldWithDefault(msg, 9, ""),
4133
+ sessionId: jspb.Message.getFieldWithDefault(msg, 10, "")
4133
4134
  };
4134
4135
 
4135
4136
  if (includeInstance) {
@@ -4202,6 +4203,10 @@ proto.user.LoggedInResponse.deserializeBinaryFromReader = function(msg, reader)
4202
4203
  var value = /** @type {string} */ (reader.readString());
4203
4204
  msg.setLastName(value);
4204
4205
  break;
4206
+ case 10:
4207
+ var value = /** @type {string} */ (reader.readString());
4208
+ msg.setSessionId(value);
4209
+ break;
4205
4210
  default:
4206
4211
  reader.skipField();
4207
4212
  break;
@@ -4280,20 +4285,27 @@ proto.user.LoggedInResponse.serializeBinaryToWriter = function(message, writer)
4280
4285
  f
4281
4286
  );
4282
4287
  }
4283
- f = message.getFirstName();
4284
- if (f.length > 0) {
4288
+ f = /** @type {string} */ (jspb.Message.getField(message, 8));
4289
+ if (f != null) {
4285
4290
  writer.writeString(
4286
4291
  8,
4287
4292
  f
4288
4293
  );
4289
4294
  }
4290
- f = message.getLastName();
4291
- if (f.length > 0) {
4295
+ f = /** @type {string} */ (jspb.Message.getField(message, 9));
4296
+ if (f != null) {
4292
4297
  writer.writeString(
4293
4298
  9,
4294
4299
  f
4295
4300
  );
4296
4301
  }
4302
+ f = /** @type {string} */ (jspb.Message.getField(message, 10));
4303
+ if (f != null) {
4304
+ writer.writeString(
4305
+ 10,
4306
+ f
4307
+ );
4308
+ }
4297
4309
  };
4298
4310
 
4299
4311
 
@@ -4437,7 +4449,25 @@ proto.user.LoggedInResponse.prototype.getFirstName = function() {
4437
4449
  * @return {!proto.user.LoggedInResponse} returns this
4438
4450
  */
4439
4451
  proto.user.LoggedInResponse.prototype.setFirstName = function(value) {
4440
- return jspb.Message.setProto3StringField(this, 8, value);
4452
+ return jspb.Message.setField(this, 8, value);
4453
+ };
4454
+
4455
+
4456
+ /**
4457
+ * Clears the field making it undefined.
4458
+ * @return {!proto.user.LoggedInResponse} returns this
4459
+ */
4460
+ proto.user.LoggedInResponse.prototype.clearFirstName = function() {
4461
+ return jspb.Message.setField(this, 8, undefined);
4462
+ };
4463
+
4464
+
4465
+ /**
4466
+ * Returns whether this field is set.
4467
+ * @return {boolean}
4468
+ */
4469
+ proto.user.LoggedInResponse.prototype.hasFirstName = function() {
4470
+ return jspb.Message.getField(this, 8) != null;
4441
4471
  };
4442
4472
 
4443
4473
 
@@ -4455,7 +4485,61 @@ proto.user.LoggedInResponse.prototype.getLastName = function() {
4455
4485
  * @return {!proto.user.LoggedInResponse} returns this
4456
4486
  */
4457
4487
  proto.user.LoggedInResponse.prototype.setLastName = function(value) {
4458
- return jspb.Message.setProto3StringField(this, 9, value);
4488
+ return jspb.Message.setField(this, 9, value);
4489
+ };
4490
+
4491
+
4492
+ /**
4493
+ * Clears the field making it undefined.
4494
+ * @return {!proto.user.LoggedInResponse} returns this
4495
+ */
4496
+ proto.user.LoggedInResponse.prototype.clearLastName = function() {
4497
+ return jspb.Message.setField(this, 9, undefined);
4498
+ };
4499
+
4500
+
4501
+ /**
4502
+ * Returns whether this field is set.
4503
+ * @return {boolean}
4504
+ */
4505
+ proto.user.LoggedInResponse.prototype.hasLastName = function() {
4506
+ return jspb.Message.getField(this, 9) != null;
4507
+ };
4508
+
4509
+
4510
+ /**
4511
+ * optional string session_id = 10;
4512
+ * @return {string}
4513
+ */
4514
+ proto.user.LoggedInResponse.prototype.getSessionId = function() {
4515
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
4516
+ };
4517
+
4518
+
4519
+ /**
4520
+ * @param {string} value
4521
+ * @return {!proto.user.LoggedInResponse} returns this
4522
+ */
4523
+ proto.user.LoggedInResponse.prototype.setSessionId = function(value) {
4524
+ return jspb.Message.setField(this, 10, value);
4525
+ };
4526
+
4527
+
4528
+ /**
4529
+ * Clears the field making it undefined.
4530
+ * @return {!proto.user.LoggedInResponse} returns this
4531
+ */
4532
+ proto.user.LoggedInResponse.prototype.clearSessionId = function() {
4533
+ return jspb.Message.setField(this, 10, undefined);
4534
+ };
4535
+
4536
+
4537
+ /**
4538
+ * Returns whether this field is set.
4539
+ * @return {boolean}
4540
+ */
4541
+ proto.user.LoggedInResponse.prototype.hasSessionId = function() {
4542
+ return jspb.Message.getField(this, 10) != null;
4459
4543
  };
4460
4544
 
4461
4545