protobuf-platform 1.2.710 → 1.2.712

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/game/game_pb.js CHANGED
@@ -11401,7 +11401,8 @@ proto.game.GameEntityTranslationRequest.toObject = function(includeInstance, msg
11401
11401
  locale: jspb.Message.getFieldWithDefault(msg, 2, ""),
11402
11402
  title: jspb.Message.getFieldWithDefault(msg, 3, ""),
11403
11403
  description: jspb.Message.getFieldWithDefault(msg, 4, ""),
11404
- isActive: jspb.Message.getBooleanFieldWithDefault(msg, 5, false)
11404
+ isActive: jspb.Message.getBooleanFieldWithDefault(msg, 5, false),
11405
+ clearDescription: jspb.Message.getBooleanFieldWithDefault(msg, 6, false)
11405
11406
  };
11406
11407
 
11407
11408
  if (includeInstance) {
@@ -11458,6 +11459,10 @@ proto.game.GameEntityTranslationRequest.deserializeBinaryFromReader = function(m
11458
11459
  var value = /** @type {boolean} */ (reader.readBool());
11459
11460
  msg.setIsActive(value);
11460
11461
  break;
11462
+ case 6:
11463
+ var value = /** @type {boolean} */ (reader.readBool());
11464
+ msg.setClearDescription(value);
11465
+ break;
11461
11466
  default:
11462
11467
  reader.skipField();
11463
11468
  break;
@@ -11522,6 +11527,13 @@ proto.game.GameEntityTranslationRequest.serializeBinaryToWriter = function(messa
11522
11527
  f
11523
11528
  );
11524
11529
  }
11530
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 6));
11531
+ if (f != null) {
11532
+ writer.writeBool(
11533
+ 6,
11534
+ f
11535
+ );
11536
+ }
11525
11537
  };
11526
11538
 
11527
11539
 
@@ -11669,6 +11681,42 @@ proto.game.GameEntityTranslationRequest.prototype.hasIsActive = function() {
11669
11681
  };
11670
11682
 
11671
11683
 
11684
+ /**
11685
+ * optional bool clear_description = 6;
11686
+ * @return {boolean}
11687
+ */
11688
+ proto.game.GameEntityTranslationRequest.prototype.getClearDescription = function() {
11689
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false));
11690
+ };
11691
+
11692
+
11693
+ /**
11694
+ * @param {boolean} value
11695
+ * @return {!proto.game.GameEntityTranslationRequest} returns this
11696
+ */
11697
+ proto.game.GameEntityTranslationRequest.prototype.setClearDescription = function(value) {
11698
+ return jspb.Message.setField(this, 6, value);
11699
+ };
11700
+
11701
+
11702
+ /**
11703
+ * Clears the field making it undefined.
11704
+ * @return {!proto.game.GameEntityTranslationRequest} returns this
11705
+ */
11706
+ proto.game.GameEntityTranslationRequest.prototype.clearClearDescription = function() {
11707
+ return jspb.Message.setField(this, 6, undefined);
11708
+ };
11709
+
11710
+
11711
+ /**
11712
+ * Returns whether this field is set.
11713
+ * @return {boolean}
11714
+ */
11715
+ proto.game.GameEntityTranslationRequest.prototype.hasClearDescription = function() {
11716
+ return jspb.Message.getField(this, 6) != null;
11717
+ };
11718
+
11719
+
11672
11720
 
11673
11721
 
11674
11722
 
@@ -57828,7 +57876,8 @@ proto.game.SEOInstanceRequest.toObject = function(includeInstance, msg) {
57828
57876
  withMainInfo: jspb.Message.getBooleanFieldWithDefault(msg, 6, false),
57829
57877
  instanceSlug: jspb.Message.getFieldWithDefault(msg, 7, ""),
57830
57878
  fullDescription: jspb.Message.getFieldWithDefault(msg, 8, ""),
57831
- geo: jspb.Message.getFieldWithDefault(msg, 9, "")
57879
+ geo: jspb.Message.getFieldWithDefault(msg, 9, ""),
57880
+ clearFullDescription: jspb.Message.getBooleanFieldWithDefault(msg, 10, false)
57832
57881
  };
57833
57882
 
57834
57883
  if (includeInstance) {
@@ -57902,6 +57951,10 @@ proto.game.SEOInstanceRequest.deserializeBinaryFromReader = function(msg, reader
57902
57951
  var value = /** @type {string} */ (reader.readString());
57903
57952
  msg.setGeo(value);
57904
57953
  break;
57954
+ case 10:
57955
+ var value = /** @type {boolean} */ (reader.readBool());
57956
+ msg.setClearFullDescription(value);
57957
+ break;
57905
57958
  default:
57906
57959
  reader.skipField();
57907
57960
  break;
@@ -57995,6 +58048,13 @@ proto.game.SEOInstanceRequest.serializeBinaryToWriter = function(message, writer
57995
58048
  f
57996
58049
  );
57997
58050
  }
58051
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 10));
58052
+ if (f != null) {
58053
+ writer.writeBool(
58054
+ 10,
58055
+ f
58056
+ );
58057
+ }
57998
58058
  };
57999
58059
 
58000
58060
 
@@ -58288,6 +58348,42 @@ proto.game.SEOInstanceRequest.prototype.hasGeo = function() {
58288
58348
  };
58289
58349
 
58290
58350
 
58351
+ /**
58352
+ * optional bool clear_full_description = 10;
58353
+ * @return {boolean}
58354
+ */
58355
+ proto.game.SEOInstanceRequest.prototype.getClearFullDescription = function() {
58356
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 10, false));
58357
+ };
58358
+
58359
+
58360
+ /**
58361
+ * @param {boolean} value
58362
+ * @return {!proto.game.SEOInstanceRequest} returns this
58363
+ */
58364
+ proto.game.SEOInstanceRequest.prototype.setClearFullDescription = function(value) {
58365
+ return jspb.Message.setField(this, 10, value);
58366
+ };
58367
+
58368
+
58369
+ /**
58370
+ * Clears the field making it undefined.
58371
+ * @return {!proto.game.SEOInstanceRequest} returns this
58372
+ */
58373
+ proto.game.SEOInstanceRequest.prototype.clearClearFullDescription = function() {
58374
+ return jspb.Message.setField(this, 10, undefined);
58375
+ };
58376
+
58377
+
58378
+ /**
58379
+ * Returns whether this field is set.
58380
+ * @return {boolean}
58381
+ */
58382
+ proto.game.SEOInstanceRequest.prototype.hasClearFullDescription = function() {
58383
+ return jspb.Message.getField(this, 10) != null;
58384
+ };
58385
+
58386
+
58291
58387
 
58292
58388
 
58293
58389
 
@@ -178,6 +178,8 @@ message LevelTranslationRequest {
178
178
  optional string description = 4;
179
179
  optional string content = 5;
180
180
  optional int32 is_active = 6;
181
+ // Explicit WYSIWYG clear. Independent of field 5 so omission and "" stay distinct.
182
+ optional bool clear_content = 7;
181
183
  }
182
184
  message GetLevelTranslationRequest {
183
185
  int32 loyalty_level_id = 1;
@@ -7549,7 +7549,8 @@ proto.loyalty.LevelTranslationRequest.toObject = function(includeInstance, msg)
7549
7549
  title: jspb.Message.getFieldWithDefault(msg, 3, ""),
7550
7550
  description: jspb.Message.getFieldWithDefault(msg, 4, ""),
7551
7551
  content: jspb.Message.getFieldWithDefault(msg, 5, ""),
7552
- isActive: jspb.Message.getFieldWithDefault(msg, 6, 0)
7552
+ isActive: jspb.Message.getFieldWithDefault(msg, 6, 0),
7553
+ clearContent: jspb.Message.getBooleanFieldWithDefault(msg, 7, false)
7553
7554
  };
7554
7555
 
7555
7556
  if (includeInstance) {
@@ -7610,6 +7611,10 @@ proto.loyalty.LevelTranslationRequest.deserializeBinaryFromReader = function(msg
7610
7611
  var value = /** @type {number} */ (reader.readInt32());
7611
7612
  msg.setIsActive(value);
7612
7613
  break;
7614
+ case 7:
7615
+ var value = /** @type {boolean} */ (reader.readBool());
7616
+ msg.setClearContent(value);
7617
+ break;
7613
7618
  default:
7614
7619
  reader.skipField();
7615
7620
  break;
@@ -7681,6 +7686,13 @@ proto.loyalty.LevelTranslationRequest.serializeBinaryToWriter = function(message
7681
7686
  f
7682
7687
  );
7683
7688
  }
7689
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 7));
7690
+ if (f != null) {
7691
+ writer.writeBool(
7692
+ 7,
7693
+ f
7694
+ );
7695
+ }
7684
7696
  };
