protobuf-platform 1.0.206 → 1.0.207

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
@@ -137,6 +137,7 @@ message BannerGroupItem {
137
137
  repeated string geo = 3;
138
138
  optional int32 is_active = 4;
139
139
  repeated BannerItem banners = 5;
140
+ optional string default_image = 6;
140
141
  }
141
142
  message GetBannerGroupRequest {
142
143
  int32 id = 1;
package/cms/cms_pb.js CHANGED
@@ -5779,7 +5779,8 @@ proto.cms.BannerGroupItem.toObject = function(includeInstance, msg) {
5779
5779
  geoList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
5780
5780
  isActive: jspb.Message.getFieldWithDefault(msg, 4, 0),
5781
5781
  bannersList: jspb.Message.toObjectList(msg.getBannersList(),
5782
- proto.cms.BannerItem.toObject, includeInstance)
5782
+ proto.cms.BannerItem.toObject, includeInstance),
5783
+ defaultImage: jspb.Message.getFieldWithDefault(msg, 6, "")
5783
5784
  };
5784
5785
 
5785
5786
  if (includeInstance) {
@@ -5837,6 +5838,10 @@ proto.cms.BannerGroupItem.deserializeBinaryFromReader = function(msg, reader) {
5837
5838
  reader.readMessage(value,proto.cms.BannerItem.deserializeBinaryFromReader);
5838
5839
  msg.addBanners(value);
5839
5840
  break;
5841
+ case 6:
5842
+ var value = /** @type {string} */ (reader.readString());
5843
+ msg.setDefaultImage(value);
5844
+ break;
5840
5845
  default:
5841
5846
  reader.skipField();
5842
5847
  break;
@@ -5902,6 +5907,13 @@ proto.cms.BannerGroupItem.serializeBinaryToWriter = function(message, writer) {
5902
5907
  proto.cms.BannerItem.serializeBinaryToWriter
5903
5908
  );
5904
5909
  }
5910
+ f = /** @type {string} */ (jspb.Message.getField(message, 6));
5911
+ if (f != null) {
5912
+ writer.writeString(
5913
+ 6,
5914
+ f
5915
+ );
5916
+ }
5905
5917
  };
5906
5918
 
5907
5919
 
@@ -6088,6 +6100,42 @@ proto.cms.BannerGroupItem.prototype.clearBannersList = function() {
6088
6100
  };
6089
6101
 
6090
6102
 
6103
+ /**
6104
+ * optional string default_image = 6;
6105
+ * @return {string}
6106
+ */
6107
+ proto.cms.BannerGroupItem.prototype.getDefaultImage = function() {
6108
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
6109
+ };
6110
+
6111
+
6112
+ /**
6113
+ * @param {string} value
6114
+ * @return {!proto.cms.BannerGroupItem} returns this
6115
+ */
6116
+ proto.cms.BannerGroupItem.prototype.setDefaultImage = function(value) {
6117
+ return jspb.Message.setField(this, 6, value);
6118
+ };
6119
+
6120
+
6121
+ /**
6122
+ * Clears the field making it undefined.
6123
+ * @return {!proto.cms.BannerGroupItem} returns this
6124
+ */
6125
+ proto.cms.BannerGroupItem.prototype.clearDefaultImage = function() {
6126
+ return jspb.Message.setField(this, 6, undefined);
6127
+ };
6128
+
6129
+
6130
+ /**
6131
+ * Returns whether this field is set.
6132
+ * @return {boolean}
6133
+ */
6134
+ proto.cms.BannerGroupItem.prototype.hasDefaultImage = function() {
6135
+ return jspb.Message.getField(this, 6) != null;
6136
+ };
6137
+
6138
+
6091
6139
 
6092
6140
 
6093
6141
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.0.206",
3
+ "version": "1.0.207",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {