protobuf-platform 1.2.77 → 1.2.79

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.
@@ -23,8 +23,17 @@ var global = (function() {
23
23
 
24
24
  goog.exportSymbol('proto.notification.File', null, global);
25
25
  goog.exportSymbol('proto.notification.GetFileRequest', null, global);
26
+ goog.exportSymbol('proto.notification.GetMailTemplateRequest', null, global);
26
27
  goog.exportSymbol('proto.notification.GetNotificationRequest', null, global);
27
28
  goog.exportSymbol('proto.notification.ItemsBunchRequest', null, global);
29
+ goog.exportSymbol('proto.notification.MailTemplateChunk', null, global);
30
+ goog.exportSymbol('proto.notification.MailTemplateChunk.DataOrFileCase', null, global);
31
+ goog.exportSymbol('proto.notification.MailTemplateData', null, global);
32
+ goog.exportSymbol('proto.notification.MailTemplateItem', null, global);
33
+ goog.exportSymbol('proto.notification.MailTemplateItemsResponse', null, global);
34
+ goog.exportSymbol('proto.notification.MailTemplateResponse', null, global);
35
+ goog.exportSymbol('proto.notification.MailTemplateSearchRequest', null, global);
36
+ goog.exportSymbol('proto.notification.MailTemplateStatusResponse', null, global);
28
37
  goog.exportSymbol('proto.notification.NotificationItem', null, global);
29
38
  goog.exportSymbol('proto.notification.NotificationItemsResponse', null, global);
30
39
  goog.exportSymbol('proto.notification.NotificationRequest', null, global);
@@ -417,6 +426,174 @@ if (goog.DEBUG && !COMPILED) {
417
426
  */
418
427
  proto.notification.UserNotificationsCountResponse.displayName = 'proto.notification.UserNotificationsCountResponse';
419
428
  }
429
+ /**
430
+ * Generated by JsPbCodeGenerator.
431
+ * @param {Array=} opt_data Optional initial data array, typically from a
432
+ * server response, or constructed directly in Javascript. The array is used
433
+ * in place and becomes part of the constructed object. It is not cloned.
434
+ * If no data is provided, the constructed object will be empty, but still
435
+ * valid.
436
+ * @extends {jspb.Message}
437
+ * @constructor
438
+ */
439
+ proto.notification.MailTemplateSearchRequest = function(opt_data) {
440
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
441
+ };
442
+ goog.inherits(proto.notification.MailTemplateSearchRequest, jspb.Message);
443
+ if (goog.DEBUG && !COMPILED) {
444
+ /**
445
+ * @public
446
+ * @override
447
+ */
448
+ proto.notification.MailTemplateSearchRequest.displayName = 'proto.notification.MailTemplateSearchRequest';
449
+ }
450
+ /**
451
+ * Generated by JsPbCodeGenerator.
452
+ * @param {Array=} opt_data Optional initial data array, typically from a
453
+ * server response, or constructed directly in Javascript. The array is used
454
+ * in place and becomes part of the constructed object. It is not cloned.
455
+ * If no data is provided, the constructed object will be empty, but still
456
+ * valid.
457
+ * @extends {jspb.Message}
458
+ * @constructor
459
+ */
460
+ proto.notification.MailTemplateData = function(opt_data) {
461
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
462
+ };
463
+ goog.inherits(proto.notification.MailTemplateData, jspb.Message);
464
+ if (goog.DEBUG && !COMPILED) {
465
+ /**
466
+ * @public
467
+ * @override
468
+ */
469
+ proto.notification.MailTemplateData.displayName = 'proto.notification.MailTemplateData';
470
+ }
471
+ /**
472
+ * Generated by JsPbCodeGenerator.
473
+ * @param {Array=} opt_data Optional initial data array, typically from a
474
+ * server response, or constructed directly in Javascript. The array is used
475
+ * in place and becomes part of the constructed object. It is not cloned.
476
+ * If no data is provided, the constructed object will be empty, but still
477
+ * valid.
478
+ * @extends {jspb.Message}
479
+ * @constructor
480
+ */
481
+ proto.notification.MailTemplateChunk = function(opt_data) {
482
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.notification.MailTemplateChunk.oneofGroups_);
483
+ };
484
+ goog.inherits(proto.notification.MailTemplateChunk, jspb.Message);
485
+ if (goog.DEBUG && !COMPILED) {
486
+ /**
487
+ * @public
488
+ * @override
489
+ */
490
+ proto.notification.MailTemplateChunk.displayName = 'proto.notification.MailTemplateChunk';
491
+ }
492
+ /**
493
+ * Generated by JsPbCodeGenerator.
494
+ * @param {Array=} opt_data Optional initial data array, typically from a
495
+ * server response, or constructed directly in Javascript. The array is used
496
+ * in place and becomes part of the constructed object. It is not cloned.
497
+ * If no data is provided, the constructed object will be empty, but still
498
+ * valid.
499
+ * @extends {jspb.Message}
500
+ * @constructor
501
+ */
502
+ proto.notification.GetMailTemplateRequest = function(opt_data) {
503
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
504
+ };
505
+ goog.inherits(proto.notification.GetMailTemplateRequest, jspb.Message);
506
+ if (goog.DEBUG && !COMPILED) {
507
+ /**
508
+ * @public
509
+ * @override
510
+ */
511
+ proto.notification.GetMailTemplateRequest.displayName = 'proto.notification.GetMailTemplateRequest';
512
+ }
513
+ /**
514
+ * Generated by JsPbCodeGenerator.
515
+ * @param {Array=} opt_data Optional initial data array, typically from a
516
+ * server response, or constructed directly in Javascript. The array is used
517
+ * in place and becomes part of the constructed object. It is not cloned.
518
+ * If no data is provided, the constructed object will be empty, but still
519
+ * valid.
520
+ * @extends {jspb.Message}
521
+ * @constructor
522
+ */
523
+ proto.notification.MailTemplateStatusResponse = function(opt_data) {
524
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
525
+ };
526
+ goog.inherits(proto.notification.MailTemplateStatusResponse, jspb.Message);
527
+ if (goog.DEBUG && !COMPILED) {
528
+ /**
529
+ * @public
530
+ * @override
531
+ */
532
+ proto.notification.MailTemplateStatusResponse.displayName = 'proto.notification.MailTemplateStatusResponse';
533
+ }
534
+ /**
535
+ * Generated by JsPbCodeGenerator.
536
+ * @param {Array=} opt_data Optional initial data array, typically from a
537
+ * server response, or constructed directly in Javascript. The array is used
538
+ * in place and becomes part of the constructed object. It is not cloned.
539
+ * If no data is provided, the constructed object will be empty, but still
540
+ * valid.
541
+ * @extends {jspb.Message}
542
+ * @constructor
543
+ */
544
+ proto.notification.MailTemplateItem = function(opt_data) {
545
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
546
+ };
547
+ goog.inherits(proto.notification.MailTemplateItem, jspb.Message);
548
+ if (goog.DEBUG && !COMPILED) {
549
+ /**
550
+ * @public
551
+ * @override
552
+ */
553
+ proto.notification.MailTemplateItem.displayName = 'proto.notification.MailTemplateItem';
554
+ }
555
+ /**
556
+ * Generated by JsPbCodeGenerator.
557
+ * @param {Array=} opt_data Optional initial data array, typically from a
558
+ * server response, or constructed directly in Javascript. The array is used
559
+ * in place and becomes part of the constructed object. It is not cloned.
560
+ * If no data is provided, the constructed object will be empty, but still
561
+ * valid.
562
+ * @extends {jspb.Message}
563
+ * @constructor
564
+ */
565
+ proto.notification.MailTemplateResponse = function(opt_data) {
566
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
567
+ };
568
+ goog.inherits(proto.notification.MailTemplateResponse, jspb.Message);
569
+ if (goog.DEBUG && !COMPILED) {
570
+ /**
571
+ * @public
572
+ * @override
573
+ */
574
+ proto.notification.MailTemplateResponse.displayName = 'proto.notification.MailTemplateResponse';
575
+ }
576
+ /**
577
+ * Generated by JsPbCodeGenerator.
578
+ * @param {Array=} opt_data Optional initial data array, typically from a
579
+ * server response, or constructed directly in Javascript. The array is used
580
+ * in place and becomes part of the constructed object. It is not cloned.
581
+ * If no data is provided, the constructed object will be empty, but still
582
+ * valid.
583
+ * @extends {jspb.Message}
584
+ * @constructor
585
+ */
586
+ proto.notification.MailTemplateItemsResponse = function(opt_data) {
587
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.notification.MailTemplateItemsResponse.repeatedFields_, null);
588
+ };
589
+ goog.inherits(proto.notification.MailTemplateItemsResponse, jspb.Message);
590
+ if (goog.DEBUG && !COMPILED) {
591
+ /**
592
+ * @public
593
+ * @override
594
+ */
595
+ proto.notification.MailTemplateItemsResponse.displayName = 'proto.notification.MailTemplateItemsResponse';
596
+ }
420
597
 
421
598
 
422
599
 
@@ -713,7 +890,8 @@ proto.notification.PaginationRequest.toObject = function(includeInstance, msg) {
713
890
  offset: jspb.Message.getFieldWithDefault(msg, 2, 0),
714
891
  order: jspb.Message.getFieldWithDefault(msg, 3, ""),
715
892
  notificationSearchParams: (f = msg.getNotificationSearchParams()) && proto.notification.NotificationSearchRequest.toObject(includeInstance, f),
716
- userSearchParams: (f = msg.getUserSearchParams()) && proto.notification.UserSearchRequest.toObject(includeInstance, f)
893
+ userSearchParams: (f = msg.getUserSearchParams()) && proto.notification.UserSearchRequest.toObject(includeInstance, f),
894
+ mailTemplateSearchParams: (f = msg.getMailTemplateSearchParams()) && proto.notification.MailTemplateSearchRequest.toObject(includeInstance, f)
717
895
  };
718
896
 
719
897
  if (includeInstance) {
@@ -772,6 +950,11 @@ proto.notification.PaginationRequest.deserializeBinaryFromReader = function(msg,
772
950
  reader.readMessage(value,proto.notification.UserSearchRequest.deserializeBinaryFromReader);
773
951
  msg.setUserSearchParams(value);
774
952
  break;
953
+ case 6:
954
+ var value = new proto.notification.MailTemplateSearchRequest;
955
+ reader.readMessage(value,proto.notification.MailTemplateSearchRequest.deserializeBinaryFromReader);
956
+ msg.setMailTemplateSearchParams(value);
957
+ break;
775
958
  default:
776
959
  reader.skipField();
777
960
  break;
@@ -838,6 +1021,14 @@ proto.notification.PaginationRequest.serializeBinaryToWriter = function(message,
838
1021
  proto.notification.UserSearchRequest.serializeBinaryToWriter
839
1022
  );
840
1023
  }
1024
+ f = message.getMailTemplateSearchParams();
1025
+ if (f != null) {
1026
+ writer.writeMessage(
1027
+ 6,
1028
+ f,
1029
+ proto.notification.MailTemplateSearchRequest.serializeBinaryToWriter
1030
+ );
1031
+ }
841
1032
  };
842
1033
 
843
1034
 
@@ -987,6 +1178,43 @@ proto.notification.PaginationRequest.prototype.hasUserSearchParams = function()
987
1178
  };
988
1179
 
989
1180
 
1181
+ /**
1182
+ * optional MailTemplateSearchRequest mail_template_search_params = 6;
1183
+ * @return {?proto.notification.MailTemplateSearchRequest}
1184
+ */
1185
+ proto.notification.PaginationRequest.prototype.getMailTemplateSearchParams = function() {
1186
+ return /** @type{?proto.notification.MailTemplateSearchRequest} */ (
1187
+ jspb.Message.getWrapperField(this, proto.notification.MailTemplateSearchRequest, 6));
1188
+ };
1189
+
1190
+
1191
+ /**
1192
+ * @param {?proto.notification.MailTemplateSearchRequest|undefined} value
1193
+ * @return {!proto.notification.PaginationRequest} returns this
1194
+ */
1195
+ proto.notification.PaginationRequest.prototype.setMailTemplateSearchParams = function(value) {
1196
+ return jspb.Message.setWrapperField(this, 6, value);
1197
+ };
1198
+
1199
+
1200
+ /**
1201
+ * Clears the message field making it undefined.
1202
+ * @return {!proto.notification.PaginationRequest} returns this
1203
+ */
1204
+ proto.notification.PaginationRequest.prototype.clearMailTemplateSearchParams = function() {
1205
+ return this.setMailTemplateSearchParams(undefined);
1206
+ };
1207
+
1208
+
1209
+ /**
1210
+ * Returns whether this field is set.
1211
+ * @return {boolean}
1212
+ */
1213
+ proto.notification.PaginationRequest.prototype.hasMailTemplateSearchParams = function() {
1214
+ return jspb.Message.getField(this, 6) != null;
1215
+ };
1216
+
1217
+
990
1218
 
