protobuf-platform 1.0.198 → 1.0.200

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
@@ -30,6 +30,8 @@ message PongResponse { string pong = 1; }
30
30
  message PaginationRequest {
31
31
  int32 limit = 1;
32
32
  int32 offset = 2;
33
+ optional int32 is_active = 3;
34
+ optional string geo = 4;
33
35
  }
34
36
  //Media
35
37
  message File { bytes media = 1; optional string file_name = 2; optional string file_type = 3; }
@@ -127,6 +129,7 @@ message BannerGroupItem {
127
129
  message GetBannerGroupRequest {
128
130
  int32 id = 1;
129
131
  optional bool admin_side = 2;
132
+ optional string locale = 3;
130
133
  }
131
134
  message BannerGroupResponse {
132
135
  BannerGroupItem data = 1;
package/cms/cms_pb.js CHANGED
@@ -843,7 +843,9 @@ proto.cms.PaginationRequest.prototype.toObject = function(opt_includeInstance) {
843
843
  proto.cms.PaginationRequest.toObject = function(includeInstance, msg) {
844
844
  var f, obj = {
845
845
  limit: jspb.Message.getFieldWithDefault(msg, 1, 0),
846
- offset: jspb.Message.getFieldWithDefault(msg, 2, 0)
846
+ offset: jspb.Message.getFieldWithDefault(msg, 2, 0),
847
+ isActive: jspb.Message.getFieldWithDefault(msg, 3, 0),
848
+ geo: jspb.Message.getFieldWithDefault(msg, 4, "")
847
849
  };
848
850
 
849
851
  if (includeInstance) {
@@ -888,6 +890,14 @@ proto.cms.PaginationRequest.deserializeBinaryFromReader = function(msg, reader)
888
890
  var value = /** @type {number} */ (reader.readInt32());
889
891
  msg.setOffset(value);
890
892
  break;
893
+ case 3:
894
+ var value = /** @type {number} */ (reader.readInt32());
895
+ msg.setIsActive(value);
896
+ break;
897
+ case 4:
898
+ var value = /** @type {string} */ (reader.readString());
899
+ msg.setGeo(value);
900
+ break;
891
901
  default:
892
902
  reader.skipField();
893
903
  break;
@@ -931,6 +941,20 @@ proto.cms.PaginationRequest.serializeBinaryToWriter = function(message, writer)
931
941
  f
932
942
  );
933
943
  }
944
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
945
+ if (f != null) {
946
+ writer.writeInt32(
947
+ 3,
948
+ f
949
+ );
950
+ }
951
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
952
+ if (f != null) {
953
+ writer.writeString(
954
+ 4,
955
+ f
956
+ );
957
+ }
934
958
  };
935
959
 
936
960
 
@@ -970,6 +994,78 @@ proto.cms.PaginationRequest.prototype.setOffset = function(value) {
970
994
  };
971
995
 
972
996
 
997
+ /**
998
+ * optional int32 is_active = 3;
999
+ * @return {number}
1000
+ */
1001
+ proto.cms.PaginationRequest.prototype.getIsActive = function() {
1002
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
1003
+ };
1004
+
1005
+
1006
+ /**
1007
+ * @param {number} value
1008
+ * @return {!proto.cms.PaginationRequest} returns this
1009
+ */
1010
+ proto.cms.PaginationRequest.prototype.setIsActive = function(value) {
1011
+ return jspb.Message.setField(this, 3, value);
1012
+ };
1013
+
1014
+
1015
+ /**
1016
+ * Clears the field making it undefined.
1017
+ * @return {!proto.cms.PaginationRequest} returns this
1018
+ */
1019
+ proto.cms.PaginationRequest.prototype.clearIsActive = function() {
1020
+ return jspb.Message.setField(this, 3, undefined);
1021
+ };
1022
+
1023
+
1024
+ /**
1025
+ * Returns whether this field is set.
1026
+ * @return {boolean}
1027
+ */
1028
+ proto.cms.PaginationRequest.prototype.hasIsActive = function() {
1029
+ return jspb.Message.getField(this, 3) != null;
1030
+ };
1031
+
1032
+
1033
+ /**
1034
+ * optional string geo = 4;
1035
+ * @return {string}
1036
+ */
1037
+ proto.cms.PaginationRequest.prototype.getGeo = function() {
1038
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1039
+ };
1040
+
1041
+
1042
+ /**
1043
+ * @param {string} value
1044
+ * @return {!proto.cms.PaginationRequest} returns this
1045
+ */
1046
+ proto.cms.PaginationRequest.prototype.setGeo = function(value) {
1047
+ return jspb.Message.setField(this, 4, value);
1048
+ };
1049
+
1050
+
1051
+ /**
1052
+ * Clears the field making it undefined.
1053
+ * @return {!proto.cms.PaginationRequest} returns this
1054
+ */
1055
+ proto.cms.PaginationRequest.prototype.clearGeo = function() {
1056
+ return jspb.Message.setField(this, 4, undefined);
1057
+ };
1058
+
1059
+
1060
+ /**
1061
+ * Returns whether this field is set.
1062
+ * @return {boolean}
1063
+ */
1064
+ proto.cms.PaginationRequest.prototype.hasGeo = function() {
1065
+ return jspb.Message.getField(this, 4) != null;
1066
+ };
1067
+
1068
+
973
1069
 
974
1070
 
975
1071
 
@@ -5533,7 +5629,8 @@ proto.cms.GetBannerGroupRequest.prototype.toObject = function(opt_includeInstanc
5533
5629
  proto.cms.GetBannerGroupRequest.toObject = function(includeInstance, msg) {
5534
5630
  var f, obj = {
5535
5631
  id: jspb.Message.getFieldWithDefault(msg, 1, 0),
5536
- adminSide: jspb.Message.getBooleanFieldWithDefault(msg, 2, false)
5632
+ adminSide: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
5633
+ locale: jspb.Message.getFieldWithDefault(msg, 3, "")
5537
5634
  };
5538
5635
 
5539
5636
  if (includeInstance) {
@@ -5578,6 +5675,10 @@ proto.cms.GetBannerGroupRequest.deserializeBinaryFromReader = function(msg, read
5578
5675
  var value = /** @type {boolean} */ (reader.readBool());
5579
5676
  msg.setAdminSide(value);
5580
5677
  break;
5678
+ case 3:
5679
+ var value = /** @type {string} */ (reader.readString());
5680
+ msg.setLocale(value);
5681
+ break;
5581
5682
  default:
5582
5683
  reader.skipField();
5583
5684
  break;
@@ -5621,6 +5722,13 @@ proto.cms.GetBannerGroupRequest.serializeBinaryToWriter = function(message, writ
5621
5722
  f
5622
5723
  );
5623
5724
  }
5725
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
5726
+ if (f != null) {
5727
+ writer.writeString(
5728
+ 3,
5729
+ f
5730
+ );
5731
+ }
5624
5732
  };
5625
5733
 
5626
5734
 
@@ -5678,6 +5786,42 @@ proto.cms.GetBannerGroupRequest.prototype.hasAdminSide = function() {
5678
5786
  };
5679
5787
 
5680
5788
 
5789
+ /**
5790
+ * optional string locale = 3;
5791
+ * @return {string}
5792
+ */
5793
+ proto.cms.GetBannerGroupRequest.prototype.getLocale = function() {
5794
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
5795
+ };
5796
+
5797
+
5798
+ /**
5799
+ * @param {string} value
5800
+ * @return {!proto.cms.GetBannerGroupRequest} returns this
5801
+ */
5802
+ proto.cms.GetBannerGroupRequest.prototype.setLocale = function(value) {
5803
+ return jspb.Message.setField(this, 3, value);
5804
+ };
5805
+
5806
+
5807
+ /**
5808
+ * Clears the field making it undefined.
5809
+ * @return {!proto.cms.GetBannerGroupRequest} returns this
5810
+ */
5811
+ proto.cms.GetBannerGroupRequest.prototype.clearLocale = function() {
5812
+ return jspb.Message.setField(this, 3, undefined);
5813
+ };
5814
+
5815
+
5816
+ /**
5817
+ * Returns whether this field is set.
5818
+ * @return {boolean}
5819
+ */
5820
+ proto.cms.GetBannerGroupRequest.prototype.hasLocale = function() {
5821
+ return jspb.Message.getField(this, 3) != null;
5822
+ };
5823
+
5824
+
5681
5825
 
5682
5826
 
5683
5827
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.0.198",
3
+ "version": "1.0.200",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {