protobuf-platform 1.2.81 → 1.2.83
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.
|
@@ -21,7 +21,7 @@ service Notification {
|
|
|
21
21
|
rpc updateMailTemplatesInBunch(ItemsBunchRequest) returns (MailTemplateStatusResponse);
|
|
22
22
|
rpc getMailTypes(PaginationRequest) returns (MailTypesResponse);
|
|
23
23
|
rpc setMailTemplateTranslation(MailTemplateTranslationRequest) returns (MailTemplateStatusResponse);
|
|
24
|
-
rpc getMailTemplateTranslation(GetMailTemplateTranslationRequest) returns (
|
|
24
|
+
rpc getMailTemplateTranslation(GetMailTemplateTranslationRequest) returns (MailTemplateTranslationResponse);
|
|
25
25
|
//Users
|
|
26
26
|
rpc sendNotificationToUsers(SendNotificationRequest) returns (NotificationStatusResponse);
|
|
27
27
|
rpc getNotificationForParticularUser(PaginationRequest) returns (UserNotificationItemsResponse);
|
|
@@ -119,7 +119,7 @@ message MailTemplateSearchRequest {
|
|
|
119
119
|
optional int32 template_id = 1;
|
|
120
120
|
optional string key = 2; // exact or like (your server decides)
|
|
121
121
|
optional string title = 3; // substring search
|
|
122
|
-
|
|
122
|
+
repeated string types = 4; // e.g., ["registration", "password_reset"]
|
|
123
123
|
optional int32 is_active = 5; // -1 ignore, 0 false, 1 true
|
|
124
124
|
}
|
|
125
125
|
|
|
@@ -183,4 +183,10 @@ message MailTemplateTranslationRequest {
|
|
|
183
183
|
message GetMailTemplateTranslationRequest {
|
|
184
184
|
int32 template_id = 1;
|
|
185
185
|
string locale = 2;
|
|
186
|
+
}
|
|
187
|
+
message MailTemplateTranslationResponse {
|
|
188
|
+
optional string title = 1;
|
|
189
|
+
optional string content = 2;
|
|
190
|
+
optional int32 is_active = 3;
|
|
191
|
+
optional string locale = 4;
|
|
186
192
|
}
|
|
@@ -125,6 +125,17 @@ function deserialize_notification_MailTemplateTranslationRequest(buffer_arg) {
|
|
|
125
125
|
return notification_pb.MailTemplateTranslationRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
+
function serialize_notification_MailTemplateTranslationResponse(arg) {
|
|
129
|
+
if (!(arg instanceof notification_pb.MailTemplateTranslationResponse)) {
|
|
130
|
+
throw new Error('Expected argument of type notification.MailTemplateTranslationResponse');
|
|
131
|
+
}
|
|
132
|
+
return Buffer.from(arg.serializeBinary());
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
function deserialize_notification_MailTemplateTranslationResponse(buffer_arg) {
|
|
136
|
+
return notification_pb.MailTemplateTranslationResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
137
|
+
}
|
|
138
|
+
|
|
128
139
|
function serialize_notification_MailTypesResponse(arg) {
|
|
129
140
|
if (!(arg instanceof notification_pb.MailTypesResponse)) {
|
|
130
141
|
throw new Error('Expected argument of type notification.MailTypesResponse');
|
|
@@ -442,11 +453,11 @@ createSingleMailTemplate: {
|
|
|
442
453
|
requestStream: false,
|
|
443
454
|
responseStream: false,
|
|
444
455
|
requestType: notification_pb.GetMailTemplateTranslationRequest,
|
|
445
|
-
responseType: notification_pb.
|
|
456
|
+
responseType: notification_pb.MailTemplateTranslationResponse,
|
|
446
457
|
requestSerialize: serialize_notification_GetMailTemplateTranslationRequest,
|
|
447
458
|
requestDeserialize: deserialize_notification_GetMailTemplateTranslationRequest,
|
|
448
|
-
responseSerialize:
|
|
449
|
-
responseDeserialize:
|
|
459
|
+
responseSerialize: serialize_notification_MailTemplateTranslationResponse,
|
|
460
|
+
responseDeserialize: deserialize_notification_MailTemplateTranslationResponse,
|
|
450
461
|
},
|
|
451
462
|
// Users
|
|
452
463
|
sendNotificationToUsers: {
|
|
@@ -36,6 +36,7 @@ goog.exportSymbol('proto.notification.MailTemplateResponse', null, global);
|
|
|
36
36
|
goog.exportSymbol('proto.notification.MailTemplateSearchRequest', null, global);
|
|
37
37
|
goog.exportSymbol('proto.notification.MailTemplateStatusResponse', null, global);
|
|
38
38
|
goog.exportSymbol('proto.notification.MailTemplateTranslationRequest', null, global);
|
|
39
|
+
goog.exportSymbol('proto.notification.MailTemplateTranslationResponse', null, global);
|
|
39
40
|
goog.exportSymbol('proto.notification.MailTypesResponse', null, global);
|
|
40
41
|
goog.exportSymbol('proto.notification.NotificationItem', null, global);
|
|
41
42
|
goog.exportSymbol('proto.notification.NotificationItemsResponse', null, global);
|
|
@@ -440,7 +441,7 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
440
441
|
* @constructor
|
|
441
442
|
*/
|
|
442
443
|
proto.notification.MailTemplateSearchRequest = function(opt_data) {
|
|
443
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
|
444
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.notification.MailTemplateSearchRequest.repeatedFields_, null);
|
|
444
445
|
};
|
|
445
446
|
goog.inherits(proto.notification.MailTemplateSearchRequest, jspb.Message);
|
|
446
447
|
if (goog.DEBUG && !COMPILED) {
|
|
@@ -660,6 +661,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
660
661
|
*/
|
|
661
662
|
proto.notification.GetMailTemplateTranslationRequest.displayName = 'proto.notification.GetMailTemplateTranslationRequest';
|
|
662
663
|
}
|
|
664
|
+
/**
|
|
665
|
+
* Generated by JsPbCodeGenerator.
|
|
666
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
667
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
668
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
669
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
670
|
+
* valid.
|
|
671
|
+
* @extends {jspb.Message}
|
|
672
|
+
* @constructor
|
|
673
|
+
*/
|
|
674
|
+
proto.notification.MailTemplateTranslationResponse = function(opt_data) {
|
|
675
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
676
|
+
};
|
|
677
|
+
goog.inherits(proto.notification.MailTemplateTranslationResponse, jspb.Message);
|
|
678
|
+
if (goog.DEBUG && !COMPILED) {
|
|
679
|
+
/**
|
|
680
|
+
* @public
|
|
681
|
+
* @override
|
|
682
|
+
*/
|
|
683
|
+
proto.notification.MailTemplateTranslationResponse.displayName = 'proto.notification.MailTemplateTranslationResponse';
|
|
684
|
+
}
|
|
663
685
|
|
|
664
686
|
|
|
665
687
|
|
|
@@ -4699,6 +4721,13 @@ proto.notification.UserNotificationsCountResponse.prototype.setCount = function(
|
|
|
4699
4721
|
|
|
4700
4722
|
|
|
4701
4723
|
|
|
4724
|
+
/**
|
|
4725
|
+
* List of repeated fields within this message type.
|
|
4726
|
+
* @private {!Array<number>}
|
|
4727
|
+
* @const
|
|
4728
|
+
*/
|
|
4729
|
+
proto.notification.MailTemplateSearchRequest.repeatedFields_ = [4];
|
|
4730
|
+
|
|
4702
4731
|
|
|
4703
4732
|
|
|
4704
4733
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -4733,7 +4762,7 @@ proto.notification.MailTemplateSearchRequest.toObject = function(includeInstance
|
|
|
4733
4762
|
templateId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
4734
4763
|
key: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
4735
4764
|
title: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
4736
|
-
|
|
4765
|
+
typesList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f,
|
|
4737
4766
|
isActive: jspb.Message.getFieldWithDefault(msg, 5, 0)
|
|
4738
4767
|
};
|
|
4739
4768
|
|
|
@@ -4785,7 +4814,7 @@ proto.notification.MailTemplateSearchRequest.deserializeBinaryFromReader = funct
|
|
|
4785
4814
|
break;
|
|
4786
4815
|
case 4:
|
|
4787
4816
|
var value = /** @type {string} */ (reader.readString());
|
|
4788
|
-
msg.
|
|
4817
|
+
msg.addTypes(value);
|
|
4789
4818
|
break;
|
|
4790
4819
|
case 5:
|
|
4791
4820
|
var value = /** @type {number} */ (reader.readInt32());
|
|
@@ -4841,9 +4870,9 @@ proto.notification.MailTemplateSearchRequest.serializeBinaryToWriter = function(
|
|
|
4841
4870
|
f
|
|
4842
4871
|
);
|
|
4843
4872
|
}
|
|
4844
|
-
f =
|
|
4845
|
-
if (f
|
|
4846
|
-
writer.
|
|
4873
|
+
f = message.getTypesList();
|
|
4874
|
+
if (f.length > 0) {
|
|
4875
|
+
writer.writeRepeatedString(
|
|
4847
4876
|
4,
|
|
4848
4877
|
f
|
|
4849
4878
|
);
|
|
@@ -4967,38 +4996,39 @@ proto.notification.MailTemplateSearchRequest.prototype.hasTitle = function() {
|
|
|
4967
4996
|
|
|
4968
4997
|
|
|
4969
4998
|
/**
|
|
4970
|
-
*
|
|
4971
|
-
* @return {string}
|
|
4999
|
+
* repeated string types = 4;
|
|
5000
|
+
* @return {!Array<string>}
|
|
4972
5001
|
*/
|
|
4973
|
-
proto.notification.MailTemplateSearchRequest.prototype.
|
|
4974
|
-
return /** @type {string} */ (jspb.Message.
|
|
5002
|
+
proto.notification.MailTemplateSearchRequest.prototype.getTypesList = function() {
|
|
5003
|
+
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 4));
|
|
4975
5004
|
};
|
|
4976
5005
|
|
|
4977
5006
|
|
|
4978
5007
|
/**
|
|
4979
|
-
* @param {string} value
|
|
5008
|
+
* @param {!Array<string>} value
|
|
4980
5009
|
* @return {!proto.notification.MailTemplateSearchRequest} returns this
|
|
4981
5010
|
*/
|
|
4982
|
-
proto.notification.MailTemplateSearchRequest.prototype.
|
|
4983
|
-
return jspb.Message.setField(this, 4, value);
|
|
5011
|
+
proto.notification.MailTemplateSearchRequest.prototype.setTypesList = function(value) {
|
|
5012
|
+
return jspb.Message.setField(this, 4, value || []);
|
|
4984
5013
|
};
|
|
4985
5014
|
|
|
4986
5015
|
|
|
4987
5016
|
/**
|
|
4988
|
-
*
|
|
5017
|
+
* @param {string} value
|
|
5018
|
+
* @param {number=} opt_index
|
|
4989
5019
|
* @return {!proto.notification.MailTemplateSearchRequest} returns this
|
|
4990
5020
|
*/
|
|
4991
|
-
proto.notification.MailTemplateSearchRequest.prototype.
|
|
4992
|
-
return jspb.Message.
|
|
5021
|
+
proto.notification.MailTemplateSearchRequest.prototype.addTypes = function(value, opt_index) {
|
|
5022
|
+
return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
|
|
4993
5023
|
};
|
|
4994
5024
|
|
|
4995
5025
|
|
|
4996
5026
|
/**
|
|
4997
|
-
*
|
|
4998
|
-
* @return {
|
|
5027
|
+
* Clears the list making it empty but non-null.
|
|
5028
|
+
* @return {!proto.notification.MailTemplateSearchRequest} returns this
|
|
4999
5029
|
*/
|
|
5000
|
-
proto.notification.MailTemplateSearchRequest.prototype.
|
|
5001
|
-
return
|
|
5030
|
+
proto.notification.MailTemplateSearchRequest.prototype.clearTypesList = function() {
|
|
5031
|
+
return this.setTypesList([]);
|
|
5002
5032
|
};
|
|
5003
5033
|
|
|
5004
5034
|
|
|
@@ -7587,4 +7617,296 @@ proto.notification.GetMailTemplateTranslationRequest.prototype.setLocale = funct
|
|
|
7587
7617
|
};
|
|
7588
7618
|
|
|
7589
7619
|
|
|
7620
|
+
|
|
7621
|
+
|
|
7622
|
+
|
|
7623
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
7624
|
+
/**
|
|
7625
|
+
* Creates an object representation of this proto.
|
|
7626
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
7627
|
+
* Optional fields that are not set will be set to undefined.
|
|
7628
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
7629
|
+
* For the list of reserved names please see:
|
|
7630
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
7631
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
7632
|
+
* JSPB instance for transitional soy proto support:
|
|
7633
|
+
* http://goto/soy-param-migration
|
|
7634
|
+
* @return {!Object}
|
|
7635
|
+
*/
|
|
7636
|
+
proto.notification.MailTemplateTranslationResponse.prototype.toObject = function(opt_includeInstance) {
|
|
7637
|
+
return proto.notification.MailTemplateTranslationResponse.toObject(opt_includeInstance, this);
|
|
7638
|
+
};
|
|
7639
|
+
|
|
7640
|
+
|
|
7641
|
+
/**
|
|
7642
|
+
* Static version of the {@see toObject} method.
|
|
7643
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
7644
|
+
* the JSPB instance for transitional soy proto support:
|
|
7645
|
+
* http://goto/soy-param-migration
|
|
7646
|
+
* @param {!proto.notification.MailTemplateTranslationResponse} msg The msg instance to transform.
|
|
7647
|
+
* @return {!Object}
|
|
7648
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7649
|
+
*/
|
|
7650
|
+
proto.notification.MailTemplateTranslationResponse.toObject = function(includeInstance, msg) {
|
|
7651
|
+
var f, obj = {
|
|
7652
|
+
title: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
7653
|
+
content: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
7654
|
+
isActive: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
7655
|
+
locale: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
7656
|
+
};
|
|
7657
|
+
|
|
7658
|
+
if (includeInstance) {
|
|
7659
|
+
obj.$jspbMessageInstance = msg;
|
|
7660
|
+
}
|
|
7661
|
+
return obj;
|
|
7662
|
+
};
|
|
7663
|
+
}
|
|
7664
|
+
|
|
7665
|
+
|
|
7666
|
+
/**
|
|
7667
|
+
* Deserializes binary data (in protobuf wire format).
|
|
7668
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
7669
|
+
* @return {!proto.notification.MailTemplateTranslationResponse}
|
|
7670
|
+
*/
|
|
7671
|
+
proto.notification.MailTemplateTranslationResponse.deserializeBinary = function(bytes) {
|
|
7672
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
7673
|
+
var msg = new proto.notification.MailTemplateTranslationResponse;
|
|
7674
|
+
return proto.notification.MailTemplateTranslationResponse.deserializeBinaryFromReader(msg, reader);
|
|
7675
|
+
};
|
|
7676
|
+
|
|
7677
|
+
|
|
7678
|
+
/**
|
|
7679
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
7680
|
+
* given reader into the given message object.
|
|
7681
|
+
* @param {!proto.notification.MailTemplateTranslationResponse} msg The message object to deserialize into.
|
|
7682
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
7683
|
+
* @return {!proto.notification.MailTemplateTranslationResponse}
|
|
7684
|
+
*/
|
|
7685
|
+
proto.notification.MailTemplateTranslationResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
7686
|
+
while (reader.nextField()) {
|
|
7687
|
+
if (reader.isEndGroup()) {
|
|
7688
|
+
break;
|
|
7689
|
+
}
|
|
7690
|
+
var field = reader.getFieldNumber();
|
|
7691
|
+
switch (field) {
|
|
7692
|
+
case 1:
|
|
7693
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7694
|
+
msg.setTitle(value);
|
|
7695
|
+
break;
|
|
7696
|
+
case 2:
|
|
7697
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7698
|
+
msg.setContent(value);
|
|
7699
|
+
break;
|
|
7700
|
+
case 3:
|
|
7701
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
7702
|
+
msg.setIsActive(value);
|
|
7703
|
+
break;
|
|
7704
|
+
case 4:
|
|
7705
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7706
|
+
msg.setLocale(value);
|
|
7707
|
+
break;
|
|
7708
|
+
default:
|
|
7709
|
+
reader.skipField();
|
|
7710
|
+
break;
|
|
7711
|
+
}
|
|
7712
|
+
}
|
|
7713
|
+
return msg;
|
|
7714
|
+
};
|
|
7715
|
+
|
|
7716
|
+
|
|
7717
|
+
/**
|
|
7718
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
7719
|
+
* @return {!Uint8Array}
|
|
7720
|
+
*/
|
|
7721
|
+
proto.notification.MailTemplateTranslationResponse.prototype.serializeBinary = function() {
|
|
7722
|
+
var writer = new jspb.BinaryWriter();
|
|
7723
|
+
proto.notification.MailTemplateTranslationResponse.serializeBinaryToWriter(this, writer);
|
|
7724
|
+
return writer.getResultBuffer();
|
|
7725
|
+
};
|
|
7726
|
+
|
|
7727
|
+
|
|
7728
|
+
/**
|
|
7729
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
7730
|
+
* format), writing to the given BinaryWriter.
|
|
7731
|
+
* @param {!proto.notification.MailTemplateTranslationResponse} message
|
|
7732
|
+
* @param {!jspb.BinaryWriter} writer
|
|
7733
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7734
|
+
*/
|
|
7735
|
+
proto.notification.MailTemplateTranslationResponse.serializeBinaryToWriter = function(message, writer) {
|
|
7736
|
+
var f = undefined;
|
|
7737
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 1));
|
|
7738
|
+
if (f != null) {
|
|
7739
|
+
writer.writeString(
|
|
7740
|
+
1,
|
|
7741
|
+
f
|
|
7742
|
+
);
|
|
7743
|
+
}
|
|
7744
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
|
7745
|
+
if (f != null) {
|
|
7746
|
+
writer.writeString(
|
|
7747
|
+
2,
|
|
7748
|
+
f
|
|
7749
|
+
);
|
|
7750
|
+
}
|
|
7751
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
|
7752
|
+
if (f != null) {
|
|
7753
|
+
writer.writeInt32(
|
|
7754
|
+
3,
|
|
7755
|
+
f
|
|
7756
|
+
);
|
|
7757
|
+
}
|
|
7758
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
|
7759
|
+
if (f != null) {
|
|
7760
|
+
writer.writeString(
|
|
7761
|
+
4,
|
|
7762
|
+
f
|
|
7763
|
+
);
|
|
7764
|
+
}
|
|
7765
|
+
};
|
|
7766
|
+
|
|
7767
|
+
|
|
7768
|
+
/**
|
|
7769
|
+
* optional string title = 1;
|
|
7770
|
+
* @return {string}
|
|
7771
|
+
*/
|
|
7772
|
+
proto.notification.MailTemplateTranslationResponse.prototype.getTitle = function() {
|
|
7773
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
7774
|
+
};
|
|
7775
|
+
|
|
7776
|
+
|
|
7777
|
+
/**
|
|
7778
|
+
* @param {string} value
|
|
7779
|
+
* @return {!proto.notification.MailTemplateTranslationResponse} returns this
|
|
7780
|
+
*/
|
|
7781
|
+
proto.notification.MailTemplateTranslationResponse.prototype.setTitle = function(value) {
|
|
7782
|
+
return jspb.Message.setField(this, 1, value);
|
|
7783
|
+
};
|
|
7784
|
+
|
|
7785
|
+
|
|
7786
|
+
/**
|
|
7787
|
+
* Clears the field making it undefined.
|
|
7788
|
+
* @return {!proto.notification.MailTemplateTranslationResponse} returns this
|
|
7789
|
+
*/
|
|
7790
|
+
proto.notification.MailTemplateTranslationResponse.prototype.clearTitle = function() {
|
|
7791
|
+
return jspb.Message.setField(this, 1, undefined);
|
|
7792
|
+
};
|
|
7793
|
+
|
|
7794
|
+
|
|
7795
|
+
/**
|
|
7796
|
+
* Returns whether this field is set.
|
|
7797
|
+
* @return {boolean}
|
|
7798
|
+
*/
|
|
7799
|
+
proto.notification.MailTemplateTranslationResponse.prototype.hasTitle = function() {
|
|
7800
|
+
return jspb.Message.getField(this, 1) != null;
|
|
7801
|
+
};
|
|
7802
|
+
|
|
7803
|
+
|
|
7804
|
+
/**
|
|
7805
|
+
* optional string content = 2;
|
|
7806
|
+
* @return {string}
|
|
7807
|
+
*/
|
|
7808
|
+
proto.notification.MailTemplateTranslationResponse.prototype.getContent = function() {
|
|
7809
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
7810
|
+
};
|
|
7811
|
+
|
|
7812
|
+
|
|
7813
|
+
/**
|
|
7814
|
+
* @param {string} value
|
|
7815
|
+
* @return {!proto.notification.MailTemplateTranslationResponse} returns this
|
|
7816
|
+
*/
|
|
7817
|
+
proto.notification.MailTemplateTranslationResponse.prototype.setContent = function(value) {
|
|
7818
|
+
return jspb.Message.setField(this, 2, value);
|
|
7819
|
+
};
|
|
7820
|
+
|
|
7821
|
+
|
|
7822
|
+
/**
|
|
7823
|
+
* Clears the field making it undefined.
|
|
7824
|
+
* @return {!proto.notification.MailTemplateTranslationResponse} returns this
|
|
7825
|
+
*/
|
|
7826
|
+
proto.notification.MailTemplateTranslationResponse.prototype.clearContent = function() {
|
|
7827
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
7828
|
+
};
|
|
7829
|
+
|
|
7830
|
+
|
|
7831
|
+
/**
|
|
7832
|
+
* Returns whether this field is set.
|
|
7833
|
+
* @return {boolean}
|
|
7834
|
+
*/
|
|
7835
|
+
proto.notification.MailTemplateTranslationResponse.prototype.hasContent = function() {
|
|
7836
|
+
return jspb.Message.getField(this, 2) != null;
|
|
7837
|
+
};
|
|
7838
|
+
|
|
7839
|
+
|
|
7840
|
+
/**
|
|
7841
|
+
* optional int32 is_active = 3;
|
|
7842
|
+
* @return {number}
|
|
7843
|
+
*/
|
|
7844
|
+
proto.notification.MailTemplateTranslationResponse.prototype.getIsActive = function() {
|
|
7845
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
7846
|
+
};
|
|
7847
|
+
|
|
7848
|
+
|
|
7849
|
+
/**
|
|
7850
|
+
* @param {number} value
|
|
7851
|
+
* @return {!proto.notification.MailTemplateTranslationResponse} returns this
|
|
7852
|
+
*/
|
|
7853
|
+
proto.notification.MailTemplateTranslationResponse.prototype.setIsActive = function(value) {
|
|
7854
|
+
return jspb.Message.setField(this, 3, value);
|
|
7855
|
+
};
|
|
7856
|
+
|
|
7857
|
+
|
|
7858
|
+
/**
|
|
7859
|
+
* Clears the field making it undefined.
|
|
7860
|
+
* @return {!proto.notification.MailTemplateTranslationResponse} returns this
|
|
7861
|
+
*/
|
|
7862
|
+
proto.notification.MailTemplateTranslationResponse.prototype.clearIsActive = function() {
|
|
7863
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
7864
|
+
};
|
|
7865
|
+
|
|
7866
|
+
|
|
7867
|
+
/**
|
|
7868
|
+
* Returns whether this field is set.
|
|
7869
|
+
* @return {boolean}
|
|
7870
|
+
*/
|
|
7871
|
+
proto.notification.MailTemplateTranslationResponse.prototype.hasIsActive = function() {
|
|
7872
|
+
return jspb.Message.getField(this, 3) != null;
|
|
7873
|
+
};
|
|
7874
|
+
|
|
7875
|
+
|
|
7876
|
+
/**
|
|
7877
|
+
* optional string locale = 4;
|
|
7878
|
+
* @return {string}
|
|
7879
|
+
*/
|
|
7880
|
+
proto.notification.MailTemplateTranslationResponse.prototype.getLocale = function() {
|
|
7881
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
7882
|
+
};
|
|
7883
|
+
|
|
7884
|
+
|
|
7885
|
+
/**
|
|
7886
|
+
* @param {string} value
|
|
7887
|
+
* @return {!proto.notification.MailTemplateTranslationResponse} returns this
|
|
7888
|
+
*/
|
|
7889
|
+
proto.notification.MailTemplateTranslationResponse.prototype.setLocale = function(value) {
|
|
7890
|
+
return jspb.Message.setField(this, 4, value);
|
|
7891
|
+
};
|
|
7892
|
+
|
|
7893
|
+
|
|
7894
|
+
/**
|
|
7895
|
+
* Clears the field making it undefined.
|
|
7896
|
+
* @return {!proto.notification.MailTemplateTranslationResponse} returns this
|
|
7897
|
+
*/
|
|
7898
|
+
proto.notification.MailTemplateTranslationResponse.prototype.clearLocale = function() {
|
|
7899
|
+
return jspb.Message.setField(this, 4, undefined);
|
|
7900
|
+
};
|
|
7901
|
+
|
|
7902
|
+
|
|
7903
|
+
/**
|
|
7904
|
+
* Returns whether this field is set.
|
|
7905
|
+
* @return {boolean}
|
|
7906
|
+
*/
|
|
7907
|
+
proto.notification.MailTemplateTranslationResponse.prototype.hasLocale = function() {
|
|
7908
|
+
return jspb.Message.getField(this, 4) != null;
|
|
7909
|
+
};
|
|
7910
|
+
|
|
7911
|
+
|
|
7590
7912
|
goog.object.extend(exports, proto.notification);
|