protobuf-platform 1.2.80 → 1.2.82
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.
|
@@ -20,6 +20,8 @@ service Notification {
|
|
|
20
20
|
rpc readListMailTemplates(PaginationRequest) returns (MailTemplateItemsResponse);
|
|
21
21
|
rpc updateMailTemplatesInBunch(ItemsBunchRequest) returns (MailTemplateStatusResponse);
|
|
22
22
|
rpc getMailTypes(PaginationRequest) returns (MailTypesResponse);
|
|
23
|
+
rpc setMailTemplateTranslation(MailTemplateTranslationRequest) returns (MailTemplateStatusResponse);
|
|
24
|
+
rpc getMailTemplateTranslation(GetMailTemplateTranslationRequest) returns (MailTemplateTranslationResponse);
|
|
23
25
|
//Users
|
|
24
26
|
rpc sendNotificationToUsers(SendNotificationRequest) returns (NotificationStatusResponse);
|
|
25
27
|
rpc getNotificationForParticularUser(PaginationRequest) returns (UserNotificationItemsResponse);
|
|
@@ -170,4 +172,21 @@ message MailTemplateItemsResponse {
|
|
|
170
172
|
}
|
|
171
173
|
message MailTypesResponse {
|
|
172
174
|
repeated string types = 1;
|
|
175
|
+
}
|
|
176
|
+
message MailTemplateTranslationRequest {
|
|
177
|
+
optional int32 template_id = 1;
|
|
178
|
+
optional string locale = 2;
|
|
179
|
+
optional string title = 3;
|
|
180
|
+
optional string content = 4;
|
|
181
|
+
optional int32 is_active = 5;
|
|
182
|
+
}
|
|
183
|
+
message GetMailTemplateTranslationRequest {
|
|
184
|
+
int32 template_id = 1;
|
|
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;
|
|
173
192
|
}
|
|
@@ -37,6 +37,17 @@ function deserialize_notification_GetMailTemplateRequest(buffer_arg) {
|
|
|
37
37
|
return notification_pb.GetMailTemplateRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
+
function serialize_notification_GetMailTemplateTranslationRequest(arg) {
|
|
41
|
+
if (!(arg instanceof notification_pb.GetMailTemplateTranslationRequest)) {
|
|
42
|
+
throw new Error('Expected argument of type notification.GetMailTemplateTranslationRequest');
|
|
43
|
+
}
|
|
44
|
+
return Buffer.from(arg.serializeBinary());
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
function deserialize_notification_GetMailTemplateTranslationRequest(buffer_arg) {
|
|
48
|
+
return notification_pb.GetMailTemplateTranslationRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
49
|
+
}
|
|
50
|
+
|
|
40
51
|
function serialize_notification_GetNotificationRequest(arg) {
|
|
41
52
|
if (!(arg instanceof notification_pb.GetNotificationRequest)) {
|
|
42
53
|
throw new Error('Expected argument of type notification.GetNotificationRequest');
|
|
@@ -103,6 +114,28 @@ function deserialize_notification_MailTemplateStatusResponse(buffer_arg) {
|
|
|
103
114
|
return notification_pb.MailTemplateStatusResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
104
115
|
}
|
|
105
116
|
|
|
117
|
+
function serialize_notification_MailTemplateTranslationRequest(arg) {
|
|
118
|
+
if (!(arg instanceof notification_pb.MailTemplateTranslationRequest)) {
|
|
119
|
+
throw new Error('Expected argument of type notification.MailTemplateTranslationRequest');
|
|
120
|
+
}
|
|
121
|
+
return Buffer.from(arg.serializeBinary());
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
function deserialize_notification_MailTemplateTranslationRequest(buffer_arg) {
|
|
125
|
+
return notification_pb.MailTemplateTranslationRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
126
|
+
}
|
|
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
|
+
|
|
106
139
|
function serialize_notification_MailTypesResponse(arg) {
|
|
107
140
|
if (!(arg instanceof notification_pb.MailTypesResponse)) {
|
|
108
141
|
throw new Error('Expected argument of type notification.MailTypesResponse');
|
|
@@ -404,6 +437,28 @@ createSingleMailTemplate: {
|
|
|
404
437
|
responseSerialize: serialize_notification_MailTypesResponse,
|
|
405
438
|
responseDeserialize: deserialize_notification_MailTypesResponse,
|
|
406
439
|
},
|
|
440
|
+
setMailTemplateTranslation: {
|
|
441
|
+
path: '/notification.Notification/setMailTemplateTranslation',
|
|
442
|
+
requestStream: false,
|
|
443
|
+
responseStream: false,
|
|
444
|
+
requestType: notification_pb.MailTemplateTranslationRequest,
|
|
445
|
+
responseType: notification_pb.MailTemplateStatusResponse,
|
|
446
|
+
requestSerialize: serialize_notification_MailTemplateTranslationRequest,
|
|
447
|
+
requestDeserialize: deserialize_notification_MailTemplateTranslationRequest,
|
|
448
|
+
responseSerialize: serialize_notification_MailTemplateStatusResponse,
|
|
449
|
+
responseDeserialize: deserialize_notification_MailTemplateStatusResponse,
|
|
450
|
+
},
|
|
451
|
+
getMailTemplateTranslation: {
|
|
452
|
+
path: '/notification.Notification/getMailTemplateTranslation',
|
|
453
|
+
requestStream: false,
|
|
454
|
+
responseStream: false,
|
|
455
|
+
requestType: notification_pb.GetMailTemplateTranslationRequest,
|
|
456
|
+
responseType: notification_pb.MailTemplateTranslationResponse,
|
|
457
|
+
requestSerialize: serialize_notification_GetMailTemplateTranslationRequest,
|
|
458
|
+
requestDeserialize: deserialize_notification_GetMailTemplateTranslationRequest,
|
|
459
|
+
responseSerialize: serialize_notification_MailTemplateTranslationResponse,
|
|
460
|
+
responseDeserialize: deserialize_notification_MailTemplateTranslationResponse,
|
|
461
|
+
},
|
|
407
462
|
// Users
|
|
408
463
|
sendNotificationToUsers: {
|
|
409
464
|
path: '/notification.Notification/sendNotificationToUsers',
|
|
@@ -24,6 +24,7 @@ var global = (function() {
|
|
|
24
24
|
goog.exportSymbol('proto.notification.File', null, global);
|
|
25
25
|
goog.exportSymbol('proto.notification.GetFileRequest', null, global);
|
|
26
26
|
goog.exportSymbol('proto.notification.GetMailTemplateRequest', null, global);
|
|
27
|
+
goog.exportSymbol('proto.notification.GetMailTemplateTranslationRequest', null, global);
|
|
27
28
|
goog.exportSymbol('proto.notification.GetNotificationRequest', null, global);
|
|
28
29
|
goog.exportSymbol('proto.notification.ItemsBunchRequest', null, global);
|
|
29
30
|
goog.exportSymbol('proto.notification.MailTemplateChunk', null, global);
|
|
@@ -34,6 +35,8 @@ goog.exportSymbol('proto.notification.MailTemplateItemsResponse', null, global);
|
|
|
34
35
|
goog.exportSymbol('proto.notification.MailTemplateResponse', null, global);
|
|
35
36
|
goog.exportSymbol('proto.notification.MailTemplateSearchRequest', null, global);
|
|
36
37
|
goog.exportSymbol('proto.notification.MailTemplateStatusResponse', null, global);
|
|
38
|
+
goog.exportSymbol('proto.notification.MailTemplateTranslationRequest', null, global);
|
|
39
|
+
goog.exportSymbol('proto.notification.MailTemplateTranslationResponse', null, global);
|
|
37
40
|
goog.exportSymbol('proto.notification.MailTypesResponse', null, global);
|
|
38
41
|
goog.exportSymbol('proto.notification.NotificationItem', null, global);
|
|
39
42
|
goog.exportSymbol('proto.notification.NotificationItemsResponse', null, global);
|
|
@@ -616,6 +619,69 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
616
619
|
*/
|
|
617
620
|
proto.notification.MailTypesResponse.displayName = 'proto.notification.MailTypesResponse';
|
|
618
621
|
}
|
|
622
|
+
/**
|
|
623
|
+
* Generated by JsPbCodeGenerator.
|
|
624
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
625
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
626
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
627
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
628
|
+
* valid.
|
|
629
|
+
* @extends {jspb.Message}
|
|
630
|
+
* @constructor
|
|
631
|
+
*/
|
|
632
|
+
proto.notification.MailTemplateTranslationRequest = function(opt_data) {
|
|
633
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
634
|
+
};
|
|
635
|
+
goog.inherits(proto.notification.MailTemplateTranslationRequest, jspb.Message);
|
|
636
|
+
if (goog.DEBUG && !COMPILED) {
|
|
637
|
+
/**
|
|
638
|
+
* @public
|
|
639
|
+
* @override
|
|
640
|
+
*/
|
|
641
|
+
proto.notification.MailTemplateTranslationRequest.displayName = 'proto.notification.MailTemplateTranslationRequest';
|
|
642
|
+
}
|
|
643
|
+
/**
|
|
644
|
+
* Generated by JsPbCodeGenerator.
|
|
645
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
646
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
647
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
648
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
649
|
+
* valid.
|
|
650
|
+
* @extends {jspb.Message}
|
|
651
|
+
* @constructor
|
|
652
|
+
*/
|
|
653
|
+
proto.notification.GetMailTemplateTranslationRequest = function(opt_data) {
|
|
654
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
655
|
+
};
|
|
656
|
+
goog.inherits(proto.notification.GetMailTemplateTranslationRequest, jspb.Message);
|
|
657
|
+
if (goog.DEBUG && !COMPILED) {
|
|
658
|
+
/**
|
|
659
|
+
* @public
|
|
660
|
+
* @override
|
|
661
|
+
*/
|
|
662
|
+
proto.notification.GetMailTemplateTranslationRequest.displayName = 'proto.notification.GetMailTemplateTranslationRequest';
|
|
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
|
+
}
|
|
619
685
|
|
|
620
686
|
|
|
621
687
|
|
|
@@ -7043,4 +7109,796 @@ proto.notification.MailTypesResponse.prototype.clearTypesList = function() {
|
|
|
7043
7109
|
};
|
|
7044
7110
|
|
|
7045
7111
|
|
|
7112
|
+
|
|
7113
|
+
|
|
7114
|
+
|
|
7115
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
7116
|
+
/**
|
|
7117
|
+
* Creates an object representation of this proto.
|
|
7118
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
7119
|
+
* Optional fields that are not set will be set to undefined.
|
|
7120
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
7121
|
+
* For the list of reserved names please see:
|
|
7122
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
7123
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
7124
|
+
* JSPB instance for transitional soy proto support:
|
|
7125
|
+
* http://goto/soy-param-migration
|
|
7126
|
+
* @return {!Object}
|
|
7127
|
+
*/
|
|
7128
|
+
proto.notification.MailTemplateTranslationRequest.prototype.toObject = function(opt_includeInstance) {
|
|
7129
|
+
return proto.notification.MailTemplateTranslationRequest.toObject(opt_includeInstance, this);
|
|
7130
|
+
};
|
|
7131
|
+
|
|
7132
|
+
|
|
7133
|
+
/**
|
|
7134
|
+
* Static version of the {@see toObject} method.
|
|
7135
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
7136
|
+
* the JSPB instance for transitional soy proto support:
|
|
7137
|
+
* http://goto/soy-param-migration
|
|
7138
|
+
* @param {!proto.notification.MailTemplateTranslationRequest} msg The msg instance to transform.
|
|
7139
|
+
* @return {!Object}
|
|
7140
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7141
|
+
*/
|
|
7142
|
+
proto.notification.MailTemplateTranslationRequest.toObject = function(includeInstance, msg) {
|
|
7143
|
+
var f, obj = {
|
|
7144
|
+
templateId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
7145
|
+
locale: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
7146
|
+
title: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
7147
|
+
content: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
|
7148
|
+
isActive: jspb.Message.getFieldWithDefault(msg, 5, 0)
|
|
7149
|
+
};
|
|
7150
|
+
|
|
7151
|
+
if (includeInstance) {
|
|
7152
|
+
obj.$jspbMessageInstance = msg;
|
|
7153
|
+
}
|
|
7154
|
+
return obj;
|
|
7155
|
+
};
|
|
7156
|
+
}
|
|
7157
|
+
|
|
7158
|
+
|
|
7159
|
+
/**
|
|
7160
|
+
* Deserializes binary data (in protobuf wire format).
|
|
7161
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
7162
|
+
* @return {!proto.notification.MailTemplateTranslationRequest}
|
|
7163
|
+
*/
|
|
7164
|
+
proto.notification.MailTemplateTranslationRequest.deserializeBinary = function(bytes) {
|
|
7165
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
7166
|
+
var msg = new proto.notification.MailTemplateTranslationRequest;
|
|
7167
|
+
return proto.notification.MailTemplateTranslationRequest.deserializeBinaryFromReader(msg, reader);
|
|
7168
|
+
};
|
|
7169
|
+
|
|
7170
|
+
|
|
7171
|
+
/**
|
|
7172
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
7173
|
+
* given reader into the given message object.
|
|
7174
|
+
* @param {!proto.notification.MailTemplateTranslationRequest} msg The message object to deserialize into.
|
|
7175
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
7176
|
+
* @return {!proto.notification.MailTemplateTranslationRequest}
|
|
7177
|
+
*/
|
|
7178
|
+
proto.notification.MailTemplateTranslationRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
7179
|
+
while (reader.nextField()) {
|
|
7180
|
+
if (reader.isEndGroup()) {
|
|
7181
|
+
break;
|
|
7182
|
+
}
|
|
7183
|
+
var field = reader.getFieldNumber();
|
|
7184
|
+
switch (field) {
|
|
7185
|
+
case 1:
|
|
7186
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
7187
|
+
msg.setTemplateId(value);
|
|
7188
|
+
break;
|
|
7189
|
+
case 2:
|
|
7190
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7191
|
+
msg.setLocale(value);
|
|
7192
|
+
break;
|
|
7193
|
+
case 3:
|
|
7194
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7195
|
+
msg.setTitle(value);
|
|
7196
|
+
break;
|
|
7197
|
+
case 4:
|
|
7198
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7199
|
+
msg.setContent(value);
|
|
7200
|
+
break;
|
|
7201
|
+
case 5:
|
|
7202
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
7203
|
+
msg.setIsActive(value);
|
|
7204
|
+
break;
|
|
7205
|
+
default:
|
|
7206
|
+
reader.skipField();
|
|
7207
|
+
break;
|
|
7208
|
+
}
|
|
7209
|
+
}
|
|
7210
|
+
return msg;
|
|
7211
|
+
};
|
|
7212
|
+
|
|
7213
|
+
|
|
7214
|
+
/**
|
|
7215
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
7216
|
+
* @return {!Uint8Array}
|
|
7217
|
+
*/
|
|
7218
|
+
proto.notification.MailTemplateTranslationRequest.prototype.serializeBinary = function() {
|
|
7219
|
+
var writer = new jspb.BinaryWriter();
|
|
7220
|
+
proto.notification.MailTemplateTranslationRequest.serializeBinaryToWriter(this, writer);
|
|
7221
|
+
return writer.getResultBuffer();
|
|
7222
|
+
};
|
|
7223
|
+
|
|
7224
|
+
|
|
7225
|
+
/**
|
|
7226
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
7227
|
+
* format), writing to the given BinaryWriter.
|
|
7228
|
+
* @param {!proto.notification.MailTemplateTranslationRequest} message
|
|
7229
|
+
* @param {!jspb.BinaryWriter} writer
|
|
7230
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7231
|
+
*/
|
|
7232
|
+
proto.notification.MailTemplateTranslationRequest.serializeBinaryToWriter = function(message, writer) {
|
|
7233
|
+
var f = undefined;
|
|
7234
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 1));
|
|
7235
|
+
if (f != null) {
|
|
7236
|
+
writer.writeInt32(
|
|
7237
|
+
1,
|
|
7238
|
+
f
|
|
7239
|
+
);
|
|
7240
|
+
}
|
|
7241
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
|
7242
|
+
if (f != null) {
|
|
7243
|
+
writer.writeString(
|
|
7244
|
+
2,
|
|
7245
|
+
f
|
|
7246
|
+
);
|
|
7247
|
+
}
|
|
7248
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 3));
|
|
7249
|
+
if (f != null) {
|
|
7250
|
+
writer.writeString(
|
|
7251
|
+
3,
|
|
7252
|
+
f
|
|
7253
|
+
);
|
|
7254
|
+
}
|
|
7255
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
|
7256
|
+
if (f != null) {
|
|
7257
|
+
writer.writeString(
|
|
7258
|
+
4,
|
|
7259
|
+
f
|
|
7260
|
+
);
|
|
7261
|
+
}
|
|
7262
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 5));
|
|
7263
|
+
if (f != null) {
|
|
7264
|
+
writer.writeInt32(
|
|
7265
|
+
5,
|
|
7266
|
+
f
|
|
7267
|
+
);
|
|
7268
|
+
}
|
|
7269
|
+
};
|
|
7270
|
+
|
|
7271
|
+
|
|
7272
|
+
/**
|
|
7273
|
+
* optional int32 template_id = 1;
|
|
7274
|
+
* @return {number}
|
|
7275
|
+
*/
|
|
7276
|
+
proto.notification.MailTemplateTranslationRequest.prototype.getTemplateId = function() {
|
|
7277
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
7278
|
+
};
|
|
7279
|
+
|
|
7280
|
+
|
|
7281
|
+
/**
|
|
7282
|
+
* @param {number} value
|
|
7283
|
+
* @return {!proto.notification.MailTemplateTranslationRequest} returns this
|
|
7284
|
+
*/
|
|
7285
|
+
proto.notification.MailTemplateTranslationRequest.prototype.setTemplateId = function(value) {
|
|
7286
|
+
return jspb.Message.setField(this, 1, value);
|
|
7287
|
+
};
|
|
7288
|
+
|
|
7289
|
+
|
|
7290
|
+
/**
|
|
7291
|
+
* Clears the field making it undefined.
|
|
7292
|
+
* @return {!proto.notification.MailTemplateTranslationRequest} returns this
|
|
7293
|
+
*/
|
|
7294
|
+
proto.notification.MailTemplateTranslationRequest.prototype.clearTemplateId = function() {
|
|
7295
|
+
return jspb.Message.setField(this, 1, undefined);
|
|
7296
|
+
};
|
|
7297
|
+
|
|
7298
|
+
|
|
7299
|
+
/**
|
|
7300
|
+
* Returns whether this field is set.
|
|
7301
|
+
* @return {boolean}
|
|
7302
|
+
*/
|
|
7303
|
+
proto.notification.MailTemplateTranslationRequest.prototype.hasTemplateId = function() {
|
|
7304
|
+
return jspb.Message.getField(this, 1) != null;
|
|
7305
|
+
};
|
|
7306
|
+
|
|
7307
|
+
|
|
7308
|
+
/**
|
|
7309
|
+
* optional string locale = 2;
|
|
7310
|
+
* @return {string}
|
|
7311
|
+
*/
|
|
7312
|
+
proto.notification.MailTemplateTranslationRequest.prototype.getLocale = function() {
|
|
7313
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
7314
|
+
};
|
|
7315
|
+
|
|
7316
|
+
|
|
7317
|
+
/**
|
|
7318
|
+
* @param {string} value
|
|
7319
|
+
* @return {!proto.notification.MailTemplateTranslationRequest} returns this
|
|
7320
|
+
*/
|
|
7321
|
+
proto.notification.MailTemplateTranslationRequest.prototype.setLocale = function(value) {
|
|
7322
|
+
return jspb.Message.setField(this, 2, value);
|
|
7323
|
+
};
|
|
7324
|
+
|
|
7325
|
+
|
|
7326
|
+
/**
|
|
7327
|
+
* Clears the field making it undefined.
|
|
7328
|
+
* @return {!proto.notification.MailTemplateTranslationRequest} returns this
|
|
7329
|
+
*/
|
|
7330
|
+
proto.notification.MailTemplateTranslationRequest.prototype.clearLocale = function() {
|
|
7331
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
7332
|
+
};
|
|
7333
|
+
|
|
7334
|
+
|
|
7335
|
+
/**
|
|
7336
|
+
* Returns whether this field is set.
|
|
7337
|
+
* @return {boolean}
|
|
7338
|
+
*/
|
|
7339
|
+
proto.notification.MailTemplateTranslationRequest.prototype.hasLocale = function() {
|
|
7340
|
+
return jspb.Message.getField(this, 2) != null;
|
|
7341
|
+
};
|
|
7342
|
+
|
|
7343
|
+
|
|
7344
|
+
/**
|
|
7345
|
+
* optional string title = 3;
|
|
7346
|
+
* @return {string}
|
|
7347
|
+
*/
|
|
7348
|
+
proto.notification.MailTemplateTranslationRequest.prototype.getTitle = function() {
|
|
7349
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
7350
|
+
};
|
|
7351
|
+
|
|
7352
|
+
|
|
7353
|
+
/**
|
|
7354
|
+
* @param {string} value
|
|
7355
|
+
* @return {!proto.notification.MailTemplateTranslationRequest} returns this
|
|
7356
|
+
*/
|
|
7357
|
+
proto.notification.MailTemplateTranslationRequest.prototype.setTitle = function(value) {
|
|
7358
|
+
return jspb.Message.setField(this, 3, value);
|
|
7359
|
+
};
|
|
7360
|
+
|
|
7361
|
+
|
|
7362
|
+
/**
|
|
7363
|
+
* Clears the field making it undefined.
|
|
7364
|
+
* @return {!proto.notification.MailTemplateTranslationRequest} returns this
|
|
7365
|
+
*/
|
|
7366
|
+
proto.notification.MailTemplateTranslationRequest.prototype.clearTitle = function() {
|
|
7367
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
7368
|
+
};
|
|
7369
|
+
|
|
7370
|
+
|
|
7371
|
+
/**
|
|
7372
|
+
* Returns whether this field is set.
|
|
7373
|
+
* @return {boolean}
|
|
7374
|
+
*/
|
|
7375
|
+
proto.notification.MailTemplateTranslationRequest.prototype.hasTitle = function() {
|
|
7376
|
+
return jspb.Message.getField(this, 3) != null;
|
|
7377
|
+
};
|
|
7378
|
+
|
|
7379
|
+
|
|
7380
|
+
/**
|
|
7381
|
+
* optional string content = 4;
|
|
7382
|
+
* @return {string}
|
|
7383
|
+
*/
|
|
7384
|
+
proto.notification.MailTemplateTranslationRequest.prototype.getContent = function() {
|
|
7385
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
7386
|
+
};
|
|
7387
|
+
|
|
7388
|
+
|
|
7389
|
+
/**
|
|
7390
|
+
* @param {string} value
|
|
7391
|
+
* @return {!proto.notification.MailTemplateTranslationRequest} returns this
|
|
7392
|
+
*/
|
|
7393
|
+
proto.notification.MailTemplateTranslationRequest.prototype.setContent = function(value) {
|
|
7394
|
+
return jspb.Message.setField(this, 4, value);
|
|
7395
|
+
};
|
|
7396
|
+
|
|
7397
|
+
|
|
7398
|
+
/**
|
|
7399
|
+
* Clears the field making it undefined.
|
|
7400
|
+
* @return {!proto.notification.MailTemplateTranslationRequest} returns this
|
|
7401
|
+
*/
|
|
7402
|
+
proto.notification.MailTemplateTranslationRequest.prototype.clearContent = function() {
|
|
7403
|
+
return jspb.Message.setField(this, 4, undefined);
|
|
7404
|
+
};
|
|
7405
|
+
|
|
7406
|
+
|
|
7407
|
+
/**
|
|
7408
|
+
* Returns whether this field is set.
|
|
7409
|
+
* @return {boolean}
|
|
7410
|
+
*/
|
|
7411
|
+
proto.notification.MailTemplateTranslationRequest.prototype.hasContent = function() {
|
|
7412
|
+
return jspb.Message.getField(this, 4) != null;
|
|
7413
|
+
};
|
|
7414
|
+
|
|
7415
|
+
|
|
7416
|
+
/**
|
|
7417
|
+
* optional int32 is_active = 5;
|
|
7418
|
+
* @return {number}
|
|
7419
|
+
*/
|
|
7420
|
+
proto.notification.MailTemplateTranslationRequest.prototype.getIsActive = function() {
|
|
7421
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
|
|
7422
|
+
};
|
|
7423
|
+
|
|
7424
|
+
|
|
7425
|
+
/**
|
|
7426
|
+
* @param {number} value
|
|
7427
|
+
* @return {!proto.notification.MailTemplateTranslationRequest} returns this
|
|
7428
|
+
*/
|
|
7429
|
+
proto.notification.MailTemplateTranslationRequest.prototype.setIsActive = function(value) {
|
|
7430
|
+
return jspb.Message.setField(this, 5, value);
|
|
7431
|
+
};
|
|
7432
|
+
|
|
7433
|
+
|
|
7434
|
+
/**
|
|
7435
|
+
* Clears the field making it undefined.
|
|
7436
|
+
* @return {!proto.notification.MailTemplateTranslationRequest} returns this
|
|
7437
|
+
*/
|
|
7438
|
+
proto.notification.MailTemplateTranslationRequest.prototype.clearIsActive = function() {
|
|
7439
|
+
return jspb.Message.setField(this, 5, undefined);
|
|
7440
|
+
};
|
|
7441
|
+
|
|
7442
|
+
|
|
7443
|
+
/**
|
|
7444
|
+
* Returns whether this field is set.
|
|
7445
|
+
* @return {boolean}
|
|
7446
|
+
*/
|
|
7447
|
+
proto.notification.MailTemplateTranslationRequest.prototype.hasIsActive = function() {
|
|
7448
|
+
return jspb.Message.getField(this, 5) != null;
|
|
7449
|
+
};
|
|
7450
|
+
|
|
7451
|
+
|
|
7452
|
+
|
|
7453
|
+
|
|
7454
|
+
|
|
7455
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
7456
|
+
/**
|
|
7457
|
+
* Creates an object representation of this proto.
|
|
7458
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
7459
|
+
* Optional fields that are not set will be set to undefined.
|
|
7460
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
7461
|
+
* For the list of reserved names please see:
|
|
7462
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
7463
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
7464
|
+
* JSPB instance for transitional soy proto support:
|
|
7465
|
+
* http://goto/soy-param-migration
|
|
7466
|
+
* @return {!Object}
|
|
7467
|
+
*/
|
|
7468
|
+
proto.notification.GetMailTemplateTranslationRequest.prototype.toObject = function(opt_includeInstance) {
|
|
7469
|
+
return proto.notification.GetMailTemplateTranslationRequest.toObject(opt_includeInstance, this);
|
|
7470
|
+
};
|
|
7471
|
+
|
|
7472
|
+
|
|
7473
|
+
/**
|
|
7474
|
+
* Static version of the {@see toObject} method.
|
|
7475
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
7476
|
+
* the JSPB instance for transitional soy proto support:
|
|
7477
|
+
* http://goto/soy-param-migration
|
|
7478
|
+
* @param {!proto.notification.GetMailTemplateTranslationRequest} msg The msg instance to transform.
|
|
7479
|
+
* @return {!Object}
|
|
7480
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7481
|
+
*/
|
|
7482
|
+
proto.notification.GetMailTemplateTranslationRequest.toObject = function(includeInstance, msg) {
|
|
7483
|
+
var f, obj = {
|
|
7484
|
+
templateId: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
7485
|
+
locale: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
7486
|
+
};
|
|
7487
|
+
|
|
7488
|
+
if (includeInstance) {
|
|
7489
|
+
obj.$jspbMessageInstance = msg;
|
|
7490
|
+
}
|
|
7491
|
+
return obj;
|
|
7492
|
+
};
|
|
7493
|
+
}
|
|
7494
|
+
|
|
7495
|
+
|
|
7496
|
+
/**
|
|
7497
|
+
* Deserializes binary data (in protobuf wire format).
|
|
7498
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
7499
|
+
* @return {!proto.notification.GetMailTemplateTranslationRequest}
|
|
7500
|
+
*/
|
|
7501
|
+
proto.notification.GetMailTemplateTranslationRequest.deserializeBinary = function(bytes) {
|
|
7502
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
7503
|
+
var msg = new proto.notification.GetMailTemplateTranslationRequest;
|
|
7504
|
+
return proto.notification.GetMailTemplateTranslationRequest.deserializeBinaryFromReader(msg, reader);
|
|
7505
|
+
};
|
|
7506
|
+
|
|
7507
|
+
|
|
7508
|
+
/**
|
|
7509
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
7510
|
+
* given reader into the given message object.
|
|
7511
|
+
* @param {!proto.notification.GetMailTemplateTranslationRequest} msg The message object to deserialize into.
|
|
7512
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
7513
|
+
* @return {!proto.notification.GetMailTemplateTranslationRequest}
|
|
7514
|
+
*/
|
|
7515
|
+
proto.notification.GetMailTemplateTranslationRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
7516
|
+
while (reader.nextField()) {
|
|
7517
|
+
if (reader.isEndGroup()) {
|
|
7518
|
+
break;
|
|
7519
|
+
}
|
|
7520
|
+
var field = reader.getFieldNumber();
|
|
7521
|
+
switch (field) {
|
|
7522
|
+
case 1:
|
|
7523
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
7524
|
+
msg.setTemplateId(value);
|
|
7525
|
+
break;
|
|
7526
|
+
case 2:
|
|
7527
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7528
|
+
msg.setLocale(value);
|
|
7529
|
+
break;
|
|
7530
|
+
default:
|
|
7531
|
+
reader.skipField();
|
|
7532
|
+
break;
|
|
7533
|
+
}
|
|
7534
|
+
}
|
|
7535
|
+
return msg;
|
|
7536
|
+
};
|
|
7537
|
+
|
|
7538
|
+
|
|
7539
|
+
/**
|
|
7540
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
7541
|
+
* @return {!Uint8Array}
|
|
7542
|
+
*/
|
|
7543
|
+
proto.notification.GetMailTemplateTranslationRequest.prototype.serializeBinary = function() {
|
|
7544
|
+
var writer = new jspb.BinaryWriter();
|
|
7545
|
+
proto.notification.GetMailTemplateTranslationRequest.serializeBinaryToWriter(this, writer);
|
|
7546
|
+
return writer.getResultBuffer();
|
|
7547
|
+
};
|
|
7548
|
+
|
|
7549
|
+
|
|
7550
|
+
/**
|
|
7551
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
7552
|
+
* format), writing to the given BinaryWriter.
|
|
7553
|
+
* @param {!proto.notification.GetMailTemplateTranslationRequest} message
|
|
7554
|
+
* @param {!jspb.BinaryWriter} writer
|
|
7555
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7556
|
+
*/
|
|
7557
|
+
proto.notification.GetMailTemplateTranslationRequest.serializeBinaryToWriter = function(message, writer) {
|
|
7558
|
+
var f = undefined;
|
|
7559
|
+
f = message.getTemplateId();
|
|
7560
|
+
if (f !== 0) {
|
|
7561
|
+
writer.writeInt32(
|
|
7562
|
+
1,
|
|
7563
|
+
f
|
|
7564
|
+
);
|
|
7565
|
+
}
|
|
7566
|
+
f = message.getLocale();
|
|
7567
|
+
if (f.length > 0) {
|
|
7568
|
+
writer.writeString(
|
|
7569
|
+
2,
|
|
7570
|
+
f
|
|
7571
|
+
);
|
|
7572
|
+
}
|
|
7573
|
+
};
|
|
7574
|
+
|
|
7575
|
+
|
|
7576
|
+
/**
|
|
7577
|
+
* optional int32 template_id = 1;
|
|
7578
|
+
* @return {number}
|
|
7579
|
+
*/
|
|
7580
|
+
proto.notification.GetMailTemplateTranslationRequest.prototype.getTemplateId = function() {
|
|
7581
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
7582
|
+
};
|
|
7583
|
+
|
|
7584
|
+
|
|
7585
|
+
/**
|
|
7586
|
+
* @param {number} value
|
|
7587
|
+
* @return {!proto.notification.GetMailTemplateTranslationRequest} returns this
|
|
7588
|
+
*/
|
|
7589
|
+
proto.notification.GetMailTemplateTranslationRequest.prototype.setTemplateId = function(value) {
|
|
7590
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
7591
|
+
};
|
|
7592
|
+
|
|
7593
|
+
|
|
7594
|
+
/**
|
|
7595
|
+
* optional string locale = 2;
|
|
7596
|
+
* @return {string}
|
|
7597
|
+
*/
|
|
7598
|
+
proto.notification.GetMailTemplateTranslationRequest.prototype.getLocale = function() {
|
|
7599
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
7600
|
+
};
|
|
7601
|
+
|
|
7602
|
+
|
|
7603
|
+
/**
|
|
7604
|
+
* @param {string} value
|
|
7605
|
+
* @return {!proto.notification.GetMailTemplateTranslationRequest} returns this
|
|
7606
|
+
*/
|
|
7607
|
+
proto.notification.GetMailTemplateTranslationRequest.prototype.setLocale = function(value) {
|
|
7608
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
7609
|
+
};
|
|
7610
|
+
|
|
7611
|
+
|
|
7612
|
+
|
|
7613
|
+
|
|
7614
|
+
|
|
7615
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
7616
|
+
/**
|
|
7617
|
+
* Creates an object representation of this proto.
|
|
7618
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
7619
|
+
* Optional fields that are not set will be set to undefined.
|
|
7620
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
7621
|
+
* For the list of reserved names please see:
|
|
7622
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
7623
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
7624
|
+
* JSPB instance for transitional soy proto support:
|
|
7625
|
+
* http://goto/soy-param-migration
|
|
7626
|
+
* @return {!Object}
|
|
7627
|
+
*/
|
|
7628
|
+
proto.notification.MailTemplateTranslationResponse.prototype.toObject = function(opt_includeInstance) {
|
|
7629
|
+
return proto.notification.MailTemplateTranslationResponse.toObject(opt_includeInstance, this);
|
|
7630
|
+
};
|
|
7631
|
+
|
|
7632
|
+
|
|
7633
|
+
/**
|
|
7634
|
+
* Static version of the {@see toObject} method.
|
|
7635
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
7636
|
+
* the JSPB instance for transitional soy proto support:
|
|
7637
|
+
* http://goto/soy-param-migration
|
|
7638
|
+
* @param {!proto.notification.MailTemplateTranslationResponse} msg The msg instance to transform.
|
|
7639
|
+
* @return {!Object}
|
|
7640
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7641
|
+
*/
|
|
7642
|
+
proto.notification.MailTemplateTranslationResponse.toObject = function(includeInstance, msg) {
|
|
7643
|
+
var f, obj = {
|
|
7644
|
+
title: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
7645
|
+
content: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
7646
|
+
isActive: jspb.Message.getFieldWithDefault(msg, 3, 0),
|
|
7647
|
+
locale: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
7648
|
+
};
|
|
7649
|
+
|
|
7650
|
+
if (includeInstance) {
|
|
7651
|
+
obj.$jspbMessageInstance = msg;
|
|
7652
|
+
}
|
|
7653
|
+
return obj;
|
|
7654
|
+
};
|
|
7655
|
+
}
|
|
7656
|
+
|
|
7657
|
+
|
|
7658
|
+
/**
|
|
7659
|
+
* Deserializes binary data (in protobuf wire format).
|
|
7660
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
7661
|
+
* @return {!proto.notification.MailTemplateTranslationResponse}
|
|
7662
|
+
*/
|
|
7663
|
+
proto.notification.MailTemplateTranslationResponse.deserializeBinary = function(bytes) {
|
|
7664
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
7665
|
+
var msg = new proto.notification.MailTemplateTranslationResponse;
|
|
7666
|
+
return proto.notification.MailTemplateTranslationResponse.deserializeBinaryFromReader(msg, reader);
|
|
7667
|
+
};
|
|
7668
|
+
|
|
7669
|
+
|
|
7670
|
+
/**
|
|
7671
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
7672
|
+
* given reader into the given message object.
|
|
7673
|
+
* @param {!proto.notification.MailTemplateTranslationResponse} msg The message object to deserialize into.
|
|
7674
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
7675
|
+
* @return {!proto.notification.MailTemplateTranslationResponse}
|
|
7676
|
+
*/
|
|
7677
|
+
proto.notification.MailTemplateTranslationResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
7678
|
+
while (reader.nextField()) {
|
|
7679
|
+
if (reader.isEndGroup()) {
|
|
7680
|
+
break;
|
|
7681
|
+
}
|
|
7682
|
+
var field = reader.getFieldNumber();
|
|
7683
|
+
switch (field) {
|
|
7684
|
+
case 1:
|
|
7685
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7686
|
+
msg.setTitle(value);
|
|
7687
|
+
break;
|
|
7688
|
+
case 2:
|
|
7689
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7690
|
+
msg.setContent(value);
|
|
7691
|
+
break;
|
|
7692
|
+
case 3:
|
|
7693
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
7694
|
+
msg.setIsActive(value);
|
|
7695
|
+
break;
|
|
7696
|
+
case 4:
|
|
7697
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7698
|
+
msg.setLocale(value);
|
|
7699
|
+
break;
|
|
7700
|
+
default:
|
|
7701
|
+
reader.skipField();
|
|
7702
|
+
break;
|
|
7703
|
+
}
|
|
7704
|
+
}
|
|
7705
|
+
return msg;
|
|
7706
|
+
};
|
|
7707
|
+
|
|
7708
|
+
|
|
7709
|
+
/**
|
|
7710
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
7711
|
+
* @return {!Uint8Array}
|
|
7712
|
+
*/
|
|
7713
|
+
proto.notification.MailTemplateTranslationResponse.prototype.serializeBinary = function() {
|
|
7714
|
+
var writer = new jspb.BinaryWriter();
|
|
7715
|
+
proto.notification.MailTemplateTranslationResponse.serializeBinaryToWriter(this, writer);
|
|
7716
|
+
return writer.getResultBuffer();
|
|
7717
|
+
};
|
|
7718
|
+
|
|
7719
|
+
|
|
7720
|
+
/**
|
|
7721
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
7722
|
+
* format), writing to the given BinaryWriter.
|
|
7723
|
+
* @param {!proto.notification.MailTemplateTranslationResponse} message
|
|
7724
|
+
* @param {!jspb.BinaryWriter} writer
|
|
7725
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7726
|
+
*/
|
|
7727
|
+
proto.notification.MailTemplateTranslationResponse.serializeBinaryToWriter = function(message, writer) {
|
|
7728
|
+
var f = undefined;
|
|
7729
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 1));
|
|
7730
|
+
if (f != null) {
|
|
7731
|
+
writer.writeString(
|
|
7732
|
+
1,
|
|
7733
|
+
f
|
|
7734
|
+
);
|
|
7735
|
+
}
|
|
7736
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 2));
|
|
7737
|
+
if (f != null) {
|
|
7738
|
+
writer.writeString(
|
|
7739
|
+
2,
|
|
7740
|
+
f
|
|
7741
|
+
);
|
|
7742
|
+
}
|
|
7743
|
+
f = /** @type {number} */ (jspb.Message.getField(message, 3));
|
|
7744
|
+
if (f != null) {
|
|
7745
|
+
writer.writeInt32(
|
|
7746
|
+
3,
|
|
7747
|
+
f
|
|
7748
|
+
);
|
|
7749
|
+
}
|
|
7750
|
+
f = /** @type {string} */ (jspb.Message.getField(message, 4));
|
|
7751
|
+
if (f != null) {
|
|
7752
|
+
writer.writeString(
|
|
7753
|
+
4,
|
|
7754
|
+
f
|
|
7755
|
+
);
|
|
7756
|
+
}
|
|
7757
|
+
};
|
|
7758
|
+
|
|
7759
|
+
|
|
7760
|
+
/**
|
|
7761
|
+
* optional string title = 1;
|
|
7762
|
+
* @return {string}
|
|
7763
|
+
*/
|
|
7764
|
+
proto.notification.MailTemplateTranslationResponse.prototype.getTitle = function() {
|
|
7765
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
7766
|
+
};
|
|
7767
|
+
|
|
7768
|
+
|
|
7769
|
+
/**
|
|
7770
|
+
* @param {string} value
|
|
7771
|
+
* @return {!proto.notification.MailTemplateTranslationResponse} returns this
|
|
7772
|
+
*/
|
|
7773
|
+
proto.notification.MailTemplateTranslationResponse.prototype.setTitle = function(value) {
|
|
7774
|
+
return jspb.Message.setField(this, 1, value);
|
|
7775
|
+
};
|
|
7776
|
+
|
|
7777
|
+
|
|
7778
|
+
/**
|
|
7779
|
+
* Clears the field making it undefined.
|
|
7780
|
+
* @return {!proto.notification.MailTemplateTranslationResponse} returns this
|
|
7781
|
+
*/
|
|
7782
|
+
proto.notification.MailTemplateTranslationResponse.prototype.clearTitle = function() {
|
|
7783
|
+
return jspb.Message.setField(this, 1, undefined);
|
|
7784
|
+
};
|
|
7785
|
+
|
|
7786
|
+
|
|
7787
|
+
/**
|
|
7788
|
+
* Returns whether this field is set.
|
|
7789
|
+
* @return {boolean}
|
|
7790
|
+
*/
|
|
7791
|
+
proto.notification.MailTemplateTranslationResponse.prototype.hasTitle = function() {
|
|
7792
|
+
return jspb.Message.getField(this, 1) != null;
|
|
7793
|
+
};
|
|
7794
|
+
|
|
7795
|
+
|
|
7796
|
+
/**
|
|
7797
|
+
* optional string content = 2;
|
|
7798
|
+
* @return {string}
|
|
7799
|
+
*/
|
|
7800
|
+
proto.notification.MailTemplateTranslationResponse.prototype.getContent = function() {
|
|
7801
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
7802
|
+
};
|
|
7803
|
+
|
|
7804
|
+
|
|
7805
|
+
/**
|
|
7806
|
+
* @param {string} value
|
|
7807
|
+
* @return {!proto.notification.MailTemplateTranslationResponse} returns this
|
|
7808
|
+
*/
|
|
7809
|
+
proto.notification.MailTemplateTranslationResponse.prototype.setContent = function(value) {
|
|
7810
|
+
return jspb.Message.setField(this, 2, value);
|
|
7811
|
+
};
|
|
7812
|
+
|
|
7813
|
+
|
|
7814
|
+
/**
|
|
7815
|
+
* Clears the field making it undefined.
|
|
7816
|
+
* @return {!proto.notification.MailTemplateTranslationResponse} returns this
|
|
7817
|
+
*/
|
|
7818
|
+
proto.notification.MailTemplateTranslationResponse.prototype.clearContent = function() {
|
|
7819
|
+
return jspb.Message.setField(this, 2, undefined);
|
|
7820
|
+
};
|
|
7821
|
+
|
|
7822
|
+
|
|
7823
|
+
/**
|
|
7824
|
+
* Returns whether this field is set.
|
|
7825
|
+
* @return {boolean}
|
|
7826
|
+
*/
|
|
7827
|
+
proto.notification.MailTemplateTranslationResponse.prototype.hasContent = function() {
|
|
7828
|
+
return jspb.Message.getField(this, 2) != null;
|
|
7829
|
+
};
|
|
7830
|
+
|
|
7831
|
+
|
|
7832
|
+
/**
|
|
7833
|
+
* optional int32 is_active = 3;
|
|
7834
|
+
* @return {number}
|
|
7835
|
+
*/
|
|
7836
|
+
proto.notification.MailTemplateTranslationResponse.prototype.getIsActive = function() {
|
|
7837
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
7838
|
+
};
|
|
7839
|
+
|
|
7840
|
+
|
|
7841
|
+
/**
|
|
7842
|
+
* @param {number} value
|
|
7843
|
+
* @return {!proto.notification.MailTemplateTranslationResponse} returns this
|
|
7844
|
+
*/
|
|
7845
|
+
proto.notification.MailTemplateTranslationResponse.prototype.setIsActive = function(value) {
|
|
7846
|
+
return jspb.Message.setField(this, 3, value);
|
|
7847
|
+
};
|
|
7848
|
+
|
|
7849
|
+
|
|
7850
|
+
/**
|
|
7851
|
+
* Clears the field making it undefined.
|
|
7852
|
+
* @return {!proto.notification.MailTemplateTranslationResponse} returns this
|
|
7853
|
+
*/
|
|
7854
|
+
proto.notification.MailTemplateTranslationResponse.prototype.clearIsActive = function() {
|
|
7855
|
+
return jspb.Message.setField(this, 3, undefined);
|
|
7856
|
+
};
|
|
7857
|
+
|
|
7858
|
+
|
|
7859
|
+
/**
|
|
7860
|
+
* Returns whether this field is set.
|
|
7861
|
+
* @return {boolean}
|
|
7862
|
+
*/
|
|
7863
|
+
proto.notification.MailTemplateTranslationResponse.prototype.hasIsActive = function() {
|
|
7864
|
+
return jspb.Message.getField(this, 3) != null;
|
|
7865
|
+
};
|
|
7866
|
+
|
|
7867
|
+
|
|
7868
|
+
/**
|
|
7869
|
+
* optional string locale = 4;
|
|
7870
|
+
* @return {string}
|
|
7871
|
+
*/
|
|
7872
|
+
proto.notification.MailTemplateTranslationResponse.prototype.getLocale = function() {
|
|
7873
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
7874
|
+
};
|
|
7875
|
+
|
|
7876
|
+
|
|
7877
|
+
/**
|
|
7878
|
+
* @param {string} value
|
|
7879
|
+
* @return {!proto.notification.MailTemplateTranslationResponse} returns this
|
|
7880
|
+
*/
|
|
7881
|
+
proto.notification.MailTemplateTranslationResponse.prototype.setLocale = function(value) {
|
|
7882
|
+
return jspb.Message.setField(this, 4, value);
|
|
7883
|
+
};
|
|
7884
|
+
|
|
7885
|
+
|
|
7886
|
+
/**
|
|
7887
|
+
* Clears the field making it undefined.
|
|
7888
|
+
* @return {!proto.notification.MailTemplateTranslationResponse} returns this
|
|
7889
|
+
*/
|
|
7890
|
+
proto.notification.MailTemplateTranslationResponse.prototype.clearLocale = function() {
|
|
7891
|
+
return jspb.Message.setField(this, 4, undefined);
|
|
7892
|
+
};
|
|
7893
|
+
|
|
7894
|
+
|
|
7895
|
+
/**
|
|
7896
|
+
* Returns whether this field is set.
|
|
7897
|
+
* @return {boolean}
|
|
7898
|
+
*/
|
|
7899
|
+
proto.notification.MailTemplateTranslationResponse.prototype.hasLocale = function() {
|
|
7900
|
+
return jspb.Message.getField(this, 4) != null;
|
|
7901
|
+
};
|
|
7902
|
+
|
|
7903
|
+
|
|
7046
7904
|
goog.object.extend(exports, proto.notification);
|