protobuf-platform 1.2.146 → 1.2.148

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/bonus/bonus.proto CHANGED
@@ -125,6 +125,7 @@ message BonusItemRequest {
125
125
  optional int32 activation_period_in_hours = 18;
126
126
  optional int32 wagering_period_in_hours = 19;
127
127
  optional string type_data = 20;
128
+ repeated int32 segment_ids = 21;
128
129
  }
129
130
  message GetBonusRequest {
130
131
  int32 id = 1;
@@ -157,6 +158,7 @@ message BonusItem {
157
158
  optional string type_data = 22;
158
159
  optional int32 status_id = 23;
159
160
  repeated BonusTranslationItem translations = 24;
161
+ repeated int32 segment_ids = 25;
160
162
  }
161
163
  message BonusItemsResponse {
162
164
  repeated BonusItem items = 1;
package/bonus/bonus_pb.js CHANGED
@@ -361,7 +361,7 @@ if (goog.DEBUG && !COMPILED) {
361
361
  * @constructor
362
362
  */
363
363
  proto.bonus.BonusItemRequest = function(opt_data) {
364
- jspb.Message.initialize(this, opt_data, 0, -1, null, null);
364
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.bonus.BonusItemRequest.repeatedFields_, null);
365
365
  };
366
366
  goog.inherits(proto.bonus.BonusItemRequest, jspb.Message);
367
367
  if (goog.DEBUG && !COMPILED) {
@@ -4195,6 +4195,13 @@ proto.bonus.BetsRange.prototype.setMax = function(value) {
4195
4195
 
4196
4196
 
4197
4197
 
4198
+ /**
4199
+ * List of repeated fields within this message type.
4200
+ * @private {!Array<number>}
4201
+ * @const
4202
+ */
4203
+ proto.bonus.BonusItemRequest.repeatedFields_ = [21];
4204
+
4198
4205
 
4199
4206
 
4200
4207
  if (jspb.Message.GENERATE_TO_OBJECT) {
@@ -4245,7 +4252,8 @@ proto.bonus.BonusItemRequest.toObject = function(includeInstance, msg) {
4245
4252
  claimPeriodInHours: jspb.Message.getFieldWithDefault(msg, 17, 0),
4246
4253
  activationPeriodInHours: jspb.Message.getFieldWithDefault(msg, 18, 0),
4247
4254
  wageringPeriodInHours: jspb.Message.getFieldWithDefault(msg, 19, 0),
4248
- typeData: jspb.Message.getFieldWithDefault(msg, 20, "")
4255
+ typeData: jspb.Message.getFieldWithDefault(msg, 20, ""),
4256
+ segmentIdsList: (f = jspb.Message.getRepeatedField(msg, 21)) == null ? undefined : f
4249
4257
  };
4250
4258
 
4251
4259
  if (includeInstance) {
@@ -4362,6 +4370,12 @@ proto.bonus.BonusItemRequest.deserializeBinaryFromReader = function(msg, reader)
4362
4370
  var value = /** @type {string} */ (reader.readString());
4363
4371
  msg.setTypeData(value);
4364
4372
  break;
4373
+ case 21:
4374
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
4375
+ for (var i = 0; i < values.length; i++) {
4376
+ msg.addSegmentIds(values[i]);
4377
+ }
4378
+ break;
4365
4379
  default:
4366
4380
  reader.skipField();
4367
4381
  break;
@@ -4531,6 +4545,13 @@ proto.bonus.BonusItemRequest.serializeBinaryToWriter = function(message, writer)
4531
4545
  f
4532
4546
  );
4533
4547
  }
4548
+ f = message.getSegmentIdsList();
4549
+ if (f.length > 0) {
4550
+ writer.writePackedInt32(
4551
+ 21,
4552
+ f
4553
+ );
4554
+ }
4534
4555
  };
4535
4556
 
4536
4557
 
@@ -5254,6 +5275,43 @@ proto.bonus.BonusItemRequest.prototype.hasTypeData = function() {
5254
5275
  };
5255
5276
 
5256
5277
 
5278
+ /**
5279
+ * repeated int32 segment_ids = 21;
5280
+ * @return {!Array<number>}
5281
+ */
5282
+ proto.bonus.BonusItemRequest.prototype.getSegmentIdsList = function() {
5283
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 21));
5284
+ };
5285
+
5286
+
5287
+ /**
5288
+ * @param {!Array<number>} value
5289
+ * @return {!proto.bonus.BonusItemRequest} returns this
5290
+ */
5291
+ proto.bonus.BonusItemRequest.prototype.setSegmentIdsList = function(value) {
5292
+ return jspb.Message.setField(this, 21, value || []);
5293
+ };
5294
+
5295
+
5296
+ /**
5297
+ * @param {number} value
5298
+ * @param {number=} opt_index
5299
+ * @return {!proto.bonus.BonusItemRequest} returns this
5300
+ */
5301
+ proto.bonus.BonusItemRequest.prototype.addSegmentIds = function(value, opt_index) {
5302
+ return jspb.Message.addToRepeatedField(this, 21, value, opt_index);
5303
+ };
5304
+
5305
+
5306
+ /**
5307
+ * Clears the list making it empty but non-null.
5308
+ * @return {!proto.bonus.BonusItemRequest} returns this
5309
+ */
5310
+ proto.bonus.BonusItemRequest.prototype.clearSegmentIdsList = function() {
5311
+ return this.setSegmentIdsList([]);
5312
+ };
5313
+
5314
+
5257
5315
 
5258
5316
 
5259
5317
 
@@ -5541,7 +5599,7 @@ proto.bonus.BonusResponse.prototype.hasData = function() {
5541
5599
  * @private {!Array<number>}
5542
5600
  * @const
5543
5601
  */
5544
- proto.bonus.BonusItem.repeatedFields_ = [19,20,21,24];
5602
+ proto.bonus.BonusItem.repeatedFields_ = [19,20,21,24,25];
5545
5603
 
5546
5604
 
5547
5605
 
@@ -5601,7 +5659,8 @@ proto.bonus.BonusItem.toObject = function(includeInstance, msg) {
5601
5659
  typeData: jspb.Message.getFieldWithDefault(msg, 22, ""),
5602
5660
  statusId: jspb.Message.getFieldWithDefault(msg, 23, 0),
5603
5661
  translationsList: jspb.Message.toObjectList(msg.getTranslationsList(),
5604
- proto.bonus.BonusTranslationItem.toObject, includeInstance)
5662
+ proto.bonus.BonusTranslationItem.toObject, includeInstance),
5663
+ segmentIdsList: (f = jspb.Message.getRepeatedField(msg, 25)) == null ? undefined : f
5605
5664
  };
5606
5665
 
5607
5666
  if (includeInstance) {
@@ -5738,6 +5797,12 @@ proto.bonus.BonusItem.deserializeBinaryFromReader = function(msg, reader) {
5738
5797
  reader.readMessage(value,proto.bonus.BonusTranslationItem.deserializeBinaryFromReader);
5739
5798
  msg.addTranslations(value);
5740
5799
  break;
5800
+ case 25:
5801
+ var values = /** @type {!Array<number>} */ (reader.isDelimited() ? reader.readPackedInt32() : [reader.readInt32()]);
5802
+ for (var i = 0; i < values.length; i++) {
5803
+ msg.addSegmentIds(values[i]);
5804
+ }
5805
+ break;
5741
5806
  default:
5742
5807
  reader.skipField();
5743
5808
  break;
@@ -5939,6 +6004,13 @@ proto.bonus.BonusItem.serializeBinaryToWriter = function(message, writer) {
5939
6004
  proto.bonus.BonusTranslationItem.serializeBinaryToWriter
5940
6005
  );
5941
6006
  }
6007
+ f = message.getSegmentIdsList();
6008
+ if (f.length > 0) {
6009
+ writer.writePackedInt32(
6010
+ 25,
6011
+ f
6012
+ );
6013
+ }
5942
6014
  };
5943
6015
 
5944
6016
 
@@ -6814,6 +6886,43 @@ proto.bonus.BonusItem.prototype.clearTranslationsList = function() {
6814
6886
  };
6815
6887
 
6816
6888
 
6889
+ /**
6890
+ * repeated int32 segment_ids = 25;
6891
+ * @return {!Array<number>}
6892
+ */
6893
+ proto.bonus.BonusItem.prototype.getSegmentIdsList = function() {
6894
+ return /** @type {!Array<number>} */ (jspb.Message.getRepeatedField(this, 25));
6895
+ };
6896
+
6897
+
6898
+ /**
6899
+ * @param {!Array<number>} value
6900
+ * @return {!proto.bonus.BonusItem} returns this
6901
+ */
6902
+ proto.bonus.BonusItem.prototype.setSegmentIdsList = function(value) {
6903
+ return jspb.Message.setField(this, 25, value || []);
6904
+ };
6905
+
6906
+
6907
+ /**
6908
+ * @param {number} value
6909
+ * @param {number=} opt_index
6910
+ * @return {!proto.bonus.BonusItem} returns this
6911
+ */
6912
+ proto.bonus.BonusItem.prototype.addSegmentIds = function(value, opt_index) {
6913
+ return jspb.Message.addToRepeatedField(this, 25, value, opt_index);
6914
+ };
6915
+
6916
+
6917
+ /**
6918
+ * Clears the list making it empty but non-null.
6919
+ * @return {!proto.bonus.BonusItem} returns this
6920
+ */
6921
+ proto.bonus.BonusItem.prototype.clearSegmentIdsList = function() {
6922
+ return this.setSegmentIdsList([]);
6923
+ };
6924
+
6925
+
6817
6926
 
6818
6927
  /**
6819
6928
  * 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.146",
3
+ "version": "1.2.148",
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