7685
7697
 
7686
7698
 
@@ -7900,6 +7912,42 @@ proto.loyalty.LevelTranslationRequest.prototype.hasIsActive = function() {
7900
7912
  };
7901
7913
 
7902
7914
 
7915
+ /**
7916
+ * optional bool clear_content = 7;
7917
+ * @return {boolean}
7918
+ */
7919
+ proto.loyalty.LevelTranslationRequest.prototype.getClearContent = function() {
7920
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 7, false));
7921
+ };
7922
+
7923
+
7924
+ /**
7925
+ * @param {boolean} value
7926
+ * @return {!proto.loyalty.LevelTranslationRequest} returns this
7927
+ */
7928
+ proto.loyalty.LevelTranslationRequest.prototype.setClearContent = function(value) {
7929
+ return jspb.Message.setField(this, 7, value);
7930
+ };
7931
+
7932
+
7933
+ /**
7934
+ * Clears the field making it undefined.
7935
+ * @return {!proto.loyalty.LevelTranslationRequest} returns this
7936
+ */
7937
+ proto.loyalty.LevelTranslationRequest.prototype.clearClearContent = function() {
7938
+ return jspb.Message.setField(this, 7, undefined);
7939
+ };
7940
+
7941
+
7942
+ /**
7943
+ * Returns whether this field is set.
7944
+ * @return {boolean}
7945
+ */
7946
+ proto.loyalty.LevelTranslationRequest.prototype.hasClearContent = function() {
7947
+ return jspb.Message.getField(this, 7) != null;
7948
+ };
7949
+
7950
+
7903
7951
 
7904
7952
 
7905
7953
 
@@ -109,6 +109,8 @@ message NotificationItemRequest {
109
109
  optional int32 remove_after_hours = 15;
110
110
  // Explicit clear of remove_after_hours. Independent of field 15 so unset and null stay distinct.
111
111
  optional bool clear_remove_after_hours = 16;
112
+ // Explicit WYSIWYG clear. Independent of field 3 so omission and "" stay distinct.
113
+ optional bool clear_content = 17;
112
114
  }
113
115
  message NotificationRequest {
114
116
  oneof request {
@@ -190,7 +192,8 @@ message UserNotificationItemsResponse {
190
192
  message NotificationItem {
191
193
  int32 id = 1;
192
194
  string title = 2;
193
- string content = 3;
195
+ // Presence distinguishes a saved empty string from cleared content.
196
+ optional string content = 3;
194
197
  bool is_active = 4;
195
198
  string type = 5;
196
199
  string trigger = 6;
@@ -222,6 +225,8 @@ message NotificationTranslationRequest {
222
225
  optional string title = 3;
223
226
  optional string content = 4;
224
227
  optional int32 is_active = 5;
228
+ // Explicit WYSIWYG clear. Independent of field 4 so omission and "" stay distinct.
229
+ optional bool clear_content = 6;
225
230
  }
226
231
  message GetNotificationTranslationRequest {
227
232
  int32 notification_id = 1;
@@ -275,6 +280,8 @@ message MailTemplateData {
275
280
  optional string type = 4;
276
281
  optional int32 is_active = 5; // -1 ignore, 0 false, 1 true
277
282
  optional string content = 6; // HTML from WYSIWYG
283
+ // Explicit WYSIWYG clear. Independent of field 6 so omission and "" stay distinct.
284
+ optional bool clear_content = 11;
278
285
  optional string header_image_ref = 7; // absolute URL (if provided directly)
279
286
  optional string footer_image_ref = 8; // absolute URL
280
287
  optional string conditions = 9; // JSON as string (server parses)
@@ -302,7 +309,8 @@ message MailTemplateItem {
302
309
  bool is_active = 5;
303
310
  string header_image_ref = 6;
304
311
  string footer_image_ref = 7;
305
- string content = 8;
312
+ // Presence distinguishes a saved empty string from cleared content.
313
+ optional string content = 8;
306
314
  string conditions = 9; // JSON, serialized
307
315
  optional string created = 10; // iso8601 or custom
308
316
  }
@@ -323,6 +331,8 @@ message MailTemplateTranslationRequest {
323
331
  optional string title = 3;
324
332
  optional string content = 4;
325
333
  optional int32 is_active = 5;
334
+ // Explicit WYSIWYG clear. Independent of field 4 so omission and "" stay distinct.
335
+ optional bool clear_content = 6;
326
336
  }
327
337
  message GetMailTemplateTranslationRequest {
328
338
  int32 template_id = 1;
@@ -3321,7 +3321,8 @@ proto.notification.NotificationItemRequest.toObject = function(includeInstance,
3321
3321
  targetSlug: jspb.Message.getFieldWithDefault(msg, 13, ""),
3322
3322
  buttonText: jspb.Message.getFieldWithDefault(msg, 14, ""),
3323
3323
  removeAfterHours: jspb.Message.getFieldWithDefault(msg, 15, 0),
3324
- clearRemoveAfterHours: jspb.Message.getBooleanFieldWithDefault(msg, 16, false)
3324
+ clearRemoveAfterHours: jspb.Message.getBooleanFieldWithDefault(msg, 16, false),
3325
+ clearContent: jspb.Message.getBooleanFieldWithDefault(msg, 17, false)
3325
3326
  };
3326
3327
 
3327
3328
  if (includeInstance) {
@@ -3422,6 +3423,10 @@ proto.notification.NotificationItemRequest.deserializeBinaryFromReader = functio
3422
3423
  var value = /** @type {boolean} */ (reader.readBool());
3423
3424
  msg.setClearRemoveAfterHours(value);
3424
3425
  break;
3426
+ case 17:
3427
+ var value = /** @type {boolean} */ (reader.readBool());
3428
+ msg.setClearContent(value);
3429
+ break;
3425
3430
  default:
3426
3431
  reader.skipField();
3427
3432
  break;
@@ -3563,6 +3568,13 @@ proto.notification.NotificationItemRequest.serializeBinaryToWriter = function(me
3563
3568
  f
3564
3569
  );
3565
3570
  }
3571
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 17));
3572
+ if (f != null) {
3573
+ writer.writeBool(
3574
+ 17,
3575
+ f
3576
+ );
3577
+ }
3566
3578
  };
3567
3579
 
3568
3580
 
@@ -4142,6 +4154,42 @@ proto.notification.NotificationItemRequest.prototype.hasClearRemoveAfterHours =
4142
4154
  };
4143
4155
 
4144
4156
 
4157
+ /**
4158
+ * optional bool clear_content = 17;
4159
+ * @return {boolean}
4160
+ */
4161
+ proto.notification.NotificationItemRequest.prototype.getClearContent = function() {
4162
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 17, false));
4163
+ };
4164
+
4165
+
4166
+ /**
4167
+ * @param {boolean} value
4168
+ * @return {!proto.notification.NotificationItemRequest} returns this
4169
+ */
4170
+ proto.notification.NotificationItemRequest.prototype.setClearContent = function(value) {
4171
+ return jspb.Message.setField(this, 17, value);
4172
+ };
4173
+
4174
+
4175
+ /**
4176
+ * Clears the field making it undefined.
4177
+ * @return {!proto.notification.NotificationItemRequest} returns this
4178
+ */
4179
+ proto.notification.NotificationItemRequest.prototype.clearClearContent = function() {
4180
+ return jspb.Message.setField(this, 17, undefined);
4181
+ };
4182
+
4183
+
4184
+ /**
4185
+ * Returns whether this field is set.
4186
+ * @return {boolean}
4187
+ */
4188
+ proto.notification.NotificationItemRequest.prototype.hasClearContent = function() {
4189
+ return jspb.Message.getField(this, 17) != null;
4190
+ };
4191
+
4192
+
4145
4193
 
4146
4194
  /**
4147
4195
  * Oneof group definitions for this message. Each group defines the field
@@ -7815,8 +7863,8 @@ proto.notification.NotificationItem.serializeBinaryToWriter = function(message,
7815
7863
  f
7816
7864
  );
7817
7865
  }
7818
- f = message.getContent();
7819
- if (f.length > 0) {
7866
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
7867
+ if (f != null) {
7820
7868
  writer.writeString(
7821
7869
  3,
7822
7870
  f
@@ -7987,7 +8035,25 @@ proto.notification.NotificationItem.prototype.getContent = function() {
7987
8035
  * @return {!proto.notification.NotificationItem} returns this
7988
8036
  */
7989
8037
  proto.notification.NotificationItem.prototype.setContent = function(value) {
7990
- return jspb.Message.setProto3StringField(this, 3, value);
8038
+ return jspb.Message.setField(this, 3, value);
8039
+ };
8040
+
8041
+
8042
+ /**
8043
+ * Clears the field making it undefined.
8044
+ * @return {!proto.notification.NotificationItem} returns this
8045
+ */
8046
+ proto.notification.NotificationItem.prototype.clearContent = function() {
8047
+ return jspb.Message.setField(this, 3, undefined);
8048
+ };
8049
+
8050
+
8051
+ /**
8052
+ * Returns whether this field is set.
8053
+ * @return {boolean}
8054
+ */
8055
+ proto.notification.NotificationItem.prototype.hasContent = function() {
8056
+ return jspb.Message.getField(this, 3) != null;
7991
8057
  };
7992
8058
 
7993
8059
 
@@ -8956,7 +9022,8 @@ proto.notification.NotificationTranslationRequest.toObject = function(includeIns
8956
9022
  locale: jspb.Message.getFieldWithDefault(msg, 2, ""),
8957
9023
  title: jspb.Message.getFieldWithDefault(msg, 3, ""),
8958
9024
  content: jspb.Message.getFieldWithDefault(msg, 4, ""),
8959
- isActive: jspb.Message.getFieldWithDefault(msg, 5, 0)
9025
+ isActive: jspb.Message.getFieldWithDefault(msg, 5, 0),
9026
+ clearContent: jspb.Message.getBooleanFieldWithDefault(msg, 6, false)
8960
9027
  };
8961
9028
 
8962
9029
  if (includeInstance) {
@@ -9013,6 +9080,10 @@ proto.notification.NotificationTranslationRequest.deserializeBinaryFromReader =
9013
9080
  var value = /** @type {number} */ (reader.readInt32());
9014
9081
  msg.setIsActive(value);
9015
9082
  break;
9083
+ case 6:
9084
+ var value = /** @type {boolean} */ (reader.readBool());
9085
+ msg.setClearContent(value);
9086
+ break;
9016
9087
  default:
9017
9088
  reader.skipField();
9018
9089
  break;
@@ -9077,6 +9148,13 @@ proto.notification.NotificationTranslationRequest.serializeBinaryToWriter = func
9077
9148
  f
9078
9149
  );
9079
9150
  }
