protobuf-platform 1.2.314 → 1.2.315

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.
@@ -27,6 +27,9 @@ service Notification {
27
27
  rpc getNotificationForParticularUser(PaginationRequest) returns (UserNotificationItemsResponse);
28
28
  rpc getNotificationsCountForUser(NotificationSearchRequest) returns (UserNotificationsCountResponse);
29
29
  rpc markUserNotification(NotificationSearchRequest) returns (UserNotificationsCountResponse);
30
+ rpc readAllUserNotifications(ReadAllUserNotificationsRequest) returns (UserNotificationsCountResponse);
31
+ rpc deleteAllUserNotifications(DeleteAllUserNotificationsRequest) returns (NotificationStatusResponse);
32
+ rpc deleteUserNotificationById(DeleteUserNotificationByIdRequest) returns (NotificationStatusResponse);
30
33
  }
31
34
 
32
35
  message PingRequest { string ping = 1; }
@@ -112,6 +115,16 @@ message NotificationItemsResponse {
112
115
  message UserNotificationsCountResponse {
113
116
  int32 count = 1;
114
117
  }
118
+ message ReadAllUserNotificationsRequest {
119
+ int32 user_id = 1;
120
+ }
121
+ message DeleteAllUserNotificationsRequest {
122
+ int32 user_id = 1;
123
+ }
124
+ message DeleteUserNotificationByIdRequest {
125
+ int32 user_id = 1;
126
+ int32 user_notification_id = 2;
127
+ }
115
128
  /* ===== MailTemplates (email) ===== */
116
129
 
117
130
  // Search filters for list endpoint
@@ -4,6 +4,28 @@
4
4
  var grpc = require('@grpc/grpc-js');
5
5
  var notification_pb = require('./notification_pb.js');
6
6
 
7
+ function serialize_notification_DeleteAllUserNotificationsRequest(arg) {
8
+ if (!(arg instanceof notification_pb.DeleteAllUserNotificationsRequest)) {
9
+ throw new Error('Expected argument of type notification.DeleteAllUserNotificationsRequest');
10
+ }
11
+ return Buffer.from(arg.serializeBinary());
12
+ }
13
+
14
+ function deserialize_notification_DeleteAllUserNotificationsRequest(buffer_arg) {
15
+ return notification_pb.DeleteAllUserNotificationsRequest.deserializeBinary(new Uint8Array(buffer_arg));
16
+ }
17
+
18
+ function serialize_notification_DeleteUserNotificationByIdRequest(arg) {
19
+ if (!(arg instanceof notification_pb.DeleteUserNotificationByIdRequest)) {
20
+ throw new Error('Expected argument of type notification.DeleteUserNotificationByIdRequest');
21
+ }
22
+ return Buffer.from(arg.serializeBinary());
23
+ }
24
+
25
+ function deserialize_notification_DeleteUserNotificationByIdRequest(buffer_arg) {
26
+ return notification_pb.DeleteUserNotificationByIdRequest.deserializeBinary(new Uint8Array(buffer_arg));
27
+ }
28
+
7
29
  function serialize_notification_File(arg) {
8
30
  if (!(arg instanceof notification_pb.File)) {
9
31
  throw new Error('Expected argument of type notification.File');
@@ -235,6 +257,17 @@ function deserialize_notification_PongResponse(buffer_arg) {
235
257
  return notification_pb.PongResponse.deserializeBinary(new Uint8Array(buffer_arg));
236
258
  }
237
259
 
260
+ function serialize_notification_ReadAllUserNotificationsRequest(arg) {
261
+ if (!(arg instanceof notification_pb.ReadAllUserNotificationsRequest)) {
262
+ throw new Error('Expected argument of type notification.ReadAllUserNotificationsRequest');
263
+ }
264
+ return Buffer.from(arg.serializeBinary());
265
+ }
266
+
267
+ function deserialize_notification_ReadAllUserNotificationsRequest(buffer_arg) {
268
+ return notification_pb.ReadAllUserNotificationsRequest.deserializeBinary(new Uint8Array(buffer_arg));
269
+ }
270
+
238
271
  function serialize_notification_SendNotificationRequest(arg) {
239
272
  if (!(arg instanceof notification_pb.SendNotificationRequest)) {
240
273
  throw new Error('Expected argument of type notification.SendNotificationRequest');
@@ -504,6 +537,39 @@ sendNotificationToUsers: {
504
537
  responseSerialize: serialize_notification_UserNotificationsCountResponse,
505
538
  responseDeserialize: deserialize_notification_UserNotificationsCountResponse,
506
539
  },
540
+ readAllUserNotifications: {
541
+ path: '/notification.Notification/readAllUserNotifications',
542
+ requestStream: false,
543
+ responseStream: false,
544
+ requestType: notification_pb.ReadAllUserNotificationsRequest,
545
+ responseType: notification_pb.UserNotificationsCountResponse,
546
+ requestSerialize: serialize_notification_ReadAllUserNotificationsRequest,
547
+ requestDeserialize: deserialize_notification_ReadAllUserNotificationsRequest,
548
+ responseSerialize: serialize_notification_UserNotificationsCountResponse,
549
+ responseDeserialize: deserialize_notification_UserNotificationsCountResponse,
550
+ },
551
+ deleteAllUserNotifications: {
552
+ path: '/notification.Notification/deleteAllUserNotifications',
553
+ requestStream: false,
554
+ responseStream: false,
555
+ requestType: notification_pb.DeleteAllUserNotificationsRequest,
556
+ responseType: notification_pb.NotificationStatusResponse,
557
+ requestSerialize: serialize_notification_DeleteAllUserNotificationsRequest,
558
+ requestDeserialize: deserialize_notification_DeleteAllUserNotificationsRequest,
559
+ responseSerialize: serialize_notification_NotificationStatusResponse,
560
+ responseDeserialize: deserialize_notification_NotificationStatusResponse,
561
+ },
562
+ deleteUserNotificationById: {
563
+ path: '/notification.Notification/deleteUserNotificationById',
564
+ requestStream: false,
565
+ responseStream: false,
566
+ requestType: notification_pb.DeleteUserNotificationByIdRequest,
567
+ responseType: notification_pb.NotificationStatusResponse,
568
+ requestSerialize: serialize_notification_DeleteUserNotificationByIdRequest,
569
+ requestDeserialize: deserialize_notification_DeleteUserNotificationByIdRequest,
570
+ responseSerialize: serialize_notification_NotificationStatusResponse,
571
+ responseDeserialize: deserialize_notification_NotificationStatusResponse,
572
+ },
507
573
  };
508
574
 
509
575
  exports.NotificationClient = grpc.makeGenericClientConstructor(NotificationService, 'Notification');
@@ -21,6 +21,8 @@ var global = (function() {
21
21
  return Function('return this')();
22
22
  }.call(null));
23
23
 
24
+ goog.exportSymbol('proto.notification.DeleteAllUserNotificationsRequest', null, global);
25
+ goog.exportSymbol('proto.notification.DeleteUserNotificationByIdRequest', null, global);
24
26
  goog.exportSymbol('proto.notification.File', null, global);
25
27
  goog.exportSymbol('proto.notification.GetFileRequest', null, global);
26
28
  goog.exportSymbol('proto.notification.GetMailTemplateRequest', null, global);
@@ -47,6 +49,7 @@ goog.exportSymbol('proto.notification.NotificationStatusResponse', null, global)
47
49
  goog.exportSymbol('proto.notification.PaginationRequest', null, global);
48
50
  goog.exportSymbol('proto.notification.PingRequest', null, global);
49
51
  goog.exportSymbol('proto.notification.PongResponse', null, global);
52
+ goog.exportSymbol('proto.notification.ReadAllUserNotificationsRequest', null, global);
50
53
  goog.exportSymbol('proto.notification.SendNotificationRequest', null, global);
51
54
  goog.exportSymbol('proto.notification.UserNotificationItem', null, global);
52
55
  goog.exportSymbol('proto.notification.UserNotificationItemsResponse', null, global);
@@ -430,6 +433,69 @@ if (goog.DEBUG && !COMPILED) {
430
433
  */
431
434
  proto.notification.UserNotificationsCountResponse.displayName = 'proto.notification.UserNotificationsCountResponse';
432
435
  }
436
+ /**
437
+ * Generated by JsPbCodeGenerator.
438
+ * @param {Array=} opt_data Optional initial data array, typically from a
439
+ * server response, or constructed directly in Javascript. The array is used
440
+ * in place and becomes part of the constructed object. It is not cloned.
441
+ * If no data is provided, the constructed object will be empty, but still
442
+ * valid.
443
+ * @extends {jspb.Message}
444
+ * @constructor
445
+ */
446
+ proto.notification.ReadAllUserNotificationsRequest = function(opt_data) {
447
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
448
+ };
449
+ goog.inherits(proto.notification.ReadAllUserNotificationsRequest, jspb.Message);
450
+ if (goog.DEBUG && !COMPILED) {
451
+ /**
452
+ * @public
453
+ * @override
454
+ */
455
+ proto.notification.ReadAllUserNotificationsRequest.displayName = 'proto.notification.ReadAllUserNotificationsRequest';
456
+ }
457
+ /**
458
+ * Generated by JsPbCodeGenerator.
459
+ * @param {Array=} opt_data Optional initial data array, typically from a
460
+ * server response, or constructed directly in Javascript. The array is used
461
+ * in place and becomes part of the constructed object. It is not cloned.
462
+ * If no data is provided, the constructed object will be empty, but still
463
+ * valid.
464
+ * @extends {jspb.Message}
465
+ * @constructor
466
+ */
467
+ proto.notification.DeleteAllUserNotificationsRequest = function(opt_data) {
468
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
469
+ };
470
+ goog.inherits(proto.notification.DeleteAllUserNotificationsRequest, jspb.Message);
471
+ if (goog.DEBUG && !COMPILED) {
472
+ /**
473
+ * @public
474
+ * @override
475
+ */
476
+ proto.notification.DeleteAllUserNotificationsRequest.displayName = 'proto.notification.DeleteAllUserNotificationsRequest';
477
+ }
478
+ /**
479
+ * Generated by JsPbCodeGenerator.
480
+ * @param {Array=} opt_data Optional initial data array, typically from a
481
+ * server response, or constructed directly in Javascript. The array is used
482
+ * in place and becomes part of the constructed object. It is not cloned.
483
+ * If no data is provided, the constructed object will be empty, but still
484
+ * valid.
485
+ * @extends {jspb.Message}
486
+ * @constructor
487
+ */
488
+ proto.notification.DeleteUserNotificationByIdRequest = function(opt_data) {
489
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
490
+ };
491
+ goog.inherits(proto.notification.DeleteUserNotificationByIdRequest, jspb.Message);
492
+ if (goog.DEBUG && !COMPILED) {
493
+ /**
494
+ * @public
495
+ * @override
496
+ */
497
+ proto.notification.DeleteUserNotificationByIdRequest.displayName = 'proto.notification.DeleteUserNotificationByIdRequest';
498
+ }
433
499
  /**
434
500
  * Generated by JsPbCodeGenerator.
435
501
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -4721,6 +4787,426 @@ proto.notification.UserNotificationsCountResponse.prototype.setCount = function(
4721
4787
 
4722
4788
 
4723
4789
 
4790
+
4791
+
4792
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4793
+ /**
4794
+ * Creates an object representation of this proto.
4795
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4796
+ * Optional fields that are not set will be set to undefined.
4797
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4798
+ * For the list of reserved names please see:
4799
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4800
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4801
+ * JSPB instance for transitional soy proto support:
4802
+ * http://goto/soy-param-migration
4803
+ * @return {!Object}
4804
+ */
4805
+ proto.notification.ReadAllUserNotificationsRequest.prototype.toObject = function(opt_includeInstance) {
4806
+ return proto.notification.ReadAllUserNotificationsRequest.toObject(opt_includeInstance, this);
4807
+ };
4808
+
4809
+
4810
+ /**
4811
+ * Static version of the {@see toObject} method.
4812
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4813
+ * the JSPB instance for transitional soy proto support:
4814
+ * http://goto/soy-param-migration
4815
+ * @param {!proto.notification.ReadAllUserNotificationsRequest} msg The msg instance to transform.
4816
+ * @return {!Object}
4817
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4818
+ */
4819
+ proto.notification.ReadAllUserNotificationsRequest.toObject = function(includeInstance, msg) {
4820
+ var f, obj = {
4821
+ userId: jspb.Message.getFieldWithDefault(msg, 1, 0)
4822
+ };
4823
+
4824
+ if (includeInstance) {
4825
+ obj.$jspbMessageInstance = msg;
4826
+ }
4827
+ return obj;
4828
+ };
4829
+ }
4830
+
4831
+
4832
+ /**
4833
+ * Deserializes binary data (in protobuf wire format).
4834
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4835
+ * @return {!proto.notification.ReadAllUserNotificationsRequest}
4836
+ */
4837
+ proto.notification.ReadAllUserNotificationsRequest.deserializeBinary = function(bytes) {
4838
+ var reader = new jspb.BinaryReader(bytes);
4839
+ var msg = new proto.notification.ReadAllUserNotificationsRequest;
4840
+ return proto.notification.ReadAllUserNotificationsRequest.deserializeBinaryFromReader(msg, reader);
4841
+ };
4842
+
4843
+
4844
+ /**
4845
+ * Deserializes binary data (in protobuf wire format) from the
4846
+ * given reader into the given message object.
4847
+ * @param {!proto.notification.ReadAllUserNotificationsRequest} msg The message object to deserialize into.
4848
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4849
+ * @return {!proto.notification.ReadAllUserNotificationsRequest}
4850
+ */
4851
+ proto.notification.ReadAllUserNotificationsRequest.deserializeBinaryFromReader = function(msg, reader) {
4852
+ while (reader.nextField()) {
4853
+ if (reader.isEndGroup()) {
4854
+ break;
4855
+ }
4856
+ var field = reader.getFieldNumber();
4857
+ switch (field) {
4858
+ case 1:
4859
+ var value = /** @type {number} */ (reader.readInt32());
4860
+ msg.setUserId(value);
4861
+ break;
4862
+ default:
4863
+ reader.skipField();
4864
+ break;
4865
+ }
4866
+ }
4867
+ return msg;
4868
+ };
4869
+
4870
+
4871
+ /**
4872
+ * Serializes the message to binary data (in protobuf wire format).
4873
+ * @return {!Uint8Array}
4874
+ */
4875
+ proto.notification.ReadAllUserNotificationsRequest.prototype.serializeBinary = function() {
4876
+ var writer = new jspb.BinaryWriter();
4877
+ proto.notification.ReadAllUserNotificationsRequest.serializeBinaryToWriter(this, writer);
4878
+ return writer.getResultBuffer();
4879
+ };
4880
+
4881
+
4882
+ /**
4883
+ * Serializes the given message to binary data (in protobuf wire
4884
+ * format), writing to the given BinaryWriter.
4885
+ * @param {!proto.notification.ReadAllUserNotificationsRequest} message
4886
+ * @param {!jspb.BinaryWriter} writer
4887
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4888
+ */
4889
+ proto.notification.ReadAllUserNotificationsRequest.serializeBinaryToWriter = function(message, writer) {
4890
+ var f = undefined;
4891
+ f = message.getUserId();
4892
+ if (f !== 0) {
4893
+ writer.writeInt32(
4894
+ 1,
4895
+ f
4896
+ );
4897
+ }
4898
+ };
4899
+
4900
+
4901
+ /**
4902
+ * optional int32 user_id = 1;
4903
+ * @return {number}
4904
+ */
4905
+ proto.notification.ReadAllUserNotificationsRequest.prototype.getUserId = function() {
4906
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
4907
+ };
4908
+
4909
+
4910
+ /**
4911
+ * @param {number} value
4912
+ * @return {!proto.notification.ReadAllUserNotificationsRequest} returns this
4913
+ */
4914
+ proto.notification.ReadAllUserNotificationsRequest.prototype.setUserId = function(value) {
4915
+ return jspb.Message.setProto3IntField(this, 1, value);
4916
+ };
4917
+
4918
+
4919
+
4920
+
4921
+
4922
+ if (jspb.Message.GENERATE_TO_OBJECT) {
4923
+ /**
4924
+ * Creates an object representation of this proto.
4925
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
4926
+ * Optional fields that are not set will be set to undefined.
4927
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
4928
+ * For the list of reserved names please see:
4929
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
4930
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
4931
+ * JSPB instance for transitional soy proto support:
4932
+ * http://goto/soy-param-migration
4933
+ * @return {!Object}
4934
+ */
4935
+ proto.notification.DeleteAllUserNotificationsRequest.prototype.toObject = function(opt_includeInstance) {
4936
+ return proto.notification.DeleteAllUserNotificationsRequest.toObject(opt_includeInstance, this);
4937
+ };
4938
+
4939
+
4940
+ /**
4941
+ * Static version of the {@see toObject} method.
4942
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
4943
+ * the JSPB instance for transitional soy proto support:
4944
+ * http://goto/soy-param-migration
4945
+ * @param {!proto.notification.DeleteAllUserNotificationsRequest} msg The msg instance to transform.
4946
+ * @return {!Object}
4947
+ * @suppress {unusedLocalVariables} f is only used for nested messages
4948
+ */
4949
+ proto.notification.DeleteAllUserNotificationsRequest.toObject = function(includeInstance, msg) {
4950
+ var f, obj = {
4951
+ userId: jspb.Message.getFieldWithDefault(msg, 1, 0)
4952
+ };
4953
+
4954
+ if (includeInstance) {
4955
+ obj.$jspbMessageInstance = msg;
4956
+ }
4957
+ return obj;
4958
+ };
4959
+ }
4960
+
4961
+
4962
+ /**
4963
+ * Deserializes binary data (in protobuf wire format).
4964
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
4965
+ * @return {!proto.notification.DeleteAllUserNotificationsRequest}
4966
+ */
4967
+ proto.notification.DeleteAllUserNotificationsRequest.deserializeBinary = function(bytes) {
4968
+ var reader = new jspb.BinaryReader(bytes);
4969
+ var msg = new proto.notification.DeleteAllUserNotificationsRequest;
4970
+ return proto.notification.DeleteAllUserNotificationsRequest.deserializeBinaryFromReader(msg, reader);
4971
+ };
4972
+
4973
+
4974
+ /**
4975
+ * Deserializes binary data (in protobuf wire format) from the
4976
+ * given reader into the given message object.
4977
+ * @param {!proto.notification.DeleteAllUserNotificationsRequest} msg The message object to deserialize into.
4978
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
4979
+ * @return {!proto.notification.DeleteAllUserNotificationsRequest}
4980
+ */
4981
+ proto.notification.DeleteAllUserNotificationsRequest.deserializeBinaryFromReader = function(msg, reader) {
4982
+ while (reader.nextField()) {
4983
+ if (reader.isEndGroup()) {
4984
+ break;
4985
+ }
4986
+ var field = reader.getFieldNumber();
4987
+ switch (field) {
4988
+ case 1:
4989
+ var value = /** @type {number} */ (reader.readInt32());
4990
+ msg.setUserId(value);
4991
+ break;
4992
+ default:
4993
+ reader.skipField();
4994
+ break;
4995
+ }
4996
+ }
4997
+ return msg;
4998
+ };
4999
+
5000
+
5001
+ /**
5002
+ * Serializes the message to binary data (in protobuf wire format).
5003
+ * @return {!Uint8Array}
5004
+ */
5005
+ proto.notification.DeleteAllUserNotificationsRequest.prototype.serializeBinary = function() {
5006
+ var writer = new jspb.BinaryWriter();
5007
+ proto.notification.DeleteAllUserNotificationsRequest.serializeBinaryToWriter(this, writer);
5008
+ return writer.getResultBuffer();
5009
+ };
5010
+
5011
+
5012
+ /**
5013
+ * Serializes the given message to binary data (in protobuf wire
5014
+ * format), writing to the given BinaryWriter.
5015
+ * @param {!proto.notification.DeleteAllUserNotificationsRequest} message
5016
+ * @param {!jspb.BinaryWriter} writer
5017
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5018
+ */
5019
+ proto.notification.DeleteAllUserNotificationsRequest.serializeBinaryToWriter = function(message, writer) {
5020
+ var f = undefined;
5021
+ f = message.getUserId();
5022
+ if (f !== 0) {
5023
+ writer.writeInt32(
5024
+ 1,
5025
+ f
5026
+ );
5027
+ }
5028
+ };
5029
+
5030
+
5031
+ /**
5032
+ * optional int32 user_id = 1;
5033
+ * @return {number}
5034
+ */
5035
+ proto.notification.DeleteAllUserNotificationsRequest.prototype.getUserId = function() {
5036
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
5037
+ };
5038
+
5039
+
5040
+ /**
5041
+ * @param {number} value
5042
+ * @return {!proto.notification.DeleteAllUserNotificationsRequest} returns this
5043
+ */
5044
+ proto.notification.DeleteAllUserNotificationsRequest.prototype.setUserId = function(value) {
5045
+ return jspb.Message.setProto3IntField(this, 1, value);
5046
+ };
5047
+
5048
+
5049
+
5050
+
5051
+
5052
+ if (jspb.Message.GENERATE_TO_OBJECT) {
5053
+ /**
5054
+ * Creates an object representation of this proto.
5055
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
5056
+ * Optional fields that are not set will be set to undefined.
5057
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
5058
+ * For the list of reserved names please see:
5059
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
5060
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
5061
+ * JSPB instance for transitional soy proto support:
5062
+ * http://goto/soy-param-migration
5063
+ * @return {!Object}
5064
+ */
5065
+ proto.notification.DeleteUserNotificationByIdRequest.prototype.toObject = function(opt_includeInstance) {
5066
+ return proto.notification.DeleteUserNotificationByIdRequest.toObject(opt_includeInstance, this);
5067
+ };
5068
+
5069
+
5070
+ /**
5071
+ * Static version of the {@see toObject} method.
5072
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
5073
+ * the JSPB instance for transitional soy proto support:
5074
+ * http://goto/soy-param-migration
5075
+ * @param {!proto.notification.DeleteUserNotificationByIdRequest} msg The msg instance to transform.
5076
+ * @return {!Object}
5077
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5078
+ */
5079
+ proto.notification.DeleteUserNotificationByIdRequest.toObject = function(includeInstance, msg) {
5080
+ var f, obj = {
5081
+ userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
5082
+ userNotificationId: jspb.Message.getFieldWithDefault(msg, 2, 0)
5083
+ };
5084
+
5085
+ if (includeInstance) {
5086
+ obj.$jspbMessageInstance = msg;
5087
+ }
5088
+ return obj;
5089
+ };
5090
+ }
5091
+
5092
+
5093
+ /**
5094
+ * Deserializes binary data (in protobuf wire format).
5095
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
5096
+ * @return {!proto.notification.DeleteUserNotificationByIdRequest}
5097
+ */
5098
+ proto.notification.DeleteUserNotificationByIdRequest.deserializeBinary = function(bytes) {
5099
+ var reader = new jspb.BinaryReader(bytes);
5100
+ var msg = new proto.notification.DeleteUserNotificationByIdRequest;
5101
+ return proto.notification.DeleteUserNotificationByIdRequest.deserializeBinaryFromReader(msg, reader);
5102
+ };
5103
+
5104
+
5105
+ /**
5106
+ * Deserializes binary data (in protobuf wire format) from the
5107
+ * given reader into the given message object.
5108
+ * @param {!proto.notification.DeleteUserNotificationByIdRequest} msg The message object to deserialize into.
5109
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
5110
+ * @return {!proto.notification.DeleteUserNotificationByIdRequest}
5111
+ */
5112
+ proto.notification.DeleteUserNotificationByIdRequest.deserializeBinaryFromReader = function(msg, reader) {
5113
+ while (reader.nextField()) {
5114
+ if (reader.isEndGroup()) {
5115
+ break;
5116
+ }
5117
+ var field = reader.getFieldNumber();
5118
+ switch (field) {
5119
+ case 1:
5120
+ var value = /** @type {number} */ (reader.readInt32());
5121
+ msg.setUserId(value);
5122
+ break;
5123
+ case 2:
5124
+ var value = /** @type {number} */ (reader.readInt32());
5125
+ msg.setUserNotificationId(value);
5126
+ break;
5127
+ default:
5128
+ reader.skipField();
5129
+ break;
5130
+ }
5131
+ }
5132
+ return msg;
5133
+ };
5134
+
5135
+
5136
+ /**
5137
+ * Serializes the message to binary data (in protobuf wire format).
5138
+ * @return {!Uint8Array}
5139
+ */
5140
+ proto.notification.DeleteUserNotificationByIdRequest.prototype.serializeBinary = function() {
5141
+ var writer = new jspb.BinaryWriter();
5142
+ proto.notification.DeleteUserNotificationByIdRequest.serializeBinaryToWriter(this, writer);
5143
+ return writer.getResultBuffer();
5144
+ };
5145
+
5146
+
5147
+ /**
5148
+ * Serializes the given message to binary data (in protobuf wire
5149
+ * format), writing to the given BinaryWriter.
5150
+ * @param {!proto.notification.DeleteUserNotificationByIdRequest} message
5151
+ * @param {!jspb.BinaryWriter} writer
5152
+ * @suppress {unusedLocalVariables} f is only used for nested messages
5153
+ */
5154
+ proto.notification.DeleteUserNotificationByIdRequest.serializeBinaryToWriter = function(message, writer) {
5155
+ var f = undefined;
5156
+ f = message.getUserId();
5157
+ if (f !== 0) {
5158
+ writer.writeInt32(
5159
+ 1,
5160
+ f
5161
+ );
5162
+ }
5163
+ f = message.getUserNotificationId();
5164
+ if (f !== 0) {
5165
+ writer.writeInt32(
5166
+ 2,
5167
+ f
5168
+ );
5169
+ }
5170
+ };
5171
+
5172
+
5173
+ /**
5174
+ * optional int32 user_id = 1;
5175
+ * @return {number}
5176
+ */
5177
+ proto.notification.DeleteUserNotificationByIdRequest.prototype.getUserId = function() {
5178
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
5179
+ };
5180
+
5181
+
5182
+ /**
5183
+ * @param {number} value
5184
+ * @return {!proto.notification.DeleteUserNotificationByIdRequest} returns this
5185
+ */
5186
+ proto.notification.DeleteUserNotificationByIdRequest.prototype.setUserId = function(value) {
5187
+ return jspb.Message.setProto3IntField(this, 1, value);
5188
+ };
5189
+
5190
+
5191
+ /**
5192
+ * optional int32 user_notification_id = 2;
5193
+ * @return {number}
5194
+ */
5195
+ proto.notification.DeleteUserNotificationByIdRequest.prototype.getUserNotificationId = function() {
5196
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
5197
+ };
5198
+
5199
+
5200
+ /**
5201
+ * @param {number} value
5202
+ * @return {!proto.notification.DeleteUserNotificationByIdRequest} returns this
5203
+ */
5204
+ proto.notification.DeleteUserNotificationByIdRequest.prototype.setUserNotificationId = function(value) {
5205
+ return jspb.Message.setProto3IntField(this, 2, value);
5206
+ };
5207
+
5208
+
5209
+
4724
5210
  /**
4725
5211
  * List of repeated fields within this message type.
4726
5212
  * @private {!Array<number>}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.314",
3
+ "version": "1.2.315",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {