protobuf-platform 1.0.164 → 1.0.165

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
@@ -23,6 +23,7 @@ message CommonWidgetRequest {
23
23
  message GetMainPageWidgetRequest {
24
24
  optional string geo = 1;
25
25
  optional bool is_mobile = 2;
26
+ optional bool admin_side = 3;
26
27
  }
27
28
  message MainPageWidgetItem {
28
29
  string geo = 1;
@@ -35,6 +36,7 @@ message GetBurgerMenuWidgetRequest {
35
36
  optional string geo = 1;
36
37
  optional bool is_mobile = 2;
37
38
  optional string locale = 3;
39
+ optional bool admin_side = 4;
38
40
  }
39
41
  message BurgerMenuWidgetItem {
40
42
  string geo = 1;
package/cms/cms_pb.js CHANGED
@@ -680,7 +680,8 @@ proto.cms.GetMainPageWidgetRequest.prototype.toObject = function(opt_includeInst
680
680
  proto.cms.GetMainPageWidgetRequest.toObject = function(includeInstance, msg) {
681
681
  var f, obj = {
682
682
  geo: jspb.Message.getFieldWithDefault(msg, 1, ""),
683
- isMobile: jspb.Message.getBooleanFieldWithDefault(msg, 2, false)
683
+ isMobile: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
684
+ adminSide: jspb.Message.getBooleanFieldWithDefault(msg, 3, false)
684
685
  };
685
686
 
686
687
  if (includeInstance) {
@@ -725,6 +726,10 @@ proto.cms.GetMainPageWidgetRequest.deserializeBinaryFromReader = function(msg, r
725
726
  var value = /** @type {boolean} */ (reader.readBool());
726
727
  msg.setIsMobile(value);
727
728
  break;
729
+ case 3:
730
+ var value = /** @type {boolean} */ (reader.readBool());
731
+ msg.setAdminSide(value);
732
+ break;
728
733
  default:
729
734
  reader.skipField();
730
735
  break;
@@ -768,6 +773,13 @@ proto.cms.GetMainPageWidgetRequest.serializeBinaryToWriter = function(message, w
768
773
  f
769
774
  );
770
775
  }
776
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 3));
777
+ if (f != null) {
778
+ writer.writeBool(
779
+ 3,
780
+ f
781
+ );
782
+ }
771
783
  };
772
784
 
773
785
 
@@ -843,6 +855,42 @@ proto.cms.GetMainPageWidgetRequest.prototype.hasIsMobile = function() {
843
855
  };
844
856
 
845
857
 
858
+ /**
859
+ * optional bool admin_side = 3;
860
+ * @return {boolean}
861
+ */
862
+ proto.cms.GetMainPageWidgetRequest.prototype.getAdminSide = function() {
863
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 3, false));
864
+ };
865
+
866
+
867
+ /**
868
+ * @param {boolean} value
869
+ * @return {!proto.cms.GetMainPageWidgetRequest} returns this
870
+ */
871
+ proto.cms.GetMainPageWidgetRequest.prototype.setAdminSide = function(value) {
872
+ return jspb.Message.setField(this, 3, value);
873
+ };
874
+
875
+
876
+ /**
877
+ * Clears the field making it undefined.
878
+ * @return {!proto.cms.GetMainPageWidgetRequest} returns this
879
+ */
880
+ proto.cms.GetMainPageWidgetRequest.prototype.clearAdminSide = function() {
881
+ return jspb.Message.setField(this, 3, undefined);
882
+ };
883
+
884
+
885
+ /**
886
+ * Returns whether this field is set.
887
+ * @return {boolean}
888
+ */
889
+ proto.cms.GetMainPageWidgetRequest.prototype.hasAdminSide = function() {
890
+ return jspb.Message.getField(this, 3) != null;
891
+ };
892
+
893
+
846
894
 
847
895
 
848
896
 
@@ -1197,7 +1245,8 @@ proto.cms.GetBurgerMenuWidgetRequest.toObject = function(includeInstance, msg) {
1197
1245
  var f, obj = {
1198
1246
  geo: jspb.Message.getFieldWithDefault(msg, 1, ""),
1199
1247
  isMobile: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
1200
- locale: jspb.Message.getFieldWithDefault(msg, 3, "")
1248
+ locale: jspb.Message.getFieldWithDefault(msg, 3, ""),
1249
+ adminSide: jspb.Message.getBooleanFieldWithDefault(msg, 4, false)
1201
1250
  };
1202
1251
 
1203
1252
  if (includeInstance) {
@@ -1246,6 +1295,10 @@ proto.cms.GetBurgerMenuWidgetRequest.deserializeBinaryFromReader = function(msg,
1246
1295
  var value = /** @type {string} */ (reader.readString());
1247
1296
  msg.setLocale(value);
1248
1297
  break;
1298
+ case 4:
1299
+ var value = /** @type {boolean} */ (reader.readBool());
1300
+ msg.setAdminSide(value);
1301
+ break;
1249
1302
  default:
1250
1303
  reader.skipField();
1251
1304
  break;
@@ -1296,6 +1349,13 @@ proto.cms.GetBurgerMenuWidgetRequest.serializeBinaryToWriter = function(message,
1296
1349
  f
1297
1350
  );
1298
1351
  }
1352
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 4));
1353
+ if (f != null) {
1354
+ writer.writeBool(
1355
+ 4,
1356
+ f
1357
+ );
1358
+ }
1299
1359
  };
1300
1360
 
1301
1361
 
@@ -1407,6 +1467,42 @@ proto.cms.GetBurgerMenuWidgetRequest.prototype.hasLocale = function() {
1407
1467
  };
1408
1468
 
1409
1469
 
1470
+ /**
1471
+ * optional bool admin_side = 4;
1472
+ * @return {boolean}
1473
+ */
1474
+ proto.cms.GetBurgerMenuWidgetRequest.prototype.getAdminSide = function() {
1475
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 4, false));
1476
+ };
1477
+
1478
+
1479
+ /**
1480
+ * @param {boolean} value
1481
+ * @return {!proto.cms.GetBurgerMenuWidgetRequest} returns this
1482
+ */
1483
+ proto.cms.GetBurgerMenuWidgetRequest.prototype.setAdminSide = function(value) {
1484
+ return jspb.Message.setField(this, 4, value);
1485
+ };
1486
+
1487
+
1488
+ /**
1489
+ * Clears the field making it undefined.
1490
+ * @return {!proto.cms.GetBurgerMenuWidgetRequest} returns this
1491
+ */
1492
+ proto.cms.GetBurgerMenuWidgetRequest.prototype.clearAdminSide = function() {
1493
+ return jspb.Message.setField(this, 4, undefined);
1494
+ };
1495
+
1496
+
1497
+ /**
1498
+ * Returns whether this field is set.
1499
+ * @return {boolean}
1500
+ */
1501
+ proto.cms.GetBurgerMenuWidgetRequest.prototype.hasAdminSide = function() {
1502
+ return jspb.Message.getField(this, 4) != null;
1503
+ };
1504
+
1505
+
1410
1506
 
1411
1507
 
1412
1508
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.0.164",
3
+ "version": "1.0.165",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {