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