9151
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 6));
9152
+ if (f != null) {
9153
+ writer.writeBool(
9154
+ 6,
9155
+ f
9156
+ );
9157
+ }
9080
9158
  };
9081
9159
 
9082
9160
 
@@ -9260,6 +9338,42 @@ proto.notification.NotificationTranslationRequest.prototype.hasIsActive = functi
9260
9338
  };
9261
9339
 
9262
9340
 
9341
+ /**
9342
+ * optional bool clear_content = 6;
9343
+ * @return {boolean}
9344
+ */
9345
+ proto.notification.NotificationTranslationRequest.prototype.getClearContent = function() {
9346
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false));
9347
+ };
9348
+
9349
+
9350
+ /**
9351
+ * @param {boolean} value
9352
+ * @return {!proto.notification.NotificationTranslationRequest} returns this
9353
+ */
9354
+ proto.notification.NotificationTranslationRequest.prototype.setClearContent = function(value) {
9355
+ return jspb.Message.setField(this, 6, value);
9356
+ };
9357
+
9358
+
9359
+ /**
9360
+ * Clears the field making it undefined.
9361
+ * @return {!proto.notification.NotificationTranslationRequest} returns this
9362
+ */
9363
+ proto.notification.NotificationTranslationRequest.prototype.clearClearContent = function() {
9364
+ return jspb.Message.setField(this, 6, undefined);
9365
+ };
9366
+
9367
+
9368
+ /**
9369
+ * Returns whether this field is set.
9370
+ * @return {boolean}
9371
+ */
9372
+ proto.notification.NotificationTranslationRequest.prototype.hasClearContent = function() {
9373
+ return jspb.Message.getField(this, 6) != null;
9374
+ };
9375
+
9376
+
9263
9377
 
9264
9378
 
9265
9379
 
