@aldiokta/protocgen 1.1.26 → 1.1.28

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.
Files changed (31) hide show
  1. package/package.json +1 -1
  2. package/prisca/v1/bidding/bidding_grpc_pb.js +55 -0
  3. package/prisca/v1/bidding/bidding_pb.js +1042 -63
  4. package/prisca/v1/core/access_manager/access_manager_grpc_pb.js +33 -0
  5. package/prisca/v1/core/access_manager/access_manager_pb.js +385 -0
  6. package/prisca/v1/core/auth/auth_grpc_pb.js +103 -3
  7. package/prisca/v1/core/auth/auth_pb.js +2519 -1181
  8. package/prisca/v1/core/file_upload/file_upload_pb.js +93 -3
  9. package/prisca/v1/core/item_transaction/item_transaction_pb.js +183 -33
  10. package/prisca/v1/core/line_of_activity/line_of_activity_pb.js +438 -46
  11. package/prisca/v1/core/line_of_approval/line_of_approval_pb.js +31 -1
  12. package/prisca/v1/core/location/location_pb.js +446 -57
  13. package/prisca/v1/core/messaging/notification_grpc_pb.js +188 -0
  14. package/prisca/v1/core/messaging/notification_pb.js +2780 -0
  15. package/prisca/v1/core/price_condition/price_condition_pb.js +122 -2
  16. package/prisca/v1/core/transaction_builder/transaction_builder_grpc_pb.js +234 -168
  17. package/prisca/v1/core/transaction_builder/transaction_builder_pb.js +1987 -1775
  18. package/prisca/v1/delivery_order/delivery_order_pb.js +130 -70
  19. package/prisca/v1/good_receipt/good_receipt_grpc_pb.js +228 -1
  20. package/prisca/v1/good_receipt/good_receipt_pb.js +4779 -0
  21. package/prisca/v1/invoice/invoice_grpc_pb.js +174 -0
  22. package/prisca/v1/invoice/invoice_pb.js +4398 -0
  23. package/prisca/v1/purchase_order/purchase_order_grpc_pb.js +11 -0
  24. package/prisca/v1/purchase_order/purchase_order_pb.js +142 -22
  25. package/prisca/v1/purchase_requisition_trx/purchase_requisition_trx_pb.js +105 -75
  26. package/prisca/v1/purchasing_organization/purchasing_organization_pb.js +55 -177
  27. package/prisca/v1/quotation/quotation_pb.js +236 -26
  28. package/prisca/v1/request_for_quotation/request_for_quotation_grpc_pb.js +33 -0
  29. package/prisca/v1/request_for_quotation/request_for_quotation_pb.js +413 -28
  30. package/prisca/v1/vendor_domain/vendor_domain_grpc_pb.js +55 -0
  31. package/prisca/v1/vendor_domain/vendor_domain_pb.js +1076 -317