991
1219
  /**
992
1220
  * List of repeated fields within this message type.
@@ -4404,4 +4632,2237 @@ proto.notification.UserNotificationsCountResponse.prototype.setCount = function(
4404
4632
  };
4405
4633
 
4406
4634
 
4635
+
4636
+
4637
+
4638
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4639
+ /**
4640
+ * Creates an object representation of this proto.
4641
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4642
+ * Optional fields that are not set will be set to undefined.
4643
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4644
+ * For the list of reserved names please see:
4645
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4646
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4647
+ * JSPB instance for transitional soy proto support:
4648
+ * http://goto/soy-param-migration
4649
+ * @return {!Object}
4650
+ */
4651
+ proto.notification.MailTemplateSearchRequest.prototype.toObject = function(opt_includeInstance) {
4652
+ return proto.notification.MailTemplateSearchRequest.toObject(opt_includeInstance, this);
4653
+ };
4654
+
4655
+
4656
+ /**
4657
+ * Static version of the {@see toObject} method.
4658
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4659
+ * the JSPB instance for transitional soy proto support:
4660
+ * http://goto/soy-param-migration
4661
+ * @param {!proto.notification.MailTemplateSearchRequest} msg The msg instance to transform.
4662
+ * @return {!Object}
4663
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4664
+ */
4665
+ proto.notification.MailTemplateSearchRequest.toObject = function(includeInstance, msg) {
4666
+ var f, obj = {
4667
+ templateId: jspb.Message.getFieldWithDefault(msg, 1, 0),
4668
+ key: jspb.Message.getFieldWithDefault(msg, 2, ""),
4669
+ title: jspb.Message.getFieldWithDefault(msg, 3, ""),
4670
+ type: jspb.Message.getFieldWithDefault(msg, 4, ""),
4671
+ isActive: jspb.Message.getFieldWithDefault(msg, 5, 0)
4672
+ };
4673
+
4674
+ if (includeInstance) {
4675
+ obj.$jspbMessageInstance = msg;
4676
+ }
4677
+ return obj;
4678
+ };
4679
+ }
4680
+
4681
+
4682
+ /**
4683
+ * Deserializes binary data (in protobuf wire format).
4684
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4685
+ * @return {!proto.notification.MailTemplateSearchRequest}
4686
+ */
4687
+ proto.notification.MailTemplateSearchRequest.deserializeBinary = function(bytes) {
4688
+ var reader = new jspb.BinaryReader(bytes);
4689
+ var msg = new proto.notification.MailTemplateSearchRequest;
4690
+ return proto.notification.MailTemplateSearchRequest.deserializeBinaryFromReader(msg, reader);
4691
+ };
4692
+
4693
+
4694
+ /**
4695
+ * Deserializes binary data (in protobuf wire format) from the
4696
+ * given reader into the given message object.
4697
+ * @param {!proto.notification.MailTemplateSearchRequest} msg The message object to deserialize into.
4698
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4699
+ * @return {!proto.notification.MailTemplateSearchRequest}
4700
+ */
4701
+ proto.notification.MailTemplateSearchRequest.deserializeBinaryFromReader = function(msg, reader) {
4702
+ while (reader.nextField()) {
4703
+ if (reader.isEndGroup()) {
4704
+ break;
4705
+ }
4706
+ var field = reader.getFieldNumber();
4707
+ switch (field) {
4708
+ case 1:
4709
+ var value = /** @type {number} */ (reader.readInt32());
4710
+ msg.setTemplateId(value);
4711
+ break;
4712
+ case 2:
4713
+ var value = /** @type {string} */ (reader.readString());
4714
+ msg.setKey(value);
4715
+ break;
4716
+ case 3:
4717
+ var value = /** @type {string} */ (reader.readString());
4718
+ msg.setTitle(value);
4719
+ break;
4720
+ case 4:
4721
+ var value = /** @type {string} */ (reader.readString());
4722
+ msg.setType(value);
4723
+ break;
4724
+ case 5:
4725
+ var value = /** @type {number} */ (reader.readInt32());
4726
+ msg.setIsActive(value);
4727
+ break;
4728
+ default:
4729
+ reader.skipField();
4730
+ break;
4731
+ }
4732
+ }
4733
+ return msg;
4734
+ };
4735
+
4736
+
4737
+ /**
4738
+ * Serializes the message to binary data (in protobuf wire format).
4739
+ * @return {!Uint8Array}
4740
+ */
4741
+ proto.notification.MailTemplateSearchRequest.prototype.serializeBinary = function() {
4742
+ var writer = new jspb.BinaryWriter();
4743
+ proto.notification.MailTemplateSearchRequest.serializeBinaryToWriter(this, writer);
4744
+ return writer.getResultBuffer();
4745
+ };
4746
+
4747
+
4748
+ /**
4749
+ * Serializes the given message to binary data (in protobuf wire
4750
+ * format), writing to the given BinaryWriter.
4751
+ * @param {!proto.notification.MailTemplateSearchRequest} message
4752
+ * @param {!jspb.BinaryWriter} writer
4753
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4754
+ */
4755
+ proto.notification.MailTemplateSearchRequest.serializeBinaryToWriter = function(message, writer) {
4756
+ var f = undefined;
4757
+ f = /** @type {number} */ (jspb.Message.getField(message, 1));
4758
+ if (f != null) {
4759
+ writer.writeInt32(
4760
+ 1,
4761
+ f
4762
+ );
4763
+ }
4764
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
4765
+ if (f != null) {
4766
+ writer.writeString(
4767
+ 2,
4768
+ f
4769
+ );
4770
+ }
4771
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
4772
+ if (f != null) {
4773
+ writer.writeString(
4774
+ 3,
4775
+ f
4776
+ );
4777
+ }
4778
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
4779
+ if (f != null) {
4780
+ writer.writeString(
4781
+ 4,
4782
+ f
4783
+ );
4784
+ }
4785
+ f = /** @type {number} */ (jspb.Message.getField(message, 5));
4786
+ if (f != null) {
4787
+ writer.writeInt32(
4788
+ 5,
4789
+ f
4790
+ );
4791
+ }
4792
+ };
4793
+
4794
+
4795
+ /**
4796
+ * optional int32 template_id = 1;
4797
+ * @return {number}
4798
+ */
4799
+ proto.notification.MailTemplateSearchRequest.prototype.getTemplateId = function() {
4800
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
4801
+ };
4802
+
4803
+
4804
+ /**
4805
+ * @param {number} value
4806
+ * @return {!proto.notification.MailTemplateSearchRequest} returns this
4807
+ */
4808
+ proto.notification.MailTemplateSearchRequest.prototype.setTemplateId = function(value) {
4809
+ return jspb.Message.setField(this, 1, value);
4810
+ };
4811
+
4812
+
4813
+ /**
4814
+ * Clears the field making it undefined.
4815
+ * @return {!proto.notification.MailTemplateSearchRequest} returns this
4816
+ */
4817
+ proto.notification.MailTemplateSearchRequest.prototype.clearTemplateId = function() {
4818
+ return jspb.Message.setField(this, 1, undefined);
4819
+ };
4820
+
4821
+
4822
+ /**
4823
+ * Returns whether this field is set.
4824
+ * @return {boolean}
4825
+ */
4826
+ proto.notification.MailTemplateSearchRequest.prototype.hasTemplateId = function() {
4827
+ return jspb.Message.getField(this, 1) != null;
4828
+ };
4829
+
4830
+
4831
+ /**
4832
+ * optional string key = 2;
4833
+ * @return {string}
4834
+ */
4835
+ proto.notification.MailTemplateSearchRequest.prototype.getKey = function() {
4836
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
4837
+ };
4838
+
4839
+
4840
+ /**
4841
+ * @param {string} value
4842
+ * @return {!proto.notification.MailTemplateSearchRequest} returns this
4843
+ */
4844
+ proto.notification.MailTemplateSearchRequest.prototype.setKey = function(value) {
4845
+ return jspb.Message.setField(this, 2, value);
4846
+ };
4847
+
4848
+
4849
+ /**
4850
+ * Clears the field making it undefined.
4851
+ * @return {!proto.notification.MailTemplateSearchRequest} returns this
4852
+ */
4853
+ proto.notification.MailTemplateSearchRequest.prototype.clearKey = function() {
4854
+ return jspb.Message.setField(this, 2, undefined);
4855
+ };
4856
+
4857
+
4858
+ /**
4859
+ * Returns whether this field is set.
4860
+ * @return {boolean}
4861
+ */
4862
+ proto.notification.MailTemplateSearchRequest.prototype.hasKey = function() {
4863
+ return jspb.Message.getField(this, 2) != null;
4864
+ };
4865
+
4866
+
4867
+ /**
4868
+ * optional string title = 3;
4869
+ * @return {string}
4870
+ */
4871
+ proto.notification.MailTemplateSearchRequest.prototype.getTitle = function() {
4872
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
4873
+ };
4874
+
4875
+
4876
+ /**
4877
+ * @param {string} value
4878
+ * @return {!proto.notification.MailTemplateSearchRequest} returns this
4879
+ */
4880
+ proto.notification.MailTemplateSearchRequest.prototype.setTitle = function(value) {
4881
+ return jspb.Message.setField(this, 3, value);
4882
+ };
4883
+
4884
+
4885
+ /**
4886
+ * Clears the field making it undefined.
4887
+ * @return {!proto.notification.MailTemplateSearchRequest} returns this
4888
+ */
4889
+ proto.notification.MailTemplateSearchRequest.prototype.clearTitle = function() {
4890
+ return jspb.Message.setField(this, 3, undefined);
4891
+ };
4892
+
4893
+
4894
+ /**
4895
+ * Returns whether this field is set.
4896
+ * @return {boolean}
4897
+ */
4898
+ proto.notification.MailTemplateSearchRequest.prototype.hasTitle = function() {
4899
+ return jspb.Message.getField(this, 3) != null;
4900
+ };
4901
+
4902
+
4903
+ /**
4904
+ * optional string type = 4;
4905
+ * @return {string}
4906
+ */
4907
+ proto.notification.MailTemplateSearchRequest.prototype.getType = function() {
4908
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
4909
+ };
4910
+
4911
+
4912
+ /**
4913
+ * @param {string} value
4914
+ * @return {!proto.notification.MailTemplateSearchRequest} returns this
4915
+ */
4916
+ proto.notification.MailTemplateSearchRequest.prototype.setType = function(value) {
4917
+ return jspb.Message.setField(this, 4, value);
4918
+ };
4919
+
4920
+
4921
+ /**
4922
+ * Clears the field making it undefined.
4923
+ * @return {!proto.notification.MailTemplateSearchRequest} returns this
4924
+ */
4925
+ proto.notification.MailTemplateSearchRequest.prototype.clearType = function() {
4926
+ return jspb.Message.setField(this, 4, undefined);
4927
+ };
4928
+
4929
+
4930
+ /**
4931
+ * Returns whether this field is set.
4932
+ * @return {boolean}
4933
+ */
4934
+ proto.notification.MailTemplateSearchRequest.prototype.hasType = function() {
4935
+ return jspb.Message.getField(this, 4) != null;
4936
+ };
4937
+
4938
+
4939
+ /**
4940
+ * optional int32 is_active = 5;
4941
+ * @return {number}
4942
+ */
4943
+ proto.notification.MailTemplateSearchRequest.prototype.getIsActive = function() {
4944
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
4945
+ };
4946
+
4947
+
4948
+ /**
4949
+ * @param {number} value
4950
+ * @return {!proto.notification.MailTemplateSearchRequest} returns this
4951
+ */
4952
+ proto.notification.MailTemplateSearchRequest.prototype.setIsActive = function(value) {
4953
+ return jspb.Message.setField(this, 5, value);
4954
+ };
4955
+
4956
+
4957
+ /**
4958
+ * Clears the field making it undefined.
4959
+ * @return {!proto.notification.MailTemplateSearchRequest} returns this
4960
+ */
4961
+ proto.notification.MailTemplateSearchRequest.prototype.clearIsActive = function() {
4962
+ return jspb.Message.setField(this, 5, undefined);
4963
+ };
4964
+
4965
+
4966
+ /**
4967
+ * Returns whether this field is set.
4968
+ * @return {boolean}
4969
+ */
4970
+ proto.notification.MailTemplateSearchRequest.prototype.hasIsActive = function() {
4971
+ return jspb.Message.getField(this, 5) != null;
4972
+ };
4973
+
4974
+
4975
+
4976
+
4977
+
4978
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4979
+ /**
4980
+ * Creates an object representation of this proto.
4981
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4982
+ * Optional fields that are not set will be set to undefined.
4983
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4984
+ * For the list of reserved names please see:
4985
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4986
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4987
+ * JSPB instance for transitional soy proto support:
4988
+ * http://goto/soy-param-migration
4989
+ * @return {!Object}
4990
+ */
4991
+ proto.notification.MailTemplateData.prototype.toObject = function(opt_includeInstance) {
4992
+ return proto.notification.MailTemplateData.toObject(opt_includeInstance, this);
4993
+ };
4994
+
4995
+
4996
+ /**
4997
+ * Static version of the {@see toObject} method.
4998
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4999
+ * the JSPB instance for transitional soy proto support:
5000
+ * http://goto/soy-param-migration
5001
+ * @param {!proto.notification.MailTemplateData} msg The msg instance to transform.
5002
+ * @return {!Object}
5003
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5004
+ */
5005
+ proto.notification.MailTemplateData.toObject = function(includeInstance, msg) {
5006
+ var f, obj = {
5007
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
5008
+ key: jspb.Message.getFieldWithDefault(msg, 2, ""),
5009
+ title: jspb.Message.getFieldWithDefault(msg, 3, ""),
5010
+ type: jspb.Message.getFieldWithDefault(msg, 4, ""),
5011
+ isActive: jspb.Message.getFieldWithDefault(msg, 5, 0),
5012
+ content: jspb.Message.getFieldWithDefault(msg, 6, ""),
5013
+ headerImageRef: jspb.Message.getFieldWithDefault(msg, 7, ""),
5014
+ footerImageRef: jspb.Message.getFieldWithDefault(msg, 8, ""),
5015
+ conditions: jspb.Message.getFieldWithDefault(msg, 9, ""),
5016
+ order: jspb.Message.getFieldWithDefault(msg, 10, "")
5017
+ };
5018
+
5019
+ if (includeInstance) {
5020
+ obj.$jspbMessageInstance = msg;
5021
+ }
5022
+ return obj;
5023
+ };
5024
+ }
5025
+
5026
+
5027
+ /**
5028
+ * Deserializes binary data (in protobuf wire format).
5029
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
5030
+ * @return {!proto.notification.MailTemplateData}
5031
+ */
5032
+ proto.notification.MailTemplateData.deserializeBinary = function(bytes) {
5033
+ var reader = new jspb.BinaryReader(bytes);
5034
+ var msg = new proto.notification.MailTemplateData;
5035
+ return proto.notification.MailTemplateData.deserializeBinaryFromReader(msg, reader);
5036
+ };
5037
+
5038
+
5039
+ /**
5040
+ * Deserializes binary data (in protobuf wire format) from the
5041
+ * given reader into the given message object.
5042
+ * @param {!proto.notification.MailTemplateData} msg The message object to deserialize into.
5043
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
5044
+ * @return {!proto.notification.MailTemplateData}
5045
+ */
5046
+ proto.notification.MailTemplateData.deserializeBinaryFromReader = function(msg, reader) {
5047
+ while (reader.nextField()) {
5048
+ if (reader.isEndGroup()) {
5049
+ break;
5050
+ }
5051
+ var field = reader.getFieldNumber();
5052
+ switch (field) {
5053
+ case 1:
5054
+ var value = /** @type {number} */ (reader.readInt32());
5055
+ msg.setId(value);
5056
+ break;
5057
+ case 2:
5058
+ var value = /** @type {string} */ (reader.readString());
5059
+ msg.setKey(value);
5060
+ break;
5061
+ case 3:
5062
+ var value = /** @type {string} */ (reader.readString());
5063
+ msg.setTitle(value);
5064
+ break;
5065
+ case 4:
5066
+ var value = /** @type {string} */ (reader.readString());
5067
+ msg.setType(value);
5068
+ break;
5069
+ case 5:
5070
+ var value = /** @type {number} */ (reader.readInt32());
5071
+ msg.setIsActive(value);
5072
+ break;
5073
+ case 6:
5074
+ var value = /** @type {string} */ (reader.readString());
5075
+ msg.setContent(value);
5076
+ break;
5077
+ case 7:
5078
+ var value = /** @type {string} */ (reader.readString());
5079
+ msg.setHeaderImageRef(value);
5080
+ break;
5081
+ case 8:
5082
+ var value = /** @type {string} */ (reader.readString());
5083
+ msg.setFooterImageRef(value);
5084
+ break;
5085
+ case 9:
5086
+ var value = /** @type {string} */ (reader.readString());
5087
+ msg.setConditions(value);
5088
+ break;
5089
+ case 10:
5090
+ var value = /** @type {string} */ (reader.readString());
5091
+ msg.setOrder(value);
5092
+ break;
5093
+ default:
5094
+ reader.skipField();
5095
+ break;
5096
+ }
5097
+ }
5098
+ return msg;
5099
+ };
5100
+
5101
+
5102
+ /**
5103
+ * Serializes the message to binary data (in protobuf wire format).
5104
+ * @return {!Uint8Array}
5105
+ */
5106
+ proto.notification.MailTemplateData.prototype.serializeBinary = function() {
5107
+ var writer = new jspb.BinaryWriter();
5108
+ proto.notification.MailTemplateData.serializeBinaryToWriter(this, writer);
5109
+ return writer.getResultBuffer();
5110
+ };
5111
+
5112
+
5113
+ /**
5114
+ * Serializes the given message to binary data (in protobuf wire
5115
+ * format), writing to the given BinaryWriter.
5116
+ * @param {!proto.notification.MailTemplateData} message
5117
+ * @param {!jspb.BinaryWriter} writer
5118
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5119
+ */
5120
+ proto.notification.MailTemplateData.serializeBinaryToWriter = function(message, writer) {
5121
+ var f = undefined;
5122
+ f = /** @type {number} */ (jspb.Message.getField(message, 1));
5123
+ if (f != null) {
5124
+ writer.writeInt32(
5125
+ 1,
5126
+ f
5127
+ );
5128
+ }
5129
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
5130
+ if (f != null) {
5131
+ writer.writeString(
5132
+ 2,
5133
+ f
5134
+ );
5135
+ }
5136
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
5137
+ if (f != null) {
5138
+ writer.writeString(
5139
+ 3,
5140
+ f
5141
+ );
5142
+ }
5143
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
5144
+ if (f != null) {
5145
+ writer.writeString(
5146
+ 4,
5147
+ f
5148
+ );
5149
+ }
5150
+ f = /** @type {number} */ (jspb.Message.getField(message, 5));
5151
+ if (f != null) {
5152
+ writer.writeInt32(
5153
+ 5,
5154
+ f
5155
+ );
5156
+ }
5157
+ f = /** @type {string} */ (jspb.Message.getField(message, 6));
5158
+ if (f != null) {
5159
+ writer.writeString(
5160
+ 6,
5161
+ f
5162
+ );
5163
+ }
5164
+ f = /** @type {string} */ (jspb.Message.getField(message, 7));
5165
+ if (f != null) {
5166
+ writer.writeString(
5167
+ 7,
5168
+ f
5169
+ );
5170
+ }
5171
+ f = /** @type {string} */ (jspb.Message.getField(message, 8));
5172
+ if (f != null) {
5173
+ writer.writeString(
5174
+ 8,
5175
+ f
5176
+ );
5177
+ }
5178
+ f = /** @type {string} */ (jspb.Message.getField(message, 9));
5179
+ if (f != null) {
5180
+ writer.writeString(
5181
+ 9,
5182
+ f
5183
+ );
5184
+ }
5185
+ f = /** @type {string} */ (jspb.Message.getField(message, 10));
5186
+ if (f != null) {
5187
+ writer.writeString(
5188
+ 10,
5189
+ f
5190
+ );
5191
+ }
5192
+ };
5193
+
5194
+
5195
+ /**
5196
+ * optional int32 id = 1;
5197
+ * @return {number}
5198
+ */
5199
+ proto.notification.MailTemplateData.prototype.getId = function() {
5200
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
5201
+ };
5202
+
5203
+
5204
+ /**
5205
+ * @param {number} value
5206
+ * @return {!proto.notification.MailTemplateData} returns this
5207
+ */
5208
+ proto.notification.MailTemplateData.prototype.setId = function(value) {
5209
+ return jspb.Message.setField(this, 1, value);
5210
+ };
5211
+
5212
+
5213
+ /**
5214
+ * Clears the field making it undefined.
5215
+ * @return {!proto.notification.MailTemplateData} returns this
5216
+ */
5217
+ proto.notification.MailTemplateData.prototype.clearId = function() {
5218
+ return jspb.Message.setField(this, 1, undefined);
5219
+ };
5220
+
5221
+
5222
+ /**
5223
+ * Returns whether this field is set.
5224
+ * @return {boolean}
5225
+ */
5226
+ proto.notification.MailTemplateData.prototype.hasId = function() {
5227
+ return jspb.Message.getField(this, 1) != null;
5228
+ };
5229
+
5230
+
5231
+ /**
5232
+ * optional string key = 2;
5233
+ * @return {string}
5234
+ */
5235
+ proto.notification.MailTemplateData.prototype.getKey = function() {
5236
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
5237
+ };
5238
+
5239
+
5240
+ /**
5241
+ * @param {string} value
5242
+ * @return {!proto.notification.MailTemplateData} returns this
5243
+ */
5244
+ proto.notification.MailTemplateData.prototype.setKey = function(value) {
5245
+ return jspb.Message.setField(this, 2, value);
5246
+ };
5247
+
5248
+
5249
+ /**
5250
+ * Clears the field making it undefined.
5251
+ * @return {!proto.notification.MailTemplateData} returns this
5252
+ */
5253
+ proto.notification.MailTemplateData.prototype.clearKey = function() {
5254
+ return jspb.Message.setField(this, 2, undefined);
5255
+ };
5256
+
5257
+
5258
+ /**
5259
+ * Returns whether this field is set.
5260
+ * @return {boolean}
5261
+ */
5262
+ proto.notification.MailTemplateData.prototype.hasKey = function() {
5263
+ return jspb.Message.getField(this, 2) != null;
5264
+ };
5265
+
5266
+
5267
+ /**
5268
+ * optional string title = 3;
5269
+ * @return {string}
5270
+ */
5271
+ proto.notification.MailTemplateData.prototype.getTitle = function() {
5272
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
5273
+ };
5274
+
5275
+
5276
+ /**
5277
+ * @param {string} value
5278
+ * @return {!proto.notification.MailTemplateData} returns this
5279
+ */
5280
+ proto.notification.MailTemplateData.prototype.setTitle = function(value) {
5281
+ return jspb.Message.setField(this, 3, value);
5282
+ };
5283
+
5284
+
5285
+ /**
5286
+ * Clears the field making it undefined.
5287
+ * @return {!proto.notification.MailTemplateData} returns this
5288
+ */
5289
+ proto.notification.MailTemplateData.prototype.clearTitle = function() {
5290
+ return jspb.Message.setField(this, 3, undefined);
5291
+ };
5292
+
5293
+
5294
+ /**
5295
+ * Returns whether this field is set.
5296
+ * @return {boolean}
5297
+ */
5298
+ proto.notification.MailTemplateData.prototype.hasTitle = function() {
5299
+ return jspb.Message.getField(this, 3) != null;
5300
+ };
5301
+
5302
+
5303
+ /**
5304
+ * optional string type = 4;
5305
+ * @return {string}
5306
+ */
5307
+ proto.notification.MailTemplateData.prototype.getType = function() {
5308
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
5309
+ };
5310
+
5311
+
5312
+ /**
5313
+ * @param {string} value
5314
+ * @return {!proto.notification.MailTemplateData} returns this
5315
+ */
5316
+ proto.notification.MailTemplateData.prototype.setType = function(value) {
5317
+ return jspb.Message.setField(this, 4, value);
5318
+ };
5319
+
5320
+
5321
+ /**
5322
+ * Clears the field making it undefined.
5323
+ * @return {!proto.notification.MailTemplateData} returns this
5324
+ */
5325
+ proto.notification.MailTemplateData.prototype.clearType = function() {
5326
+ return jspb.Message.setField(this, 4, undefined);
5327
+ };
5328
+
5329
+
5330
+ /**
5331
+ * Returns whether this field is set.
5332
+ * @return {boolean}
5333
+ */
5334
+ proto.notification.MailTemplateData.prototype.hasType = function() {
5335
+ return jspb.Message.getField(this, 4) != null;
5336
+ };
5337
+
5338
+
5339
+ /**
5340
+ * optional int32 is_active = 5;
5341
+ * @return {number}
5342
+ */
5343
+ proto.notification.MailTemplateData.prototype.getIsActive = function() {
5344
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
5345
+ };
5346
+
5347
+
5348
+ /**
5349
+ * @param {number} value
5350
+ * @return {!proto.notification.MailTemplateData} returns this
5351
+ */
5352
+ proto.notification.MailTemplateData.prototype.setIsActive = function(value) {
5353
+ return jspb.Message.setField(this, 5, value);
5354
+ };
5355
+
5356
+
5357
+ /**
5358
+ * Clears the field making it undefined.
5359
+ * @return {!proto.notification.MailTemplateData} returns this
5360
+ */
5361
+ proto.notification.MailTemplateData.prototype.clearIsActive = function() {
5362
+ return jspb.Message.setField(this, 5, undefined);
5363
+ };
5364
+
5365
+
5366
+ /**
5367
+ * Returns whether this field is set.
5368
+ * @return {boolean}
5369
+ */
5370
+ proto.notification.MailTemplateData.prototype.hasIsActive = function() {
5371
+ return jspb.Message.getField(this, 5) != null;
5372
+ };
5373
+
5374
+
5375
+ /**
5376
+ * optional string content = 6;
5377
+ * @return {string}
5378
+ */
5379
+ proto.notification.MailTemplateData.prototype.getContent = function() {
5380
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
5381
+ };
5382
+
5383
+
5384
+ /**
5385
+ * @param {string} value
5386
+ * @return {!proto.notification.MailTemplateData} returns this
5387
+ */
5388
+ proto.notification.MailTemplateData.prototype.setContent = function(value) {
5389
+ return jspb.Message.setField(this, 6, value);
5390
+ };
5391
+
5392
+
5393
+ /**
5394
+ * Clears the field making it undefined.
5395
+ * @return {!proto.notification.MailTemplateData} returns this
5396
+ */
5397
+ proto.notification.MailTemplateData.prototype.clearContent = function() {
5398
+ return jspb.Message.setField(this, 6, undefined);
5399
+ };
5400
+
5401
+
5402
+ /**
5403
+ * Returns whether this field is set.
5404
+ * @return {boolean}
5405
+ */
5406
+ proto.notification.MailTemplateData.prototype.hasContent = function() {
5407
+ return jspb.Message.getField(this, 6) != null;
5408
+ };
5409
+
5410
+
5411
+ /**
5412
+ * optional string header_image_ref = 7;
5413
+ * @return {string}
5414
+ */
5415
+ proto.notification.MailTemplateData.prototype.getHeaderImageRef = function() {
5416
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
5417
+ };
5418
+
5419
+
5420
+ /**
5421
+ * @param {string} value
5422
+ * @return {!proto.notification.MailTemplateData} returns this
5423
+ */
5424
+ proto.notification.MailTemplateData.prototype.setHeaderImageRef = function(value) {
5425
+ return jspb.Message.setField(this, 7, value);
5426
+ };
5427
+
5428
+
5429
+ /**
5430
+ * Clears the field making it undefined.
5431
+ * @return {!proto.notification.MailTemplateData} returns this
5432
+ */
5433
+ proto.notification.MailTemplateData.prototype.clearHeaderImageRef = function() {
5434
+ return jspb.Message.setField(this, 7, undefined);
5435
+ };
5436
+
5437
+
5438
+ /**
5439
+ * Returns whether this field is set.
5440
+ * @return {boolean}
5441
+ */
5442
+ proto.notification.MailTemplateData.prototype.hasHeaderImageRef = function() {
5443
+ return jspb.Message.getField(this, 7) != null;
5444
+ };
5445
+
5446
+
5447
+ /**
5448
+ * optional string footer_image_ref = 8;
5449
+ * @return {string}
5450
+ */
5451
+ proto.notification.MailTemplateData.prototype.getFooterImageRef = function() {
5452
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
5453
+ };
5454
+
5455
+
5456
+ /**
5457
+ * @param {string} value
5458
+ * @return {!proto.notification.MailTemplateData} returns this
5459
+ */
5460
+ proto.notification.MailTemplateData.prototype.setFooterImageRef = function(value) {
5461
+ return jspb.Message.setField(this, 8, value);
5462
+ };
5463
+
5464
+
5465
+ /**
5466
+ * Clears the field making it undefined.
5467
+ * @return {!proto.notification.MailTemplateData} returns this
5468
+ */
5469
+ proto.notification.MailTemplateData.prototype.clearFooterImageRef = function() {
5470
+ return jspb.Message.setField(this, 8, undefined);
5471
+ };
5472
+
5473
+
5474
+ /**
5475
+ * Returns whether this field is set.
5476
+ * @return {boolean}
5477
+ */
5478
+ proto.notification.MailTemplateData.prototype.hasFooterImageRef = function() {
5479
+ return jspb.Message.getField(this, 8) != null;
5480
+ };
5481
+
5482
+
5483
+ /**
5484
+ * optional string conditions = 9;
5485
+ * @return {string}
5486
+ */
5487
+ proto.notification.MailTemplateData.prototype.getConditions = function() {
5488
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
5489
+ };
5490
+
5491
+
5492
+ /**
5493
+ * @param {string} value
5494
+ * @return {!proto.notification.MailTemplateData} returns this
5495
+ */
5496
+ proto.notification.MailTemplateData.prototype.setConditions = function(value) {
5497
+ return jspb.Message.setField(this, 9, value);
5498
+ };
5499
+
5500
+
5501
+ /**
5502
+ * Clears the field making it undefined.
5503
+ * @return {!proto.notification.MailTemplateData} returns this
5504
+ */
5505
+ proto.notification.MailTemplateData.prototype.clearConditions = function() {
5506
+ return jspb.Message.setField(this, 9, undefined);
5507
+ };
5508
+
5509
+
5510
+ /**
5511
+ * Returns whether this field is set.
5512
+ * @return {boolean}
5513
+ */
5514
+ proto.notification.MailTemplateData.prototype.hasConditions = function() {
5515
+ return jspb.Message.getField(this, 9) != null;
5516
+ };
5517
+
5518
+
5519
+ /**
5520
+ * optional string order = 10;
5521
+ * @return {string}
5522
+ */
5523
+ proto.notification.MailTemplateData.prototype.getOrder = function() {
5524
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
5525
+ };
5526
+
5527
+
5528
+ /**
5529
+ * @param {string} value
5530
+ * @return {!proto.notification.MailTemplateData} returns this
5531
+ */
5532
+ proto.notification.MailTemplateData.prototype.setOrder = function(value) {
5533
+ return jspb.Message.setField(this, 10, value);
5534
+ };
5535
+
5536
+
5537
+ /**
5538
+ * Clears the field making it undefined.
5539
+ * @return {!proto.notification.MailTemplateData} returns this
5540
+ */
5541
+ proto.notification.MailTemplateData.prototype.clearOrder = function() {
5542
+ return jspb.Message.setField(this, 10, undefined);
5543
+ };
5544
+
5545
+
5546
+ /**
5547
+ * Returns whether this field is set.
5548
+ * @return {boolean}
5549
+ */
5550
+ proto.notification.MailTemplateData.prototype.hasOrder = function() {
5551
+ return jspb.Message.getField(this, 10) != null;
5552
+ };
5553
+
5554
+
5555
+
5556
+ /**
5557
+ * Oneof group definitions for this message. Each group defines the field
5558
+ * numbers belonging to that group. When of these fields' value is set, all
5559
+ * other fields in the group are cleared. During deserialization, if multiple
5560
+ * fields are encountered for a group, only the last value seen will be kept.
5561
+ * @private {!Array<!Array<number>>}
5562
+ * @const
5563
+ */
5564
+ proto.notification.MailTemplateChunk.oneofGroups_ = [[1,2]];
5565
+
5566
+ /**
5567
+ * @enum {number}
5568
+ */
5569
+ proto.notification.MailTemplateChunk.DataOrFileCase = {
5570
+ DATA_OR_FILE_NOT_SET: 0,
5571
+ MAIL_TEMPLATE_DATA: 1,
5572
+ FILE: 2
5573
+ };
5574
+
5575
+ /**
5576
+ * @return {proto.notification.MailTemplateChunk.DataOrFileCase}
5577
+ */
5578
+ proto.notification.MailTemplateChunk.prototype.getDataOrFileCase = function() {
5579
+ return /** @type {proto.notification.MailTemplateChunk.DataOrFileCase} */(jspb.Message.computeOneofCase(this, proto.notification.MailTemplateChunk.oneofGroups_[0]));
5580
+ };
5581
+
5582
+
5583
+
5584
+ if (jspb.Message.GENERATE_TO_OBJECT) {
5585
+ /**
5586
+ * Creates an object representation of this proto.
5587
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
5588
+ * Optional fields that are not set will be set to undefined.
5589
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
5590
+ * For the list of reserved names please see:
5591
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
5592
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
5593
+ * JSPB instance for transitional soy proto support:
5594
+ * http://goto/soy-param-migration
5595
+ * @return {!Object}
5596
+ */
5597
+ proto.notification.MailTemplateChunk.prototype.toObject = function(opt_includeInstance) {
5598
+ return proto.notification.MailTemplateChunk.toObject(opt_includeInstance, this);
5599
+ };
5600
+
5601
+
5602
+ /**
5603
+ * Static version of the {@see toObject} method.
5604
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
5605
+ * the JSPB instance for transitional soy proto support:
5606
+ * http://goto/soy-param-migration
5607
+ * @param {!proto.notification.MailTemplateChunk} msg The msg instance to transform.
5608
+ * @return {!Object}
5609
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5610
+ */
5611
+ proto.notification.MailTemplateChunk.toObject = function(includeInstance, msg) {
5612
+ var f, obj = {
5613
+ mailTemplateData: (f = msg.getMailTemplateData()) && proto.notification.MailTemplateData.toObject(includeInstance, f),
5614
+ file: (f = msg.getFile()) && proto.notification.File.toObject(includeInstance, f)
5615
+ };
5616
+
5617
+ if (includeInstance) {
5618
+ obj.$jspbMessageInstance = msg;
5619
+ }
5620
+ return obj;
5621
+ };
5622
+ }
5623
+
5624
+
5625
+ /**
5626
+ * Deserializes binary data (in protobuf wire format).
5627
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
5628
+ * @return {!proto.notification.MailTemplateChunk}
5629
+ */
5630
+ proto.notification.MailTemplateChunk.deserializeBinary = function(bytes) {
5631
+ var reader = new jspb.BinaryReader(bytes);
5632
+ var msg = new proto.notification.MailTemplateChunk;
5633
+ return proto.notification.MailTemplateChunk.deserializeBinaryFromReader(msg, reader);
5634
+ };
5635
+
5636
+
5637
+ /**
5638
+ * Deserializes binary data (in protobuf wire format) from the
5639
+ * given reader into the given message object.
5640
+ * @param {!proto.notification.MailTemplateChunk} msg The message object to deserialize into.
5641
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
5642
+ * @return {!proto.notification.MailTemplateChunk}
5643
+ */
5644
+ proto.notification.MailTemplateChunk.deserializeBinaryFromReader = function(msg, reader) {
5645
+ while (reader.nextField()) {
5646
+ if (reader.isEndGroup()) {
5647
+ break;
5648
+ }
5649
+ var field = reader.getFieldNumber();
5650
+ switch (field) {
5651
+ case 1:
5652
+ var value = new proto.notification.MailTemplateData;
5653
+ reader.readMessage(value,proto.notification.MailTemplateData.deserializeBinaryFromReader);
5654
+ msg.setMailTemplateData(value);
5655
+ break;
5656
+ case 2:
5657
+ var value = new proto.notification.File;
5658
+ reader.readMessage(value,proto.notification.File.deserializeBinaryFromReader);
5659
+ msg.setFile(value);
5660
+ break;
5661
+ default:
5662
+ reader.skipField();
5663
+ break;
5664
+ }
5665
+ }
5666
+ return msg;
5667
+ };
5668
+
5669
+
5670
+ /**
5671
+ * Serializes the message to binary data (in protobuf wire format).
5672
+ * @return {!Uint8Array}
5673
+ */
5674
+ proto.notification.MailTemplateChunk.prototype.serializeBinary = function() {
5675
+ var writer = new jspb.BinaryWriter();
5676
+ proto.notification.MailTemplateChunk.serializeBinaryToWriter(this, writer);
5677
+ return writer.getResultBuffer();
5678
+ };
5679
+
5680
+
5681
+ /**
5682
+ * Serializes the given message to binary data (in protobuf wire
5683
+ * format), writing to the given BinaryWriter.
5684
+ * @param {!proto.notification.MailTemplateChunk} message
5685
+ * @param {!jspb.BinaryWriter} writer
5686
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5687
+ */
5688
+ proto.notification.MailTemplateChunk.serializeBinaryToWriter = function(message, writer) {
5689
+ var f = undefined;
5690
+ f = message.getMailTemplateData();
5691
+ if (f != null) {
5692
+ writer.writeMessage(
5693
+ 1,
5694
+ f,
5695
+ proto.notification.MailTemplateData.serializeBinaryToWriter
5696
+ );
5697
+ }
5698
+ f = message.getFile();
5699
+ if (f != null) {
5700
+ writer.writeMessage(
5701
+ 2,
5702
+ f,
5703
+ proto.notification.File.serializeBinaryToWriter
5704
+ );
5705
+ }
5706
+ };
5707
+
5708
+
5709
+ /**
5710
+ * optional MailTemplateData mail_template_data = 1;
5711
+ * @return {?proto.notification.MailTemplateData}
5712
+ */
5713
+ proto.notification.MailTemplateChunk.prototype.getMailTemplateData = function() {
5714
+ return /** @type{?proto.notification.MailTemplateData} */ (
5715
+ jspb.Message.getWrapperField(this, proto.notification.MailTemplateData, 1));
5716
+ };
5717
+
5718
+
5719
+ /**
5720
+ * @param {?proto.notification.MailTemplateData|undefined} value
5721
+ * @return {!proto.notification.MailTemplateChunk} returns this
5722
+ */
5723
+ proto.notification.MailTemplateChunk.prototype.setMailTemplateData = function(value) {
5724
+ return jspb.Message.setOneofWrapperField(this, 1, proto.notification.MailTemplateChunk.oneofGroups_[0], value);
5725
+ };
5726
+
5727
+
5728
+ /**
5729
+ * Clears the message field making it undefined.
5730
+ * @return {!proto.notification.MailTemplateChunk} returns this
5731
+ */
5732
+ proto.notification.MailTemplateChunk.prototype.clearMailTemplateData = function() {
5733
+ return this.setMailTemplateData(undefined);
5734
+ };
5735
+
5736
+
5737
+ /**
5738
+ * Returns whether this field is set.
5739
+ * @return {boolean}
5740
+ */
5741
+ proto.notification.MailTemplateChunk.prototype.hasMailTemplateData = function() {
5742
+ return jspb.Message.getField(this, 1) != null;
5743
+ };
5744
+
5745
+
5746
+ /**
5747
+ * optional File file = 2;
5748
+ * @return {?proto.notification.File}
5749
+ */
5750
+ proto.notification.MailTemplateChunk.prototype.getFile = function() {
5751
+ return /** @type{?proto.notification.File} */ (
5752
+ jspb.Message.getWrapperField(this, proto.notification.File, 2));
5753
+ };
5754
+
5755
+
5756
+ /**
5757
+ * @param {?proto.notification.File|undefined} value
5758
+ * @return {!proto.notification.MailTemplateChunk} returns this
5759
+ */
5760
+ proto.notification.MailTemplateChunk.prototype.setFile = function(value) {
5761
+ return jspb.Message.setOneofWrapperField(this, 2, proto.notification.MailTemplateChunk.oneofGroups_[0], value);
5762
+ };
5763
+
5764
+
5765
+ /**
5766
+ * Clears the message field making it undefined.
5767
+ * @return {!proto.notification.MailTemplateChunk} returns this
5768
+ */
5769
+ proto.notification.MailTemplateChunk.prototype.clearFile = function() {
5770
+ return this.setFile(undefined);
5771
+ };
5772
+
5773
+
5774
+ /**
5775
+ * Returns whether this field is set.
5776
+ * @return {boolean}
5777
+ */
5778
+ proto.notification.MailTemplateChunk.prototype.hasFile = function() {
5779
+ return jspb.Message.getField(this, 2) != null;
5780
+ };
5781
+
5782
+
5783
+
5784
+
5785
+
5786
+ if (jspb.Message.GENERATE_TO_OBJECT) {
5787
+ /**
5788
+ * Creates an object representation of this proto.
5789
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
5790
+ * Optional fields that are not set will be set to undefined.
5791
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
5792
+ * For the list of reserved names please see:
5793
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
5794
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
5795
+ * JSPB instance for transitional soy proto support:
5796
+ * http://goto/soy-param-migration
5797
+ * @return {!Object}
5798
+ */
5799
+ proto.notification.GetMailTemplateRequest.prototype.toObject = function(opt_includeInstance) {
5800
+ return proto.notification.GetMailTemplateRequest.toObject(opt_includeInstance, this);
5801
+ };
5802
+
5803
+
5804
+ /**
5805
+ * Static version of the {@see toObject} method.
5806
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
5807
+ * the JSPB instance for transitional soy proto support:
5808
+ * http://goto/soy-param-migration
5809
+ * @param {!proto.notification.GetMailTemplateRequest} msg The msg instance to transform.
5810
+ * @return {!Object}
5811
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5812
+ */
5813
+ proto.notification.GetMailTemplateRequest.toObject = function(includeInstance, msg) {
5814
+ var f, obj = {
5815
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0)
5816
+ };
5817
+
5818
+ if (includeInstance) {
5819
+ obj.$jspbMessageInstance = msg;
5820
+ }
5821
+ return obj;
5822
+ };
5823
+ }
5824
+
5825
+
5826
+ /**
5827
+ * Deserializes binary data (in protobuf wire format).
5828
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
5829
+ * @return {!proto.notification.GetMailTemplateRequest}
5830
+ */
5831
+ proto.notification.GetMailTemplateRequest.deserializeBinary = function(bytes) {
5832
+ var reader = new jspb.BinaryReader(bytes);
5833
+ var msg = new proto.notification.GetMailTemplateRequest;
5834
+ return proto.notification.GetMailTemplateRequest.deserializeBinaryFromReader(msg, reader);
5835
+ };
5836
+
5837
+
5838
+ /**
5839
+ * Deserializes binary data (in protobuf wire format) from the
5840
+ * given reader into the given message object.
5841
+ * @param {!proto.notification.GetMailTemplateRequest} msg The message object to deserialize into.
5842
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
5843
+ * @return {!proto.notification.GetMailTemplateRequest}
5844
+ */
5845
+ proto.notification.GetMailTemplateRequest.deserializeBinaryFromReader = function(msg, reader) {
5846
+ while (reader.nextField()) {
5847
+ if (reader.isEndGroup()) {
5848
+ break;
5849
+ }
5850
+ var field = reader.getFieldNumber();
5851
+ switch (field) {
5852
+ case 1:
5853
+ var value = /** @type {number} */ (reader.readInt32());
5854
+ msg.setId(value);
5855
+ break;
5856
+ default:
5857
+ reader.skipField();
5858
+ break;
5859
+ }
5860
+ }
5861
+ return msg;
5862
+ };
5863
+
5864
+
5865
+ /**
5866
+ * Serializes the message to binary data (in protobuf wire format).
5867
+ * @return {!Uint8Array}
5868
+ */
5869
+ proto.notification.GetMailTemplateRequest.prototype.serializeBinary = function() {
5870
+ var writer = new jspb.BinaryWriter();
5871
+ proto.notification.GetMailTemplateRequest.serializeBinaryToWriter(this, writer);
5872
+ return writer.getResultBuffer();
5873
+ };
5874
+
5875
+
5876
+ /**
5877
+ * Serializes the given message to binary data (in protobuf wire
5878
+ * format), writing to the given BinaryWriter.
5879
+ * @param {!proto.notification.GetMailTemplateRequest} message
5880
+ * @param {!jspb.BinaryWriter} writer
5881
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5882
+ */
5883
+ proto.notification.GetMailTemplateRequest.serializeBinaryToWriter = function(message, writer) {
5884
+ var f = undefined;
5885
+ f = message.getId();
5886
+ if (f !== 0) {
5887
+ writer.writeInt32(
5888
+ 1,
5889
+ f
5890
+ );
5891
+ }
5892
+ };
5893
+
5894
+
5895
+ /**
5896
+ * optional int32 id = 1;
5897
+ * @return {number}
5898
+ */
5899
+ proto.notification.GetMailTemplateRequest.prototype.getId = function() {
5900
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
5901
+ };
5902
+
5903
+
5904
+ /**
5905
+ * @param {number} value
5906
+ * @return {!proto.notification.GetMailTemplateRequest} returns this
5907
+ */
5908
+ proto.notification.GetMailTemplateRequest.prototype.setId = function(value) {
5909
+ return jspb.Message.setProto3IntField(this, 1, value);
5910
+ };
5911
+
5912
+
5913
+
5914
+
5915
+
5916
+ if (jspb.Message.GENERATE_TO_OBJECT) {
5917
+ /**
5918
+ * Creates an object representation of this proto.
5919
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
5920
+ * Optional fields that are not set will be set to undefined.
5921
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
5922
+ * For the list of reserved names please see:
5923
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
5924
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
5925
+ * JSPB instance for transitional soy proto support:
5926
+ * http://goto/soy-param-migration
5927
+ * @return {!Object}
5928
+ */
5929
+ proto.notification.MailTemplateStatusResponse.prototype.toObject = function(opt_includeInstance) {
5930
+ return proto.notification.MailTemplateStatusResponse.toObject(opt_includeInstance, this);
5931
+ };
5932
+
5933
+
5934
+ /**
5935
+ * Static version of the {@see toObject} method.
5936
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
5937
+ * the JSPB instance for transitional soy proto support:
5938
+ * http://goto/soy-param-migration
5939
+ * @param {!proto.notification.MailTemplateStatusResponse} msg The msg instance to transform.
5940
+ * @return {!Object}
5941
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5942
+ */
5943
+ proto.notification.MailTemplateStatusResponse.toObject = function(includeInstance, msg) {
5944
+ var f, obj = {
5945
+ status: jspb.Message.getFieldWithDefault(msg, 1, "")
5946
+ };
5947
+
5948
+ if (includeInstance) {
5949
+ obj.$jspbMessageInstance = msg;
5950
+ }
5951
+ return obj;
5952
+ };
5953
+ }
5954
+
5955
+
5956
+ /**
5957
+ * Deserializes binary data (in protobuf wire format).
5958
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
5959
+ * @return {!proto.notification.MailTemplateStatusResponse}
5960
+ */
5961
+ proto.notification.MailTemplateStatusResponse.deserializeBinary = function(bytes) {
5962
+ var reader = new jspb.BinaryReader(bytes);
5963
+ var msg = new proto.notification.MailTemplateStatusResponse;
5964
+ return proto.notification.MailTemplateStatusResponse.deserializeBinaryFromReader(msg, reader);
5965
+ };
5966
+
5967
+
5968
+ /**
5969
+ * Deserializes binary data (in protobuf wire format) from the
5970
+ * given reader into the given message object.
5971
+ * @param {!proto.notification.MailTemplateStatusResponse} msg The message object to deserialize into.
5972
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
5973
+ * @return {!proto.notification.MailTemplateStatusResponse}
5974
+ */
5975
+ proto.notification.MailTemplateStatusResponse.deserializeBinaryFromReader = function(msg, reader) {
5976
+ while (reader.nextField()) {
5977
+ if (reader.isEndGroup()) {
5978
+ break;
5979
+ }
5980
+ var field = reader.getFieldNumber();
5981
+ switch (field) {
5982
+ case 1:
5983
+ var value = /** @type {string} */ (reader.readString());
5984
+ msg.setStatus(value);
5985
+ break;
5986
+ default:
5987
+ reader.skipField();
5988
+ break;
5989
+ }
5990
+ }
5991
+ return msg;
5992
+ };
5993
+
5994
+
5995
+ /**
5996
+ * Serializes the message to binary data (in protobuf wire format).
5997
+ * @return {!Uint8Array}
5998
+ */
5999
+ proto.notification.MailTemplateStatusResponse.prototype.serializeBinary = function() {
6000
+ var writer = new jspb.BinaryWriter();
6001
+ proto.notification.MailTemplateStatusResponse.serializeBinaryToWriter(this, writer);
6002
+ return writer.getResultBuffer();
6003
+ };
6004
+
6005
+
6006
+ /**
6007
+ * Serializes the given message to binary data (in protobuf wire
6008
+ * format), writing to the given BinaryWriter.
6009
+ * @param {!proto.notification.MailTemplateStatusResponse} message
6010
+ * @param {!jspb.BinaryWriter} writer
6011
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6012
+ */
6013
+ proto.notification.MailTemplateStatusResponse.serializeBinaryToWriter = function(message, writer) {
6014
+ var f = undefined;
6015
+ f = message.getStatus();
6016
+ if (f.length > 0) {
6017
+ writer.writeString(
6018
+ 1,
6019
+ f
6020
+ );
6021
+ }
6022
+ };
6023
+
6024
+
6025
+ /**
6026
+ * optional string status = 1;
6027
+ * @return {string}
6028
+ */
6029
+ proto.notification.MailTemplateStatusResponse.prototype.getStatus = function() {
6030
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
6031
+ };
6032
+
6033
+
6034
+ /**
6035
+ * @param {string} value
6036
+ * @return {!proto.notification.MailTemplateStatusResponse} returns this
6037
+ */
6038
+ proto.notification.MailTemplateStatusResponse.prototype.setStatus = function(value) {
6039
+ return jspb.Message.setProto3StringField(this, 1, value);
6040
+ };
6041
+
6042
+
6043
+
6044
+
6045
+
6046
+ if (jspb.Message.GENERATE_TO_OBJECT) {
6047
+ /**
6048
+ * Creates an object representation of this proto.
6049
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
6050
+ * Optional fields that are not set will be set to undefined.
6051
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
6052
+ * For the list of reserved names please see:
6053
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
6054
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
6055
+ * JSPB instance for transitional soy proto support:
6056
+ * http://goto/soy-param-migration
6057
+ * @return {!Object}
6058
+ */
6059
+ proto.notification.MailTemplateItem.prototype.toObject = function(opt_includeInstance) {
6060
+ return proto.notification.MailTemplateItem.toObject(opt_includeInstance, this);
6061
+ };
6062
+
6063
+
6064
+ /**
6065
+ * Static version of the {@see toObject} method.
6066
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
6067
+ * the JSPB instance for transitional soy proto support:
6068
+ * http://goto/soy-param-migration
6069
+ * @param {!proto.notification.MailTemplateItem} msg The msg instance to transform.
6070
+ * @return {!Object}
6071
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6072
+ */
6073
+ proto.notification.MailTemplateItem.toObject = function(includeInstance, msg) {
6074
+ var f, obj = {
6075
+ id: jspb.Message.getFieldWithDefault(msg, 1, 0),
6076
+ key: jspb.Message.getFieldWithDefault(msg, 2, ""),
6077
+ title: jspb.Message.getFieldWithDefault(msg, 3, ""),
6078
+ type: jspb.Message.getFieldWithDefault(msg, 4, ""),
6079
+ isActive: jspb.Message.getBooleanFieldWithDefault(msg, 5, false),
6080
+ headerImageRef: jspb.Message.getFieldWithDefault(msg, 6, ""),
6081
+ footerImageRef: jspb.Message.getFieldWithDefault(msg, 7, ""),
6082
+ content: jspb.Message.getFieldWithDefault(msg, 8, ""),
6083
+ conditions: jspb.Message.getFieldWithDefault(msg, 9, ""),
6084
+ created: jspb.Message.getFieldWithDefault(msg, 10, "")
6085
+ };
6086
+
6087
+ if (includeInstance) {
6088
+ obj.$jspbMessageInstance = msg;
6089
+ }
6090
+ return obj;
6091
+ };
6092
+ }
6093
+
6094
+
6095
+ /**
6096
+ * Deserializes binary data (in protobuf wire format).
6097
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
6098
+ * @return {!proto.notification.MailTemplateItem}
6099
+ */
6100
+ proto.notification.MailTemplateItem.deserializeBinary = function(bytes) {
6101
+ var reader = new jspb.BinaryReader(bytes);
6102
+ var msg = new proto.notification.MailTemplateItem;
6103
+ return proto.notification.MailTemplateItem.deserializeBinaryFromReader(msg, reader);
6104
+ };
6105
+
6106
+
6107
+ /**
6108
+ * Deserializes binary data (in protobuf wire format) from the
6109
+ * given reader into the given message object.
6110
+ * @param {!proto.notification.MailTemplateItem} msg The message object to deserialize into.
6111
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
6112
+ * @return {!proto.notification.MailTemplateItem}
6113
+ */
6114
+ proto.notification.MailTemplateItem.deserializeBinaryFromReader = function(msg, reader) {
6115
+ while (reader.nextField()) {
6116
+ if (reader.isEndGroup()) {
6117
+ break;
6118
+ }
6119
+ var field = reader.getFieldNumber();
6120
+ switch (field) {
6121
+ case 1:
6122
+ var value = /** @type {number} */ (reader.readInt32());
6123
+ msg.setId(value);
6124
+ break;
6125
+ case 2:
6126
+ var value = /** @type {string} */ (reader.readString());
6127
+ msg.setKey(value);
6128
+ break;
6129
+ case 3:
6130
+ var value = /** @type {string} */ (reader.readString());
6131
+ msg.setTitle(value);
6132
+ break;
6133
+ case 4:
6134
+ var value = /** @type {string} */ (reader.readString());
6135
+ msg.setType(value);
6136
+ break;
6137
+ case 5:
6138
+ var value = /** @type {boolean} */ (reader.readBool());
6139
+ msg.setIsActive(value);
6140
+ break;
6141
+ case 6:
6142
+ var value = /** @type {string} */ (reader.readString());
6143
+ msg.setHeaderImageRef(value);
6144
+ break;
6145
+ case 7:
6146
+ var value = /** @type {string} */ (reader.readString());
6147
+ msg.setFooterImageRef(value);
6148
+ break;
6149
+ case 8:
6150
+ var value = /** @type {string} */ (reader.readString());
6151
+ msg.setContent(value);
6152
+ break;
6153
+ case 9:
6154
+ var value = /** @type {string} */ (reader.readString());
6155
+ msg.setConditions(value);
6156
+ break;
6157
+ case 10:
6158
+ var value = /** @type {string} */ (reader.readString());
6159
+ msg.setCreated(value);
6160
+ break;
6161
+ default:
6162
+ reader.skipField();
6163
+ break;
6164
+ }
6165
+ }
6166
+ return msg;
6167
+ };
6168
+
6169
+
6170
+ /**
6171
+ * Serializes the message to binary data (in protobuf wire format).
6172
+ * @return {!Uint8Array}
6173
+ */
6174
+ proto.notification.MailTemplateItem.prototype.serializeBinary = function() {
6175
+ var writer = new jspb.BinaryWriter();
6176
+ proto.notification.MailTemplateItem.serializeBinaryToWriter(this, writer);
6177
+ return writer.getResultBuffer();
6178
+ };
6179
+
6180
+
6181
+ /**
6182
+ * Serializes the given message to binary data (in protobuf wire
6183
+ * format), writing to the given BinaryWriter.
6184
+ * @param {!proto.notification.MailTemplateItem} message
6185
+ * @param {!jspb.BinaryWriter} writer
6186
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6187
+ */
6188
+ proto.notification.MailTemplateItem.serializeBinaryToWriter = function(message, writer) {
6189
+ var f = undefined;
6190
+ f = message.getId();
6191
+ if (f !== 0) {
6192
+ writer.writeInt32(
6193
+ 1,
6194
+ f
6195
+ );
6196
+ }
6197
+ f = message.getKey();
6198
+ if (f.length > 0) {
6199
+ writer.writeString(
6200
+ 2,
6201
+ f
6202
+ );
6203
+ }
6204
+ f = message.getTitle();
6205
+ if (f.length > 0) {
6206
+ writer.writeString(
6207
+ 3,
6208
+ f
6209
+ );
6210
+ }
6211
+ f = message.getType();
6212
+ if (f.length > 0) {
6213
+ writer.writeString(
6214
+ 4,
6215
+ f
6216
+ );
6217
+ }
6218
+ f = message.getIsActive();
6219
+ if (f) {
6220
+ writer.writeBool(
6221
+ 5,
6222
+ f
6223
+ );
6224
+ }
6225
+ f = message.getHeaderImageRef();
6226
+ if (f.length > 0) {
6227
+ writer.writeString(
6228
+ 6,
6229
+ f
6230
+ );
6231
+ }
6232
+ f = message.getFooterImageRef();
6233
+ if (f.length > 0) {
6234
+ writer.writeString(
6235
+ 7,
6236
+ f
6237
+ );
6238
+ }
6239
+ f = message.getContent();
6240
+ if (f.length > 0) {
6241
+ writer.writeString(
6242
+ 8,
6243
+ f
6244
+ );
6245
+ }
6246
+ f = message.getConditions();
6247
+ if (f.length > 0) {
6248
+ writer.writeString(
6249
+ 9,
6250
+ f
6251
+ );
6252
+ }
6253
+ f = /** @type {string} */ (jspb.Message.getField(message, 10));
6254
+ if (f != null) {
6255
+ writer.writeString(
6256
+ 10,
6257
+ f
6258
+ );
6259
+ }
6260
+ };
6261
+
6262
+
6263
+ /**
6264
+ * optional int32 id = 1;
6265
+ * @return {number}
6266
+ */
6267
+ proto.notification.MailTemplateItem.prototype.getId = function() {
6268
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
6269
+ };
6270
+
6271
+
6272
+ /**
6273
+ * @param {number} value
6274
+ * @return {!proto.notification.MailTemplateItem} returns this
6275
+ */
6276
+ proto.notification.MailTemplateItem.prototype.setId = function(value) {
6277
+ return jspb.Message.setProto3IntField(this, 1, value);
6278
+ };
6279
+
6280
+
6281
+ /**
6282
+ * optional string key = 2;
6283
+ * @return {string}
6284
+ */
6285
+ proto.notification.MailTemplateItem.prototype.getKey = function() {
6286
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
6287
+ };
6288
+
6289
+
6290
+ /**
6291
+ * @param {string} value
6292
+ * @return {!proto.notification.MailTemplateItem} returns this
6293
+ */
6294
+ proto.notification.MailTemplateItem.prototype.setKey = function(value) {
6295
+ return jspb.Message.setProto3StringField(this, 2, value);
6296
+ };
6297
+
6298
+
6299
+ /**
6300
+ * optional string title = 3;
6301
+ * @return {string}
6302
+ */
6303
+ proto.notification.MailTemplateItem.prototype.getTitle = function() {
6304
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
6305
+ };
6306
+
6307
+
6308
+ /**
6309
+ * @param {string} value
6310
+ * @return {!proto.notification.MailTemplateItem} returns this
6311
+ */
6312
+ proto.notification.MailTemplateItem.prototype.setTitle = function(value) {
6313
+ return jspb.Message.setProto3StringField(this, 3, value);
6314
+ };
6315
+
6316
+
6317
+ /**
6318
+ * optional string type = 4;
6319
+ * @return {string}
6320
+ */
6321
+ proto.notification.MailTemplateItem.prototype.getType = function() {
6322
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
6323
+ };
6324
+
6325
+
6326
+ /**
6327
+ * @param {string} value
6328
+ * @return {!proto.notification.MailTemplateItem} returns this
6329
+ */
6330
+ proto.notification.MailTemplateItem.prototype.setType = function(value) {
6331
+ return jspb.Message.setProto3StringField(this, 4, value);
6332
+ };
6333
+
6334
+
6335
+ /**
6336
+ * optional bool is_active = 5;
6337
+ * @return {boolean}
6338
+ */
6339
+ proto.notification.MailTemplateItem.prototype.getIsActive = function() {
6340
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 5, false));
6341
+ };
6342
+
6343
+
6344
+ /**
6345
+ * @param {boolean} value
6346
+ * @return {!proto.notification.MailTemplateItem} returns this
6347
+ */
6348
+ proto.notification.MailTemplateItem.prototype.setIsActive = function(value) {
6349
+ return jspb.Message.setProto3BooleanField(this, 5, value);
6350
+ };
6351
+
6352
+
6353
+ /**
6354
+ * optional string header_image_ref = 6;
6355
+ * @return {string}
6356
+ */
6357
+ proto.notification.MailTemplateItem.prototype.getHeaderImageRef = function() {
6358
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
6359
+ };
6360
+
6361
+
6362
+ /**
6363
+ * @param {string} value
6364
+ * @return {!proto.notification.MailTemplateItem} returns this
6365
+ */
6366
+ proto.notification.MailTemplateItem.prototype.setHeaderImageRef = function(value) {
6367
+ return jspb.Message.setProto3StringField(this, 6, value);
6368
+ };
6369
+
6370
+
6371
+ /**
6372
+ * optional string footer_image_ref = 7;
6373
+ * @return {string}
6374
+ */
6375
+ proto.notification.MailTemplateItem.prototype.getFooterImageRef = function() {
6376
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
6377
+ };
6378
+
6379
+
6380
+ /**
6381
+ * @param {string} value
6382
+ * @return {!proto.notification.MailTemplateItem} returns this
6383
+ */
6384
+ proto.notification.MailTemplateItem.prototype.setFooterImageRef = function(value) {
6385
+ return jspb.Message.setProto3StringField(this, 7, value);
6386
+ };
6387
+
6388
+
6389
+ /**
6390
+ * optional string content = 8;
6391
+ * @return {string}
6392
+ */
6393
+ proto.notification.MailTemplateItem.prototype.getContent = function() {
6394
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
6395
+ };
6396
+
6397
+
6398
+ /**
6399
+ * @param {string} value
6400
+ * @return {!proto.notification.MailTemplateItem} returns this
6401
+ */
6402
+ proto.notification.MailTemplateItem.prototype.setContent = function(value) {
6403
+ return jspb.Message.setProto3StringField(this, 8, value);
6404
+ };
6405
+
6406
+
6407
+ /**
6408
+ * optional string conditions = 9;
6409
+ * @return {string}
6410
+ */
6411
+ proto.notification.MailTemplateItem.prototype.getConditions = function() {
6412
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
6413
+ };
6414
+
6415
+
6416
+ /**
6417
+ * @param {string} value
6418
+ * @return {!proto.notification.MailTemplateItem} returns this
6419
+ */
6420
+ proto.notification.MailTemplateItem.prototype.setConditions = function(value) {
6421
+ return jspb.Message.setProto3StringField(this, 9, value);
6422
+ };
6423
+
6424
+
6425
+ /**
6426
+ * optional string created = 10;
6427
+ * @return {string}
6428
+ */
6429
+ proto.notification.MailTemplateItem.prototype.getCreated = function() {
6430
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 10, ""));
6431
+ };
6432
+
6433
+
6434
+ /**
6435
+ * @param {string} value
6436
+ * @return {!proto.notification.MailTemplateItem} returns this
6437
+ */
6438
+ proto.notification.MailTemplateItem.prototype.setCreated = function(value) {
6439
+ return jspb.Message.setField(this, 10, value);
6440
+ };
6441
+
6442
+
6443
+ /**
6444
+ * Clears the field making it undefined.
6445
+ * @return {!proto.notification.MailTemplateItem} returns this
6446
+ */
6447
+ proto.notification.MailTemplateItem.prototype.clearCreated = function() {
6448
+ return jspb.Message.setField(this, 10, undefined);
6449
+ };
6450
+
6451
+
6452
+ /**
6453
+ * Returns whether this field is set.
6454
+ * @return {boolean}
6455
+ */
6456
+ proto.notification.MailTemplateItem.prototype.hasCreated = function() {
6457
+ return jspb.Message.getField(this, 10) != null;
6458
+ };
6459
+
6460
+
6461
+
6462
+
6463
+
6464
+ if (jspb.Message.GENERATE_TO_OBJECT) {
6465
+ /**
6466
+ * Creates an object representation of this proto.
6467
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
6468
+ * Optional fields that are not set will be set to undefined.
6469
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
6470
+ * For the list of reserved names please see:
6471
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
6472
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
6473
+ * JSPB instance for transitional soy proto support:
6474
+ * http://goto/soy-param-migration
6475
+ * @return {!Object}
6476
+ */
6477
+ proto.notification.MailTemplateResponse.prototype.toObject = function(opt_includeInstance) {
6478
+ return proto.notification.MailTemplateResponse.toObject(opt_includeInstance, this);
6479
+ };
6480
+
6481
+
6482
+ /**
6483
+ * Static version of the {@see toObject} method.
6484
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
6485
+ * the JSPB instance for transitional soy proto support:
6486
+ * http://goto/soy-param-migration
6487
+ * @param {!proto.notification.MailTemplateResponse} msg The msg instance to transform.
6488
+ * @return {!Object}
6489
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6490
+ */
6491
+ proto.notification.MailTemplateResponse.toObject = function(includeInstance, msg) {
6492
+ var f, obj = {
6493
+ data: (f = msg.getData()) && proto.notification.MailTemplateItem.toObject(includeInstance, f)
6494
+ };
6495
+
6496
+ if (includeInstance) {
6497
+ obj.$jspbMessageInstance = msg;
6498
+ }
6499
+ return obj;
6500
+ };
6501
+ }
6502
+
6503
+
6504
+ /**
6505
+ * Deserializes binary data (in protobuf wire format).
6506
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
6507
+ * @return {!proto.notification.MailTemplateResponse}
6508
+ */
6509
+ proto.notification.MailTemplateResponse.deserializeBinary = function(bytes) {
6510
+ var reader = new jspb.BinaryReader(bytes);
6511
+ var msg = new proto.notification.MailTemplateResponse;
6512
+ return proto.notification.MailTemplateResponse.deserializeBinaryFromReader(msg, reader);
6513
+ };
6514
+
6515
+
6516
+ /**
6517
+ * Deserializes binary data (in protobuf wire format) from the
6518
+ * given reader into the given message object.
6519
+ * @param {!proto.notification.MailTemplateResponse} msg The message object to deserialize into.
6520
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
6521
+ * @return {!proto.notification.MailTemplateResponse}
6522
+ */
6523
+ proto.notification.MailTemplateResponse.deserializeBinaryFromReader = function(msg, reader) {
6524
+ while (reader.nextField()) {
6525
+ if (reader.isEndGroup()) {
6526
+ break;
6527
+ }
6528
+ var field = reader.getFieldNumber();
6529
+ switch (field) {
6530
+ case 1:
6531
+ var value = new proto.notification.MailTemplateItem;
6532
+ reader.readMessage(value,proto.notification.MailTemplateItem.deserializeBinaryFromReader);
6533
+ msg.setData(value);
6534
+ break;
6535
+ default:
6536
+ reader.skipField();
6537
+ break;
6538
+ }
6539
+ }
6540
+ return msg;
6541
+ };
6542
+
6543
+
6544
+ /**
6545
+ * Serializes the message to binary data (in protobuf wire format).
6546
+ * @return {!Uint8Array}
6547
+ */
6548
+ proto.notification.MailTemplateResponse.prototype.serializeBinary = function() {
6549
+ var writer = new jspb.BinaryWriter();
6550
+ proto.notification.MailTemplateResponse.serializeBinaryToWriter(this, writer);
6551
+ return writer.getResultBuffer();
6552
+ };
6553
+
6554
+
6555
+ /**
6556
+ * Serializes the given message to binary data (in protobuf wire
6557
+ * format), writing to the given BinaryWriter.
6558
+ * @param {!proto.notification.MailTemplateResponse} message
6559
+ * @param {!jspb.BinaryWriter} writer
6560
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6561
+ */
6562
+ proto.notification.MailTemplateResponse.serializeBinaryToWriter = function(message, writer) {
6563
+ var f = undefined;
6564
+ f = message.getData();
6565
+ if (f != null) {
6566
+ writer.writeMessage(
6567
+ 1,
6568
+ f,
6569
+ proto.notification.MailTemplateItem.serializeBinaryToWriter
6570
+ );
6571
+ }
6572
+ };
6573
+
6574
+
6575
+ /**
6576
+ * optional MailTemplateItem data = 1;
6577
+ * @return {?proto.notification.MailTemplateItem}
6578
+ */
6579
+ proto.notification.MailTemplateResponse.prototype.getData = function() {
6580
+ return /** @type{?proto.notification.MailTemplateItem} */ (
6581
+ jspb.Message.getWrapperField(this, proto.notification.MailTemplateItem, 1));
6582
+ };
6583
+
6584
+
6585
+ /**
6586
+ * @param {?proto.notification.MailTemplateItem|undefined} value
6587
+ * @return {!proto.notification.MailTemplateResponse} returns this
6588
+ */
6589
+ proto.notification.MailTemplateResponse.prototype.setData = function(value) {
6590
+ return jspb.Message.setWrapperField(this, 1, value);
6591
+ };
6592
+
6593
+
6594
+ /**
6595
+ * Clears the message field making it undefined.
6596
+ * @return {!proto.notification.MailTemplateResponse} returns this
6597
+ */
6598
+ proto.notification.MailTemplateResponse.prototype.clearData = function() {
6599
+ return this.setData(undefined);
6600
+ };
6601
+
6602
+
6603
+ /**
6604
+ * Returns whether this field is set.
6605
+ * @return {boolean}
6606
+ */
6607
+ proto.notification.MailTemplateResponse.prototype.hasData = function() {
6608
+ return jspb.Message.getField(this, 1) != null;
6609
+ };
6610
+
6611
+
6612
+
6613
+ /**
6614
+ * List of repeated fields within this message type.
6615
+ * @private {!Array<number>}
6616
+ * @const
6617
+ */
6618
+ proto.notification.MailTemplateItemsResponse.repeatedFields_ = [1];
6619
+
6620
+
6621
+
6622
+ if (jspb.Message.GENERATE_TO_OBJECT) {
6623
+ /**
6624
+ * Creates an object representation of this proto.
6625
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
6626
+ * Optional fields that are not set will be set to undefined.
6627
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
6628
+ * For the list of reserved names please see:
6629
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
6630
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
6631
+ * JSPB instance for transitional soy proto support:
6632
+ * http://goto/soy-param-migration
6633
+ * @return {!Object}
6634
+ */
6635
+ proto.notification.MailTemplateItemsResponse.prototype.toObject = function(opt_includeInstance) {
6636
+ return proto.notification.MailTemplateItemsResponse.toObject(opt_includeInstance, this);
6637
+ };
6638
+
6639
+
6640
+ /**
6641
+ * Static version of the {@see toObject} method.
6642
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
6643
+ * the JSPB instance for transitional soy proto support:
6644
+ * http://goto/soy-param-migration
6645
+ * @param {!proto.notification.MailTemplateItemsResponse} msg The msg instance to transform.
6646
+ * @return {!Object}
6647
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6648
+ */
6649
+ proto.notification.MailTemplateItemsResponse.toObject = function(includeInstance, msg) {
6650
+ var f, obj = {
6651
+ itemsList: jspb.Message.toObjectList(msg.getItemsList(),
6652
+ proto.notification.MailTemplateItem.toObject, includeInstance),
6653
+ totalPages: jspb.Message.getFieldWithDefault(msg, 2, 0),
6654
+ totalItems: jspb.Message.getFieldWithDefault(msg, 3, 0)
6655
+ };
6656
+
6657
+ if (includeInstance) {
6658
+ obj.$jspbMessageInstance = msg;
6659
+ }
6660
+ return obj;
6661
+ };
6662
+ }
6663
+
6664
+
6665
+ /**
6666
+ * Deserializes binary data (in protobuf wire format).
6667
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
6668
+ * @return {!proto.notification.MailTemplateItemsResponse}
6669
+ */
6670
+ proto.notification.MailTemplateItemsResponse.deserializeBinary = function(bytes) {
6671
+ var reader = new jspb.BinaryReader(bytes);
6672
+ var msg = new proto.notification.MailTemplateItemsResponse;
6673
+ return proto.notification.MailTemplateItemsResponse.deserializeBinaryFromReader(msg, reader);
6674
+ };
6675
+
6676
+
6677
+ /**
6678
+ * Deserializes binary data (in protobuf wire format) from the
6679
+ * given reader into the given message object.
6680
+ * @param {!proto.notification.MailTemplateItemsResponse} msg The message object to deserialize into.
6681
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
6682
+ * @return {!proto.notification.MailTemplateItemsResponse}
6683
+ */
6684
+ proto.notification.MailTemplateItemsResponse.deserializeBinaryFromReader = function(msg, reader) {
6685
+ while (reader.nextField()) {
6686
+ if (reader.isEndGroup()) {
6687
+ break;
6688
+ }
6689
+ var field = reader.getFieldNumber();
6690
+ switch (field) {
6691
+ case 1:
6692
+ var value = new proto.notification.MailTemplateItem;
6693
+ reader.readMessage(value,proto.notification.MailTemplateItem.deserializeBinaryFromReader);
6694
+ msg.addItems(value);
6695
+ break;
6696
+ case 2:
6697
+ var value = /** @type {number} */ (reader.readInt32());
6698
+ msg.setTotalPages(value);
6699
+ break;
6700
+ case 3:
6701
+ var value = /** @type {number} */ (reader.readInt32());
6702
+ msg.setTotalItems(value);
6703
+ break;
6704
+ default:
6705
+ reader.skipField();
6706
+ break;
6707
+ }
6708
+ }
6709
+ return msg;
6710
+ };
6711
+
6712
+
6713
+ /**
6714
+ * Serializes the message to binary data (in protobuf wire format).
6715
+ * @return {!Uint8Array}
6716
+ */
6717
+ proto.notification.MailTemplateItemsResponse.prototype.serializeBinary = function() {
6718
+ var writer = new jspb.BinaryWriter();
6719
+ proto.notification.MailTemplateItemsResponse.serializeBinaryToWriter(this, writer);
6720
+ return writer.getResultBuffer();
6721
+ };
6722
+
6723
+
6724
+ /**
6725
+ * Serializes the given message to binary data (in protobuf wire
6726
+ * format), writing to the given BinaryWriter.
6727
+ * @param {!proto.notification.MailTemplateItemsResponse} message
6728
+ * @param {!jspb.BinaryWriter} writer
6729
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6730
+ */
6731
+ proto.notification.MailTemplateItemsResponse.serializeBinaryToWriter = function(message, writer) {
6732
+ var f = undefined;
6733
+ f = message.getItemsList();
6734
+ if (f.length > 0) {
6735
+ writer.writeRepeatedMessage(
6736
+ 1,
6737
+ f,
6738
+ proto.notification.MailTemplateItem.serializeBinaryToWriter
6739
+ );
6740
+ }
6741
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
6742
+ if (f != null) {
6743
+ writer.writeInt32(
6744
+ 2,
6745
+ f
6746
+ );
6747
+ }
6748
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
6749
+ if (f != null) {
6750
+ writer.writeInt32(
6751
+ 3,
6752
+ f
6753
+ );
6754
+ }
6755
+ };
6756
+
6757
+
6758
+ /**
6759
+ * repeated MailTemplateItem items = 1;
6760
+ * @return {!Array<!proto.notification.MailTemplateItem>}
6761
+ */
6762
+ proto.notification.MailTemplateItemsResponse.prototype.getItemsList = function() {
6763
+ return /** @type{!Array<!proto.notification.MailTemplateItem>} */ (
6764
+ jspb.Message.getRepeatedWrapperField(this, proto.notification.MailTemplateItem, 1));
6765
+ };
6766
+
6767
+
6768
+ /**
6769
+ * @param {!Array<!proto.notification.MailTemplateItem>} value
6770
+ * @return {!proto.notification.MailTemplateItemsResponse} returns this
6771
+ */
6772
+ proto.notification.MailTemplateItemsResponse.prototype.setItemsList = function(value) {
6773
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
6774
+ };
6775
+
6776
+
6777
+ /**
6778
+ * @param {!proto.notification.MailTemplateItem=} opt_value
6779
+ * @param {number=} opt_index
6780
+ * @return {!proto.notification.MailTemplateItem}
6781
+ */
6782
+ proto.notification.MailTemplateItemsResponse.prototype.addItems = function(opt_value, opt_index) {
6783
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.notification.MailTemplateItem, opt_index);
6784
+ };
6785
+
6786
+
6787
+ /**
6788
+ * Clears the list making it empty but non-null.
6789
+ * @return {!proto.notification.MailTemplateItemsResponse} returns this
6790
+ */
6791
+ proto.notification.MailTemplateItemsResponse.prototype.clearItemsList = function() {
6792
+ return this.setItemsList([]);
6793
+ };
6794
+
6795
+
6796
+ /**
6797
+ * optional int32 total_pages = 2;
6798
+ * @return {number}
6799
+ */
6800
+ proto.notification.MailTemplateItemsResponse.prototype.getTotalPages = function() {
6801
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
6802
+ };
6803
+
6804
+
6805
+ /**
6806
+ * @param {number} value
6807
+ * @return {!proto.notification.MailTemplateItemsResponse} returns this
6808
+ */
6809
+ proto.notification.MailTemplateItemsResponse.prototype.setTotalPages = function(value) {
6810
+ return jspb.Message.setField(this, 2, value);
6811
+ };
6812
+
6813
+
6814
+ /**
6815
+ * Clears the field making it undefined.
6816
+ * @return {!proto.notification.MailTemplateItemsResponse} returns this
6817
+ */
6818
+ proto.notification.MailTemplateItemsResponse.prototype.clearTotalPages = function() {
6819
+ return jspb.Message.setField(this, 2, undefined);
6820
+ };
6821
+
6822
+
6823
+ /**
6824
+ * Returns whether this field is set.
6825
+ * @return {boolean}
6826
+ */
6827
+ proto.notification.MailTemplateItemsResponse.prototype.hasTotalPages = function() {
6828
+ return jspb.Message.getField(this, 2) != null;
6829
+ };
6830
+
6831
+
6832
+ /**
6833
+ * optional int32 total_items = 3;
6834
+ * @return {number}
6835
+ */
6836
+ proto.notification.MailTemplateItemsResponse.prototype.getTotalItems = function() {
6837
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
6838
+ };
6839
+
6840
+
6841
+ /**
6842
+ * @param {number} value
6843
+ * @return {!proto.notification.MailTemplateItemsResponse} returns this
6844
+ */
6845
+ proto.notification.MailTemplateItemsResponse.prototype.setTotalItems = function(value) {
6846
+ return jspb.Message.setField(this, 3, value);
6847
+ };
6848
+
6849
+
6850
+ /**
6851
+ * Clears the field making it undefined.
6852
+ * @return {!proto.notification.MailTemplateItemsResponse} returns this
6853
+ */
6854
+ proto.notification.MailTemplateItemsResponse.prototype.clearTotalItems = function() {
6855
+ return jspb.Message.setField(this, 3, undefined);
6856
+ };
6857
+
6858
+
6859
+ /**
6860
+ * Returns whether this field is set.
6861
+ * @return {boolean}
6862
+ */
6863
+ proto.notification.MailTemplateItemsResponse.prototype.hasTotalItems = function() {
6864
+ return jspb.Message.getField(this, 3) != null;
6865
+ };
6866
+
6867
+
4407
6868
  goog.object.extend(exports, proto.notification);