@ondewo/nlu-client-typescript 4.7.0 → 4.8.0

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 (37) hide show
  1. package/api/ondewo/nlu/agent_grpc_web_pb.d.ts +61 -0
  2. package/api/ondewo/nlu/agent_grpc_web_pb.js +308 -1
  3. package/api/ondewo/nlu/agent_pb.d.ts +222 -1
  4. package/api/ondewo/nlu/agent_pb.js +1814 -30
  5. package/api/ondewo/nlu/ccai_project_grpc_web_pb.d.ts +79 -0
  6. package/api/ondewo/nlu/ccai_project_grpc_web_pb.js +388 -0
  7. package/api/ondewo/nlu/ccai_project_pb.d.ts +582 -0
  8. package/api/ondewo/nlu/ccai_project_pb.js +4137 -0
  9. package/api/ondewo/nlu/common_pb.d.ts +456 -0
  10. package/api/ondewo/nlu/common_pb.js +3523 -4
  11. package/api/ondewo/nlu/context_grpc_web_pb.js +2 -0
  12. package/api/ondewo/nlu/context_pb.d.ts +41 -0
  13. package/api/ondewo/nlu/context_pb.js +328 -2
  14. package/api/ondewo/nlu/entity_type_grpc_web_pb.js +2 -0
  15. package/api/ondewo/nlu/entity_type_pb.d.ts +41 -0
  16. package/api/ondewo/nlu/entity_type_pb.js +328 -2
  17. package/api/ondewo/nlu/intent_pb.d.ts +120 -0
  18. package/api/ondewo/nlu/intent_pb.js +1058 -86
  19. package/api/ondewo/nlu/operation_metadata_pb.d.ts +21 -0
  20. package/api/ondewo/nlu/operation_metadata_pb.js +165 -2
  21. package/api/ondewo/nlu/project_role_grpc_web_pb.js +3 -1
  22. package/api/ondewo/nlu/project_role_pb.d.ts +22 -1
  23. package/api/ondewo/nlu/project_role_pb.js +167 -3
  24. package/api/ondewo/nlu/session_grpc_web_pb.d.ts +109 -0
  25. package/api/ondewo/nlu/session_grpc_web_pb.js +551 -0
  26. package/api/ondewo/nlu/session_pb.d.ts +624 -0
  27. package/api/ondewo/nlu/session_pb.js +10278 -5168
  28. package/api/ondewo/nlu/user_grpc_web_pb.d.ts +85 -0
  29. package/api/ondewo/nlu/user_grpc_web_pb.js +431 -0
  30. package/api/ondewo/nlu/user_pb.d.ts +284 -0
  31. package/api/ondewo/nlu/user_pb.js +3418 -1024
  32. package/api/ondewo/nlu/webhook_grpc_web_pb.d.ts +37 -0
  33. package/api/ondewo/nlu/webhook_grpc_web_pb.js +191 -2
  34. package/api/ondewo/nlu/webhook_pb.d.ts +188 -5
  35. package/api/ondewo/nlu/webhook_pb.js +1530 -34
  36. package/package.json +1 -1
  37. package/public-api.d.ts +27 -25
@@ -15,6 +15,26 @@ var jspb = require('google-protobuf');
15
15
  var goog = jspb;
16
16
  var global = (function() { return this || window || global || self || Function('return this')(); }).call(null);
17
17
 
18
+ var google_protobuf_field_mask_pb = require('google-protobuf/google/protobuf/field_mask_pb.js');
19
+ goog.object.extend(proto, google_protobuf_field_mask_pb);
20
+ var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
21
+ goog.object.extend(proto, google_protobuf_timestamp_pb);
22
+ goog.exportSymbol('proto.ondewo.nlu.AddNotificationsRequest', null, global);
23
+ goog.exportSymbol('proto.ondewo.nlu.AddNotificationsResponse', null, global);
24
+ goog.exportSymbol('proto.ondewo.nlu.Comment', null, global);
25
+ goog.exportSymbol('proto.ondewo.nlu.KeyValuePair', null, global);
26
+ goog.exportSymbol('proto.ondewo.nlu.KeyValuePair.ValueCase', null, global);
27
+ goog.exportSymbol('proto.ondewo.nlu.ListNotificationsRequest', null, global);
28
+ goog.exportSymbol('proto.ondewo.nlu.ListNotificationsResponse', null, global);
29
+ goog.exportSymbol('proto.ondewo.nlu.Notification', null, global);
30
+ goog.exportSymbol('proto.ondewo.nlu.NotificationFilter', null, global);
31
+ goog.exportSymbol('proto.ondewo.nlu.NotificationFlaggedStatus', null, global);
32
+ goog.exportSymbol('proto.ondewo.nlu.NotificationOrigin', null, global);
33
+ goog.exportSymbol('proto.ondewo.nlu.NotificationReadStatus', null, global);
34
+ goog.exportSymbol('proto.ondewo.nlu.NotificationType', null, global);
35
+ goog.exportSymbol('proto.ondewo.nlu.NotificationVisibility', null, global);
36
+ goog.exportSymbol('proto.ondewo.nlu.SetNotificationsFlaggedStatusRequest', null, global);
37
+ goog.exportSymbol('proto.ondewo.nlu.SetNotificationsReadStatusRequest', null, global);
18
38
  goog.exportSymbol('proto.ondewo.nlu.SortingMode', null, global);
19
39
  goog.exportSymbol('proto.ondewo.nlu.StatResponse', null, global);
20
40
  /**
@@ -38,6 +58,216 @@ if (goog.DEBUG && !COMPILED) {
38
58
  */
39
59
  proto.ondewo.nlu.StatResponse.displayName = 'proto.ondewo.nlu.StatResponse';
40
60
  }
61
+ /**
62
+ * Generated by JsPbCodeGenerator.
63
+ * @param {Array=} opt_data Optional initial data array, typically from a
64
+ * server response, or constructed directly in Javascript. The array is used
65
+ * in place and becomes part of the constructed object. It is not cloned.
66
+ * If no data is provided, the constructed object will be empty, but still
67
+ * valid.
68
+ * @extends {jspb.Message}
69
+ * @constructor
70
+ */
71
+ proto.ondewo.nlu.Comment = function(opt_data) {
72
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
73
+ };
74
+ goog.inherits(proto.ondewo.nlu.Comment, jspb.Message);
75
+ if (goog.DEBUG && !COMPILED) {
76
+ /**
77
+ * @public
78
+ * @override
79
+ */
80
+ proto.ondewo.nlu.Comment.displayName = 'proto.ondewo.nlu.Comment';
81
+ }
82
+ /**
83
+ * Generated by JsPbCodeGenerator.
84
+ * @param {Array=} opt_data Optional initial data array, typically from a
85
+ * server response, or constructed directly in Javascript. The array is used
86
+ * in place and becomes part of the constructed object. It is not cloned.
87
+ * If no data is provided, the constructed object will be empty, but still
88
+ * valid.
89
+ * @extends {jspb.Message}
90
+ * @constructor
91
+ */
92
+ proto.ondewo.nlu.Notification = function(opt_data) {
93
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
94
+ };
95
+ goog.inherits(proto.ondewo.nlu.Notification, jspb.Message);
96
+ if (goog.DEBUG && !COMPILED) {
97
+ /**
98
+ * @public
99
+ * @override
100
+ */
101
+ proto.ondewo.nlu.Notification.displayName = 'proto.ondewo.nlu.Notification';
102
+ }
103
+ /**
104
+ * Generated by JsPbCodeGenerator.
105
+ * @param {Array=} opt_data Optional initial data array, typically from a
106
+ * server response, or constructed directly in Javascript. The array is used
107
+ * in place and becomes part of the constructed object. It is not cloned.
108
+ * If no data is provided, the constructed object will be empty, but still
109
+ * valid.
110
+ * @extends {jspb.Message}
111
+ * @constructor
112
+ */
113
+ proto.ondewo.nlu.AddNotificationsRequest = function(opt_data) {
114
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.AddNotificationsRequest.repeatedFields_, null);
115
+ };
116
+ goog.inherits(proto.ondewo.nlu.AddNotificationsRequest, jspb.Message);
117
+ if (goog.DEBUG && !COMPILED) {
118
+ /**
119
+ * @public
120
+ * @override
121
+ */
122
+ proto.ondewo.nlu.AddNotificationsRequest.displayName = 'proto.ondewo.nlu.AddNotificationsRequest';
123
+ }
124
+ /**
125
+ * Generated by JsPbCodeGenerator.
126
+ * @param {Array=} opt_data Optional initial data array, typically from a
127
+ * server response, or constructed directly in Javascript. The array is used
128
+ * in place and becomes part of the constructed object. It is not cloned.
129
+ * If no data is provided, the constructed object will be empty, but still
130
+ * valid.
131
+ * @extends {jspb.Message}
132
+ * @constructor
133
+ */
134
+ proto.ondewo.nlu.AddNotificationsResponse = function(opt_data) {
135
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.AddNotificationsResponse.repeatedFields_, null);
136
+ };
137
+ goog.inherits(proto.ondewo.nlu.AddNotificationsResponse, jspb.Message);
138
+ if (goog.DEBUG && !COMPILED) {
139
+ /**
140
+ * @public
141
+ * @override
142
+ */
143
+ proto.ondewo.nlu.AddNotificationsResponse.displayName = 'proto.ondewo.nlu.AddNotificationsResponse';
144
+ }
145
+ /**
146
+ * Generated by JsPbCodeGenerator.
147
+ * @param {Array=} opt_data Optional initial data array, typically from a
148
+ * server response, or constructed directly in Javascript. The array is used
149
+ * in place and becomes part of the constructed object. It is not cloned.
150
+ * If no data is provided, the constructed object will be empty, but still
151
+ * valid.
152
+ * @extends {jspb.Message}
153
+ * @constructor
154
+ */
155
+ proto.ondewo.nlu.NotificationFilter = function(opt_data) {
156
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.NotificationFilter.repeatedFields_, null);
157
+ };
158
+ goog.inherits(proto.ondewo.nlu.NotificationFilter, jspb.Message);
159
+ if (goog.DEBUG && !COMPILED) {
160
+ /**
161
+ * @public
162
+ * @override
163
+ */
164
+ proto.ondewo.nlu.NotificationFilter.displayName = 'proto.ondewo.nlu.NotificationFilter';
165
+ }
166
+ /**
167
+ * Generated by JsPbCodeGenerator.
168
+ * @param {Array=} opt_data Optional initial data array, typically from a
169
+ * server response, or constructed directly in Javascript. The array is used
170
+ * in place and becomes part of the constructed object. It is not cloned.
171
+ * If no data is provided, the constructed object will be empty, but still
172
+ * valid.
173
+ * @extends {jspb.Message}
174
+ * @constructor
175
+ */
176
+ proto.ondewo.nlu.ListNotificationsRequest = function(opt_data) {
177
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
178
+ };
179
+ goog.inherits(proto.ondewo.nlu.ListNotificationsRequest, jspb.Message);
180
+ if (goog.DEBUG && !COMPILED) {
181
+ /**
182
+ * @public
183
+ * @override
184
+ */
185
+ proto.ondewo.nlu.ListNotificationsRequest.displayName = 'proto.ondewo.nlu.ListNotificationsRequest';
186
+ }
187
+ /**
188
+ * Generated by JsPbCodeGenerator.
189
+ * @param {Array=} opt_data Optional initial data array, typically from a
190
+ * server response, or constructed directly in Javascript. The array is used
191
+ * in place and becomes part of the constructed object. It is not cloned.
192
+ * If no data is provided, the constructed object will be empty, but still
193
+ * valid.
194
+ * @extends {jspb.Message}
195
+ * @constructor
196
+ */
197
+ proto.ondewo.nlu.ListNotificationsResponse = function(opt_data) {
198
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.ListNotificationsResponse.repeatedFields_, null);
199
+ };
200
+ goog.inherits(proto.ondewo.nlu.ListNotificationsResponse, jspb.Message);
201
+ if (goog.DEBUG && !COMPILED) {
202
+ /**
203
+ * @public
204
+ * @override
205
+ */
206
+ proto.ondewo.nlu.ListNotificationsResponse.displayName = 'proto.ondewo.nlu.ListNotificationsResponse';
207
+ }
208
+ /**
209
+ * Generated by JsPbCodeGenerator.
210
+ * @param {Array=} opt_data Optional initial data array, typically from a
211
+ * server response, or constructed directly in Javascript. The array is used
212
+ * in place and becomes part of the constructed object. It is not cloned.
213
+ * If no data is provided, the constructed object will be empty, but still
214
+ * valid.
215
+ * @extends {jspb.Message}
216
+ * @constructor
217
+ */
218
+ proto.ondewo.nlu.SetNotificationsFlaggedStatusRequest = function(opt_data) {
219
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.SetNotificationsFlaggedStatusRequest.repeatedFields_, null);
220
+ };
221
+ goog.inherits(proto.ondewo.nlu.SetNotificationsFlaggedStatusRequest, jspb.Message);
222
+ if (goog.DEBUG && !COMPILED) {
223
+ /**
224
+ * @public
225
+ * @override
226
+ */
227
+ proto.ondewo.nlu.SetNotificationsFlaggedStatusRequest.displayName = 'proto.ondewo.nlu.SetNotificationsFlaggedStatusRequest';
228
+ }
229
+ /**
230
+ * Generated by JsPbCodeGenerator.
231
+ * @param {Array=} opt_data Optional initial data array, typically from a
232
+ * server response, or constructed directly in Javascript. The array is used
233
+ * in place and becomes part of the constructed object. It is not cloned.
234
+ * If no data is provided, the constructed object will be empty, but still
235
+ * valid.
236
+ * @extends {jspb.Message}
237
+ * @constructor
238
+ */
239
+ proto.ondewo.nlu.SetNotificationsReadStatusRequest = function(opt_data) {
240
+ jspb.Message.initialize(this, opt_data, 0, -1, proto.ondewo.nlu.SetNotificationsReadStatusRequest.repeatedFields_, null);
241
+ };
242
+ goog.inherits(proto.ondewo.nlu.SetNotificationsReadStatusRequest, jspb.Message);
243
+ if (goog.DEBUG && !COMPILED) {
244
+ /**
245
+ * @public
246
+ * @override
247
+ */
248
+ proto.ondewo.nlu.SetNotificationsReadStatusRequest.displayName = 'proto.ondewo.nlu.SetNotificationsReadStatusRequest';
249
+ }
250
+ /**
251
+ * Generated by JsPbCodeGenerator.
252
+ * @param {Array=} opt_data Optional initial data array, typically from a
253
+ * server response, or constructed directly in Javascript. The array is used
254
+ * in place and becomes part of the constructed object. It is not cloned.
255
+ * If no data is provided, the constructed object will be empty, but still
256
+ * valid.
257
+ * @extends {jspb.Message}
258
+ * @constructor
259
+ */
260
+ proto.ondewo.nlu.KeyValuePair = function(opt_data) {
261
+ jspb.Message.initialize(this, opt_data, 0, -1, null, proto.ondewo.nlu.KeyValuePair.oneofGroups_);
262
+ };
263
+ goog.inherits(proto.ondewo.nlu.KeyValuePair, jspb.Message);
264
+ if (goog.DEBUG && !COMPILED) {
265
+ /**
266
+ * @public
267
+ * @override
268
+ */
269
+ proto.ondewo.nlu.KeyValuePair.displayName = 'proto.ondewo.nlu.KeyValuePair';
270
+ }
41
271
 
42
272
 
43
273
 
@@ -168,12 +398,3301 @@ proto.ondewo.nlu.StatResponse.prototype.setValue = function(value) {
168
398
  };
169
399
 
170
400
 