@@ -0,0 +1,2780 @@
1
+ // source: prisca/v1/core/messaging/notification.proto
2
+ /**
3
+ * @fileoverview
4
+ * @enhanceable
5
+ * @suppress {missingRequire} reports error on implicit type usages.
6
+ * @suppress {messageConventions} JS Compiler reports an error if a variable or
7
+ * field starts with 'MSG_' and isn't a translatable message.
8
+ * @public
9
+ */
10
+ // GENERATED CODE -- DO NOT EDIT!
11
+ /* eslint-disable */
12
+ // @ts-nocheck
13
+
14
+ var jspb = require('google-protobuf');
15
+ var goog = jspb;
16
+ var global =
17
+ (typeof globalThis !== 'undefined' && globalThis) ||
18
+ (typeof window !== 'undefined' && window) ||
19
+ (typeof global !== 'undefined' && global) ||
20
+ (typeof self !== 'undefined' && self) ||
21
+ (function () { return this; }).call(null) ||
22
+ Function('return this')();
23
+
24
+ var prisca_v1_global_meta_meta_pb = require('../../../../prisca/v1/global/meta/meta_pb.js');
25
+ goog.object.extend(proto, prisca_v1_global_meta_meta_pb);
26
+ goog.exportSymbol('proto.CreateNotificationReq', null, global);
27
+ goog.exportSymbol('proto.CreateNotificationRes', null, global);
28
+ goog.exportSymbol('proto.DeleteNotificationEmployeeReq', null, global);
29
+ goog.exportSymbol('proto.DeleteNotificationEmployeeRes', null, global);
30
+ goog.exportSymbol('proto.EmptyMessage', null, global);
31
+ goog.exportSymbol('proto.GetListNotificationEmployeeReq', null, global);
32
+ goog.exportSymbol('proto.GetListNotificationEmployeeRes', null, global);
33
+ goog.exportSymbol('proto.Notification', null, global);
34
+ goog.exportSymbol('proto.NotificationEmployee', null, global);
35
+ goog.exportSymbol('proto.NotificationEmployeeItem', null, global);
36
+ goog.exportSymbol('proto.ReferenceId', null, global);
37
+ goog.exportSymbol('proto.ReferenceIds', null, global);
38
+ /**
39
+ * Generated by JsPbCodeGenerator.
40
+ * @param {Array=} opt_data Optional initial data array, typically from a
41
+ * server response, or constructed directly in Javascript. The array is used
42
+ * in place and becomes part of the constructed object. It is not cloned.
43
+ * If no data is provided, the constructed object will be empty, but still
44
+ * valid.
45
+ * @extends {jspb.Message}
46
+ * @constructor
47
+ */
48
+ proto.Notification = function(opt_data) {
49
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.Notification.repeatedFields_, null);
50
+ };
51
+ goog.inherits(proto.Notification, jspb.Message);
52
+ if (goog.DEBUG && !COMPILED) {
53
+ /**
54
+ * @public
55
+ * @override
56
+ */
57
+ proto.Notification.displayName = 'proto.Notification';
58
+ }
59
+ /**
60
+ * Generated by JsPbCodeGenerator.
61
+ * @param {Array=} opt_data Optional initial data array, typically from a
62
+ * server response, or constructed directly in Javascript. The array is used
63
+ * in place and becomes part of the constructed object. It is not cloned.
64
+ * If no data is provided, the constructed object will be empty, but still
65
+ * valid.
66
+ * @extends {jspb.Message}
67
+ * @constructor
68
+ */
69
+ proto.NotificationEmployee = function(opt_data) {
70
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
71
+ };
72
+ goog.inherits(proto.NotificationEmployee, jspb.Message);
73
+ if (goog.DEBUG && !COMPILED) {
74
+ /**
75
+ * @public
76
+ * @override
77
+ */
78
+ proto.NotificationEmployee.displayName = 'proto.NotificationEmployee';
79
+ }
80
+ /**
81
+ * Generated by JsPbCodeGenerator.
82
+ * @param {Array=} opt_data Optional initial data array, typically from a
83
+ * server response, or constructed directly in Javascript. The array is used
84
+ * in place and becomes part of the constructed object. It is not cloned.
85
+ * If no data is provided, the constructed object will be empty, but still
86
+ * valid.
87
+ * @extends {jspb.Message}
88
+ * @constructor
89
+ */
90
+ proto.NotificationEmployeeItem = function(opt_data) {
91
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
92
+ };
93
+ goog.inherits(proto.NotificationEmployeeItem, jspb.Message);
94
+ if (goog.DEBUG && !COMPILED) {
95
+ /**
96
+ * @public
97
+ * @override
98
+ */
99
+ proto.NotificationEmployeeItem.displayName = 'proto.NotificationEmployeeItem';
100
+ }
101
+ /**
102
+ * Generated by JsPbCodeGenerator.
103
+ * @param {Array=} opt_data Optional initial data array, typically from a
104
+ * server response, or constructed directly in Javascript. The array is used
105
+ * in place and becomes part of the constructed object. It is not cloned.
106
+ * If no data is provided, the constructed object will be empty, but still
107
+ * valid.
108
+ * @extends {jspb.Message}
109
+ * @constructor
110
+ */
111
+ proto.GetListNotificationEmployeeReq = function(opt_data) {
112
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
113
+ };
114
+ goog.inherits(proto.GetListNotificationEmployeeReq, jspb.Message);
115
+ if (goog.DEBUG && !COMPILED) {
116
+ /**
117
+ * @public
118
+ * @override
119
+ */
120
+ proto.GetListNotificationEmployeeReq.displayName = 'proto.GetListNotificationEmployeeReq';
121
+ }
122
+ /**
123
+ * Generated by JsPbCodeGenerator.
124
+ * @param {Array=} opt_data Optional initial data array, typically from a
125
+ * server response, or constructed directly in Javascript. The array is used
126
+ * in place and becomes part of the constructed object. It is not cloned.
127
+ * If no data is provided, the constructed object will be empty, but still
128
+ * valid.
129
+ * @extends {jspb.Message}
130
+ * @constructor
131
+ */
132
+ proto.GetListNotificationEmployeeRes = function(opt_data) {
133
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.GetListNotificationEmployeeRes.repeatedFields_, null);
134
+ };
135
+ goog.inherits(proto.GetListNotificationEmployeeRes, jspb.Message);
136
+ if (goog.DEBUG && !COMPILED) {
137
+ /**
138
+ * @public
139
+ * @override
140
+ */
141
+ proto.GetListNotificationEmployeeRes.displayName = 'proto.GetListNotificationEmployeeRes';
142
+ }
143
+ /**
144
+ * Generated by JsPbCodeGenerator.
145
+ * @param {Array=} opt_data Optional initial data array, typically from a
146
+ * server response, or constructed directly in Javascript. The array is used
147
+ * in place and becomes part of the constructed object. It is not cloned.
148
+ * If no data is provided, the constructed object will be empty, but still
149
+ * valid.
150
+ * @extends {jspb.Message}
151
+ * @constructor
152
+ */
153
+ proto.CreateNotificationReq = function(opt_data) {
154
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.CreateNotificationReq.repeatedFields_, null);
155
+ };
156
+ goog.inherits(proto.CreateNotificationReq, jspb.Message);
157
+ if (goog.DEBUG && !COMPILED) {
158
+ /**
159
+ * @public
160
+ * @override
161
+ */
162
+ proto.CreateNotificationReq.displayName = 'proto.CreateNotificationReq';
163
+ }
164
+ /**
165
+ * Generated by JsPbCodeGenerator.
166
+ * @param {Array=} opt_data Optional initial data array, typically from a
167
+ * server response, or constructed directly in Javascript. The array is used
168
+ * in place and becomes part of the constructed object. It is not cloned.
169
+ * If no data is provided, the constructed object will be empty, but still
170
+ * valid.
171
+ * @extends {jspb.Message}
172
+ * @constructor
173
+ */
174
+ proto.CreateNotificationRes = function(opt_data) {
175
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
176
+ };
177
+ goog.inherits(proto.CreateNotificationRes, jspb.Message);
178
+ if (goog.DEBUG && !COMPILED) {
179
+ /**
180
+ * @public
181
+ * @override
182
+ */
183
+ proto.CreateNotificationRes.displayName = 'proto.CreateNotificationRes';
184
+ }
185
+ /**
186
+ * Generated by JsPbCodeGenerator.
187
+ * @param {Array=} opt_data Optional initial data array, typically from a
188
+ * server response, or constructed directly in Javascript. The array is used
189
+ * in place and becomes part of the constructed object. It is not cloned.
190
+ * If no data is provided, the constructed object will be empty, but still
191
+ * valid.
192
+ * @extends {jspb.Message}
193
+ * @constructor
194
+ */
195
+ proto.ReferenceIds = function(opt_data) {
196
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.ReferenceIds.repeatedFields_, null);
197
+ };
198
+ goog.inherits(proto.ReferenceIds, jspb.Message);
199
+ if (goog.DEBUG && !COMPILED) {
200
+ /**
201
+ * @public
202
+ * @override
203
+ */
204
+ proto.ReferenceIds.displayName = 'proto.ReferenceIds';
205
+ }
206
+ /**
207
+ * Generated by JsPbCodeGenerator.
208
+ * @param {Array=} opt_data Optional initial data array, typically from a
209
+ * server response, or constructed directly in Javascript. The array is used
210
+ * in place and becomes part of the constructed object. It is not cloned.
211
+ * If no data is provided, the constructed object will be empty, but still
212
+ * valid.
213
+ * @extends {jspb.Message}
214
+ * @constructor
215
+ */
216
+ proto.EmptyMessage = function(opt_data) {
217
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
218
+ };
219
+ goog.inherits(proto.EmptyMessage, jspb.Message);
220
+ if (goog.DEBUG && !COMPILED) {
221
+ /**
222
+ * @public
223
+ * @override
224
+ */
225
+ proto.EmptyMessage.displayName = 'proto.EmptyMessage';
226
+ }
227
+ /**
228
+ * Generated by JsPbCodeGenerator.
229
+ * @param {Array=} opt_data Optional initial data array, typically from a
230
+ * server response, or constructed directly in Javascript. The array is used
231
+ * in place and becomes part of the constructed object. It is not cloned.
232
+ * If no data is provided, the constructed object will be empty, but still
233
+ * valid.
234
+ * @extends {jspb.Message}
235
+ * @constructor
236
+ */
237
+ proto.ReferenceId = function(opt_data) {
238
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
239
+ };
240
+ goog.inherits(proto.ReferenceId, jspb.Message);
241
+ if (goog.DEBUG && !COMPILED) {
242
+ /**
243
+ * @public
244
+ * @override
245
+ */
246
+ proto.ReferenceId.displayName = 'proto.ReferenceId';
247
+ }
248
+ /**
249
+ * Generated by JsPbCodeGenerator.
250
+ * @param {Array=} opt_data Optional initial data array, typically from a
251
+ * server response, or constructed directly in Javascript. The array is used
252
+ * in place and becomes part of the constructed object. It is not cloned.
253
+ * If no data is provided, the constructed object will be empty, but still
254
+ * valid.
255
+ * @extends {jspb.Message}
256
+ * @constructor
257
+ */
258
+ proto.DeleteNotificationEmployeeReq = function(opt_data) {
259
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.DeleteNotificationEmployeeReq.repeatedFields_, null);
260
+ };
261
+ goog.inherits(proto.DeleteNotificationEmployeeReq, jspb.Message);
262
+ if (goog.DEBUG && !COMPILED) {
263
+ /**
264
+ * @public
265
+ * @override
266
+ */
267
+ proto.DeleteNotificationEmployeeReq.displayName = 'proto.DeleteNotificationEmployeeReq';
268
+ }
269
+ /**
270
+ * Generated by JsPbCodeGenerator.
271
+ * @param {Array=} opt_data Optional initial data array, typically from a
272
+ * server response, or constructed directly in Javascript. The array is used
273
+ * in place and becomes part of the constructed object. It is not cloned.
274
+ * If no data is provided, the constructed object will be empty, but still
275
+ * valid.
276
+ * @extends {jspb.Message}
277
+ * @constructor
278
+ */
279
+ proto.DeleteNotificationEmployeeRes = function(opt_data) {
280
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.DeleteNotificationEmployeeRes.repeatedFields_, null);
281
+ };
282
+ goog.inherits(proto.DeleteNotificationEmployeeRes, jspb.Message);
283
+ if (goog.DEBUG && !COMPILED) {
284
+ /**
285
+ * @public
286
+ * @override
287
+ */
288
+ proto.DeleteNotificationEmployeeRes.displayName = 'proto.DeleteNotificationEmployeeRes';
289
+ }
290
+
291
+ /**
292
+ * List of repeated fields within this message type.
293
+ * @private {!Array<number>}
294
+ * @const
295
+ */
296
+ proto.Notification.repeatedFields_ = [7];
297
+
298
+
299
+
300
+ if (jspb.Message.GENERATE_TO_OBJECT) {
301
+ /**
302
+ * Creates an object representation of this proto.
303
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
304
+ * Optional fields that are not set will be set to undefined.
305
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
306
+ * For the list of reserved names please see:
307
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
308
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
309
+ * JSPB instance for transitional soy proto support:
310
+ * http://goto/soy-param-migration
311
+ * @return {!Object}
312
+ */
313
+ proto.Notification.prototype.toObject = function(opt_includeInstance) {
314
+ return proto.Notification.toObject(opt_includeInstance, this);
315
+ };
316
+
317
+
318
+ /**
319
+ * Static version of the {@see toObject} method.
320
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
321
+ * the JSPB instance for transitional soy proto support:
322
+ * http://goto/soy-param-migration
323
+ * @param {!proto.Notification} msg The msg instance to transform.
324
+ * @return {!Object}
325
+ * @suppress {unusedLocalVariables} f is only used for nested messages
326
+ */
327
+ proto.Notification.toObject = function(includeInstance, msg) {
328
+ var f, obj = {
329
+ referenceId: jspb.Message.getFieldWithDefault(msg, 1, ""),
330
+ message: jspb.Message.getFieldWithDefault(msg, 2, ""),
331
+ type: jspb.Message.getFieldWithDefault(msg, 3, ""),
332
+ companyReferenceId: jspb.Message.getFieldWithDefault(msg, 4, ""),
333
+ createdBy: jspb.Message.getFieldWithDefault(msg, 5, ""),
334
+ createdAt: jspb.Message.getFieldWithDefault(msg, 6, ""),
335
+ receiversList: jspb.Message.toObjectList(msg.getReceiversList(),
336
+ proto.NotificationEmployee.toObject, includeInstance)
337
+ };
338
+
339
+ if (includeInstance) {
340
+ obj.$jspbMessageInstance = msg;
341
+ }
342
+ return obj;
343
+ };
344
+ }
345
+
346
+
347
+ /**
348
+ * Deserializes binary data (in protobuf wire format).
349
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
350
+ * @return {!proto.Notification}
351
+ */
352
+ proto.Notification.deserializeBinary = function(bytes) {
353
+ var reader = new jspb.BinaryReader(bytes);
354
+ var msg = new proto.Notification;
355
+ return proto.Notification.deserializeBinaryFromReader(msg, reader);
356
+ };
357
+
358
+
359
+ /**
360
+ * Deserializes binary data (in protobuf wire format) from the
361
+ * given reader into the given message object.
362
+ * @param {!proto.Notification} msg The message object to deserialize into.
363
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
364
+ * @return {!proto.Notification}
365
+ */
366
+ proto.Notification.deserializeBinaryFromReader = function(msg, reader) {
367
+ while (reader.nextField()) {
368
+ if (reader.isEndGroup()) {
369
+ break;
370
+ }
371
+ var field = reader.getFieldNumber();
372
+ switch (field) {
373
+ case 1:
374
+ var value = /** @type {string} */ (reader.readString());
375
+ msg.setReferenceId(value);
376
+ break;
377
+ case 2:
378
+ var value = /** @type {string} */ (reader.readString());
379
+ msg.setMessage(value);
380
+ break;
381
+ case 3:
382
+ var value = /** @type {string} */ (reader.readString());
383
+ msg.setType(value);
384
+ break;
385
+ case 4:
386
+ var value = /** @type {string} */ (reader.readString());
387
+ msg.setCompanyReferenceId(value);
388
+ break;
389
+ case 5:
390
+ var value = /** @type {string} */ (reader.readString());
391
+ msg.setCreatedBy(value);
392
+ break;
393
+ case 6:
394
+ var value = /** @type {string} */ (reader.readString());
395
+ msg.setCreatedAt(value);
396
+ break;
397
+ case 7:
398
+ var value = new proto.NotificationEmployee;
399
+ reader.readMessage(value,proto.NotificationEmployee.deserializeBinaryFromReader);
400
+ msg.addReceivers(value);
401
+ break;
402
+ default:
403
+ reader.skipField();
404
+ break;
405
+ }
406
+ }
407
+ return msg;
408
+ };
409
+
410
+
411
+ /**
412
+ * Serializes the message to binary data (in protobuf wire format).
413
+ * @return {!Uint8Array}
414
+ */
415
+ proto.Notification.prototype.serializeBinary = function() {
416
+ var writer = new jspb.BinaryWriter();
417
+ proto.Notification.serializeBinaryToWriter(this, writer);
418
+ return writer.getResultBuffer();
419
+ };
420
+
421
+
422
+ /**
423
+ * Serializes the given message to binary data (in protobuf wire
424
+ * format), writing to the given BinaryWriter.
425
+ * @param {!proto.Notification} message
426
+ * @param {!jspb.BinaryWriter} writer
427
+ * @suppress {unusedLocalVariables} f is only used for nested messages
428
+ */
429
+ proto.Notification.serializeBinaryToWriter = function(message, writer) {
430
+ var f = undefined;
431
+ f = message.getReferenceId();
432
+ if (f.length > 0) {
433
+ writer.writeString(
434
+ 1,
435
+ f
436
+ );
437
+ }
438
+ f = message.getMessage();
439
+ if (f.length > 0) {
440
+ writer.writeString(
441
+ 2,
442
+ f
443
+ );
444
+ }
445
+ f = message.getType();
446
+ if (f.length > 0) {
447
+ writer.writeString(
448
+ 3,
449
+ f
450
+ );
451
+ }
452
+ f = message.getCompanyReferenceId();
453
+ if (f.length > 0) {
454
+ writer.writeString(
455
+ 4,
456
+ f
457
+ );
458
+ }
459
+ f = message.getCreatedBy();
460
+ if (f.length > 0) {
461
+ writer.writeString(
462
+ 5,
463
+ f
464
+ );
465
+ }
466
+ f = message.getCreatedAt();
467
+ if (f.length > 0) {
468
+ writer.writeString(
469
+ 6,
470
+ f
471
+ );
472
+ }
473
+ f = message.getReceiversList();
474
+ if (f.length > 0) {
475
+ writer.writeRepeatedMessage(
476
+ 7,
477
+ f,
478
+ proto.NotificationEmployee.serializeBinaryToWriter
479
+ );
480
+ }
481
+ };
482
+
483
+
484
+ /**
485
+ * optional string reference_id = 1;
486
+ * @return {string}
487
+ */
488
+ proto.Notification.prototype.getReferenceId = function() {
489
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
490
+ };
491
+
492
+
493
+ /**
494
+ * @param {string} value
495
+ * @return {!proto.Notification} returns this
496
+ */
497
+ proto.Notification.prototype.setReferenceId = function(value) {
498
+ return jspb.Message.setProto3StringField(this, 1, value);
499
+ };
500
+
501
+
502
+ /**
503
+ * optional string message = 2;
504
+ * @return {string}
505
+ */
506
+ proto.Notification.prototype.getMessage = function() {
507
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
508
+ };
509
+
510
+
511
+ /**
512
+ * @param {string} value
513
+ * @return {!proto.Notification} returns this
514
+ */
515
+ proto.Notification.prototype.setMessage = function(value) {
516
+ return jspb.Message.setProto3StringField(this, 2, value);
517
+ };
518
+
519
+
520
+ /**
521
+ * optional string type = 3;
522
+ * @return {string}
523
+ */
524
+ proto.Notification.prototype.getType = function() {
525
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
526
+ };
527
+
528
+
529
+ /**
530
+ * @param {string} value
531
+ * @return {!proto.Notification} returns this
532
+ */
533
+ proto.Notification.prototype.setType = function(value) {
534
+ return jspb.Message.setProto3StringField(this, 3, value);
535
+ };
536
+
537
+
538
+ /**
539
+ * optional string company_reference_id = 4;
540
+ * @return {string}
541
+ */
542
+ proto.Notification.prototype.getCompanyReferenceId = function() {
543
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
544
+ };
545
+
546
+
547
+ /**
548
+ * @param {string} value
549
+ * @return {!proto.Notification} returns this
550
+ */
551
+ proto.Notification.prototype.setCompanyReferenceId = function(value) {
552
+ return jspb.Message.setProto3StringField(this, 4, value);
553
+ };
554
+
555
+
556
+ /**
557
+ * optional string created_by = 5;
558
+ * @return {string}
559
+ */
560
+ proto.Notification.prototype.getCreatedBy = function() {
561
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
562
+ };
563
+
564
+
565
+ /**
566
+ * @param {string} value
567
+ * @return {!proto.Notification} returns this
568
+ */
569
+ proto.Notification.prototype.setCreatedBy = function(value) {
570
+ return jspb.Message.setProto3StringField(this, 5, value);
571
+ };
572
+
573
+
574
+ /**
575
+ * optional string created_at = 6;
576
+ * @return {string}
577
+ */
578
+ proto.Notification.prototype.getCreatedAt = function() {
579
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
580
+ };
581
+
582
+
583
+ /**
584
+ * @param {string} value
585
+ * @return {!proto.Notification} returns this
586
+ */
587
+ proto.Notification.prototype.setCreatedAt = function(value) {
588
+ return jspb.Message.setProto3StringField(this, 6, value);
589
+ };
590
+
591
+
592
+ /**
593
+ * repeated NotificationEmployee receivers = 7;
594
+ * @return {!Array<!proto.NotificationEmployee>}
595
+ */
596
+ proto.Notification.prototype.getReceiversList = function() {
597
+ return /** @type{!Array<!proto.NotificationEmployee>} */ (
598
+ jspb.Message.getRepeatedWrapperField(this, proto.NotificationEmployee, 7));
599
+ };
600
+
601
+
602
+ /**
603
+ * @param {!Array<!proto.NotificationEmployee>} value
604
+ * @return {!proto.Notification} returns this
605
+ */
606
+ proto.Notification.prototype.setReceiversList = function(value) {
607
+ return jspb.Message.setRepeatedWrapperField(this, 7, value);
608
+ };
609
+
610
+
611
+ /**
612
+ * @param {!proto.NotificationEmployee=} opt_value
613
+ * @param {number=} opt_index
614
+ * @return {!proto.NotificationEmployee}
615
+ */
616
+ proto.Notification.prototype.addReceivers = function(opt_value, opt_index) {
617
+ return jspb.Message.addToRepeatedWrapperField(this, 7, opt_value, proto.NotificationEmployee, opt_index);
618
+ };
619
+
620
+
621
+ /**
622
+ * Clears the list making it empty but non-null.
623
+ * @return {!proto.Notification} returns this
624
+ */
625
+ proto.Notification.prototype.clearReceiversList = function() {
626
+ return this.setReceiversList([]);
627
+ };
628
+
629
+
630
+
631
+
632
+
633
+ if (jspb.Message.GENERATE_TO_OBJECT) {
634
+ /**
635
+ * Creates an object representation of this proto.
636
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
637
+ * Optional fields that are not set will be set to undefined.
638
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
639
+ * For the list of reserved names please see:
640
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
641
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
642
+ * JSPB instance for transitional soy proto support:
643
+ * http://goto/soy-param-migration
644
+ * @return {!Object}
645
+ */
646
+ proto.NotificationEmployee.prototype.toObject = function(opt_includeInstance) {
647
+ return proto.NotificationEmployee.toObject(opt_includeInstance, this);
648
+ };
649
+
650
+
651
+ /**
652
+ * Static version of the {@see toObject} method.
653
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
654
+ * the JSPB instance for transitional soy proto support:
655
+ * http://goto/soy-param-migration
656
+ * @param {!proto.NotificationEmployee} msg The msg instance to transform.
657
+ * @return {!Object}
658
+ * @suppress {unusedLocalVariables} f is only used for nested messages
659
+ */
660
+ proto.NotificationEmployee.toObject = function(includeInstance, msg) {
661
+ var f, obj = {
662
+ referenceId: jspb.Message.getFieldWithDefault(msg, 1, ""),
663
+ isRead: jspb.Message.getBooleanFieldWithDefault(msg, 2, false),
664
+ createdBy: jspb.Message.getFieldWithDefault(msg, 3, ""),
665
+ createdAt: jspb.Message.getFieldWithDefault(msg, 4, ""),
666
+ updatedAt: jspb.Message.getFieldWithDefault(msg, 5, "")
667
+ };
668
+
669
+ if (includeInstance) {
670
+ obj.$jspbMessageInstance = msg;
671
+ }
672
+ return obj;
673
+ };
674
+ }
675
+
676
+
677
+ /**
678
+ * Deserializes binary data (in protobuf wire format).
679
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
680
+ * @return {!proto.NotificationEmployee}
681
+ */
682
+ proto.NotificationEmployee.deserializeBinary = function(bytes) {
683
+ var reader = new jspb.BinaryReader(bytes);
684
+ var msg = new proto.NotificationEmployee;
685
+ return proto.NotificationEmployee.deserializeBinaryFromReader(msg, reader);
686
+ };
687
+
688
+
689
+ /**
690
+ * Deserializes binary data (in protobuf wire format) from the
691
+ * given reader into the given message object.
692
+ * @param {!proto.NotificationEmployee} msg The message object to deserialize into.
693
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
694
+ * @return {!proto.NotificationEmployee}
695
+ */
696
+ proto.NotificationEmployee.deserializeBinaryFromReader = function(msg, reader) {
697
+ while (reader.nextField()) {
698
+ if (reader.isEndGroup()) {
699
+ break;
700
+ }
701
+ var field = reader.getFieldNumber();
702
+ switch (field) {
703
+ case 1:
704
+ var value = /** @type {string} */ (reader.readString());
705
+ msg.setReferenceId(value);
706
+ break;
707
+ case 2:
708
+ var value = /** @type {boolean} */ (reader.readBool());
709
+ msg.setIsRead(value);
710
+ break;
711
+ case 3:
712
+ var value = /** @type {string} */ (reader.readString());
713
+ msg.setCreatedBy(value);
714
+ break;
715
+ case 4:
716
+ var value = /** @type {string} */ (reader.readString());
717
+ msg.setCreatedAt(value);
718
+ break;
719
+ case 5:
720
+ var value = /** @type {string} */ (reader.readString());
721
+ msg.setUpdatedAt(value);
722
+ break;
723
+ default:
724
+ reader.skipField();
725
+ break;
726
+ }
727
+ }
728
+ return msg;
729
+ };
730
+
731
+
732
+ /**
733
+ * Serializes the message to binary data (in protobuf wire format).
734
+ * @return {!Uint8Array}
735
+ */
736
+ proto.NotificationEmployee.prototype.serializeBinary = function() {
737
+ var writer = new jspb.BinaryWriter();
738
+ proto.NotificationEmployee.serializeBinaryToWriter(this, writer);
739
+ return writer.getResultBuffer();
740
+ };
741
+
742
+
743
+ /**
744
+ * Serializes the given message to binary data (in protobuf wire
745
+ * format), writing to the given BinaryWriter.
746
+ * @param {!proto.NotificationEmployee} message
747
+ * @param {!jspb.BinaryWriter} writer
748
+ * @suppress {unusedLocalVariables} f is only used for nested messages
749
+ */
750
+ proto.NotificationEmployee.serializeBinaryToWriter = function(message, writer) {
751
+ var f = undefined;
752
+ f = message.getReferenceId();
753
+ if (f.length > 0) {
754
+ writer.writeString(
755
+ 1,
756
+ f
757
+ );
758
+ }
759
+ f = message.getIsRead();
760
+ if (f) {
761
+ writer.writeBool(
762
+ 2,
763
+ f
764
+ );
765
+ }
766
+ f = message.getCreatedBy();
767
+ if (f.length > 0) {
768
+ writer.writeString(
769
+ 3,
770
+ f
771
+ );
772
+ }
773
+ f = message.getCreatedAt();
774
+ if (f.length > 0) {
775
+ writer.writeString(
776
+ 4,
777
+ f
778
+ );
779
+ }
780
+ f = message.getUpdatedAt();
781
+ if (f.length > 0) {
782
+ writer.writeString(
783
+ 5,
784
+ f
785
+ );
786
+ }
787
+ };
788
+
789
+
790
+ /**
791
+ * optional string reference_id = 1;
792
+ * @return {string}
793
+ */
794
+ proto.NotificationEmployee.prototype.getReferenceId = function() {
795
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
796
+ };
797
+
798
+
799
+ /**
800
+ * @param {string} value
801
+ * @return {!proto.NotificationEmployee} returns this
802
+ */
803
+ proto.NotificationEmployee.prototype.setReferenceId = function(value) {
804
+ return jspb.Message.setProto3StringField(this, 1, value);
805
+ };
806
+
807
+
808
+ /**
809
+ * optional bool is_read = 2;
810
+ * @return {boolean}
811
+ */
812
+ proto.NotificationEmployee.prototype.getIsRead = function() {
813
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 2, false));
814
+ };
815
+
816
+
817
+ /**
818
+ * @param {boolean} value
819
+ * @return {!proto.NotificationEmployee} returns this
820
+ */
821
+ proto.NotificationEmployee.prototype.setIsRead = function(value) {
822
+ return jspb.Message.setProto3BooleanField(this, 2, value);
823
+ };
824
+
825
+
826
+ /**
827
+ * optional string created_by = 3;
828
+ * @return {string}
829
+ */
830
+ proto.NotificationEmployee.prototype.getCreatedBy = function() {
831
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
832
+ };
833
+
834
+
835
+ /**
836
+ * @param {string} value
837
+ * @return {!proto.NotificationEmployee} returns this
838
+ */
839
+ proto.NotificationEmployee.prototype.setCreatedBy = function(value) {
840
+ return jspb.Message.setProto3StringField(this, 3, value);
841
+ };
842
+
843
+
844
+ /**
845
+ * optional string created_at = 4;
846
+ * @return {string}
847
+ */
848
+ proto.NotificationEmployee.prototype.getCreatedAt = function() {
849
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
850
+ };
851
+
852
+
853
+ /**
854
+ * @param {string} value
855
+ * @return {!proto.NotificationEmployee} returns this
856
+ */
857
+ proto.NotificationEmployee.prototype.setCreatedAt = function(value) {
858
+ return jspb.Message.setProto3StringField(this, 4, value);
859
+ };
860
+
861
+
862
+ /**
863
+ * optional string updated_at = 5;
864
+ * @return {string}
865
+ */
866
+ proto.NotificationEmployee.prototype.getUpdatedAt = function() {
867
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
868
+ };
869
+
870
+
871
+ /**
872
+ * @param {string} value
873
+ * @return {!proto.NotificationEmployee} returns this
874
+ */
875
+ proto.NotificationEmployee.prototype.setUpdatedAt = function(value) {
876
+ return jspb.Message.setProto3StringField(this, 5, value);
877
+ };
878
+
879
+
880
+
881
+
882
+
883
+ if (jspb.Message.GENERATE_TO_OBJECT) {
884
+ /**
885
+ * Creates an object representation of this proto.
886
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
887
+ * Optional fields that are not set will be set to undefined.
888
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
889
+ * For the list of reserved names please see:
890
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
891
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
892
+ * JSPB instance for transitional soy proto support:
893
+ * http://goto/soy-param-migration
894
+ * @return {!Object}
895
+ */
896
+ proto.NotificationEmployeeItem.prototype.toObject = function(opt_includeInstance) {
897
+ return proto.NotificationEmployeeItem.toObject(opt_includeInstance, this);
898
+ };
899
+
900
+
901
+ /**
902
+ * Static version of the {@see toObject} method.
903
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
904
+ * the JSPB instance for transitional soy proto support:
905
+ * http://goto/soy-param-migration
906
+ * @param {!proto.NotificationEmployeeItem} msg The msg instance to transform.
907
+ * @return {!Object}
908
+ * @suppress {unusedLocalVariables} f is only used for nested messages
909
+ */
910
+ proto.NotificationEmployeeItem.toObject = function(includeInstance, msg) {
911
+ var f, obj = {
912
+ referenceId: jspb.Message.getFieldWithDefault(msg, 1, ""),
913
+ employeeReferenceId: jspb.Message.getFieldWithDefault(msg, 2, ""),
914
+ companyReferenceId: jspb.Message.getFieldWithDefault(msg, 3, ""),
915
+ message: jspb.Message.getFieldWithDefault(msg, 4, ""),
916
+ type: jspb.Message.getFieldWithDefault(msg, 5, ""),
917
+ isRead: jspb.Message.getBooleanFieldWithDefault(msg, 6, false),
918
+ createdBy: jspb.Message.getFieldWithDefault(msg, 7, ""),
919
+ createdAt: jspb.Message.getFieldWithDefault(msg, 8, ""),
920
+ updatedAt: jspb.Message.getFieldWithDefault(msg, 9, "")
921
+ };
922
+
923
+ if (includeInstance) {
924
+ obj.$jspbMessageInstance = msg;
925
+ }
926
+ return obj;
927
+ };
928
+ }
929
+
930
+
931
+ /**
932
+ * Deserializes binary data (in protobuf wire format).
933
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
934
+ * @return {!proto.NotificationEmployeeItem}
935
+ */
936
+ proto.NotificationEmployeeItem.deserializeBinary = function(bytes) {
937
+ var reader = new jspb.BinaryReader(bytes);
938
+ var msg = new proto.NotificationEmployeeItem;
939
+ return proto.NotificationEmployeeItem.deserializeBinaryFromReader(msg, reader);
940
+ };
941
+
942
+
943
+ /**
944
+ * Deserializes binary data (in protobuf wire format) from the
945
+ * given reader into the given message object.
946
+ * @param {!proto.NotificationEmployeeItem} msg The message object to deserialize into.
947
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
948
+ * @return {!proto.NotificationEmployeeItem}
949
+ */
950
+ proto.NotificationEmployeeItem.deserializeBinaryFromReader = function(msg, reader) {
951
+ while (reader.nextField()) {
952
+ if (reader.isEndGroup()) {
953
+ break;
954
+ }
955
+ var field = reader.getFieldNumber();
956
+ switch (field) {
957
+ case 1:
958
+ var value = /** @type {string} */ (reader.readString());
959
+ msg.setReferenceId(value);
960
+ break;
961
+ case 2:
962
+ var value = /** @type {string} */ (reader.readString());
963
+ msg.setEmployeeReferenceId(value);
964
+ break;
965
+ case 3:
966
+ var value = /** @type {string} */ (reader.readString());
967
+ msg.setCompanyReferenceId(value);
968
+ break;
969
+ case 4:
970
+ var value = /** @type {string} */ (reader.readString());
971
+ msg.setMessage(value);
972
+ break;
973
+ case 5:
974
+ var value = /** @type {string} */ (reader.readString());
975
+ msg.setType(value);
976
+ break;
977
+ case 6:
978
+ var value = /** @type {boolean} */ (reader.readBool());
979
+ msg.setIsRead(value);
980
+ break;
981
+ case 7:
982
+ var value = /** @type {string} */ (reader.readString());
983
+ msg.setCreatedBy(value);
984
+ break;
985
+ case 8:
986
+ var value = /** @type {string} */ (reader.readString());
987
+ msg.setCreatedAt(value);
988
+ break;
989
+ case 9:
990
+ var value = /** @type {string} */ (reader.readString());
991
+ msg.setUpdatedAt(value);
992
+ break;
993
+ default:
994
+ reader.skipField();
995
+ break;
996
+ }
997
+ }
998
+ return msg;
999
+ };
1000
+
1001
+
1002
+ /**
1003
+ * Serializes the message to binary data (in protobuf wire format).
1004
+ * @return {!Uint8Array}
1005
+ */
1006
+ proto.NotificationEmployeeItem.prototype.serializeBinary = function() {
1007
+ var writer = new jspb.BinaryWriter();
1008
+ proto.NotificationEmployeeItem.serializeBinaryToWriter(this, writer);
1009
+ return writer.getResultBuffer();
1010
+ };
1011
+
1012
+
1013
+ /**
1014
+ * Serializes the given message to binary data (in protobuf wire
1015
+ * format), writing to the given BinaryWriter.
1016
+ * @param {!proto.NotificationEmployeeItem} message
1017
+ * @param {!jspb.BinaryWriter} writer
1018
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1019
+ */
1020
+ proto.NotificationEmployeeItem.serializeBinaryToWriter = function(message, writer) {
1021
+ var f = undefined;
1022
+ f = message.getReferenceId();
1023
+ if (f.length > 0) {
1024
+ writer.writeString(
1025
+ 1,
1026
+ f
1027
+ );
1028
+ }
1029
+ f = message.getEmployeeReferenceId();
1030
+ if (f.length > 0) {
1031
+ writer.writeString(
1032
+ 2,
1033
+ f
1034
+ );
1035
+ }
1036
+ f = message.getCompanyReferenceId();
1037
+ if (f.length > 0) {
1038
+ writer.writeString(
1039
+ 3,
1040
+ f
1041
+ );
1042
+ }
1043
+ f = message.getMessage();
1044
+ if (f.length > 0) {
1045
+ writer.writeString(
1046
+ 4,
1047
+ f
1048
+ );
1049
+ }
1050
+ f = message.getType();
1051
+ if (f.length > 0) {
1052
+ writer.writeString(
1053
+ 5,
1054
+ f
1055
+ );
1056
+ }
1057
+ f = message.getIsRead();
1058
+ if (f) {
1059
+ writer.writeBool(
1060
+ 6,
1061
+ f
1062
+ );
1063
+ }
1064
+ f = message.getCreatedBy();
1065
+ if (f.length > 0) {
1066
+ writer.writeString(
1067
+ 7,
1068
+ f
1069
+ );
1070
+ }
1071
+ f = message.getCreatedAt();
1072
+ if (f.length > 0) {
1073
+ writer.writeString(
1074
+ 8,
1075
+ f
1076
+ );
1077
+ }
1078
+ f = message.getUpdatedAt();
1079
+ if (f.length > 0) {
1080
+ writer.writeString(
1081
+ 9,
1082
+ f
1083
+ );
1084
+ }
1085
+ };
1086
+
1087
+
1088
+ /**
1089
+ * optional string reference_id = 1;
1090
+ * @return {string}
1091
+ */
1092
+ proto.NotificationEmployeeItem.prototype.getReferenceId = function() {
1093
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1094
+ };
1095
+
1096
+
1097
+ /**
1098
+ * @param {string} value
1099
+ * @return {!proto.NotificationEmployeeItem} returns this
1100
+ */
1101
+ proto.NotificationEmployeeItem.prototype.setReferenceId = function(value) {
1102
+ return jspb.Message.setProto3StringField(this, 1, value);
1103
+ };
1104
+
1105
+
1106
+ /**
1107
+ * optional string employee_reference_id = 2;
1108
+ * @return {string}
1109
+ */
1110
+ proto.NotificationEmployeeItem.prototype.getEmployeeReferenceId = function() {
1111
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1112
+ };
1113
+
1114
+
1115
+ /**
1116
+ * @param {string} value
1117
+ * @return {!proto.NotificationEmployeeItem} returns this
1118
+ */
1119
+ proto.NotificationEmployeeItem.prototype.setEmployeeReferenceId = function(value) {
1120
+ return jspb.Message.setProto3StringField(this, 2, value);
1121
+ };
1122
+
1123
+
1124
+ /**
1125
+ * optional string company_reference_id = 3;
1126
+ * @return {string}
1127
+ */
1128
+ proto.NotificationEmployeeItem.prototype.getCompanyReferenceId = function() {
1129
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1130
+ };
1131
+
1132
+
1133
+ /**
1134
+ * @param {string} value
1135
+ * @return {!proto.NotificationEmployeeItem} returns this
1136
+ */
1137
+ proto.NotificationEmployeeItem.prototype.setCompanyReferenceId = function(value) {
1138
+ return jspb.Message.setProto3StringField(this, 3, value);
1139
+ };
1140
+
1141
+
1142
+ /**
1143
+ * optional string message = 4;
1144
+ * @return {string}
1145
+ */
1146
+ proto.NotificationEmployeeItem.prototype.getMessage = function() {
1147
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1148
+ };
1149
+
1150
+
1151
+ /**
1152
+ * @param {string} value
1153
+ * @return {!proto.NotificationEmployeeItem} returns this
1154
+ */
1155
+ proto.NotificationEmployeeItem.prototype.setMessage = function(value) {
1156
+ return jspb.Message.setProto3StringField(this, 4, value);
1157
+ };
1158
+
1159
+
1160
+ /**
1161
+ * optional string type = 5;
1162
+ * @return {string}
1163
+ */
1164
+ proto.NotificationEmployeeItem.prototype.getType = function() {
1165
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
1166
+ };
1167
+
1168
+
1169
+ /**
1170
+ * @param {string} value
1171
+ * @return {!proto.NotificationEmployeeItem} returns this
1172
+ */
1173
+ proto.NotificationEmployeeItem.prototype.setType = function(value) {
1174
+ return jspb.Message.setProto3StringField(this, 5, value);
1175
+ };
1176
+
1177
+
1178
+ /**
1179
+ * optional bool is_read = 6;
1180
+ * @return {boolean}
1181
+ */
1182
+ proto.NotificationEmployeeItem.prototype.getIsRead = function() {
1183
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 6, false));
1184
+ };
1185
+
1186
+
1187
+ /**
1188
+ * @param {boolean} value
1189
+ * @return {!proto.NotificationEmployeeItem} returns this
1190
+ */
1191
+ proto.NotificationEmployeeItem.prototype.setIsRead = function(value) {
1192
+ return jspb.Message.setProto3BooleanField(this, 6, value);
1193
+ };
1194
+
1195
+
1196
+ /**
1197
+ * optional string created_by = 7;
1198
+ * @return {string}
1199
+ */
1200
+ proto.NotificationEmployeeItem.prototype.getCreatedBy = function() {
1201
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
1202
+ };
1203
+
1204
+
1205
+ /**
1206
+ * @param {string} value
1207
+ * @return {!proto.NotificationEmployeeItem} returns this
1208
+ */
1209
+ proto.NotificationEmployeeItem.prototype.setCreatedBy = function(value) {
1210
+ return jspb.Message.setProto3StringField(this, 7, value);
1211
+ };
1212
+
1213
+
1214
+ /**
1215
+ * optional string created_at = 8;
1216
+ * @return {string}
1217
+ */
1218
+ proto.NotificationEmployeeItem.prototype.getCreatedAt = function() {
1219
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
1220
+ };
1221
+
1222
+
1223
+ /**
1224
+ * @param {string} value
1225
+ * @return {!proto.NotificationEmployeeItem} returns this
1226
+ */
1227
+ proto.NotificationEmployeeItem.prototype.setCreatedAt = function(value) {
1228
+ return jspb.Message.setProto3StringField(this, 8, value);
1229
+ };
1230
+
1231
+
1232
+ /**
1233
+ * optional string updated_at = 9;
1234
+ * @return {string}
1235
+ */
1236
+ proto.NotificationEmployeeItem.prototype.getUpdatedAt = function() {
1237
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
1238
+ };
1239
+
1240
+
1241
+ /**
1242
+ * @param {string} value
1243
+ * @return {!proto.NotificationEmployeeItem} returns this
1244
+ */
1245
+ proto.NotificationEmployeeItem.prototype.setUpdatedAt = function(value) {
1246
+ return jspb.Message.setProto3StringField(this, 9, value);
1247
+ };
1248
+
1249
+
1250
+
1251
+
1252
+
1253
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1254
+ /**
1255
+ * Creates an object representation of this proto.
1256
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1257
+ * Optional fields that are not set will be set to undefined.
1258
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1259
+ * For the list of reserved names please see:
1260
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1261
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1262
+ * JSPB instance for transitional soy proto support:
1263
+ * http://goto/soy-param-migration
1264
+ * @return {!Object}
1265
+ */
1266
+ proto.GetListNotificationEmployeeReq.prototype.toObject = function(opt_includeInstance) {
1267
+ return proto.GetListNotificationEmployeeReq.toObject(opt_includeInstance, this);
1268
+ };
1269
+
1270
+
1271
+ /**
1272
+ * Static version of the {@see toObject} method.
1273
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1274
+ * the JSPB instance for transitional soy proto support:
1275
+ * http://goto/soy-param-migration
1276
+ * @param {!proto.GetListNotificationEmployeeReq} msg The msg instance to transform.
1277
+ * @return {!Object}
1278
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1279
+ */
1280
+ proto.GetListNotificationEmployeeReq.toObject = function(includeInstance, msg) {
1281
+ var f, obj = {
1282
+ pagination: (f = msg.getPagination()) && prisca_v1_global_meta_meta_pb.PaginationRequest.toObject(includeInstance, f),
1283
+ query: (f = msg.getQuery()) && prisca_v1_global_meta_meta_pb.FilterRequest.toObject(includeInstance, f)
1284
+ };
1285
+
1286
+ if (includeInstance) {
1287
+ obj.$jspbMessageInstance = msg;
1288
+ }
1289
+ return obj;
1290
+ };
1291
+ }
1292
+
1293
+
1294
+ /**
1295
+ * Deserializes binary data (in protobuf wire format).
1296
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1297
+ * @return {!proto.GetListNotificationEmployeeReq}
1298
+ */
1299
+ proto.GetListNotificationEmployeeReq.deserializeBinary = function(bytes) {
1300
+ var reader = new jspb.BinaryReader(bytes);
1301
+ var msg = new proto.GetListNotificationEmployeeReq;
1302
+ return proto.GetListNotificationEmployeeReq.deserializeBinaryFromReader(msg, reader);
1303
+ };
1304
+
1305
+
1306
+ /**
1307
+ * Deserializes binary data (in protobuf wire format) from the
1308
+ * given reader into the given message object.
1309
+ * @param {!proto.GetListNotificationEmployeeReq} msg The message object to deserialize into.
1310
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1311
+ * @return {!proto.GetListNotificationEmployeeReq}
1312
+ */
1313
+ proto.GetListNotificationEmployeeReq.deserializeBinaryFromReader = function(msg, reader) {
1314
+ while (reader.nextField()) {
1315
+ if (reader.isEndGroup()) {
1316
+ break;
1317
+ }
1318
+ var field = reader.getFieldNumber();
1319
+ switch (field) {
1320
+ case 1:
1321
+ var value = new prisca_v1_global_meta_meta_pb.PaginationRequest;
1322
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.PaginationRequest.deserializeBinaryFromReader);
1323
+ msg.setPagination(value);
1324
+ break;
1325
+ case 2:
1326
+ var value = new prisca_v1_global_meta_meta_pb.FilterRequest;
1327
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.FilterRequest.deserializeBinaryFromReader);
1328
+ msg.setQuery(value);
1329
+ break;
1330
+ default:
1331
+ reader.skipField();
1332
+ break;
1333
+ }
1334
+ }
1335
+ return msg;
1336
+ };
1337
+
1338
+
1339
+ /**
1340
+ * Serializes the message to binary data (in protobuf wire format).
1341
+ * @return {!Uint8Array}
1342
+ */
1343
+ proto.GetListNotificationEmployeeReq.prototype.serializeBinary = function() {
1344
+ var writer = new jspb.BinaryWriter();
1345
+ proto.GetListNotificationEmployeeReq.serializeBinaryToWriter(this, writer);
1346
+ return writer.getResultBuffer();
1347
+ };
1348
+
1349
+
1350
+ /**
1351
+ * Serializes the given message to binary data (in protobuf wire
1352
+ * format), writing to the given BinaryWriter.
1353
+ * @param {!proto.GetListNotificationEmployeeReq} message
1354
+ * @param {!jspb.BinaryWriter} writer
1355
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1356
+ */
1357
+ proto.GetListNotificationEmployeeReq.serializeBinaryToWriter = function(message, writer) {
1358
+ var f = undefined;
1359
+ f = message.getPagination();
1360
+ if (f != null) {
1361
+ writer.writeMessage(
1362
+ 1,
1363
+ f,
1364
+ prisca_v1_global_meta_meta_pb.PaginationRequest.serializeBinaryToWriter
1365
+ );
1366
+ }
1367
+ f = message.getQuery();
1368
+ if (f != null) {
1369
+ writer.writeMessage(
1370
+ 2,
1371
+ f,
1372
+ prisca_v1_global_meta_meta_pb.FilterRequest.serializeBinaryToWriter
1373
+ );
1374
+ }
1375
+ };
1376
+
1377
+
1378
+ /**
1379
+ * optional prisca.v1.global.meta.PaginationRequest pagination = 1;
1380
+ * @return {?proto.prisca.v1.global.meta.PaginationRequest}
1381
+ */
1382
+ proto.GetListNotificationEmployeeReq.prototype.getPagination = function() {
1383
+ return /** @type{?proto.prisca.v1.global.meta.PaginationRequest} */ (
1384
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.PaginationRequest, 1));
1385
+ };
1386
+
1387
+
1388
+ /**
1389
+ * @param {?proto.prisca.v1.global.meta.PaginationRequest|undefined} value
1390
+ * @return {!proto.GetListNotificationEmployeeReq} returns this
1391
+ */
1392
+ proto.GetListNotificationEmployeeReq.prototype.setPagination = function(value) {
1393
+ return jspb.Message.setWrapperField(this, 1, value);
1394
+ };
1395
+
1396
+
1397
+ /**
1398
+ * Clears the message field making it undefined.
1399
+ * @return {!proto.GetListNotificationEmployeeReq} returns this
1400
+ */
1401
+ proto.GetListNotificationEmployeeReq.prototype.clearPagination = function() {
1402
+ return this.setPagination(undefined);
1403
+ };
1404
+
1405
+
1406
+ /**
1407
+ * Returns whether this field is set.
1408
+ * @return {boolean}
1409
+ */
1410
+ proto.GetListNotificationEmployeeReq.prototype.hasPagination = function() {
1411
+ return jspb.Message.getField(this, 1) != null;
1412
+ };
1413
+
1414
+
1415
+ /**
1416
+ * optional prisca.v1.global.meta.FilterRequest query = 2;
1417
+ * @return {?proto.prisca.v1.global.meta.FilterRequest}
1418
+ */
1419
+ proto.GetListNotificationEmployeeReq.prototype.getQuery = function() {
1420
+ return /** @type{?proto.prisca.v1.global.meta.FilterRequest} */ (
1421
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.FilterRequest, 2));
1422
+ };
1423
+
1424
+
1425
+ /**
1426
+ * @param {?proto.prisca.v1.global.meta.FilterRequest|undefined} value
1427
+ * @return {!proto.GetListNotificationEmployeeReq} returns this
1428
+ */
1429
+ proto.GetListNotificationEmployeeReq.prototype.setQuery = function(value) {
1430
+ return jspb.Message.setWrapperField(this, 2, value);
1431
+ };
1432
+
1433
+
1434
+ /**
1435
+ * Clears the message field making it undefined.
1436
+ * @return {!proto.GetListNotificationEmployeeReq} returns this
1437
+ */
1438
+ proto.GetListNotificationEmployeeReq.prototype.clearQuery = function() {
1439
+ return this.setQuery(undefined);
1440
+ };
1441
+
1442
+
1443
+ /**
1444
+ * Returns whether this field is set.
1445
+ * @return {boolean}
1446
+ */
1447
+ proto.GetListNotificationEmployeeReq.prototype.hasQuery = function() {
1448
+ return jspb.Message.getField(this, 2) != null;
1449
+ };
1450
+
1451
+
1452
+
1453
+ /**
1454
+ * List of repeated fields within this message type.
1455
+ * @private {!Array<number>}
1456
+ * @const
1457
+ */
1458
+ proto.GetListNotificationEmployeeRes.repeatedFields_ = [1];
1459
+
1460
+
1461
+
1462
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1463
+ /**
1464
+ * Creates an object representation of this proto.
1465
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1466
+ * Optional fields that are not set will be set to undefined.
1467
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1468
+ * For the list of reserved names please see:
1469
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1470
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1471
+ * JSPB instance for transitional soy proto support:
1472
+ * http://goto/soy-param-migration
1473
+ * @return {!Object}
1474
+ */
1475
+ proto.GetListNotificationEmployeeRes.prototype.toObject = function(opt_includeInstance) {
1476
+ return proto.GetListNotificationEmployeeRes.toObject(opt_includeInstance, this);
1477
+ };
1478
+
1479
+
1480
+ /**
1481
+ * Static version of the {@see toObject} method.
1482
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1483
+ * the JSPB instance for transitional soy proto support:
1484
+ * http://goto/soy-param-migration
1485
+ * @param {!proto.GetListNotificationEmployeeRes} msg The msg instance to transform.
1486
+ * @return {!Object}
1487
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1488
+ */
1489
+ proto.GetListNotificationEmployeeRes.toObject = function(includeInstance, msg) {
1490
+ var f, obj = {
1491
+ dataList: jspb.Message.toObjectList(msg.getDataList(),
1492
+ proto.NotificationEmployeeItem.toObject, includeInstance),
1493
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
1494
+ };
1495
+
1496
+ if (includeInstance) {
1497
+ obj.$jspbMessageInstance = msg;
1498
+ }
1499
+ return obj;
1500
+ };
1501
+ }
1502
+
1503
+
1504
+ /**
1505
+ * Deserializes binary data (in protobuf wire format).
1506
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1507
+ * @return {!proto.GetListNotificationEmployeeRes}
1508
+ */
1509
+ proto.GetListNotificationEmployeeRes.deserializeBinary = function(bytes) {
1510
+ var reader = new jspb.BinaryReader(bytes);
1511
+ var msg = new proto.GetListNotificationEmployeeRes;
1512
+ return proto.GetListNotificationEmployeeRes.deserializeBinaryFromReader(msg, reader);
1513
+ };
1514
+
1515
+
1516
+ /**
1517
+ * Deserializes binary data (in protobuf wire format) from the
1518
+ * given reader into the given message object.
1519
+ * @param {!proto.GetListNotificationEmployeeRes} msg The message object to deserialize into.
1520
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1521
+ * @return {!proto.GetListNotificationEmployeeRes}
1522
+ */
1523
+ proto.GetListNotificationEmployeeRes.deserializeBinaryFromReader = function(msg, reader) {
1524
+ while (reader.nextField()) {
1525
+ if (reader.isEndGroup()) {
1526
+ break;
1527
+ }
1528
+ var field = reader.getFieldNumber();
1529
+ switch (field) {
1530
+ case 1:
1531
+ var value = new proto.NotificationEmployeeItem;
1532
+ reader.readMessage(value,proto.NotificationEmployeeItem.deserializeBinaryFromReader);
1533
+ msg.addData(value);
1534
+ break;
1535
+ case 2:
1536
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
1537
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
1538
+ msg.setMeta(value);
1539
+ break;
1540
+ default:
1541
+ reader.skipField();
1542
+ break;
1543
+ }
1544
+ }
1545
+ return msg;
1546
+ };
1547
+
1548
+
1549
+ /**
1550
+ * Serializes the message to binary data (in protobuf wire format).
1551
+ * @return {!Uint8Array}
1552
+ */
1553
+ proto.GetListNotificationEmployeeRes.prototype.serializeBinary = function() {
1554
+ var writer = new jspb.BinaryWriter();
1555
+ proto.GetListNotificationEmployeeRes.serializeBinaryToWriter(this, writer);
1556
+ return writer.getResultBuffer();
1557
+ };
1558
+
1559
+
1560
+ /**
1561
+ * Serializes the given message to binary data (in protobuf wire
1562
+ * format), writing to the given BinaryWriter.
1563
+ * @param {!proto.GetListNotificationEmployeeRes} message
1564
+ * @param {!jspb.BinaryWriter} writer
1565
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1566
+ */
1567
+ proto.GetListNotificationEmployeeRes.serializeBinaryToWriter = function(message, writer) {
1568
+ var f = undefined;
1569
+ f = message.getDataList();
1570
+ if (f.length > 0) {
1571
+ writer.writeRepeatedMessage(
1572
+ 1,
1573
+ f,
1574
+ proto.NotificationEmployeeItem.serializeBinaryToWriter
1575
+ );
1576
+ }
1577
+ f = message.getMeta();
1578
+ if (f != null) {
1579
+ writer.writeMessage(
1580
+ 2,
1581
+ f,
1582
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
1583
+ );
1584
+ }
1585
+ };
1586
+
1587
+
1588
+ /**
1589
+ * repeated NotificationEmployeeItem data = 1;
1590
+ * @return {!Array<!proto.NotificationEmployeeItem>}
1591
+ */
1592
+ proto.GetListNotificationEmployeeRes.prototype.getDataList = function() {
1593
+ return /** @type{!Array<!proto.NotificationEmployeeItem>} */ (
1594
+ jspb.Message.getRepeatedWrapperField(this, proto.NotificationEmployeeItem, 1));
1595
+ };
1596
+
1597
+
1598
+ /**
1599
+ * @param {!Array<!proto.NotificationEmployeeItem>} value
1600
+ * @return {!proto.GetListNotificationEmployeeRes} returns this
1601
+ */
1602
+ proto.GetListNotificationEmployeeRes.prototype.setDataList = function(value) {
1603
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
1604
+ };
1605
+
1606
+
1607
+ /**
1608
+ * @param {!proto.NotificationEmployeeItem=} opt_value
1609
+ * @param {number=} opt_index
1610
+ * @return {!proto.NotificationEmployeeItem}
1611
+ */
1612
+ proto.GetListNotificationEmployeeRes.prototype.addData = function(opt_value, opt_index) {
1613
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.NotificationEmployeeItem, opt_index);
1614
+ };
1615
+
1616
+
1617
+ /**
1618
+ * Clears the list making it empty but non-null.
1619
+ * @return {!proto.GetListNotificationEmployeeRes} returns this
1620
+ */
1621
+ proto.GetListNotificationEmployeeRes.prototype.clearDataList = function() {
1622
+ return this.setDataList([]);
1623
+ };
1624
+
1625
+
1626
+ /**
1627
+ * optional prisca.v1.global.meta.Meta meta = 2;
1628
+ * @return {?proto.prisca.v1.global.meta.Meta}
1629
+ */
1630
+ proto.GetListNotificationEmployeeRes.prototype.getMeta = function() {
1631
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
1632
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
1633
+ };
1634
+
1635
+
1636
+ /**
1637
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
1638
+ * @return {!proto.GetListNotificationEmployeeRes} returns this
1639
+ */
1640
+ proto.GetListNotificationEmployeeRes.prototype.setMeta = function(value) {
1641
+ return jspb.Message.setWrapperField(this, 2, value);
1642
+ };
1643
+
1644
+
1645
+ /**
1646
+ * Clears the message field making it undefined.
1647
+ * @return {!proto.GetListNotificationEmployeeRes} returns this
1648
+ */
1649
+ proto.GetListNotificationEmployeeRes.prototype.clearMeta = function() {
1650
+ return this.setMeta(undefined);
1651
+ };
1652
+
1653
+
1654
+ /**
1655
+ * Returns whether this field is set.
1656
+ * @return {boolean}
1657
+ */
1658
+ proto.GetListNotificationEmployeeRes.prototype.hasMeta = function() {
1659
+ return jspb.Message.getField(this, 2) != null;
1660
+ };
1661
+
1662
+
1663
+
1664
+ /**
1665
+ * List of repeated fields within this message type.
1666
+ * @private {!Array<number>}
1667
+ * @const
1668
+ */
1669
+ proto.CreateNotificationReq.repeatedFields_ = [3];
1670
+
1671
+
1672
+
1673
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1674
+ /**
1675
+ * Creates an object representation of this proto.
1676
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1677
+ * Optional fields that are not set will be set to undefined.
1678
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1679
+ * For the list of reserved names please see:
1680
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1681
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1682
+ * JSPB instance for transitional soy proto support:
1683
+ * http://goto/soy-param-migration
1684
+ * @return {!Object}
1685
+ */
1686
+ proto.CreateNotificationReq.prototype.toObject = function(opt_includeInstance) {
1687
+ return proto.CreateNotificationReq.toObject(opt_includeInstance, this);
1688
+ };
1689
+
1690
+
1691
+ /**
1692
+ * Static version of the {@see toObject} method.
1693
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1694
+ * the JSPB instance for transitional soy proto support:
1695
+ * http://goto/soy-param-migration
1696
+ * @param {!proto.CreateNotificationReq} msg The msg instance to transform.
1697
+ * @return {!Object}
1698
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1699
+ */
1700
+ proto.CreateNotificationReq.toObject = function(includeInstance, msg) {
1701
+ var f, obj = {
1702
+ message: jspb.Message.getFieldWithDefault(msg, 1, ""),
1703
+ type: jspb.Message.getFieldWithDefault(msg, 2, ""),
1704
+ receiversList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
1705
+ };
1706
+
1707
+ if (includeInstance) {
1708
+ obj.$jspbMessageInstance = msg;
1709
+ }
1710
+ return obj;
1711
+ };
1712
+ }
1713
+
1714
+
1715
+ /**
1716
+ * Deserializes binary data (in protobuf wire format).
1717
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1718
+ * @return {!proto.CreateNotificationReq}
1719
+ */
1720
+ proto.CreateNotificationReq.deserializeBinary = function(bytes) {
1721
+ var reader = new jspb.BinaryReader(bytes);
1722
+ var msg = new proto.CreateNotificationReq;
1723
+ return proto.CreateNotificationReq.deserializeBinaryFromReader(msg, reader);
1724
+ };
1725
+
1726
+
1727
+ /**
1728
+ * Deserializes binary data (in protobuf wire format) from the
1729
+ * given reader into the given message object.
1730
+ * @param {!proto.CreateNotificationReq} msg The message object to deserialize into.
1731
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1732
+ * @return {!proto.CreateNotificationReq}
1733
+ */
1734
+ proto.CreateNotificationReq.deserializeBinaryFromReader = function(msg, reader) {
1735
+ while (reader.nextField()) {
1736
+ if (reader.isEndGroup()) {
1737
+ break;
1738
+ }
1739
+ var field = reader.getFieldNumber();
1740
+ switch (field) {
1741
+ case 1:
1742
+ var value = /** @type {string} */ (reader.readString());
1743
+ msg.setMessage(value);
1744
+ break;
1745
+ case 2:
1746
+ var value = /** @type {string} */ (reader.readString());
1747
+ msg.setType(value);
1748
+ break;
1749
+ case 3:
1750
+ var value = /** @type {string} */ (reader.readString());
1751
+ msg.addReceivers(value);
1752
+ break;
1753
+ default:
1754
+ reader.skipField();
1755
+ break;
1756
+ }
1757
+ }
1758
+ return msg;
1759
+ };
1760
+
1761
+
1762
+ /**
1763
+ * Serializes the message to binary data (in protobuf wire format).
1764
+ * @return {!Uint8Array}
1765
+ */
1766
+ proto.CreateNotificationReq.prototype.serializeBinary = function() {
1767
+ var writer = new jspb.BinaryWriter();
1768
+ proto.CreateNotificationReq.serializeBinaryToWriter(this, writer);
1769
+ return writer.getResultBuffer();
1770
+ };
1771
+
1772
+
1773
+ /**
1774
+ * Serializes the given message to binary data (in protobuf wire
1775
+ * format), writing to the given BinaryWriter.
1776
+ * @param {!proto.CreateNotificationReq} message
1777
+ * @param {!jspb.BinaryWriter} writer
1778
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1779
+ */
1780
+ proto.CreateNotificationReq.serializeBinaryToWriter = function(message, writer) {
1781
+ var f = undefined;
1782
+ f = message.getMessage();
1783
+ if (f.length > 0) {
1784
+ writer.writeString(
1785
+ 1,
1786
+ f
1787
+ );
1788
+ }
1789
+ f = message.getType();
1790
+ if (f.length > 0) {
1791
+ writer.writeString(
1792
+ 2,
1793
+ f
1794
+ );
1795
+ }
1796
+ f = message.getReceiversList();
1797
+ if (f.length > 0) {
1798
+ writer.writeRepeatedString(
1799
+ 3,
1800
+ f
1801
+ );
1802
+ }
1803
+ };
1804
+
1805
+
1806
+ /**
1807
+ * optional string message = 1;
1808
+ * @return {string}
1809
+ */
1810
+ proto.CreateNotificationReq.prototype.getMessage = function() {
1811
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1812
+ };
1813
+
1814
+
1815
+ /**
1816
+ * @param {string} value
1817
+ * @return {!proto.CreateNotificationReq} returns this
1818
+ */
1819
+ proto.CreateNotificationReq.prototype.setMessage = function(value) {
1820
+ return jspb.Message.setProto3StringField(this, 1, value);
1821
+ };
1822
+
1823
+
1824
+ /**
1825
+ * optional string type = 2;
1826
+ * @return {string}
1827
+ */
1828
+ proto.CreateNotificationReq.prototype.getType = function() {
1829
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1830
+ };
1831
+
1832
+
1833
+ /**
1834
+ * @param {string} value
1835
+ * @return {!proto.CreateNotificationReq} returns this
1836
+ */
1837
+ proto.CreateNotificationReq.prototype.setType = function(value) {
1838
+ return jspb.Message.setProto3StringField(this, 2, value);
1839
+ };
1840
+
1841
+
1842
+ /**
1843
+ * repeated string receivers = 3;
1844
+ * @return {!Array<string>}
1845
+ */
1846
+ proto.CreateNotificationReq.prototype.getReceiversList = function() {
1847
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
1848
+ };
1849
+
1850
+
1851
+ /**
1852
+ * @param {!Array<string>} value
1853
+ * @return {!proto.CreateNotificationReq} returns this
1854
+ */
1855
+ proto.CreateNotificationReq.prototype.setReceiversList = function(value) {
1856
+ return jspb.Message.setField(this, 3, value || []);
1857
+ };
1858
+
1859
+
1860
+ /**
1861
+ * @param {string} value
1862
+ * @param {number=} opt_index
1863
+ * @return {!proto.CreateNotificationReq} returns this
1864
+ */
1865
+ proto.CreateNotificationReq.prototype.addReceivers = function(value, opt_index) {
1866
+ return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
1867
+ };
1868
+
1869
+
1870
+ /**
1871
+ * Clears the list making it empty but non-null.
1872
+ * @return {!proto.CreateNotificationReq} returns this
1873
+ */
1874
+ proto.CreateNotificationReq.prototype.clearReceiversList = function() {
1875
+ return this.setReceiversList([]);
1876
+ };
1877
+
1878
+
1879
+
1880
+
1881
+
1882
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1883
+ /**
1884
+ * Creates an object representation of this proto.
1885
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1886
+ * Optional fields that are not set will be set to undefined.
1887
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1888
+ * For the list of reserved names please see:
1889
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1890
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1891
+ * JSPB instance for transitional soy proto support:
1892
+ * http://goto/soy-param-migration
1893
+ * @return {!Object}
1894
+ */
1895
+ proto.CreateNotificationRes.prototype.toObject = function(opt_includeInstance) {
1896
+ return proto.CreateNotificationRes.toObject(opt_includeInstance, this);
1897
+ };
1898
+
1899
+
1900
+ /**
1901
+ * Static version of the {@see toObject} method.
1902
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1903
+ * the JSPB instance for transitional soy proto support:
1904
+ * http://goto/soy-param-migration
1905
+ * @param {!proto.CreateNotificationRes} msg The msg instance to transform.
1906
+ * @return {!Object}
1907
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1908
+ */
1909
+ proto.CreateNotificationRes.toObject = function(includeInstance, msg) {
1910
+ var f, obj = {
1911
+ notification: (f = msg.getNotification()) && proto.Notification.toObject(includeInstance, f)
1912
+ };
1913
+
1914
+ if (includeInstance) {
1915
+ obj.$jspbMessageInstance = msg;
1916
+ }
1917
+ return obj;
1918
+ };
1919
+ }
1920
+
1921
+
1922
+ /**
1923
+ * Deserializes binary data (in protobuf wire format).
1924
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1925
+ * @return {!proto.CreateNotificationRes}
1926
+ */
1927
+ proto.CreateNotificationRes.deserializeBinary = function(bytes) {
1928
+ var reader = new jspb.BinaryReader(bytes);
1929
+ var msg = new proto.CreateNotificationRes;
1930
+ return proto.CreateNotificationRes.deserializeBinaryFromReader(msg, reader);
1931
+ };
1932
+
1933
+
1934
+ /**
1935
+ * Deserializes binary data (in protobuf wire format) from the
1936
+ * given reader into the given message object.
1937
+ * @param {!proto.CreateNotificationRes} msg The message object to deserialize into.
1938
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1939
+ * @return {!proto.CreateNotificationRes}
1940
+ */
1941
+ proto.CreateNotificationRes.deserializeBinaryFromReader = function(msg, reader) {
1942
+ while (reader.nextField()) {
1943
+ if (reader.isEndGroup()) {
1944
+ break;
1945
+ }
1946
+ var field = reader.getFieldNumber();
1947
+ switch (field) {
1948
+ case 1:
1949
+ var value = new proto.Notification;
1950
+ reader.readMessage(value,proto.Notification.deserializeBinaryFromReader);
1951
+ msg.setNotification(value);
1952
+ break;
1953
+ default:
1954
+ reader.skipField();
1955
+ break;
1956
+ }
1957
+ }
1958
+ return msg;
1959
+ };
1960
+
1961
+
1962
+ /**
1963
+ * Serializes the message to binary data (in protobuf wire format).
1964
+ * @return {!Uint8Array}
1965
+ */
1966
+ proto.CreateNotificationRes.prototype.serializeBinary = function() {
1967
+ var writer = new jspb.BinaryWriter();
1968
+ proto.CreateNotificationRes.serializeBinaryToWriter(this, writer);
1969
+ return writer.getResultBuffer();
1970
+ };
1971
+
1972
+
1973
+ /**
1974
+ * Serializes the given message to binary data (in protobuf wire
1975
+ * format), writing to the given BinaryWriter.
1976
+ * @param {!proto.CreateNotificationRes} message
1977
+ * @param {!jspb.BinaryWriter} writer
1978
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1979
+ */
1980
+ proto.CreateNotificationRes.serializeBinaryToWriter = function(message, writer) {
1981
+ var f = undefined;
1982
+ f = message.getNotification();
1983
+ if (f != null) {
1984
+ writer.writeMessage(
1985
+ 1,
1986
+ f,
1987
+ proto.Notification.serializeBinaryToWriter
1988
+ );
1989
+ }
1990
+ };
1991
+
1992
+
1993
+ /**
1994
+ * optional Notification notification = 1;
1995
+ * @return {?proto.Notification}
1996
+ */
1997
+ proto.CreateNotificationRes.prototype.getNotification = function() {
1998
+ return /** @type{?proto.Notification} */ (
1999
+ jspb.Message.getWrapperField(this, proto.Notification, 1));
2000
+ };
2001
+
2002
+
2003
+ /**
2004
+ * @param {?proto.Notification|undefined} value
2005
+ * @return {!proto.CreateNotificationRes} returns this
2006
+ */
2007
+ proto.CreateNotificationRes.prototype.setNotification = function(value) {
2008
+ return jspb.Message.setWrapperField(this, 1, value);
2009
+ };
2010
+
2011
+
2012
+ /**
2013
+ * Clears the message field making it undefined.
2014
+ * @return {!proto.CreateNotificationRes} returns this
2015
+ */
2016
+ proto.CreateNotificationRes.prototype.clearNotification = function() {
2017
+ return this.setNotification(undefined);
2018
+ };
2019
+
2020
+
2021
+ /**
2022
+ * Returns whether this field is set.
2023
+ * @return {boolean}
2024
+ */
2025
+ proto.CreateNotificationRes.prototype.hasNotification = function() {
2026
+ return jspb.Message.getField(this, 1) != null;
2027
+ };
2028
+
2029
+
2030
+
2031
+ /**
2032
+ * List of repeated fields within this message type.
2033
+ * @private {!Array<number>}
2034
+ * @const
2035
+ */
2036
+ proto.ReferenceIds.repeatedFields_ = [1];
2037
+
2038
+
2039
+
2040
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2041
+ /**
2042
+ * Creates an object representation of this proto.
2043
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2044
+ * Optional fields that are not set will be set to undefined.
2045
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2046
+ * For the list of reserved names please see:
2047
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2048
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2049
+ * JSPB instance for transitional soy proto support:
2050
+ * http://goto/soy-param-migration
2051
+ * @return {!Object}
2052
+ */
2053
+ proto.ReferenceIds.prototype.toObject = function(opt_includeInstance) {
2054
+ return proto.ReferenceIds.toObject(opt_includeInstance, this);
2055
+ };
2056
+
2057
+
2058
+ /**
2059
+ * Static version of the {@see toObject} method.
2060
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2061
+ * the JSPB instance for transitional soy proto support:
2062
+ * http://goto/soy-param-migration
2063
+ * @param {!proto.ReferenceIds} msg The msg instance to transform.
2064
+ * @return {!Object}
2065
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2066
+ */
2067
+ proto.ReferenceIds.toObject = function(includeInstance, msg) {
2068
+ var f, obj = {
2069
+ referenceIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
2070
+ };
2071
+
2072
+ if (includeInstance) {
2073
+ obj.$jspbMessageInstance = msg;
2074
+ }
2075
+ return obj;
2076
+ };
2077
+ }
2078
+
2079
+
2080
+ /**
2081
+ * Deserializes binary data (in protobuf wire format).
2082
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2083
+ * @return {!proto.ReferenceIds}
2084
+ */
2085
+ proto.ReferenceIds.deserializeBinary = function(bytes) {
2086
+ var reader = new jspb.BinaryReader(bytes);
2087
+ var msg = new proto.ReferenceIds;
2088
+ return proto.ReferenceIds.deserializeBinaryFromReader(msg, reader);
2089
+ };
2090
+
2091
+
2092
+ /**
2093
+ * Deserializes binary data (in protobuf wire format) from the
2094
+ * given reader into the given message object.
2095
+ * @param {!proto.ReferenceIds} msg The message object to deserialize into.
2096
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2097
+ * @return {!proto.ReferenceIds}
2098
+ */
2099
+ proto.ReferenceIds.deserializeBinaryFromReader = function(msg, reader) {
2100
+ while (reader.nextField()) {
2101
+ if (reader.isEndGroup()) {
2102
+ break;
2103
+ }
2104
+ var field = reader.getFieldNumber();
2105
+ switch (field) {
2106
+ case 1:
2107
+ var value = /** @type {string} */ (reader.readString());
2108
+ msg.addReferenceIds(value);
2109
+ break;
2110
+ default:
2111
+ reader.skipField();
2112
+ break;
2113
+ }
2114
+ }
2115
+ return msg;
2116
+ };
2117
+
2118
+
2119
+ /**
2120
+ * Serializes the message to binary data (in protobuf wire format).
2121
+ * @return {!Uint8Array}
2122
+ */
2123
+ proto.ReferenceIds.prototype.serializeBinary = function() {
2124
+ var writer = new jspb.BinaryWriter();
2125
+ proto.ReferenceIds.serializeBinaryToWriter(this, writer);
2126
+ return writer.getResultBuffer();
2127
+ };
2128
+
2129
+
2130
+ /**
2131
+ * Serializes the given message to binary data (in protobuf wire
2132
+ * format), writing to the given BinaryWriter.
2133
+ * @param {!proto.ReferenceIds} message
2134
+ * @param {!jspb.BinaryWriter} writer
2135
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2136
+ */
2137
+ proto.ReferenceIds.serializeBinaryToWriter = function(message, writer) {
2138
+ var f = undefined;
2139
+ f = message.getReferenceIdsList();
2140
+ if (f.length > 0) {
2141
+ writer.writeRepeatedString(
2142
+ 1,
2143
+ f
2144
+ );
2145
+ }
2146
+ };
2147
+
2148
+
2149
+ /**
2150
+ * repeated string reference_ids = 1;
2151
+ * @return {!Array<string>}
2152
+ */
2153
+ proto.ReferenceIds.prototype.getReferenceIdsList = function() {
2154
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
2155
+ };
2156
+
2157
+
2158
+ /**
2159
+ * @param {!Array<string>} value
2160
+ * @return {!proto.ReferenceIds} returns this
2161
+ */
2162
+ proto.ReferenceIds.prototype.setReferenceIdsList = function(value) {
2163
+ return jspb.Message.setField(this, 1, value || []);
2164
+ };
2165
+
2166
+
2167
+ /**
2168
+ * @param {string} value
2169
+ * @param {number=} opt_index
2170
+ * @return {!proto.ReferenceIds} returns this
2171
+ */
2172
+ proto.ReferenceIds.prototype.addReferenceIds = function(value, opt_index) {
2173
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
2174
+ };
2175
+
2176
+
2177
+ /**
2178
+ * Clears the list making it empty but non-null.
2179
+ * @return {!proto.ReferenceIds} returns this
2180
+ */
2181
+ proto.ReferenceIds.prototype.clearReferenceIdsList = function() {
2182
+ return this.setReferenceIdsList([]);
2183
+ };
2184
+
2185
+
2186
+
2187
+
2188
+
2189
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2190
+ /**
2191
+ * Creates an object representation of this proto.
2192
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2193
+ * Optional fields that are not set will be set to undefined.
2194
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2195
+ * For the list of reserved names please see:
2196
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2197
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2198
+ * JSPB instance for transitional soy proto support:
2199
+ * http://goto/soy-param-migration
2200
+ * @return {!Object}
2201
+ */
2202
+ proto.EmptyMessage.prototype.toObject = function(opt_includeInstance) {
2203
+ return proto.EmptyMessage.toObject(opt_includeInstance, this);
2204
+ };
2205
+
2206
+
2207
+ /**
2208
+ * Static version of the {@see toObject} method.
2209
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2210
+ * the JSPB instance for transitional soy proto support:
2211
+ * http://goto/soy-param-migration
2212
+ * @param {!proto.EmptyMessage} msg The msg instance to transform.
2213
+ * @return {!Object}
2214
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2215
+ */
2216
+ proto.EmptyMessage.toObject = function(includeInstance, msg) {
2217
+ var f, obj = {
2218
+
2219
+ };
2220
+
2221
+ if (includeInstance) {
2222
+ obj.$jspbMessageInstance = msg;
2223
+ }
2224
+ return obj;
2225
+ };
2226
+ }
2227
+
2228
+
2229
+ /**
2230
+ * Deserializes binary data (in protobuf wire format).
2231
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2232
+ * @return {!proto.EmptyMessage}
2233
+ */
2234
+ proto.EmptyMessage.deserializeBinary = function(bytes) {
2235
+ var reader = new jspb.BinaryReader(bytes);
2236
+ var msg = new proto.EmptyMessage;
2237
+ return proto.EmptyMessage.deserializeBinaryFromReader(msg, reader);
2238
+ };
2239
+
2240
+
2241
+ /**
2242
+ * Deserializes binary data (in protobuf wire format) from the
2243
+ * given reader into the given message object.
2244
+ * @param {!proto.EmptyMessage} msg The message object to deserialize into.
2245
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2246
+ * @return {!proto.EmptyMessage}
2247
+ */
2248
+ proto.EmptyMessage.deserializeBinaryFromReader = function(msg, reader) {
2249
+ while (reader.nextField()) {
2250
+ if (reader.isEndGroup()) {
2251
+ break;
2252
+ }
2253
+ var field = reader.getFieldNumber();
2254
+ switch (field) {
2255
+ default:
2256
+ reader.skipField();
2257
+ break;
2258
+ }
2259
+ }
2260
+ return msg;
2261
+ };
2262
+
2263
+
2264
+ /**
2265
+ * Serializes the message to binary data (in protobuf wire format).
2266
+ * @return {!Uint8Array}
2267
+ */
2268
+ proto.EmptyMessage.prototype.serializeBinary = function() {
2269
+ var writer = new jspb.BinaryWriter();
2270
+ proto.EmptyMessage.serializeBinaryToWriter(this, writer);
2271
+ return writer.getResultBuffer();
2272
+ };
2273
+
2274
+
2275
+ /**
2276
+ * Serializes the given message to binary data (in protobuf wire
2277
+ * format), writing to the given BinaryWriter.
2278
+ * @param {!proto.EmptyMessage} message
2279
+ * @param {!jspb.BinaryWriter} writer
2280
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2281
+ */
2282
+ proto.EmptyMessage.serializeBinaryToWriter = function(message, writer) {
2283
+ var f = undefined;
2284
+ };
2285
+
2286
+
2287
+
2288
+
2289
+
2290
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2291
+ /**
2292
+ * Creates an object representation of this proto.
2293
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2294
+ * Optional fields that are not set will be set to undefined.
2295
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2296
+ * For the list of reserved names please see:
2297
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2298
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2299
+ * JSPB instance for transitional soy proto support:
2300
+ * http://goto/soy-param-migration
2301
+ * @return {!Object}
2302
+ */
2303
+ proto.ReferenceId.prototype.toObject = function(opt_includeInstance) {
2304
+ return proto.ReferenceId.toObject(opt_includeInstance, this);
2305
+ };
2306
+
2307
+
2308
+ /**
2309
+ * Static version of the {@see toObject} method.
2310
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2311
+ * the JSPB instance for transitional soy proto support:
2312
+ * http://goto/soy-param-migration
2313
+ * @param {!proto.ReferenceId} msg The msg instance to transform.
2314
+ * @return {!Object}
2315
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2316
+ */
2317
+ proto.ReferenceId.toObject = function(includeInstance, msg) {
2318
+ var f, obj = {
2319
+ referenceId: jspb.Message.getFieldWithDefault(msg, 1, "")
2320
+ };
2321
+
2322
+ if (includeInstance) {
2323
+ obj.$jspbMessageInstance = msg;
2324
+ }
2325
+ return obj;
2326
+ };
2327
+ }
2328
+
2329
+
2330
+ /**
2331
+ * Deserializes binary data (in protobuf wire format).
2332
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2333
+ * @return {!proto.ReferenceId}
2334
+ */
2335
+ proto.ReferenceId.deserializeBinary = function(bytes) {
2336
+ var reader = new jspb.BinaryReader(bytes);
2337
+ var msg = new proto.ReferenceId;
2338
+ return proto.ReferenceId.deserializeBinaryFromReader(msg, reader);
2339
+ };
2340
+
2341
+
2342
+ /**
2343
+ * Deserializes binary data (in protobuf wire format) from the
2344
+ * given reader into the given message object.
2345
+ * @param {!proto.ReferenceId} msg The message object to deserialize into.
2346
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2347
+ * @return {!proto.ReferenceId}
2348
+ */
2349
+ proto.ReferenceId.deserializeBinaryFromReader = function(msg, reader) {
2350
+ while (reader.nextField()) {
2351
+ if (reader.isEndGroup()) {
2352
+ break;
2353
+ }
2354
+ var field = reader.getFieldNumber();
2355
+ switch (field) {
2356
+ case 1:
2357
+ var value = /** @type {string} */ (reader.readString());
2358
+ msg.setReferenceId(value);
2359
+ break;
2360
+ default:
2361
+ reader.skipField();
2362
+ break;
2363
+ }
2364
+ }
2365
+ return msg;
2366
+ };
2367
+
2368
+
2369
+ /**
2370
+ * Serializes the message to binary data (in protobuf wire format).
2371
+ * @return {!Uint8Array}
2372
+ */
2373
+ proto.ReferenceId.prototype.serializeBinary = function() {
2374
+ var writer = new jspb.BinaryWriter();
2375
+ proto.ReferenceId.serializeBinaryToWriter(this, writer);
2376
+ return writer.getResultBuffer();
2377
+ };
2378
+
2379
+
2380
+ /**
2381
+ * Serializes the given message to binary data (in protobuf wire
2382
+ * format), writing to the given BinaryWriter.
2383
+ * @param {!proto.ReferenceId} message
2384
+ * @param {!jspb.BinaryWriter} writer
2385
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2386
+ */
2387
+ proto.ReferenceId.serializeBinaryToWriter = function(message, writer) {
2388
+ var f = undefined;
2389
+ f = message.getReferenceId();
2390
+ if (f.length > 0) {
2391
+ writer.writeString(
2392
+ 1,
2393
+ f
2394
+ );
2395
+ }
2396
+ };
2397
+
2398
+
2399
+ /**
2400
+ * optional string reference_id = 1;
2401
+ * @return {string}
2402
+ */
2403
+ proto.ReferenceId.prototype.getReferenceId = function() {
2404
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
2405
+ };
2406
+
2407
+
2408
+ /**
2409
+ * @param {string} value
2410
+ * @return {!proto.ReferenceId} returns this
2411
+ */
2412
+ proto.ReferenceId.prototype.setReferenceId = function(value) {
2413
+ return jspb.Message.setProto3StringField(this, 1, value);
2414
+ };
2415
+
2416
+
2417
+
2418
+ /**
2419
+ * List of repeated fields within this message type.
2420
+ * @private {!Array<number>}
2421
+ * @const
2422
+ */
2423
+ proto.DeleteNotificationEmployeeReq.repeatedFields_ = [1];
2424
+
2425
+
2426
+
2427
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2428
+ /**
2429
+ * Creates an object representation of this proto.
2430
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2431
+ * Optional fields that are not set will be set to undefined.
2432
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2433
+ * For the list of reserved names please see:
2434
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2435
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2436
+ * JSPB instance for transitional soy proto support:
2437
+ * http://goto/soy-param-migration
2438
+ * @return {!Object}
2439
+ */
2440
+ proto.DeleteNotificationEmployeeReq.prototype.toObject = function(opt_includeInstance) {
2441
+ return proto.DeleteNotificationEmployeeReq.toObject(opt_includeInstance, this);
2442
+ };
2443
+
2444
+
2445
+ /**
2446
+ * Static version of the {@see toObject} method.
2447
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2448
+ * the JSPB instance for transitional soy proto support:
2449
+ * http://goto/soy-param-migration
2450
+ * @param {!proto.DeleteNotificationEmployeeReq} msg The msg instance to transform.
2451
+ * @return {!Object}
2452
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2453
+ */
2454
+ proto.DeleteNotificationEmployeeReq.toObject = function(includeInstance, msg) {
2455
+ var f, obj = {
2456
+ referenceIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f
2457
+ };
2458
+
2459
+ if (includeInstance) {
2460
+ obj.$jspbMessageInstance = msg;
2461
+ }
2462
+ return obj;
2463
+ };
2464
+ }
2465
+
2466
+
2467
+ /**
2468
+ * Deserializes binary data (in protobuf wire format).
2469
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2470
+ * @return {!proto.DeleteNotificationEmployeeReq}
2471
+ */
2472
+ proto.DeleteNotificationEmployeeReq.deserializeBinary = function(bytes) {
2473
+ var reader = new jspb.BinaryReader(bytes);
2474
+ var msg = new proto.DeleteNotificationEmployeeReq;
2475
+ return proto.DeleteNotificationEmployeeReq.deserializeBinaryFromReader(msg, reader);
2476
+ };
2477
+
2478
+
2479
+ /**
2480
+ * Deserializes binary data (in protobuf wire format) from the
2481
+ * given reader into the given message object.
2482
+ * @param {!proto.DeleteNotificationEmployeeReq} msg The message object to deserialize into.
2483
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2484
+ * @return {!proto.DeleteNotificationEmployeeReq}
2485
+ */
2486
+ proto.DeleteNotificationEmployeeReq.deserializeBinaryFromReader = function(msg, reader) {
2487
+ while (reader.nextField()) {
2488
+ if (reader.isEndGroup()) {
2489
+ break;
2490
+ }
2491
+ var field = reader.getFieldNumber();
2492
+ switch (field) {
2493
+ case 1:
2494
+ var value = /** @type {string} */ (reader.readString());
2495
+ msg.addReferenceIds(value);
2496
+ break;
2497
+ default:
2498
+ reader.skipField();
2499
+ break;
2500
+ }
2501
+ }
2502
+ return msg;
2503
+ };
2504
+
2505
+
2506
+ /**
2507
+ * Serializes the message to binary data (in protobuf wire format).
2508
+ * @return {!Uint8Array}
2509
+ */
2510
+ proto.DeleteNotificationEmployeeReq.prototype.serializeBinary = function() {
2511
+ var writer = new jspb.BinaryWriter();
2512
+ proto.DeleteNotificationEmployeeReq.serializeBinaryToWriter(this, writer);
2513
+ return writer.getResultBuffer();
2514
+ };
2515
+
2516
+
2517
+ /**
2518
+ * Serializes the given message to binary data (in protobuf wire
2519
+ * format), writing to the given BinaryWriter.
2520
+ * @param {!proto.DeleteNotificationEmployeeReq} message
2521
+ * @param {!jspb.BinaryWriter} writer
2522
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2523
+ */
2524
+ proto.DeleteNotificationEmployeeReq.serializeBinaryToWriter = function(message, writer) {
2525
+ var f = undefined;
2526
+ f = message.getReferenceIdsList();
2527
+ if (f.length > 0) {
2528
+ writer.writeRepeatedString(
2529
+ 1,
2530
+ f
2531
+ );
2532
+ }
2533
+ };
2534
+
2535
+
2536
+ /**
2537
+ * repeated string reference_ids = 1;
2538
+ * @return {!Array<string>}
2539
+ */
2540
+ proto.DeleteNotificationEmployeeReq.prototype.getReferenceIdsList = function() {
2541
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
2542
+ };
2543
+
2544
+
2545
+ /**
2546
+ * @param {!Array<string>} value
2547
+ * @return {!proto.DeleteNotificationEmployeeReq} returns this
2548
+ */
2549
+ proto.DeleteNotificationEmployeeReq.prototype.setReferenceIdsList = function(value) {
2550
+ return jspb.Message.setField(this, 1, value || []);
2551
+ };
2552
+
2553
+
2554
+ /**
2555
+ * @param {string} value
2556
+ * @param {number=} opt_index
2557
+ * @return {!proto.DeleteNotificationEmployeeReq} returns this
2558
+ */
2559
+ proto.DeleteNotificationEmployeeReq.prototype.addReferenceIds = function(value, opt_index) {
2560
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
2561
+ };
2562
+
2563
+
2564
+ /**
2565
+ * Clears the list making it empty but non-null.
2566
+ * @return {!proto.DeleteNotificationEmployeeReq} returns this
2567
+ */
2568
+ proto.DeleteNotificationEmployeeReq.prototype.clearReferenceIdsList = function() {
2569
+ return this.setReferenceIdsList([]);
2570
+ };
2571
+
2572
+
2573
+
2574
+ /**
2575
+ * List of repeated fields within this message type.
2576
+ * @private {!Array<number>}
2577
+ * @const
2578
+ */
2579
+ proto.DeleteNotificationEmployeeRes.repeatedFields_ = [1];
2580
+
2581
+
2582
+
2583
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2584
+ /**
2585
+ * Creates an object representation of this proto.
2586
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2587
+ * Optional fields that are not set will be set to undefined.
2588
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2589
+ * For the list of reserved names please see:
2590
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2591
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2592
+ * JSPB instance for transitional soy proto support:
2593
+ * http://goto/soy-param-migration
2594
+ * @return {!Object}
2595
+ */
2596
+ proto.DeleteNotificationEmployeeRes.prototype.toObject = function(opt_includeInstance) {
2597
+ return proto.DeleteNotificationEmployeeRes.toObject(opt_includeInstance, this);
2598
+ };
2599
+
2600
+
2601
+ /**
2602
+ * Static version of the {@see toObject} method.
2603
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2604
+ * the JSPB instance for transitional soy proto support:
2605
+ * http://goto/soy-param-migration
2606
+ * @param {!proto.DeleteNotificationEmployeeRes} msg The msg instance to transform.
2607
+ * @return {!Object}
2608
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2609
+ */
2610
+ proto.DeleteNotificationEmployeeRes.toObject = function(includeInstance, msg) {
2611
+ var f, obj = {
2612
+ referenceIdsList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
2613
+ meta: (f = msg.getMeta()) && prisca_v1_global_meta_meta_pb.Meta.toObject(includeInstance, f)
2614
+ };
2615
+
2616
+ if (includeInstance) {
2617
+ obj.$jspbMessageInstance = msg;
2618
+ }
2619
+ return obj;
2620
+ };
2621
+ }
2622
+
2623
+
2624
+ /**
2625
+ * Deserializes binary data (in protobuf wire format).
2626
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2627
+ * @return {!proto.DeleteNotificationEmployeeRes}
2628
+ */
2629
+ proto.DeleteNotificationEmployeeRes.deserializeBinary = function(bytes) {
2630
+ var reader = new jspb.BinaryReader(bytes);
2631
+ var msg = new proto.DeleteNotificationEmployeeRes;
2632
+ return proto.DeleteNotificationEmployeeRes.deserializeBinaryFromReader(msg, reader);
2633
+ };
2634
+
2635
+
2636
+ /**
2637
+ * Deserializes binary data (in protobuf wire format) from the
2638
+ * given reader into the given message object.
2639
+ * @param {!proto.DeleteNotificationEmployeeRes} msg The message object to deserialize into.
2640
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2641
+ * @return {!proto.DeleteNotificationEmployeeRes}
2642
+ */
2643
+ proto.DeleteNotificationEmployeeRes.deserializeBinaryFromReader = function(msg, reader) {
2644
+ while (reader.nextField()) {
2645
+ if (reader.isEndGroup()) {
2646
+ break;
2647
+ }
2648
+ var field = reader.getFieldNumber();
2649
+ switch (field) {
2650
+ case 1:
2651
+ var value = /** @type {string} */ (reader.readString());
2652
+ msg.addReferenceIds(value);
2653
+ break;
2654
+ case 2:
2655
+ var value = new prisca_v1_global_meta_meta_pb.Meta;
2656
+ reader.readMessage(value,prisca_v1_global_meta_meta_pb.Meta.deserializeBinaryFromReader);
2657
+ msg.setMeta(value);
2658
+ break;
2659
+ default:
2660
+ reader.skipField();
2661
+ break;
2662
+ }
2663
+ }
2664
+ return msg;
2665
+ };
2666
+
2667
+
2668
+ /**
2669
+ * Serializes the message to binary data (in protobuf wire format).
2670
+ * @return {!Uint8Array}
2671
+ */
2672
+ proto.DeleteNotificationEmployeeRes.prototype.serializeBinary = function() {
2673
+ var writer = new jspb.BinaryWriter();
2674
+ proto.DeleteNotificationEmployeeRes.serializeBinaryToWriter(this, writer);
2675
+ return writer.getResultBuffer();
2676
+ };
2677
+
2678
+
2679
+ /**
2680
+ * Serializes the given message to binary data (in protobuf wire
2681
+ * format), writing to the given BinaryWriter.
2682
+ * @param {!proto.DeleteNotificationEmployeeRes} message
2683
+ * @param {!jspb.BinaryWriter} writer
2684
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2685
+ */
2686
+ proto.DeleteNotificationEmployeeRes.serializeBinaryToWriter = function(message, writer) {
2687
+ var f = undefined;
2688
+ f = message.getReferenceIdsList();
2689
+ if (f.length > 0) {
2690
+ writer.writeRepeatedString(
2691
+ 1,
2692
+ f
2693
+ );
2694
+ }
2695
+ f = message.getMeta();
2696
+ if (f != null) {
2697
+ writer.writeMessage(
2698
+ 2,
2699
+ f,
2700
+ prisca_v1_global_meta_meta_pb.Meta.serializeBinaryToWriter
2701
+ );
2702
+ }
2703
+ };
2704
+
2705
+
2706
+ /**
2707
+ * repeated string reference_ids = 1;
2708
+ * @return {!Array<string>}
2709
+ */
2710
+ proto.DeleteNotificationEmployeeRes.prototype.getReferenceIdsList = function() {
2711
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
2712
+ };
2713
+
2714
+
2715
+ /**
2716
+ * @param {!Array<string>} value
2717
+ * @return {!proto.DeleteNotificationEmployeeRes} returns this
2718
+ */
2719
+ proto.DeleteNotificationEmployeeRes.prototype.setReferenceIdsList = function(value) {
2720
+ return jspb.Message.setField(this, 1, value || []);
2721
+ };
2722
+
2723
+
2724
+ /**
2725
+ * @param {string} value
2726
+ * @param {number=} opt_index
2727
+ * @return {!proto.DeleteNotificationEmployeeRes} returns this
2728
+ */
2729
+ proto.DeleteNotificationEmployeeRes.prototype.addReferenceIds = function(value, opt_index) {
2730
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
2731
+ };
2732
+
2733
+
2734
+ /**
2735
+ * Clears the list making it empty but non-null.
2736
+ * @return {!proto.DeleteNotificationEmployeeRes} returns this
2737
+ */
2738
+ proto.DeleteNotificationEmployeeRes.prototype.clearReferenceIdsList = function() {
2739
+ return this.setReferenceIdsList([]);
2740
+ };
2741
+
2742
+
2743
+ /**
2744
+ * optional prisca.v1.global.meta.Meta meta = 2;
2745
+ * @return {?proto.prisca.v1.global.meta.Meta}
2746
+ */
2747
+ proto.DeleteNotificationEmployeeRes.prototype.getMeta = function() {
2748
+ return /** @type{?proto.prisca.v1.global.meta.Meta} */ (
2749
+ jspb.Message.getWrapperField(this, prisca_v1_global_meta_meta_pb.Meta, 2));
2750
+ };
2751
+
2752
+
2753
+ /**
2754
+ * @param {?proto.prisca.v1.global.meta.Meta|undefined} value
2755
+ * @return {!proto.DeleteNotificationEmployeeRes} returns this
2756
+ */
2757
+ proto.DeleteNotificationEmployeeRes.prototype.setMeta = function(value) {
2758
+ return jspb.Message.setWrapperField(this, 2, value);
2759
+ };
2760
+
2761
+
2762
+ /**
2763
+ * Clears the message field making it undefined.
2764
+ * @return {!proto.DeleteNotificationEmployeeRes} returns this
2765
+ */
2766
+ proto.DeleteNotificationEmployeeRes.prototype.clearMeta = function() {
2767
+ return this.setMeta(undefined);
2768
+ };
2769
+
2770
+
2771
+ /**
2772
+ * Returns whether this field is set.
2773
+ * @return {boolean}
2774
+ */
2775
+ proto.DeleteNotificationEmployeeRes.prototype.hasMeta = function() {
2776
+ return jspb.Message.getField(this, 2) != null;
2777
+ };
2778
+
2779
+
2780
+ goog.object.extend(exports, proto);