protobuf-platform 1.1.93 → 1.1.95

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.
@@ -113,6 +113,7 @@ message UserCashbackItem {
113
113
  optional string calculated_date = 10;
114
114
  optional string image = 11;
115
115
  optional string status = 12;
116
+ optional float reward = 13;
116
117
  }
117
118
  message CashbackUserRequest {
118
119
  int32 user_id = 1;
@@ -4574,7 +4574,8 @@ proto.cashback.UserCashbackItem.toObject = function(includeInstance, msg) {
4574
4574
  percentage: jspb.Message.getFloatingPointFieldWithDefault(msg, 9, 0.0),
4575
4575
  calculatedDate: jspb.Message.getFieldWithDefault(msg, 10, ""),
4576
4576
  image: jspb.Message.getFieldWithDefault(msg, 11, ""),
4577
- status: jspb.Message.getFieldWithDefault(msg, 12, "")
4577
+ status: jspb.Message.getFieldWithDefault(msg, 12, ""),
4578
+ reward: jspb.Message.getFloatingPointFieldWithDefault(msg, 13, 0.0)
4578
4579
  };
4579
4580
 
4580
4581
  if (includeInstance) {
@@ -4659,6 +4660,10 @@ proto.cashback.UserCashbackItem.deserializeBinaryFromReader = function(msg, read
4659
4660
  var value = /** @type {string} */ (reader.readString());
4660
4661
  msg.setStatus(value);
4661
4662
  break;
4663
+ case 13:
4664
+ var value = /** @type {number} */ (reader.readFloat());
4665
+ msg.setReward(value);
4666
+ break;
4662
4667
  default:
4663
4668
  reader.skipField();
4664
4669
  break;
@@ -4772,6 +4777,13 @@ proto.cashback.UserCashbackItem.serializeBinaryToWriter = function(message, writ
4772
4777
  f
4773
4778
  );
4774
4779
  }
4780
+ f = /** @type {number} */ (jspb.Message.getField(message, 13));
4781
+ if (f != null) {
4782
+ writer.writeFloat(
4783
+ 13,
4784
+ f
4785
+ );
4786
+ }
4775
4787
  };
4776
4788
 
4777
4789
 
@@ -5099,6 +5111,42 @@ proto.cashback.UserCashbackItem.prototype.hasStatus = function() {
5099
5111
  };
5100
5112
 
5101
5113
 
5114
+ /**
5115
+ * optional float reward = 13;
5116
+ * @return {number}
5117
+ */
5118
+ proto.cashback.UserCashbackItem.prototype.getReward = function() {
5119
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 13, 0.0));
5120
+ };
5121
+
5122
+
5123
+ /**
5124
+ * @param {number} value
5125
+ * @return {!proto.cashback.UserCashbackItem} returns this
5126
+ */
5127
+ proto.cashback.UserCashbackItem.prototype.setReward = function(value) {
5128
+ return jspb.Message.setField(this, 13, value);
5129
+ };
5130
+
5131
+
5132
+ /**
5133
+ * Clears the field making it undefined.
5134
+ * @return {!proto.cashback.UserCashbackItem} returns this
5135
+ */
5136
+ proto.cashback.UserCashbackItem.prototype.clearReward = function() {
5137
+ return jspb.Message.setField(this, 13, undefined);
5138
+ };
5139
+
5140
+
5141
+ /**
5142
+ * Returns whether this field is set.
5143
+ * @return {boolean}
5144
+ */
5145
+ proto.cashback.UserCashbackItem.prototype.hasReward = function() {
5146
+ return jspb.Message.getField(this, 13) != null;
5147
+ };
5148
+
5149
+
5102
5150
 
5103
5151
 
5104
5152
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.1.93",
3
+ "version": "1.1.95",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/user/user.proto CHANGED
@@ -264,6 +264,7 @@ message SegmentResponse {
264
264
  repeated SegmentBetRuleItem bet_rules = 8;
265
265
  repeated SegmentSessionRuleItem session_rules = 9;
266
266
  repeated SegmentGameRuleItem game_rules = 10;
267
+ repeated SegmentPlatformRuleItem platform_rules = 11;
267
268
  }
268
269
  message SegmentStatusResponse {
269
270
  string status = 1;
package/user/user_pb.js CHANGED
@@ -10661,7 +10661,7 @@ proto.user.GetSegmentRequest.prototype.hasGeo = function() {
10661
10661
  * @private {!Array<number>}
10662
10662
  * @const
10663
10663
  */
10664
- proto.user.SegmentResponse.repeatedFields_ = [7,8,9,10];
10664
+ proto.user.SegmentResponse.repeatedFields_ = [7,8,9,10,11];
10665
10665
 
10666
10666
 
10667
10667
 
@@ -10707,7 +10707,9 @@ proto.user.SegmentResponse.toObject = function(includeInstance, msg) {
10707
10707
  sessionRulesList: jspb.Message.toObjectList(msg.getSessionRulesList(),
10708
10708
  proto.user.SegmentSessionRuleItem.toObject, includeInstance),
10709
10709
  gameRulesList: jspb.Message.toObjectList(msg.getGameRulesList(),
10710
- proto.user.SegmentGameRuleItem.toObject, includeInstance)
10710
+ proto.user.SegmentGameRuleItem.toObject, includeInstance),
10711
+ platformRulesList: jspb.Message.toObjectList(msg.getPlatformRulesList(),
10712
+ proto.user.SegmentPlatformRuleItem.toObject, includeInstance)
10711
10713
  };
10712
10714
 
10713
10715
  if (includeInstance) {
@@ -10788,6 +10790,11 @@ proto.user.SegmentResponse.deserializeBinaryFromReader = function(msg, reader) {
10788
10790
  reader.readMessage(value,proto.user.SegmentGameRuleItem.deserializeBinaryFromReader);
10789
10791
  msg.addGameRules(value);
10790
10792
  break;
10793
+ case 11:
10794
+ var value = new proto.user.SegmentPlatformRuleItem;
10795
+ reader.readMessage(value,proto.user.SegmentPlatformRuleItem.deserializeBinaryFromReader);
10796
+ msg.addPlatformRules(value);
10797
+ break;
10791
10798
  default:
10792
10799
  reader.skipField();
10793
10800
  break;
@@ -10891,6 +10898,14 @@ proto.user.SegmentResponse.serializeBinaryToWriter = function(message, writer) {
10891
10898
  proto.user.SegmentGameRuleItem.serializeBinaryToWriter
10892
10899
  );
10893
10900
  }
10901
+ f = message.getPlatformRulesList();
10902
+ if (f.length > 0) {
10903
+ writer.writeRepeatedMessage(
10904
+ 11,
10905
+ f,
10906
+ proto.user.SegmentPlatformRuleItem.serializeBinaryToWriter
10907
+ );
10908
+ }
10894
10909
  };
10895
10910
 
10896
10911
 
@@ -11262,6 +11277,44 @@ proto.user.SegmentResponse.prototype.clearGameRulesList = function() {
11262
11277
  };
11263
11278
 
11264
11279
 
11280
+ /**
11281
+ * repeated SegmentPlatformRuleItem platform_rules = 11;
11282
+ * @return {!Array<!proto.user.SegmentPlatformRuleItem>}
11283
+ */
11284
+ proto.user.SegmentResponse.prototype.getPlatformRulesList = function() {
11285
+ return /** @type{!Array<!proto.user.SegmentPlatformRuleItem>} */ (
11286
+ jspb.Message.getRepeatedWrapperField(this, proto.user.SegmentPlatformRuleItem, 11));
11287
+ };
11288
+
11289
+
11290
+ /**
11291
+ * @param {!Array<!proto.user.SegmentPlatformRuleItem>} value
11292
+ * @return {!proto.user.SegmentResponse} returns this
11293
+ */
11294
+ proto.user.SegmentResponse.prototype.setPlatformRulesList = function(value) {
11295
+ return jspb.Message.setRepeatedWrapperField(this, 11, value);
11296
+ };
11297
+
11298
+
11299
+ /**
11300
+ * @param {!proto.user.SegmentPlatformRuleItem=} opt_value
11301
+ * @param {number=} opt_index
11302
+ * @return {!proto.user.SegmentPlatformRuleItem}
11303
+ */
11304
+ proto.user.SegmentResponse.prototype.addPlatformRules = function(opt_value, opt_index) {
11305
+ return jspb.Message.addToRepeatedWrapperField(this, 11, opt_value, proto.user.SegmentPlatformRuleItem, opt_index);
11306
+ };
11307
+
11308
+
11309
+ /**
11310
+ * Clears the list making it empty but non-null.
11311
+ * @return {!proto.user.SegmentResponse} returns this
11312
+ */
11313
+ proto.user.SegmentResponse.prototype.clearPlatformRulesList = function() {
11314
+ return this.setPlatformRulesList([]);
11315
+ };
11316
+
11317
+
11265
11318
 
11266
11319
 
11267
11320