@@ -11142,6 +11256,7 @@ proto.notification.MailTemplateData.toObject = function(includeInstance, msg) {
11142
11256
  type: jspb.Message.getFieldWithDefault(msg, 4, ""),
11143
11257
  isActive: jspb.Message.getFieldWithDefault(msg, 5, 0),
11144
11258
  content: jspb.Message.getFieldWithDefault(msg, 6, ""),
11259
+ clearContent: jspb.Message.getBooleanFieldWithDefault(msg, 11, false),
11145
11260
  headerImageRef: jspb.Message.getFieldWithDefault(msg, 7, ""),
11146
11261
  footerImageRef: jspb.Message.getFieldWithDefault(msg, 8, ""),
11147
11262
  conditions: jspb.Message.getFieldWithDefault(msg, 9, ""),
@@ -11206,6 +11321,10 @@ proto.notification.MailTemplateData.deserializeBinaryFromReader = function(msg,
11206
11321
  var value = /** @type {string} */ (reader.readString());
11207
11322
  msg.setContent(value);
11208
11323
  break;
11324
+ case 11:
11325
+ var value = /** @type {boolean} */ (reader.readBool());
11326
+ msg.setClearContent(value);
11327
+ break;
11209
11328
  case 7:
11210
11329
  var value = /** @type {string} */ (reader.readString());
11211
11330
  msg.setHeaderImageRef(value);
@@ -11293,6 +11412,13 @@ proto.notification.MailTemplateData.serializeBinaryToWriter = function(message,
11293
11412
  f
11294
11413
  );
11295
11414
  }
11415
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 11));
11416
+ if (f != null) {
11417
+ writer.writeBool(
11418
+ 11,
11419
+ f
11420
+ );
11421
+ }
11296
11422
  f = /** @type {string} */ (jspb.Message.getField(message, 7));
11297
11423
  if (f != null) {
11298
11424
  writer.writeString(
@@ -11540,6 +11666,42 @@ proto.notification.MailTemplateData.prototype.hasContent = function() {
11540
11666
  };
11541
11667
 
11542
11668
 
11669
+ /**
11670
+ * optional bool clear_content = 11;
11671
+ * @return {boolean}
11672
+ */
11673
+ proto.notification.MailTemplateData.prototype.getClearContent = function() {
11674
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 11, false));
11675
+ };
11676
+
11677
+
11678
+ /**
11679
+ * @param {boolean} value
11680
+ * @return {!proto.notification.MailTemplateData} returns this
11681
+ */
11682
+ proto.notification.MailTemplateData.prototype.setClearContent = function(value) {
11683
+ return jspb.Message.setField(this, 11, value);
11684
+ };
11685
+
11686
+
11687
+ /**
11688
+ * Clears the field making it undefined.
11689
+ * @return {!proto.notification.MailTemplateData} returns this
11690
+ */
11691
+ proto.notification.MailTemplateData.prototype.clearClearContent = function() {
11692
+ return jspb.Message.setField(this, 11, undefined);
11693
+ };
11694
+
11695
+
11696
+ /**
11697
+ * Returns whether this field is set.
11698
+ * @return {boolean}
11699
+ */
11700
+ proto.notification.MailTemplateData.prototype.hasClearContent = function() {
11701
+ return jspb.Message.getField(this, 11) != null;
11702
+ };
11703
+
11704
+
11543
11705
  /**
11544
11706
  * optional string header_image_ref = 7;
11545
11707
  * @return {string}
@@ -12368,8 +12530,8 @@ proto.notification.MailTemplateItem.serializeBinaryToWriter = function(message,
12368
12530
  f
12369
12531
  );
12370
12532
  }
12371
- f = message.getContent();
12372
- if (f.length > 0) {
12533
+ f = /** @type {string} */ (jspb.Message.getField(message, 8));
12534
+ if (f != null) {
12373
12535
  writer.writeString(
12374
12536
  8,
12375
12537
  f
@@ -12532,7 +12694,25 @@ proto.notification.MailTemplateItem.prototype.getContent = function() {
12532
12694
  * @return {!proto.notification.MailTemplateItem} returns this
12533
12695
  */
12534
12696
  proto.notification.MailTemplateItem.prototype.setContent = function(value) {
12535
- return jspb.Message.setProto3StringField(this, 8, value);
12697
+ return jspb.Message.setField(this, 8, value);
12698
+ };
12699
+
12700
+
12701
+ /**
12702
+ * Clears the field making it undefined.
12703
+ * @return {!proto.notification.MailTemplateItem} returns this
12704
+ */
12705
+ proto.notification.MailTemplateItem.prototype.clearContent = function() {
12706
+ return jspb.Message.setField(this, 8, undefined);
12707
+ };
12708
+
12709
+
12710
+ /**
12711
+ * Returns whether this field is set.
12712
+ * @return {boolean}
12713
+ */
12714
+ proto.notification.MailTemplateItem.prototype.hasContent = function() {
12715
+ return jspb.Message.getField(this, 8) != null;
12536
12716
  };
12537
12717
 
12538
12718
 
@@ -13189,7 +13369,8 @@ proto.notification.MailTemplateTranslationRequest.toObject = function(includeIns
13189
13369
  locale: jspb.Message.getFieldWithDefault(msg, 2, ""),
13190
13370
  title: jspb.Message.getFieldWithDefault(msg, 3, ""),
13191
13371
  content: jspb.Message.getFieldWithDefault(msg, 4, ""),
13192
- isActive: jspb.Message.getFieldWithDefault(msg, 5, 0)
13372
+ isActive: jspb.Message.getFieldWithDefault(msg, 5, 0),
13373
+ clearContent: jspb.Message.getBooleanFieldWithDefault(msg, 6, false)
13193
13374
  };
13194
13375
 
13195
13376
  if (includeInstance) {
@@ -13246,6 +13427,10 @@ proto.notification.MailTemplateTranslationRequest.deserializeBinaryFromReader =
13246
13427
  var value = /** @type {number} */ (reader.readInt32());
13247
13428
  msg.setIsActive(value);
13248
13429
  break;
13430
+ case 6:
13431
+ var value = /** @type {boolean} */ (reader.readBool());
13432
+ msg.setClearContent(value);
13433
+ break;
13249
13434
  default:
13250
13435
  reader.skipField();
13251
13436
  break;
@@ -13310,6 +13495,13 @@ proto.notification.MailTemplateTranslationRequest.serializeBinaryToWriter = func
13310
13495
  f
13311
13496
  );
13312
13497
  }
13498
+ f = /** @type {boolean} */ (jspb.Message.getField(message, 6));
13499
+ if (f != null) {
13500
+ writer.writeBool(
13501
+ 6,
13502
+ f
13503
+ );
13504
+ }
13313
13505
  };
13314
13506
 
13315
13507
 
@@ -13493,6 +13685,42 @@ proto.notification.MailTemplateTranslationRequest.prototype.hasIsActive = functi
13493
13685
  };
13494
13686
 
13495
13687
 
13688
+ /**
13689
+ * optional bool clear_content = 6;
13690
+ * @return {boolean}
13691
+ */
13692
+ proto.notification.MailTemplateTranslationRequest.prototype.getClearContent = function() {
13693
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false));
13694
+ };
13695
+
13696
+
13697
+ /**
13698
+ * @param {boolean} value
13699
+ * @return {!proto.notification.MailTemplateTranslationRequest} returns this
13700
+ */
13701
+ proto.notification.MailTemplateTranslationRequest.prototype.setClearContent = function(value) {
13702
+ return jspb.Message.setField(this, 6, value);
13703
+ };
13704
+
13705
+
13706
+ /**
13707
+ * Clears the field making it undefined.
13708
+ * @return {!proto.notification.MailTemplateTranslationRequest} returns this
13709
+ */
13710
+ proto.notification.MailTemplateTranslationRequest.prototype.clearClearContent = function() {
13711
+ return jspb.Message.setField(this, 6, undefined);
13712
+ };
13713
+
13714
+
13715
+ /**
13716
+ * Returns whether this field is set.
13717
+ * @return {boolean}
13718
+ */
13719
+ proto.notification.MailTemplateTranslationRequest.prototype.hasClearContent = function() {
13720
+ return jspb.Message.getField(this, 6) != null;
13721
+ };
13722
+
13723
+
13496
13724
 
13497
13725
 
13498
13726
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.710",
3
+ "version": "1.2.712",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -239,6 +239,8 @@ message TournamentLocalizationRequest {
239
239
  optional bool remove_desktop_image = 6;
240
240
  optional bool remove_mobile_image = 7;
241
241
  optional bool remove_portrait_image = 8;
242
+ // Explicit WYSIWYG clear. Independent of field 5 so omission and "" stay distinct.
243
+ optional bool clear_content = 9;
242
244
  }
243
245
  message TournamentLocalizationUpsertRequest {
244
246
  oneof request {