protobuf-platform 1.2.147 → 1.2.149

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/game/game.proto CHANGED
@@ -151,6 +151,7 @@ message WagerSearchRequest {
151
151
  optional string geo = 4;
152
152
  optional bool is_mobile = 5;
153
153
  optional bool admin_side = 6;
154
+ optional int32 is_active = 7;
154
155
  }
155
156
  message CashBackSearchRequest {
156
157
  optional int32 cashback_id = 1;
package/game/game_pb.js CHANGED
@@ -4257,7 +4257,8 @@ proto.game.WagerSearchRequest.toObject = function(includeInstance, msg) {
4257
4257
  wagerIdsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
4258
4258
  geo: jspb.Message.getFieldWithDefault(msg, 4, ""),
4259
4259
  isMobile: jspb.Message.getBooleanFieldWithDefault(msg, 5, false),
4260
- adminSide: jspb.Message.getBooleanFieldWithDefault(msg, 6, false)
4260
+ adminSide: jspb.Message.getBooleanFieldWithDefault(msg, 6, false),
4261
+ isActive: jspb.Message.getFieldWithDefault(msg, 7, 0)
4261
4262
  };
4262
4263
 
4263
4264
  if (includeInstance) {
@@ -4320,6 +4321,10 @@ proto.game.WagerSearchRequest.deserializeBinaryFromReader = function(msg, reader
4320
4321
  var value = /** @type {boolean} */ (reader.readBool());
4321
4322
  msg.setAdminSide(value);
4322
4323
  break;
4324
+ case 7:
4325
+ var value = /** @type {number} */ (reader.readInt32());
4326
+ msg.setIsActive(value);
4327
+ break;
4323
4328
  default:
4324
4329
  reader.skipField();
4325
4330
  break;
@@ -4391,6 +4396,13 @@ proto.game.WagerSearchRequest.serializeBinaryToWriter = function(message, writer
4391
4396
  f
4392
4397
  );
4393
4398
  }
4399
+ f = /** @type {number} */ (jspb.Message.getField(message, 7));
4400
+ if (f != null) {
4401
+ writer.writeInt32(
4402
+ 7,
4403
+ f
4404
+ );
4405
+ }
4394
4406
  };
4395
4407
 
4396
4408
 
@@ -4611,6 +4623,42 @@ proto.game.WagerSearchRequest.prototype.hasAdminSide = function() {
4611
4623
  };
4612
4624
 
4613
4625
 
4626
+ /**
4627
+ * optional int32 is_active = 7;
4628
+ * @return {number}
4629
+ */
4630
+ proto.game.WagerSearchRequest.prototype.getIsActive = function() {
4631
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
4632
+ };
4633
+
4634
+
4635
+ /**
4636
+ * @param {number} value
4637
+ * @return {!proto.game.WagerSearchRequest} returns this
4638
+ */
4639
+ proto.game.WagerSearchRequest.prototype.setIsActive = function(value) {
4640
+ return jspb.Message.setField(this, 7, value);
4641
+ };
4642
+
4643
+
4644
+ /**
4645
+ * Clears the field making it undefined.
4646
+ * @return {!proto.game.WagerSearchRequest} returns this
4647
+ */
4648
+ proto.game.WagerSearchRequest.prototype.clearIsActive = function() {
4649
+ return jspb.Message.setField(this, 7, undefined);
4650
+ };
4651
+
4652
+
4653
+ /**
4654
+ * Returns whether this field is set.
4655
+ * @return {boolean}
4656
+ */
4657
+ proto.game.WagerSearchRequest.prototype.hasIsActive = function() {
4658
+ return jspb.Message.getField(this, 7) != null;
4659
+ };
4660
+
4661
+
4614
4662
 
4615
4663
  /**
4616
4664
  * List of repeated fields within this message type.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.147",
3
+ "version": "1.2.149",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/user/user.proto CHANGED
@@ -99,6 +99,7 @@ message SegmentSearchParams {
99
99
  optional string currency = 4;
100
100
  optional int32 is_active = 5;
101
101
  optional string title = 6;
102
+ repeated int32 segment_ids = 7;
102
103
  }
103
104
  message NoteSearchParams {
104
105
  optional int32 user_id = 2;
package/user/user_pb.js CHANGED
@@ -211,7 +211,7 @@ if (goog.DEBUG && !COMPILED) {
211
211
  * @constructor
212
212
  */
213
213
  proto.user.SegmentSearchParams = function(opt_data) {
214
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
214
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.user.SegmentSearchParams.repeatedFields_, null);
215
215
  };
216
216
  goog.inherits(proto.user.SegmentSearchParams, jspb.Message);
217
217
  if (goog.DEBUG && !COMPILED) {
@@ -3102,6 +3102,13 @@ proto.user.UserSearchParams.prototype.hasRegistrationTo = function() {
3102
3102
 
3103
3103
 
3104
3104
 
3105
+ /**
3106
+ * List of repeated fields within this message type.
3107
+ * @private {!Array<number>}
3108
+ * @const
3109
+ */
3110
+ proto.user.SegmentSearchParams.repeatedFields_ = [7];
3111
+
3105
3112
 
3106
3113
 
3107
3114
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -3138,7 +3145,8 @@ proto.user.SegmentSearchParams.toObject = function(includeInstance, msg) {
3138
3145
  segmentId: jspb.Message.getFieldWithDefault(msg, 3, 0),
3139
3146
  currency: jspb.Message.getFieldWithDefault(msg, 4, ""),
3140
3147
  isActive: jspb.Message.getFieldWithDefault(msg, 5, 0),
3141
- title: jspb.Message.getFieldWithDefault(msg, 6, "")
3148
+ title: jspb.Message.getFieldWithDefault(msg, 6, ""),
3149
+ segmentIdsList: (f = jspb.Message.getRepeatedField(msg, 7)) == null ? undefined : f
3142
3150
  };
3143
3151
 
3144
3152
  if (includeInstance) {
@@ -3199,6 +3207,12 @@ proto.user.SegmentSearchParams.deserializeBinaryFromReader = function(msg, reade
3199
3207
  var value = /** @type {string} */ (reader.readString());
3200
3208
  msg.setTitle(value);
3201
3209
  break;
3210
+ case 7:
3211
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
3212
+ for (var i = 0; i < values.length; i++) {
3213
+ msg.addSegmentIds(values[i]);
3214
+ }
3215
+ break;
3202
3216
  default:
3203
3217
  reader.skipField();
3204
3218
  break;
@@ -3270,6 +3284,13 @@ proto.user.SegmentSearchParams.serializeBinaryToWriter = function(message, write
3270
3284
  f
3271
3285
  );
3272
3286
  }
3287
+ f = message.getSegmentIdsList();
3288
+ if (f.length > 0) {
3289
+ writer.writePackedInt32(
3290
+ 7,
3291
+ f
3292
+ );
3293
+ }
3273
3294
  };
3274
3295
 
3275
3296
 
@@ -3489,6 +3510,43 @@ proto.user.SegmentSearchParams.prototype.hasTitle = function() {
3489
3510
  };
3490
3511
 
3491
3512
 
3513
+ /**
3514
+ * repeated int32 segment_ids = 7;
3515
+ * @return {!Array<number>}
3516
+ */
3517
+ proto.user.SegmentSearchParams.prototype.getSegmentIdsList = function() {
3518
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 7));
3519
+ };
3520
+
3521
+
3522
+ /**
3523
+ * @param {!Array<number>} value
3524
+ * @return {!proto.user.SegmentSearchParams} returns this
3525
+ */
3526
+ proto.user.SegmentSearchParams.prototype.setSegmentIdsList = function(value) {
3527
+ return jspb.Message.setField(this, 7, value || []);
3528
+ };
3529
+
3530
+
3531
+ /**
3532
+ * @param {number} value
3533
+ * @param {number=} opt_index
3534
+ * @return {!proto.user.SegmentSearchParams} returns this
3535
+ */
3536
+ proto.user.SegmentSearchParams.prototype.addSegmentIds = function(value, opt_index) {
3537
+ return jspb.Message.addToRepeatedField(this, 7, value, opt_index);
3538
+ };
3539
+
3540
+
3541
+ /**
3542
+ * Clears the list making it empty but non-null.
3543
+ * @return {!proto.user.SegmentSearchParams} returns this
3544
+ */
3545
+ proto.user.SegmentSearchParams.prototype.clearSegmentIdsList = function() {
3546
+ return this.setSegmentIdsList([]);
3547
+ };
3548
+
3549
+
3492
3550
 
3493
3551
 
3494
3552