protobuf-platform 1.2.17 → 1.2.18

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.17",
3
+ "version": "1.2.18",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/user/user.proto CHANGED
@@ -227,6 +227,7 @@ message UserActionRequest {
227
227
  int32 user_id = 1;
228
228
  float action_amount = 2;
229
229
  optional string balance_type = 3;
230
+ optional string action_type = 4;
230
231
  }
231
232
  message UserActionResponse {
232
233
  string status = 1;
package/user/user_pb.js CHANGED
@@ -9222,7 +9222,8 @@ proto.user.UserActionRequest.toObject = function(includeInstance, msg) {
9222
9222
  var f, obj = {
9223
9223
  userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
9224
9224
  actionAmount: jspb.Message.getFloatingPointFieldWithDefault(msg, 2, 0.0),
9225
- balanceType: jspb.Message.getFieldWithDefault(msg, 3, "")
9225
+ balanceType: jspb.Message.getFieldWithDefault(msg, 3, ""),
9226
+ actionType: jspb.Message.getFieldWithDefault(msg, 4, "")
9226
9227
  };
9227
9228
 
9228
9229
  if (includeInstance) {
@@ -9271,6 +9272,10 @@ proto.user.UserActionRequest.deserializeBinaryFromReader = function(msg, reader)
9271
9272
  var value = /** @type {string} */ (reader.readString());
9272
9273
  msg.setBalanceType(value);
9273
9274
  break;
9275
+ case 4:
9276
+ var value = /** @type {string} */ (reader.readString());
9277
+ msg.setActionType(value);
9278
+ break;
9274
9279
  default:
9275
9280
  reader.skipField();
9276
9281
  break;
@@ -9321,6 +9326,13 @@ proto.user.UserActionRequest.serializeBinaryToWriter = function(message, writer)
9321
9326
  f
9322
9327
  );
9323
9328
  }
9329
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
9330
+ if (f != null) {
9331
+ writer.writeString(
9332
+ 4,
9333
+ f
9334
+ );
9335
+ }
9324
9336
  };
9325
9337
 
9326
9338
 
@@ -9396,6 +9408,42 @@ proto.user.UserActionRequest.prototype.hasBalanceType = function() {
9396
9408
  };
9397
9409
 
9398
9410
 
9411
+ /**
9412
+ * optional string action_type = 4;
9413
+ * @return {string}
9414
+ */
9415
+ proto.user.UserActionRequest.prototype.getActionType = function() {
9416
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
9417
+ };
9418
+
9419
+
9420
+ /**
9421
+ * @param {string} value
9422
+ * @return {!proto.user.UserActionRequest} returns this
9423
+ */
9424
+ proto.user.UserActionRequest.prototype.setActionType = function(value) {
9425
+ return jspb.Message.setField(this, 4, value);
9426
+ };
9427
+
9428
+
9429
+ /**
9430
+ * Clears the field making it undefined.
9431
+ * @return {!proto.user.UserActionRequest} returns this
9432
+ */
9433
+ proto.user.UserActionRequest.prototype.clearActionType = function() {
9434
+ return jspb.Message.setField(this, 4, undefined);
9435
+ };
9436
+
9437
+
9438
+ /**
9439
+ * Returns whether this field is set.
9440
+ * @return {boolean}
9441
+ */
9442
+ proto.user.UserActionRequest.prototype.hasActionType = function() {
9443
+ return jspb.Message.getField(this, 4) != null;
9444
+ };
9445
+
9446
+
9399
9447
 
9400
9448
 
9401
9449