protobuf-platform 1.2.79 → 1.2.81

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.
@@ -19,6 +19,9 @@ service Notification {
19
19
  rpc deleteSingleMailTemplate(GetMailTemplateRequest) returns (MailTemplateStatusResponse);
20
20
  rpc readListMailTemplates(PaginationRequest) returns (MailTemplateItemsResponse);
21
21
  rpc updateMailTemplatesInBunch(ItemsBunchRequest) returns (MailTemplateStatusResponse);
22
+ rpc getMailTypes(PaginationRequest) returns (MailTypesResponse);
23
+ rpc setMailTemplateTranslation(MailTemplateTranslationRequest) returns (MailTemplateStatusResponse);
24
+ rpc getMailTemplateTranslation(GetMailTemplateTranslationRequest) returns (MailTemplateStatusResponse);
22
25
  //Users
23
26
  rpc sendNotificationToUsers(SendNotificationRequest) returns (NotificationStatusResponse);
24
27
  rpc getNotificationForParticularUser(PaginationRequest) returns (UserNotificationItemsResponse);
@@ -166,4 +169,18 @@ message MailTemplateItemsResponse {
166
169
  repeated MailTemplateItem items = 1;
167
170
  optional int32 total_pages = 2;
168
171
  optional int32 total_items = 3;
172
+ }
173
+ message MailTypesResponse {
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;
169
186
  }
@@ -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_MailTypesResponse(arg) {
129
+ if (!(arg instanceof notification_pb.MailTypesResponse)) {
130
+ throw new Error('Expected argument of type notification.MailTypesResponse');
131
+ }
132
+ return Buffer.from(arg.serializeBinary());
133
+ }
134
+
135
+ function deserialize_notification_MailTypesResponse(buffer_arg) {
136
+ return notification_pb.MailTypesResponse.deserializeBinary(new Uint8Array(buffer_arg));
137
+ }
138
+
106
139
  function serialize_notification_NotificationItemsResponse(arg) {
107
140
  if (!(arg instanceof notification_pb.NotificationItemsResponse)) {
108
141
  throw new Error('Expected argument of type notification.NotificationItemsResponse');
@@ -382,6 +415,39 @@ createSingleMailTemplate: {
382
415
  responseSerialize: serialize_notification_MailTemplateStatusResponse,
383
416
  responseDeserialize: deserialize_notification_MailTemplateStatusResponse,
384
417
  },
418
+ getMailTypes: {
419
+ path: '/notification.Notification/getMailTypes',
420
+ requestStream: false,
421
+ responseStream: false,
422
+ requestType: notification_pb.PaginationRequest,
423
+ responseType: notification_pb.MailTypesResponse,
424
+ requestSerialize: serialize_notification_PaginationRequest,
425
+ requestDeserialize: deserialize_notification_PaginationRequest,
426
+ responseSerialize: serialize_notification_MailTypesResponse,
427
+ responseDeserialize: deserialize_notification_MailTypesResponse,
428
+ },
429
+ setMailTemplateTranslation: {
430
+ path: '/notification.Notification/setMailTemplateTranslation',
431
+ requestStream: false,
432
+ responseStream: false,
433
+ requestType: notification_pb.MailTemplateTranslationRequest,
434
+ responseType: notification_pb.MailTemplateStatusResponse,
435
+ requestSerialize: serialize_notification_MailTemplateTranslationRequest,
436
+ requestDeserialize: deserialize_notification_MailTemplateTranslationRequest,
437
+ responseSerialize: serialize_notification_MailTemplateStatusResponse,
438
+ responseDeserialize: deserialize_notification_MailTemplateStatusResponse,
439
+ },
440
+ getMailTemplateTranslation: {
441
+ path: '/notification.Notification/getMailTemplateTranslation',
442
+ requestStream: false,
443
+ responseStream: false,
444
+ requestType: notification_pb.GetMailTemplateTranslationRequest,
445
+ responseType: notification_pb.MailTemplateStatusResponse,
446
+ requestSerialize: serialize_notification_GetMailTemplateTranslationRequest,
447
+ requestDeserialize: deserialize_notification_GetMailTemplateTranslationRequest,
448
+ responseSerialize: serialize_notification_MailTemplateStatusResponse,
449
+ responseDeserialize: deserialize_notification_MailTemplateStatusResponse,
450
+ },
385
451
  // Users
386
452
  sendNotificationToUsers: {
387
453
  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.MailTypesResponse', null, global);
37
40
  goog.exportSymbol('proto.notification.NotificationItem', null, global);
38
41
  goog.exportSymbol('proto.notification.NotificationItemsResponse', null, global);
39
42
  goog.exportSymbol('proto.notification.NotificationRequest', null, global);
@@ -594,6 +597,69 @@ if (goog.DEBUG && !COMPILED) {
594
597
  */
595
598
  proto.notification.MailTemplateItemsResponse.displayName = 'proto.notification.MailTemplateItemsResponse';
596
599
  }
600
+ /**
601
+ * Generated by JsPbCodeGenerator.
602
+ * @param {Array=} opt_data Optional initial data array, typically from a
603
+ * server response, or constructed directly in Javascript. The array is used
604
+ * in place and becomes part of the constructed object. It is not cloned.
605
+ * If no data is provided, the constructed object will be empty, but still
606
+ * valid.
607
+ * @extends {jspb.Message}
608
+ * @constructor
609
+ */
610
+ proto.notification.MailTypesResponse = function(opt_data) {
611
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.notification.MailTypesResponse.repeatedFields_, null);
612
+ };
613
+ goog.inherits(proto.notification.MailTypesResponse, jspb.Message);
614
+ if (goog.DEBUG && !COMPILED) {
615
+ /**
616
+ * @public
617
+ * @override
618
+ */
619
+ proto.notification.MailTypesResponse.displayName = 'proto.notification.MailTypesResponse';
620
+ }
621
+ /**
622
+ * Generated by JsPbCodeGenerator.
623
+ * @param {Array=} opt_data Optional initial data array, typically from a
624
+ * server response, or constructed directly in Javascript. The array is used
625
+ * in place and becomes part of the constructed object. It is not cloned.
626
+ * If no data is provided, the constructed object will be empty, but still
627
+ * valid.
628
+ * @extends {jspb.Message}
629
+ * @constructor
630
+ */
631
+ proto.notification.MailTemplateTranslationRequest = function(opt_data) {
632
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
633
+ };
634
+ goog.inherits(proto.notification.MailTemplateTranslationRequest, jspb.Message);
635
+ if (goog.DEBUG && !COMPILED) {
636
+ /**
637
+ * @public
638
+ * @override
639
+ */
640
+ proto.notification.MailTemplateTranslationRequest.displayName = 'proto.notification.MailTemplateTranslationRequest';
641
+ }
642
+ /**
643
+ * Generated by JsPbCodeGenerator.
644
+ * @param {Array=} opt_data Optional initial data array, typically from a
645
+ * server response, or constructed directly in Javascript. The array is used
646
+ * in place and becomes part of the constructed object. It is not cloned.
647
+ * If no data is provided, the constructed object will be empty, but still
648
+ * valid.
649
+ * @extends {jspb.Message}
650
+ * @constructor
651
+ */
652
+ proto.notification.GetMailTemplateTranslationRequest = function(opt_data) {
653
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
654
+ };
655
+ goog.inherits(proto.notification.GetMailTemplateTranslationRequest, jspb.Message);
656
+ if (goog.DEBUG && !COMPILED) {
657
+ /**
658
+ * @public
659
+ * @override
660
+ */
661
+ proto.notification.GetMailTemplateTranslationRequest.displayName = 'proto.notification.GetMailTemplateTranslationRequest';
662
+ }
597
663
 
598
664
 
599
665
 
@@ -6865,4 +6931,660 @@ proto.notification.MailTemplateItemsResponse.prototype.hasTotalItems = function(
6865
6931
  };
6866
6932
 
6867
6933
 
6934
+
6935
+ /**
6936
+ * List of repeated fields within this message type.
6937
+ * @private {!Array<number>}
6938
+ * @const
6939
+ */
6940
+ proto.notification.MailTypesResponse.repeatedFields_ = [1];
6941
+
6942
+
6943
+
6944
+ if (jspb.Message.GENERATE_TO_OBJECT) {
6945
+ /**
6946
+ * Creates an object representation of this proto.
6947
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
6948
+ * Optional fields that are not set will be set to undefined.
6949
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
6950
+ * For the list of reserved names please see:
6951
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
6952
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
6953
+ * JSPB instance for transitional soy proto support:
6954
+ * http://goto/soy-param-migration
6955
+ * @return {!Object}
6956
+ */
6957
+ proto.notification.MailTypesResponse.prototype.toObject = function(opt_includeInstance) {
6958
+ return proto.notification.MailTypesResponse.toObject(opt_includeInstance, this);
6959
+ };
6960
+
6961
+
6962
+ /**
6963
+ * Static version of the {@see toObject} method.
6964
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
6965
+ * the JSPB instance for transitional soy proto support:
6966
+ * http://goto/soy-param-migration
6967
+ * @param {!proto.notification.MailTypesResponse} msg The msg instance to transform.
6968
+ * @return {!Object}
6969
+ * @suppress {unusedLocalVariables} f is only used for nested messages
6970
+ */
6971
+ proto.notification.MailTypesResponse.toObject = function(includeInstance, msg) {
6972
+ var f, obj = {
6973
+ typesList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
6974
+ };
6975
+
6976
+ if (includeInstance) {
6977
+ obj.$jspbMessageInstance = msg;
6978
+ }
6979
+ return obj;
6980
+ };
6981
+ }
6982
+
6983
+
6984
+ /**
6985
+ * Deserializes binary data (in protobuf wire format).
6986
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
6987
+ * @return {!proto.notification.MailTypesResponse}
6988
+ */
6989
+ proto.notification.MailTypesResponse.deserializeBinary = function(bytes) {
6990
+ var reader = new jspb.BinaryReader(bytes);
6991
+ var msg = new proto.notification.MailTypesResponse;
6992
+ return proto.notification.MailTypesResponse.deserializeBinaryFromReader(msg, reader);
6993
+ };
6994
+
6995
+
6996
+ /**
6997
+ * Deserializes binary data (in protobuf wire format) from the
6998
+ * given reader into the given message object.
6999
+ * @param {!proto.notification.MailTypesResponse} msg The message object to deserialize into.
7000
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
7001
+ * @return {!proto.notification.MailTypesResponse}
7002
+ */
7003
+ proto.notification.MailTypesResponse.deserializeBinaryFromReader = function(msg, reader) {
7004
+ while (reader.nextField()) {
7005
+ if (reader.isEndGroup()) {
7006
+ break;
7007
+ }
7008
+ var field = reader.getFieldNumber();
7009
+ switch (field) {
7010
+ case 1:
7011
+ var value = /** @type {string} */ (reader.readString());
7012
+ msg.addTypes(value);
7013
+ break;
7014
+ default:
7015
+ reader.skipField();
7016
+ break;
7017
+ }
7018
+ }
7019
+ return msg;
7020
+ };
7021
+
7022
+
7023
+ /**
7024
+ * Serializes the message to binary data (in protobuf wire format).
7025
+ * @return {!Uint8Array}
7026
+ */
7027
+ proto.notification.MailTypesResponse.prototype.serializeBinary = function() {
7028
+ var writer = new jspb.BinaryWriter();
7029
+ proto.notification.MailTypesResponse.serializeBinaryToWriter(this, writer);
7030
+ return writer.getResultBuffer();
7031
+ };
7032
+
7033
+
7034
+ /**
7035
+ * Serializes the given message to binary data (in protobuf wire
7036
+ * format), writing to the given BinaryWriter.
7037
+ * @param {!proto.notification.MailTypesResponse} message
7038
+ * @param {!jspb.BinaryWriter} writer
7039
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7040
+ */
7041
+ proto.notification.MailTypesResponse.serializeBinaryToWriter = function(message, writer) {
7042
+ var f = undefined;
7043
+ f = message.getTypesList();
7044
+ if (f.length > 0) {
7045
+ writer.writeRepeatedString(
7046
+ 1,
7047
+ f
7048
+ );
7049
+ }
7050
+ };
7051
+
7052
+
7053
+ /**
7054
+ * repeated string types = 1;
7055
+ * @return {!Array<string>}
7056
+ */
7057
+ proto.notification.MailTypesResponse.prototype.getTypesList = function() {
7058
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
7059
+ };
7060
+
7061
+
7062
+ /**
7063
+ * @param {!Array<string>} value
7064
+ * @return {!proto.notification.MailTypesResponse} returns this
7065
+ */
7066
+ proto.notification.MailTypesResponse.prototype.setTypesList = function(value) {
7067
+ return jspb.Message.setField(this, 1, value || []);
7068
+ };
7069
+
7070
+
7071
+ /**
7072
+ * @param {string} value
7073
+ * @param {number=} opt_index
7074
+ * @return {!proto.notification.MailTypesResponse} returns this
7075
+ */
7076
+ proto.notification.MailTypesResponse.prototype.addTypes = function(value, opt_index) {
7077
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
7078
+ };
7079
+
7080
+
7081
+ /**
7082
+ * Clears the list making it empty but non-null.
7083
+ * @return {!proto.notification.MailTypesResponse} returns this
7084
+ */
7085
+ proto.notification.MailTypesResponse.prototype.clearTypesList = function() {
7086
+ return this.setTypesList([]);
7087
+ };
7088
+
7089
+
7090
+
7091
+
7092
+
7093
+ if (jspb.Message.GENERATE_TO_OBJECT) {
7094
+ /**
7095
+ * Creates an object representation of this proto.
7096
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
7097
+ * Optional fields that are not set will be set to undefined.
7098
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
7099
+ * For the list of reserved names please see:
7100
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
7101
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
7102
+ * JSPB instance for transitional soy proto support:
7103
+ * http://goto/soy-param-migration
7104
+ * @return {!Object}
7105
+ */
7106
+ proto.notification.MailTemplateTranslationRequest.prototype.toObject = function(opt_includeInstance) {
7107
+ return proto.notification.MailTemplateTranslationRequest.toObject(opt_includeInstance, this);
7108
+ };
7109
+
7110
+
7111
+ /**
7112
+ * Static version of the {@see toObject} method.
7113
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
7114
+ * the JSPB instance for transitional soy proto support:
7115
+ * http://goto/soy-param-migration
7116
+ * @param {!proto.notification.MailTemplateTranslationRequest} msg The msg instance to transform.
7117
+ * @return {!Object}
7118
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7119
+ */
7120
+ proto.notification.MailTemplateTranslationRequest.toObject = function(includeInstance, msg) {
7121
+ var f, obj = {
7122
+ templateId: jspb.Message.getFieldWithDefault(msg, 1, 0),
7123
+ locale: jspb.Message.getFieldWithDefault(msg, 2, ""),
7124
+ title: jspb.Message.getFieldWithDefault(msg, 3, ""),
7125
+ content: jspb.Message.getFieldWithDefault(msg, 4, ""),
7126
+ isActive: jspb.Message.getFieldWithDefault(msg, 5, 0)
7127
+ };
7128
+
7129
+ if (includeInstance) {
7130
+ obj.$jspbMessageInstance = msg;
7131
+ }
7132
+ return obj;
7133
+ };
7134
+ }
7135
+
7136
+
7137
+ /**
7138
+ * Deserializes binary data (in protobuf wire format).
7139
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
7140
+ * @return {!proto.notification.MailTemplateTranslationRequest}
7141
+ */
7142
+ proto.notification.MailTemplateTranslationRequest.deserializeBinary = function(bytes) {
7143
+ var reader = new jspb.BinaryReader(bytes);
7144
+ var msg = new proto.notification.MailTemplateTranslationRequest;
7145
+ return proto.notification.MailTemplateTranslationRequest.deserializeBinaryFromReader(msg, reader);
7146
+ };
7147
+
7148
+
7149
+ /**
7150
+ * Deserializes binary data (in protobuf wire format) from the
7151
+ * given reader into the given message object.
7152
+ * @param {!proto.notification.MailTemplateTranslationRequest} msg The message object to deserialize into.
7153
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
7154
+ * @return {!proto.notification.MailTemplateTranslationRequest}
7155
+ */
7156
+ proto.notification.MailTemplateTranslationRequest.deserializeBinaryFromReader = function(msg, reader) {
7157
+ while (reader.nextField()) {
7158
+ if (reader.isEndGroup()) {
7159
+ break;
7160
+ }
7161
+ var field = reader.getFieldNumber();
7162
+ switch (field) {
7163
+ case 1:
7164
+ var value = /** @type {number} */ (reader.readInt32());
7165
+ msg.setTemplateId(value);
7166
+ break;
7167
+ case 2:
7168
+ var value = /** @type {string} */ (reader.readString());
7169
+ msg.setLocale(value);
7170
+ break;
7171
+ case 3:
7172
+ var value = /** @type {string} */ (reader.readString());
7173
+ msg.setTitle(value);
7174
+ break;
7175
+ case 4:
7176
+ var value = /** @type {string} */ (reader.readString());
7177
+ msg.setContent(value);
7178
+ break;
7179
+ case 5:
7180
+ var value = /** @type {number} */ (reader.readInt32());
7181
+ msg.setIsActive(value);
7182
+ break;
7183
+ default:
7184
+ reader.skipField();
7185
+ break;
7186
+ }
7187
+ }
7188
+ return msg;
7189
+ };
7190
+
7191
+
7192
+ /**
7193
+ * Serializes the message to binary data (in protobuf wire format).
7194
+ * @return {!Uint8Array}
7195
+ */
7196
+ proto.notification.MailTemplateTranslationRequest.prototype.serializeBinary = function() {
7197
+ var writer = new jspb.BinaryWriter();
7198
+ proto.notification.MailTemplateTranslationRequest.serializeBinaryToWriter(this, writer);
7199
+ return writer.getResultBuffer();
7200
+ };
7201
+
7202
+
7203
+ /**
7204
+ * Serializes the given message to binary data (in protobuf wire
7205
+ * format), writing to the given BinaryWriter.
7206
+ * @param {!proto.notification.MailTemplateTranslationRequest} message
7207
+ * @param {!jspb.BinaryWriter} writer
7208
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7209
+ */
7210
+ proto.notification.MailTemplateTranslationRequest.serializeBinaryToWriter = function(message, writer) {
7211
+ var f = undefined;
7212
+ f = /** @type {number} */ (jspb.Message.getField(message, 1));
7213
+ if (f != null) {
7214
+ writer.writeInt32(
7215
+ 1,
7216
+ f
7217
+ );
7218
+ }
7219
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
7220
+ if (f != null) {
7221
+ writer.writeString(
7222
+ 2,
7223
+ f
7224
+ );
7225
+ }
7226
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
7227
+ if (f != null) {
7228
+ writer.writeString(
7229
+ 3,
7230
+ f
7231
+ );
7232
+ }
7233
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
7234
+ if (f != null) {
7235
+ writer.writeString(
7236
+ 4,
7237
+ f
7238
+ );
7239
+ }
7240
+ f = /** @type {number} */ (jspb.Message.getField(message, 5));
7241
+ if (f != null) {
7242
+ writer.writeInt32(
7243
+ 5,
7244
+ f
7245
+ );
7246
+ }
7247
+ };
7248
+
7249
+
7250
+ /**
7251
+ * optional int32 template_id = 1;
7252
+ * @return {number}
7253
+ */
7254
+ proto.notification.MailTemplateTranslationRequest.prototype.getTemplateId = function() {
7255
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
7256
+ };
7257
+
7258
+
7259
+ /**
7260
+ * @param {number} value
7261
+ * @return {!proto.notification.MailTemplateTranslationRequest} returns this
7262
+ */
7263
+ proto.notification.MailTemplateTranslationRequest.prototype.setTemplateId = function(value) {
7264
+ return jspb.Message.setField(this, 1, value);
7265
+ };
7266
+
7267
+
7268
+ /**
7269
+ * Clears the field making it undefined.
7270
+ * @return {!proto.notification.MailTemplateTranslationRequest} returns this
7271
+ */
7272
+ proto.notification.MailTemplateTranslationRequest.prototype.clearTemplateId = function() {
7273
+ return jspb.Message.setField(this, 1, undefined);
7274
+ };
7275
+
7276
+
7277
+ /**
7278
+ * Returns whether this field is set.
7279
+ * @return {boolean}
7280
+ */
7281
+ proto.notification.MailTemplateTranslationRequest.prototype.hasTemplateId = function() {
7282
+ return jspb.Message.getField(this, 1) != null;
7283
+ };
7284
+
7285
+
7286
+ /**
7287
+ * optional string locale = 2;
7288
+ * @return {string}
7289
+ */
7290
+ proto.notification.MailTemplateTranslationRequest.prototype.getLocale = function() {
7291
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
7292
+ };
7293
+
7294
+
7295
+ /**
7296
+ * @param {string} value
7297
+ * @return {!proto.notification.MailTemplateTranslationRequest} returns this
7298
+ */
7299
+ proto.notification.MailTemplateTranslationRequest.prototype.setLocale = function(value) {
7300
+ return jspb.Message.setField(this, 2, value);
7301
+ };
7302
+
7303
+
7304
+ /**
7305
+ * Clears the field making it undefined.
7306
+ * @return {!proto.notification.MailTemplateTranslationRequest} returns this
7307
+ */
7308
+ proto.notification.MailTemplateTranslationRequest.prototype.clearLocale = function() {
7309
+ return jspb.Message.setField(this, 2, undefined);
7310
+ };
7311
+
7312
+
7313
+ /**
7314
+ * Returns whether this field is set.
7315
+ * @return {boolean}
7316
+ */
7317
+ proto.notification.MailTemplateTranslationRequest.prototype.hasLocale = function() {
7318
+ return jspb.Message.getField(this, 2) != null;
7319
+ };
7320
+
7321
+
7322
+ /**
7323
+ * optional string title = 3;
7324
+ * @return {string}
7325
+ */
7326
+ proto.notification.MailTemplateTranslationRequest.prototype.getTitle = function() {
7327
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
7328
+ };
7329
+
7330
+
7331
+ /**
7332
+ * @param {string} value
7333
+ * @return {!proto.notification.MailTemplateTranslationRequest} returns this
7334
+ */
7335
+ proto.notification.MailTemplateTranslationRequest.prototype.setTitle = function(value) {
7336
+ return jspb.Message.setField(this, 3, value);
7337
+ };
7338
+
7339
+
7340
+ /**
7341
+ * Clears the field making it undefined.
7342
+ * @return {!proto.notification.MailTemplateTranslationRequest} returns this
7343
+ */
7344
+ proto.notification.MailTemplateTranslationRequest.prototype.clearTitle = function() {
7345
+ return jspb.Message.setField(this, 3, undefined);
7346
+ };
7347
+
7348
+
7349
+ /**
7350
+ * Returns whether this field is set.
7351
+ * @return {boolean}
7352
+ */
7353
+ proto.notification.MailTemplateTranslationRequest.prototype.hasTitle = function() {
7354
+ return jspb.Message.getField(this, 3) != null;
7355
+ };
7356
+
7357
+
7358
+ /**
7359
+ * optional string content = 4;
7360
+ * @return {string}
7361
+ */
7362
+ proto.notification.MailTemplateTranslationRequest.prototype.getContent = function() {
7363
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
7364
+ };
7365
+
7366
+
7367
+ /**
7368
+ * @param {string} value
7369
+ * @return {!proto.notification.MailTemplateTranslationRequest} returns this
7370
+ */
7371
+ proto.notification.MailTemplateTranslationRequest.prototype.setContent = function(value) {
7372
+ return jspb.Message.setField(this, 4, value);
7373
+ };
7374
+
7375
+
7376
+ /**
7377
+ * Clears the field making it undefined.
7378
+ * @return {!proto.notification.MailTemplateTranslationRequest} returns this
7379
+ */
7380
+ proto.notification.MailTemplateTranslationRequest.prototype.clearContent = function() {
7381
+ return jspb.Message.setField(this, 4, undefined);
7382
+ };
7383
+
7384
+
7385
+ /**
7386
+ * Returns whether this field is set.
7387
+ * @return {boolean}
7388
+ */
7389
+ proto.notification.MailTemplateTranslationRequest.prototype.hasContent = function() {
7390
+ return jspb.Message.getField(this, 4) != null;
7391
+ };
7392
+
7393
+
7394
+ /**
7395
+ * optional int32 is_active = 5;
7396
+ * @return {number}
7397
+ */
7398
+ proto.notification.MailTemplateTranslationRequest.prototype.getIsActive = function() {
7399
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
7400
+ };
7401
+
7402
+
7403
+ /**
7404
+ * @param {number} value
7405
+ * @return {!proto.notification.MailTemplateTranslationRequest} returns this
7406
+ */
7407
+ proto.notification.MailTemplateTranslationRequest.prototype.setIsActive = function(value) {
7408
+ return jspb.Message.setField(this, 5, value);
7409
+ };
7410
+
7411
+
7412
+ /**
7413
+ * Clears the field making it undefined.
7414
+ * @return {!proto.notification.MailTemplateTranslationRequest} returns this
7415
+ */
7416
+ proto.notification.MailTemplateTranslationRequest.prototype.clearIsActive = function() {
7417
+ return jspb.Message.setField(this, 5, undefined);
7418
+ };
7419
+
7420
+
7421
+ /**
7422
+ * Returns whether this field is set.
7423
+ * @return {boolean}
7424
+ */
7425
+ proto.notification.MailTemplateTranslationRequest.prototype.hasIsActive = function() {
7426
+ return jspb.Message.getField(this, 5) != null;
7427
+ };
7428
+
7429
+
7430
+
7431
+
7432
+
7433
+ if (jspb.Message.GENERATE_TO_OBJECT) {
7434
+ /**
7435
+ * Creates an object representation of this proto.
7436
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
7437
+ * Optional fields that are not set will be set to undefined.
7438
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
7439
+ * For the list of reserved names please see:
7440
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
7441
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
7442
+ * JSPB instance for transitional soy proto support:
7443
+ * http://goto/soy-param-migration
7444
+ * @return {!Object}
7445
+ */
7446
+ proto.notification.GetMailTemplateTranslationRequest.prototype.toObject = function(opt_includeInstance) {
7447
+ return proto.notification.GetMailTemplateTranslationRequest.toObject(opt_includeInstance, this);
7448
+ };
7449
+
7450
+
7451
+ /**
7452
+ * Static version of the {@see toObject} method.
7453
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
7454
+ * the JSPB instance for transitional soy proto support:
7455
+ * http://goto/soy-param-migration
7456
+ * @param {!proto.notification.GetMailTemplateTranslationRequest} msg The msg instance to transform.
7457
+ * @return {!Object}
7458
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7459
+ */
7460
+ proto.notification.GetMailTemplateTranslationRequest.toObject = function(includeInstance, msg) {
7461
+ var f, obj = {
7462
+ templateId: jspb.Message.getFieldWithDefault(msg, 1, 0),
7463
+ locale: jspb.Message.getFieldWithDefault(msg, 2, "")
7464
+ };
7465
+
7466
+ if (includeInstance) {
7467
+ obj.$jspbMessageInstance = msg;
7468
+ }
7469
+ return obj;
7470
+ };
7471
+ }
7472
+
7473
+
7474
+ /**
7475
+ * Deserializes binary data (in protobuf wire format).
7476
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
7477
+ * @return {!proto.notification.GetMailTemplateTranslationRequest}
7478
+ */
7479
+ proto.notification.GetMailTemplateTranslationRequest.deserializeBinary = function(bytes) {
7480
+ var reader = new jspb.BinaryReader(bytes);
7481
+ var msg = new proto.notification.GetMailTemplateTranslationRequest;
7482
+ return proto.notification.GetMailTemplateTranslationRequest.deserializeBinaryFromReader(msg, reader);
7483
+ };
7484
+
7485
+
7486
+ /**
7487
+ * Deserializes binary data (in protobuf wire format) from the
7488
+ * given reader into the given message object.
7489
+ * @param {!proto.notification.GetMailTemplateTranslationRequest} msg The message object to deserialize into.
7490
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
7491
+ * @return {!proto.notification.GetMailTemplateTranslationRequest}
7492
+ */
7493
+ proto.notification.GetMailTemplateTranslationRequest.deserializeBinaryFromReader = function(msg, reader) {
7494
+ while (reader.nextField()) {
7495
+ if (reader.isEndGroup()) {
7496
+ break;
7497
+ }
7498
+ var field = reader.getFieldNumber();
7499
+ switch (field) {
7500
+ case 1:
7501
+ var value = /** @type {number} */ (reader.readInt32());
7502
+ msg.setTemplateId(value);
7503
+ break;
7504
+ case 2:
7505
+ var value = /** @type {string} */ (reader.readString());
7506
+ msg.setLocale(value);
7507
+ break;
7508
+ default:
7509
+ reader.skipField();
7510
+ break;
7511
+ }
7512
+ }
7513
+ return msg;
7514
+ };
7515
+
7516
+
7517
+ /**
7518
+ * Serializes the message to binary data (in protobuf wire format).
7519
+ * @return {!Uint8Array}
7520
+ */
7521
+ proto.notification.GetMailTemplateTranslationRequest.prototype.serializeBinary = function() {
7522
+ var writer = new jspb.BinaryWriter();
7523
+ proto.notification.GetMailTemplateTranslationRequest.serializeBinaryToWriter(this, writer);
7524
+ return writer.getResultBuffer();
7525
+ };
7526
+
7527
+
7528
+ /**
7529
+ * Serializes the given message to binary data (in protobuf wire
7530
+ * format), writing to the given BinaryWriter.
7531
+ * @param {!proto.notification.GetMailTemplateTranslationRequest} message
7532
+ * @param {!jspb.BinaryWriter} writer
7533
+ * @suppress {unusedLocalVariables} f is only used for nested messages
7534
+ */
7535
+ proto.notification.GetMailTemplateTranslationRequest.serializeBinaryToWriter = function(message, writer) {
7536
+ var f = undefined;
7537
+ f = message.getTemplateId();
7538
+ if (f !== 0) {
7539
+ writer.writeInt32(
7540
+ 1,
7541
+ f
7542
+ );
7543
+ }
7544
+ f = message.getLocale();
7545
+ if (f.length > 0) {
7546
+ writer.writeString(
7547
+ 2,
7548
+ f
7549
+ );
7550
+ }
7551
+ };
7552
+
7553
+
7554
+ /**
7555
+ * optional int32 template_id = 1;
7556
+ * @return {number}
7557
+ */
7558
+ proto.notification.GetMailTemplateTranslationRequest.prototype.getTemplateId = function() {
7559
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
7560
+ };
7561
+
7562
+
7563
+ /**
7564
+ * @param {number} value
7565
+ * @return {!proto.notification.GetMailTemplateTranslationRequest} returns this
7566
+ */
7567
+ proto.notification.GetMailTemplateTranslationRequest.prototype.setTemplateId = function(value) {
7568
+ return jspb.Message.setProto3IntField(this, 1, value);
7569
+ };
7570
+
7571
+
7572
+ /**
7573
+ * optional string locale = 2;
7574
+ * @return {string}
7575
+ */
7576
+ proto.notification.GetMailTemplateTranslationRequest.prototype.getLocale = function() {
7577
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
7578
+ };
7579
+
7580
+
7581
+ /**
7582
+ * @param {string} value
7583
+ * @return {!proto.notification.GetMailTemplateTranslationRequest} returns this
7584
+ */
7585
+ proto.notification.GetMailTemplateTranslationRequest.prototype.setLocale = function(value) {
7586
+ return jspb.Message.setProto3StringField(this, 2, value);
7587
+ };
7588
+
7589
+
6868
7590
  goog.object.extend(exports, proto.notification);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.79",
3
+ "version": "1.2.81",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {