protobuf-platform 1.2.228 → 1.2.230

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/cms/cms.proto CHANGED
@@ -410,6 +410,7 @@ message PromoTranslationRequest {
410
410
  string locale = 3;
411
411
  optional string title = 4;
412
412
  optional string content = 5;
413
+ optional int32 is_active = 6;
413
414
  }
414
415
  message GetPromoTranslationRequest {
415
416
  int32 promo_id = 1;
@@ -419,6 +420,7 @@ message GetPromoTranslationRequest {
419
420
  message PromoTranslationResponse {
420
421
  optional string title = 1;
421
422
  optional string content = 2;
423
+ optional bool is_active = 3;
422
424
  }
423
425
  //Game Widget CRUD
424
426
  message GameWidgetRequest {
package/cms/cms_pb.js CHANGED
@@ -16852,7 +16852,8 @@ proto.cms.PromoTranslationRequest.toObject = function(includeInstance, msg) {
16852
16852
  geo: jspb.Message.getFieldWithDefault(msg, 2, ""),
16853
16853
  locale: jspb.Message.getFieldWithDefault(msg, 3, ""),
16854
16854
  title: jspb.Message.getFieldWithDefault(msg, 4, ""),
16855
- content: jspb.Message.getFieldWithDefault(msg, 5, "")
16855
+ content: jspb.Message.getFieldWithDefault(msg, 5, ""),
16856
+ isActive: jspb.Message.getFieldWithDefault(msg, 6, 0)
16856
16857
  };
16857
16858
 
16858
16859
  if (includeInstance) {
@@ -16909,6 +16910,10 @@ proto.cms.PromoTranslationRequest.deserializeBinaryFromReader = function(msg, re
16909
16910
  var value = /** @type {string} */ (reader.readString());
16910
16911
  msg.setContent(value);
16911
16912
  break;
16913
+ case 6:
16914
+ var value = /** @type {number} */ (reader.readInt32());
16915
+ msg.setIsActive(value);
16916
+ break;
16912
16917
  default:
16913
16918
  reader.skipField();
16914
16919
  break;
@@ -16973,6 +16978,13 @@ proto.cms.PromoTranslationRequest.serializeBinaryToWriter = function(message, wr
16973
16978
  f
16974
16979
  );
16975
16980
  }
16981
+ f = /** @type {number} */ (jspb.Message.getField(message, 6));
16982
+ if (f != null) {
16983
+ writer.writeInt32(
16984
+ 6,
16985
+ f
16986
+ );
16987
+ }
16976
16988
  };
16977
16989
 
16978
16990
 
@@ -17102,6 +17114,42 @@ proto.cms.PromoTranslationRequest.prototype.hasContent = function() {
17102
17114
  };
17103
17115
 
17104
17116
 
17117
+ /**
17118
+ * optional int32 is_active = 6;
17119
+ * @return {number}
17120
+ */
17121
+ proto.cms.PromoTranslationRequest.prototype.getIsActive = function() {
17122
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
17123
+ };
17124
+
17125
+
17126
+ /**
17127
+ * @param {number} value
17128
+ * @return {!proto.cms.PromoTranslationRequest} returns this
17129
+ */
17130
+ proto.cms.PromoTranslationRequest.prototype.setIsActive = function(value) {
17131
+ return jspb.Message.setField(this, 6, value);
17132
+ };
17133
+
17134
+
17135
+ /**
17136
+ * Clears the field making it undefined.
17137
+ * @return {!proto.cms.PromoTranslationRequest} returns this
17138
+ */
17139
+ proto.cms.PromoTranslationRequest.prototype.clearIsActive = function() {
17140
+ return jspb.Message.setField(this, 6, undefined);
17141
+ };
17142
+
17143
+
17144
+ /**
17145
+ * Returns whether this field is set.
17146
+ * @return {boolean}
17147
+ */
17148
+ proto.cms.PromoTranslationRequest.prototype.hasIsActive = function() {
17149
+ return jspb.Message.getField(this, 6) != null;
17150
+ };
17151
+
17152
+
17105
17153
 
17106
17154
 
17107
17155
 
@@ -17325,7 +17373,8 @@ proto.cms.PromoTranslationResponse.prototype.toObject = function(opt_includeInst
17325
17373
  proto.cms.PromoTranslationResponse.toObject = function(includeInstance, msg) {
17326
17374
  var f, obj = {
17327
17375
  title: jspb.Message.getFieldWithDefault(msg, 1, ""),
17328
- content: jspb.Message.getFieldWithDefault(msg, 2, "")
17376
+ content: jspb.Message.getFieldWithDefault(msg, 2, ""),
17377
+ isActive: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
17329
17378
  };
17330
17379
 
17331
17380
  if (includeInstance) {
@@ -17370,6 +17419,10 @@ proto.cms.PromoTranslationResponse.deserializeBinaryFromReader = function(msg, r
17370
17419
  var value = /** @type {string} */ (reader.readString());
17371
17420
  msg.setContent(value);
17372
17421
  break;
17422
+ case 3:
17423
+ var value = /** @type {boolean} */ (reader.readBool());
17424
+ msg.setIsActive(value);
17425
+ break;
17373
17426
  default:
17374
17427
  reader.skipField();
17375
17428
  break;
@@ -17413,6 +17466,13 @@ proto.cms.PromoTranslationResponse.serializeBinaryToWriter = function(message, w
17413
17466
  f
17414
17467
  );
17415
17468
  }
17469
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 3));
17470
+ if (f != null) {
17471
+ writer.writeBool(
17472
+ 3,
17473
+ f
17474
+ );
17475
+ }
17416
17476
  };
17417
17477
 
17418
17478
 
@@ -17488,6 +17548,42 @@ proto.cms.PromoTranslationResponse.prototype.hasContent = function() {
17488
17548
  };
17489
17549
 
17490
17550
 
17551
+ /**
17552
+ * optional bool is_active = 3;
17553
+ * @return {boolean}
17554
+ */
17555
+ proto.cms.PromoTranslationResponse.prototype.getIsActive = function() {
17556
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
17557
+ };
17558
+
17559
+
17560
+ /**
17561
+ * @param {boolean} value
17562
+ * @return {!proto.cms.PromoTranslationResponse} returns this
17563
+ */
17564
+ proto.cms.PromoTranslationResponse.prototype.setIsActive = function(value) {
17565
+ return jspb.Message.setField(this, 3, value);
17566
+ };
17567
+
17568
+
17569
+ /**
17570
+ * Clears the field making it undefined.
17571
+ * @return {!proto.cms.PromoTranslationResponse} returns this
17572
+ */
17573
+ proto.cms.PromoTranslationResponse.prototype.clearIsActive = function() {
17574
+ return jspb.Message.setField(this, 3, undefined);
17575
+ };
17576
+
17577
+
17578
+ /**
17579
+ * Returns whether this field is set.
17580
+ * @return {boolean}
17581
+ */
17582
+ proto.cms.PromoTranslationResponse.prototype.hasIsActive = function() {
17583
+ return jspb.Message.getField(this, 3) != null;
17584
+ };
17585
+
17586
+
17491
17587
 
17492
17588
  /**
17493
17589
  * Oneof group definitions for this message. Each group defines the field
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.228",
3
+ "version": "1.2.230",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {