protobuf-platform 1.2.375 → 1.2.376

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.
@@ -109,6 +109,12 @@ message UserNotificationItem {
109
109
  string content = 3;
110
110
  bool is_checked = 4;
111
111
  optional string created = 5;
112
+ optional string type = 6;
113
+ optional string category = 7;
114
+ optional string desktop_image = 8;
115
+ optional string desktop_image_cdn = 9;
116
+ optional string mobile_image = 10;
117
+ optional string mobile_image_cdn = 11;
112
118
  }
113
119
  message UserNotificationItemsResponse {
114
120
  repeated UserNotificationItem items = 1;
@@ -4108,7 +4108,13 @@ proto.notification.UserNotificationItem.toObject = function(includeInstance, msg
4108
4108
  title: jspb.Message.getFieldWithDefault(msg, 2, ""),
4109
4109
  content: jspb.Message.getFieldWithDefault(msg, 3, ""),
4110
4110
  isChecked: jspb.Message.getBooleanFieldWithDefault(msg, 4, false),
4111
- created: jspb.Message.getFieldWithDefault(msg, 5, "")
4111
+ created: jspb.Message.getFieldWithDefault(msg, 5, ""),
4112
+ type: jspb.Message.getFieldWithDefault(msg, 6, ""),
4113
+ category: jspb.Message.getFieldWithDefault(msg, 7, ""),
4114
+ desktopImage: jspb.Message.getFieldWithDefault(msg, 8, ""),
4115
+ desktopImageCdn: jspb.Message.getFieldWithDefault(msg, 9, ""),
4116
+ mobileImage: jspb.Message.getFieldWithDefault(msg, 10, ""),
4117
+ mobileImageCdn: jspb.Message.getFieldWithDefault(msg, 11, "")
4112
4118
  };
4113
4119
 
4114
4120
  if (includeInstance) {
@@ -4165,6 +4171,30 @@ proto.notification.UserNotificationItem.deserializeBinaryFromReader = function(m
4165
4171
  var value = /** @type {string} */ (reader.readString());
4166
4172
  msg.setCreated(value);
4167
4173
  break;
4174
+ case 6:
4175
+ var value = /** @type {string} */ (reader.readString());
4176
+ msg.setType(value);
4177
+ break;
4178
+ case 7:
4179
+ var value = /** @type {string} */ (reader.readString());
4180
+ msg.setCategory(value);
4181
+ break;
4182
+ case 8:
4183
+ var value = /** @type {string} */ (reader.readString());
4184
+ msg.setDesktopImage(value);
4185
+ break;
4186
+ case 9:
4187
+ var value = /** @type {string} */ (reader.readString());
4188
+ msg.setDesktopImageCdn(value);
4189
+ break;
4190
+ case 10:
4191
+ var value = /** @type {string} */ (reader.readString());
4192
+ msg.setMobileImage(value);
4193
+ break;
4194
+ case 11:
4195
+ var value = /** @type {string} */ (reader.readString());
4196
+ msg.setMobileImageCdn(value);
4197
+ break;
4168
4198
  default:
4169
4199
  reader.skipField();
4170
4200
  break;
@@ -4229,6 +4259,48 @@ proto.notification.UserNotificationItem.serializeBinaryToWriter = function(messa
4229
4259
  f
4230
4260
  );
4231
4261
  }
4262
+ f = /** @type {string} */ (jspb.Message.getField(message, 6));
4263
+ if (f != null) {
4264
+ writer.writeString(
4265
+ 6,
4266
+ f
4267
+ );
4268
+ }
4269
+ f = /** @type {string} */ (jspb.Message.getField(message, 7));
4270
+ if (f != null) {
4271
+ writer.writeString(
4272
+ 7,
4273
+ f
4274
+ );
4275
+ }
4276
+ f = /** @type {string} */ (jspb.Message.getField(message, 8));
4277
+ if (f != null) {
4278
+ writer.writeString(
4279
+ 8,
4280
+ f
4281
+ );
4282
+ }
4283
+ f = /** @type {string} */ (jspb.Message.getField(message, 9));
4284
+ if (f != null) {
4285
+ writer.writeString(
4286
+ 9,
4287
+ f
4288
+ );
4289
+ }
4290
+ f = /** @type {string} */ (jspb.Message.getField(message, 10));
4291
+ if (f != null) {
4292
+ writer.writeString(
4293
+ 10,
4294
+ f
4295
+ );
4296
+ }
4297
+ f = /** @type {string} */ (jspb.Message.getField(message, 11));
4298
+ if (f != null) {
4299
+ writer.writeString(
4300
+ 11,
4301
+ f
4302
+ );
4303
+ }
4232
4304
  };
4233
4305
 
4234
4306
 
@@ -4340,6 +4412,222 @@ proto.notification.UserNotificationItem.prototype.hasCreated = function() {
4340
4412
  };
4341
4413
 
4342
4414
 
4415
+ /**
4416
+ * optional string type = 6;
4417
+ * @return {string}
4418
+ */
4419
+ proto.notification.UserNotificationItem.prototype.getType = function() {
4420
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
4421
+ };
4422
+
4423
+
4424
+ /**
4425
+ * @param {string} value
4426
+ * @return {!proto.notification.UserNotificationItem} returns this
4427
+ */
4428
+ proto.notification.UserNotificationItem.prototype.setType = function(value) {
4429
+ return jspb.Message.setField(this, 6, value);
4430
+ };
4431
+
4432
+
4433
+ /**
4434
+ * Clears the field making it undefined.
4435
+ * @return {!proto.notification.UserNotificationItem} returns this
4436
+ */
4437
+ proto.notification.UserNotificationItem.prototype.clearType = function() {
4438
+ return jspb.Message.setField(this, 6, undefined);
4439
+ };
4440
+
4441
+
4442
+ /**
4443
+ * Returns whether this field is set.
4444
+ * @return {boolean}
4445
+ */
4446
+ proto.notification.UserNotificationItem.prototype.hasType = function() {
4447
+ return jspb.Message.getField(this, 6) != null;
4448
+ };
4449
+
4450
+
4451
+ /**
4452
+ * optional string category = 7;
4453
+ * @return {string}
4454
+ */
4455
+ proto.notification.UserNotificationItem.prototype.getCategory = function() {
4456
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
4457
+ };
4458
+
4459
+
4460
+ /**
4461
+ * @param {string} value
4462
+ * @return {!proto.notification.UserNotificationItem} returns this
4463
+ */
4464
+ proto.notification.UserNotificationItem.prototype.setCategory = function(value) {
4465
+ return jspb.Message.setField(this, 7, value);
4466
+ };
4467
+
4468
+
4469
+ /**
4470
+ * Clears the field making it undefined.
4471
+ * @return {!proto.notification.UserNotificationItem} returns this
4472
+ */
4473
+ proto.notification.UserNotificationItem.prototype.clearCategory = function() {
4474
+ return jspb.Message.setField(this, 7, undefined);
4475
+ };
4476
+
4477
+
4478
+ /**
4479
+ * Returns whether this field is set.
4480
+ * @return {boolean}
4481
+ */
4482
+ proto.notification.UserNotificationItem.prototype.hasCategory = function() {
4483
+ return jspb.Message.getField(this, 7) != null;
4484
+ };
4485
+
4486
+
4487
+ /**
4488
+ * optional string desktop_image = 8;
4489
+ * @return {string}
4490
+ */
4491
+ proto.notification.UserNotificationItem.prototype.getDesktopImage = function() {
4492
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
4493
+ };
4494
+
4495
+
4496
+ /**
4497
+ * @param {string} value
4498
+ * @return {!proto.notification.UserNotificationItem} returns this
4499
+ */
4500
+ proto.notification.UserNotificationItem.prototype.setDesktopImage = function(value) {
4501
+ return jspb.Message.setField(this, 8, value);
4502
+ };
4503
+
4504
+
4505
+ /**
4506
+ * Clears the field making it undefined.
4507
+ * @return {!proto.notification.UserNotificationItem} returns this
4508
+ */
4509
+ proto.notification.UserNotificationItem.prototype.clearDesktopImage = function() {
4510
+ return jspb.Message.setField(this, 8, undefined);
4511
+ };
4512
+
4513
+
4514
+ /**
4515
+ * Returns whether this field is set.
4516
+ * @return {boolean}
4517
+ */
4518
+ proto.notification.UserNotificationItem.prototype.hasDesktopImage = function() {
4519
+ return jspb.Message.getField(this, 8) != null;
4520
+ };
4521
+
4522
+
4523
+ /**
4524
+ * optional string desktop_image_cdn = 9;
4525
+ * @return {string}
4526
+ */
4527
+ proto.notification.UserNotificationItem.prototype.getDesktopImageCdn = function() {
4528
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
4529
+ };
4530
+
4531
+
4532
+ /**
4533
+ * @param {string} value
4534
+ * @return {!proto.notification.UserNotificationItem} returns this
4535
+ */
4536
+ proto.notification.UserNotificationItem.prototype.setDesktopImageCdn = function(value) {
4537
+ return jspb.Message.setField(this, 9, value);
4538
+ };
4539
+
4540
+
4541
+ /**
4542
+ * Clears the field making it undefined.
4543
+ * @return {!proto.notification.UserNotificationItem} returns this
4544
+ */
4545
+ proto.notification.UserNotificationItem.prototype.clearDesktopImageCdn = function() {
4546
+ return jspb.Message.setField(this, 9, undefined);
4547
+ };
4548
+
4549
+
4550
+ /**
4551
+ * Returns whether this field is set.
4552
+ * @return {boolean}
4553
+ */
4554
+ proto.notification.UserNotificationItem.prototype.hasDesktopImageCdn = function() {
4555
+ return jspb.Message.getField(this, 9) != null;
4556
+ };
4557
+
4558
+
4559
+ /**
4560
+ * optional string mobile_image = 10;
4561
+ * @return {string}
4562
+ */
4563
+ proto.notification.UserNotificationItem.prototype.getMobileImage = function() {
4564
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
4565
+ };
4566
+
4567
+
4568
+ /**
4569
+ * @param {string} value
4570
+ * @return {!proto.notification.UserNotificationItem} returns this
4571
+ */
4572
+ proto.notification.UserNotificationItem.prototype.setMobileImage = function(value) {
4573
+ return jspb.Message.setField(this, 10, value);
4574
+ };
4575
+
4576
+
4577
+ /**
4578
+ * Clears the field making it undefined.
4579
+ * @return {!proto.notification.UserNotificationItem} returns this
4580
+ */
4581
+ proto.notification.UserNotificationItem.prototype.clearMobileImage = function() {
4582
+ return jspb.Message.setField(this, 10, undefined);
4583
+ };
4584
+
4585
+
4586
+ /**
4587
+ * Returns whether this field is set.
4588
+ * @return {boolean}
4589
+ */
4590
+ proto.notification.UserNotificationItem.prototype.hasMobileImage = function() {
4591
+ return jspb.Message.getField(this, 10) != null;
4592
+ };
4593
+
4594
+
4595
+ /**
4596
+ * optional string mobile_image_cdn = 11;
4597
+ * @return {string}
4598
+ */
4599
+ proto.notification.UserNotificationItem.prototype.getMobileImageCdn = function() {
4600
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
4601
+ };
4602
+
4603
+
4604
+ /**
4605
+ * @param {string} value
4606
+ * @return {!proto.notification.UserNotificationItem} returns this
4607
+ */
4608
+ proto.notification.UserNotificationItem.prototype.setMobileImageCdn = function(value) {
4609
+ return jspb.Message.setField(this, 11, value);
4610
+ };
4611
+
4612
+
4613
+ /**
4614
+ * Clears the field making it undefined.
4615
+ * @return {!proto.notification.UserNotificationItem} returns this
4616
+ */
4617
+ proto.notification.UserNotificationItem.prototype.clearMobileImageCdn = function() {
4618
+ return jspb.Message.setField(this, 11, undefined);
4619
+ };
4620
+
4621
+
4622
+ /**
4623
+ * Returns whether this field is set.
4624
+ * @return {boolean}
4625
+ */
4626
+ proto.notification.UserNotificationItem.prototype.hasMobileImageCdn = function() {
4627
+ return jspb.Message.getField(this, 11) != null;
4628
+ };
4629
+
4630
+
4343
4631
 
4344
4632
  /**
4345
4633
  * List of repeated fields within this message type.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.375",
3
+ "version": "1.2.376",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {