protobuf-platform 1.0.103 → 1.0.104
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 +2 -1
- package/cms/cms_pb.js +57 -9
- package/package.json +1 -1
package/cms/cms.proto
CHANGED
@@ -22,6 +22,7 @@ message CommonWidgetRequest {
|
|
22
22
|
}
|
23
23
|
message GetMainPageWidgetRequest {
|
24
24
|
optional string geo = 1;
|
25
|
+
optional bool is_mobile = 2;
|
25
26
|
}
|
26
27
|
message MainPageWidgetItem {
|
27
28
|
string geo = 1;
|
@@ -32,7 +33,7 @@ message MainPageWidgetResponse {
|
|
32
33
|
}
|
33
34
|
message GetBurgerMenuWidgetRequest {
|
34
35
|
optional string geo = 1;
|
35
|
-
optional
|
36
|
+
optional bool is_mobile = 2;
|
36
37
|
optional string locale = 3;
|
37
38
|
}
|
38
39
|
message BurgerMenuWidgetItem {
|
package/cms/cms_pb.js
CHANGED
@@ -679,7 +679,8 @@ proto.cms.GetMainPageWidgetRequest.prototype.toObject = function(opt_includeInst
|
|
679
679
|
*/
|
680
680
|
proto.cms.GetMainPageWidgetRequest.toObject = function(includeInstance, msg) {
|
681
681
|
var f, obj = {
|
682
|
-
geo: jspb.Message.getFieldWithDefault(msg, 1, "")
|
682
|
+
geo: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
683
|
+
isMobile: jspb.Message.getBooleanFieldWithDefault(msg, 2, false)
|
683
684
|
};
|
684
685
|
|
685
686
|
if (includeInstance) {
|
@@ -720,6 +721,10 @@ proto.cms.GetMainPageWidgetRequest.deserializeBinaryFromReader = function(msg, r
|
|
720
721
|
var value = /** @type {string} */ (reader.readString());
|
721
722
|
msg.setGeo(value);
|
722
723
|
break;
|
724
|
+
case 2:
|
725
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
726
|
+
msg.setIsMobile(value);
|
727
|
+
break;
|
723
728
|
default:
|
724
729
|
reader.skipField();
|
725
730
|
break;
|
@@ -756,6 +761,13 @@ proto.cms.GetMainPageWidgetRequest.serializeBinaryToWriter = function(message, w
|
|
756
761
|
f
|
757
762
|
);
|
758
763
|
}
|
764
|
+
f = /** @type {boolean} */ (jspb.Message.getField(message, 2));
|
765
|
+
if (f != null) {
|
766
|
+
writer.writeBool(
|
767
|
+
2,
|
768
|
+
f
|
769
|
+
);
|
770
|
+
}
|
759
771
|
};
|
760
772
|
|
761
773
|
|
@@ -795,6 +807,42 @@ proto.cms.GetMainPageWidgetRequest.prototype.hasGeo = function() {
|
|
795
807
|
};
|
796
808
|
|
797
809
|
|
810
|
+
/**
|
811
|
+
* optional bool is_mobile = 2;
|
812
|
+
* @return {boolean}
|
813
|
+
*/
|
814
|
+
proto.cms.GetMainPageWidgetRequest.prototype.getIsMobile = function() {
|
815
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
|
816
|
+
};
|
817
|
+
|
818
|
+
|
819
|
+
/**
|
820
|
+
* @param {boolean} value
|
821
|
+
* @return {!proto.cms.GetMainPageWidgetRequest} returns this
|
822
|
+
*/
|
823
|
+
proto.cms.GetMainPageWidgetRequest.prototype.setIsMobile = function(value) {
|
824
|
+
return jspb.Message.setField(this, 2, value);
|
825
|
+
};
|
826
|
+
|
827
|
+
|
828
|
+
/**
|
829
|
+
* Clears the field making it undefined.
|
830
|
+
* @return {!proto.cms.GetMainPageWidgetRequest} returns this
|
831
|
+
*/
|
832
|
+
proto.cms.GetMainPageWidgetRequest.prototype.clearIsMobile = function() {
|
833
|
+
return jspb.Message.setField(this, 2, undefined);
|
834
|
+
};
|
835
|
+
|
836
|
+
|
837
|
+
/**
|
838
|
+
* Returns whether this field is set.
|
839
|
+
* @return {boolean}
|
840
|
+
*/
|
841
|
+
proto.cms.GetMainPageWidgetRequest.prototype.hasIsMobile = function() {
|
842
|
+
return jspb.Message.getField(this, 2) != null;
|
843
|
+
};
|
844
|
+
|
845
|
+
|
798
846
|
|
799
847
|
|
800
848
|
|
@@ -1148,7 +1196,7 @@ proto.cms.GetBurgerMenuWidgetRequest.prototype.toObject = function(opt_includeIn
|
|
1148
1196
|
proto.cms.GetBurgerMenuWidgetRequest.toObject = function(includeInstance, msg) {
|
1149
1197
|
var f, obj = {
|
1150
1198
|
geo: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
1151
|
-
isMobile: jspb.Message.
|
1199
|
+
isMobile: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
|
1152
1200
|
locale: jspb.Message.getFieldWithDefault(msg, 3, "")
|
1153
1201
|
};
|
1154
1202
|
|
@@ -1191,7 +1239,7 @@ proto.cms.GetBurgerMenuWidgetRequest.deserializeBinaryFromReader = function(msg,
|
|
1191
1239
|
msg.setGeo(value);
|
1192
1240
|
break;
|
1193
1241
|
case 2:
|
1194
|
-
var value = /** @type {
|
1242
|
+
var value = /** @type {boolean} */ (reader.readBool());
|
1195
1243
|
msg.setIsMobile(value);
|
1196
1244
|
break;
|
1197
1245
|
case 3:
|
@@ -1234,9 +1282,9 @@ proto.cms.GetBurgerMenuWidgetRequest.serializeBinaryToWriter = function(message,
|
|
1234
1282
|
f
|
1235
1283
|
);
|
1236
1284
|
}
|
1237
|
-
f = /** @type {
|
1285
|
+
f = /** @type {boolean} */ (jspb.Message.getField(message, 2));
|
1238
1286
|
if (f != null) {
|
1239
|
-
writer.
|
1287
|
+
writer.writeBool(
|
1240
1288
|
2,
|
1241
1289
|
f
|
1242
1290
|
);
|
@@ -1288,16 +1336,16 @@ proto.cms.GetBurgerMenuWidgetRequest.prototype.hasGeo = function() {
|
|
1288
1336
|
|
1289
1337
|
|
1290
1338
|
/**
|
1291
|
-
* optional
|
1292
|
-
* @return {
|
1339
|
+
* optional bool is_mobile = 2;
|
1340
|
+
* @return {boolean}
|
1293
1341
|
*/
|
1294
1342
|
proto.cms.GetBurgerMenuWidgetRequest.prototype.getIsMobile = function() {
|
1295
|
-
return /** @type {
|
1343
|
+
return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
|
1296
1344
|
};
|
1297
1345
|
|
1298
1346
|
|
1299
1347
|
/**
|
1300
|
-
* @param {
|
1348
|
+
* @param {boolean} value
|
1301
1349
|
* @return {!proto.cms.GetBurgerMenuWidgetRequest} returns this
|
1302
1350
|
*/
|
1303
1351
|
proto.cms.GetBurgerMenuWidgetRequest.prototype.setIsMobile = function(value) {
|