protobuf-platform 1.0.109 → 1.0.110

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.109",
3
+ "version": "1.0.110",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/user/user.proto CHANGED
@@ -58,7 +58,7 @@ message LoginRequest {
58
58
  optional int32 is_admin = 5;
59
59
  }
60
60
  message UserDataRequest {
61
- string public_id = 1;
61
+ int32 id = 1;
62
62
  optional string requested_area = 2;
63
63
  }
64
64
  message UserDataResponse {
package/user/user_pb.js CHANGED
@@ -2161,7 +2161,7 @@ proto.user.UserDataRequest.prototype.toObject = function(opt_includeInstance) {
2161
2161
  */
2162
2162
  proto.user.UserDataRequest.toObject = function(includeInstance, msg) {
2163
2163
  var f, obj = {
2164
- publicId: jspb.Message.getFieldWithDefault(msg, 1, ""),
2164
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
2165
2165
  requestedArea: jspb.Message.getFieldWithDefault(msg, 2, "")
2166
2166
  };
2167
2167
 
@@ -2200,8 +2200,8 @@ proto.user.UserDataRequest.deserializeBinaryFromReader = function(msg, reader) {
2200
2200
  var field = reader.getFieldNumber();
2201
2201
  switch (field) {
2202
2202
  case 1:
2203
- var value = /** @type {string} */ (reader.readString());
2204
- msg.setPublicId(value);
2203
+ var value = /** @type {number} */ (reader.readInt32());
2204
+ msg.setId(value);
2205
2205
  break;
2206
2206
  case 2:
2207
2207
  var value = /** @type {string} */ (reader.readString());
@@ -2236,9 +2236,9 @@ proto.user.UserDataRequest.prototype.serializeBinary = function() {
2236
2236
  */
2237
2237
  proto.user.UserDataRequest.serializeBinaryToWriter = function(message, writer) {
2238
2238
  var f = undefined;
2239
- f = message.getPublicId();
2240
- if (f.length > 0) {
2241
- writer.writeString(
2239
+ f = message.getId();
2240
+ if (f !== 0) {
2241
+ writer.writeInt32(
2242
2242
  1,
2243
2243
  f
2244
2244
  );
@@ -2254,20 +2254,20 @@ proto.user.UserDataRequest.serializeBinaryToWriter = function(message, writer) {
2254
2254
 
2255
2255
 
2256
2256
  /**
2257
- * optional string public_id = 1;
2258
- * @return {string}
2257
+ * optional int32 id = 1;
2258
+ * @return {number}
2259
2259
  */
2260
- proto.user.UserDataRequest.prototype.getPublicId = function() {
2261
- return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2260
+ proto.user.UserDataRequest.prototype.getId = function() {
2261
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
2262
2262
  };
2263
2263
 
2264
2264
 
2265
2265
  /**
2266
- * @param {string} value
2266
+ * @param {number} value
2267
2267
  * @return {!proto.user.UserDataRequest} returns this
2268
2268
  */
2269
- proto.user.UserDataRequest.prototype.setPublicId = function(value) {
2270
- return jspb.Message.setProto3StringField(this, 1, value);
2269
+ proto.user.UserDataRequest.prototype.setId = function(value) {
2270
+ return jspb.Message.setProto3IntField(this, 1, value);
2271
2271
  };
2272
2272
 
2273
2273