protobuf-platform 1.1.74 → 1.1.76

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/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