protobuf-platform 1.2.146 → 1.2.147

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.147",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {