protobuf-platform 1.0.18 → 1.0.19

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.0.18",
3
+ "version": "1.0.19",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/user/user.proto CHANGED
@@ -37,7 +37,7 @@ message LoginRequest {
37
37
  optional int32 is_admin = 5;
38
38
  }
39
39
  message UserDataRequest {
40
- int32 id = 1;
40
+ string public_id = 1;
41
41
  }
42
42
  message UserDataResponse {
43
43
  int32 id = 1;
package/user/user_pb.js CHANGED
@@ -1337,7 +1337,7 @@ proto.user.UserDataRequest.prototype.toObject = function(opt_includeInstance) {
1337
1337
  */
1338
1338
  proto.user.UserDataRequest.toObject = function(includeInstance, msg) {
1339
1339
  var f, obj = {
1340
- id: jspb.Message.getFieldWithDefault(msg, 1, 0)
1340
+ publicId: jspb.Message.getFieldWithDefault(msg, 1, "")
1341
1341
  };
1342
1342
 
1343
1343
  if (includeInstance) {
@@ -1375,8 +1375,8 @@ proto.user.UserDataRequest.deserializeBinaryFromReader = function(msg, reader) {
1375
1375
  var field = reader.getFieldNumber();
1376
1376
  switch (field) {
1377
1377
  case 1:
1378
- var value = /** @type {number} */ (reader.readInt32());
1379
- msg.setId(value);
1378
+ var value = /** @type {string} */ (reader.readString());
1379
+ msg.setPublicId(value);
1380
1380
  break;
1381
1381
  default:
1382
1382
  reader.skipField();
@@ -1407,9 +1407,9 @@ proto.user.UserDataRequest.prototype.serializeBinary = function() {
1407
1407
  */
1408
1408
  proto.user.UserDataRequest.serializeBinaryToWriter = function(message, writer) {
1409
1409
  var f = undefined;
1410
- f = message.getId();
1411
- if (f !== 0) {
1412
- writer.writeInt32(
1410
+ f = message.getPublicId();
1411
+ if (f.length > 0) {
1412
+ writer.writeString(
1413
1413
  1,
1414
1414
  f
1415
1415
  );
@@ -1418,20 +1418,20 @@ proto.user.UserDataRequest.serializeBinaryToWriter = function(message, writer) {
1418
1418
 
1419
1419
 
1420
1420
  /**
1421
- * optional int32 id = 1;
1422
- * @return {number}
1421
+ * optional string public_id = 1;
1422
+ * @return {string}
1423
1423
  */
1424
- proto.user.UserDataRequest.prototype.getId = function() {
1425
- return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
1424
+ proto.user.UserDataRequest.prototype.getPublicId = function() {
1425
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1426
1426
  };
1427
1427
 
1428
1428
 
1429
1429
  /**
1430
- * @param {number} value
1430
+ * @param {string} value
1431
1431
  * @return {!proto.user.UserDataRequest} returns this
1432
1432
  */
1433
- proto.user.UserDataRequest.prototype.setId = function(value) {
1434
- return jspb.Message.setProto3IntField(this, 1, value);
1433
+ proto.user.UserDataRequest.prototype.setPublicId = function(value) {
1434
+ return jspb.Message.setProto3StringField(this, 1, value);
1435
1435
  };
1436
1436
 
1437
1437