401
+
402
+
403
+
404
+ if (jspb.Message.GENERATE_TO_OBJECT) {
171
405
  /**
172
- * @enum {number}
406
+ * Creates an object representation of this proto.
407
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
408
+ * Optional fields that are not set will be set to undefined.
409
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
410
+ * For the list of reserved names please see:
411
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
412
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
413
+ * JSPB instance for transitional soy proto support:
414
+ * http://goto/soy-param-migration
415
+ * @return {!Object}
173
416
  */
174
- proto.ondewo.nlu.SortingMode = {
175
- ASCENDING: 0,
176
- DESCENDING: 1
417
+ proto.ondewo.nlu.Comment.prototype.toObject = function(opt_includeInstance) {
418
+ return proto.ondewo.nlu.Comment.toObject(opt_includeInstance, this);
419
+ };
420
+
421
+
422
+ /**
423
+ * Static version of the {@see toObject} method.
424
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
425
+ * the JSPB instance for transitional soy proto support:
426
+ * http://goto/soy-param-migration
427
+ * @param {!proto.ondewo.nlu.Comment} msg The msg instance to transform.
428
+ * @return {!Object}
429
+ * @suppress {unusedLocalVariables} f is only used for nested messages
430
+ */
431
+ proto.ondewo.nlu.Comment.toObject = function(includeInstance, msg) {
432
+ var f, obj = {
433
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
434
+ text: jspb.Message.getFieldWithDefault(msg, 2, ""),
435
+ userId: jspb.Message.getFieldWithDefault(msg, 3, ""),
436
+ commentAboutName: jspb.Message.getFieldWithDefault(msg, 4, ""),
437
+ parentCommentName: jspb.Message.getFieldWithDefault(msg, 5, ""),
438
+ createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
439
+ modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
440
+ createdBy: jspb.Message.getFieldWithDefault(msg, 8, ""),
441
+ modifiedBy: jspb.Message.getFieldWithDefault(msg, 9, "")
442
+ };
443
+
444
+ if (includeInstance) {
445
+ obj.$jspbMessageInstance = msg;
446
+ }
447
+ return obj;
448
+ };
449
+ }
450
+
451
+
452
+ /**
453
+ * Deserializes binary data (in protobuf wire format).
454
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
455
+ * @return {!proto.ondewo.nlu.Comment}
456
+ */
457
+ proto.ondewo.nlu.Comment.deserializeBinary = function(bytes) {
458
+ var reader = new jspb.BinaryReader(bytes);
459
+ var msg = new proto.ondewo.nlu.Comment;
460
+ return proto.ondewo.nlu.Comment.deserializeBinaryFromReader(msg, reader);
461
+ };
462
+
463
+
464
+ /**
465
+ * Deserializes binary data (in protobuf wire format) from the
466
+ * given reader into the given message object.
467
+ * @param {!proto.ondewo.nlu.Comment} msg The message object to deserialize into.
468
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
469
+ * @return {!proto.ondewo.nlu.Comment}
470
+ */
471
+ proto.ondewo.nlu.Comment.deserializeBinaryFromReader = function(msg, reader) {
472
+ while (reader.nextField()) {
473
+ if (reader.isEndGroup()) {
474
+ break;
475
+ }
476
+ var field = reader.getFieldNumber();
477
+ switch (field) {
478
+ case 1:
479
+ var value = /** @type {string} */ (reader.readString());
480
+ msg.setName(value);
481
+ break;
482
+ case 2:
483
+ var value = /** @type {string} */ (reader.readString());
484
+ msg.setText(value);
485
+ break;
486
+ case 3:
487
+ var value = /** @type {string} */ (reader.readString());
488
+ msg.setUserId(value);
489
+ break;
490
+ case 4:
491
+ var value = /** @type {string} */ (reader.readString());
492
+ msg.setCommentAboutName(value);
493
+ break;
494
+ case 5:
495
+ var value = /** @type {string} */ (reader.readString());
496
+ msg.setParentCommentName(value);
497
+ break;
498
+ case 6:
499
+ var value = new google_protobuf_timestamp_pb.Timestamp;
500
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
501
+ msg.setCreatedAt(value);
502
+ break;
503
+ case 7:
504
+ var value = new google_protobuf_timestamp_pb.Timestamp;
505
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
506
+ msg.setModifiedAt(value);
507
+ break;
508
+ case 8:
509
+ var value = /** @type {string} */ (reader.readString());
510
+ msg.setCreatedBy(value);
511
+ break;
512
+ case 9:
513
+ var value = /** @type {string} */ (reader.readString());
514
+ msg.setModifiedBy(value);
515
+ break;
516
+ default:
517
+ reader.skipField();
518
+ break;
519
+ }
520
+ }
521
+ return msg;
522
+ };
523
+
524
+
525
+ /**
526
+ * Serializes the message to binary data (in protobuf wire format).
527
+ * @return {!Uint8Array}
528
+ */
529
+ proto.ondewo.nlu.Comment.prototype.serializeBinary = function() {
530
+ var writer = new jspb.BinaryWriter();
531
+ proto.ondewo.nlu.Comment.serializeBinaryToWriter(this, writer);
532
+ return writer.getResultBuffer();
533
+ };
534
+
535
+
536
+ /**
537
+ * Serializes the given message to binary data (in protobuf wire
538
+ * format), writing to the given BinaryWriter.
539
+ * @param {!proto.ondewo.nlu.Comment} message
540
+ * @param {!jspb.BinaryWriter} writer
541
+ * @suppress {unusedLocalVariables} f is only used for nested messages
542
+ */
543
+ proto.ondewo.nlu.Comment.serializeBinaryToWriter = function(message, writer) {
544
+ var f = undefined;
545
+ f = message.getName();
546
+ if (f.length > 0) {
547
+ writer.writeString(
548
+ 1,
549
+ f
550
+ );
551
+ }
552
+ f = message.getText();
553
+ if (f.length > 0) {
554
+ writer.writeString(
555
+ 2,
556
+ f
557
+ );
558
+ }
559
+ f = message.getUserId();
560
+ if (f.length > 0) {
561
+ writer.writeString(
562
+ 3,
563
+ f
564
+ );
565
+ }
566
+ f = message.getCommentAboutName();
567
+ if (f.length > 0) {
568
+ writer.writeString(
569
+ 4,
570
+ f
571
+ );
572
+ }
573
+ f = message.getParentCommentName();
574
+ if (f.length > 0) {
575
+ writer.writeString(
576
+ 5,
577
+ f
578
+ );
579
+ }
580
+ f = message.getCreatedAt();
581
+ if (f != null) {
582
+ writer.writeMessage(
583
+ 6,
584
+ f,
585
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
586
+ );
587
+ }
588
+ f = message.getModifiedAt();
589
+ if (f != null) {
590
+ writer.writeMessage(
591
+ 7,
592
+ f,
593
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
594
+ );
595
+ }
596
+ f = message.getCreatedBy();
597
+ if (f.length > 0) {
598
+ writer.writeString(
599
+ 8,
600
+ f
601
+ );
602
+ }
603
+ f = message.getModifiedBy();
604
+ if (f.length > 0) {
605
+ writer.writeString(
606
+ 9,
607
+ f
608
+ );
609
+ }
610
+ };
611
+
612
+
613
+ /**
614
+ * optional string name = 1;
615
+ * @return {string}
616
+ */
617
+ proto.ondewo.nlu.Comment.prototype.getName = function() {
618
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
619
+ };
620
+
621
+
622
+ /**
623
+ * @param {string} value
624
+ * @return {!proto.ondewo.nlu.Comment} returns this
625
+ */
626
+ proto.ondewo.nlu.Comment.prototype.setName = function(value) {
627
+ return jspb.Message.setProto3StringField(this, 1, value);
628
+ };
629
+
630
+
631
+ /**
632
+ * optional string text = 2;
633
+ * @return {string}
634
+ */
635
+ proto.ondewo.nlu.Comment.prototype.getText = function() {
636
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
637
+ };
638
+
639
+
640
+ /**
641
+ * @param {string} value
642
+ * @return {!proto.ondewo.nlu.Comment} returns this
643
+ */
644
+ proto.ondewo.nlu.Comment.prototype.setText = function(value) {
645
+ return jspb.Message.setProto3StringField(this, 2, value);
646
+ };
647
+
648
+
649
+ /**
650
+ * optional string user_id = 3;
651
+ * @return {string}
652
+ */
653
+ proto.ondewo.nlu.Comment.prototype.getUserId = function() {
654
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
655
+ };
656
+
657
+
658
+ /**
659
+ * @param {string} value
660
+ * @return {!proto.ondewo.nlu.Comment} returns this
661
+ */
662
+ proto.ondewo.nlu.Comment.prototype.setUserId = function(value) {
663
+ return jspb.Message.setProto3StringField(this, 3, value);
664
+ };
665
+
666
+
667
+ /**
668
+ * optional string comment_about_name = 4;
669
+ * @return {string}
670
+ */
671
+ proto.ondewo.nlu.Comment.prototype.getCommentAboutName = function() {
672
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
673
+ };
674
+
675
+
676
+ /**
677
+ * @param {string} value
678
+ * @return {!proto.ondewo.nlu.Comment} returns this
679
+ */
680
+ proto.ondewo.nlu.Comment.prototype.setCommentAboutName = function(value) {
681
+ return jspb.Message.setProto3StringField(this, 4, value);
682
+ };
683
+
684
+
685
+ /**
686
+ * optional string parent_comment_name = 5;
687
+ * @return {string}
688
+ */
689
+ proto.ondewo.nlu.Comment.prototype.getParentCommentName = function() {
690
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
691
+ };
692
+
693
+
694
+ /**
695
+ * @param {string} value
696
+ * @return {!proto.ondewo.nlu.Comment} returns this
697
+ */
698
+ proto.ondewo.nlu.Comment.prototype.setParentCommentName = function(value) {
699
+ return jspb.Message.setProto3StringField(this, 5, value);
700
+ };
701
+
702
+
703
+ /**
704
+ * optional google.protobuf.Timestamp created_at = 6;
705
+ * @return {?proto.google.protobuf.Timestamp}
706
+ */
707
+ proto.ondewo.nlu.Comment.prototype.getCreatedAt = function() {
708
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
709
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6));
710
+ };
711
+
712
+
713
+ /**
714
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
715
+ * @return {!proto.ondewo.nlu.Comment} returns this
716
+ */
717
+ proto.ondewo.nlu.Comment.prototype.setCreatedAt = function(value) {
718
+ return jspb.Message.setWrapperField(this, 6, value);
719
+ };
720
+
721
+
722
+ /**
723
+ * Clears the message field making it undefined.
724
+ * @return {!proto.ondewo.nlu.Comment} returns this
725
+ */
726
+ proto.ondewo.nlu.Comment.prototype.clearCreatedAt = function() {
727
+ return this.setCreatedAt(undefined);
728
+ };
729
+
730
+
731
+ /**
732
+ * Returns whether this field is set.
733
+ * @return {boolean}
734
+ */
735
+ proto.ondewo.nlu.Comment.prototype.hasCreatedAt = function() {
736
+ return jspb.Message.getField(this, 6) != null;
737
+ };
738
+
739
+
740
+ /**
741
+ * optional google.protobuf.Timestamp modified_at = 7;
742
+ * @return {?proto.google.protobuf.Timestamp}
743
+ */
744
+ proto.ondewo.nlu.Comment.prototype.getModifiedAt = function() {
745
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
746
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 7));
747
+ };
748
+
749
+
750
+ /**
751
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
752
+ * @return {!proto.ondewo.nlu.Comment} returns this
753
+ */
754
+ proto.ondewo.nlu.Comment.prototype.setModifiedAt = function(value) {
755
+ return jspb.Message.setWrapperField(this, 7, value);
756
+ };
757
+
758
+
759
+ /**
760
+ * Clears the message field making it undefined.
761
+ * @return {!proto.ondewo.nlu.Comment} returns this
762
+ */
763
+ proto.ondewo.nlu.Comment.prototype.clearModifiedAt = function() {
764
+ return this.setModifiedAt(undefined);
765
+ };
766
+
767
+
768
+ /**
769
+ * Returns whether this field is set.
770
+ * @return {boolean}
771
+ */
772
+ proto.ondewo.nlu.Comment.prototype.hasModifiedAt = function() {
773
+ return jspb.Message.getField(this, 7) != null;
774
+ };
775
+
776
+
777
+ /**
778
+ * optional string created_by = 8;
779
+ * @return {string}
780
+ */
781
+ proto.ondewo.nlu.Comment.prototype.getCreatedBy = function() {
782
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 8, ""));
783
+ };
784
+
785
+
786
+ /**
787
+ * @param {string} value
788
+ * @return {!proto.ondewo.nlu.Comment} returns this
789
+ */
790
+ proto.ondewo.nlu.Comment.prototype.setCreatedBy = function(value) {
791
+ return jspb.Message.setProto3StringField(this, 8, value);
792
+ };
793
+
794
+
795
+ /**
796
+ * optional string modified_by = 9;
797
+ * @return {string}
798
+ */
799
+ proto.ondewo.nlu.Comment.prototype.getModifiedBy = function() {
800
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
801
+ };
802
+
803
+
804
+ /**
805
+ * @param {string} value
806
+ * @return {!proto.ondewo.nlu.Comment} returns this
807
+ */
808
+ proto.ondewo.nlu.Comment.prototype.setModifiedBy = function(value) {
809
+ return jspb.Message.setProto3StringField(this, 9, value);
810
+ };
811
+
812
+
813
+
814
+
815
+
816
+ if (jspb.Message.GENERATE_TO_OBJECT) {
817
+ /**
818
+ * Creates an object representation of this proto.
819
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
820
+ * Optional fields that are not set will be set to undefined.
821
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
822
+ * For the list of reserved names please see:
823
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
824
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
825
+ * JSPB instance for transitional soy proto support:
826
+ * http://goto/soy-param-migration
827
+ * @return {!Object}
828
+ */
829
+ proto.ondewo.nlu.Notification.prototype.toObject = function(opt_includeInstance) {
830
+ return proto.ondewo.nlu.Notification.toObject(opt_includeInstance, this);
831
+ };
832
+
833
+
834
+ /**
835
+ * Static version of the {@see toObject} method.
836
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
837
+ * the JSPB instance for transitional soy proto support:
838
+ * http://goto/soy-param-migration
839
+ * @param {!proto.ondewo.nlu.Notification} msg The msg instance to transform.
840
+ * @return {!Object}
841
+ * @suppress {unusedLocalVariables} f is only used for nested messages
842
+ */
843
+ proto.ondewo.nlu.Notification.toObject = function(includeInstance, msg) {
844
+ var f, obj = {
845
+ name: jspb.Message.getFieldWithDefault(msg, 1, ""),
846
+ userName: jspb.Message.getFieldWithDefault(msg, 2, ""),
847
+ title: jspb.Message.getFieldWithDefault(msg, 3, ""),
848
+ descriptionShort: jspb.Message.getFieldWithDefault(msg, 4, ""),
849
+ descriptionLong: jspb.Message.getFieldWithDefault(msg, 5, ""),
850
+ notificationFlaggedStatus: jspb.Message.getFieldWithDefault(msg, 6, 0),
851
+ notificationFlaggedTimestamp: (f = msg.getNotificationFlaggedTimestamp()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
852
+ notificationReadStatus: jspb.Message.getFieldWithDefault(msg, 8, 0),
853
+ notificationReadTimestamp: (f = msg.getNotificationReadTimestamp()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
854
+ notificationOrigin: jspb.Message.getFieldWithDefault(msg, 10, 0),
855
+ originName: jspb.Message.getFieldWithDefault(msg, 11, ""),
856
+ originLanguage: jspb.Message.getFieldWithDefault(msg, 12, ""),
857
+ notificationType: jspb.Message.getFieldWithDefault(msg, 13, 0),
858
+ notificationVisibility: jspb.Message.getFieldWithDefault(msg, 14, 0),
859
+ createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
860
+ modifiedAt: (f = msg.getModifiedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
861
+ createdBy: jspb.Message.getFieldWithDefault(msg, 17, ""),
862
+ modifiedBy: jspb.Message.getFieldWithDefault(msg, 18, "")
863
+ };
864
+
865
+ if (includeInstance) {
866
+ obj.$jspbMessageInstance = msg;
867
+ }
868
+ return obj;
869
+ };
870
+ }
871
+
872
+
873
+ /**
874
+ * Deserializes binary data (in protobuf wire format).
875
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
876
+ * @return {!proto.ondewo.nlu.Notification}
877
+ */
878
+ proto.ondewo.nlu.Notification.deserializeBinary = function(bytes) {
879
+ var reader = new jspb.BinaryReader(bytes);
880
+ var msg = new proto.ondewo.nlu.Notification;
881
+ return proto.ondewo.nlu.Notification.deserializeBinaryFromReader(msg, reader);
882
+ };
883
+
884
+
885
+ /**
886
+ * Deserializes binary data (in protobuf wire format) from the
887
+ * given reader into the given message object.
888
+ * @param {!proto.ondewo.nlu.Notification} msg The message object to deserialize into.
889
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
890
+ * @return {!proto.ondewo.nlu.Notification}
891
+ */
892
+ proto.ondewo.nlu.Notification.deserializeBinaryFromReader = function(msg, reader) {
893
+ while (reader.nextField()) {
894
+ if (reader.isEndGroup()) {
895
+ break;
896
+ }
897
+ var field = reader.getFieldNumber();
898
+ switch (field) {
899
+ case 1:
900
+ var value = /** @type {string} */ (reader.readString());
901
+ msg.setName(value);
902
+ break;
903
+ case 2:
904
+ var value = /** @type {string} */ (reader.readString());
905
+ msg.setUserName(value);
906
+ break;
907
+ case 3:
908
+ var value = /** @type {string} */ (reader.readString());
909
+ msg.setTitle(value);
910
+ break;
911
+ case 4:
912
+ var value = /** @type {string} */ (reader.readString());
913
+ msg.setDescriptionShort(value);
914
+ break;
915
+ case 5:
916
+ var value = /** @type {string} */ (reader.readString());
917
+ msg.setDescriptionLong(value);
918
+ break;
919
+ case 6:
920
+ var value = /** @type {!proto.ondewo.nlu.NotificationFlaggedStatus} */ (reader.readEnum());
921
+ msg.setNotificationFlaggedStatus(value);
922
+ break;
923
+ case 7:
924
+ var value = new google_protobuf_timestamp_pb.Timestamp;
925
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
926
+ msg.setNotificationFlaggedTimestamp(value);
927
+ break;
928
+ case 8:
929
+ var value = /** @type {!proto.ondewo.nlu.NotificationReadStatus} */ (reader.readEnum());
930
+ msg.setNotificationReadStatus(value);
931
+ break;
932
+ case 9:
933
+ var value = new google_protobuf_timestamp_pb.Timestamp;
934
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
935
+ msg.setNotificationReadTimestamp(value);
936
+ break;
937
+ case 10:
938
+ var value = /** @type {!proto.ondewo.nlu.NotificationOrigin} */ (reader.readEnum());
939
+ msg.setNotificationOrigin(value);
940
+ break;
941
+ case 11:
942
+ var value = /** @type {string} */ (reader.readString());
943
+ msg.setOriginName(value);
944
+ break;
945
+ case 12:
946
+ var value = /** @type {string} */ (reader.readString());
947
+ msg.setOriginLanguage(value);
948
+ break;
949
+ case 13:
950
+ var value = /** @type {!proto.ondewo.nlu.NotificationType} */ (reader.readEnum());
951
+ msg.setNotificationType(value);
952
+ break;
953
+ case 14:
954
+ var value = /** @type {!proto.ondewo.nlu.NotificationVisibility} */ (reader.readEnum());
955
+ msg.setNotificationVisibility(value);
956
+ break;
957
+ case 15:
958
+ var value = new google_protobuf_timestamp_pb.Timestamp;
959
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
960
+ msg.setCreatedAt(value);
961
+ break;
962
+ case 16:
963
+ var value = new google_protobuf_timestamp_pb.Timestamp;
964
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
965
+ msg.setModifiedAt(value);
966
+ break;
967
+ case 17:
968
+ var value = /** @type {string} */ (reader.readString());
969
+ msg.setCreatedBy(value);
970
+ break;
971
+ case 18:
972
+ var value = /** @type {string} */ (reader.readString());
973
+ msg.setModifiedBy(value);
974
+ break;
975
+ default:
976
+ reader.skipField();
977
+ break;
978
+ }
979
+ }
980
+ return msg;
981
+ };
982
+
983
+
984
+ /**
985
+ * Serializes the message to binary data (in protobuf wire format).
986
+ * @return {!Uint8Array}
987
+ */
988
+ proto.ondewo.nlu.Notification.prototype.serializeBinary = function() {
989
+ var writer = new jspb.BinaryWriter();
990
+ proto.ondewo.nlu.Notification.serializeBinaryToWriter(this, writer);
991
+ return writer.getResultBuffer();
992
+ };
993
+
994
+
995
+ /**
996
+ * Serializes the given message to binary data (in protobuf wire
997
+ * format), writing to the given BinaryWriter.
998
+ * @param {!proto.ondewo.nlu.Notification} message
999
+ * @param {!jspb.BinaryWriter} writer
1000
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1001
+ */
1002
+ proto.ondewo.nlu.Notification.serializeBinaryToWriter = function(message, writer) {
1003
+ var f = undefined;
1004
+ f = message.getName();
1005
+ if (f.length > 0) {
1006
+ writer.writeString(
1007
+ 1,
1008
+ f
1009
+ );
1010
+ }
1011
+ f = message.getUserName();
1012
+ if (f.length > 0) {
1013
+ writer.writeString(
1014
+ 2,
1015
+ f
1016
+ );
1017
+ }
1018
+ f = message.getTitle();
1019
+ if (f.length > 0) {
1020
+ writer.writeString(
1021
+ 3,
1022
+ f
1023
+ );
1024
+ }
1025
+ f = message.getDescriptionShort();
1026
+ if (f.length > 0) {
1027
+ writer.writeString(
1028
+ 4,
1029
+ f
1030
+ );
1031
+ }
1032
+ f = message.getDescriptionLong();
1033
+ if (f.length > 0) {
1034
+ writer.writeString(
1035
+ 5,
1036
+ f
1037
+ );
1038
+ }
1039
+ f = message.getNotificationFlaggedStatus();
1040
+ if (f !== 0.0) {
1041
+ writer.writeEnum(
1042
+ 6,
1043
+ f
1044
+ );
1045
+ }
1046
+ f = message.getNotificationFlaggedTimestamp();
1047
+ if (f != null) {
1048
+ writer.writeMessage(
1049
+ 7,
1050
+ f,
1051
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
1052
+ );
1053
+ }
1054
+ f = message.getNotificationReadStatus();
1055
+ if (f !== 0.0) {
1056
+ writer.writeEnum(
1057
+ 8,
1058
+ f
1059
+ );
1060
+ }
1061
+ f = message.getNotificationReadTimestamp();
1062
+ if (f != null) {
1063
+ writer.writeMessage(
1064
+ 9,
1065
+ f,
1066
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
1067
+ );
1068
+ }
1069
+ f = message.getNotificationOrigin();
1070
+ if (f !== 0.0) {
1071
+ writer.writeEnum(
1072
+ 10,
1073
+ f
1074
+ );
1075
+ }
1076
+ f = message.getOriginName();
1077
+ if (f.length > 0) {
1078
+ writer.writeString(
1079
+ 11,
1080
+ f
1081
+ );
1082
+ }
1083
+ f = message.getOriginLanguage();
1084
+ if (f.length > 0) {
1085
+ writer.writeString(
1086
+ 12,
1087
+ f
1088
+ );
1089
+ }
1090
+ f = message.getNotificationType();
1091
+ if (f !== 0.0) {
1092
+ writer.writeEnum(
1093
+ 13,
1094
+ f
1095
+ );
1096
+ }
1097
+ f = message.getNotificationVisibility();
1098
+ if (f !== 0.0) {
1099
+ writer.writeEnum(
1100
+ 14,
1101
+ f
1102
+ );
1103
+ }
1104
+ f = message.getCreatedAt();
1105
+ if (f != null) {
1106
+ writer.writeMessage(
1107
+ 15,
1108
+ f,
1109
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
1110
+ );
1111
+ }
1112
+ f = message.getModifiedAt();
1113
+ if (f != null) {
1114
+ writer.writeMessage(
1115
+ 16,
1116
+ f,
1117
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
1118
+ );
1119
+ }
1120
+ f = message.getCreatedBy();
1121
+ if (f.length > 0) {
1122
+ writer.writeString(
1123
+ 17,
1124
+ f
1125
+ );
1126
+ }
1127
+ f = message.getModifiedBy();
1128
+ if (f.length > 0) {
1129
+ writer.writeString(
1130
+ 18,
1131
+ f
1132
+ );
1133
+ }
1134
+ };
1135
+
1136
+
1137
+ /**
1138
+ * optional string name = 1;
1139
+ * @return {string}
1140
+ */
1141
+ proto.ondewo.nlu.Notification.prototype.getName = function() {
1142
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
1143
+ };
1144
+
1145
+
1146
+ /**
1147
+ * @param {string} value
1148
+ * @return {!proto.ondewo.nlu.Notification} returns this
1149
+ */
1150
+ proto.ondewo.nlu.Notification.prototype.setName = function(value) {
1151
+ return jspb.Message.setProto3StringField(this, 1, value);
1152
+ };
1153
+
1154
+
1155
+ /**
1156
+ * optional string user_name = 2;
1157
+ * @return {string}
1158
+ */
1159
+ proto.ondewo.nlu.Notification.prototype.getUserName = function() {
1160
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
1161
+ };
1162
+
1163
+
1164
+ /**
1165
+ * @param {string} value
1166
+ * @return {!proto.ondewo.nlu.Notification} returns this
1167
+ */
1168
+ proto.ondewo.nlu.Notification.prototype.setUserName = function(value) {
1169
+ return jspb.Message.setProto3StringField(this, 2, value);
1170
+ };
1171
+
1172
+
1173
+ /**
1174
+ * optional string title = 3;
1175
+ * @return {string}
1176
+ */
1177
+ proto.ondewo.nlu.Notification.prototype.getTitle = function() {
1178
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
1179
+ };
1180
+
1181
+
1182
+ /**
1183
+ * @param {string} value
1184
+ * @return {!proto.ondewo.nlu.Notification} returns this
1185
+ */
1186
+ proto.ondewo.nlu.Notification.prototype.setTitle = function(value) {
1187
+ return jspb.Message.setProto3StringField(this, 3, value);
1188
+ };
1189
+
1190
+
1191
+ /**
1192
+ * optional string description_short = 4;
1193
+ * @return {string}
1194
+ */
1195
+ proto.ondewo.nlu.Notification.prototype.getDescriptionShort = function() {
1196
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
1197
+ };
1198
+
1199
+
1200
+ /**
1201
+ * @param {string} value
1202
+ * @return {!proto.ondewo.nlu.Notification} returns this
1203
+ */
1204
+ proto.ondewo.nlu.Notification.prototype.setDescriptionShort = function(value) {
1205
+ return jspb.Message.setProto3StringField(this, 4, value);
1206
+ };
1207
+
1208
+
1209
+ /**
1210
+ * optional string description_long = 5;
1211
+ * @return {string}
1212
+ */
1213
+ proto.ondewo.nlu.Notification.prototype.getDescriptionLong = function() {
1214
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
1215
+ };
1216
+
1217
+
1218
+ /**
1219
+ * @param {string} value
1220
+ * @return {!proto.ondewo.nlu.Notification} returns this
1221
+ */
1222
+ proto.ondewo.nlu.Notification.prototype.setDescriptionLong = function(value) {
1223
+ return jspb.Message.setProto3StringField(this, 5, value);
1224
+ };
1225
+
1226
+
1227
+ /**
1228
+ * optional NotificationFlaggedStatus notification_flagged_status = 6;
1229
+ * @return {!proto.ondewo.nlu.NotificationFlaggedStatus}
1230
+ */
1231
+ proto.ondewo.nlu.Notification.prototype.getNotificationFlaggedStatus = function() {
1232
+ return /** @type {!proto.ondewo.nlu.NotificationFlaggedStatus} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
1233
+ };
1234
+
1235
+
1236
+ /**
1237
+ * @param {!proto.ondewo.nlu.NotificationFlaggedStatus} value
1238
+ * @return {!proto.ondewo.nlu.Notification} returns this
1239
+ */
1240
+ proto.ondewo.nlu.Notification.prototype.setNotificationFlaggedStatus = function(value) {
1241
+ return jspb.Message.setProto3EnumField(this, 6, value);
1242
+ };
1243
+
1244
+
1245
+ /**
1246
+ * optional google.protobuf.Timestamp notification_flagged_timestamp = 7;
1247
+ * @return {?proto.google.protobuf.Timestamp}
1248
+ */
1249
+ proto.ondewo.nlu.Notification.prototype.getNotificationFlaggedTimestamp = function() {
1250
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
1251
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 7));
1252
+ };
1253
+
1254
+
1255
+ /**
1256
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
1257
+ * @return {!proto.ondewo.nlu.Notification} returns this
1258
+ */
1259
+ proto.ondewo.nlu.Notification.prototype.setNotificationFlaggedTimestamp = function(value) {
1260
+ return jspb.Message.setWrapperField(this, 7, value);
1261
+ };
1262
+
1263
+
1264
+ /**
1265
+ * Clears the message field making it undefined.
1266
+ * @return {!proto.ondewo.nlu.Notification} returns this
1267
+ */
1268
+ proto.ondewo.nlu.Notification.prototype.clearNotificationFlaggedTimestamp = function() {
1269
+ return this.setNotificationFlaggedTimestamp(undefined);
1270
+ };
1271
+
1272
+
1273
+ /**
1274
+ * Returns whether this field is set.
1275
+ * @return {boolean}
1276
+ */
1277
+ proto.ondewo.nlu.Notification.prototype.hasNotificationFlaggedTimestamp = function() {
1278
+ return jspb.Message.getField(this, 7) != null;
1279
+ };
1280
+
1281
+
1282
+ /**
1283
+ * optional NotificationReadStatus notification_read_status = 8;
1284
+ * @return {!proto.ondewo.nlu.NotificationReadStatus}
1285
+ */
1286
+ proto.ondewo.nlu.Notification.prototype.getNotificationReadStatus = function() {
1287
+ return /** @type {!proto.ondewo.nlu.NotificationReadStatus} */ (jspb.Message.getFieldWithDefault(this, 8, 0));
1288
+ };
1289
+
1290
+
1291
+ /**
1292
+ * @param {!proto.ondewo.nlu.NotificationReadStatus} value
1293
+ * @return {!proto.ondewo.nlu.Notification} returns this
1294
+ */
1295
+ proto.ondewo.nlu.Notification.prototype.setNotificationReadStatus = function(value) {
1296
+ return jspb.Message.setProto3EnumField(this, 8, value);
1297
+ };
1298
+
1299
+
1300
+ /**
1301
+ * optional google.protobuf.Timestamp notification_read_timestamp = 9;
1302
+ * @return {?proto.google.protobuf.Timestamp}
1303
+ */
1304
+ proto.ondewo.nlu.Notification.prototype.getNotificationReadTimestamp = function() {
1305
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
1306
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 9));
1307
+ };
1308
+
1309
+
1310
+ /**
1311
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
1312
+ * @return {!proto.ondewo.nlu.Notification} returns this
1313
+ */
1314
+ proto.ondewo.nlu.Notification.prototype.setNotificationReadTimestamp = function(value) {
1315
+ return jspb.Message.setWrapperField(this, 9, value);
1316
+ };
1317
+
1318
+
1319
+ /**
1320
+ * Clears the message field making it undefined.
1321
+ * @return {!proto.ondewo.nlu.Notification} returns this
1322
+ */
1323
+ proto.ondewo.nlu.Notification.prototype.clearNotificationReadTimestamp = function() {
1324
+ return this.setNotificationReadTimestamp(undefined);
1325
+ };
1326
+
1327
+
1328
+ /**
1329
+ * Returns whether this field is set.
1330
+ * @return {boolean}
1331
+ */
1332
+ proto.ondewo.nlu.Notification.prototype.hasNotificationReadTimestamp = function() {
1333
+ return jspb.Message.getField(this, 9) != null;
1334
+ };
1335
+
1336
+
1337
+ /**
1338
+ * optional NotificationOrigin notification_origin = 10;
1339
+ * @return {!proto.ondewo.nlu.NotificationOrigin}
1340
+ */
1341
+ proto.ondewo.nlu.Notification.prototype.getNotificationOrigin = function() {
1342
+ return /** @type {!proto.ondewo.nlu.NotificationOrigin} */ (jspb.Message.getFieldWithDefault(this, 10, 0));
1343
+ };
1344
+
1345
+
1346
+ /**
1347
+ * @param {!proto.ondewo.nlu.NotificationOrigin} value
1348
+ * @return {!proto.ondewo.nlu.Notification} returns this
1349
+ */
1350
+ proto.ondewo.nlu.Notification.prototype.setNotificationOrigin = function(value) {
1351
+ return jspb.Message.setProto3EnumField(this, 10, value);
1352
+ };
1353
+
1354
+
1355
+ /**
1356
+ * optional string origin_name = 11;
1357
+ * @return {string}
1358
+ */
1359
+ proto.ondewo.nlu.Notification.prototype.getOriginName = function() {
1360
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
1361
+ };
1362
+
1363
+
1364
+ /**
1365
+ * @param {string} value
1366
+ * @return {!proto.ondewo.nlu.Notification} returns this
1367
+ */
1368
+ proto.ondewo.nlu.Notification.prototype.setOriginName = function(value) {
1369
+ return jspb.Message.setProto3StringField(this, 11, value);
1370
+ };
1371
+
1372
+
1373
+ /**
1374
+ * optional string origin_language = 12;
1375
+ * @return {string}
1376
+ */
1377
+ proto.ondewo.nlu.Notification.prototype.getOriginLanguage = function() {
1378
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
1379
+ };
1380
+
1381
+
1382
+ /**
1383
+ * @param {string} value
1384
+ * @return {!proto.ondewo.nlu.Notification} returns this
1385
+ */
1386
+ proto.ondewo.nlu.Notification.prototype.setOriginLanguage = function(value) {
1387
+ return jspb.Message.setProto3StringField(this, 12, value);
1388
+ };
1389
+
1390
+
1391
+ /**
1392
+ * optional NotificationType notification_type = 13;
1393
+ * @return {!proto.ondewo.nlu.NotificationType}
1394
+ */
1395
+ proto.ondewo.nlu.Notification.prototype.getNotificationType = function() {
1396
+ return /** @type {!proto.ondewo.nlu.NotificationType} */ (jspb.Message.getFieldWithDefault(this, 13, 0));
1397
+ };
1398
+
1399
+
1400
+ /**
1401
+ * @param {!proto.ondewo.nlu.NotificationType} value
1402
+ * @return {!proto.ondewo.nlu.Notification} returns this
1403
+ */
1404
+ proto.ondewo.nlu.Notification.prototype.setNotificationType = function(value) {
1405
+ return jspb.Message.setProto3EnumField(this, 13, value);
1406
+ };
1407
+
1408
+
1409
+ /**
1410
+ * optional NotificationVisibility notification_visibility = 14;
1411
+ * @return {!proto.ondewo.nlu.NotificationVisibility}
1412
+ */
1413
+ proto.ondewo.nlu.Notification.prototype.getNotificationVisibility = function() {
1414
+ return /** @type {!proto.ondewo.nlu.NotificationVisibility} */ (jspb.Message.getFieldWithDefault(this, 14, 0));
1415
+ };
1416
+
1417
+
1418
+ /**
1419
+ * @param {!proto.ondewo.nlu.NotificationVisibility} value
1420
+ * @return {!proto.ondewo.nlu.Notification} returns this
1421
+ */
1422
+ proto.ondewo.nlu.Notification.prototype.setNotificationVisibility = function(value) {
1423
+ return jspb.Message.setProto3EnumField(this, 14, value);
1424
+ };
1425
+
1426
+
1427
+ /**
1428
+ * optional google.protobuf.Timestamp created_at = 15;
1429
+ * @return {?proto.google.protobuf.Timestamp}
1430
+ */
1431
+ proto.ondewo.nlu.Notification.prototype.getCreatedAt = function() {
1432
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
1433
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 15));
1434
+ };
1435
+
1436
+
1437
+ /**
1438
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
1439
+ * @return {!proto.ondewo.nlu.Notification} returns this
1440
+ */
1441
+ proto.ondewo.nlu.Notification.prototype.setCreatedAt = function(value) {
1442
+ return jspb.Message.setWrapperField(this, 15, value);
1443
+ };
1444
+
1445
+
1446
+ /**
1447
+ * Clears the message field making it undefined.
1448
+ * @return {!proto.ondewo.nlu.Notification} returns this
1449
+ */
1450
+ proto.ondewo.nlu.Notification.prototype.clearCreatedAt = function() {
1451
+ return this.setCreatedAt(undefined);
1452
+ };
1453
+
1454
+
1455
+ /**
1456
+ * Returns whether this field is set.
1457
+ * @return {boolean}
1458
+ */
1459
+ proto.ondewo.nlu.Notification.prototype.hasCreatedAt = function() {
1460
+ return jspb.Message.getField(this, 15) != null;
1461
+ };
1462
+
1463
+
1464
+ /**
1465
+ * optional google.protobuf.Timestamp modified_at = 16;
1466
+ * @return {?proto.google.protobuf.Timestamp}
1467
+ */
1468
+ proto.ondewo.nlu.Notification.prototype.getModifiedAt = function() {
1469
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
1470
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 16));
1471
+ };
1472
+
1473
+
1474
+ /**
1475
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
1476
+ * @return {!proto.ondewo.nlu.Notification} returns this
1477
+ */
1478
+ proto.ondewo.nlu.Notification.prototype.setModifiedAt = function(value) {
1479
+ return jspb.Message.setWrapperField(this, 16, value);
1480
+ };
1481
+
1482
+
1483
+ /**
1484
+ * Clears the message field making it undefined.
1485
+ * @return {!proto.ondewo.nlu.Notification} returns this
1486
+ */
1487
+ proto.ondewo.nlu.Notification.prototype.clearModifiedAt = function() {
1488
+ return this.setModifiedAt(undefined);
1489
+ };
1490
+
1491
+
1492
+ /**
1493
+ * Returns whether this field is set.
1494
+ * @return {boolean}
1495
+ */
1496
+ proto.ondewo.nlu.Notification.prototype.hasModifiedAt = function() {
1497
+ return jspb.Message.getField(this, 16) != null;
1498
+ };
1499
+
1500
+
1501
+ /**
1502
+ * optional string created_by = 17;
1503
+ * @return {string}
1504
+ */
1505
+ proto.ondewo.nlu.Notification.prototype.getCreatedBy = function() {
1506
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, ""));
1507
+ };
1508
+
1509
+
1510
+ /**
1511
+ * @param {string} value
1512
+ * @return {!proto.ondewo.nlu.Notification} returns this
1513
+ */
1514
+ proto.ondewo.nlu.Notification.prototype.setCreatedBy = function(value) {
1515
+ return jspb.Message.setProto3StringField(this, 17, value);
1516
+ };
1517
+
1518
+
1519
+ /**
1520
+ * optional string modified_by = 18;
1521
+ * @return {string}
1522
+ */
1523
+ proto.ondewo.nlu.Notification.prototype.getModifiedBy = function() {
1524
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 18, ""));
1525
+ };
1526
+
1527
+
1528
+ /**
1529
+ * @param {string} value
1530
+ * @return {!proto.ondewo.nlu.Notification} returns this
1531
+ */
1532
+ proto.ondewo.nlu.Notification.prototype.setModifiedBy = function(value) {
1533
+ return jspb.Message.setProto3StringField(this, 18, value);
1534
+ };
1535
+
1536
+
1537
+
1538
+ /**
1539
+ * List of repeated fields within this message type.
1540
+ * @private {!Array<number>}
1541
+ * @const
1542
+ */
1543
+ proto.ondewo.nlu.AddNotificationsRequest.repeatedFields_ = [1];
1544
+
1545
+
1546
+
1547
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1548
+ /**
1549
+ * Creates an object representation of this proto.
1550
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1551
+ * Optional fields that are not set will be set to undefined.
1552
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1553
+ * For the list of reserved names please see:
1554
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1555
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1556
+ * JSPB instance for transitional soy proto support:
1557
+ * http://goto/soy-param-migration
1558
+ * @return {!Object}
1559
+ */
1560
+ proto.ondewo.nlu.AddNotificationsRequest.prototype.toObject = function(opt_includeInstance) {
1561
+ return proto.ondewo.nlu.AddNotificationsRequest.toObject(opt_includeInstance, this);
1562
+ };
1563
+
1564
+
1565
+ /**
1566
+ * Static version of the {@see toObject} method.
1567
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1568
+ * the JSPB instance for transitional soy proto support:
1569
+ * http://goto/soy-param-migration
1570
+ * @param {!proto.ondewo.nlu.AddNotificationsRequest} msg The msg instance to transform.
1571
+ * @return {!Object}
1572
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1573
+ */
1574
+ proto.ondewo.nlu.AddNotificationsRequest.toObject = function(includeInstance, msg) {
1575
+ var f, obj = {
1576
+ notificationList: jspb.Message.toObjectList(msg.getNotificationList(),
1577
+ proto.ondewo.nlu.Notification.toObject, includeInstance)
1578
+ };
1579
+
1580
+ if (includeInstance) {
1581
+ obj.$jspbMessageInstance = msg;
1582
+ }
1583
+ return obj;
1584
+ };
1585
+ }
1586
+
1587
+
1588
+ /**
1589
+ * Deserializes binary data (in protobuf wire format).
1590
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1591
+ * @return {!proto.ondewo.nlu.AddNotificationsRequest}
1592
+ */
1593
+ proto.ondewo.nlu.AddNotificationsRequest.deserializeBinary = function(bytes) {
1594
+ var reader = new jspb.BinaryReader(bytes);
1595
+ var msg = new proto.ondewo.nlu.AddNotificationsRequest;
1596
+ return proto.ondewo.nlu.AddNotificationsRequest.deserializeBinaryFromReader(msg, reader);
1597
+ };
1598
+
1599
+
1600
+ /**
1601
+ * Deserializes binary data (in protobuf wire format) from the
1602
+ * given reader into the given message object.
1603
+ * @param {!proto.ondewo.nlu.AddNotificationsRequest} msg The message object to deserialize into.
1604
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1605
+ * @return {!proto.ondewo.nlu.AddNotificationsRequest}
1606
+ */
1607
+ proto.ondewo.nlu.AddNotificationsRequest.deserializeBinaryFromReader = function(msg, reader) {
1608
+ while (reader.nextField()) {
1609
+ if (reader.isEndGroup()) {
1610
+ break;
1611
+ }
1612
+ var field = reader.getFieldNumber();
1613
+ switch (field) {
1614
+ case 1:
1615
+ var value = new proto.ondewo.nlu.Notification;
1616
+ reader.readMessage(value,proto.ondewo.nlu.Notification.deserializeBinaryFromReader);
1617
+ msg.addNotification(value);
1618
+ break;
1619
+ default:
1620
+ reader.skipField();
1621
+ break;
1622
+ }
1623
+ }
1624
+ return msg;
1625
+ };
1626
+
1627
+
1628
+ /**
1629
+ * Serializes the message to binary data (in protobuf wire format).
1630
+ * @return {!Uint8Array}
1631
+ */
1632
+ proto.ondewo.nlu.AddNotificationsRequest.prototype.serializeBinary = function() {
1633
+ var writer = new jspb.BinaryWriter();
1634
+ proto.ondewo.nlu.AddNotificationsRequest.serializeBinaryToWriter(this, writer);
1635
+ return writer.getResultBuffer();
1636
+ };
1637
+
1638
+
1639
+ /**
1640
+ * Serializes the given message to binary data (in protobuf wire
1641
+ * format), writing to the given BinaryWriter.
1642
+ * @param {!proto.ondewo.nlu.AddNotificationsRequest} message
1643
+ * @param {!jspb.BinaryWriter} writer
1644
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1645
+ */
1646
+ proto.ondewo.nlu.AddNotificationsRequest.serializeBinaryToWriter = function(message, writer) {
1647
+ var f = undefined;
1648
+ f = message.getNotificationList();
1649
+ if (f.length > 0) {
1650
+ writer.writeRepeatedMessage(
1651
+ 1,
1652
+ f,
1653
+ proto.ondewo.nlu.Notification.serializeBinaryToWriter
1654
+ );
1655
+ }
1656
+ };
1657
+
1658
+
1659
+ /**
1660
+ * repeated Notification notification = 1;
1661
+ * @return {!Array<!proto.ondewo.nlu.Notification>}
1662
+ */
1663
+ proto.ondewo.nlu.AddNotificationsRequest.prototype.getNotificationList = function() {
1664
+ return /** @type{!Array<!proto.ondewo.nlu.Notification>} */ (
1665
+ jspb.Message.getRepeatedWrapperField(this, proto.ondewo.nlu.Notification, 1));
1666
+ };
1667
+
1668
+
1669
+ /**
1670
+ * @param {!Array<!proto.ondewo.nlu.Notification>} value
1671
+ * @return {!proto.ondewo.nlu.AddNotificationsRequest} returns this
1672
+ */
1673
+ proto.ondewo.nlu.AddNotificationsRequest.prototype.setNotificationList = function(value) {
1674
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
1675
+ };
1676
+
1677
+
1678
+ /**
1679
+ * @param {!proto.ondewo.nlu.Notification=} opt_value
1680
+ * @param {number=} opt_index
1681
+ * @return {!proto.ondewo.nlu.Notification}
1682
+ */
1683
+ proto.ondewo.nlu.AddNotificationsRequest.prototype.addNotification = function(opt_value, opt_index) {
1684
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.ondewo.nlu.Notification, opt_index);
1685
+ };
1686
+
1687
+
1688
+ /**
1689
+ * Clears the list making it empty but non-null.
1690
+ * @return {!proto.ondewo.nlu.AddNotificationsRequest} returns this
1691
+ */
1692
+ proto.ondewo.nlu.AddNotificationsRequest.prototype.clearNotificationList = function() {
1693
+ return this.setNotificationList([]);
1694
+ };
1695
+
1696
+
1697
+
1698
+ /**
1699
+ * List of repeated fields within this message type.
1700
+ * @private {!Array<number>}
1701
+ * @const
1702
+ */
1703
+ proto.ondewo.nlu.AddNotificationsResponse.repeatedFields_ = [1];
1704
+
1705
+
1706
+
1707
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1708
+ /**
1709
+ * Creates an object representation of this proto.
1710
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1711
+ * Optional fields that are not set will be set to undefined.
1712
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1713
+ * For the list of reserved names please see:
1714
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1715
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1716
+ * JSPB instance for transitional soy proto support:
1717
+ * http://goto/soy-param-migration
1718
+ * @return {!Object}
1719
+ */
1720
+ proto.ondewo.nlu.AddNotificationsResponse.prototype.toObject = function(opt_includeInstance) {
1721
+ return proto.ondewo.nlu.AddNotificationsResponse.toObject(opt_includeInstance, this);
1722
+ };
1723
+
1724
+
1725
+ /**
1726
+ * Static version of the {@see toObject} method.
1727
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1728
+ * the JSPB instance for transitional soy proto support:
1729
+ * http://goto/soy-param-migration
1730
+ * @param {!proto.ondewo.nlu.AddNotificationsResponse} msg The msg instance to transform.
1731
+ * @return {!Object}
1732
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1733
+ */
1734
+ proto.ondewo.nlu.AddNotificationsResponse.toObject = function(includeInstance, msg) {
1735
+ var f, obj = {
1736
+ notificationList: jspb.Message.toObjectList(msg.getNotificationList(),
1737
+ proto.ondewo.nlu.Notification.toObject, includeInstance)
1738
+ };
1739
+
1740
+ if (includeInstance) {
1741
+ obj.$jspbMessageInstance = msg;
1742
+ }
1743
+ return obj;
1744
+ };
1745
+ }
1746
+
1747
+
1748
+ /**
1749
+ * Deserializes binary data (in protobuf wire format).
1750
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1751
+ * @return {!proto.ondewo.nlu.AddNotificationsResponse}
1752
+ */
1753
+ proto.ondewo.nlu.AddNotificationsResponse.deserializeBinary = function(bytes) {
1754
+ var reader = new jspb.BinaryReader(bytes);
1755
+ var msg = new proto.ondewo.nlu.AddNotificationsResponse;
1756
+ return proto.ondewo.nlu.AddNotificationsResponse.deserializeBinaryFromReader(msg, reader);
1757
+ };
1758
+
1759
+
1760
+ /**
1761
+ * Deserializes binary data (in protobuf wire format) from the
1762
+ * given reader into the given message object.
1763
+ * @param {!proto.ondewo.nlu.AddNotificationsResponse} msg The message object to deserialize into.
1764
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1765
+ * @return {!proto.ondewo.nlu.AddNotificationsResponse}
1766
+ */
1767
+ proto.ondewo.nlu.AddNotificationsResponse.deserializeBinaryFromReader = function(msg, reader) {
1768
+ while (reader.nextField()) {
1769
+ if (reader.isEndGroup()) {
1770
+ break;
1771
+ }
1772
+ var field = reader.getFieldNumber();
1773
+ switch (field) {
1774
+ case 1:
1775
+ var value = new proto.ondewo.nlu.Notification;
1776
+ reader.readMessage(value,proto.ondewo.nlu.Notification.deserializeBinaryFromReader);
1777
+ msg.addNotification(value);
1778
+ break;
1779
+ default:
1780
+ reader.skipField();
1781
+ break;
1782
+ }
1783
+ }
1784
+ return msg;
1785
+ };
1786
+
1787
+
1788
+ /**
1789
+ * Serializes the message to binary data (in protobuf wire format).
1790
+ * @return {!Uint8Array}
1791
+ */
1792
+ proto.ondewo.nlu.AddNotificationsResponse.prototype.serializeBinary = function() {
1793
+ var writer = new jspb.BinaryWriter();
1794
+ proto.ondewo.nlu.AddNotificationsResponse.serializeBinaryToWriter(this, writer);
1795
+ return writer.getResultBuffer();
1796
+ };
1797
+
1798
+
1799
+ /**
1800
+ * Serializes the given message to binary data (in protobuf wire
1801
+ * format), writing to the given BinaryWriter.
1802
+ * @param {!proto.ondewo.nlu.AddNotificationsResponse} message
1803
+ * @param {!jspb.BinaryWriter} writer
1804
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1805
+ */
1806
+ proto.ondewo.nlu.AddNotificationsResponse.serializeBinaryToWriter = function(message, writer) {
1807
+ var f = undefined;
1808
+ f = message.getNotificationList();
1809
+ if (f.length > 0) {
1810
+ writer.writeRepeatedMessage(
1811
+ 1,
1812
+ f,
1813
+ proto.ondewo.nlu.Notification.serializeBinaryToWriter
1814
+ );
1815
+ }
1816
+ };
1817
+
1818
+
1819
+ /**
1820
+ * repeated Notification notification = 1;
1821
+ * @return {!Array<!proto.ondewo.nlu.Notification>}
1822
+ */
1823
+ proto.ondewo.nlu.AddNotificationsResponse.prototype.getNotificationList = function() {
1824
+ return /** @type{!Array<!proto.ondewo.nlu.Notification>} */ (
1825
+ jspb.Message.getRepeatedWrapperField(this, proto.ondewo.nlu.Notification, 1));
1826
+ };
1827
+
1828
+
1829
+ /**
1830
+ * @param {!Array<!proto.ondewo.nlu.Notification>} value
1831
+ * @return {!proto.ondewo.nlu.AddNotificationsResponse} returns this
1832
+ */
1833
+ proto.ondewo.nlu.AddNotificationsResponse.prototype.setNotificationList = function(value) {
1834
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
1835
+ };
1836
+
1837
+
1838
+ /**
1839
+ * @param {!proto.ondewo.nlu.Notification=} opt_value
1840
+ * @param {number=} opt_index
1841
+ * @return {!proto.ondewo.nlu.Notification}
1842
+ */
1843
+ proto.ondewo.nlu.AddNotificationsResponse.prototype.addNotification = function(opt_value, opt_index) {
1844
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.ondewo.nlu.Notification, opt_index);
1845
+ };
1846
+
1847
+
1848
+ /**
1849
+ * Clears the list making it empty but non-null.
1850
+ * @return {!proto.ondewo.nlu.AddNotificationsResponse} returns this
1851
+ */
1852
+ proto.ondewo.nlu.AddNotificationsResponse.prototype.clearNotificationList = function() {
1853
+ return this.setNotificationList([]);
1854
+ };
1855
+
1856
+
1857
+
1858
+ /**
1859
+ * List of repeated fields within this message type.
1860
+ * @private {!Array<number>}
1861
+ * @const
1862
+ */
1863
+ proto.ondewo.nlu.NotificationFilter.repeatedFields_ = [1,2,3,4,5,8,9];
1864
+
1865
+
1866
+
1867
+ if (jspb.Message.GENERATE_TO_OBJECT) {
1868
+ /**
1869
+ * Creates an object representation of this proto.
1870
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
1871
+ * Optional fields that are not set will be set to undefined.
1872
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
1873
+ * For the list of reserved names please see:
1874
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
1875
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
1876
+ * JSPB instance for transitional soy proto support:
1877
+ * http://goto/soy-param-migration
1878
+ * @return {!Object}
1879
+ */
1880
+ proto.ondewo.nlu.NotificationFilter.prototype.toObject = function(opt_includeInstance) {
1881
+ return proto.ondewo.nlu.NotificationFilter.toObject(opt_includeInstance, this);
1882
+ };
1883
+
1884
+
1885
+ /**
1886
+ * Static version of the {@see toObject} method.
1887
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
1888
+ * the JSPB instance for transitional soy proto support:
1889
+ * http://goto/soy-param-migration
1890
+ * @param {!proto.ondewo.nlu.NotificationFilter} msg The msg instance to transform.
1891
+ * @return {!Object}
1892
+ * @suppress {unusedLocalVariables} f is only used for nested messages
1893
+ */
1894
+ proto.ondewo.nlu.NotificationFilter.toObject = function(includeInstance, msg) {
1895
+ var f, obj = {
1896
+ languageCodesList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
1897
+ notificationOriginsList: (f = jspb.Message.getRepeatedField(msg, 2)) == null ? undefined : f,
1898
+ notificationVisibilitiesList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f,
1899
+ notificationFlaggedStatusList: (f = jspb.Message.getRepeatedField(msg, 4)) == null ? undefined : f,
1900
+ notificationReadStatusList: (f = jspb.Message.getRepeatedField(msg, 5)) == null ? undefined : f,
1901
+ earliest: (f = msg.getEarliest()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
1902
+ latest: (f = msg.getLatest()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
1903
+ userNamesList: (f = jspb.Message.getRepeatedField(msg, 8)) == null ? undefined : f,
1904
+ originNamesList: (f = jspb.Message.getRepeatedField(msg, 9)) == null ? undefined : f
1905
+ };
1906
+
1907
+ if (includeInstance) {
1908
+ obj.$jspbMessageInstance = msg;
1909
+ }
1910
+ return obj;
1911
+ };
1912
+ }
1913
+
1914
+
1915
+ /**
1916
+ * Deserializes binary data (in protobuf wire format).
1917
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
1918
+ * @return {!proto.ondewo.nlu.NotificationFilter}
1919
+ */
1920
+ proto.ondewo.nlu.NotificationFilter.deserializeBinary = function(bytes) {
1921
+ var reader = new jspb.BinaryReader(bytes);
1922
+ var msg = new proto.ondewo.nlu.NotificationFilter;
1923
+ return proto.ondewo.nlu.NotificationFilter.deserializeBinaryFromReader(msg, reader);
1924
+ };
1925
+
1926
+
1927
+ /**
1928
+ * Deserializes binary data (in protobuf wire format) from the
1929
+ * given reader into the given message object.
1930
+ * @param {!proto.ondewo.nlu.NotificationFilter} msg The message object to deserialize into.
1931
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
1932
+ * @return {!proto.ondewo.nlu.NotificationFilter}
1933
+ */
1934
+ proto.ondewo.nlu.NotificationFilter.deserializeBinaryFromReader = function(msg, reader) {
1935
+ while (reader.nextField()) {
1936
+ if (reader.isEndGroup()) {
1937
+ break;
1938
+ }
1939
+ var field = reader.getFieldNumber();
1940
+ switch (field) {
1941
+ case 1:
1942
+ var value = /** @type {string} */ (reader.readString());
1943
+ msg.addLanguageCodes(value);
1944
+ break;
1945
+ case 2:
1946
+ var values = /** @type {!Array<!proto.ondewo.nlu.NotificationOrigin>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]);
1947
+ for (var i = 0; i < values.length; i++) {
1948
+ msg.addNotificationOrigins(values[i]);
1949
+ }
1950
+ break;
1951
+ case 3:
1952
+ var values = /** @type {!Array<!proto.ondewo.nlu.NotificationVisibility>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]);
1953
+ for (var i = 0; i < values.length; i++) {
1954
+ msg.addNotificationVisibilities(values[i]);
1955
+ }
1956
+ break;
1957
+ case 4:
1958
+ var values = /** @type {!Array<!proto.ondewo.nlu.NotificationFlaggedStatus>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]);
1959
+ for (var i = 0; i < values.length; i++) {
1960
+ msg.addNotificationFlaggedStatus(values[i]);
1961
+ }
1962
+ break;
1963
+ case 5:
1964
+ var values = /** @type {!Array<!proto.ondewo.nlu.NotificationReadStatus>} */ (reader.isDelimited() ? reader.readPackedEnum() : [reader.readEnum()]);
1965
+ for (var i = 0; i < values.length; i++) {
1966
+ msg.addNotificationReadStatus(values[i]);
1967
+ }
1968
+ break;
1969
+ case 6:
1970
+ var value = new google_protobuf_timestamp_pb.Timestamp;
1971
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
1972
+ msg.setEarliest(value);
1973
+ break;
1974
+ case 7:
1975
+ var value = new google_protobuf_timestamp_pb.Timestamp;
1976
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
1977
+ msg.setLatest(value);
1978
+ break;
1979
+ case 8:
1980
+ var value = /** @type {string} */ (reader.readString());
1981
+ msg.addUserNames(value);
1982
+ break;
1983
+ case 9:
1984
+ var value = /** @type {string} */ (reader.readString());
1985
+ msg.addOriginNames(value);
1986
+ break;
1987
+ default:
1988
+ reader.skipField();
1989
+ break;
1990
+ }
1991
+ }
1992
+ return msg;
1993
+ };
1994
+
1995
+
1996
+ /**
1997
+ * Serializes the message to binary data (in protobuf wire format).
1998
+ * @return {!Uint8Array}
1999
+ */
2000
+ proto.ondewo.nlu.NotificationFilter.prototype.serializeBinary = function() {
2001
+ var writer = new jspb.BinaryWriter();
2002
+ proto.ondewo.nlu.NotificationFilter.serializeBinaryToWriter(this, writer);
2003
+ return writer.getResultBuffer();
2004
+ };
2005
+
2006
+
2007
+ /**
2008
+ * Serializes the given message to binary data (in protobuf wire
2009
+ * format), writing to the given BinaryWriter.
2010
+ * @param {!proto.ondewo.nlu.NotificationFilter} message
2011
+ * @param {!jspb.BinaryWriter} writer
2012
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2013
+ */
2014
+ proto.ondewo.nlu.NotificationFilter.serializeBinaryToWriter = function(message, writer) {
2015
+ var f = undefined;
2016
+ f = message.getLanguageCodesList();
2017
+ if (f.length > 0) {
2018
+ writer.writeRepeatedString(
2019
+ 1,
2020
+ f
2021
+ );
2022
+ }
2023
+ f = message.getNotificationOriginsList();
2024
+ if (f.length > 0) {
2025
+ writer.writePackedEnum(
2026
+ 2,
2027
+ f
2028
+ );
2029
+ }
2030
+ f = message.getNotificationVisibilitiesList();
2031
+ if (f.length > 0) {
2032
+ writer.writePackedEnum(
2033
+ 3,
2034
+ f
2035
+ );
2036
+ }
2037
+ f = message.getNotificationFlaggedStatusList();
2038
+ if (f.length > 0) {
2039
+ writer.writePackedEnum(
2040
+ 4,
2041
+ f
2042
+ );
2043
+ }
2044
+ f = message.getNotificationReadStatusList();
2045
+ if (f.length > 0) {
2046
+ writer.writePackedEnum(
2047
+ 5,
2048
+ f
2049
+ );
2050
+ }
2051
+ f = message.getEarliest();
2052
+ if (f != null) {
2053
+ writer.writeMessage(
2054
+ 6,
2055
+ f,
2056
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
2057
+ );
2058
+ }
2059
+ f = message.getLatest();
2060
+ if (f != null) {
2061
+ writer.writeMessage(
2062
+ 7,
2063
+ f,
2064
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
2065
+ );
2066
+ }
2067
+ f = message.getUserNamesList();
2068
+ if (f.length > 0) {
2069
+ writer.writeRepeatedString(
2070
+ 8,
2071
+ f
2072
+ );
2073
+ }
2074
+ f = message.getOriginNamesList();
2075
+ if (f.length > 0) {
2076
+ writer.writeRepeatedString(
2077
+ 9,
2078
+ f
2079
+ );
2080
+ }
2081
+ };
2082
+
2083
+
2084
+ /**
2085
+ * repeated string language_codes = 1;
2086
+ * @return {!Array<string>}
2087
+ */
2088
+ proto.ondewo.nlu.NotificationFilter.prototype.getLanguageCodesList = function() {
2089
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
2090
+ };
2091
+
2092
+
2093
+ /**
2094
+ * @param {!Array<string>} value
2095
+ * @return {!proto.ondewo.nlu.NotificationFilter} returns this
2096
+ */
2097
+ proto.ondewo.nlu.NotificationFilter.prototype.setLanguageCodesList = function(value) {
2098
+ return jspb.Message.setField(this, 1, value || []);
2099
+ };
2100
+
2101
+
2102
+ /**
2103
+ * @param {string} value
2104
+ * @param {number=} opt_index
2105
+ * @return {!proto.ondewo.nlu.NotificationFilter} returns this
2106
+ */
2107
+ proto.ondewo.nlu.NotificationFilter.prototype.addLanguageCodes = function(value, opt_index) {
2108
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
2109
+ };
2110
+
2111
+
2112
+ /**
2113
+ * Clears the list making it empty but non-null.
2114
+ * @return {!proto.ondewo.nlu.NotificationFilter} returns this
2115
+ */
2116
+ proto.ondewo.nlu.NotificationFilter.prototype.clearLanguageCodesList = function() {
2117
+ return this.setLanguageCodesList([]);
2118
+ };
2119
+
2120
+
2121
+ /**
2122
+ * repeated NotificationOrigin notification_origins = 2;
2123
+ * @return {!Array<!proto.ondewo.nlu.NotificationOrigin>}
2124
+ */
2125
+ proto.ondewo.nlu.NotificationFilter.prototype.getNotificationOriginsList = function() {
2126
+ return /** @type {!Array<!proto.ondewo.nlu.NotificationOrigin>} */ (jspb.Message.getRepeatedField(this, 2));
2127
+ };
2128
+
2129
+
2130
+ /**
2131
+ * @param {!Array<!proto.ondewo.nlu.NotificationOrigin>} value
2132
+ * @return {!proto.ondewo.nlu.NotificationFilter} returns this
2133
+ */
2134
+ proto.ondewo.nlu.NotificationFilter.prototype.setNotificationOriginsList = function(value) {
2135
+ return jspb.Message.setField(this, 2, value || []);
2136
+ };
2137
+
2138
+
2139
+ /**
2140
+ * @param {!proto.ondewo.nlu.NotificationOrigin} value
2141
+ * @param {number=} opt_index
2142
+ * @return {!proto.ondewo.nlu.NotificationFilter} returns this
2143
+ */
2144
+ proto.ondewo.nlu.NotificationFilter.prototype.addNotificationOrigins = function(value, opt_index) {
2145
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
2146
+ };
2147
+
2148
+
2149
+ /**
2150
+ * Clears the list making it empty but non-null.
2151
+ * @return {!proto.ondewo.nlu.NotificationFilter} returns this
2152
+ */
2153
+ proto.ondewo.nlu.NotificationFilter.prototype.clearNotificationOriginsList = function() {
2154
+ return this.setNotificationOriginsList([]);
2155
+ };
2156
+
2157
+
2158
+ /**
2159
+ * repeated NotificationVisibility notification_visibilities = 3;
2160
+ * @return {!Array<!proto.ondewo.nlu.NotificationVisibility>}
2161
+ */
2162
+ proto.ondewo.nlu.NotificationFilter.prototype.getNotificationVisibilitiesList = function() {
2163
+ return /** @type {!Array<!proto.ondewo.nlu.NotificationVisibility>} */ (jspb.Message.getRepeatedField(this, 3));
2164
+ };
2165
+
2166
+
2167
+ /**
2168
+ * @param {!Array<!proto.ondewo.nlu.NotificationVisibility>} value
2169
+ * @return {!proto.ondewo.nlu.NotificationFilter} returns this
2170
+ */
2171
+ proto.ondewo.nlu.NotificationFilter.prototype.setNotificationVisibilitiesList = function(value) {
2172
+ return jspb.Message.setField(this, 3, value || []);
2173
+ };
2174
+
2175
+
2176
+ /**
2177
+ * @param {!proto.ondewo.nlu.NotificationVisibility} value
2178
+ * @param {number=} opt_index
2179
+ * @return {!proto.ondewo.nlu.NotificationFilter} returns this
2180
+ */
2181
+ proto.ondewo.nlu.NotificationFilter.prototype.addNotificationVisibilities = function(value, opt_index) {
2182
+ return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
2183
+ };
2184
+
2185
+
2186
+ /**
2187
+ * Clears the list making it empty but non-null.
2188
+ * @return {!proto.ondewo.nlu.NotificationFilter} returns this
2189
+ */
2190
+ proto.ondewo.nlu.NotificationFilter.prototype.clearNotificationVisibilitiesList = function() {
2191
+ return this.setNotificationVisibilitiesList([]);
2192
+ };
2193
+
2194
+
2195
+ /**
2196
+ * repeated NotificationFlaggedStatus notification_flagged_status = 4;
2197
+ * @return {!Array<!proto.ondewo.nlu.NotificationFlaggedStatus>}
2198
+ */
2199
+ proto.ondewo.nlu.NotificationFilter.prototype.getNotificationFlaggedStatusList = function() {
2200
+ return /** @type {!Array<!proto.ondewo.nlu.NotificationFlaggedStatus>} */ (jspb.Message.getRepeatedField(this, 4));
2201
+ };
2202
+
2203
+
2204
+ /**
2205
+ * @param {!Array<!proto.ondewo.nlu.NotificationFlaggedStatus>} value
2206
+ * @return {!proto.ondewo.nlu.NotificationFilter} returns this
2207
+ */
2208
+ proto.ondewo.nlu.NotificationFilter.prototype.setNotificationFlaggedStatusList = function(value) {
2209
+ return jspb.Message.setField(this, 4, value || []);
2210
+ };
2211
+
2212
+
2213
+ /**
2214
+ * @param {!proto.ondewo.nlu.NotificationFlaggedStatus} value
2215
+ * @param {number=} opt_index
2216
+ * @return {!proto.ondewo.nlu.NotificationFilter} returns this
2217
+ */
2218
+ proto.ondewo.nlu.NotificationFilter.prototype.addNotificationFlaggedStatus = function(value, opt_index) {
2219
+ return jspb.Message.addToRepeatedField(this, 4, value, opt_index);
2220
+ };
2221
+
2222
+
2223
+ /**
2224
+ * Clears the list making it empty but non-null.
2225
+ * @return {!proto.ondewo.nlu.NotificationFilter} returns this
2226
+ */
2227
+ proto.ondewo.nlu.NotificationFilter.prototype.clearNotificationFlaggedStatusList = function() {
2228
+ return this.setNotificationFlaggedStatusList([]);
2229
+ };
2230
+
2231
+
2232
+ /**
2233
+ * repeated NotificationReadStatus notification_read_status = 5;
2234
+ * @return {!Array<!proto.ondewo.nlu.NotificationReadStatus>}
2235
+ */
2236
+ proto.ondewo.nlu.NotificationFilter.prototype.getNotificationReadStatusList = function() {
2237
+ return /** @type {!Array<!proto.ondewo.nlu.NotificationReadStatus>} */ (jspb.Message.getRepeatedField(this, 5));
2238
+ };
2239
+
2240
+
2241
+ /**
2242
+ * @param {!Array<!proto.ondewo.nlu.NotificationReadStatus>} value
2243
+ * @return {!proto.ondewo.nlu.NotificationFilter} returns this
2244
+ */
2245
+ proto.ondewo.nlu.NotificationFilter.prototype.setNotificationReadStatusList = function(value) {
2246
+ return jspb.Message.setField(this, 5, value || []);
2247
+ };
2248
+
2249
+
2250
+ /**
2251
+ * @param {!proto.ondewo.nlu.NotificationReadStatus} value
2252
+ * @param {number=} opt_index
2253
+ * @return {!proto.ondewo.nlu.NotificationFilter} returns this
2254
+ */
2255
+ proto.ondewo.nlu.NotificationFilter.prototype.addNotificationReadStatus = function(value, opt_index) {
2256
+ return jspb.Message.addToRepeatedField(this, 5, value, opt_index);
2257
+ };
2258
+
2259
+
2260
+ /**
2261
+ * Clears the list making it empty but non-null.
2262
+ * @return {!proto.ondewo.nlu.NotificationFilter} returns this
2263
+ */
2264
+ proto.ondewo.nlu.NotificationFilter.prototype.clearNotificationReadStatusList = function() {
2265
+ return this.setNotificationReadStatusList([]);
2266
+ };
2267
+
2268
+
2269
+ /**
2270
+ * optional google.protobuf.Timestamp earliest = 6;
2271
+ * @return {?proto.google.protobuf.Timestamp}
2272
+ */
2273
+ proto.ondewo.nlu.NotificationFilter.prototype.getEarliest = function() {
2274
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
2275
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6));
2276
+ };
2277
+
2278
+
2279
+ /**
2280
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
2281
+ * @return {!proto.ondewo.nlu.NotificationFilter} returns this
2282
+ */
2283
+ proto.ondewo.nlu.NotificationFilter.prototype.setEarliest = function(value) {
2284
+ return jspb.Message.setWrapperField(this, 6, value);
2285
+ };
2286
+
2287
+
2288
+ /**
2289
+ * Clears the message field making it undefined.
2290
+ * @return {!proto.ondewo.nlu.NotificationFilter} returns this
2291
+ */
2292
+ proto.ondewo.nlu.NotificationFilter.prototype.clearEarliest = function() {
2293
+ return this.setEarliest(undefined);
2294
+ };
2295
+
2296
+
2297
+ /**
2298
+ * Returns whether this field is set.
2299
+ * @return {boolean}
2300
+ */
2301
+ proto.ondewo.nlu.NotificationFilter.prototype.hasEarliest = function() {
2302
+ return jspb.Message.getField(this, 6) != null;
2303
+ };
2304
+
2305
+
2306
+ /**
2307
+ * optional google.protobuf.Timestamp latest = 7;
2308
+ * @return {?proto.google.protobuf.Timestamp}
2309
+ */
2310
+ proto.ondewo.nlu.NotificationFilter.prototype.getLatest = function() {
2311
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
2312
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 7));
2313
+ };
2314
+
2315
+
2316
+ /**
2317
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
2318
+ * @return {!proto.ondewo.nlu.NotificationFilter} returns this
2319
+ */
2320
+ proto.ondewo.nlu.NotificationFilter.prototype.setLatest = function(value) {
2321
+ return jspb.Message.setWrapperField(this, 7, value);
2322
+ };
2323
+
2324
+
2325
+ /**
2326
+ * Clears the message field making it undefined.
2327
+ * @return {!proto.ondewo.nlu.NotificationFilter} returns this
2328
+ */
2329
+ proto.ondewo.nlu.NotificationFilter.prototype.clearLatest = function() {
2330
+ return this.setLatest(undefined);
2331
+ };
2332
+
2333
+
2334
+ /**
2335
+ * Returns whether this field is set.
2336
+ * @return {boolean}
2337
+ */
2338
+ proto.ondewo.nlu.NotificationFilter.prototype.hasLatest = function() {
2339
+ return jspb.Message.getField(this, 7) != null;
2340
+ };
2341
+
2342
+
2343
+ /**
2344
+ * repeated string user_names = 8;
2345
+ * @return {!Array<string>}
2346
+ */
2347
+ proto.ondewo.nlu.NotificationFilter.prototype.getUserNamesList = function() {
2348
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 8));
2349
+ };
2350
+
2351
+
2352
+ /**
2353
+ * @param {!Array<string>} value
2354
+ * @return {!proto.ondewo.nlu.NotificationFilter} returns this
2355
+ */
2356
+ proto.ondewo.nlu.NotificationFilter.prototype.setUserNamesList = function(value) {
2357
+ return jspb.Message.setField(this, 8, value || []);
2358
+ };
2359
+
2360
+
2361
+ /**
2362
+ * @param {string} value
2363
+ * @param {number=} opt_index
2364
+ * @return {!proto.ondewo.nlu.NotificationFilter} returns this
2365
+ */
2366
+ proto.ondewo.nlu.NotificationFilter.prototype.addUserNames = function(value, opt_index) {
2367
+ return jspb.Message.addToRepeatedField(this, 8, value, opt_index);
2368
+ };
2369
+
2370
+
2371
+ /**
2372
+ * Clears the list making it empty but non-null.
2373
+ * @return {!proto.ondewo.nlu.NotificationFilter} returns this
2374
+ */
2375
+ proto.ondewo.nlu.NotificationFilter.prototype.clearUserNamesList = function() {
2376
+ return this.setUserNamesList([]);
2377
+ };
2378
+
2379
+
2380
+ /**
2381
+ * repeated string origin_names = 9;
2382
+ * @return {!Array<string>}
2383
+ */
2384
+ proto.ondewo.nlu.NotificationFilter.prototype.getOriginNamesList = function() {
2385
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 9));
2386
+ };
2387
+
2388
+
2389
+ /**
2390
+ * @param {!Array<string>} value
2391
+ * @return {!proto.ondewo.nlu.NotificationFilter} returns this
2392
+ */
2393
+ proto.ondewo.nlu.NotificationFilter.prototype.setOriginNamesList = function(value) {
2394
+ return jspb.Message.setField(this, 9, value || []);
2395
+ };
2396
+
2397
+
2398
+ /**
2399
+ * @param {string} value
2400
+ * @param {number=} opt_index
2401
+ * @return {!proto.ondewo.nlu.NotificationFilter} returns this
2402
+ */
2403
+ proto.ondewo.nlu.NotificationFilter.prototype.addOriginNames = function(value, opt_index) {
2404
+ return jspb.Message.addToRepeatedField(this, 9, value, opt_index);
2405
+ };
2406
+
2407
+
2408
+ /**
2409
+ * Clears the list making it empty but non-null.
2410
+ * @return {!proto.ondewo.nlu.NotificationFilter} returns this
2411
+ */
2412
+ proto.ondewo.nlu.NotificationFilter.prototype.clearOriginNamesList = function() {
2413
+ return this.setOriginNamesList([]);
2414
+ };
2415
+
2416
+
2417
+
2418
+
2419
+
2420
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2421
+ /**
2422
+ * Creates an object representation of this proto.
2423
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2424
+ * Optional fields that are not set will be set to undefined.
2425
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2426
+ * For the list of reserved names please see:
2427
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2428
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2429
+ * JSPB instance for transitional soy proto support:
2430
+ * http://goto/soy-param-migration
2431
+ * @return {!Object}
2432
+ */
2433
+ proto.ondewo.nlu.ListNotificationsRequest.prototype.toObject = function(opt_includeInstance) {
2434
+ return proto.ondewo.nlu.ListNotificationsRequest.toObject(opt_includeInstance, this);
2435
+ };
2436
+
2437
+
2438
+ /**
2439
+ * Static version of the {@see toObject} method.
2440
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2441
+ * the JSPB instance for transitional soy proto support:
2442
+ * http://goto/soy-param-migration
2443
+ * @param {!proto.ondewo.nlu.ListNotificationsRequest} msg The msg instance to transform.
2444
+ * @return {!Object}
2445
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2446
+ */
2447
+ proto.ondewo.nlu.ListNotificationsRequest.toObject = function(includeInstance, msg) {
2448
+ var f, obj = {
2449
+ notificationFilter: (f = msg.getNotificationFilter()) && proto.ondewo.nlu.NotificationFilter.toObject(includeInstance, f),
2450
+ pageToken: jspb.Message.getFieldWithDefault(msg, 2, ""),
2451
+ fieldMask: (f = msg.getFieldMask()) && google_protobuf_field_mask_pb.FieldMask.toObject(includeInstance, f)
2452
+ };
2453
+
2454
+ if (includeInstance) {
2455
+ obj.$jspbMessageInstance = msg;
2456
+ }
2457
+ return obj;
2458
+ };
2459
+ }
2460
+
2461
+
2462
+ /**
2463
+ * Deserializes binary data (in protobuf wire format).
2464
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2465
+ * @return {!proto.ondewo.nlu.ListNotificationsRequest}
2466
+ */
2467
+ proto.ondewo.nlu.ListNotificationsRequest.deserializeBinary = function(bytes) {
2468
+ var reader = new jspb.BinaryReader(bytes);
2469
+ var msg = new proto.ondewo.nlu.ListNotificationsRequest;
2470
+ return proto.ondewo.nlu.ListNotificationsRequest.deserializeBinaryFromReader(msg, reader);
2471
+ };
2472
+
2473
+
2474
+ /**
2475
+ * Deserializes binary data (in protobuf wire format) from the
2476
+ * given reader into the given message object.
2477
+ * @param {!proto.ondewo.nlu.ListNotificationsRequest} msg The message object to deserialize into.
2478
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2479
+ * @return {!proto.ondewo.nlu.ListNotificationsRequest}
2480
+ */
2481
+ proto.ondewo.nlu.ListNotificationsRequest.deserializeBinaryFromReader = function(msg, reader) {
2482
+ while (reader.nextField()) {
2483
+ if (reader.isEndGroup()) {
2484
+ break;
2485
+ }
2486
+ var field = reader.getFieldNumber();
2487
+ switch (field) {
2488
+ case 1:
2489
+ var value = new proto.ondewo.nlu.NotificationFilter;
2490
+ reader.readMessage(value,proto.ondewo.nlu.NotificationFilter.deserializeBinaryFromReader);
2491
+ msg.setNotificationFilter(value);
2492
+ break;
2493
+ case 2:
2494
+ var value = /** @type {string} */ (reader.readString());
2495
+ msg.setPageToken(value);
2496
+ break;
2497
+ case 3:
2498
+ var value = new google_protobuf_field_mask_pb.FieldMask;
2499
+ reader.readMessage(value,google_protobuf_field_mask_pb.FieldMask.deserializeBinaryFromReader);
2500
+ msg.setFieldMask(value);
2501
+ break;
2502
+ default:
2503
+ reader.skipField();
2504
+ break;
2505
+ }
2506
+ }
2507
+ return msg;
2508
+ };
2509
+
2510
+
2511
+ /**
2512
+ * Serializes the message to binary data (in protobuf wire format).
2513
+ * @return {!Uint8Array}
2514
+ */
2515
+ proto.ondewo.nlu.ListNotificationsRequest.prototype.serializeBinary = function() {
2516
+ var writer = new jspb.BinaryWriter();
2517
+ proto.ondewo.nlu.ListNotificationsRequest.serializeBinaryToWriter(this, writer);
2518
+ return writer.getResultBuffer();
2519
+ };
2520
+
2521
+
2522
+ /**
2523
+ * Serializes the given message to binary data (in protobuf wire
2524
+ * format), writing to the given BinaryWriter.
2525
+ * @param {!proto.ondewo.nlu.ListNotificationsRequest} message
2526
+ * @param {!jspb.BinaryWriter} writer
2527
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2528
+ */
2529
+ proto.ondewo.nlu.ListNotificationsRequest.serializeBinaryToWriter = function(message, writer) {
2530
+ var f = undefined;
2531
+ f = message.getNotificationFilter();
2532
+ if (f != null) {
2533
+ writer.writeMessage(
2534
+ 1,
2535
+ f,
2536
+ proto.ondewo.nlu.NotificationFilter.serializeBinaryToWriter
2537
+ );
2538
+ }
2539
+ f = message.getPageToken();
2540
+ if (f.length > 0) {
2541
+ writer.writeString(
2542
+ 2,
2543
+ f
2544
+ );
2545
+ }
2546
+ f = message.getFieldMask();
2547
+ if (f != null) {
2548
+ writer.writeMessage(
2549
+ 3,
2550
+ f,
2551
+ google_protobuf_field_mask_pb.FieldMask.serializeBinaryToWriter
2552
+ );
2553
+ }
2554
+ };
2555
+
2556
+
2557
+ /**
2558
+ * optional NotificationFilter notification_filter = 1;
2559
+ * @return {?proto.ondewo.nlu.NotificationFilter}
2560
+ */
2561
+ proto.ondewo.nlu.ListNotificationsRequest.prototype.getNotificationFilter = function() {
2562
+ return /** @type{?proto.ondewo.nlu.NotificationFilter} */ (
2563
+ jspb.Message.getWrapperField(this, proto.ondewo.nlu.NotificationFilter, 1));
2564
+ };
2565
+
2566
+
2567
+ /**
2568
+ * @param {?proto.ondewo.nlu.NotificationFilter|undefined} value
2569
+ * @return {!proto.ondewo.nlu.ListNotificationsRequest} returns this
2570
+ */
2571
+ proto.ondewo.nlu.ListNotificationsRequest.prototype.setNotificationFilter = function(value) {
2572
+ return jspb.Message.setWrapperField(this, 1, value);
2573
+ };
2574
+
2575
+
2576
+ /**
2577
+ * Clears the message field making it undefined.
2578
+ * @return {!proto.ondewo.nlu.ListNotificationsRequest} returns this
2579
+ */
2580
+ proto.ondewo.nlu.ListNotificationsRequest.prototype.clearNotificationFilter = function() {
2581
+ return this.setNotificationFilter(undefined);
2582
+ };
2583
+
2584
+
2585
+ /**
2586
+ * Returns whether this field is set.
2587
+ * @return {boolean}
2588
+ */
2589
+ proto.ondewo.nlu.ListNotificationsRequest.prototype.hasNotificationFilter = function() {
2590
+ return jspb.Message.getField(this, 1) != null;
2591
+ };
2592
+
2593
+
2594
+ /**
2595
+ * optional string page_token = 2;
2596
+ * @return {string}
2597
+ */
2598
+ proto.ondewo.nlu.ListNotificationsRequest.prototype.getPageToken = function() {
2599
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
2600
+ };
2601
+
2602
+
2603
+ /**
2604
+ * @param {string} value
2605
+ * @return {!proto.ondewo.nlu.ListNotificationsRequest} returns this
2606
+ */
2607
+ proto.ondewo.nlu.ListNotificationsRequest.prototype.setPageToken = function(value) {
2608
+ return jspb.Message.setProto3StringField(this, 2, value);
2609
+ };
2610
+
2611
+
2612
+ /**
2613
+ * optional google.protobuf.FieldMask field_mask = 3;
2614
+ * @return {?proto.google.protobuf.FieldMask}
2615
+ */
2616
+ proto.ondewo.nlu.ListNotificationsRequest.prototype.getFieldMask = function() {
2617
+ return /** @type{?proto.google.protobuf.FieldMask} */ (
2618
+ jspb.Message.getWrapperField(this, google_protobuf_field_mask_pb.FieldMask, 3));
2619
+ };
2620
+
2621
+
2622
+ /**
2623
+ * @param {?proto.google.protobuf.FieldMask|undefined} value
2624
+ * @return {!proto.ondewo.nlu.ListNotificationsRequest} returns this
2625
+ */
2626
+ proto.ondewo.nlu.ListNotificationsRequest.prototype.setFieldMask = function(value) {
2627
+ return jspb.Message.setWrapperField(this, 3, value);
2628
+ };
2629
+
2630
+
2631
+ /**
2632
+ * Clears the message field making it undefined.
2633
+ * @return {!proto.ondewo.nlu.ListNotificationsRequest} returns this
2634
+ */
2635
+ proto.ondewo.nlu.ListNotificationsRequest.prototype.clearFieldMask = function() {
2636
+ return this.setFieldMask(undefined);
2637
+ };
2638
+
2639
+
2640
+ /**
2641
+ * Returns whether this field is set.
2642
+ * @return {boolean}
2643
+ */
2644
+ proto.ondewo.nlu.ListNotificationsRequest.prototype.hasFieldMask = function() {
2645
+ return jspb.Message.getField(this, 3) != null;
2646
+ };
2647
+
2648
+
2649
+
2650
+ /**
2651
+ * List of repeated fields within this message type.
2652
+ * @private {!Array<number>}
2653
+ * @const
2654
+ */
2655
+ proto.ondewo.nlu.ListNotificationsResponse.repeatedFields_ = [1];
2656
+
2657
+
2658
+
2659
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2660
+ /**
2661
+ * Creates an object representation of this proto.
2662
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2663
+ * Optional fields that are not set will be set to undefined.
2664
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2665
+ * For the list of reserved names please see:
2666
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2667
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2668
+ * JSPB instance for transitional soy proto support:
2669
+ * http://goto/soy-param-migration
2670
+ * @return {!Object}
2671
+ */
2672
+ proto.ondewo.nlu.ListNotificationsResponse.prototype.toObject = function(opt_includeInstance) {
2673
+ return proto.ondewo.nlu.ListNotificationsResponse.toObject(opt_includeInstance, this);
2674
+ };
2675
+
2676
+
2677
+ /**
2678
+ * Static version of the {@see toObject} method.
2679
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2680
+ * the JSPB instance for transitional soy proto support:
2681
+ * http://goto/soy-param-migration
2682
+ * @param {!proto.ondewo.nlu.ListNotificationsResponse} msg The msg instance to transform.
2683
+ * @return {!Object}
2684
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2685
+ */
2686
+ proto.ondewo.nlu.ListNotificationsResponse.toObject = function(includeInstance, msg) {
2687
+ var f, obj = {
2688
+ notificationList: jspb.Message.toObjectList(msg.getNotificationList(),
2689
+ proto.ondewo.nlu.Notification.toObject, includeInstance)
2690
+ };
2691
+
2692
+ if (includeInstance) {
2693
+ obj.$jspbMessageInstance = msg;
2694
+ }
2695
+ return obj;
2696
+ };
2697
+ }
2698
+
2699
+
2700
+ /**
2701
+ * Deserializes binary data (in protobuf wire format).
2702
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2703
+ * @return {!proto.ondewo.nlu.ListNotificationsResponse}
2704
+ */
2705
+ proto.ondewo.nlu.ListNotificationsResponse.deserializeBinary = function(bytes) {
2706
+ var reader = new jspb.BinaryReader(bytes);
2707
+ var msg = new proto.ondewo.nlu.ListNotificationsResponse;
2708
+ return proto.ondewo.nlu.ListNotificationsResponse.deserializeBinaryFromReader(msg, reader);
2709
+ };
2710
+
2711
+
2712
+ /**
2713
+ * Deserializes binary data (in protobuf wire format) from the
2714
+ * given reader into the given message object.
2715
+ * @param {!proto.ondewo.nlu.ListNotificationsResponse} msg The message object to deserialize into.
2716
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2717
+ * @return {!proto.ondewo.nlu.ListNotificationsResponse}
2718
+ */
2719
+ proto.ondewo.nlu.ListNotificationsResponse.deserializeBinaryFromReader = function(msg, reader) {
2720
+ while (reader.nextField()) {
2721
+ if (reader.isEndGroup()) {
2722
+ break;
2723
+ }
2724
+ var field = reader.getFieldNumber();
2725
+ switch (field) {
2726
+ case 1:
2727
+ var value = new proto.ondewo.nlu.Notification;
2728
+ reader.readMessage(value,proto.ondewo.nlu.Notification.deserializeBinaryFromReader);
2729
+ msg.addNotification(value);
2730
+ break;
2731
+ default:
2732
+ reader.skipField();
2733
+ break;
2734
+ }
2735
+ }
2736
+ return msg;
2737
+ };
2738
+
2739
+
2740
+ /**
2741
+ * Serializes the message to binary data (in protobuf wire format).
2742
+ * @return {!Uint8Array}
2743
+ */
2744
+ proto.ondewo.nlu.ListNotificationsResponse.prototype.serializeBinary = function() {
2745
+ var writer = new jspb.BinaryWriter();
2746
+ proto.ondewo.nlu.ListNotificationsResponse.serializeBinaryToWriter(this, writer);
2747
+ return writer.getResultBuffer();
2748
+ };
2749
+
2750
+
2751
+ /**
2752
+ * Serializes the given message to binary data (in protobuf wire
2753
+ * format), writing to the given BinaryWriter.
2754
+ * @param {!proto.ondewo.nlu.ListNotificationsResponse} message
2755
+ * @param {!jspb.BinaryWriter} writer
2756
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2757
+ */
2758
+ proto.ondewo.nlu.ListNotificationsResponse.serializeBinaryToWriter = function(message, writer) {
2759
+ var f = undefined;
2760
+ f = message.getNotificationList();
2761
+ if (f.length > 0) {
2762
+ writer.writeRepeatedMessage(
2763
+ 1,
2764
+ f,
2765
+ proto.ondewo.nlu.Notification.serializeBinaryToWriter
2766
+ );
2767
+ }
2768
+ };
2769
+
2770
+
2771
+ /**
2772
+ * repeated Notification notification = 1;
2773
+ * @return {!Array<!proto.ondewo.nlu.Notification>}
2774
+ */
2775
+ proto.ondewo.nlu.ListNotificationsResponse.prototype.getNotificationList = function() {
2776
+ return /** @type{!Array<!proto.ondewo.nlu.Notification>} */ (
2777
+ jspb.Message.getRepeatedWrapperField(this, proto.ondewo.nlu.Notification, 1));
2778
+ };
2779
+
2780
+
2781
+ /**
2782
+ * @param {!Array<!proto.ondewo.nlu.Notification>} value
2783
+ * @return {!proto.ondewo.nlu.ListNotificationsResponse} returns this
2784
+ */
2785
+ proto.ondewo.nlu.ListNotificationsResponse.prototype.setNotificationList = function(value) {
2786
+ return jspb.Message.setRepeatedWrapperField(this, 1, value);
2787
+ };
2788
+
2789
+
2790
+ /**
2791
+ * @param {!proto.ondewo.nlu.Notification=} opt_value
2792
+ * @param {number=} opt_index
2793
+ * @return {!proto.ondewo.nlu.Notification}
2794
+ */
2795
+ proto.ondewo.nlu.ListNotificationsResponse.prototype.addNotification = function(opt_value, opt_index) {
2796
+ return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.ondewo.nlu.Notification, opt_index);
2797
+ };
2798
+
2799
+
2800
+ /**
2801
+ * Clears the list making it empty but non-null.
2802
+ * @return {!proto.ondewo.nlu.ListNotificationsResponse} returns this
2803
+ */
2804
+ proto.ondewo.nlu.ListNotificationsResponse.prototype.clearNotificationList = function() {
2805
+ return this.setNotificationList([]);
2806
+ };
2807
+
2808
+
2809
+
2810
+ /**
2811
+ * List of repeated fields within this message type.
2812
+ * @private {!Array<number>}
2813
+ * @const
2814
+ */
2815
+ proto.ondewo.nlu.SetNotificationsFlaggedStatusRequest.repeatedFields_ = [1,2];
2816
+
2817
+
2818
+
2819
+ if (jspb.Message.GENERATE_TO_OBJECT) {
2820
+ /**
2821
+ * Creates an object representation of this proto.
2822
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
2823
+ * Optional fields that are not set will be set to undefined.
2824
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
2825
+ * For the list of reserved names please see:
2826
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
2827
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
2828
+ * JSPB instance for transitional soy proto support:
2829
+ * http://goto/soy-param-migration
2830
+ * @return {!Object}
2831
+ */
2832
+ proto.ondewo.nlu.SetNotificationsFlaggedStatusRequest.prototype.toObject = function(opt_includeInstance) {
2833
+ return proto.ondewo.nlu.SetNotificationsFlaggedStatusRequest.toObject(opt_includeInstance, this);
2834
+ };
2835
+
2836
+
2837
+ /**
2838
+ * Static version of the {@see toObject} method.
2839
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
2840
+ * the JSPB instance for transitional soy proto support:
2841
+ * http://goto/soy-param-migration
2842
+ * @param {!proto.ondewo.nlu.SetNotificationsFlaggedStatusRequest} msg The msg instance to transform.
2843
+ * @return {!Object}
2844
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2845
+ */
2846
+ proto.ondewo.nlu.SetNotificationsFlaggedStatusRequest.toObject = function(includeInstance, msg) {
2847
+ var f, obj = {
2848
+ notificationNameList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
2849
+ flaggedList: (f = jspb.Message.getRepeatedBooleanField(msg, 2)) == null ? undefined : f
2850
+ };
2851
+
2852
+ if (includeInstance) {
2853
+ obj.$jspbMessageInstance = msg;
2854
+ }
2855
+ return obj;
2856
+ };
2857
+ }
2858
+
2859
+
2860
+ /**
2861
+ * Deserializes binary data (in protobuf wire format).
2862
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
2863
+ * @return {!proto.ondewo.nlu.SetNotificationsFlaggedStatusRequest}
2864
+ */
2865
+ proto.ondewo.nlu.SetNotificationsFlaggedStatusRequest.deserializeBinary = function(bytes) {
2866
+ var reader = new jspb.BinaryReader(bytes);
2867
+ var msg = new proto.ondewo.nlu.SetNotificationsFlaggedStatusRequest;
2868
+ return proto.ondewo.nlu.SetNotificationsFlaggedStatusRequest.deserializeBinaryFromReader(msg, reader);
2869
+ };
2870
+
2871
+
2872
+ /**
2873
+ * Deserializes binary data (in protobuf wire format) from the
2874
+ * given reader into the given message object.
2875
+ * @param {!proto.ondewo.nlu.SetNotificationsFlaggedStatusRequest} msg The message object to deserialize into.
2876
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
2877
+ * @return {!proto.ondewo.nlu.SetNotificationsFlaggedStatusRequest}
2878
+ */
2879
+ proto.ondewo.nlu.SetNotificationsFlaggedStatusRequest.deserializeBinaryFromReader = function(msg, reader) {
2880
+ while (reader.nextField()) {
2881
+ if (reader.isEndGroup()) {
2882
+ break;
2883
+ }
2884
+ var field = reader.getFieldNumber();
2885
+ switch (field) {
2886
+ case 1:
2887
+ var value = /** @type {string} */ (reader.readString());
2888
+ msg.addNotificationName(value);
2889
+ break;
2890
+ case 2:
2891
+ var values = /** @type {!Array<boolean>} */ (reader.isDelimited() ? reader.readPackedBool() : [reader.readBool()]);
2892
+ for (var i = 0; i < values.length; i++) {
2893
+ msg.addFlagged(values[i]);
2894
+ }
2895
+ break;
2896
+ default:
2897
+ reader.skipField();
2898
+ break;
2899
+ }
2900
+ }
2901
+ return msg;
2902
+ };
2903
+
2904
+
2905
+ /**
2906
+ * Serializes the message to binary data (in protobuf wire format).
2907
+ * @return {!Uint8Array}
2908
+ */
2909
+ proto.ondewo.nlu.SetNotificationsFlaggedStatusRequest.prototype.serializeBinary = function() {
2910
+ var writer = new jspb.BinaryWriter();
2911
+ proto.ondewo.nlu.SetNotificationsFlaggedStatusRequest.serializeBinaryToWriter(this, writer);
2912
+ return writer.getResultBuffer();
2913
+ };
2914
+
2915
+
2916
+ /**
2917
+ * Serializes the given message to binary data (in protobuf wire
2918
+ * format), writing to the given BinaryWriter.
2919
+ * @param {!proto.ondewo.nlu.SetNotificationsFlaggedStatusRequest} message
2920
+ * @param {!jspb.BinaryWriter} writer
2921
+ * @suppress {unusedLocalVariables} f is only used for nested messages
2922
+ */
2923
+ proto.ondewo.nlu.SetNotificationsFlaggedStatusRequest.serializeBinaryToWriter = function(message, writer) {
2924
+ var f = undefined;
2925
+ f = message.getNotificationNameList();
2926
+ if (f.length > 0) {
2927
+ writer.writeRepeatedString(
2928
+ 1,
2929
+ f
2930
+ );
2931
+ }
2932
+ f = message.getFlaggedList();
2933
+ if (f.length > 0) {
2934
+ writer.writePackedBool(
2935
+ 2,
2936
+ f
2937
+ );
2938
+ }
2939
+ };
2940
+
2941
+
2942
+ /**
2943
+ * repeated string notification_name = 1;
2944
+ * @return {!Array<string>}
2945
+ */
2946
+ proto.ondewo.nlu.SetNotificationsFlaggedStatusRequest.prototype.getNotificationNameList = function() {
2947
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
2948
+ };
2949
+
2950
+
2951
+ /**
2952
+ * @param {!Array<string>} value
2953
+ * @return {!proto.ondewo.nlu.SetNotificationsFlaggedStatusRequest} returns this
2954
+ */
2955
+ proto.ondewo.nlu.SetNotificationsFlaggedStatusRequest.prototype.setNotificationNameList = function(value) {
2956
+ return jspb.Message.setField(this, 1, value || []);
2957
+ };
2958
+
2959
+
2960
+ /**
2961
+ * @param {string} value
2962
+ * @param {number=} opt_index
2963
+ * @return {!proto.ondewo.nlu.SetNotificationsFlaggedStatusRequest} returns this
2964
+ */
2965
+ proto.ondewo.nlu.SetNotificationsFlaggedStatusRequest.prototype.addNotificationName = function(value, opt_index) {
2966
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
2967
+ };
2968
+
2969
+
2970
+ /**
2971
+ * Clears the list making it empty but non-null.
2972
+ * @return {!proto.ondewo.nlu.SetNotificationsFlaggedStatusRequest} returns this
2973
+ */
2974
+ proto.ondewo.nlu.SetNotificationsFlaggedStatusRequest.prototype.clearNotificationNameList = function() {
2975
+ return this.setNotificationNameList([]);
2976
+ };
2977
+
2978
+
2979
+ /**
2980
+ * repeated bool flagged = 2;
2981
+ * @return {!Array<boolean>}
2982
+ */
2983
+ proto.ondewo.nlu.SetNotificationsFlaggedStatusRequest.prototype.getFlaggedList = function() {
2984
+ return /** @type {!Array<boolean>} */ (jspb.Message.getRepeatedBooleanField(this, 2));
2985
+ };
2986
+
2987
+
2988
+ /**
2989
+ * @param {!Array<boolean>} value
2990
+ * @return {!proto.ondewo.nlu.SetNotificationsFlaggedStatusRequest} returns this
2991
+ */
2992
+ proto.ondewo.nlu.SetNotificationsFlaggedStatusRequest.prototype.setFlaggedList = function(value) {
2993
+ return jspb.Message.setField(this, 2, value || []);
2994
+ };
2995
+
2996
+
2997
+ /**
2998
+ * @param {boolean} value
2999
+ * @param {number=} opt_index
3000
+ * @return {!proto.ondewo.nlu.SetNotificationsFlaggedStatusRequest} returns this
3001
+ */
3002
+ proto.ondewo.nlu.SetNotificationsFlaggedStatusRequest.prototype.addFlagged = function(value, opt_index) {
3003
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
3004
+ };
3005
+
3006
+
3007
+ /**
3008
+ * Clears the list making it empty but non-null.
3009
+ * @return {!proto.ondewo.nlu.SetNotificationsFlaggedStatusRequest} returns this
3010
+ */
3011
+ proto.ondewo.nlu.SetNotificationsFlaggedStatusRequest.prototype.clearFlaggedList = function() {
3012
+ return this.setFlaggedList([]);
3013
+ };
3014
+
3015
+
3016
+
3017
+ /**
3018
+ * List of repeated fields within this message type.
3019
+ * @private {!Array<number>}
3020
+ * @const
3021
+ */
3022
+ proto.ondewo.nlu.SetNotificationsReadStatusRequest.repeatedFields_ = [1,2];
3023
+
3024
+
3025
+
3026
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3027
+ /**
3028
+ * Creates an object representation of this proto.
3029
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3030
+ * Optional fields that are not set will be set to undefined.
3031
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3032
+ * For the list of reserved names please see:
3033
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3034
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3035
+ * JSPB instance for transitional soy proto support:
3036
+ * http://goto/soy-param-migration
3037
+ * @return {!Object}
3038
+ */
3039
+ proto.ondewo.nlu.SetNotificationsReadStatusRequest.prototype.toObject = function(opt_includeInstance) {
3040
+ return proto.ondewo.nlu.SetNotificationsReadStatusRequest.toObject(opt_includeInstance, this);
3041
+ };
3042
+
3043
+
3044
+ /**
3045
+ * Static version of the {@see toObject} method.
3046
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3047
+ * the JSPB instance for transitional soy proto support:
3048
+ * http://goto/soy-param-migration
3049
+ * @param {!proto.ondewo.nlu.SetNotificationsReadStatusRequest} msg The msg instance to transform.
3050
+ * @return {!Object}
3051
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3052
+ */
3053
+ proto.ondewo.nlu.SetNotificationsReadStatusRequest.toObject = function(includeInstance, msg) {
3054
+ var f, obj = {
3055
+ notificationNameList: (f = jspb.Message.getRepeatedField(msg, 1)) == null ? undefined : f,
3056
+ flaggedList: (f = jspb.Message.getRepeatedBooleanField(msg, 2)) == null ? undefined : f
3057
+ };
3058
+
3059
+ if (includeInstance) {
3060
+ obj.$jspbMessageInstance = msg;
3061
+ }
3062
+ return obj;
3063
+ };
3064
+ }
3065
+
3066
+
3067
+ /**
3068
+ * Deserializes binary data (in protobuf wire format).
3069
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3070
+ * @return {!proto.ondewo.nlu.SetNotificationsReadStatusRequest}
3071
+ */
3072
+ proto.ondewo.nlu.SetNotificationsReadStatusRequest.deserializeBinary = function(bytes) {
3073
+ var reader = new jspb.BinaryReader(bytes);
3074
+ var msg = new proto.ondewo.nlu.SetNotificationsReadStatusRequest;
3075
+ return proto.ondewo.nlu.SetNotificationsReadStatusRequest.deserializeBinaryFromReader(msg, reader);
3076
+ };
3077
+
3078
+
3079
+ /**
3080
+ * Deserializes binary data (in protobuf wire format) from the
3081
+ * given reader into the given message object.
3082
+ * @param {!proto.ondewo.nlu.SetNotificationsReadStatusRequest} msg The message object to deserialize into.
3083
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3084
+ * @return {!proto.ondewo.nlu.SetNotificationsReadStatusRequest}
3085
+ */
3086
+ proto.ondewo.nlu.SetNotificationsReadStatusRequest.deserializeBinaryFromReader = function(msg, reader) {
3087
+ while (reader.nextField()) {
3088
+ if (reader.isEndGroup()) {
3089
+ break;
3090
+ }
3091
+ var field = reader.getFieldNumber();
3092
+ switch (field) {
3093
+ case 1:
3094
+ var value = /** @type {string} */ (reader.readString());
3095
+ msg.addNotificationName(value);
3096
+ break;
3097
+ case 2:
3098
+ var values = /** @type {!Array<boolean>} */ (reader.isDelimited() ? reader.readPackedBool() : [reader.readBool()]);
3099
+ for (var i = 0; i < values.length; i++) {
3100
+ msg.addFlagged(values[i]);
3101
+ }
3102
+ break;
3103
+ default:
3104
+ reader.skipField();
3105
+ break;
3106
+ }
3107
+ }
3108
+ return msg;
3109
+ };
3110
+
3111
+
3112
+ /**
3113
+ * Serializes the message to binary data (in protobuf wire format).
3114
+ * @return {!Uint8Array}
3115
+ */
3116
+ proto.ondewo.nlu.SetNotificationsReadStatusRequest.prototype.serializeBinary = function() {
3117
+ var writer = new jspb.BinaryWriter();
3118
+ proto.ondewo.nlu.SetNotificationsReadStatusRequest.serializeBinaryToWriter(this, writer);
3119
+ return writer.getResultBuffer();
3120
+ };
3121
+
3122
+
3123
+ /**
3124
+ * Serializes the given message to binary data (in protobuf wire
3125
+ * format), writing to the given BinaryWriter.
3126
+ * @param {!proto.ondewo.nlu.SetNotificationsReadStatusRequest} message
3127
+ * @param {!jspb.BinaryWriter} writer
3128
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3129
+ */
3130
+ proto.ondewo.nlu.SetNotificationsReadStatusRequest.serializeBinaryToWriter = function(message, writer) {
3131
+ var f = undefined;
3132
+ f = message.getNotificationNameList();
3133
+ if (f.length > 0) {
3134
+ writer.writeRepeatedString(
3135
+ 1,
3136
+ f
3137
+ );
3138
+ }
3139
+ f = message.getFlaggedList();
3140
+ if (f.length > 0) {
3141
+ writer.writePackedBool(
3142
+ 2,
3143
+ f
3144
+ );
3145
+ }
3146
+ };
3147
+
3148
+
3149
+ /**
3150
+ * repeated string notification_name = 1;
3151
+ * @return {!Array<string>}
3152
+ */
3153
+ proto.ondewo.nlu.SetNotificationsReadStatusRequest.prototype.getNotificationNameList = function() {
3154
+ return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 1));
3155
+ };
3156
+
3157
+
3158
+ /**
3159
+ * @param {!Array<string>} value
3160
+ * @return {!proto.ondewo.nlu.SetNotificationsReadStatusRequest} returns this
3161
+ */
3162
+ proto.ondewo.nlu.SetNotificationsReadStatusRequest.prototype.setNotificationNameList = function(value) {
3163
+ return jspb.Message.setField(this, 1, value || []);
3164
+ };
3165
+
3166
+
3167
+ /**
3168
+ * @param {string} value
3169
+ * @param {number=} opt_index
3170
+ * @return {!proto.ondewo.nlu.SetNotificationsReadStatusRequest} returns this
3171
+ */
3172
+ proto.ondewo.nlu.SetNotificationsReadStatusRequest.prototype.addNotificationName = function(value, opt_index) {
3173
+ return jspb.Message.addToRepeatedField(this, 1, value, opt_index);
3174
+ };
3175
+
3176
+
3177
+ /**
3178
+ * Clears the list making it empty but non-null.
3179
+ * @return {!proto.ondewo.nlu.SetNotificationsReadStatusRequest} returns this
3180
+ */
3181
+ proto.ondewo.nlu.SetNotificationsReadStatusRequest.prototype.clearNotificationNameList = function() {
3182
+ return this.setNotificationNameList([]);
3183
+ };
3184
+
3185
+
3186
+ /**
3187
+ * repeated bool flagged = 2;
3188
+ * @return {!Array<boolean>}
3189
+ */
3190
+ proto.ondewo.nlu.SetNotificationsReadStatusRequest.prototype.getFlaggedList = function() {
3191
+ return /** @type {!Array<boolean>} */ (jspb.Message.getRepeatedBooleanField(this, 2));
3192
+ };
3193
+
3194
+
3195
+ /**
3196
+ * @param {!Array<boolean>} value
3197
+ * @return {!proto.ondewo.nlu.SetNotificationsReadStatusRequest} returns this
3198
+ */
3199
+ proto.ondewo.nlu.SetNotificationsReadStatusRequest.prototype.setFlaggedList = function(value) {
3200
+ return jspb.Message.setField(this, 2, value || []);
3201
+ };
3202
+
3203
+
3204
+ /**
3205
+ * @param {boolean} value
3206
+ * @param {number=} opt_index
3207
+ * @return {!proto.ondewo.nlu.SetNotificationsReadStatusRequest} returns this
3208
+ */
3209
+ proto.ondewo.nlu.SetNotificationsReadStatusRequest.prototype.addFlagged = function(value, opt_index) {
3210
+ return jspb.Message.addToRepeatedField(this, 2, value, opt_index);
3211
+ };
3212
+
3213
+
3214
+ /**
3215
+ * Clears the list making it empty but non-null.
3216
+ * @return {!proto.ondewo.nlu.SetNotificationsReadStatusRequest} returns this
3217
+ */
3218
+ proto.ondewo.nlu.SetNotificationsReadStatusRequest.prototype.clearFlaggedList = function() {
3219
+ return this.setFlaggedList([]);
3220
+ };
3221
+
3222
+
3223
+
3224
+ /**
3225
+ * Oneof group definitions for this message. Each group defines the field
3226
+ * numbers belonging to that group. When of these fields' value is set, all
3227
+ * other fields in the group are cleared. During deserialization, if multiple
3228
+ * fields are encountered for a group, only the last value seen will be kept.
3229
+ * @private {!Array<!Array<number>>}
3230
+ * @const
3231
+ */
3232
+ proto.ondewo.nlu.KeyValuePair.oneofGroups_ = [[2,3,4,5,6]];
3233
+
3234
+ /**
3235
+ * @enum {number}
3236
+ */
3237
+ proto.ondewo.nlu.KeyValuePair.ValueCase = {
3238
+ VALUE_NOT_SET: 0,
3239
+ INT_VALUE: 2,
3240
+ FLOAT_VALUE: 3,
3241
+ DOUBLE_VALUE: 4,
3242
+ STRING_VALUE: 5,
3243
+ CREATED_AT: 6
3244
+ };
3245
+
3246
+ /**
3247
+ * @return {proto.ondewo.nlu.KeyValuePair.ValueCase}
3248
+ */
3249
+ proto.ondewo.nlu.KeyValuePair.prototype.getValueCase = function() {
3250
+ return /** @type {proto.ondewo.nlu.KeyValuePair.ValueCase} */(jspb.Message.computeOneofCase(this, proto.ondewo.nlu.KeyValuePair.oneofGroups_[0]));
3251
+ };
3252
+
3253
+
3254
+
3255
+ if (jspb.Message.GENERATE_TO_OBJECT) {
3256
+ /**
3257
+ * Creates an object representation of this proto.
3258
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
3259
+ * Optional fields that are not set will be set to undefined.
3260
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
3261
+ * For the list of reserved names please see:
3262
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
3263
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
3264
+ * JSPB instance for transitional soy proto support:
3265
+ * http://goto/soy-param-migration
3266
+ * @return {!Object}
3267
+ */
3268
+ proto.ondewo.nlu.KeyValuePair.prototype.toObject = function(opt_includeInstance) {
3269
+ return proto.ondewo.nlu.KeyValuePair.toObject(opt_includeInstance, this);
3270
+ };
3271
+
3272
+
3273
+ /**
3274
+ * Static version of the {@see toObject} method.
3275
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
3276
+ * the JSPB instance for transitional soy proto support:
3277
+ * http://goto/soy-param-migration
3278
+ * @param {!proto.ondewo.nlu.KeyValuePair} msg The msg instance to transform.
3279
+ * @return {!Object}
3280
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3281
+ */
3282
+ proto.ondewo.nlu.KeyValuePair.toObject = function(includeInstance, msg) {
3283
+ var f, obj = {
3284
+ key: jspb.Message.getFieldWithDefault(msg, 1, ""),
3285
+ intValue: jspb.Message.getFieldWithDefault(msg, 2, 0),
3286
+ floatValue: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
3287
+ doubleValue: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
3288
+ stringValue: jspb.Message.getFieldWithDefault(msg, 5, ""),
3289
+ createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f)
3290
+ };
3291
+
3292
+ if (includeInstance) {
3293
+ obj.$jspbMessageInstance = msg;
3294
+ }
3295
+ return obj;
3296
+ };
3297
+ }
3298
+
3299
+
3300
+ /**
3301
+ * Deserializes binary data (in protobuf wire format).
3302
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
3303
+ * @return {!proto.ondewo.nlu.KeyValuePair}
3304
+ */
3305
+ proto.ondewo.nlu.KeyValuePair.deserializeBinary = function(bytes) {
3306
+ var reader = new jspb.BinaryReader(bytes);
3307
+ var msg = new proto.ondewo.nlu.KeyValuePair;
3308
+ return proto.ondewo.nlu.KeyValuePair.deserializeBinaryFromReader(msg, reader);
3309
+ };
3310
+
3311
+
3312
+ /**
3313
+ * Deserializes binary data (in protobuf wire format) from the
3314
+ * given reader into the given message object.
3315
+ * @param {!proto.ondewo.nlu.KeyValuePair} msg The message object to deserialize into.
3316
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
3317
+ * @return {!proto.ondewo.nlu.KeyValuePair}
3318
+ */
3319
+ proto.ondewo.nlu.KeyValuePair.deserializeBinaryFromReader = function(msg, reader) {
3320
+ while (reader.nextField()) {
3321
+ if (reader.isEndGroup()) {
3322
+ break;
3323
+ }
3324
+ var field = reader.getFieldNumber();
3325
+ switch (field) {
3326
+ case 1:
3327
+ var value = /** @type {string} */ (reader.readString());
3328
+ msg.setKey(value);
3329
+ break;
3330
+ case 2:
3331
+ var value = /** @type {number} */ (reader.readInt32());
3332
+ msg.setIntValue(value);
3333
+ break;
3334
+ case 3:
3335
+ var value = /** @type {number} */ (reader.readFloat());
3336
+ msg.setFloatValue(value);
3337
+ break;
3338
+ case 4:
3339
+ var value = /** @type {number} */ (reader.readDouble());
3340
+ msg.setDoubleValue(value);
3341
+ break;
3342
+ case 5:
3343
+ var value = /** @type {string} */ (reader.readString());
3344
+ msg.setStringValue(value);
3345
+ break;
3346
+ case 6:
3347
+ var value = new google_protobuf_timestamp_pb.Timestamp;
3348
+ reader.readMessage(value,google_protobuf_timestamp_pb.Timestamp.deserializeBinaryFromReader);
3349
+ msg.setCreatedAt(value);
3350
+ break;
3351
+ default:
3352
+ reader.skipField();
3353
+ break;
3354
+ }
3355
+ }
3356
+ return msg;
3357
+ };
3358
+
3359
+
3360
+ /**
3361
+ * Serializes the message to binary data (in protobuf wire format).
3362
+ * @return {!Uint8Array}
3363
+ */
3364
+ proto.ondewo.nlu.KeyValuePair.prototype.serializeBinary = function() {
3365
+ var writer = new jspb.BinaryWriter();
3366
+ proto.ondewo.nlu.KeyValuePair.serializeBinaryToWriter(this, writer);
3367
+ return writer.getResultBuffer();
3368
+ };
3369
+
3370
+
3371
+ /**
3372
+ * Serializes the given message to binary data (in protobuf wire
3373
+ * format), writing to the given BinaryWriter.
3374
+ * @param {!proto.ondewo.nlu.KeyValuePair} message
3375
+ * @param {!jspb.BinaryWriter} writer
3376
+ * @suppress {unusedLocalVariables} f is only used for nested messages
3377
+ */
3378
+ proto.ondewo.nlu.KeyValuePair.serializeBinaryToWriter = function(message, writer) {
3379
+ var f = undefined;
3380
+ f = message.getKey();
3381
+ if (f.length > 0) {
3382
+ writer.writeString(
3383
+ 1,
3384
+ f
3385
+ );
3386
+ }
3387
+ f = /** @type {number} */ (jspb.Message.getField(message, 2));
3388
+ if (f != null) {
3389
+ writer.writeInt32(
3390
+ 2,
3391
+ f
3392
+ );
3393
+ }
3394
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
3395
+ if (f != null) {
3396
+ writer.writeFloat(
3397
+ 3,
3398
+ f
3399
+ );
3400
+ }
3401
+ f = /** @type {number} */ (jspb.Message.getField(message, 4));
3402
+ if (f != null) {
3403
+ writer.writeDouble(
3404
+ 4,
3405
+ f
3406
+ );
3407
+ }
3408
+ f = /** @type {string} */ (jspb.Message.getField(message, 5));
3409
+ if (f != null) {
3410
+ writer.writeString(
3411
+ 5,
3412
+ f
3413
+ );
3414
+ }
3415
+ f = message.getCreatedAt();
3416
+ if (f != null) {
3417
+ writer.writeMessage(
3418
+ 6,
3419
+ f,
3420
+ google_protobuf_timestamp_pb.Timestamp.serializeBinaryToWriter
3421
+ );
3422
+ }
3423
+ };
3424
+
3425
+
3426
+ /**
3427
+ * optional string key = 1;
3428
+ * @return {string}
3429
+ */
3430
+ proto.ondewo.nlu.KeyValuePair.prototype.getKey = function() {
3431
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
3432
+ };
3433
+
3434
+
3435
+ /**
3436
+ * @param {string} value
3437
+ * @return {!proto.ondewo.nlu.KeyValuePair} returns this
3438
+ */
3439
+ proto.ondewo.nlu.KeyValuePair.prototype.setKey = function(value) {
3440
+ return jspb.Message.setProto3StringField(this, 1, value);
3441
+ };
3442
+
3443
+
3444
+ /**
3445
+ * optional int32 int_value = 2;
3446
+ * @return {number}
3447
+ */
3448
+ proto.ondewo.nlu.KeyValuePair.prototype.getIntValue = function() {
3449
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
3450
+ };
3451
+
3452
+
3453
+ /**
3454
+ * @param {number} value
3455
+ * @return {!proto.ondewo.nlu.KeyValuePair} returns this
3456
+ */
3457
+ proto.ondewo.nlu.KeyValuePair.prototype.setIntValue = function(value) {
3458
+ return jspb.Message.setOneofField(this, 2, proto.ondewo.nlu.KeyValuePair.oneofGroups_[0], value);
3459
+ };
3460
+
3461
+
3462
+ /**
3463
+ * Clears the field making it undefined.
3464
+ * @return {!proto.ondewo.nlu.KeyValuePair} returns this
3465
+ */
3466
+ proto.ondewo.nlu.KeyValuePair.prototype.clearIntValue = function() {
3467
+ return jspb.Message.setOneofField(this, 2, proto.ondewo.nlu.KeyValuePair.oneofGroups_[0], undefined);
3468
+ };
3469
+
3470
+
3471
+ /**
3472
+ * Returns whether this field is set.
3473
+ * @return {boolean}
3474
+ */
3475
+ proto.ondewo.nlu.KeyValuePair.prototype.hasIntValue = function() {
3476
+ return jspb.Message.getField(this, 2) != null;
3477
+ };
3478
+
3479
+
3480
+ /**
3481
+ * optional float float_value = 3;
3482
+ * @return {number}
3483
+ */
3484
+ proto.ondewo.nlu.KeyValuePair.prototype.getFloatValue = function() {
3485
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
3486
+ };
3487
+
3488
+
3489
+ /**
3490
+ * @param {number} value
3491
+ * @return {!proto.ondewo.nlu.KeyValuePair} returns this
3492
+ */
3493
+ proto.ondewo.nlu.KeyValuePair.prototype.setFloatValue = function(value) {
3494
+ return jspb.Message.setOneofField(this, 3, proto.ondewo.nlu.KeyValuePair.oneofGroups_[0], value);
3495
+ };
3496
+
3497
+
3498
+ /**
3499
+ * Clears the field making it undefined.
3500
+ * @return {!proto.ondewo.nlu.KeyValuePair} returns this
3501
+ */
3502
+ proto.ondewo.nlu.KeyValuePair.prototype.clearFloatValue = function() {
3503
+ return jspb.Message.setOneofField(this, 3, proto.ondewo.nlu.KeyValuePair.oneofGroups_[0], undefined);
3504
+ };
3505
+
3506
+
3507
+ /**
3508
+ * Returns whether this field is set.
3509
+ * @return {boolean}
3510
+ */
3511
+ proto.ondewo.nlu.KeyValuePair.prototype.hasFloatValue = function() {
3512
+ return jspb.Message.getField(this, 3) != null;
3513
+ };
3514
+
3515
+
3516
+ /**
3517
+ * optional double double_value = 4;
3518
+ * @return {number}
3519
+ */
3520
+ proto.ondewo.nlu.KeyValuePair.prototype.getDoubleValue = function() {
3521
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
3522
+ };
3523
+
3524
+
3525
+ /**
3526
+ * @param {number} value
3527
+ * @return {!proto.ondewo.nlu.KeyValuePair} returns this
3528
+ */
3529
+ proto.ondewo.nlu.KeyValuePair.prototype.setDoubleValue = function(value) {
3530
+ return jspb.Message.setOneofField(this, 4, proto.ondewo.nlu.KeyValuePair.oneofGroups_[0], value);
3531
+ };
3532
+
3533
+
3534
+ /**
3535
+ * Clears the field making it undefined.
3536
+ * @return {!proto.ondewo.nlu.KeyValuePair} returns this
3537
+ */
3538
+ proto.ondewo.nlu.KeyValuePair.prototype.clearDoubleValue = function() {
3539
+ return jspb.Message.setOneofField(this, 4, proto.ondewo.nlu.KeyValuePair.oneofGroups_[0], undefined);
3540
+ };
3541
+
3542
+
3543
+ /**
3544
+ * Returns whether this field is set.
3545
+ * @return {boolean}
3546
+ */
3547
+ proto.ondewo.nlu.KeyValuePair.prototype.hasDoubleValue = function() {
3548
+ return jspb.Message.getField(this, 4) != null;
3549
+ };
3550
+
3551
+
3552
+ /**
3553
+ * optional string string_value = 5;
3554
+ * @return {string}
3555
+ */
3556
+ proto.ondewo.nlu.KeyValuePair.prototype.getStringValue = function() {
3557
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
3558
+ };
3559
+
3560
+
3561
+ /**
3562
+ * @param {string} value
3563
+ * @return {!proto.ondewo.nlu.KeyValuePair} returns this
3564
+ */
3565
+ proto.ondewo.nlu.KeyValuePair.prototype.setStringValue = function(value) {
3566
+ return jspb.Message.setOneofField(this, 5, proto.ondewo.nlu.KeyValuePair.oneofGroups_[0], value);
3567
+ };
3568
+
3569
+
3570
+ /**
3571
+ * Clears the field making it undefined.
3572
+ * @return {!proto.ondewo.nlu.KeyValuePair} returns this
3573
+ */
3574
+ proto.ondewo.nlu.KeyValuePair.prototype.clearStringValue = function() {
3575
+ return jspb.Message.setOneofField(this, 5, proto.ondewo.nlu.KeyValuePair.oneofGroups_[0], undefined);
3576
+ };
3577
+
3578
+
3579
+ /**
3580
+ * Returns whether this field is set.
3581
+ * @return {boolean}
3582
+ */
3583
+ proto.ondewo.nlu.KeyValuePair.prototype.hasStringValue = function() {
3584
+ return jspb.Message.getField(this, 5) != null;
3585
+ };
3586
+
3587
+
3588
+ /**
3589
+ * optional google.protobuf.Timestamp created_at = 6;
3590
+ * @return {?proto.google.protobuf.Timestamp}
3591
+ */
3592
+ proto.ondewo.nlu.KeyValuePair.prototype.getCreatedAt = function() {
3593
+ return /** @type{?proto.google.protobuf.Timestamp} */ (
3594
+ jspb.Message.getWrapperField(this, google_protobuf_timestamp_pb.Timestamp, 6));
3595
+ };
3596
+
3597
+
3598
+ /**
3599
+ * @param {?proto.google.protobuf.Timestamp|undefined} value
3600
+ * @return {!proto.ondewo.nlu.KeyValuePair} returns this
3601
+ */
3602
+ proto.ondewo.nlu.KeyValuePair.prototype.setCreatedAt = function(value) {
3603
+ return jspb.Message.setOneofWrapperField(this, 6, proto.ondewo.nlu.KeyValuePair.oneofGroups_[0], value);
3604
+ };
3605
+
3606
+
3607
+ /**
3608
+ * Clears the message field making it undefined.
3609
+ * @return {!proto.ondewo.nlu.KeyValuePair} returns this
3610
+ */
3611
+ proto.ondewo.nlu.KeyValuePair.prototype.clearCreatedAt = function() {
3612
+ return this.setCreatedAt(undefined);
3613
+ };
3614
+
3615
+
3616
+ /**
3617
+ * Returns whether this field is set.
3618
+ * @return {boolean}
3619
+ */
3620
+ proto.ondewo.nlu.KeyValuePair.prototype.hasCreatedAt = function() {
3621
+ return jspb.Message.getField(this, 6) != null;
3622
+ };
3623
+
3624
+
3625
+ /**
3626
+ * @enum {number}
3627
+ */
3628
+ proto.ondewo.nlu.SortingMode = {
3629
+ ASCENDING: 0,
3630
+ DESCENDING: 1
3631
+ };
3632
+
3633
+ /**
3634
+ * @enum {number}
3635
+ */
3636
+ proto.ondewo.nlu.NotificationFlaggedStatus = {
3637
+ NOTIFICATION_FLAGGED_STATUS_UNSPECIFIED: 0,
3638
+ NOTIFICATION_FLAGGED_STATUS_FLAGGED: 1,
3639
+ NOTIFICATION_FLAGGED_STATUS_UNFLAGGED: 2
3640
+ };
3641
+
3642
+ /**
3643
+ * @enum {number}
3644
+ */
3645
+ proto.ondewo.nlu.NotificationReadStatus = {
3646
+ NOTIFICATION_READ_STATUS_UNSPECIFIED: 0,
3647
+ NOTIFICATION_READ_STATUS_READ: 1,
3648
+ NOTIFICATION_READ_STATUS_UNREAD: 2
3649
+ };
3650
+
3651
+ /**
3652
+ * @enum {number}
3653
+ */
3654
+ proto.ondewo.nlu.NotificationVisibility = {
3655
+ NOTIFICATION_VISIBILITY_UNSPECIFIED: 0,
3656
+ NOTIFICATION_VISIBILITY_USER: 1,
3657
+ NOTIFICATION_VISIBILITY_PROJECT: 2,
3658
+ NOTIFICATION_VISIBILITY_PROJECT_OWNER: 3,
3659
+ NOTIFICATION_VISIBILITY_PROJECT_ADMIN: 4,
3660
+ NOTIFICATION_VISIBILITY_PROJECT_DEVELOPER: 5,
3661
+ NOTIFICATION_VISIBILITY_PROJECT_USER: 6,
3662
+ NOTIFICATION_VISIBILITY_PROJECT_EXECUTOR: 7,
3663
+ NOTIFICATION_VISIBILITY_PROJECT_INACTIVE: 8,
3664
+ NOTIFICATION_VISIBILITY_SERVER_ADMIN: 9,
3665
+ NOTIFICATION_VISIBILITY_SERVER_MANAGER: 10,
3666
+ NOTIFICATION_VISIBILITY_SERVER_USER: 11,
3667
+ NOTIFICATION_VISIBILITY_SERVER_INACTIVE: 12
3668
+ };
3669
+
3670
+ /**
3671
+ * @enum {number}
3672
+ */
3673
+ proto.ondewo.nlu.NotificationType = {
3674
+ NOTIFICATION_TYPE_UNSPECIFIED: 0,
3675
+ NOTIFICATION_TYPE_DEBUG: 1,
3676
+ NOTIFICATION_TYPE_WARNING: 2,
3677
+ NOTIFICATION_TYPE_INFO: 3,
3678
+ NOTIFICATION_TYPE_ERROR: 4,
3679
+ NOTIFICATION_TYPE_NEWS: 5
3680
+ };
3681
+
3682
+ /**
3683
+ * @enum {number}
3684
+ */
3685
+ proto.ondewo.nlu.NotificationOrigin = {
3686
+ NOTIFICATION_ORIGIN_UNSPECIFIED: 0,
3687
+ NOTIFICATION_ORIGIN_ONDEWO_AIM: 1,
3688
+ NOTIFICATION_ORIGIN_ONDEWO_BPI: 2,
3689
+ NOTIFICATION_ORIGIN_ONDEWO_CSI: 3,
3690
+ NOTIFICATION_ORIGIN_ONDEWO_NLU: 4,
3691
+ NOTIFICATION_ORIGIN_ONDEWO_S2T: 5,
3692
+ NOTIFICATION_ORIGIN_ONDEWO_SIP: 6,
3693
+ NOTIFICATION_ORIGIN_ONDEWO_T2S: 7,
3694
+ NOTIFICATION_ORIGIN_ONDEWO_VTSI: 8,
3695
+ NOTIFICATION_ORIGIN_ONDEWO_VTSI_RABBITMQ: 9
177
3696
  };
178
3697
 
179
3698
  goog.object.extend(exports, proto.ondewo.nlu);